/* ============================================================================
   QuickList — user panel theme  (modern classified-marketplace, eClassify-class)
   ========================================================================== */
:root {
    --ql-primary: #844aef;         /* fallback until settings/webSettings.panelColor loads */
    --ql-primary-600: #6f34e0;
    --ql-primary-700: #5a23b8;
    --ql-primary-050: #f3eefe;
    --ql-primary-100: #e6dbfc;
    --ql-primary-rgb: 132, 74, 239;
    --ql-dark: #15161f;            /* navy CTA */
    --ql-dark-700: #23252f;
    --ql-ink: #1b1d28;
    --ql-muted: #6b7280;
    --ql-muted-2: #9aa1ac;
    --ql-line: #ecedf1;
    --ql-bg: #f6f7f9;
    --ql-blue-soft: #e9f3fb;
    --ql-peach-soft: #fbeee8;
    --ql-mint-soft: #e9f7f1;
    --ql-radius: 14px;
    --ql-radius-sm: 10px;
    --ql-shadow: 0 10px 30px rgba(21, 22, 31, .08);
    --ql-shadow-sm: 0 2px 10px rgba(21, 22, 31, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ql-body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--ql-bg);
    color: var(--ql-ink);
    margin: 0;
    font-size: 15px;
}
a { text-decoration: none; color: var(--ql-primary); }
a:hover { color: var(--ql-primary-600); }
.ql-main { min-height: 60vh; }
/* Wider shell — use most of the viewport on large screens. */
.container { max-width: 1440px; }
@media (min-width: 1500px) { .container { max-width: 1560px; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 10px; }
.btn-primary {
    --bs-btn-bg: var(--ql-primary); --bs-btn-border-color: var(--ql-primary);
    --bs-btn-hover-bg: var(--ql-primary-600); --bs-btn-hover-border-color: var(--ql-primary-600);
    --bs-btn-active-bg: var(--ql-primary-700); --bs-btn-active-border-color: var(--ql-primary-700);
    --bs-btn-disabled-bg: var(--ql-primary); --bs-btn-disabled-border-color: var(--ql-primary);
}
.btn-dark {
    --bs-btn-bg: var(--ql-dark); --bs-btn-border-color: var(--ql-dark);
    --bs-btn-hover-bg: var(--ql-dark-700); --bs-btn-hover-border-color: var(--ql-dark-700);
}
.btn-outline-primary {
    --bs-btn-color: var(--ql-primary); --bs-btn-border-color: var(--ql-primary);
    --bs-btn-hover-bg: var(--ql-primary); --bs-btn-hover-border-color: var(--ql-primary);
}
.nav-pills { --bs-nav-pills-link-active-bg: var(--ql-primary); --bs-nav-link-color: var(--ql-primary); --bs-nav-link-hover-color: var(--ql-primary-600); }
.list-group { --bs-list-group-active-bg: var(--ql-primary); --bs-list-group-active-border-color: var(--ql-primary); }
:root { --bs-link-color: var(--ql-primary); --bs-link-hover-color: var(--ql-primary-600); --bs-link-color-rgb: var(--ql-primary-rgb); --bs-link-hover-color-rgb: var(--ql-primary-rgb); }
.text-bg-primary { background-color: var(--ql-primary) !important; }
.border-primary { border-color: var(--ql-primary) !important; }
.text-primary { color: var(--ql-primary) !important; }
.bg-primary { background: var(--ql-primary) !important; }
.bg-soft { background: var(--ql-primary-050); }
.rounded-xl { border-radius: var(--ql-radius) !important; }
.link-muted { color: var(--ql-muted); }
.link-muted:hover { color: var(--ql-primary); }

/* ── Header ──────────────────────────────────────────────────────────── */
.ql-header { background: #fff; border-bottom: 1px solid var(--ql-line); position: sticky; top: 0; z-index: 1030; }
.ql-brand { font-weight: 800; font-size: 1.4rem; color: var(--ql-ink); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .4rem; }
/* Dark chip so logos of any text colour stay visible on the white header. */
.ql-logo-chip { display: inline-flex; align-items: center; background: #15161f; padding: 7px 14px; border-radius: 12px; }
.ql-logo-chip img { height: 30px; max-width: 170px; object-fit: contain; display: block; }
.ql-brand .ql-brand-dot { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--ql-primary), #34c6dc); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.ql-brand span { color: var(--ql-primary); }
.ql-search-pill { display: flex; align-items: center; border: 1.5px solid var(--ql-line); border-radius: 14px; padding: 5px; background: #fff; transition: .15s; }
.ql-search-pill:focus-within { border-color: var(--ql-primary); box-shadow: 0 0 0 3px rgba(var(--ql-primary-rgb), .10); }
.ql-search-pill .form-select, .ql-search-pill .form-control { border: 0; box-shadow: none !important; background: transparent; height: 42px; }
.ql-search-pill .ql-catsel { min-width: 168px; max-width: 180px; color: var(--ql-ink); font-weight: 600; padding-left: 12px; }
.ql-search-pill .ql-sep { width: 1px; align-self: stretch; background: var(--ql-line); margin: 6px 2px; }
.ql-search-pill .form-control { font-size: .95rem; }
.ql-search-pill .ql-searchbtn { border-radius: 10px; height: 42px; padding: 0 22px; font-weight: 700; white-space: nowrap; }
.ql-search-pill .ql-searchbtn.icon-only { width: 46px; padding: 0; display: grid; place-items: center; }
.ql-loc { color: var(--ql-ink); font-weight: 600; white-space: nowrap; }
.ql-loc small { color: var(--ql-muted); font-weight: 500; }
.ql-navlink { color: var(--ql-ink); font-weight: 600; }
.ql-navlink:hover { color: var(--ql-primary); }
.ql-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--ql-primary-050); }
.ql-catnav { border-top: 1px solid var(--ql-line); background: #fff; }
.ql-catnav a { color: var(--ql-ink); font-weight: 600; font-size: .86rem; padding: .6rem 0; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.ql-catnav a:hover { color: var(--ql-primary); }
.ql-catnav-scroll { display: flex; align-items: center; gap: 1.4rem; overflow: visible; flex-wrap: nowrap; }
.ql-catnav-scroll::-webkit-scrollbar { display: none; }

/* ── Section shells ──────────────────────────────────────────────────── */
.ql-section-title { font-weight: 800; letter-spacing: -.01em; font-size: 1.15rem; }
.ql-viewall { font-size: .82rem; font-weight: 700; color: var(--ql-primary); }
.ql-panel { background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); box-shadow: var(--ql-shadow-sm); }

/* ── Hero slider ─────────────────────────────────────────────────────── */
.ql-hero-slide { border-radius: 18px; overflow: hidden; }
.ql-hero-slide img { width: 100%; height: 340px; object-fit: cover; display: block; }
.ql-hero-default { position: relative; height: 340px; border-radius: 18px; overflow: hidden;
    background: radial-gradient(120% 140% at 85% 20%, #34c6dc 0%, var(--ql-primary) 45%, #0a7386 100%); color: #fff; }
.ql-hero-default .inner { position: relative; z-index: 2; max-width: 560px; padding: 3rem; }
.ql-hero-default h1 { font-weight: 800; font-size: 2.4rem; letter-spacing: -.02em; }
.ql-hero-default::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.10); }
.ql-hero-default::before { content: ""; position: absolute; right: 90px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; }

/* ── Category circles ────────────────────────────────────────────────── */
.ql-catrow { position: relative; }
.ql-catrow-scroll { display: flex; gap: 1.1rem; overflow-x: auto; scroll-behavior: smooth; padding: .25rem 0 .5rem; scrollbar-width: none; }
.ql-catrow-scroll::-webkit-scrollbar { display: none; }
.ql-catrow-scroll { gap: 1.4rem !important; }
/* Square tiles — exactly 6 fill the row on desktop, the rest scroll. */
.ql-cat-item { flex: 0 0 calc((100% - 5 * 1.4rem) / 6); width: auto; text-align: center; color: var(--ql-ink); }
.ql-cat-ring { width: 100%; aspect-ratio: 1 / 1; height: auto; margin: 0 auto .7rem; border-radius: 20px; border: 1px solid var(--ql-line); background: var(--ql-primary-050);
    display: grid; place-items: center; transition: .15s; border: 1px solid var(--ql-primary-100); overflow: hidden; }
.ql-cat-item:hover .ql-cat-ring { background: var(--ql-primary); color: #fff; transform: translateY(-3px); box-shadow: var(--ql-shadow); }
.ql-cat-item:hover { color: var(--ql-primary); }
.ql-cat-ring img { width: 48%; height: 48%; object-fit: contain; }
.ql-cat-ring i { font-size: 3rem; color: var(--ql-primary); }
.ql-cat-item:hover .ql-cat-ring i { color: #fff; }
.ql-cat-label { font-weight: 600; font-size: .95rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ql-catrow-nav { position: absolute; top: 30%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--ql-line); box-shadow: var(--ql-shadow-sm); display: grid; place-items: center; z-index: 3; cursor: pointer; }
.ql-catrow-nav.prev { left: -14px; } .ql-catrow-nav.next { right: -14px; }
@media (max-width: 991.98px){ .ql-cat-item { flex-basis: calc((100% - 3 * 1.4rem) / 4); } }
@media (max-width: 575.98px){ .ql-cat-item { flex-basis: calc((100% - 2 * 1.4rem) / 3); } .ql-catrow-nav { display: none; } }

/* ── Ad card ─────────────────────────────────────────────────────────── */
.ql-card { background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); overflow: hidden; height: 100%; transition: .16s; position: relative; display: block; color: var(--ql-ink); }
.ql-card:hover { box-shadow: var(--ql-shadow); transform: translateY(-3px); border-color: var(--ql-primary-100); color: var(--ql-ink); }
/* Fixed 4/3 frame; images always fill via cover (never stretched/letterboxed). */
.ql-card-media { position: relative; aspect-ratio: 4/3; background: #f2f4f7; overflow: hidden; }
/* Direct child only — must not match the seller badge's nested avatar <img>. */
.ql-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .3s; }
.ql-card:hover .ql-card-media > img { transform: scale(1.04); }
.ql-card-body { padding: .85rem .95rem 1rem; }
.ql-card-price { font-weight: 800; font-size: 1.18rem; color: var(--ql-ink); }
.ql-card-title { color: var(--ql-ink); font-weight: 500; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }
.ql-card-meta { color: var(--ql-muted); font-size: .8rem; margin-top: .5rem; }
.ql-card-meta .loc { max-width: 60%; }
.ql-badge-feat { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--ql-primary); color: #fff; font-size: .66rem; font-weight: 700; padding: .22rem .55rem; border-radius: 6px; display: inline-flex; align-items: center; gap: 3px; box-shadow: 0 2px 6px rgba(var(--ql-primary-rgb), .4); }
.ql-fav-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); border: none; display: grid; place-items: center; color: var(--ql-muted); box-shadow: var(--ql-shadow-sm); transition: .15s; }
.ql-fav-btn:hover, .ql-fav-btn.active { color: #ef4444; transform: scale(1.08); }
/* Seller badge overlay on card images */
.ql-seller-badge { position: absolute; bottom: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; background: rgba(21,22,31,.66); backdrop-filter: blur(3px); color: #fff; font-size: .72rem; font-weight: 600; padding: .22rem .6rem .22rem .25rem; border-radius: 999px; max-width: 78%; }
.ql-seller-badge img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--ql-primary-050); flex: 0 0 22px; }
.ql-seller-badge .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql-seller-badge .vch { color: #5ad0ff; font-size: .82rem; flex: 0 0 auto; }
.ql-seller-badge.pending { display: none; }
.ql-seller-badge[role="link"] { cursor: pointer; transition: background .15s; }
.ql-seller-badge[role="link"]:hover { background: rgba(21,22,31,.85); }
.ql-seller-link { display: block; cursor: pointer; text-decoration: none; }
.ql-seller-link:hover .nm { text-decoration: underline; }
/* Highlight chips on cards (from admin's category custom fields) */
.ql-card-tags { display: flex; gap: .35rem; margin-top: .5rem; overflow: hidden; }
.ql-tagchip { font-size: .64rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--ql-bg); border: 1px solid var(--ql-line); border-radius: 6px; padding: .2rem .5rem; color: var(--ql-muted); white-space: nowrap; }
.ql-tagchip.more { background: var(--ql-primary-050); border-color: var(--ql-primary-100); color: var(--ql-primary); }
.ql-card-tags-accent { margin-top: .3rem; flex-wrap: wrap; }
.ql-tagchip.tag { background: var(--ql-primary-050); border-color: var(--ql-primary-100); color: var(--ql-primary-700); }
.ql-tagchip.tag.more { background: var(--ql-primary-100); }
/* subcategory quick-select pills (search / category page) */
.ql-subpill { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .95rem; border-radius: 999px; background: var(--ql-bg); color: var(--ql-ink); font-weight: 600; font-size: .85rem; border: 1px solid var(--ql-line); white-space: nowrap; text-decoration: none; }
.ql-subpill:hover { border-color: var(--ql-primary-100); background: var(--ql-primary-050); color: var(--ql-primary); }
.ql-subpill.active { background: var(--ql-primary); border-color: var(--ql-primary); color: #fff; }
.ql-subpill img { width: 16px; height: 16px; object-fit: contain; }
/* Custom-field row on the detail page: icon chip + label/value */
.ql-detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .25rem; }
.ql-tagpill { display: inline-flex; align-items: center; gap: .15rem; font-size: .8rem; font-weight: 600; background: var(--ql-primary-050); border: 1px solid var(--ql-primary-100); color: var(--ql-primary-700); border-radius: 999px; padding: .3rem .75rem; }
.ql-tagpill i { font-size: .9rem; }
.ql-cf { display: flex; align-items: center; gap: .65rem; }
.ql-cf-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--ql-primary-050); border: 1px solid var(--ql-primary-100); display: grid; place-items: center; }
.ql-cf-ic img { width: 22px; height: 22px; object-fit: contain; }

