/* ==========================================================================
   DealNest theme — loaded after rx.css / site.css / panel.css and overrides the base tokens.
   Palette: deep aubergine ink, vivid orange accent, hot-pink highlight.
   ========================================================================== */
:root {
    --ink: #2a1450;
    --ink-2: #3a1d6a;
    --ink-3: #5a4a7a;
    --muted: #6b6285;
    --line: #e3dde9;
    --bg: #f5f3f7;
    --accent: #ff8a1f;
    --accent-600: #ee7405;
    --accent-soft: #ffe8d0;
    --teal: #ff5fb0;
    --teal-600: #e63a95;
    --teal-soft: #ffe3f1;
    --coral: #ff6b5e;
    --blue: #3a77ff;
    --green: #12945a;
    --radius: 14px;
    --shadow: 0 12px 30px -14px rgba(42, 20, 80, .28);
    --shadow-lg: 0 26px 60px -22px rgba(42, 20, 80, .45);
    --bs-link-color: #6a35c4;
    --bs-link-hover-color: #2a1450;
}
body { background: var(--bg); }
.btn-primary { --bs-btn-focus-shadow-rgb: 255, 138, 31; box-shadow: 0 6px 16px -9px rgba(238, 116, 5, .95); }
.btn-teal { --bs-btn-bg: var(--teal); --bs-btn-border-color: var(--teal); --bs-btn-color: var(--ink); --bs-btn-hover-bg: var(--teal-600); --bs-btn-hover-border-color: var(--teal-600); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: var(--teal-600); --bs-btn-active-color: var(--ink); }
.btn-outline-ink { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: var(--ink); --bs-btn-hover-color: #ffffff; --bs-btn-hover-border-color: var(--ink); border-width: 2px; }
.btn-soft { background: #eae6ef; }
.btn-soft:hover { background: #ded7e6; }
.form-control:focus, .form-select:focus { border-color: var(--teal-600); box-shadow: 0 0 0 .22rem rgba(255, 95, 176, .28); }
.form-control, .form-select { border-color: #d3cbdb; }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.input-group-text { background: #eeeaf2; border-color: #d3cbdb; }
.avatar { background: var(--ink); color: var(--accent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chip-lime { background: var(--accent-soft); color: #8a4300; }
.table-rx thead th { background: #f8f6fa; }
.table-rx tbody tr:hover { background: #f9f7fb; }
.btn-icon { width: 36px; height: 36px; }
.page-link { color: var(--ink); }
.text-teal { color: var(--teal-600) !important; }
.bg-ink { background: var(--ink) !important; color: #ffffff; }
.nav-pills-rx .nav-link.active { background: var(--ink); }
.nav-pills-rx .nav-link .count { background: #eae6ef; }

/* ---------- brand ---------- */
.brand .logo { background: var(--ink); color: var(--accent); border-radius: 11px; transform: none; box-shadow: inset 0 -3px 0 var(--teal); }
.brand { font-weight: 800; letter-spacing: -.04em; }
.brand-word { font-size: 1.45rem; letter-spacing: -.045em; }
.brand-word i { font-style: normal; color: var(--teal-600); }

/* ---------- site navbar ---------- */
.site-top { background: #ffffff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.site-top .bar { display: flex; align-items: center; gap: .9rem; padding: .65rem 0; }
.loc-pick { position: relative; }
.loc-pick > .btn { background: #f3f0f6; border: 1px solid #d3cbdb; font-weight: 600; font-size: .88rem; padding: .55rem .85rem; display: flex; align-items: center; gap: .4rem; white-space: nowrap; max-width: 190px; }
.loc-pick > .btn span { overflow: hidden; text-overflow: ellipsis; }
.loc-pick .dropdown-menu { min-width: 240px; max-height: 340px; overflow-y: auto; }
.top-search { flex: 1; display: flex; min-width: 0; }
.top-search .field { position: relative; flex: 1; min-width: 0; }
.top-search input { border: 2px solid var(--ink); border-right: 0; border-radius: 12px 0 0 12px; height: 46px; padding-left: 2.6rem; font-size: .95rem; width: 100%; }
.top-search input:focus { box-shadow: none; border-color: var(--teal-600); }
.top-search .field > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.top-search button { border: 2px solid var(--ink); background: var(--ink); color: #ffffff; width: 54px; border-radius: 0 12px 12px 0; font-size: 1.1rem; }
.top-search button:hover { background: var(--teal-600); border-color: var(--teal-600); color: var(--ink); }
.sell-btn { display: inline-flex; align-items: center; gap: .35rem; background: #ffffff; color: var(--ink); font-weight: 800; letter-spacing: .02em; border-radius: 999px; padding: .5rem 1.2rem; border: 4px solid transparent; background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(90deg, #ff5fb0, #ff8a1f, #3a77ff); background-origin: border-box; background-clip: padding-box, border-box; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.sell-btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(42, 20, 80, .5); }
.site-top .icon-link { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: 1.25rem; background: transparent; border: 0; }
.site-top .icon-link:hover { background: #eeeaf2; color: var(--ink); }
.icon-link .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--coral); color: #ffffff; font-size: .65rem; font-weight: 700; display: none; place-items: center; padding: 0 4px; border: 2px solid #ffffff; }
.icon-link .count.on { display: grid; }
.site-top .nav-bell .dot { top: 2px; right: 0; }
.cat-strip { background: #ffffff; border-bottom: 1px solid var(--line); }
.cat-strip .scroll { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; padding: .15rem 0; }
.cat-strip .scroll::-webkit-scrollbar { display: none; }
.cat-strip a { white-space: nowrap; padding: .6rem .8rem; font-size: .85rem; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; }
.cat-strip a:hover, .cat-strip a.active { color: var(--ink); border-bottom-color: var(--teal); }
.cat-strip .all { font-weight: 800; color: var(--ink); }

/* ---------- hero (home) ---------- */
.dn-hero { position: relative; background: linear-gradient(135deg, #2a1450 0%, #280055 55%, #410b80 100%); color: #ffffff; overflow: hidden; padding: 3.2rem 0 4.6rem; }
.dn-hero::before { content: ''; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 95, 176, .45), transparent 65%); }
.dn-hero::after { content: ''; position: absolute; left: -90px; bottom: -150px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 31, .35), transparent 65%); }
.dn-hero .container { position: relative; z-index: 1; }
.dn-hero h1 { color: #ffffff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.06; }
.dn-hero h1 em { font-style: normal; color: var(--accent); }
.dn-hero .lead { color: #cfbfe3; max-width: 34rem; }
.hero-search { background: #ffffff; border-radius: 18px; padding: .55rem; display: flex; gap: .5rem; box-shadow: var(--shadow-lg); max-width: 760px; }
.hero-search .sel, .hero-search .kw { position: relative; display: flex; align-items: center; }
.hero-search .sel { border-right: 1px solid var(--line); flex: 0 0 210px; }
.hero-search .kw { flex: 1; min-width: 0; }
.hero-search i.lead-i { position: absolute; left: .9rem; color: var(--teal-600); z-index: 2; pointer-events: none; }
.hero-search select, .hero-search input { border: 0; box-shadow: none !important; background: transparent; height: 50px; padding-left: 2.5rem; width: 100%; font-weight: 500; color: var(--ink); }
.hero-search select:focus, .hero-search input:focus { outline: none; }
.hero-search .go { background: var(--accent); border: 0; color: var(--ink); font-weight: 800; border-radius: 13px; padding: 0 1.6rem; display: flex; align-items: center; gap: .45rem; }
.hero-search .go:hover { background: var(--accent-600); }
.hero-stats-row { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-stats-row b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.hero-stats-row span { color: #b59fd0; font-size: .82rem; }
.trend-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.trend-chips a { background: rgba(255, 255, 255, .12); color: #ffffff; border: 1px solid rgba(255, 255, 255, .2); padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 500; }
.trend-chips a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.suggest-box { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #ffffff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 1100; overflow: hidden; display: none; text-align: left; }
.suggest-box.show { display: block; }
.suggest-box a { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; color: var(--ink); font-size: .9rem; border-bottom: 1px solid #f2f0f5; }
.suggest-box a:hover { background: #f6f3fa; }
.suggest-box a i { color: var(--teal-600); width: 1.2rem; }
.suggest-box a small { margin-left: auto; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* banners */
.banner-wrap { margin-top: -2.4rem; position: relative; z-index: 3; }
.banner-slide { border-radius: 20px; padding: 1.6rem 1.8rem; display: flex; align-items: center; gap: 1.2rem; min-height: 132px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.banner-slide .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; background: rgba(255, 255, 255, .22); flex-shrink: 0; }
.banner-slide h4 { margin: 0 0 .2rem; font-size: 1.3rem; font-weight: 800; }
.banner-slide p { margin: 0; opacity: .9; font-size: .92rem; }
.banner-slide .btn { margin-left: auto; white-space: nowrap; }
.banner-slide.teal { background: linear-gradient(110deg, #ff5fb0, #af7df1); color: var(--ink); }
.banner-slide.teal h4 { color: var(--ink); }
.banner-slide.yellow { background: linear-gradient(110deg, #ff8a1f, #ffb67a); color: var(--ink); }
.banner-slide.yellow h4 { color: var(--ink); }
.banner-slide.navy { background: linear-gradient(110deg, #2a1450, #330a61); color: #ffffff; }
.banner-slide.navy h4 { color: #ffffff; }
.banner-slide.coral { background: linear-gradient(110deg, #ff6b5e, #ff9a7a); color: #ffffff; }
.banner-slide.coral h4 { color: #ffffff; }

/* categories */
.cat-tile { display: block; text-align: center; padding: 1.1rem .5rem; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); height: 100%; transition: all .18s; }
.cat-tile .ic { width: 58px; height: 58px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--teal-soft); color: #6a35c4; transition: all .18s; }
.cat-tile b { display: block; font-size: .88rem; font-weight: 700; }
.cat-tile small { color: var(--muted); font-size: .74rem; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); color: var(--ink); }
.cat-tile:hover .ic { background: var(--accent); color: var(--ink); }
.sec-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.sec-title h2 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.sec-title p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.sec-title a.more { font-weight: 700; font-size: .88rem; color: #6a35c4; white-space: nowrap; }

/* ---------- ad cards ---------- */
.ad-card { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; height: 100%; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.ad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ad-card .photo { position: relative; aspect-ratio: 4 / 3; background: #ede9f1; overflow: hidden; display: block; }
.ad-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ad-card:hover .photo img { transform: scale(1.05); }
.ad-card .tag { position: absolute; left: .6rem; top: .6rem; background: var(--accent); color: var(--ink); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 6px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.ad-card .tag.top { background: var(--teal); }
.ad-card .fav { position: absolute; right: .55rem; top: .55rem; width: 36px; height: 36px; border-radius: 50%; background: #ffffff; border: 0; display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); font-size: 1.05rem; transition: transform .15s; }
.ad-card .fav:hover { transform: scale(1.12); }
.ad-card .fav.on { color: #e5293f; }
.ad-card .body { padding: .8rem .9rem .9rem; display: flex; flex-direction: column; flex: 1; }
.ad-card .price { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ad-card .price small { font-weight: 600; font-size: .7rem; color: var(--green); margin-left: .35rem; }
.ad-card .title { color: var(--ink-3); font-size: .9rem; line-height: 1.3; margin: .2rem 0 .55rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.35em; }
.ad-card .meta { margin-top: auto; display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; color: var(--muted); }
.ad-card .meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-card.featured { border-color: #f1a76b; box-shadow: 0 0 0 1px #f1a76b; }
.ad-card .stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ad-card .fav, .ad-card .tag { z-index: 2; }
.ad-card.horizontal { flex-direction: row; }
.ad-card.horizontal .photo { aspect-ratio: auto; width: 150px; flex-shrink: 0; }
.ad-card.sold .photo::after, .ad-card.expired .photo::after { content: attr(data-label); position: absolute; inset: 0; background: rgba(42, 20, 80, .55); color: #ffffff; display: grid; place-items: center; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- browse / filters ---------- */
.card-rx.card-body-rx { padding: 1.25rem; }
.card-rx.card-body-rx > h5:first-child, .card-rx.card-body-rx > h6:first-child { margin-bottom: .9rem; }
.filter-backdrop { display: none; }
.browse-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.filter-card { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
.filter-card h6 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.5rem 0 .6rem; font-weight: 700; }
.filter-card h6:first-child { margin-top: 0; }
.cat-tree a { display: flex; align-items: center; justify-content: space-between; padding: .38rem .6rem; font-size: .88rem; color: var(--ink-3); border-radius: 8px; }
.cat-tree a:hover { background: #f2eef6; color: var(--ink); }
.cat-tree a.active { background: var(--teal-soft); color: var(--ink); font-weight: 700; }
.cat-tree .sub { margin-left: .9rem; border-left: 2px solid var(--line); padding-left: .3rem; }
.result-head { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.result-head h1 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-filters a { background: var(--ink); color: #ffffff; font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem; }
.active-filters a:hover { background: #c0392b; color: #ffffff; }
.no-results { text-align: center; background: #ffffff; border: 1px dashed #c4b9d0; border-radius: 20px; padding: 3rem 1.5rem; }
.no-results i.big { font-size: 3.2rem; color: #af9fc1; }
.filter-toggle { display: none; }

/* ---------- listing detail ---------- */
.gallery { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.gallery .main { position: relative; background: #1a0d33; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); font-size: 1.2rem; display: grid; place-items: center; }
.gallery .nav-btn.prev { left: .8rem; }
.gallery .nav-btn.next { right: .8rem; }
.gallery .count { position: absolute; right: .8rem; bottom: .8rem; background: rgba(0, 0, 0, .65); color: #ffffff; font-size: .78rem; padding: .2rem .65rem; border-radius: 999px; }
.gallery .thumbs { display: flex; gap: .5rem; padding: .7rem; overflow-x: auto; scrollbar-width: thin; }
.gallery .thumbs button { flex: 0 0 76px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #ede9f1; opacity: .7; }
.gallery .thumbs button.on { border-color: var(--teal-600); opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-box .amount { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.5rem; }
.spec-grid div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.spec-grid span { color: var(--muted); }
.spec-grid b { font-weight: 600; text-align: right; }
.seller-card .who { display: flex; align-items: center; gap: .8rem; }
.verified-badge { color: #ffffff; background: var(--teal-600); width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .65rem; vertical-align: middle; }
.contact-actions { display: grid; gap: .6rem; }
.contact-actions .btn { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-wa { --bs-btn-bg: #25d366; --bs-btn-border-color: #25d366; --bs-btn-color: #ffffff; --bs-btn-hover-bg: #1ebe5b; --bs-btn-hover-border-color: #1ebe5b; --bs-btn-hover-color: #ffffff; }
.safety-note { background: var(--teal-soft); border: 1px solid #c5a8ec; border-radius: 14px; padding: .9rem 1rem; font-size: .85rem; }
.safety-note i { color: #6a35c4; }
.stars { color: #f58223; letter-spacing: .05em; white-space: nowrap; }
.stars .off { color: #d9d3e0; }
.status-banner { border-radius: 14px; padding: .85rem 1.1rem; display: flex; gap: .7rem; align-items: center; font-weight: 600; font-size: .92rem; }
.status-banner.warn { background: #ffe8d0; border: 1px solid #f1a76b; color: #6b3000; }
.status-banner.bad { background: #ffe5e2; border: 1px solid #f5b4ad; color: #8b2118; }
.breadcrumb-dn { font-size: .82rem; color: var(--muted); margin-bottom: .9rem; }
.breadcrumb-dn a { color: #6a35c4; }
.sticky-contact { display: none; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.9rem; color: #d9d3e0; cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f58223; }

/* ---------- forms: post ad ---------- */
.step-card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; margin-bottom: 1.1rem; }
.step-card > h5 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; margin-bottom: 1.1rem; }
.step-card > h5 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.cond-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.cond-pick input { display: none; }
.cond-pick label { padding: .5rem .95rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .86rem; background: #ffffff; }
.cond-pick input:checked + label { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.upload-zone { border: 2px dashed #af9fc1; border-radius: 16px; padding: 1.6rem; text-align: center; background: #f9f7fb; cursor: pointer; transition: all .15s; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--teal-600); background: var(--teal-soft); }
.upload-zone i { font-size: 2.2rem; color: #6a35c4; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .7rem; margin-top: 1rem; }
.thumb-item { position: relative; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #ffffff; }
.thumb-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.thumb-item .ctl { padding: .35rem .4rem; font-size: .72rem; display: grid; gap: .25rem; }
.thumb-item .ctl input[type=number] { width: 100%; padding: .1rem .3rem; font-size: .75rem; border: 1px solid #d3cbdb; border-radius: 6px; }
.thumb-item.primary { border-color: var(--accent-600); box-shadow: 0 0 0 2px var(--accent); }
.thumb-item .pbadge { position: absolute; left: 6px; top: 6px; background: var(--accent); color: var(--ink); font-size: .62rem; font-weight: 800; padding: .1rem .4rem; border-radius: 5px; text-transform: uppercase; }
.thumb-item.removed { opacity: .35; }
.quota-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--teal-soft); color: #320762; border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: .8rem; }

/* ---------- account area ---------- */
.acct-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.acct-nav { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: .7rem; position: sticky; top: 124px; }
.acct-nav .me { display: flex; align-items: center; gap: .7rem; padding: .7rem .6rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.acct-nav a.lnk { display: flex; align-items: center; gap: .7rem; padding: .58rem .75rem; color: var(--ink-3); font-weight: 600; font-size: .9rem; border-radius: 11px; }
.acct-nav a.lnk i { font-size: 1.1rem; width: 1.3rem; text-align: center; }
.acct-nav a.lnk:hover { background: #f2eef6; color: var(--ink); }
.acct-nav a.lnk.active { background: var(--ink); color: #ffffff; }
.acct-nav a.lnk .pill { margin-left: auto; background: var(--coral); color: #ffffff; font-size: .68rem; padding: .05rem .45rem; border-radius: 999px; font-weight: 700; }
.acct-nav a.lnk.active .pill { background: var(--accent); color: var(--ink); }
.stat-tile { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; height: 100%; }
.stat-tile .num { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-tile .lbl { color: var(--muted); font-size: .78rem; }
.my-ad { display: flex; gap: 1rem; padding: 1rem; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: .8rem; }
.my-ad img { width: 118px; height: 90px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: #ede9f1; }
.my-ad .info { flex: 1; min-width: 0; }
.my-ad .info h6 { margin: 0 0 .15rem; font-size: 1rem; }
.my-ad .nums { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .8rem; color: var(--muted); margin: .45rem 0; }
.my-ad .nums b { color: var(--ink); }
.my-ad .acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.quota-bar { height: 8px; background: #e3dceb; border-radius: 99px; overflow: hidden; }
.quota-bar > div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--accent)); border-radius: 99px; }

/* messages */
.chat-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); background: #ffffff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: calc(100vh - 220px); min-height: 520px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-item { display: flex; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid #f0edf3; color: var(--ink); align-items: center; }
.chat-item:hover, .chat-item.active { background: #f3eef8; color: var(--ink); }
.chat-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.chat-item .t { min-width: 0; flex: 1; }
.chat-item .t b, .chat-item .t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .t small { color: var(--muted); font-size: .78rem; }
.chat-item .unread { background: var(--coral); color: #ffffff; border-radius: 999px; font-size: .68rem; font-weight: 700; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: .8rem 1rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .8rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #f5f3f8; display: flex; flex-direction: column; gap: .5rem; }
.bubble { max-width: 76%; padding: .55rem .85rem; border-radius: 16px; font-size: .92rem; line-height: 1.4; word-wrap: break-word; background: #ffffff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; }
.bubble small { display: block; font-size: .66rem; color: var(--muted); margin-top: .15rem; text-align: right; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: #ffffff; border-color: var(--ink); }
.bubble.mine small { color: #b59fd0; }
.chat-foot { padding: .75rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; }
.chat-foot input { border-radius: 999px; }
.quick-replies { display: flex; gap: .4rem; flex-wrap: wrap; padding: .5rem .75rem 0; }
.quick-replies button { border: 1px solid #d3cbdb; background: #ffffff; border-radius: 999px; font-size: .76rem; padding: .2rem .7rem; color: var(--ink-3); }
.quick-replies button:hover { background: var(--teal-soft); }

/* promote / pay */
.plan-card { border: 2px solid var(--line); border-radius: 18px; padding: 1.3rem; background: #ffffff; height: 100%; cursor: pointer; display: block; transition: all .15s; position: relative; }
.plan-card:hover { border-color: #af9fc1; }
.plan-input:checked + .plan-card { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(42, 20, 80, .7); background: #fff8f2; }
.plan-card .price { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.plan-input { position: absolute; opacity: 0; }
.plan-card .ribbon { position: absolute; right: 14px; top: -11px; background: var(--accent); font-size: .68rem; font-weight: 800; padding: .15rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* misc public */
.safety-band { background: linear-gradient(120deg, #2a1450, #330a61); border-radius: 26px; color: #ffffff; padding: 2.2rem; position: relative; overflow: hidden; }
.safety-band h3 { color: #ffffff; font-weight: 800; }
.safety-band .tip { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 1rem; height: 100%; }
.safety-band .tip i { font-size: 1.5rem; color: var(--accent); }
.safety-band .tip b { display: block; margin: .4rem 0 .2rem; }
.safety-band .tip p { margin: 0; color: #c8b7dc; font-size: .85rem; }
.sell-cta { background: linear-gradient(110deg, #ff8a1f, #ffbd87); border-radius: 26px; padding: 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.sell-cta h3 { font-weight: 800; margin: 0 0 .3rem; }
.city-chip { display: inline-flex; align-items: center; gap: .4rem; background: #ffffff; border: 1px solid var(--line); padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.city-chip:hover { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.city-chip i { color: var(--teal-600); }
.city-chip:hover i { color: var(--accent); }
footer.site { background: var(--ink); }
footer.site a:hover { color: var(--accent); }
.how-step { display: flex; gap: 1rem; align-items: flex-start; }
.how-step .num { width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* auth */
.auth-side { background: radial-gradient(800px 400px at 80% 0%, rgba(255, 95, 176, .35), transparent 60%), linear-gradient(160deg, #2a1450, #2b005b); }
.demo-otp { background: var(--accent-soft); border-color: var(--accent-600); }
.auth-side ul i { color: var(--accent); }

/* bottom nav */
.bottom-nav a.active { color: var(--ink); background: var(--teal-soft); }
.bottom-nav .sell-fab { margin-top: -22px; }
.bottom-nav .sell-fab i { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; margin: 0 auto 2px; font-size: 1.6rem; box-shadow: 0 8px 18px -6px rgba(238, 116, 5, .9); border: 4px solid #ffffff; }
.bottom-nav .sell-fab.active { background: transparent; }

/* ---------- admin panel overrides ---------- */
body.panel { background: #f1eff4; }
.sidebar { background: linear-gradient(180deg, #14002a 0%, #2a1450 100%); }
.sidebar .brand small { background: var(--accent); color: var(--ink); }
.side-group { color: #775f92; }
.side-link { color: #b9a9cb; }
.side-link.active { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -14px var(--accent); }
.side-user .avatar { background: var(--accent); }
.side-user small { color: #937eab; }
.topbar { background: rgba(255, 255, 255, .92); }
.stat .num { font-variant-numeric: tabular-nums; }
.icon-bubble { background: var(--teal-soft); color: #6a35c4; }
.icon-bubble.dark { background: var(--ink); color: var(--accent); }
.mod-card { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem; display: flex; gap: .9rem; align-items: center; }
.mod-card img { width: 64px; height: 52px; border-radius: 9px; object-fit: cover; background: #ede9f1; }
.thumb-sm { width: 52px; height: 42px; object-fit: cover; border-radius: 8px; background: #ede9f1; }
.chart-box { position: relative; height: 260px; }
.kbd-list li { margin-bottom: .35rem; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .browse-grid { grid-template-columns: 1fr; }
    .filter-card { position: fixed; z-index: 1060; left: 0; top: 0; bottom: 0; width: min(340px, 90vw); max-height: none; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--shadow-lg); }
    .filter-card.open { transform: none; }
    .filter-backdrop { position: fixed; inset: 0; background: rgba(15, 5, 35, .5); z-index: 1055; display: none; }
    .filter-backdrop.show { display: block; }
    .filter-toggle { display: inline-flex; }
    .acct-shell { grid-template-columns: 1fr; }
    .acct-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; padding: .5rem; scrollbar-width: none; }
    .acct-nav::-webkit-scrollbar { display: none; }
    .acct-nav .me { display: none; }
    .acct-nav a.lnk { white-space: nowrap; flex-shrink: 0; padding: .5rem .8rem; }
    .chat-shell { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .chat-shell .chat-list { display: none; }
    .chat-shell.list-only .chat-list { display: block; }
    .chat-shell .chat-main { height: calc(100vh - 230px); min-height: 440px; }
    .spec-grid { grid-template-columns: 1fr; }
    .sticky-contact { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: #ffffff; border-top: 1px solid var(--line); padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); gap: .5rem; box-shadow: 0 -10px 24px -16px rgba(42, 20, 80, .4); }
    .sticky-contact .btn { flex: 1; }
    body.has-sticky-contact { padding-bottom: 80px; }
    body.has-sticky-contact .bottom-nav { display: none; }
}
@media (max-width: 767.98px) {
    .site-top .bar { flex-wrap: wrap; gap: .5rem; padding: .5rem 0; }
    .site-top .top-search { order: 5; flex: 0 0 100%; }
    .loc-pick > .btn { max-width: 130px; padding: .45rem .65rem; }
    .dn-hero { padding: 2rem 0 4rem; }
    .hero-search { flex-direction: column; padding: .5rem; gap: 0; }
    .hero-search .sel { border-right: 0; border-bottom: 1px solid var(--line); flex: none; }
    .hero-search .go { height: 48px; justify-content: center; margin-top: .4rem; }
    .banner-slide { flex-wrap: wrap; padding: 1.2rem; }
    .banner-slide .btn { margin-left: 0; }
    .my-ad { flex-direction: column; }
    .my-ad img { width: 100%; height: 170px; }
    .sell-cta, .safety-band { padding: 1.4rem; border-radius: 20px; }
    .page { padding: 1rem; }
    .topbar { padding: 0 1rem; }
    .stat { padding: .9rem; }
    .stat .num { font-size: 1.25rem; }
    .ad-card .price { font-size: 1rem; }
    .ad-card .body { padding: .65rem .7rem .75rem; }
    .gallery .main { aspect-ratio: 4 / 3; }
    .receipt { padding: 1.2rem; }
    .price-box .amount { font-size: 1.6rem; }
}
@media print { .site-top, .cat-strip, .bottom-nav, .no-print { display: none !important; } .receipt { border: 0; } }

/* ---------- shared fixes (available on site, account & admin layouts) ---------- */
.min-w-0 { min-width: 0; }
.alert-item { display: flex; gap: .85rem; padding: .85rem 1rem; border-radius: 14px; align-items: flex-start; border: 1px solid; font-size: .88rem; }
.alert-item.danger { background: #fff5f5; border-color: #fecaca; }
.alert-item.warning { background: #fff4eb; border-color: #fdcea8; }
.alert-item i { font-size: 1.25rem; line-height: 1.2; }
.alert-item.danger i { color: #ef4444; }
.alert-item.warning i { color: #f5740b; }
.table-nowrap tbody td:not(:nth-child(2)) { white-space: nowrap; }
.table-nowrap tbody td:nth-child(2) { min-width: 260px; }

/* ---------- category page ---------- */
.cat-hero { display: flex; gap: 1.1rem; align-items: center; background: linear-gradient(120deg, var(--ink) 0%, #330a60 100%); color: #ffffff; border-radius: 18px; padding: 1.3rem 1.5rem; margin-bottom: 1.4rem; position: relative; overflow: hidden; }
.cat-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 95, 176, .35), transparent 70%); pointer-events: none; }
.cat-hero .ico { flex: 0 0 64px; height: 64px; border-radius: 16px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 1.9rem; color: var(--accent); }
.cat-hero h1 { color: #ffffff; font-size: 1.6rem; font-weight: 800; margin: 0 0 .15rem; }
.cat-hero p { margin: 0 0 .7rem; color: rgba(255, 255, 255, .75); font-size: .92rem; }
.cat-hero .sub-chips { display: flex; flex-wrap: wrap; gap: .45rem; position: relative; z-index: 1; }
.cat-hero .sub-chips a { background: rgba(255, 255, 255, .12); color: #ffffff; border: 1px solid rgba(255, 255, 255, .2); padding: .3rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; transition: background .15s; }
.cat-hero .sub-chips a:hover { background: rgba(255, 255, 255, .24); }
.cat-hero .sub-chips a.on { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.result-head { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; }
.filter-card form h6, .filter-card > h6 ~ h6 { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.filter-card > h6:first-of-type { border-top: 0; }
@media (max-width: 575.98px) { .cat-hero { padding: 1.1rem; } .cat-hero .ico { display: none; } .cat-hero h1 { font-size: 1.3rem; } }

/* ---------- product detail polish ---------- */
.detail-col { align-self: flex-start; }
@media (min-width: 992px) and (min-height: 820px) { .detail-col { position: sticky; top: 132px; } }
.price-box { border-top: 4px solid var(--accent); }
.price-box .amount { font-size: 2.1rem; line-height: 1.1; color: var(--ink); }
.price-box .ad-title { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin: .8rem 0 .9rem; color: var(--ink-2); }
.price-box .meta-row { border-top: 1px solid var(--line); padding-top: .8rem; gap: .4rem 1.1rem !important; }
.price-box .btn-icon.on { color: #e5293f; background: #ffe5e8; }
.seller-card .who .avatar-lg { box-shadow: 0 0 0 3px var(--teal-soft); }
.seller-card .btn-soft { border: 1px solid var(--line); background: #ffffff; }
.seller-card .btn-soft:hover { background: #f3f0f6; }
#contactBox .contact-actions .btn { padding: .72rem 1rem; border-radius: 12px; }
#contactBox > b:first-child { font-size: 1.02rem; }
.gallery { box-shadow: 0 1px 2px rgba(42, 20, 80, .04); }
.gallery .main { aspect-ratio: 16 / 10; }
.gallery .thumbs { border-top: 1px solid var(--line); background: #fcfbfd; }
.card-rx.card-body-rx > h5, .card-rx.card-body-rx > .d-flex > h5 { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; }
.card-rx.card-body-rx > h5::before { content: none; }
.spec-grid { gap: 0 2.2rem; }
.spec-grid div { padding: .7rem 0; }
.spec-grid span { font-size: .84rem; }
.spec-grid b { color: var(--ink); }
.card-rx.card-body-rx > p[style*="pre-line"] { line-height: 1.7; font-size: .95rem; }
.sec-title h2 { font-size: 1.3rem; font-weight: 800; }
@media (max-width: 991.98px) { .price-box .amount { font-size: 1.8rem; } .spec-grid { grid-template-columns: 1fr; } }

/* ---------- global theme consistency ---------- */
:root { --bs-link-color-rgb: 10, 106, 114; --bs-link-hover-color-rgb: 0, 47, 52; }
.form-switch .form-check-input { margin-right: .5rem; }
.form-switch .form-check-label { margin-left: .15rem; }
.table-rx .btn { white-space: nowrap; }
.table-rx td.text-muted, .table-rx td .text-muted.small { white-space: nowrap; }
.filter-bar.row { margin-left: 0; margin-right: 0; }
.sidebar .brand .logo { background: var(--accent); color: var(--ink); box-shadow: none; }
.sidebar .brand { font-size: 1.15rem; }

/* ---------- receipt / invoice ---------- */
.receipt { max-width: 760px; margin: 0 auto; background: #ffffff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 2rem; background: linear-gradient(120deg, var(--ink), #330a60); color: #ffffff; }
.rc-head .brand, .rc-head .brand-word { color: #ffffff; }
.rc-head .brand .logo { background: var(--accent); color: var(--ink); box-shadow: none; }
.rc-sub { font-size: .8rem; color: rgba(255, 255, 255, .7); margin-top: .35rem; }
.rc-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.rc-no { font-size: .85rem; color: var(--accent); font-weight: 600; letter-spacing: .03em; margin-top: .15rem; }
.rc-body { padding: 1.8rem 2rem 1.2rem; }
.rc-status { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: 14px; background: #ffefe1; border: 1px solid #f1a76b; margin-bottom: 1.6rem; }
.rc-status > i { font-size: 1.6rem; color: #b8590b; }
.rc-status > div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.rc-status > div span { font-size: .84rem; color: var(--muted); }
.rc-status.ok { background: #e8f8ef; border-color: #b6e6c9; }
.rc-status.ok > i { color: var(--green); }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.6rem; }
.rc-meta > div { background: #f8f6fa; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; font-size: .88rem; display: flex; flex-direction: column; gap: .15rem; }
.rc-meta .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--muted); margin-bottom: .3rem; }
.rc-meta b { color: var(--ink); }
.rc-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.rc-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: .65rem .2rem; border-bottom: 2px solid var(--ink); }
.rc-table td { padding: 1rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.rc-totals { margin-left: auto; max-width: 320px; font-size: .92rem; }
.rc-totals > div { display: flex; justify-content: space-between; padding: .45rem 0; color: var(--ink-3); }
.rc-totals .grand { margin-top: .4rem; padding: .8rem 1rem; background: var(--ink); color: #ffffff; border-radius: 12px; font-weight: 700; align-items: center; }
.rc-totals .grand span:last-child { font-size: 1.45rem; font-weight: 800; color: var(--accent); }
.rc-foot { padding: 1.1rem 2rem 1.5rem; font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 1rem; line-height: 1.6; }
@media (max-width: 575.98px) { .rc-head, .rc-body, .rc-foot { padding-left: 1.1rem; padding-right: 1.1rem; } .rc-meta { grid-template-columns: 1fr; } }
@media print {
    footer.site, .acct-nav, .alert { display: none !important; }
    .acct-shell { display: block !important; }
    body { background: #ffffff !important; }
    .receipt { box-shadow: none; border: 1px solid #cccccc; max-width: 100%; }
    .rc-head, .rc-totals .grand, .rc-status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- payment gateways ---------- */
.pay-methods { display: grid; gap: .7rem; margin-top: .6rem; }
.pay-method { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #ffffff; transition: border-color .15s, background .15s; }
.pay-method:hover { border-color: #c4b9d0; }
.pay-method input { accent-color: var(--ink); width: 18px; height: 18px; flex-shrink: 0; }
.pay-method:has(input:checked) { border-color: var(--ink); background: var(--teal-soft); }
.pay-method .ico { width: 42px; height: 42px; border-radius: 12px; background: #f2eef6; display: grid; place-items: center; font-size: 1.25rem; color: var(--ink); flex-shrink: 0; }
.pay-method .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pay-method .txt small { color: var(--muted); font-size: .78rem; }
.gw-card { overflow: hidden; border-left: 4px solid transparent; }
.gw-card.is-on { border-left-color: var(--green); }
.gw-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; }
.gw-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.gw-body { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--line); padding-top: 1.1rem; background: #fdfcfe; }

/* ---------- integrations tabs ---------- */
.nav-tabs-rx { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; padding: 0; border-bottom: 2px solid var(--line); }
.nav-tabs-rx a { display: inline-flex; align-items: center; padding: .6rem 1rem; font-weight: 600; font-size: .9rem; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.nav-tabs-rx a:hover { color: var(--ink); }
.nav-tabs-rx a.active { color: var(--ink); border-bottom-color: var(--accent-600); }
.gw-head .form-check { white-space: nowrap; }