/* horizontal scroll rows for sections — fixed-width cards, never stretch */
.ql-scrollrow { display: grid; grid-auto-flow: column; grid-auto-columns: 216px; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.ql-scrollrow::-webkit-scrollbar { display: none; }
@media (max-width: 575px){ .ql-scrollrow { grid-auto-columns: 158px; } }
/* subscription plan tabs (pills) */
.ql-plan-tabs { gap: .5rem; }
.ql-plan-tabs .nav-link { color: var(--ql-ink); background: var(--ql-primary-050); border-radius: 999px; padding: .55rem 1.5rem; font-weight: 600; }
.ql-plan-tabs .nav-link:hover { color: var(--ql-primary); }
.ql-plan-tabs .nav-link.active { background: var(--ql-primary); color: #fff; }

/* ── Menu items (header account dropdown + account sidebar) — brand colors
      instead of Bootstrap's default blue on hover/click ────────────────────── */
.dropdown-item:hover:not(.text-danger), .dropdown-item:focus:not(.text-danger) { background: var(--ql-primary-050); color: var(--ql-primary); }
.dropdown-item:active { background: var(--ql-primary); color: #fff; }
.dropdown-item.text-danger:hover, .dropdown-item.text-danger:focus { background: #fef2f2; }
.ql-panel .list-group-item-action:hover:not(.text-danger), .ql-panel .list-group-item-action:focus:not(.text-danger) { background: var(--ql-primary-050); color: var(--ql-primary); }
.ql-panel .list-group-item.active { background: var(--ql-primary); border-color: var(--ql-primary); color: #fff; }
.ql-panel .list-group-item-action.text-danger:hover, .ql-panel .list-group-item-action.text-danger:focus { background: #fef2f2; }

/* Ad slot — neutral, unique class name (avoids ad-blockers AND the .ql-promo
   component). Collapses to nothing when ads are disabled (empty). */
.ql-mktg { min-height: 0; text-align: center; overflow: hidden; }
.ql-mktg:empty { display: none; }
/* temporary placeholder shown when a slot has no real ad yet — the original
   full-width, centered look with a soft diagonal hatch. */
.ql-mktg-ph { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 90px;
    border: 1px dashed var(--ql-line); border-radius: 12px; color: var(--ql-muted);
    background: repeating-linear-gradient(45deg, #fafafc, #fafafc 10px, #f4f4f8 10px, #f4f4f8 20px);
    font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ql-mktg-ph i { font-size: 1.05rem; }

/* ── Loader (global overlay + inline section) ───────────────────────────── */
.ql-loader { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
    background: rgba(255, 255, 255, .38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: opacity .45s ease, visibility .45s ease; }
.ql-loader.ql-loader-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.ql-loader-box { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
/* Ring + brand derive entirely from the theme color (var(--ql-primary), set from
   the admin panelColor) — no hardcoded hues — so the loader matches the theme. */
.ql-loader-ring { position: relative; width: 68px; height: 68px; border-radius: 50%;
    background: conic-gradient(from 90deg, var(--ql-primary) 0%, color-mix(in srgb, var(--ql-primary) 35%, #fff) 45%, transparent 78%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px));
    animation: ql-spin .85s linear infinite; }
.ql-loader-ring::after { content: ''; position: absolute; top: 0; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--ql-primary); transform: translateX(-50%); }
@keyframes ql-spin { to { transform: rotate(360deg); } }
.ql-loader-brand { font-weight: 800; font-size: 1.05rem; color: var(--ql-primary);
    animation: ql-pulse 1.3s ease-in-out infinite; }
@keyframes ql-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.ql-loader-inline { display: grid; place-items: center; gap: 1rem; padding: 4.5rem 1rem; min-height: 300px; }
.ql-loader-inline .ql-loader-ring { width: 56px; height: 56px; }
.ql-loader-hint { color: var(--ql-muted); font-size: .85rem; }

/* "report this ad" card (detail sidebar) */
.ql-report { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border: 1px solid var(--ql-line); border-radius: 14px; background: linear-gradient(180deg, #fff, #fff7f7); }
.ql-report-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: #fef2f2; color: #ef4444; font-size: 1.05rem; }
.ql-report-btn { white-space: nowrap; }

/* distance radius range slider (search sidebar) */
.ql-dist-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; outline: none; cursor: pointer;
    background: var(--ql-line); background-image: linear-gradient(var(--ql-primary), var(--ql-primary)); background-repeat: no-repeat; background-size: var(--pct, 100%) 100%; }
.ql-dist-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ql-primary); border: 3px solid #fff; box-shadow: var(--ql-shadow-sm); cursor: pointer; }
.ql-dist-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ql-primary); border: 3px solid #fff; box-shadow: var(--ql-shadow-sm); cursor: pointer; }

/* feature section — 3-per-view slider (horizontal_scroll style) */
.ql-fs-slider { position: relative; }
.ql-scrollrow.ql-fs-track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); scroll-snap-type: x proximity; cursor: grab; scrollbar-width: none; }
.ql-scrollrow.ql-fs-track::-webkit-scrollbar { display: none; }
.ql-scrollrow.ql-fs-track > * { scroll-snap-align: start; }
.ql-scrollrow.ql-fs-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.ql-scrollrow.ql-fs-track.dragging a, .ql-scrollrow.ql-fs-track.dragging img { pointer-events: none; }
.ql-fs-dots { display: flex; justify-content: center; gap: 7px; margin-top: 1rem; }
.ql-fs-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--ql-line); transition: all .2s; }
.ql-fs-dots button.active { background: var(--ql-primary); width: 22px; border-radius: 4px; }
.ql-fs-arrow { position: absolute; top: 38%; z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--ql-line); box-shadow: var(--ql-shadow); color: var(--ql-ink); display: grid; place-items: center; font-size: 1.05rem; }
.ql-fs-arrow:hover { color: var(--ql-primary); border-color: var(--ql-primary-100); }
.ql-fs-arrow.prev { left: -14px; }
.ql-fs-arrow.next { right: -14px; }
@media (max-width: 991.98px){ .ql-scrollrow.ql-fs-track { grid-auto-columns: calc((100% - 1rem) / 2); } .ql-fs-arrow { display: none; } }
@media (max-width: 575.98px){ .ql-scrollrow.ql-fs-track { grid-auto-columns: 80%; } }
/* feature section — full-width banner (carousel of large ad banners) */
/* clip the slides (rounded corners) on the inner element so the edge arrows,
   which are siblings, aren't clipped and can sit on the edge like the slider */
.ql-fsbanner-carousel { position: relative; border-radius: var(--ql-radius); box-shadow: 0 8px 28px rgba(var(--ql-primary-rgb), .10); }
.ql-fsbanner-carousel .carousel-inner { border-radius: var(--ql-radius); overflow: hidden; }
.ql-fsbanner { display: block; position: relative; height: 320px; text-decoration: none; }
.ql-fsbanner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* white round arrow buttons at the banner edges — matches the feature slider */
.ql-fsbanner-carousel .carousel-control-prev, .ql-fsbanner-carousel .carousel-control-next { width: 40px; opacity: 1; z-index: 3; }
.ql-fsbanner-carousel .carousel-control-prev { left: -14px; }
.ql-fsbanner-carousel .carousel-control-next { right: -14px; }
.ql-fsbanner-carousel .carousel-control-prev-icon, .ql-fsbanner-carousel .carousel-control-next-icon { width: 40px; height: 40px; border-radius: 50%; background-color: #fff; background-size: 42% 42%; box-shadow: 0 2px 10px rgba(0,0,0,.28); transition: color .15s, background-color .15s; }
.ql-fsbanner-carousel .carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2311121c'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3e%3c/svg%3e"); }
.ql-fsbanner-carousel .carousel-control-next-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2311121c'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e"); }
.ql-fsbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,18,28,.72) 0%, rgba(17,18,28,.35) 45%, rgba(17,18,28,0) 72%); }
.ql-fsbanner-cap { position: absolute; left: 0; bottom: 0; z-index: 2; color: #fff; padding: 1.6rem 2rem; max-width: 66%; }
.ql-fsbanner-cap .ql-badge-feat { position: static; margin-bottom: .5rem; }
.ql-fsbanner-cap .t { font-size: 1.55rem; font-weight: 800; line-height: 1.2; margin: .35rem 0; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.ql-fsbanner-cap .p { font-size: 1.2rem; font-weight: 700; margin-bottom: .85rem; }
.ql-fsbanner-btn { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--ql-primary-700); font-weight: 700; font-size: .88rem; padding: .5rem 1.05rem; border-radius: 999px; }
@media (max-width: 575px){ .ql-fsbanner { height: 210px; } .ql-fsbanner-cap { padding: 1rem 1.1rem; max-width: 90%; } .ql-fsbanner-cap .t { font-size: 1.12rem; } .ql-fsbanner-cap .p { font-size: 1rem; } }

/* ── Promo bands ─────────────────────────────────────────────────────── */
.ql-promo { border-radius: var(--ql-radius); overflow: hidden; position: relative; padding: 1.8rem 2rem; display: flex; align-items: center; min-height: 150px; }
.ql-promo h4 { font-weight: 800; letter-spacing: -.01em; }
.ql-promo.blue { background: var(--ql-blue-soft); }
.ql-promo.peach { background: var(--ql-peach-soft); }
.ql-promo.mint { background: var(--ql-mint-soft); }
.ql-promo .ql-promo-img { position: absolute; right: 1rem; bottom: 0; max-height: 145px; }
.ql-cta-band { border-radius: var(--ql-radius); background: linear-gradient(100deg, #ff8a4c, #ff6a3d); color: #fff; }

/* ── Detail page ─────────────────────────────────────────────────────── */
.ql-gallery-main { position: relative; aspect-ratio: 16/11; background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); overflow: hidden; }
.ql-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.ql-gal-zoom { width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; }
.ql-gal-zoom img { transition: transform .12s ease-out; }
.ql-gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--ql-line); box-shadow: var(--ql-shadow-sm); display: grid; place-items: center; color: var(--ql-ink); font-size: 1.1rem; cursor: pointer; transition: color .15s; }
.ql-gal-arrow:hover { color: var(--ql-primary); border-color: var(--ql-primary-100); }
.ql-gal-arrow.prev { left: 10px; } .ql-gal-arrow.next { right: 10px; }
.ql-gallery-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 3; }
.ql-gaction { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--ql-line); box-shadow: var(--ql-shadow-sm); display: grid; place-items: center; color: var(--ql-ink); font-size: 1.05rem; cursor: pointer; transition: .15s; }
.ql-gaction:hover { color: var(--ql-primary); border-color: var(--ql-primary-100); }
.ql-gaction.active { color: #e11d48; border-color: #e11d48; }
.ql-thumb { width: 72px; height: 60px; border-radius: 8px; object-fit: cover; border: 2px solid transparent; cursor: pointer; }
.ql-thumb.active { border-color: var(--ql-primary); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.ql-footer { background: #0c1020; color: #9aa3b8; padding: 3.5rem 0 1.5rem; margin-top: 3.5rem; }
.ql-footer a { color: #c3cad9; }
.ql-footer a:hover { color: #fff; }
.ql-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.ql-social { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.22); color: #cdd4e4; transition: .15s; text-decoration: none; }
.ql-social:hover { background: var(--ql-primary); border-color: var(--ql-primary); color: #fff; transform: translateY(-2px); }

/* ── Search: list/grid view + list card ──────────────────────────────── */
.ql-viewtoggle .btn { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .6rem; }
.ql-viewtoggle .btn.active { background: var(--ql-primary); border-color: var(--ql-primary); color: #fff; }
.ql-listcard { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); overflow: hidden; transition: .15s; color: var(--ql-ink); }
.ql-listcard:hover { box-shadow: var(--ql-shadow); border-color: var(--ql-primary-100); color: var(--ql-ink); }
.ql-listcard-media { position: relative; width: 220px; flex: 0 0 220px; aspect-ratio: 4/3; background: #f2f4f7; overflow: hidden; }
.ql-listcard-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ql-listcard-body { padding: 1rem 1.1rem; flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 575px){ .ql-listcard-media { width: 130px; flex-basis: 130px; } }
.ql-filter-group { border-top: 1px solid var(--ql-line); }
.ql-filter-group summary { list-style: none; cursor: pointer; font-weight: 700; padding: .9rem 0 .6rem; display: flex; justify-content: space-between; align-items: center; }
.ql-filter-group summary::-webkit-details-marker { display: none; }
.ql-filter-group[open] summary .bi-chevron-down { transform: rotate(180deg); }

/* ── Utilities ───────────────────────────────────────────────────────── */
.ql-skeleton { background: linear-gradient(90deg,#eef0f4 25%,#e3e6ec 37%,#eef0f4 63%); background-size: 400% 100%; animation: ql-shimmer 1.2s infinite; border-radius: 8px; }
@keyframes ql-shimmer { 0% { background-position: 100% 0 } 100% { background-position: -100% 0 } }
.ql-empty { text-align: center; color: var(--ql-muted); padding: 3rem 1rem; }
.ql-empty i { font-size: 2.5rem; opacity: .35; display: block; margin-bottom: .5rem; }
.cursor-pointer { cursor: pointer; }
.min-w-0 { min-width: 0; }

/* ── Popup dialog (App.popup) ────────────────────────────────────────── */
.ql-pop-dialog { max-width: 440px; }
.ql-pop { border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(20,16,40,.22); }
.ql-pop .modal-body { padding: 1.75rem 2rem !important; }
.ql-pop-msg { font-size: .95rem; line-height: 1.55; }
.ql-pop-ic { width: 66px; height: 66px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; }
.ql-pop-error   .ql-pop-ic { background: #fdecec; color: #dc3545; }
.ql-pop-success .ql-pop-ic { background: #e8f7ee; color: #16a34a; }
.ql-pop-warning .ql-pop-ic { background: #fff5e5; color: #f59e0b; }
.ql-pop-info    .ql-pop-ic { background: var(--ql-primary-050); color: var(--ql-primary); }
.ql-pop-title { font-size: 1.1rem; }
.ql-pop-msg { font-size: .95rem; line-height: 1.5; }

/* ── Checkout ────────────────────────────────────────────────────────── */
.ql-checkout { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 992px){ .ql-checkout { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1400px){ .ql-checkout { padding-left: 4rem; padding-right: 4rem; } }
.ql-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 600;
    color: var(--ql-muted); text-decoration: none; margin-bottom: 1rem; transition: color .15s; }
.ql-back:hover { color: var(--ql-primary); }
.ql-checkout-head-row h1 { font-size: 2rem; }
.ql-pay-panel { padding: 1.5rem; }
@media (min-width: 768px){ .ql-pay-panel { padding: 1.9rem; } }
.ql-pay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.ql-secure-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700;
    color: #16a34a; background: #e8f7ee; padding: .32rem .65rem; border-radius: 999px; }

/* payment-method tiles — fills the row, more columns as width grows */
.ql-paygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (min-width: 1200px){ .ql-paygrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767.98px){ .ql-paygrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px){ .ql-paygrid { grid-template-columns: 1fr; } }
.ql-paymethod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    justify-content: center; gap: .55rem; margin: 0; min-height: 116px; padding: 1rem .6rem;
    border: 1.5px solid var(--ql-line); border-radius: 14px; cursor: pointer; background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .1s; }
.ql-paymethod:hover { border-color: var(--ql-primary-100); box-shadow: var(--ql-shadow-sm); transform: translateY(-2px); }
.ql-paymethod:active { transform: scale(.99); }
.ql-paymethod.active { border-color: var(--ql-primary); box-shadow: 0 0 0 3px var(--ql-primary-050); background: var(--ql-primary-050); }
.ql-paymethod input { position: absolute; opacity: 0; pointer-events: none; }
.ql-paymethod-ic { display: grid; place-items: center; width: 72px; height: 42px; flex: 0 0 42px;
    background: transparent; border: 0; color: var(--ql-primary); font-size: 1.35rem; overflow: hidden; }
.ql-paymethod-ic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ql-paymethod-txt { min-width: 0; width: 100%; }
.ql-paymethod .fw-semibold { font-size: .88rem; line-height: 1.2; }
.ql-paymethod .text-muted.small { font-size: .7rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ql-paymethod-check { position: absolute; top: .5rem; right: .55rem; color: var(--ql-primary); font-size: 1.1rem; opacity: 0; transform: scale(.6); transition: .15s; }
.ql-paymethod.active .ql-paymethod-check { opacity: 1; transform: scale(1); }
.ql-paycur { display: inline-flex; align-items: center; gap: .25rem; margin-top: .3rem; font-size: .66rem; font-weight: 700;
    color: #b45309; background: #fff7ed; border: 1px solid #fde4c8; border-radius: 6px; padding: .12rem .4rem; }
.ql-paycur-note { font-size: .78rem; line-height: 1.45; color: #92400e; background: #fff7ed; border: 1px solid #fde4c8;
    border-radius: 10px; padding: .6rem .8rem; margin-top: 1rem; }
.ql-paycur-note i { color: #d97706; }
.ql-pay-btn { margin-top: 1.4rem; border-radius: 12px; font-weight: 700; padding: .85rem; }
.ql-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.1rem; margin-top: 1rem;
    color: var(--ql-muted); font-size: .74rem; }
.ql-trust span { display: inline-flex; align-items: center; gap: .3rem; }
.ql-trust i { color: #16a34a; }

/* order-summary card — full plan details + pricing */
.ql-summary { padding: 1.6rem; position: sticky; top: 90px; }
.ql-summary-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; color: var(--ql-muted); margin-bottom: 1rem; }
.ql-summary-plan { display: flex; align-items: center; gap: .8rem; }
.ql-summary-planicon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    background: var(--ql-primary-050); color: var(--ql-primary); font-size: 1.4rem; overflow: hidden; }
.ql-summary-planicon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ql-summary-planname { font-weight: 700; font-size: 1.05rem; }
.ql-summary-badge { margin-left: auto; align-self: flex-start; font-size: .66rem; font-weight: 800; letter-spacing: .03em;
    color: #16a34a; background: #e8f7ee; padding: .28rem .5rem; border-radius: 7px; white-space: nowrap; }
.ql-summary-desc { font-size: .84rem; color: var(--ql-muted); margin: .9rem 0 0; line-height: 1.5; }
.ql-summary-block { margin-top: 1.15rem; }
.ql-summary-label { text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; font-weight: 700; color: var(--ql-muted); margin-bottom: .55rem; }
.ql-summary-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ql-summary-feats li { display: flex; align-items: flex-start; gap: .5rem; font-size: .86rem; color: var(--ql-ink); }
.ql-summary-feats i { color: #16a34a; margin-top: .15rem; }
.ql-summary-rows { border-top: 1px dashed var(--ql-line); padding-top: 1rem; margin-top: 1.3rem; }
.ql-summary-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ql-muted); margin-bottom: .45rem; }
.ql-summary-row-off { color: #16a34a; font-weight: 600; }
.ql-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .9rem; margin-top: .5rem;
    border-top: 1px solid var(--ql-line); font-weight: 800; }
.ql-summary-total span:last-child { font-size: 1.6rem; color: var(--ql-primary); }
.ql-summary-note { font-size: .74rem; color: var(--ql-muted); margin: 1rem 0 0; display: flex; align-items: flex-start; gap: .35rem; }

/* ── My Ads status tabs ──────────────────────────────────────────────── */
.ql-adtabs { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--ql-line); }
.ql-adtabs .nav-link { display: inline-flex; align-items: center; gap: .4rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ql-muted); font-weight: 600; font-size: .9rem; padding: .6rem .9rem; cursor: pointer; margin-bottom: -1px; }
.ql-adtabs .nav-link:hover { color: var(--ql-ink); }
.ql-adtabs .nav-link.active { color: var(--ql-ink); border-bottom-color: var(--ql-primary); }
.ql-adtab-count { font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--ql-line); color: var(--ql-muted); }
.ql-adtabs .nav-link.active .ql-adtab-count { background: var(--ql-primary); color: #fff; }

/* ── My subscriptions ────────────────────────────────────────────────── */
.ql-activeplan { border: 2px solid var(--ql-primary); }
.ql-usage { margin-top: 1.2rem; display: grid; gap: .85rem; }
.ql-usage-bar { height: 7px; border-radius: 99px; background: var(--ql-primary-050); overflow: hidden; }
.ql-usage-bar span { display: block; height: 100%; background: var(--ql-primary); border-radius: 99px; transition: width .3s; }
.ql-histcard th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ql-muted); font-weight: 700; }
.ql-histcard td, .ql-histcard th { padding: .8rem 1rem; white-space: nowrap; }

/* ============================================================================
   REDESIGN v2 — inspired by DTClassified, improved, purple brand
   ========================================================================== */

/* ── Header refinements ──────────────────────────────────────────────── */
.ql-loc-pill { display:inline-flex; align-items:center; gap:.4rem; height:54px; border:1.5px solid var(--ql-line); border-radius:14px; padding:0 1rem; color:var(--ql-ink); font-weight:600; white-space:nowrap; background:#fff; cursor:pointer; }
.ql-loc-pill:hover { border-color:var(--ql-primary); color:var(--ql-primary); }
.ql-loc-pill i { color:var(--ql-primary); }
.ql-loc-suggest { position:absolute; left:0; right:0; top:calc(100% + 2px); z-index:1060; background:#fff; border:1px solid var(--ql-line); border-radius:10px; box-shadow:var(--ql-shadow); max-height:232px; overflow-y:auto; }
.ql-loc-sug-item { padding:.45rem .65rem; font-size:.85rem; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ql-loc-sug-item:hover { background:var(--ql-primary-050); color:var(--ql-primary); }
.ql-icon-btn { width:42px; height:42px; border-radius:50%; display:inline-grid; place-items:center; border:1.5px solid var(--ql-line); background:#fff; color:var(--ql-ink); position:relative; transition:.15s; }
.ql-icon-btn:hover { border-color:var(--ql-primary); color:var(--ql-primary); }
.ql-icon-btn .ql-dot { position:absolute; top:-2px; right:-2px; min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:var(--ql-primary); color:#fff; font-size:.62rem; font-weight:700; display:grid; place-items:center; }

/* ── Notification bell dropdown + feed (header + notifications page) ─────── */
.ql-notif-menu { width:340px; max-width:92vw; }
.ql-notif-list { max-height:380px; overflow-y:auto; }
.ql-notif-item { display:flex; gap:.7rem; padding:.7rem .9rem; border-bottom:1px solid var(--ql-line); text-decoration:none; color:var(--ql-ink); cursor:pointer; transition:background .12s; }
.ql-notif-item:last-child { border-bottom:0; }
.ql-notif-item:hover { background:var(--ql-primary-050); }
.ql-notif-item.unread { background:color-mix(in srgb, var(--ql-primary) 7%, #fff); }
.ql-notif-item.unread .ql-notif-title { font-weight:700; }
.ql-notif-ic { flex:0 0 38px; width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background:var(--ql-primary-050); color:var(--ql-primary); font-size:1.05rem; }
.ql-notif-txt { min-width:0; display:flex; flex-direction:column; gap:1px; }
.ql-notif-title { font-size:.86rem; font-weight:600; line-height:1.25; }
.ql-notif-body { font-size:.8rem; color:var(--ql-muted); overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ql-notif-time { font-size:.68rem; color:var(--ql-muted); margin-top:2px; }

/* ── Language switcher ───────────────────────────────────────────────── */
.ql-lang-btn { display:inline-flex; align-items:center; gap:.45rem; height:42px; border:1.5px solid var(--ql-line); border-radius:999px; padding:0 .85rem; background:#fff; color:var(--ql-ink); font-weight:600; white-space:nowrap; cursor:pointer; transition:.15s; }
.ql-lang-btn:hover { border-color:var(--ql-primary); color:var(--ql-primary); }
.ql-lang-btn .ql-lang-flag { width:22px; height:16px; object-fit:cover; border-radius:3px; box-shadow:0 0 0 1px rgba(0,0,0,.06); }
.ql-lang-menu { min-width:190px; padding:.35rem; max-height:340px; overflow-y:auto; }
.ql-lang-item { border-radius:9px; padding:.5rem .6rem; font-weight:600; }
.ql-lang-item .ql-lang-flag { width:22px; height:16px; object-fit:cover; border-radius:3px; box-shadow:0 0 0 1px rgba(0,0,0,.06); }
.ql-lang-item:hover { background:var(--ql-primary-050); color:var(--ql-primary); }
.ql-lang-item.active { background:var(--ql-primary-050); color:var(--ql-primary); }

/* ── Hero v2 (centered, stats) ───────────────────────────────────────── */
.ql-hero2 { position:relative; overflow:hidden; border-radius:24px; background:
    radial-gradient(60% 90% at 15% 10%, rgba(var(--ql-primary-rgb), .14), transparent 60%),
    radial-gradient(50% 80% at 90% 20%, rgba(var(--ql-primary-rgb), .12), transparent 55%),
    linear-gradient(180deg, #fff, var(--ql-primary-050)); border:1px solid var(--ql-line); padding:3.2rem 1rem 2.4rem; text-align:center; }
.ql-hero2 h1 { font-weight:800; font-size:2.7rem; letter-spacing:-.03em; line-height:1.08; margin-bottom:.6rem; }
.ql-hero2 h1 .accent { color:var(--ql-primary); }
.ql-hero2 .lead { color:var(--ql-muted); max-width:560px; margin:0 auto 1.4rem; }
.ql-hero2-eyebrow { display:inline-flex; align-items:center; gap:.4rem; background:#fff; border:1px solid var(--ql-primary-100); color:var(--ql-primary); font-weight:700; font-size:.78rem; padding:.35rem .8rem; border-radius:999px; margin-bottom:1rem; }
.ql-hero2-search { max-width:720px; margin:0 auto; background:#fff; border:1px solid var(--ql-line); border-radius:16px; box-shadow:var(--ql-shadow); padding:.5rem; display:flex; gap:.5rem; align-items:center; }
.ql-hero2-search .form-select, .ql-hero2-search .form-control { border:0; box-shadow:none !important; }
.ql-hero2-search .divider { width:1px; height:28px; background:var(--ql-line); }
@media (max-width:640px){ .ql-hero2 h1 { font-size:1.9rem; } .ql-hero2-search { flex-wrap:wrap; } }
.ql-tags { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; margin-top:1rem; }
.ql-tag { background:#fff; border:1px solid var(--ql-line); border-radius:999px; padding:.3rem .8rem; font-size:.8rem; font-weight:600; color:var(--ql-ink); }
.ql-tag:hover { border-color:var(--ql-primary); color:var(--ql-primary); }
.ql-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:0; max-width:720px; margin:2rem auto 0; background:#fff; border:1px solid var(--ql-line); border-radius:16px; padding:1.1rem 0; box-shadow:var(--ql-shadow-sm); }
.ql-stat { text-align:center; border-right:1px solid var(--ql-line); }
.ql-stat:last-child { border-right:0; }
.ql-stat .num { font-weight:800; font-size:1.5rem; letter-spacing:-.02em; color:var(--ql-primary); }
.ql-stat .lbl { color:var(--ql-muted); font-size:.78rem; font-weight:600; }
@media (max-width:640px){ .ql-stats { grid-template-columns:repeat(2,1fr); row-gap:1rem; } .ql-stat:nth-child(2){ border-right:0; } }

/* ── Section headers ─────────────────────────────────────────────────── */
.ql-sec-eyebrow { color:var(--ql-primary); font-weight:800; font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; }
.ql-sec-head { display:flex; align-items:end; justify-content:space-between; margin-bottom:1.1rem; gap:1rem; }
.ql-sec-head h2 { font-weight:800; letter-spacing:-.02em; font-size:1.65rem; margin:0; }

/* ── Featured hero card (big) ────────────────────────────────────────── */
.ql-feat { position:relative; border-radius:var(--ql-radius); overflow:hidden; min-height:400px; display:block; color:#fff; }
.ql-feat:hover, .ql-feat:hover * { color:#fff; }
.ql-feat:hover img { transform:scale(1.03); }
.ql-feat img { transition:transform .3s; }
.ql-feat img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ql-feat::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78)); }
.ql-feat-body { position:absolute; left:0; right:0; bottom:0; padding:1.4rem; z-index:2; }
.ql-feat-body .cat { background:var(--ql-primary); color:#fff; font-size:.68rem; font-weight:700; padding:.2rem .6rem; border-radius:6px; display:inline-block; margin-bottom:.5rem; }
.ql-feat-body h3 { font-weight:800; font-size:1.4rem; margin:0; }
.ql-feat-body .price { font-weight:800; font-size:1.3rem; margin-top:.2rem; }

/* ── Bento (browse by category) ──────────────────────────────────────── */
.ql-bento { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.ql-bento-tile { position:relative; border-radius:var(--ql-radius); overflow:hidden; min-height:210px; display:block;
    color:var(--ql-ink); background:linear-gradient(140deg, var(--ql-primary-050) 0%, #ffffff 75%); border:1px solid var(--ql-line); transition:.16s; }
.ql-bento-tile:hover { box-shadow:var(--ql-shadow); transform:translateY(-3px); border-color:var(--ql-primary-100); color:var(--ql-ink); }
.ql-bento-tile.wide { grid-column:span 2; }
.ql-bento-tile::after { content:""; position:absolute; right:-46px; bottom:-46px; width:170px; height:170px; border-radius:50%; background:rgba(var(--ql-primary-rgb), .07); }
.ql-bento-body { position:relative; z-index:2; padding:1.4rem; display:flex; flex-direction:column; justify-content:space-between; height:100%; gap:1rem; }
.ql-bento-ic { width:72px; height:72px; border-radius:16px; background:#fff; border:1px solid var(--ql-line); display:grid; place-items:center; box-shadow:var(--ql-shadow-sm); }
.ql-bento-ic img { width:46px; height:46px; object-fit:contain; }
.ql-bento-ic i { font-size:1.8rem; color:var(--ql-primary); }
.ql-bento-body h4 { font-weight:800; margin:0; font-size:1.15rem; }
.ql-bento-body .cnt { font-size:.82rem; color:var(--ql-muted); }
.ql-bento-body .go { margin-top:.45rem; font-size:.82rem; font-weight:700; color:var(--ql-primary); }
@media (max-width:900px){ .ql-bento { grid-template-columns:repeat(2,1fr); } .ql-bento-tile.wide { grid-column:span 2; } }

/* ── How it works ────────────────────────────────────────────────────── */
.ql-step { background:#fff; border:1px solid var(--ql-line); border-radius:var(--ql-radius); padding:1.5rem; height:100%; }
.ql-step .n { color:var(--ql-primary); font-weight:800; font-size:.78rem; letter-spacing:.06em; }
.ql-step .ic { width:48px; height:48px; border-radius:12px; background:var(--ql-primary-050); color:var(--ql-primary); display:grid; place-items:center; font-size:1.4rem; margin-bottom:.9rem; }
.ql-step h5 { font-weight:800; margin:0 0 .3rem; }
.ql-step p { color:var(--ql-muted); font-size:.88rem; margin:0; }

/* ── Dark CTA band v2 ────────────────────────────────────────────────── */
.ql-cta2 { background:linear-gradient(120deg, var(--ql-dark), #2a1c4d); color:#fff; border-radius:20px; padding:2.4rem; }
.ql-cta2 h3 { font-weight:800; letter-spacing:-.02em; }
.ql-cta2 .testimonial { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:1.1rem; }

/* ── VIP / Featured (boosted) listings band ──────────────────────────── */
.ql-vip { display:grid; grid-template-columns:290px 1fr; gap:1rem; align-items:stretch; }
.ql-vip-promo { background:linear-gradient(150deg, var(--ql-primary), var(--ql-primary-700)); color:#fff; border-radius:var(--ql-radius); padding:1.6rem; display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.ql-vip-promo::after { content:""; position:absolute; right:-40px; bottom:-40px; width:160px; height:160px; border-radius:50%; background:rgba(255,255,255,.10); }
.ql-vip-promo .badge { align-self:flex-start; }
.ql-vip-promo h3 { font-weight:800; letter-spacing:-.02em; position:relative; z-index:2; }
.ql-vip-promo p { position:relative; z-index:2; }
.ql-vip-scroll { min-width:0; }
/* Featured cards match the size of grid cards (col-lg-3 ≈ 320px). */
.ql-vip .ql-scrollrow { grid-auto-columns: 320px; }
@media (max-width:768px){ .ql-vip { grid-template-columns:1fr; } .ql-vip .ql-scrollrow { grid-auto-columns: 220px; } }

/* ── Location permission modal (first visit) ─────────────────────────── */
.ql-locmodal { position:fixed; inset:0; z-index:2000; background:rgba(21,22,31,.55); display:flex; align-items:center; justify-content:center; padding:1rem; }
.ql-locmodal-card { background:#fff; border-radius:22px; max-width:440px; width:100%; padding:2.4rem 2rem; text-align:center; box-shadow:0 24px 60px rgba(0,0,0,.28); animation:qlpop .22s ease; }
@keyframes qlpop { from{transform:scale(.94);opacity:0} to{transform:scale(1);opacity:1} }
.ql-locmodal-pin { width:82px; height:82px; margin:0 auto 1.3rem; border-radius:50%; background:var(--ql-primary); color:#fff; display:grid; place-items:center; font-size:2rem; position:relative; }
.ql-locmodal-pin::before, .ql-locmodal-pin::after { content:""; position:absolute; border-radius:50%; border:2px solid var(--ql-primary-100); inset:-9px; }
.ql-locmodal-pin::after { inset:-18px; opacity:.55; }
.ql-locmodal-card h4 { font-weight:800; letter-spacing:-.01em; }
.ql-locmodal-card p { color:var(--ql-muted); }

/* ── Header search suggestions ───────────────────────────────────────── */
.ql-suggest { position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff; border:1px solid var(--ql-line); border-radius:14px; box-shadow:var(--ql-shadow); overflow:hidden; z-index:1040; }
.ql-suggest-item { display:flex; align-items:center; gap:.65rem; padding:.7rem 1rem; color:var(--ql-ink); font-weight:500; border-bottom:1px solid var(--ql-line); }
.ql-suggest-item:last-child { border-bottom:0; }
.ql-suggest-item:hover { background:var(--ql-primary-050); color:var(--ql-ink); }

/* ── Hero tag rows: aligned label + tags ─────────────────────────────── */
.ql-tags { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; align-items:center; margin-top:1rem; }
.ql-tags .ql-tags-label { color:var(--ql-muted); font-size:.82rem; font-weight:600; margin-right:.25rem; display:inline-flex; align-items:center; gap:.3rem; }

/* ── Promo banner (slider) v2 ────────────────────────────────────────── */
.ql-banner { border-radius:18px; overflow:hidden; box-shadow:var(--ql-shadow); position:relative; }
.ql-banner .carousel-item { position:relative; }
.ql-banner .carousel-item img { width:100%; height:320px; object-fit:cover; display:block; }
.ql-banner .carousel-item::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); pointer-events:none; }
.ql-banner .carousel-indicators { margin-bottom:.9rem; }
.ql-banner .carousel-indicators [data-bs-target] { width:26px; height:5px; border-radius:3px; background:#fff; opacity:.45; border:0; transition:.2s; }
.ql-banner .carousel-indicators .active { opacity:1; background:var(--ql-primary); width:36px; }
.ql-banner .carousel-control-prev, .ql-banner .carousel-control-next { width:52px; opacity:0; transition:.2s; }
.ql-banner:hover .carousel-control-prev, .ql-banner:hover .carousel-control-next { opacity:1; }
.ql-banner .carousel-control-prev-icon, .ql-banner .carousel-control-next-icon { background-color:rgba(21,22,31,.55); border-radius:50%; padding:1.3rem; background-size:45%; }
@media (max-width:640px){ .ql-banner .carousel-item img { height:180px; } }

/* ── Cookie consent bar ──────────────────────────────────────────────── */
.ql-cookiebar { position:fixed; left:0; right:0; bottom:0; z-index:1990; background:#fff; border-top:1px solid var(--ql-line); box-shadow:0 -8px 30px rgba(21,22,31,.12); padding:1rem 0; animation:qlslideup .3s ease; }
@keyframes qlslideup { from{transform:translateY(100%)} to{transform:translateY(0)} }
.ql-cookiebar .ic { width:40px; height:40px; border-radius:50%; background:var(--ql-primary-050); color:var(--ql-primary); display:grid; place-items:center; font-size:1.2rem; flex:0 0 40px; }
.ql-cookiebar p { color:var(--ql-muted); font-size:.9rem; }

/* ── Category nav: icons + subcategory mega menu ─────────────────────── */
@media (min-width: 992px){ .ql-catnav-scroll { gap: 1.6rem; } }
.ql-catnav-item { position: relative; }
.ql-catnav-item > a img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.ql-megamenu { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--ql-line); border-radius: 0 0 14px 14px; box-shadow: var(--ql-shadow); padding: .65rem; display: none; z-index: 1040; }
.ql-catnav-item:hover .ql-megamenu { display: block; }
.ql-megamenu a { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border-radius: 8px; color: var(--ql-ink); font-weight: 500; font-size: .86rem; white-space: nowrap; }
.ql-megamenu a:hover { background: var(--ql-primary-050); color: var(--ql-primary); }
.ql-megamenu a img { width: 18px; height: 18px; object-fit: contain; }
.ql-megamenu .all { font-weight: 700; color: var(--ql-primary); border-top: 1px solid var(--ql-line); margin-top: .35rem; padding-top: .6rem; }
/* N-level cascading submenus */
.ql-menu-sub { position: relative; }
.ql-megamenu .bi-chevron-right { margin-left: auto; font-size: .68rem; opacity: .55; }
.ql-menu-panel { position: absolute; top: -.65rem; left: 100%; min-width: 220px; background: #fff; border: 1px solid var(--ql-line); border-radius: 12px; box-shadow: var(--ql-shadow); padding: .65rem; display: none; z-index: 1045; }
.ql-menu-sub:hover > .ql-menu-panel { display: block; }
.ql-menu-panel .all { font-weight: 700; color: var(--ql-primary); border-top: 1px solid var(--ql-line); margin-top: .35rem; padding-top: .6rem; }
/* overflow "more" (nine dots) — holds categories that don't fit */
.ql-catnav-more { margin-left: auto; }
.ql-catnav-more > a { font-size: 1.05rem; color: var(--ql-primary); padding: .6rem .3rem; }
.ql-catnav-more .ql-megamenu { left: auto; right: 0; }
.ql-catnav-more .ql-menu-panel { left: auto; right: 100%; }   /* nested flyouts open left inside the right-aligned "more" */
/* Mobile (<992px): tap-accordion instead of hover side-flyouts (no cut-off) */
@media (max-width: 991.98px) {
    .ql-catnav-scroll { overflow-x: auto; }
    .ql-catnav-more { display: none !important; }   /* strip scrolls on mobile — no nine-dots */
    .ql-catnav-item .ql-megamenu { display: none !important; position: fixed; left: 8px; right: 8px; top: 118px; width: auto; min-width: 0; max-height: 72vh; overflow-y: auto; border-radius: 12px; }
    .ql-catnav-item.open > .ql-megamenu { display: block !important; }
    .ql-menu-sub .ql-menu-panel { display: none !important; position: static; left: auto; right: auto; box-shadow: none; border: 0; border-left: 2px solid var(--ql-primary-100); border-radius: 0; margin: .1rem 0 .3rem .9rem; padding: .15rem 0 .15rem .5rem; min-width: 0; }
    .ql-menu-sub.open > .ql-menu-panel { display: block !important; }
    .ql-menu-sub > a .bi-chevron-right { transition: transform .2s; }
    .ql-menu-sub.open > a .bi-chevron-right { transform: rotate(90deg); }
}
.ql-stat .num { margin-bottom: .2rem; line-height: 1.2; }

/* ── Phone country-code picker (flag + code) ─────────────────────────── */
.ql-cc { position: relative; }
.ql-cc-btn { display: flex; align-items: center; gap: .45rem; height: 48px; padding: 0 .8rem; background: #fff; border: 1px solid var(--bs-border-color, #dee2e6); border-right: 0; border-radius: .5rem 0 0 .5rem; font-weight: 600; font-size: 1rem; color: var(--ql-ink); white-space: nowrap; }
.ql-cc-btn img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ql-cc-btn .bi { font-size: .65rem; color: var(--ql-muted); }
.ql-cc-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 1050; width: 300px; background: #fff; border: 1px solid var(--ql-line); border-radius: 12px; box-shadow: var(--ql-shadow); padding: .5rem; }
.ql-cc-list { max-height: 260px; overflow-y: auto; margin-top: .4rem; }
.ql-cc-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.ql-cc-item:hover { background: var(--ql-primary-050); }
.ql-cc-item img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ql-cc-item .nm { flex: 1; min-width: 0; }
.ql-cc-item .cd { color: var(--ql-muted); font-weight: 600; }

/* ── Seller verification document tiles ──────────────────────────────── */
.ql-doc-tile { width: 170px; height: 112px; border: 2px dashed var(--ql-line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: var(--ql-muted); cursor: pointer; background: #fff; position: relative; overflow: hidden; font-size: .78rem; font-weight: 600; transition: .15s; text-align: center; }
.ql-doc-tile:hover { border-color: var(--ql-primary); color: var(--ql-primary); background: var(--ql-primary-050); }
.ql-doc-tile i { font-size: 1.3rem; }
.ql-doc-tile img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ql-doc-tile .redo { position: absolute; bottom: 6px; right: 6px; background: rgba(21,22,31,.72); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: .68rem; z-index: 2; }
.ql-doc-tile.uploading { pointer-events: none; opacity: .6; }

/* ── Ad detail sidebar: seller card + safety tips ────────────────────── */
.ql-seller-card { overflow: hidden; }
.ql-seller-head { background: linear-gradient(150deg, var(--ql-primary-050), #fff 80%); margin: -1.5rem -1.5rem 1.1rem; padding: 1.7rem 1rem 1.2rem; border-bottom: 1px solid var(--ql-line); text-align: center; }
.ql-seller-av { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--ql-shadow-sm); background: var(--ql-primary-050); }
.ql-seller-head .nm { font-weight: 800; font-size: 1.1rem; margin-top: .6rem; }
.ql-seller-head .meta { color: var(--ql-muted); font-size: .82rem; }
/* Equal-width action buttons in the seller card (split evenly, ignore text length) */
.ql-eqbtn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.ql-safety { padding-left: 0; margin: 0; }
.ql-safety li { list-style: none; display: flex; gap: .6rem; align-items: flex-start; padding: .38rem 0; font-size: .86rem; color: var(--ql-muted); }
.ql-safety li i { color: #16a34a; margin-top: 2px; flex: 0 0 auto; }

/* ── Official-style Google sign-in button ────────────────────────────── */
.ql-gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 48px; background: #fff; border: 1px solid #dadce0; border-radius: 10px; color: #3c4043; font-weight: 600; font-size: 1rem; transition: .15s; }
.ql-gbtn:hover { background: #f8faff; border-color: #d2e3fc; box-shadow: 0 1px 3px rgba(60,64,67,.15); color: #3c4043; }
.ql-gbtn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.ql-abtn { background: #000; border-color: #000; color: #fff; }
.ql-abtn:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ql-abtn svg { width: 20px; height: 20px; }
/* locked identity fields (phone for phone-login, email for email/social login) */
.ql-cc-locked { pointer-events: none; opacity: .65; }
.form-control[readonly] { background: #eef0f6; cursor: not-allowed; }
.form-check-input, .form-check-label { cursor: pointer; }
.form-check-input:checked { background-color: var(--ql-primary); border-color: var(--ql-primary); }
.form-check-input:focus { border-color: var(--ql-primary); box-shadow: 0 0 0 .2rem rgba(var(--ql-primary-rgb), .2); }

/* ── Auth pages (login / register) — refined single card ────── */
.ql-auth { min-height: calc(100vh - 190px); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem; }
.ql-auth-card { width: 100%; max-width: 540px; background: #fff; border: 1px solid var(--ql-line); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(var(--ql-primary-rgb), .10); }
.ql-auth-form { padding: 2.3rem 2.6rem; }
.ql-auth-form h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.ql-auth-form > p { font-size: .88rem; }
.ql-auth-form .form-control, .ql-auth-form .form-select { min-height: 42px; padding: .5rem .75rem; font-size: .9rem; border-radius: 9px; }
.ql-auth-form .form-control:focus, .ql-auth-form .form-select:focus { border-color: var(--ql-primary); box-shadow: 0 0 0 .18rem rgba(var(--ql-primary-rgb), .16); }
.ql-auth-form .form-label { font-size: .8rem; font-weight: 600; color: var(--ql-ink); margin-bottom: .28rem; }
.ql-auth-form .btn-lg { min-height: 44px; padding: .55rem 1rem; font-size: .95rem; border-radius: 9px; font-weight: 600; }
.ql-auth-form .ql-cc-btn { height: 42px; border-radius: 9px 0 0 9px; font-size: .9rem; }
.ql-auth-form .ql-gbtn { height: 44px; border-radius: 9px; font-size: .9rem; }
.ql-auth-form .form-check-label, .ql-auth-form .form-text, .ql-auth-form .nav-link { font-size: .85rem; }
.ql-auth-form #completePane h2 { font-size: 1.2rem; }
@media (max-width: 575.98px) { .ql-auth { padding: 1.4rem 1rem; min-height: auto; } }

/* Price type suffix (Negotiable / Auction) and Price On Call */
.ql-price-type { font-size: .72em; font-weight: 500; color: var(--ql-muted, #6b7280); }
.ql-price-oncall { color: var(--ql-primary); }

/* Seller star ratings (reviews) */
.ql-stars { display: inline-flex; align-items: center; gap: 2px; color: #f5a623; font-size: 1rem; line-height: 1; vertical-align: middle; white-space: nowrap; }
.ql-stars.ql-stars-sm { font-size: .82rem; }
.ql-stars .bi-star { color: #d7dbe0; }
.ql-rate-stars { display: inline-flex; gap: 6px; font-size: 1.9rem; color: #f5a623; cursor: pointer; }
.ql-rate-stars .bi-star { color: #d7dbe0; }
.ql-review + .ql-review { }
.ql-review:last-child { border-bottom: 0 !important; }
