/* theme.css (ROOT READY) */

/* 1) Fonts: Inter (body), Plus Jakarta Sans (header/logo) */
:root {
    --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-head: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    /* 2) Layout + sizing */
    --container: 1400px;
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 19px;

    /* 3) Light Theme (default) */
    --bg: #ffffff;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-2: rgba(255, 255, 255, 0.92);
    --border: rgba(17, 17, 17, 0.08);

    --text: #0b0d12;
    --muted: rgba(11, 13, 18, 0.65);

    /* Accent (soft premium violet/indigo like reference) */
    --primary: #6d5dfc;
    --primary-2: #9b6bff;

    /* Buttons */
    --btn-text: #0b0d12;
    --btn-solid-text: #ffffff;

    /* Shadows */
    --shadow-sm: 0 8px 22px rgba(11, 13, 18, 0.10);
    --shadow-md: 0 16px 46px rgba(11, 13, 18, 0.12);

    /* 4) Hero gradient (pastel glow like your reference) */
    --hero-a: rgba(125, 95, 255, 0.28);
    /* violet */
    --hero-b: rgba(255, 122, 168, 0.22);
    /* pink */
    --hero-c: rgba(88, 197, 255, 0.18);
    /* blue */
}

/* 5) Auto Dark Mode (device preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #070812;
        --surface: rgba(255, 255, 255, 0.05);
        --surface-2: rgba(255, 255, 255, 0.04);
        --border: rgba(255, 255, 255, 0.10);

        --text: rgba(255, 255, 255, 0.92);
        --muted: rgba(255, 255, 255, 0.65);

        --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.45);
        --shadow-md: 0 18px 58px rgba(0, 0, 0, 0.55);

        /* dark mode hero glow thoda deep */
        --hero-a: rgba(125, 95, 255, 0.30);
        --hero-b: rgba(255, 122, 168, 0.18);
        --hero-c: rgba(88, 197, 255, 0.14);
    }
}

/* 6) Global typography + base */
html,
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
.brand,
.nav .brand {
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

/* 7) Small header links (as you said) */
.nav .nav-link,
.nav .nav-links a {
    font-size: 13px;
    line-height: 1;
    /* color: var(--muted); */
}

.nav .nav-link:hover,
.nav .nav-links a:hover {
    color: var(--text);
}

/* 8) Premium “glass” utility (dark mode me killer lagta hai) */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
}

/* 9) Hero background ONLY (body full background nahi) */
.hero {
    position: relative;
    overflow: hidden;
}

.hero>* {
    position: relative;
    z-index: 1;
}

/* 10) Buttons (basic premium) */
.btn {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    /* color: var(--btn-text); */
    /* padding: 10px 14px; */
    font-weight: 600;
}

.btn-solid {
    border: 0;
    color: var(--btn-solid-text);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--shadow-sm);
}



/* =========================
   HEADER v2 (NO EMPTY SPACE + RESPONSIVE)
========================= */

.nav {
    background: transparent;
    /* no bar */
    padding: 0;
    margin: 0;
}

/* ✓ wider container so arrows wali empty space nahi dikhe */
.nav-inner {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 15px;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 14px;

    position: relative;
    z-index: 1001;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text);

    font-family: var(--font-head);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

/* ✅ logo bigger */
.brand-logo {
    width: 43px;
    height: 43px;
    display: block;
}

/* dark mode logo white feel */
@media (prefers-color-scheme: dark) {
    .brand-logo {
        filter: invert(1) brightness(1.15) contrast(1.1);
    }
}

/* Center Links */
.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

/* links */
.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;

    padding: 8px 10px;
    border-radius: 999px;

    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(109, 93, 252, 0.12);
    transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
    .nav-link {
        color: rgba(255, 255, 255, 0.70);
    }

    .nav-link:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.08);
    }
}

/* Right actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* ✅ Fix: Make buttons premium + hover works for all 3 */
.nav-actions .btn,
.nav-actions a.btn,
.nav-actions button.btn {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Launch Your Tool = highlighted (visible in dark too) */
#launchBtnHeader {
    border: 1px solid rgba(109, 93, 252, 0.45);
    background: rgba(109, 93, 252, 0.14);
    color: var(--text);
}

#launchBtnHeader:hover {
    background: rgba(109, 93, 252, 0.22);
    border-color: rgba(109, 93, 252, 0.70);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(109, 93, 252, 0.22);
}

/* Login */
#loginBtnHeader {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
    color: var(--text);
}

#loginBtnHeader:hover {
    background: rgba(109, 93, 252, 0.12);
    border-color: rgba(109, 93, 252, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(11, 13, 18, 0.10);
}

/* Get started (solid) */
#registerBtnHeader {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

#registerBtnHeader:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 38px rgba(109, 93, 252, 0.26);
    filter: saturate(1.08);
}

/* ✅ DARK MODE button contrast fixes */
@media (prefers-color-scheme: dark) {
    #launchBtnHeader {
        background: rgba(109, 93, 252, 0.22);
        border-color: rgba(109, 93, 252, 0.55);
        color: rgba(255, 255, 255, 0.92);
    }

    #loginBtnHeader {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 0.92);
        /* ✅ login white */
    }

    #loginBtnHeader:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
    }
}

/* =========================
   RESPONSIVE FIX (MOBILE)
========================= */

/* ✅ small screens: links horizontal scroll, buttons smaller */
@media (max-width: 700px) {
    .nav-inner {
        padding: 10px 12px;
        gap: 10px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-logo {
        width: 26px;
        height: 26px;
    }

    /* links become scrollable row */
    .nav-links {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 0 4px;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        font-size: 12px;
        padding: 8px 9px;
        white-space: nowrap;
    }

    .nav-actions .btn,
    .nav-actions a.btn,
    .nav-actions button.btn {
        padding: 0 54px;
        font-size: 15px;
        border-radius: 16px;
    }

    /* If 3 buttons too tight, hide Launch on very small width */
}

@media (max-width: 420px) {
    #launchBtnHeader {
        display: none;
    }

    /* ✅ mobile me clean */
}


/* .nav{
  position: absolute;
  top: 0;
  width: 100%;
} */




/* =========================
   HERO + SEARCH POLISH
========================= */

/* container full width but keep content centered */
.container {
    max-width: 100%;
}

/* hero full screen (and background only in hero) */
.hero {
    min-height: calc(100vh - 72px);
    /* header height minus */
    display: flex;
    align-items: center;
    padding: 42px 0 34px;
    position: relative;
    overflow: hidden;
}

/* pastel gradient glow (same vibe) */
.hero::before {
    content: "";
    position: absolute;
    inset: -140px -140px -180px -140px;
    /* background:
        radial-gradient(900px 650px at 20% 15%, rgba(124, 77, 255, 0.40), transparent 60%),
        radial-gradient(950px 700px at 80% 10%, rgba(255, 64, 129, 0.35), transparent 60%),
        radial-gradient(1100px 800px at 50% 100%, rgba(64, 196, 255, 0.30), transparent 65%); */
    /* background:
        radial-gradient(720px 520px at 18% 22%, var(--hero-a), transparent 62%),
        radial-gradient(820px 600px at 82% 20%, var(--hero-b), transparent 62%),
        radial-gradient(900px 680px at 50% 90%, var(--hero-c), transparent 62%); */
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto 80px;
    padding: 0 16px;
    text-align: center;
}

/* heading + subtitle */
.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    /* letter-spacing: -0.04em; */
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.05;
    margin: 0;
    color: var(--text);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin: 12px auto 0;
    max-width: 720px;
}

/* gap between text & search box */
.hero-subtitle+.prompt-card {
    margin-top: 35px;
}

/* Keep your prompt-card design, just center and premium shadow */
.prompt-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 860px;
    /* center nicely */
    width: min(860px, 94vw);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* textarea font + placeholder font (typing lines) */
.search-textarea {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}

.search-textarea::placeholder {
    font-family: var(--font-body);
    color: rgba(11, 13, 18, 0.45);
}

@media (prefers-color-scheme: dark) {
    .search-textarea::placeholder {
        color: rgba(255, 255, 255, 0.40);
    }
}

/* Send button theme polish */
.send-btn {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border: 0;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    filter: saturate(1.05);
}

/* Pills/select — trending look */
.pill-select {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0px 12px;
    background: rgba(255, 255, 255, 0.70);
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    appearance: none;
}

/* .pill-select:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 93, 252, 0.35);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.86);
} */

/* tiny “accent ring” on focus */
.pill-select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.18);
    border-color: rgba(109, 93, 252, 0.55);
}

@media (prefers-color-scheme: dark) {
    .pill-select {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.88);
    }

    .pill-select:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(109, 93, 252, 0.40);
    }

    .pill-select:focus {
        box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.22);
    }
}

/* Recent button theme */
.recent-toggle-btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(109, 93, 252, 0.35);
    background: rgba(109, 93, 252, 0.10);
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.recent-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    background: rgba(109, 93, 252, 0.16);
    border-color: rgba(109, 93, 252, 0.55);
}

@media (prefers-color-scheme: dark) {
    .recent-toggle-btn {
        background: rgba(109, 93, 252, 0.14);
        border-color: rgba(109, 93, 252, 0.30);
        color: rgba(255, 255, 255, 0.88);
    }

    .recent-toggle-btn:hover {
        background: rgba(109, 93, 252, 0.22);
        border-color: rgba(109, 93, 252, 0.55);
    }
}

/* Suggest box + recent searches glass look (optional, safe) */



/* HERO full screen 100% */
.hero {
    min-height: 100vh;
    /* full screen */
    padding-top: 90px;
    /* header ke niche space */
    padding-bottom: 60px;
}

/* gradient layer ko full cover + strong */
.hero::before {
    inset: -220px;
}





/* =========================
   TOOL ACTION BUTTONS
========================= */

.tool-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

/* PRIMARY (Use Tool) - Logout style */
.tool-visit {
    padding: 9px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;

    background: linear-gradient(135deg, #7c5cff, #a855f7);
    color: #fff;
    border: none;

    transition: all .18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.tool-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 92, 255, 0.35);
}

/* SECONDARY (Explore) - Launch style */
.tool-explore {
    padding: 9px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;

    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(180, 180, 180, 0.42);

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.tool-explore:visited {
    color: #111111;
}

.tool-explore:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: #7c5cff;
    color: #7c5cff;
    background: rgba(124, 92, 255, 0.08);
}




/* =========================
   RESULT CARD BUTTON LAYOUT
========================= */

.results-container .tool-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Save button top-right */
.result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: layout;
}

.topPickCard {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.result-card .tool-save {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* Save button style */
.tool-save {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;

    background: rgba(255, 165, 0, 0.10);
    border: 1px solid rgba(255, 165, 0, 0.35);
    color: #ff9800;

    transition: .2s;
}

.tool-save:hover {
    background: rgba(255, 165, 0, 0.18);
}

/* Compare */
.tool-compare {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    font-weight: 600;
    font-size: 14px;
}

.tool-compare:hover {
    border-color: #7c5cff;
    color: #7c5cff;
}

/* Alternatives */
.tool-alt {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    .tool-alt {
        background: rgba(255, 255, 255, 0.06);
    }
}




/* =========================
   RESULTS + TOP PICKS BUTTON FIX (theme-based)
   Paste at END of theme.css
========================= */

/* ---- Result card action buttons: full width stacked ---- */
.result-card a,
.result-card button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 999px;
    padding: 11px 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    margin-top: 10px;
}

/* ---- Result card primary "Use Tool" (first link without .exploreBtn) ---- */
.result-card a:not(.exploreBtn) {
    border: 0;
    color: var(--btn-solid-text);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--shadow-sm);
}

/* ---- Result card Explore FIX (yehi invisible ho raha tha) ---- */
.result-card a.exploreBtn {
    background: #ffffff;
    border: 1px solid rgba(180, 180, 180, 0.42);
    color: #111111;
}

.result-card a.exploreBtn:visited {
    color: #111111;
}

.result-card a.exploreBtn:hover {
    border-color: #7c5cff;
    color: #7c5cff;
    background: rgba(124, 92, 255, 0.08);
}

/* ---- Save / Compare / Alternatives button polish ---- */
.result-card .saveBtn {
    background: rgba(255, 80, 120, 0.10);
    border-color: rgba(255, 80, 120, 0.25);
}

.result-card .compareBtn {
    background: rgba(88, 197, 255, 0.10);
    border-color: rgba(88, 197, 255, 0.22);
}

.result-card .competitorBtn {
    background: rgba(125, 95, 255, 0.10);
    border-color: rgba(125, 95, 255, 0.22);
}

/* ---- Hover/Active states (light+dark both) ---- */
.result-card a:hover,
.result-card button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.result-card a:active,
.result-card button:active {
    transform: translateY(0px);
    box-shadow: none;
}

/* ---- Top Picks + Recommended buttons (keep layout, just theme) ---- */
.topPickCard .tool-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.topPickCard .tool-actions a {
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}

/* primary */
.topPickCard .tool-actions .tool-visit {
    border: 0;
    color: var(--btn-solid-text);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--shadow-sm);
}

/* secondary */
/* secondary */
.topPickCard .tool-actions .tool-explore {
    background: #ffffff;
    border: 1px solid rgba(180, 180, 180, 0.42);
    color: #111111;
}

.topPickCard .tool-actions .tool-explore:visited {
    color: #111111;
}

.topPickCard .tool-actions .tool-explore:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: #7c5cff;
    color: #7c5cff;
    background: rgba(124, 92, 255, 0.08);
}

/* Make Top Picks buttons nicer on dark too */
@media (prefers-color-scheme: dark) {

    .result-card a.exploreBtn,
    .topPickCard .tool-actions .tool-explore,
    .tool-explore {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 0.92);
    }

    .result-card a.exploreBtn:visited,
    .topPickCard .tool-actions .tool-explore:visited,
    .tool-explore:visited {
        color: rgba(255, 255, 255, 0.92);
    }

    .result-card a.exploreBtn:hover,
    .topPickCard .tool-actions .tool-explore:hover,
    .tool-explore:hover {
        border-color: #7c5cff;
        color: #b8a8ff;
        background: rgba(124, 92, 255, 0.12);
    }
}


.topPickCard .tool-actions .tool-explore::after,
.result-card a.exploreBtn::after {
    content: "→";
    opacity: .75;
    margin-left: 6px;
}


/* =========================
   ALTERNATIVES CARD
========================= */


.comp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.comp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
    box-sizing: border-box;
}

/* Use Tool */
.comp-actions .comp-link:first-child {
    border: 0;
    color: var(--btn-solid-text);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

/* Explore */
.comp-actions .comp-link.comp-explore {
    background: #ffffff;
    border: 1px solid rgba(180, 180, 180, 0.42);
    color: #111111 !important;
}

.comp-actions .comp-link.comp-explore:visited {
    color: #111111 !important;
}

.comp-actions .comp-link.comp-explore:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: #7c5cff;
    color: #7c5cff !important;
    background: rgba(124, 92, 255, 0.08);
}

.comp-explore::after {
    content: "→";
    margin-left: 6px;
    opacity: .75;
}

@media (prefers-color-scheme: dark) {
    .comp-actions .comp-link.comp-explore {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .comp-actions .comp-link.comp-explore:visited {
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .comp-actions .comp-link.comp-explore:hover {
        border-color: #7c5cff;
        color: #b8a8ff !important;
        background: rgba(124, 92, 255, 0.12);
    }
}



/* =========================
   ALTERNATIVES CARD HEIGHT FIX
========================= */

.comp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .comp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .comp-grid {
        grid-template-columns: 1fr;
    }
}

.comp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

@media (max-width: 680px) {
    .comp-actions {
        gap: 8px;
    }

    .comp-link {
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 14px;
        font-size: 13px;
    }

    .comp-desc {
        min-height: auto;
    }
}

.comp-title,
.comp-pill,
.comp-desc {
    flex-shrink: 0;
}

.comp-desc {
    min-height: 110px;
}

.comp-actions {
    margin-top: auto;
}


/* =========================
   RESULT CARD BUTTONS BOTTOM LOCK FIX
========================= */

.results-container {
    align-items: stretch;
}

.results-container>* {
    height: 100%;
}

.results-container .result-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.result-card .tool-visit,
.result-card .exploreBtn,
.result-card .saveBtn,
.result-card .compareBtn,
.result-card .competitorBtn {
    width: 100%;
    flex-shrink: 0;
}

.result-card>.tool-visit {
    margin-top: auto !important;
}

.result-card>.exploreBtn,
.result-card>.saveBtn,
.result-card>.compareBtn,
.result-card>.competitorBtn {
    margin-top: 10px;
}

.topPickCard {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.topPickCard .tool-actions {
    margin-top: auto;
}

.result-card p {
    flex-shrink: 0;
}





/* =========================
   MOBILE NAV FIX (NO OVERFLOW)
   Paste at END of theme.css
========================= */

/* ✅ Burger: NO circle look (clean icon only) */
.nav-burger {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-burger img {
    width: 22px;
    height: 22px;
    display: block;
    opacity: .9;
}

/* ✅ Light mode icon visible */
@media (prefers-color-scheme: light) {
    .nav-burger img {
        filter: none;
    }
}

/* ✅ Dark mode icon visible (white) */
@media (prefers-color-scheme: dark) {
    .nav-burger img {
        filter: invert(1) brightness(1.2);
    }
}

/* Backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999;
}





/* =========================
   FINAL MOBILE NAV FIX (NO OVERFLOW)
   Paste at END of theme.css
========================= */

#siteNav,
#siteNav * {
    box-sizing: border-box;
}

/* header should never create horizontal scroll */
#siteNav {
    overflow-x: clip;
}

html,
body {
    overflow-x: hidden;
}

/* mobile: nav row should fit always */
@media (max-width: 860px) {
    #siteNav .nav-inner {
        width: 100%;
        max-width: 100% !important;
        padding: 10px 12px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    /* brand shrink safely */
    #siteNav .brand {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 3px;
        overflow: hidden;
    }

    #siteNav .brand-logo {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
    }

    #siteNav .brand-text {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* very small screens: hide brand text (logo only) */
    @media (max-width: 380px) {
        #siteNav .brand-text {
            display: none;
        }
    }

    /* burger stays in-screen */
    #siteNav .nav-burger {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        margin-left: auto;
    }
}




/* ✅ Burger icon auto color (light = black, dark = white) */
#siteNav .nav-burger img {
    width: 22px;
    height: 22px;
    display: block;
    opacity: .95;
    filter: none;
    /* light default = black */
}

/* ✅ Burger icon color control */
#siteNav .nav-burger img {
    width: 22px;
    height: 22px;
    display: block;
    opacity: 1;
}

/* Light mode => pure black */
@media (prefers-color-scheme: light) {
    #siteNav .nav-burger img {
        filter: brightness(0) saturate(100%);
    }
}

/* Dark mode => pure white */
@media (prefers-color-scheme: dark) {
    #siteNav .nav-burger img {
        filter: brightness(0) invert(1);
    }
}







/* Make sure header never causes horizontal overflow */
.nav,
.nav-inner {
    max-width: 100%;
}

.nav-inner {
    overflow: visible;
}








/* =========================
   TOP 50 TRENDS — SCROLL BOX
   Paste at END of theme.css
========================= */

.trending-wrap .toptrends-box {
    width: min(1400px, calc(100% - 24px));
    margin: 9px auto 0;
    padding: 6px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    /* border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08); */
}

/* only affect TopTrends grid (NOT other grids) */
.trending-wrap .toptrends-box #topTrendsGrid {
    margin: 0;
    padding: 6px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(220px, 1fr));

    max-height: 720px;
    overflow-y: auto;

    /* ✅ allow scroll chaining to page */
    overscroll-behavior: auto;
    /* OR remove this line totally */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Responsive columns */
@media (max-width: 1100px) {
    .trending-wrap .toptrends-box #topTrendsGrid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 760px) {
    .trending-wrap .toptrends-box {
        width: calc(100% - 18px);
        padding: 12px;
        border-radius: 18px;
    }

    .trending-wrap .toptrends-box #topTrendsGrid {
        grid-template-columns: 1fr;
        max-height: 640px;

    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .trending-wrap .toptrends-box {
        background: rgba(0, 0, 0, 0.92);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 760px) {
    .trending-wrap .toptrends-box #topTrendsGrid {
        grid-template-columns: 1fr;
        max-height: 580px;
        /* pehle 640 tha */
    }
}





/* =========================
   AI LEARN LAB — PREMIUM LAYOUT
   Paste at END of theme.css
========================= */

.learn-wrap {
    width: min(var(--container), calc(100% - 24px));
    margin: 0 auto;
    padding: 28px 0 10px;
}

/* Title with side lines (Top 50 style) */
.learn-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-head);
    font-size: clamp(22px, 2.4vw, 34px);
    margin: 0 0 18px;
}

.learn-title::before,
.learn-title::after {
    content: "";
    height: 1px;
    width: min(180px, 18vw);
    background: rgba(11, 13, 18, 0.12);
}

@media (prefers-color-scheme: dark) {

    .learn-title::before,
    .learn-title::after {
        background: rgba(255, 255, 255, 0.14);
    }
}

/* Optional subtitle */
.learn-subtitle {
    text-align: center;
    margin: -6px auto 18px;
    color: var(--muted);
    max-width: 720px;
    font-size: 14px;
    line-height: 1.5;
}

/* Grid */
.learn-grid {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 6px 0 18px;
}

/* Card: width smaller (premium), height same feel */
.learn-card {
    width: clamp(233px, 22vw, 300px);
    /* ✅ yahi se width adjust karna */
    min-height: 363px;
    /* height feel same rahe */
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 26px 20px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.learn-card:hover {
    transform: translateY(-6px);
    border-color: rgba(109, 93, 252, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* Make inside content bigger & balanced */
.learn-ico {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(109, 93, 252, 0);
    border: 1px solid rgba(109, 93, 252, 0.14);
    margin-bottom: 14px;
}

.learn-ico img {
    width: 53px;
    height: 53px;
    display: block;
}

.learn-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 19px;
    margin-top: 2px;
    text-align: center;
}

.learn-desc {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    max-width: 220px;
}

/* Dark mode visibility */
@media (prefers-color-scheme: dark) {
    .learn-card {
        background: rgba(18, 18, 24, 0.62);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .learn-ico {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(109, 93, 252, 0.20);
    }
}

/* Mobile: fit */
@media (max-width: 700px) {
    .learn-card {
        width: min(92vw, 360px);
    }

    .learn-title::before,
    .learn-title::after {
        width: min(90px, 18vw);
    }
}






/* =========================================
   FORCE mobile filters SIDE-BY-SIDE
   Paste at END of theme.css
========================================= */

@media (max-width: 640px) {
    .prompt-card .prompt-bottom {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        flex-wrap: unset !important;
    }
}

@media (max-width: 380px) {
    .prompt-card .prompt-bottom {
        gap: 5px !important;
    }
}






/* ===== Top 50 Rank Badge ===== */
.trending-wrap .tool-card {
    position: relative;
    /* badge anchor */
}

/* top-right (logo ke right side vibe) */
.trending-wrap .trend-rank {
    position: absolute;
    top: 0px;
    right: 14px;

    padding: 19px 10px;
    border-radius: 0px 0px 10px 10px;

    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2px;
    color: var(--bg);

    background: linear-gradient(135deg, #ffb74a, #ff6a00);
    box-shadow: 0 10px 24px rgba(255, 122, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* dark mode me thoda glow */
@media (prefers-color-scheme: dark) {
    .trending-wrap .trend-rank {
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 14px 34px rgba(255, 122, 0, 0.35);
        color: rgba(10, 10, 10, 0.92);
    }
}




/* Testimonials avatar */
.testi-avatar {
    width: 42px;
    /* screenshot feel */
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    .testi-avatar {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
    }
}








.read-more {
    padding: 10px 18px;
    border-radius: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;

    background: linear-gradient(135deg, #7c5cff, #a855f7);
    color: #fff;
    border: none;

    transition: all .18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 92, 255, 0.35);
}





/* Mobile search box spacing fix */
@media (max-width: 600px) {

    .hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .prompt-card {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

}


/* ONLY ONE LINE TITLE */

.search-textarea {
    width: 100%;
}

@media (max-width:600px) {

    .hero-title {
        font-size: clamp(28px, 4vw, 48px);
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: clamp(12px, 1.8vw, 18px);
    }
}



/* ✅ Forgot password link style */
.auth-link {
    background: transparent;
    border: none;
    color: inherit;
    opacity: .85;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px 0 0;
    text-align: left;
    font: inherit;
}

.auth-link:hover {
    opacity: 1;
}





@media (prefers-color-scheme: dark) {
    .footer-brand-logo {
        filter: invert(1) brightness(1.2);
    }
}






/* =========================
   PREMIUM AUTH MODAL (FindOzi)
   No ID/Class change needed
========================= */

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.auth-backdrop,
#authBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

@media (prefers-color-scheme: dark) {

    .auth-backdrop,
    #authBackdrop {
        background: rgba(0, 0, 0, 0.65);
    }
}

/* Main card */
.auth-card {
    position: relative;
    width: min(980px, calc(100vw - 28px));
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 26px 63px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (prefers-color-scheme: dark) {
    .auth-card {
        background: linear-gradient(180deg, #1e1b2e, #16131f);
    }
}

/* Back translucent card (behind) */
.auth-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: calc(var(--radius-lg) + 6px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    filter: blur(0.2px);
    transform: translate(-18px, 18px);
    z-index: -1;
}

@media (prefers-color-scheme: dark) {
    .auth-card::after {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.10);
    }
}

/* Create LEFT branding panel using ::before (no HTML needed) */
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 44%;
    min-width: 320px;
    background:
        radial-gradient(420px 320px at 20% 15%, var(--hero-a), transparent 62%),
        radial-gradient(520px 360px at 80% 20%, var(--hero-c), transparent 62%),
        radial-gradient(520px 380px at 55% 70%, var(--hero-b), transparent 62%),
        rgba(255, 255, 255, 0.32);
    border-right: 1px solid var(--border);
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .auth-card::before {
        background:
            radial-gradient(420px 320px at 20% 15%, var(--hero-a), transparent 62%),
            radial-gradient(520px 360px at 80% 20%, var(--hero-c), transparent 62%),
            radial-gradient(520px 380px at 55% 70%, var(--hero-b), transparent 62%),
            rgba(255, 255, 255, 0.05);
    }
}

/* Push all existing content to the RIGHT side */
.auth-card>* {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    /* margin-left: auto; */
}

/* Brand block (drawn by CSS – looks like the reference) */
.auth-title {
    font-family: var(--font-head);
    font-size: 22px;
    margin: 13px 0 7px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

/* Close button */
.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

@media (prefers-color-scheme: dark) {
    .auth-close {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* Move social section to bottom like reference */
.auth-social {
    order: 60;
    margin-top: 14px;
}

.auth-divider {
    order: 55;
    margin-top: 16px;
}

.auth-tabs {
    order: 20;
}

#loginPanel,
#registerPanel,
#forgotPanel {
    order: 30;
}

.auth-foot {
    order: 80;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 6px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px;
    margin: 10px 0 14px;
}

@media (prefers-color-scheme: dark) {
    .auth-tabs {
        background: rgba(255, 255, 255, 0.06);
    }
}

.auth-tab {
    flex: 1;
    height: 38px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
    .auth-tab.active {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(255, 255, 255, 0.12);
    }
}

/* Inputs */
.auth-panel input {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.60);
    color: var(--text);
    padding: 0 14px;
    outline: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.auth-panel input:focus {
    border-color: rgba(109, 93, 252, 0.55);
    box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.14);
}

@media (prefers-color-scheme: dark) {
    .auth-panel input {
        background: rgba(255, 255, 255, 0.06);
    }
}

/* 2 inputs row */
.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Primary button (theme based) */
.auth-primary {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--btn-solid-text);
    box-shadow: 0 12px 26px rgba(109, 93, 252, 0.28);
    margin-top: 2px;
}

.auth-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.auth-primary:active {
    transform: translateY(0px);
}

/* Link buttons */
.auth-link {
    margin-top: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--primary);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

/* Terms checkbox */
.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 12px;
}

.auth-check input {
    width: 16px;
    height: 16px;
}

/* Social button (Google with icon) */
.auth-social-btn {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-card::after {
    display: none !important;
}

@media (prefers-color-scheme: dark) {
    .auth-social-btn {
        background: rgba(255, 255, 255, 0.08);
    }
}

.auth-social-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("icons/platform-google.svg") no-repeat center / contain;
    flex: 0 0 auto;
}

/* Footer line */
.auth-foot {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--muted);
}

/* ===== Mobile responsive ===== */
@media (max-width: 860px) {
    .auth-card {
        width: min(458px, calc(100vw - 28px));
        padding: 18px 18px;
    }

    .auth-card::before {
        width: 100%;
        min-width: 0;
        height: 160px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .auth-card>* {
        margin-left: 0;
        /* width: 100%; */
    }

    /* .auth-title{ margin-top: 170px; } */
    .auth-row-2 {
        grid-template-columns: 1fr;
    }
}


/* FIX: Dark mode input text/placeholder */
.auth-panel input {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}

.auth-panel input::placeholder {
    color: var(--muted) !important;
    -webkit-text-fill-color: var(--muted) !important;
}

/* FIX: Chrome autofill (dark mode black text problem) */
.auth-panel input:-webkit-autofill,
.auth-panel input:-webkit-autofill:hover,
.auth-panel input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.06) inset;
    transition: background-color 9999s ease-out 0s;
}


.auth-side-logo {
    width: 183px;
    height: auto;
    margin-bottom: 0px;
}

.auth-side {
    position: absolute;
    right: 553px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 420px;
    text-align: center;
}

.auth-side-title {
    font-family: var(--font-head);
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-side-text {
    font-size: 14px;
    color: var(--muted);
}

@media (prefers-color-scheme: dark) {
    .auth-side-logo {
        filter: invert(1) brightness(1.2);
    }
}

@media (max-width: 860px) {
    .auth-side {
        display: none;
    }

    .auth-card::before {
        display: none;
    }

    /* left panel gradient off */
}

.auth-modal {
    padding: 18px;
    align-items: center;
    justify-items: center;
}


@media (max-width: 860px) {
    .auth-card {
        width: calc(100% - 0px);
        /* viewport ke andar hi रहे */
        max-width: 458px;
    }
}





/* =========================
   SYSTEM POPUP — PREMIUM GLASS
========================= */

.sys-popup {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 18px;
}

.sys-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

@media (prefers-color-scheme: dark) {
    .sys-popup::before {
        background: rgba(0, 0, 0, 0.65);
    }
}

.sys-popup-card {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100vw - 28px));
    padding: 24px 22px 20px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(220px 120px at 15% 0%, rgba(109, 93, 252, 0.16), transparent 70%),
        radial-gradient(180px 100px at 100% 100%, rgba(155, 107, 255, 0.12), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow:
        0 24px 60px rgba(11, 13, 18, 0.20),
        0 8px 24px rgba(109, 93, 252, 0.12);
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .sys-popup-card {
        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.48),
            0 8px 28px rgba(109, 93, 252, 0.18);
    }
}

.sys-popup-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(255, 255, 255, 0.03) 28%,
            transparent 48%);
}

.sys-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.52);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sys-popup-close:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: dark) {
    .sys-popup-close {
        background: rgba(255, 255, 255, 0.08);
    }

    .sys-popup-close:hover {
        background: rgba(255, 255, 255, 0.12);
    }
}

.sys-popup-title {
    margin: 0 48px 6px 0;
    font-family: var(--font-head);
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.sys-popup-msg {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 100%;
}

.sys-popup-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.sys-popup-ok {
    min-width: 73px;
    height: 31px;
    border: 0;
    border-radius: 999px;
    padding: 7px 17px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.2px;
    color: var(--btn-solid-text);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 28px rgba(109, 93, 252, 0.26);
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.sys-popup-ok:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.sys-popup-ok:active {
    transform: translateY(0);
}

@media (max-width: 560px) {
    .sys-popup {
        padding: 14px;
    }

    .sys-popup-card {
        position: relative;
        z-index: 2;
        width: min(360px, calc(100vw - 28px));
        padding: 16px 16px 14px;
        border-radius: 22px;
    }

    .sys-popup-title {
        font-size: 18px;
        margin-right: 50px;
    }

    .sys-popup-msg {
        font-size: 14px;
        max-width: 100%;
    }

    .sys-popup-actions {
        margin-top: 18px;
    }

    .sys-popup-ok {
        /* width: 100%; */
        min-width: 0;
    }

    .sys-popup-close {
        width: 37px;
        height: 37px;
        top: 12px;
        right: 12px;
    }
}



/* =========================
   VOICE + RECENT ICON BUTTONS
========================= */

.voice-btn,
.recent-toggle-btn {
    width: 35px;
    height: 35px;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

/* fixed position */
.voice-btn {
    position: absolute;
    right: 10px;
    bottom: -72px;
    top: auto;
    width: 28px;
    height: 28px;
    background: #ff1010;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 16, 16, 0.35);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.recent-toggle-btn {
    position: relative;
    right: 0;
    top: 0;
}

/* hover (idle only) */
.voice-btn:not(.listening):not(.processing):hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 16, 16, 0.45);
}

.voice-btn:not(.listening):not(.processing):active {
    transform: scale(0.95);
}

.recent-toggle-btn:hover {
    background: rgba(109, 93, 252, 0.625);
    box-shadow: 0 10px 24px rgba(109, 93, 252, 0.16);
}

.recent-toggle-btn:active {
    opacity: 0.9;
}

.voice-btn:focus,
.recent-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

/* =========================
   VOICE BTN ICON (SVG)
========================= */

.voice-btn .voice-btn-icon {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

.recent-toggle-btn .recent-toggle-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.88;
    transition: opacity 0.18s ease, filter 0.18s ease;
}

/* =========================
   RINGS (only show when listening)
========================= */

.voice-btn .vring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(109, 93, 252, 0.4);
    pointer-events: none;
    opacity: 0;
    animation: none;
}

.vring-1 {
    width: 42px;
    height: 42px;
    top: -7px;
    left: -7px;
}

.vring-2 {
    width: 56px;
    height: 56px;
    top: -14px;
    left: -14px;
}

.vring-3 {
    width: 70px;
    height: 70px;
    top: -21px;
    left: -21px;
}

.voice-btn.listening .vring {
    opacity: 1;
}

.voice-btn.listening .vring-1 {
    will-change: transform;
    animation: ringOut 1.8s ease-out 0s infinite;
}

.voice-btn.listening .vring-2 {
    will-change: transform;
    animation: ringOut 1.8s ease-out 0.5s infinite;
}

.voice-btn.listening .vring-3 {
    will-change: transform;
    animation: ringOut 1.8s ease-out 1s infinite;
}

@keyframes ringOut {
    0% {
        transform: scale(0.85);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.05);
        opacity: 0;
    }
}

/* =========================
   WAVEBARS (inside btn, only when listening)
========================= */

.voice-btn .wavebars {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.voice-btn .wbar {
    width: 2.5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
    height: 8px;
}

.voice-btn.listening .wavebars {
    opacity: 1;
}

.voice-btn.listening .voice-btn-icon {
    opacity: 0;
}

.voice-btn.listening .wbar:nth-child(1) {
    will-change: transform;
    animation: waveBar 0.9s ease-in-out 0s infinite;
    height: 6px;
}

.voice-btn.listening .wbar:nth-child(2) {
    will-change: transform;
    animation: waveBar 0.9s ease-in-out 0.15s infinite;
    height: 10px;
}

.voice-btn.listening .wbar:nth-child(3) {
    will-change: transform;
    animation: waveBar 0.9s ease-in-out 0.05s infinite;
    height: 14px;
}

.voice-btn.listening .wbar:nth-child(4) {
    will-change: transform;
    animation: waveBar 0.9s ease-in-out 0.2s infinite;
    height: 10px;
}

.voice-btn.listening .wbar:nth-child(5) {
    will-change: transform;
    animation: waveBar 0.9s ease-in-out 0.1s infinite;
    height: 6px;
}

@keyframes waveBar {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }

    50% {
        transform: scaleY(1.4);
        opacity: 1;
    }
}

/* =========================
   LISTENING STATE
========================= */

.voice-btn.listening {
    background: linear-gradient(135deg, #6d5dfc, #9b6bff);
    box-shadow: 0 4px 20px rgba(109, 93, 252, 0.55);
    will-change: transform;
    animation: vPulse 1.8s ease-in-out infinite;
    transform: scale(1.18);
}

@keyframes vPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(109, 93, 252, 0.5);
    }

    50% {
        box-shadow: 0 4px 32px rgba(109, 93, 252, 0.85);
    }
}

/* =========================
   PROCESSING STATE
========================= */

.voice-btn.processing {
    background: rgba(109, 93, 252, 0.15);
    border: 2px solid rgba(109, 93, 252, 0.5);
    box-shadow: none;
    animation: none;
    transform: scale(1);
}

.voice-btn.processing .voice-btn-icon {
    opacity: 0.3;
}

/* spinner ring */
.voice-btn .vspin {
    position: absolute;
    width: 38px;
    height: 38px;
    top: -7px;
    left: -7px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #6d5dfc;
    opacity: 0;
    transition: opacity 0.2s;
}

.voice-btn.processing .vspin {
    opacity: 1;
    will-change: transform;
    animation: spinRing 0.9s linear infinite;
}

@keyframes spinRing {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   DARK MODE
========================= */

@media (prefers-color-scheme: dark) {
    .recent-toggle-btn:hover {
        background: rgba(109, 93, 252, 0.625);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
    }

    .recent-toggle-icon {
        filter: brightness(0) invert(1);
        opacity: 0.94;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {

    .voice-btn,
    .recent-toggle-btn {
        width: 32px;
        height: 32px;
    }

    .voice-btn {
        right: 6px;
        bottom: -73px;
    }

    .recent-toggle-icon {
        width: 22px;
        height: 22px;
    }
}



.prompt-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

.advanced-filter-wrap {
    position: relative;
}

.more-filters-btn {
    min-width: 140px;
    text-align: left;
    cursor: pointer;
}

.advanced-filters-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(140, 120, 255, 0.16);
    box-shadow: 0 18px 50px rgba(24, 24, 40, 0.14);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advanced-filters-panel.hidden {
    display: none;
}

.adv-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1f1f28;
    cursor: pointer;
}

.adv-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8b6cff;
}

@media (max-width: 768px) {
    .prompt-bottom {
        gap: 8px;
    }

    .advanced-filters-panel {
        left: 0;
        right: auto;
        min-width: 220px;
    }

    .more-filters-btn {
        min-width: 130px;
    }
}











/* =========================
   ICON FILTERS — CLEAN + HOVER BOX LIKE RIGHT ICONS
========================= */

.prompt-bottom {
    display: flex;
    align-items: flex-end;
    /* gap: 21px; */
    flex-wrap: wrap;
    /* margin-bottom: -3px; */
}

.filter-icon-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 34px;
    -webkit-tap-highlight-color: transparent;
}

/* hover/focus = right icons jaisa theme box */
.filter-icon-wrap:hover {
    background: rgba(109, 93, 252, 0.625);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 16%, transparent);
    transform: translateY(-1px);
}

.filter-icon-img {
    width: 21px !important;
    height: 21px !important;
    display: block;
    pointer-events: none;
    user-select: none;
    opacity: 0.92;
    transition: opacity 0.18s ease, transform 0.18s ease;
    filter: brightness(0) saturate(100%);
}

.filter-icon-wrap:hover .filter-icon-img {
    opacity: 1;
    transform: scale(1.12) !important;
}

/* invisible select but full hover area cover kare */
.icon-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.001;
    cursor: pointer;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    z-index: 2;
    border-radius: 12px;
}

/* More filters same style */
#moreFiltersBtn.icon-only-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: transparent;
    font-size: 0;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

/* #moreFiltersBtn.icon-only-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
} */

#moreFiltersBtn.icon-only-btn:hover,
#moreFiltersBtn.icon-only-btn:focus-visible {
    background: rgba(109, 93, 252, 0.625);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 16%, transparent);
    transform: translateY(-1px);
    outline: none;
}

/* #moreFiltersBtn.icon-only-btn:hover,
#moreFiltersBtn.icon-only-btn:focus-visible {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.12);
    transform: translateY(-1px);
} */

#moreFiltersBtn.icon-only-btn img {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
    user-select: none;
    opacity: 0.92;
    transition: opacity 0.18s ease, transform 0.18s ease;
    filter: brightness(0) saturate(100%);
}

#moreFiltersBtn.icon-only-btn:hover img,
#moreFiltersBtn.icon-only-btn:focus-visible img {
    opacity: 1;
    transform: scale(1.05);
}

.advanced-filter-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}


.advanced-filters-panel.hidden {
    display: none;
}

.adv-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.adv-check:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.adv-check span {
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
}

.adv-check input {
    accent-color: var(--primary);
}

/* dark mode = white icons */
@media (prefers-color-scheme: dark) {

    .filter-icon-img,
    #moreFiltersBtn.icon-only-btn img {
        filter: brightness(0) invert(1);
    }
}



@media (max-width: 768px) {
    .filter-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        flex: 0 0 34px;
    }

    .icon-select {
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 12px;
    }
}






.page-shell {
    padding-top: 103px;
}


/* =========================
   ALL CATEGORIES HEADER BUTTONS
========================= */

/* Latest AI button */
.nav-actions .btn-ghost {
    border: 1px solid rgba(109, 93, 252, 0.28);
    background: rgba(109, 93, 252, 0.08);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(11, 13, 18, 0.06);
}

.nav-actions .btn-ghost:hover {
    transform: translateY(-1px);
    background: rgba(109, 93, 252, 0.12);
    border-color: rgba(109, 93, 252, 0.42);
    box-shadow: 0 12px 24px rgba(109, 93, 252, 0.12);
}

.nav-actions .btn-ghost:active {
    transform: translateY(0);
}

/* Dashboard button */
.nav-actions .btn-solid {
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--btn-solid-text);
    box-shadow: 0 12px 28px rgba(109, 93, 252, 0.24);
}

.nav-actions .btn-solid:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(109, 93, 252, 0.30);
}

.nav-actions .btn-solid:active {
    transform: translateY(0);
}

/* focus */
.nav-actions .btn:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 3px rgba(109, 93, 252, 0.16),
        0 12px 28px rgba(109, 93, 252, 0.18);
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    .nav-actions .btn-ghost {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.10);
        color: var(--text);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    }

    .nav-actions .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(125, 95, 255, 0.34);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
    }

    .nav-actions .btn-solid {
        color: var(--btn-solid-text);
    }
}


/* =========================
   ALL CATEGORIES TOP AREA
========================= */

.page-shell {
    padding-top: 118px;
}

.page-head {
    max-width: 1180px;
    margin: 0 auto 28px;
}

.page-cat-tag {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin: 0 auto 23px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(109, 93, 252, 0.18);
    background: linear-gradient(135deg,
            rgba(109, 93, 252, 0.08),
            rgba(255, 122, 168, 0.04));
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(109, 93, 252, 0.06);
}

.page-title {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-head);
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--text);
}

.page-subtitle {
    max-width: 780px;
    margin: 14px auto 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

/* =========================
   FILTER BAR
========================= */

.filter-bar {
    margin-top: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.filter-left {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    border-radius: 20px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
        linear-gradient(135deg, rgba(109, 93, 252, 0.04), rgba(255, 122, 168, 0.03));
    box-shadow:
        0 14px 34px rgba(11, 13, 18, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.filter-left::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 0 0 6px rgba(109, 93, 252, 0.08);
    pointer-events: none;
}

.filter-left::after {
    content: "";
    position: absolute;
    left: 44px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: rgba(17, 17, 17, 0.08);
}

.filter-input {
    flex: 1;
    min-width: 0;
    height: 64px;
    padding: 0 100px 0 64px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    box-shadow: none;
}

.filter-input::placeholder {
    color: rgba(11, 13, 18, 0.42);
}

.filter-left:focus-within {
    border-color: rgba(109, 93, 252, 0.26);
    box-shadow:
        0 18px 40px rgba(109, 93, 252, 0.08),
        0 0 0 4px rgba(109, 93, 252, 0.08);
}

.filter-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    min-width: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(109, 93, 252, 0.16);
    background: linear-gradient(135deg,
            rgba(109, 93, 252, 0.08),
            rgba(255, 122, 168, 0.04));
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.filter-clear:hover {
    transform: translateY(-50%) translateY(-1px);
    border-color: rgba(109, 93, 252, 0.3);
    background: linear-gradient(135deg,
            rgba(109, 93, 252, 0.14),
            rgba(255, 122, 168, 0.08));
    box-shadow: 0 10px 22px rgba(109, 93, 252, 0.12);
}

.filter-right {
    display: flex;
    align-items: center;
}

.muted-chip,
#catCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 20px;
    border-radius: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(11, 13, 18, 0.72);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(11, 13, 18, 0.05);
}

/* =========================
   DARK MODE
========================= */

@media (prefers-color-scheme: dark) {
    .page-cat-tag {
        border-color: rgba(155, 107, 255, 0.24);
        background: linear-gradient(135deg,
                rgba(109, 93, 252, 0.16),
                rgba(255, 122, 168, 0.08));
        color: #b9acff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    }

    .filter-left {
        border-color: rgba(255, 255, 255, 0.1);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04)),
            linear-gradient(135deg, rgba(109, 93, 252, 0.09), rgba(255, 122, 168, 0.05));
        box-shadow:
            0 14px 36px rgba(0, 0, 0, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .filter-left::after {
        background: rgba(255, 255, 255, 0.09);
    }

    .filter-input::placeholder {
        color: rgba(255, 255, 255, 0.42);
    }

    .filter-left:focus-within {
        border-color: rgba(155, 107, 255, 0.32);
        box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.32),
            0 0 0 4px rgba(109, 93, 252, 0.12);
    }

    .filter-clear {
        border-color: rgba(155, 107, 255, 0.22);
        background: linear-gradient(135deg,
                rgba(109, 93, 252, 0.14),
                rgba(255, 122, 168, 0.07));
        color: #c4b7ff;
    }

    .filter-clear:hover {
        border-color: rgba(155, 107, 255, 0.34);
        background: linear-gradient(135deg,
                rgba(109, 93, 252, 0.2),
                rgba(255, 122, 168, 0.1));
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    }

    .muted-chip,
    #catCount {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.74);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .page-shell {
        padding-top: 96px;
    }

    .page-title {
        font-size: 34px;
        line-height: 1.1;
    }

    .page-subtitle {
        font-size: 15px;
        line-height: 1.65;
    }

    .filter-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-left {
        min-height: 56px;
        border-radius: 18px;
    }

    .filter-left::before {
        left: 18px;
        width: 10px;
        height: 10px;
    }

    .filter-left::after {
        left: 38px;
    }

    .filter-input {
        height: 56px;
        padding: 0 82px 0 56px;
        font-size: 15px;
    }

    .filter-clear {
        height: 38px;
        min-width: 38px;
        padding: 0 12px;
    }

    .muted-chip,
    #catCount {
        min-height: 50px;
        width: fit-content;
        padding: 0 16px;
        border-radius: 16px;
    }
}




/* =========================
   CATEGORY CARD BUTTONS + SCROLL
========================= */

/* top right: View tools (...) */
.cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 90, 90, 0.16);
    background: linear-gradient(135deg,
            rgba(255, 92, 92, 0.10),
            rgba(255, 122, 168, 0.06));
    color: #e5484d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    box-shadow: 0 8px 20px rgba(229, 72, 77, 0.08);
}

.cat-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(229, 72, 77, 0.28);
    background: linear-gradient(135deg,
            rgba(255, 92, 92, 0.16),
            rgba(255, 122, 168, 0.10));
    box-shadow: 0 12px 24px rgba(229, 72, 77, 0.12);
    color: #d83c42;
}

/* bottom Open button */
.cat-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 27px;
    padding: 0 13px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 24px rgba(109, 93, 252, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cat-open:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(109, 93, 252, 0.24);
    filter: saturate(1.05);
}

.cat-open span {
    transition: transform 0.18s ease;
}

.cat-open:hover span {
    transform: translateX(2px);
}

/* tool external link icon */
.cat-tool-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.82);
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        border-color 0.18s ease, background 0.18s ease;
}

.cat-tool-link:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 93, 252, 0.20);
    background: rgba(109, 93, 252, 0.08);
    box-shadow: 0 10px 18px rgba(109, 93, 252, 0.10);
}

.ext-ic {
    width: 16px;
    height: 16px;
    fill: currentColor;
    color: rgba(11, 13, 18, 0.58);
    transition: color 0.18s ease, transform 0.18s ease;
}

.cat-tool-link:hover .ext-ic {
    color: var(--primary);
    transform: scale(1.06);
}

/* thin scrollbar */
.cat-list-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(109, 93, 252, 0.32) transparent;
}

.cat-list-wrap::-webkit-scrollbar {
    width: 6px;
}

.cat-list-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.cat-list-wrap::-webkit-scrollbar-thumb {
    background: rgba(109, 93, 252, 0.28);
    border-radius: 999px;
}

.cat-list-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 93, 252, 0.42);
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    .cat-pill {
        border-color: rgba(255, 110, 110, 0.18);
        background: linear-gradient(135deg,
                rgba(255, 92, 92, 0.14),
                rgba(255, 122, 168, 0.08));
        color: #ff8b8f;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    }

    .cat-pill:hover {
        border-color: rgba(255, 110, 110, 0.28);
        background: linear-gradient(135deg,
                rgba(255, 92, 92, 0.20),
                rgba(255, 122, 168, 0.10));
        color: #ff9da0;
    }

    .cat-tool-link {
        border-color: rgba(255, 255, 255, 0.10);
        background: rgba(255, 255, 255, 0.05);
    }

    .cat-tool-link:hover {
        border-color: rgba(155, 107, 255, 0.22);
        background: rgba(109, 93, 252, 0.14);
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.20);
    }

    .ext-ic {
        color: rgba(255, 255, 255, 0.62);
    }

    .cat-tool-link:hover .ext-ic {
        color: #c4b7ff;
    }

    .cat-list-wrap {
        scrollbar-color: rgba(155, 107, 255, 0.36) transparent;
    }

    .cat-list-wrap::-webkit-scrollbar-thumb {
        background: rgba(155, 107, 255, 0.34);
    }

    .cat-list-wrap::-webkit-scrollbar-thumb:hover {
        background: rgba(154, 107, 255, 0.244);
    }
}


.cat-open span {
    transition: transform .18s ease;
}

.cat-open:hover span {
    transform: translateX(4px);
}








/* =========================
   MOBILE NAV — MATCH EXISTING SITE
========================= */

/* burger bilkul simple */
.nav-burger {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.nav-burger img {
    width: 22px;
    height: 22px;
    display: block;
}


.nav-menu.is-open {
    display: block;
}

.nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.nav-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 60px;
    border-radius: 16px;
    border: 1px solid rgba(109, 93, 252, 0.28);
    background: rgba(124, 92, 255, 0.05);
    color: var(--text);
    text-decoration: none;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.nav-menu .nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(109, 93, 252, 0.18);
}

.nav-menu .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.nav-menu .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    padding: 0 16px;
}

/* mobile only */
@media (max-width: 900px) {

    .nav .nav-links,
    .nav .nav-actions {
        display: none;
    }

    .nav-burger {
        display: inline-flex;
    }
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    .nav-menu {
        background: rgba(18, 19, 30, 0.94);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
    }

    .nav-menu .nav-link {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(125, 95, 255, 0.22);
    }
}



@media (max-width: 860px) {
    #navBackdrop {
        background: rgba(0, 0, 0, 0.42) !important;
    }
}





/* =========================================
   LATEST PAGE — CATEGORY PAGE STYLE MATCH
   safe override (no JS break)
========================================= */

/* page top */
.page-shell {
    padding-top: 93px;
}

.page-head {
    max-width: 1180px;
    margin: 0 auto 28px;
}

.page-cat-tag {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin: 0 auto 13px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(109, 93, 252, 0.18);
    background: linear-gradient(135deg,
            rgba(109, 93, 252, 0.08),
            rgba(255, 122, 168, 0.04));
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(109, 93, 252, 0.06);
}

.page-title {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-head);
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--text);
}

.page-subtitle {
    max-width: 780px;
    margin: 14px auto 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

/* latest page filter wrapper */
.latest-filter-bar {
    margin-top: 26px;
    display: block;
}

.latest-filter-left {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 0 10px 0 0;
    border-radius: 20px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90)),
        linear-gradient(135deg, rgba(109, 93, 252, 0.04), rgba(255, 122, 168, 0.03));
    box-shadow:
        0 14px 34px rgba(11, 13, 18, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: visible;
}

.latest-filter-left::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 0 0 6px rgba(109, 93, 252, 0.08);
    pointer-events: none;
}

.latest-filter-left::after {
    content: "";
    position: absolute;
    left: 44px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: rgba(17, 17, 17, 0.08);
}

.latest-filter-input {
    flex: 1;
    min-width: 260px;
    height: 64px;
    padding: 0 0 0 64px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    box-shadow: none;
}

.latest-filter-input::placeholder {
    color: rgba(11, 13, 18, 0.42);
}

.latest-filter-left:focus-within {
    border-color: rgba(109, 93, 252, 0.26);
    box-shadow:
        0 18px 40px rgba(109, 93, 252, 0.08),
        0 0 0 4px rgba(109, 93, 252, 0.08);
}

/* filters inside search box */
.latest-inline-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 6px;
    flex-shrink: 0;
    background: transparent;
    margin: 0;
}

/* reset old layout effect */
.latest-inline-filters .pill-select,
.latest-inline-filters .more-filters-btn {
    appearance: none;
    -webkit-appearance: none;
    min-height: 42px;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    outline: none;
    box-shadow: 0 8px 20px rgba(11, 13, 18, 0.04);
    cursor: pointer;
    white-space: nowrap;
}

.latest-inline-filters #listCategory {
    width: 139px;
}

.latest-inline-filters #listPricing {
    width: 119px;
}

.latest-inline-filters #listSort {
    width: 133px;
}



.latest-inline-filters .pill-select:hover,
.latest-inline-filters .more-filters-btn:hover {
    border-color: rgba(109, 93, 252, 0.22);
    background: rgba(109, 93, 252, 0.08);
}

.latest-inline-filters .pill-select:focus,
.latest-inline-filters .more-filters-btn:focus {
    border-color: rgba(109, 93, 252, 0.30);
    box-shadow:
        0 0 0 3px rgba(109, 93, 252, 0.10),
        0 8px 20px rgba(109, 93, 252, 0.08);
}

/* search arrow */
.latest-send-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(109, 93, 252, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.latest-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(109, 93, 252, 0.24);
    filter: saturate(1.05);
}

/* advanced filter panel */
.advanced-filter-wrap {
    position: relative;
}

.advanced-filters-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(11, 13, 18, 0.10);
    z-index: 30;
}

.advanced-filters-panel.hidden {
    display: none;
}

.adv-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.adv-check:hover {
    background: rgba(109, 93, 252, 0.06);
}

.adv-check input {
    accent-color: var(--primary);
}

/* count text */
#listCount.muted {
    text-align: center;
    margin: 14px 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    .page-cat-tag {
        border-color: rgba(155, 107, 255, 0.24);
        background: linear-gradient(135deg,
                rgba(109, 93, 252, 0.16),
                rgba(255, 122, 168, 0.08));
        color: #b9acff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    }

    .latest-filter-left {
        border-color: rgba(255, 255, 255, 0.10);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04)),
            linear-gradient(135deg, rgba(109, 93, 252, 0.09), rgba(255, 122, 168, 0.05));
        box-shadow:
            0 14px 36px rgba(0, 0, 0, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .latest-filter-left::after {
        background: rgba(255, 255, 255, 0.09);
    }

    .latest-filter-input::placeholder {
        color: rgba(255, 255, 255, 0.42);
    }

    .latest-filter-left:focus-within {
        border-color: rgba(155, 107, 255, 0.32);
        box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.32),
            0 0 0 4px rgba(109, 93, 252, 0.12);
    }

    .latest-inline-filters .pill-select,
    .latest-inline-filters .more-filters-btn {
        border-color: rgba(255, 255, 255, 0.10);
        background: rgba(255, 255, 255, 0.05);
        color: var(--text);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    }

    .latest-inline-filters .pill-select:hover,
    .latest-inline-filters .more-filters-btn:hover {
        border-color: rgba(155, 107, 255, 0.22);
        background: rgba(109, 93, 252, 0.14);
    }

    .advanced-filters-panel {
        border-color: rgba(255, 255, 255, 0.10);
        background: rgba(18, 19, 30, 0.96);
        box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
    }

    .adv-check:hover {
        background: rgba(109, 93, 252, 0.12);
    }
}

/* =========================================
   LATEST PAGE MOBILE FIX
========================================= */

@media (max-width: 900px) {

    /* ensure mobile menu content visible */
    .nav-menu .nav-actions {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .nav-menu .btn-ghost,
    .nav-menu .btn-solid,
    .nav-menu .btn {
        display: inline-flex !important;
        width: 100%;
        min-height: 46px;
        justify-content: center;
        align-items: center;
    }

    /* just in case desktop hidden rules affect menu children */
    .nav-menu .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        margin-left: 0;
    }
}

/* =========================================
   SEARCH BOX MOBILE CLEAN FIX
========================================= */

@media (max-width: 768px) {
    .latest-filter-bar {
        margin-top: 22px;
    }

    .latest-filter-left {
        display: block;
        min-height: auto;
        padding: 14px;
        border-radius: 24px;
        overflow: hidden;
    }

    .latest-filter-left::before {
        left: 20px;
        top: 64px;
        width: 10px;
        height: 10px;
        transform: none;
    }

    .latest-filter-left::after {
        left: 40px;
        top: 28px;
        bottom: 20px;
        width: 1px;
    }

    .latest-filter-input {
        width: 100%;
        min-width: 100%;
        height: 56px;
        padding: 0 14px 0 54px;
        margin: 0 0 12px 0;
        border: 0;
        background: transparent;
        font-size: 15px;
    }

    .latest-inline-filters {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        padding: 0 0 0 33px;
        margin: 0;
    }

    .latest-inline-filters #listCategory,
    .latest-inline-filters #listPricing,
    .latest-inline-filters #listSort,
    .latest-inline-filters .more-filters-btn,
    .latest-inline-filters .pill-select {
        width: 100% !important;
        min-width: 100% !important;
        height: 44px;
        min-height: 44px;
        padding: 0 16px;
        border-radius: 999px;
    }

    .latest-send-btn {
        width: 100%;
        min-width: 100%;
        height: 48px;
        margin-top: 2px;
        border-radius: 16px;
        font-size: 20px;
    }

    .advanced-filter-wrap {
        width: 100%;
    }

    .advanced-filters-panel {
        position: sticky;
        width: 100%;
        min-width: 100%;
        margin-top: 8px;
        border-radius: 16px;
    }

    #listCount.muted {
        margin: 14px 0 18px;
        font-size: 14px;
    }
}

/* extra small phones */
@media (max-width: 480px) {
    .page-shell {
        padding-top: 92px;
    }

    .page-head {
        margin-bottom: 22px;
    }

    .page-cat-tag {
        margin-bottom: 18px;
        padding: 8px 14px;
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .page-title {
        font-size: 30px;
        line-height: 1.08;
    }

    .page-subtitle {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.6;
    }

    .latest-filter-left {
        padding: 12px;
        border-radius: 22px;
    }

    .latest-filter-left::before {
        left: 18px;
        top: 61px;
    }

    .latest-filter-left::after {
        left: 36px;
        top: 26px;
        bottom: 18px;
    }

    .latest-filter-input {
        padding-left: 50px;
        font-size: 14px;
    }

    .latest-inline-filters {
        padding-left: 33px;
        gap: 9px;
    }

    .latest-send-btn {
        height: 46px;
    }
}


/* =========================
   Branded Search Loader v3
   Premium — Theme matched
   ========================= */

#loader {
    display: none;
    width: min(100%, 760px);
    margin: 18px auto 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.26s ease,
        transform 0.26s ease,
        visibility 0.26s ease;
}

#loader.show {
    display: block !important;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.loader-shell {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

/* Shimmer line across top */
.loader-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.5), rgba(59, 130, 246, 0.6), transparent);
    will-change: transform;
    animation: loaderShimmerLine 2.4s ease-in-out infinite;
}

/* Background glow */
.loader-shell::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(ellipse at 50% 50%, rgba(109, 93, 252, 0.07) 0%, transparent 60%);
    will-change: transform;
    animation: loaderBgGlow 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes loaderShimmerLine {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes loaderBgGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.loader-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, var(--hero-a), transparent 58%),
        radial-gradient(circle at 70% 70%, var(--hero-b), transparent 60%),
        var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    will-change: transform;
    animation: loaderMarkPulse 2s ease-in-out infinite;
}

@keyframes loaderMarkPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(109, 93, 252, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(109, 93, 252, 0), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
}

.loader-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    will-change: transform;
    animation: findoziLoaderFloat 1.8s ease-in-out infinite;
}

@keyframes findoziLoaderFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.85;
    }

    50% {
        transform: translateY(-3px) scale(1.08);
        opacity: 1;
    }
}

.loader-copy {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.loader-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animated dots */
.loader-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.loader-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--hero-a);
    will-change: transform;
    animation: loaderDotBounce 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.18s;
    background: var(--hero-b);
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.36s;
    opacity: 0.7;
}

@keyframes loaderDotBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Progress bar */
.loader-progress {
    margin-top: 8px;
    height: 2px;
    border-radius: 999px;
    background: rgba(109, 93, 252, 0.1);
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #3b82f6);
    will-change: transform;
    animation: loaderProgressFlow 2.2s ease-in-out infinite;
    position: relative;
}

.loader-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -1px;
    bottom: -1px;
    width: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    filter: blur(2px);
}

@keyframes loaderProgressFlow {
    0% {
        width: 10%;
    }

    50% {
        width: 75%;
    }

    100% {
        width: 10%;
    }
}

/* Status chips */
.loader-chips {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.loader-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    opacity: 0;
    animation: loaderChipIn 0.4s ease forwards;
    white-space: nowrap;
}

.loader-chip:nth-child(1) {
    animation-delay: 0.2s;
}

.loader-chip:nth-child(2) {
    animation-delay: 0.55s;
}

.loader-chip:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes loaderChipIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Right spinner */
.loader-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 128, 214, 0.95);
    border-right-color: rgba(97, 128, 255, 0.95);
    will-change: transform;
    animation: loaderSpin 0.66s linear infinite;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

.loader-ai-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    will-change: transform;
    animation: loaderAiPulse 2.4s ease-in-out infinite;
}

@keyframes loaderAiPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* loader-subtitle class keep kiya — agar kahi aur use ho toh break na ho */
.loader-subtitle {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .loader-logo {
        filter: invert(1);
        opacity: 0.95;
    }

    .loader-shell {
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .loader-chip:nth-child(1) {
        background: rgba(109, 93, 252, 0.12);
        border: 1px solid rgba(109, 93, 252, 0.28);
        color: rgba(167, 139, 250, 0.95);
        will-change: transform;
        animation: loaderChipIn 0.4s 0.2s ease forwards, loaderChipBlink 2s 0.6s ease-in-out infinite;
    }

    .loader-chip:nth-child(1) .loader-chip-dot {
        background: #8b5cf6;
    }

    .loader-chip:nth-child(2) {
        background: rgba(59, 130, 246, 0.10);
        border: 1px solid rgba(59, 130, 246, 0.25);
        color: rgba(96, 165, 250, 0.95);
    }

    .loader-chip:nth-child(2) .loader-chip-dot {
        background: #3b82f6;
    }

    .loader-chip:nth-child(3) {
        background: rgba(236, 72, 153, 0.10);
        border: 1px solid rgba(236, 72, 153, 0.22);
        color: rgba(244, 114, 182, 0.95);
    }

    .loader-chip:nth-child(3) .loader-chip-dot {
        background: #ec4899;
    }

    .loader-mark {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px rgba(0, 0, 0, 0.26);
    }
}

/* Light mode */
@media (prefers-color-scheme: light) {
    .loader-logo {
        filter: invert(0);
    }

    .loader-shell {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.62)),
            var(--surface);
        box-shadow: 0 12px 30px rgba(11, 13, 18, 0.08);
    }

    .loader-mark {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px rgba(109, 93, 252, 0.10);
    }

    .loader-chip:nth-child(1) {
        background: rgba(109, 93, 252, 0.08);
        border: 1px solid rgba(109, 93, 252, 0.22);
        color: #5b46d4;
        will-change: transform;
        animation: loaderChipIn 0.4s 0.2s ease forwards, loaderChipBlink 2s 0.6s ease-in-out infinite;
    }

    .loader-chip:nth-child(1) .loader-chip-dot {
        background: #7c5cf6;
    }

    .loader-chip:nth-child(2) {
        background: rgba(59, 130, 246, 0.07);
        border: 1px solid rgba(59, 130, 246, 0.20);
        color: #185fa5;
    }

    .loader-chip:nth-child(2) .loader-chip-dot {
        background: #3b82f6;
    }

    .loader-chip:nth-child(3) {
        background: rgba(236, 72, 153, 0.07);
        border: 1px solid rgba(236, 72, 153, 0.18);
        color: #99355a;
    }

    .loader-chip:nth-child(3) .loader-chip-dot {
        background: #ec4899;
    }
}

@keyframes loaderChipBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.55;
    }
}

/* Mobile */
@media (max-width: 640px) {
    #loader {
        width: calc(100% - 18px);
        margin: 14px auto 8px;
    }

    .loader-shell {
        min-height: 72px;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 18px;
    }

    .loader-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .loader-logo {
        width: 23px;
        height: 23px;
    }

    .loader-title {
        font-size: 14px;
    }

    .loader-subtitle {
        font-size: 12px;
    }

    .loader-spinner {
        width: 24px;
        height: 24px;
    }
}




/* =========================
   COMPARE PHASE 1 UPGRADE
========================= */

.compare-card {
    width: min(1080px, 94%);
    max-height: 84vh;
    border-radius: 24px;
    padding: 18px;
}

.compare-body {
    padding-top: 16px;
}

.compare-verdict {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

.compare-verdict-head {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.compare-verdict-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.compare-verdict-item {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 16px;
    padding: 12px;
}

.compare-verdict-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.compare-verdict-item strong {
    font-size: 14px;
    color: var(--text);
}

.compare-score-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.compare-score-card {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 20px;
    padding: 16px;
}

.compare-tool-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.compare-tool-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.compare-tool-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.compare-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.compare-mini-pill-accent {
    border-color: rgba(124, 92, 255, 0.22);
    background: rgba(124, 92, 255, 0.10);
    color: #6f4cff;
}

.compare-overall {
    min-width: 70px;
    text-align: right;
}

.compare-overall span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.compare-overall strong {
    font-size: 28px;
    line-height: 1;
    color: var(--text);
}

.compare-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compare-bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compare-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text);
}

.compare-bar-top strong {
    font-size: 13px;
    font-weight: 800;
}

.compare-progress {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.10);
    overflow: hidden;
}

.compare-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.compare-table {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
}

.compare-table th,
.compare-table td {
    color: var(--text);
    font-size: 14px;
}

.compare-table th {
    font-weight: 800;
}

.compare-winner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.10);
    border: 1px solid rgba(124, 92, 255, 0.22);
    color: #6f4cff;
    font-size: 12px;
    font-weight: 800;
}

.compare-table a {
    color: #6f4cff;
    font-weight: 700;
    text-decoration: none;
}

.compare-table a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .compare-verdict-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compare-score-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .compare-card {
        width: min(96vw, 96vw);
        max-height: 88vh;
        padding: 14px;
        border-radius: 18px;
    }

    .compare-verdict-grid {
        grid-template-columns: 1fr;
    }

    .compare-tool-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .compare-overall {
        text-align: left;
    }

    .compare-table {
        display: block;
        overflow-x: auto;
        min-width: 680px;
    }
}

@media (prefers-color-scheme: dark) {

    .compare-verdict,
    .compare-score-card,
    .compare-table {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .compare-verdict-item,
    .compare-mini-pill {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .compare-mini-pill-accent,
    .compare-winner-badge {
        background: rgba(124, 92, 255, 0.16);
        border-color: rgba(124, 92, 255, 0.28);
        color: #c7bbff;
    }

    .compare-progress {
        background: rgba(255, 255, 255, 0.08);
    }

    .compare-table a {
        color: #b8a8ff;
    }
}

/* =========================
   COMPARE PHASE 2A
========================= */

.compare-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compare-title-main {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.compare-title-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.compare-verdict-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.compare-verdict-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.compare-verdict-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 255, 0.20);
    background: rgba(124, 92, 255, 0.10);
    color: #6f4cff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.compare-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.compare-choice-card {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 18px;
    padding: 14px 16px;
}

.compare-choice-head {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.compare-choice-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.compare-cell-win {
    background: rgba(124, 92, 255, 0.08);
    color: var(--text);
    font-weight: 800;
}

.compare-head {
    padding-bottom: 14px;
}

.compare-close:hover {
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .compare-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .compare-verdict-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .compare-verdict-badge {
        white-space: normal;
    }

    .compare-title-main {
        font-size: 17px;
    }
}

@media (prefers-color-scheme: dark) {
    .compare-verdict-badge {
        background: rgba(124, 92, 255, 0.16);
        border-color: rgba(124, 92, 255, 0.28);
        color: #c7bbff;
    }

    .compare-choice-card {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .compare-cell-win {
        background: rgba(124, 92, 255, 0.16);
    }
}




/* =========================
   COMPARE PHASE 2B
========================= */

.compare-bar {
    bottom: 18px;
    padding: 0 12px;
}

.compare-bar-inner {
    width: min(980px, 96%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(18, 18, 22, 0.96), rgba(28, 28, 36, 0.96));
    border-radius: 22px;
    padding: 14px 16px;
    gap: 16px;
}

.compare-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.compare-title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}

.compare-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0;
}

.compare-selected-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compare-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.compare-selected-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compare-selected-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-selected-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.compare-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.compare-clear,
.compare-now {
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        opacity .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.compare-clear:hover,
.compare-now:hover {
    transform: translateY(-1px);
}

.compare-clear {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.compare-clear:hover {
    background: rgba(255, 255, 255, .12);
}

.compare-now {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(124, 92, 255, 0.30);
}

.compare-now:hover {
    box-shadow: 0 18px 34px rgba(124, 92, 255, 0.38);
}

.compare-clear.is-disabled,
.compare-now.is-disabled,
.compare-clear:disabled,
.compare-now:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.compare-head {
    align-items: flex-start;
    padding-bottom: 16px;
}

.compare-title-wrap {
    padding-right: 16px;
}

.compare-title-main {
    font-size: 22px;
    line-height: 1.1;
}

.compare-title-sub {
    font-size: 13px;
    line-height: 1.5;
}

.compare-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.05);
    transition:
        transform .18s ease,
        background .18s ease;
}

.compare-close:hover {
    background: rgba(124, 92, 255, 0.10);
}

.compare-score-card {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.compare-mini-pill,
.compare-winner-badge,
.compare-verdict-badge {
    box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.04);
}

.compare-mini-pill-accent,
.compare-winner-badge,
.compare-verdict-badge {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.compare-cell-win {
    position: relative;
    background: rgba(124, 92, 255, 0.10);
}

.compare-cell-win::after {
    content: "Winner";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.18);
    color: #6f4cff;
    font-size: 11px;
    font-weight: 800;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .compare-bar-inner {
        width: min(96vw, 96vw);
        padding: 14px;
    }

    .compare-selected-name {
        max-width: 90px;
    }

    .compare-title-main {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .compare-bar {
        bottom: 12px;
        padding: 0 10px;
    }

    .compare-bar-inner {
        width: 100%;
        border-radius: 18px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .compare-left {
        gap: 6px;
    }

    .compare-title {
        font-size: 18px;
    }

    .compare-selected-tools {
        gap: 6px;
    }

    .compare-selected-chip {
        max-width: 100%;
    }

    .compare-selected-name {
        max-width: 140px;
    }

    .compare-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .compare-clear,
    .compare-now {
        width: 100%;
        justify-content: center;
    }

    .compare-title-main {
        font-size: 18px;
    }

    .compare-title-sub {
        font-size: 12px;
    }

    .compare-cell-win::after {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .compare-bar-inner {
        border-color: rgba(255, 255, 255, 0.08);
        background:
            linear-gradient(135deg, rgba(10, 12, 18, 0.96), rgba(20, 22, 32, 0.96));
    }

    .compare-selected-chip {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.09);
    }

    .compare-close {
        background: rgba(255, 255, 255, 0.07);
    }

    .compare-close:hover {
        background: rgba(124, 92, 255, 0.16);
    }

    .compare-score-card {
        box-shadow: none;
    }

    .compare-cell-win::after {
        background: rgba(124, 92, 255, 0.18);
        border-color: rgba(124, 92, 255, 0.25);
        color: #c7bbff;
    }
}


/* =========================
   COMPARE PHASE 4
   Polish + Responsive Safe
========================= */

.compare-modal {
    padding: 20px;
}

.compare-card {
    width: min(1120px, 100%);
    max-width: 1120px;
    max-height: min(88vh, 920px);
    padding: 20px;
    border-radius: 26px;
    overflow: hidden;
}

.compare-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border);
}

.compare-body {
    padding-top: 16px;
    overflow: auto;
    max-height: calc(min(88vh, 920px) - 88px);
    overscroll-behavior: contain;
}

/* top verdict / cards spacing */
.compare-verdict,
.compare-choice-card,
.compare-score-card,
.compare-table {
    box-sizing: border-box;
}

.compare-verdict {
    padding: 18px;
    border-radius: 22px;
}

.compare-verdict-grid {
    gap: 14px;
}

.compare-verdict-item {
    min-width: 0;
    padding: 14px;
}

.compare-verdict-item strong,
.compare-choice-head,
.compare-tool-name,
.compare-table th,
.compare-table td,
.compare-choice-text,
.compare-verdict-sub,
.compare-title-sub {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.compare-choice-grid {
    gap: 14px;
}

.compare-choice-card {
    min-width: 0;
    padding: 15px 16px;
    border-radius: 20px;
}

.compare-score-cards {
    gap: 14px;
}

.compare-score-card {
    min-width: 0;
    padding: 18px;
    border-radius: 22px;
}

.compare-tool-top {
    gap: 14px;
}

.compare-tool-name {
    line-height: 1.2;
}

.compare-tool-meta {
    row-gap: 8px;
}

.compare-mini-pill,
.compare-winner-badge,
.compare-verdict-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.compare-overall {
    flex-shrink: 0;
}

.compare-overall strong {
    font-size: 30px;
}

/* bars */
.compare-bars {
    gap: 13px;
}

.compare-bar-top span,
.compare-bar-top strong {
    line-height: 1.2;
}

.compare-progress {
    height: 11px;
}

/* table polish */
.compare-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.compare-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
}

.compare-table th,
.compare-table td {
    vertical-align: top;
    padding: 14px 14px;
    line-height: 1.5;
}

.compare-table th:first-child,
.compare-table td:first-child {
    width: 19%;
}

.compare-table td:nth-child(2),
.compare-table td:nth-child(3),
.compare-table th:nth-child(2),
.compare-table th:nth-child(3) {
    width: 40.5%;
}

.compare-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.compare-table a {
    white-space: nowrap;
}

.compare-cell-win {
    background: rgba(124, 92, 255, 0.10);
}

/* close button */
.compare-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* bottom compare bar polish */
.compare-bar {
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 14px;
    box-sizing: border-box;
}

.compare-bar-inner {
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.compare-left {
    flex: 1 1 auto;
}

.compare-selected-tools {
    align-items: center;
}

.compare-selected-chip {
    max-width: 180px;
}

.compare-actions {
    flex-wrap: nowrap;
}

/* tablet */
@media (max-width: 980px) {
    .compare-modal {
        padding: 14px;
    }

    .compare-card {
        width: min(100%, 100%);
        max-width: 100%;
        max-height: 90vh;
        padding: 16px;
        border-radius: 22px;
    }

    .compare-body {
        max-height: calc(90vh - 82px);
    }

    .compare-head {
        padding-bottom: 12px;
    }

    .compare-title-main {
        font-size: 20px;
    }

    .compare-title-sub {
        font-size: 12px;
    }

    .compare-verdict-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compare-score-cards {
        grid-template-columns: 1fr;
    }

    .compare-table th:first-child,
    .compare-table td:first-child {
        width: 26%;
    }

    .compare-table td:nth-child(2),
    .compare-table td:nth-child(3),
    .compare-table th:nth-child(2),
    .compare-table th:nth-child(3) {
        width: 37%;
    }
}

/* mobile */
@media (max-width: 640px) {
    .compare-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .compare-card {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        padding: 14px;
        border-radius: 20px 20px 16px 16px;
    }

    .compare-head {
        gap: 10px;
        padding-bottom: 10px;
    }

    .compare-title-wrap {
        padding-right: 0;
        min-width: 0;
    }

    .compare-title-main {
        font-size: 18px;
    }

    .compare-title-sub {
        font-size: 11px;
        line-height: 1.45;
    }

    .compare-close {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .compare-body {
        padding-top: 12px;
        max-height: calc(92vh - 76px);
    }

    .compare-verdict {
        padding: 14px;
        border-radius: 18px;
        margin-bottom: 14px;
    }

    .compare-verdict-top {
        gap: 10px;
        margin-bottom: 10px;
    }

    .compare-verdict-head {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .compare-verdict-sub {
        font-size: 12px;
    }

    .compare-verdict-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .compare-verdict-item {
        padding: 12px;
        border-radius: 14px;
    }

    .compare-choice-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .compare-choice-card {
        padding: 12px 13px;
        border-radius: 16px;
    }

    .compare-choice-head {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .compare-choice-text {
        font-size: 12px;
        line-height: 1.55;
    }

    .compare-score-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .compare-score-card {
        padding: 14px;
        border-radius: 18px;
    }

    .compare-tool-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .compare-tool-name {
        font-size: 17px;
    }

    .compare-tool-meta {
        gap: 7px;
    }

    .compare-mini-pill {
        font-size: 11px;
        padding: 6px 9px;
    }

    .compare-overall {
        text-align: left;
        min-width: 0;
    }

    .compare-overall span {
        font-size: 11px;
    }

    .compare-overall strong {
        font-size: 24px;
    }

    .compare-bars {
        gap: 10px;
    }

    .compare-bar-top {
        font-size: 12px;
        gap: 8px;
    }

    .compare-progress {
        height: 10px;
    }

    /* mobile table scroll better */
    .compare-table {
        display: block;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        min-width: 0;
    }

    .compare-table table {
        width: 100%;
    }

    .compare-table thead,
    .compare-table tbody,
    .compare-table tr {
        width: 100%;
    }

    .compare-table th,
    .compare-table td {
        min-width: 160px;
        padding: 12px 12px;
        font-size: 13px;
    }

    .compare-table th:first-child,
    .compare-table td:first-child {
        min-width: 130px;
    }

    .compare-table a {
        white-space: nowrap;
    }

    .compare-cell-win::after {
        display: none;
    }

    /* bottom compare bar mobile */
    .compare-bar {
        bottom: 10px;
        padding: 0 10px;
    }

    .compare-bar-inner {
        width: 100%;
        border-radius: 18px;
        padding: 12px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .compare-left {
        gap: 6px;
    }

    .compare-title {
        font-size: 17px;
    }

    .compare-count {
        font-size: 11px;
    }

    .compare-selected-tools {
        gap: 6px;
    }

    .compare-selected-chip {
        max-width: 100%;
        padding: 7px 9px;
    }

    .compare-selected-name {
        max-width: 120px;
        font-size: 11px;
    }

    .compare-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .compare-clear,
    .compare-now {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 13px;
    }
}

/* very small phones */
@media (max-width: 420px) {
    .compare-modal {
        padding: 8px;
    }

    .compare-card {
        padding: 12px;
        border-radius: 18px 18px 14px 14px;
    }

    .compare-title-main {
        font-size: 17px;
    }

    .compare-title-sub {
        font-size: 10.5px;
    }

    .compare-tool-name {
        font-size: 16px;
    }

    .compare-selected-name {
        max-width: 90px;
    }

    .compare-table th,
    .compare-table td {
        font-size: 12px;
        padding: 11px 10px;
    }
}

/* dark cleanup */
@media (prefers-color-scheme: dark) {
    .compare-card {
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
    }

    .compare-head {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .compare-verdict,
    .compare-choice-card,
    .compare-score-card,
    .compare-table {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .compare-verdict-item,
    .compare-mini-pill {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .compare-table thead th {
        background: rgba(20, 20, 28, 0.96);
    }

    .compare-cell-win {
        background: rgba(124, 92, 255, 0.18);
    }
}

/* =========================
   AI LEARNLAB DROPDOWN
========================= */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-caret {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .18s ease;
    opacity: 0.9;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
    transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 480px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 48px rgba(11, 13, 18, 0.16);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
    z-index: 1200;
    contain: layout;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-left: 1px solid rgba(17, 17, 17, 0.08);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    background: transparent;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(109, 93, 252, 0.09), rgba(192, 132, 252, 0.05));
    opacity: 0;
    transition: opacity 0.18s;
}

.nav-dropdown-item:hover {
    transform: translateX(3px);
    box-shadow: none;
}

.nav-dropdown-item:hover::before {
    opacity: 1;
}

.ndi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ndi-icon svg {
    width: 16px;
    height: 16px;
}

.nav-dropdown-item:hover .ndi-icon {
    transform: scale(1.12) rotate(-5deg);
}

.ndi-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ndi-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(11, 13, 18, 0.88);
    line-height: 1.2;
    transition: color 0.16s;
}

.nav-dropdown-item:hover .ndi-label {
    color: #6d5dfc;
}

.ndi-sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(11, 13, 18, 0.38);
    line-height: 1.3;
}

.ndi-arrow {
    width: 14px;
    height: 14px;
    stroke: rgba(11, 13, 18, 0.2);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.16s, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown-item:hover .ndi-arrow {
    opacity: 1;
    transform: translateX(0);
}

.ndi-divider {
    height: 1px;
    background: rgba(11, 13, 18, 0.06);
    margin: 4px;
    grid-column: 1 / -1;
}

.nav-dropdown-menu {
    gap: 2px;
}

/* =========================
   MOBILE SUB LINKS
========================= */

.nav-sub-link {
    padding-left: 22px;
    opacity: 0.9;
    font-size: 12.5px;
}

/* desktop me mobile sublinks mat dikhao */
@media (min-width: 861px) {
    .nav-sub-link {
        display: none !important;
    }
}

/* mobile me desktop dropdown mat dikhao */
@media (max-width: 860px) {
    .nav-dropdown {
        display: none !important;
    }
}

/* =========================
   DARK MODE
========================= */

@media (prefers-color-scheme: dark) {
    .nav-dropdown-menu {
        background: rgba(17, 20, 30, 0.96);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 54px rgba(0, 0, 0, 0.48);
    }

    .nav-dropdown-menu::before {
        background: rgba(17, 20, 30, 0.96);
        border-left-color: rgba(255, 255, 255, 0.08);
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .nav-dropdown-item {
        background: transparent;
        border: none;
    }

    .nav-dropdown-item:hover {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .ndi-label {
        color: rgba(255, 255, 255, 0.88);
    }

    .nav-dropdown-item:hover .ndi-label {
        color: #a78bfa;
    }

    .ndi-sub {
        color: rgba(255, 255, 255, 0.35);
    }

    .ndi-arrow {
        stroke: rgba(255, 255, 255, 0.25);
    }

    .ndi-divider {
        background: rgba(255, 255, 255, 0.07);
    }

    .nav-sub-link {
        color: rgba(255, 255, 255, 0.72);
    }

    .nav-sub-link:hover {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.06);
    }
}





/* ✅ Top 9 Trending Prompts — Horizontal Scroll Box */
#top9PromptsSection .toptrends-box {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

#top9PromptsSection .pg-grid {
    display: grid;
    grid-template-columns: repeat(10, 320px);
    grid-template-rows: 1fr;
    gap: 10px;
    margin-top: 0;
    width: max-content;
}

#top9PromptsSection .pg-card {
    width: 320px;
    min-height: 420px;
}

/* Scrollbar styling */
#top9PromptsSection .toptrends-box::-webkit-scrollbar {
    height: 3px;
}

#top9PromptsSection .toptrends-box::-webkit-scrollbar-track {
    background: transparent;
}

#top9PromptsSection .toptrends-box::-webkit-scrollbar-thumb {
    background: rgba(109, 93, 252, 0.35);
    border-radius: 999px;
}

#top9PromptsSection .toptrends-box::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 93, 252, 0.6);
}


/* ===== TOP PICKS + RECOMMENDED CARD FIX ===== */
.topPickCard {
    min-height: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topPickCard p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topPickCard .rec-meta-line {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    flex: 0 !important;
    font-weight: 600;
    font-size: 0.85rem;
    background: linear-gradient(90deg,
            rgba(97, 128, 255, 0.95),
            rgba(255, 128, 214, 0.95),
            rgba(255, 80, 80, 0.95));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.topPickCard .tool-actions {
    margin-top: auto;
    flex-shrink: 0;
}

/* Why line styling - Top Picks */
.topPickCard p b {
    background: linear-gradient(90deg,
            rgba(97, 128, 255, 0.95),
            rgba(255, 128, 214, 0.95),
            rgba(255, 80, 80, 0.95));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}




/* ===== ALTERNATIVES CARD FIX ===== */
.comp-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.comp-card .comp-desc {
    display: -webkit-box;
    -webkit-line-clamp: 9;
    line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.comp-card .rec-meta-line {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    flex: 0 !important;
    font-weight: 600;
    font-size: 0.85rem;
    background: linear-gradient(90deg,
            rgba(97, 128, 255, 0.95),
            rgba(255, 128, 214, 0.95),
            rgba(255, 80, 80, 0.95));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-top: 8px;
}

.comp-card .comp-actions {
    margin-top: auto;
    flex-shrink: 0;
}

.comp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .12);
}




/* ===== FIXED CARD HEIGHT + DESCRIPTION TRUNCATE ===== */
.section-card.tool-card {
    min-height: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    contain: layout;
}

.section-card.tool-card .tool-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.section-card.tool-card .tool-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-card.tool-card .tool-actions {
    margin-top: auto;
    flex-shrink: 0;
}

.section-card.tool-card .muted {
    font-size: 14px;
    color: var(--muted);
    margin: 8px 0px 7px;
    /* color: #a78bfa; */
    font-weight: 600;
    background: linear-gradient(90deg,
            rgba(97, 128, 255, 0.95),
            rgba(255, 128, 214, 0.95),
            rgba(255, 80, 80, 0.95));
    background-clip: text;
    color: transparent;
}


/* ===== Animated Traveling Border Line — prompt-card ===== */

/* Register custom property for smooth angle animation */
@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Wrapper that sits BEHIND .prompt-card to show the animated line */
.prompt-card {
    position: relative;
}

.prompt-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    /* 2px outside the card on all sides */
    border-radius: inherit;
    /* Same rounded corners as your card */
    z-index: -1;
    /* Behind the card content */
    pointer-events: none;
    /* Don't block clicks */

    /* The traveling line effect */
    background: conic-gradient(from var(--border-angle),
            transparent 0%,
            transparent 65%,
            rgba(140, 100, 255, 0.6) 75%,
            rgba(180, 140, 255, 0.9) 80%,
            rgba(255, 150, 220, 0.9) 85%,
            rgba(140, 100, 255, 0.6) 90%,
            transparent 100%);

    will-change: transform;
    animation: promptBorderSpin 4s linear infinite;
}

/* .prompt-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: inherit;
  background: var(--card-bg, #ffffff);
  z-index: -1;
} */


@keyframes promptBorderSpin {
    0% {
        --border-angle: 0deg;
    }

    100% {
        --border-angle: 360deg;
    }
}








/* ===== PREMIUM SEARCH BUTTON ===== */
@property --psb-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.premium-search-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    flex-shrink: 0;
    overflow: visible !important;
    cursor: pointer;
    outline: none;
}

/* Spinning conic glow ring (hover pe aata hai) */
.psb-glow-track {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from var(--psb-angle), #7c3aed, #a855f7, #ec4899, #f59e0b, #7c3aed);
    will-change: transform;
    animation: psbSpin 2.5s linear infinite;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

@keyframes psbSpin {
    to {
        --psb-angle: 360deg;
    }
}

.premium-search-btn:hover .psb-glow-track {
    opacity: 1;
}

/* Main inner circle */
.psb-inner {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d5dfc, #9b6bff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    box-shadow: 0 4px 22px rgba(109, 93, 252, 0.55);
    overflow: hidden;
}

/* Sheen sweep animation */
.psb-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    background-size: 200% 100%;
    will-change: transform;
    animation: psbSheen 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes psbSheen {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Arrow icon */
.psb-arrow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #fff;
}

.psb-arrow svg {
    width: 20px;
    height: 20px;
}

/* Pulse rings */
.psb-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.psb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(109, 93, 252, 0.5);
    will-change: transform;
    animation: psbRing 2.2s ease-out infinite;
}

.psb-ring:nth-child(2) {
    animation-delay: 0.7s;
}

.psb-ring:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes psbRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.0);
        opacity: 0;
    }
}

/* Hover effects */
.premium-search-btn:hover .psb-inner {
    transform: scale(1.12);
    box-shadow: 0 8px 36px rgba(109, 93, 252, 0.7), 0 0 0 6px rgba(109, 93, 252, 0.12);
}

.premium-search-btn:hover .psb-arrow {
    transform: translateX(2px);
}

/* Active / click */
.premium-search-btn:active .psb-inner {
    transform: scale(0.90);
    box-shadow: 0 2px 12px rgba(109, 93, 252, 0.4);
}

/* Magnetic move — controlled by JS */
.premium-search-btn {
    transition: transform 0.15s ease;
}

/* Particle burst */
.psb-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Cursor trail dots */
.psb-trail {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s;
}

/* ===== END PREMIUM SEARCH BUTTON ===== */





/* ===== PREMIUM FILTER PILLS ===== */
@property --fpill-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.fpill-wrap {
    position: relative;
    flex-shrink: 0;
}

.fpill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 7px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.fpill:hover {
    transform: translateY(-2px) scale(1.03);
    background: var(--surface-2);
    border-color: var(--fpill-acc, #a78bfa);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--fpill-acc, #a78bfa);
}

.fpill:active {
    transform: scale(0.96);
}

.fpill[data-acc="#a78bfa"] {
    --fpill-acc: #a78bfa;
}

.fpill[data-acc="#34d399"] {
    --fpill-acc: #34d399;
}

.fpill[data-acc="#60a5fa"] {
    --fpill-acc: #60a5fa;
}

.fpill[data-acc="#f472b6"] {
    --fpill-acc: #f472b6;
}

.fpill.fopen {
    border-color: var(--fpill-acc, #a78bfa);
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--fpill-acc, #a78bfa), 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Active dot */
.fpill-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fpill-acc, #a78bfa);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.fpill.factive .fpill-dot {
    opacity: 1;
    transform: scale(1);
}

/* Icon */
.fpill-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fpill-icon svg {
    width: 11px;
    height: 11px;
    transition: stroke 0.2s;
}

.fpill:hover .fpill-icon,
.fpill.fopen .fpill-icon {
    background: var(--fpill-acc, #a78bfa);
    transform: rotate(8deg) scale(1.1);
}

.fpill:hover .fpill-icon svg,
.fpill.fopen .fpill-icon svg {
    stroke: #fff !important;
}

/* Text */
.fpill-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}

.fpill-label {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.fpill-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s;
}

.fpill:hover .fpill-label,
.fpill.fopen .fpill-label {
    color: var(--fpill-acc, #a78bfa);
}

.fpill:hover .fpill-value,
.fpill.fopen .fpill-value {
    color: var(--text);
}

.fpill.factive .fpill-label {
    color: var(--fpill-acc, #a78bfa);
}

/* Caret */
.fpill-caret {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    border-radius: 1px;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s, border-color 0.2s;
    margin-left: 2px;
    flex-shrink: 0;
}

.fpill:hover .fpill-caret {
    border-color: var(--fpill-acc, #a78bfa);
}

.fpill.fopen .fpill-caret {
    border-color: var(--fpill-acc, #a78bfa);
    transform: rotate(225deg) translateY(-2px);
}

/* DROPDOWN */
.fpill-drop {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 256px;
    max-height: 313px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    z-index: 200;
    flex-direction: column;
    gap: 3px;
    animation: fpillDropIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(109, 93, 252, 0.4) transparent;
}

.fpill-drop::-webkit-scrollbar {
    width: 4px;
}

.fpill-drop::-webkit-scrollbar-track {
    background: transparent;
}

.fpill-drop::-webkit-scrollbar-thumb {
    background: rgba(109, 93, 252, 0.4);
    border-radius: 999px;
}

.fpill-drop::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 93, 252, 0.7);
}

.fpill-drop.fshow {
    display: flex;
}

@keyframes fpillDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-color-scheme: dark) {
    .fpill-drop {
        background: rgba(12, 12, 22, 0.97);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
}

.fdrop-head {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 10px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

/* Dropdown option */
.fdrop-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
}

.fdrop-opt:hover {
    background: var(--surface);
    color: var(--text);
}

.fdrop-opt.fsel {
    color: var(--dclr, #a78bfa);
    background: rgba(128, 128, 128, 0.06);
}

.fdrop-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fdrop-icon svg {
    width: 13px;
    height: 13px;
    stroke: var(--muted);
}

.fdrop-opt.fsel .fdrop-icon {
    background: rgba(128, 128, 128, 0.12);
}

.fdrop-opt.fsel .fdrop-icon svg {
    stroke: var(--dclr, #a78bfa);
}

.fdrop-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fdrop-check svg {
    display: none;
}

.fdrop-opt.fsel .fdrop-check {
    background: var(--dclr, #a78bfa);
    border-color: var(--dclr, #a78bfa);
}

.fdrop-opt.fsel .fdrop-check::after {
    content: '';
    width: 5px;
    height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

/* Checkbox rows in advanced */
.fdrop-chk {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.fdrop-chk:hover {
    background: var(--surface);
    color: var(--text);
}

.fdrop-chk input[type="checkbox"] {
    display: none;
}

.fdrop-chk-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fdrop-chk-icon svg {
    width: 13px;
    height: 13px;
    stroke: var(--muted);
}

.fdrop-chk-label {
    flex: 1;
    font-weight: 600;
}

.fdrop-chk-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fdrop-chk input:checked~.fdrop-chk-box {
    background: #f472b6;
    border-color: #f472b6;
}

.fdrop-chk input:checked~.fdrop-chk-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
    display: block;
}

.fdrop-chk input:checked~.fdrop-chk-icon svg {
    stroke: #f472b6;
}

.fdrop-chk:has(input:checked) {
    color: var(--text);
}

/* MOBILE */
@media (max-width: 640px) {
    .fpill-wrap {
        width: 100%;
    }

    .fpill {
        width: 100%;
        padding: 4px 9px 4px 6px;
        gap: 6px;
        justify-content: flex-start;
    }

    .fpill-icon {
        width: 20px;
        height: 20px;
    }

    .fpill-icon svg {
        width: 10px;
        height: 10px;
    }

    .fpill-label {
        font-size: 8px;
        letter-spacing: 0.04em;
    }

    .fpill-value {
        font-size: 11px;
    }

    .fpill-caret {
        margin-left: auto;
        width: 5px;
        height: 5px;
    }

    .fpill-drop {
        min-width: 150px;
        max-height: 260px;
    }
}

@media (max-width: 400px) {
    .fpill {
        padding: 5px 9px 5px 7px;
        gap: 5px;
    }

    .fpill-icon {
        width: 18px;
        height: 18px;
    }

    .fpill-icon svg {
        width: 9px;
        height: 9px;
    }

    .fpill-label {
        font-size: 8px;
    }

    .fpill-value {
        font-size: 11px;
    }
}

/* ===== END PREMIUM FILTER PILLS ===== */





/* =========================
   ADVANCED HISTORY PANEL
========================= */

/* Badge dot on history button */
.hist-badge-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6d5dfc;
    border: 2px solid var(--card-bg, #fff);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.recent-toggle-btn.hist-has-items .hist-badge-dot {
    opacity: 1;
    transform: scale(1);
}

/* SVG icon inside history button */
.recent-toggle-svg {
    width: 20px;
    height: 20px;
    stroke: rgba(11, 13, 18, 0.55);
    transition: stroke 0.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    pointer-events: none;
}

.recent-toggle-btn:hover .recent-toggle-svg,
.recent-toggle-btn.hist-open .recent-toggle-svg {
    stroke: #fff;
    transform: rotate(-20deg) scale(1.1);
}

.recent-toggle-btn.hist-open .recent-toggle-svg {
    transform: rotate(20deg) scale(1.1);
}

@media (prefers-color-scheme: dark) {
    .recent-toggle-svg {
        stroke: rgba(255, 255, 255, 0.8);
    }
}


/* History Panel */
.hist-panel {
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    line-height: 0;
    font-size: 0;
    display: none;
    transition: opacity 0.28s ease;
}

.hist-panel.hist-open {
    display: block;
    max-height: 360px;
    opacity: 1;
    margin-top: 12px;
    line-height: normal;
    font-size: initial;
}

/* Inner box */
.hist-inner {
    border-radius: 14px;
    padding: 12px;
    background: rgba(109, 93, 252, 0.04);
    border: 1px solid rgba(109, 93, 252, 0.12);
}

@media (prefers-color-scheme: dark) {
    .hist-inner {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.07);
    }
}

/* Header row */
.hist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(109, 93, 252, 0.1);
}

@media (prefers-color-scheme: dark) {
    .hist-head {
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }
}

.hist-title-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(11, 13, 18, 0.45);
}

.hist-title-row svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-color-scheme: dark) {
    .hist-title-row {
        color: rgba(255, 255, 255, 0.3);
    }
}

.hist-clear-btn {
    font-size: 11px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    color: #6d5dfc;
    transition: all 0.2s;
}

.hist-clear-btn:hover {
    background: rgba(109, 93, 252, 0.12);
    color: #9b6bff;
}

/* Chips list */
.hist-chips-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 230px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(109, 93, 252, 0.3) transparent;
}

.hist-chips-list::-webkit-scrollbar {
    width: 3px;
}

.hist-chips-list::-webkit-scrollbar-thumb {
    background: rgba(109, 93, 252, 0.3);
    border-radius: 999px;
}

/* Each chip row */
.hist-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: histChipIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hist-chip-row:nth-child(1) {
    animation-delay: 0.03s
}

.hist-chip-row:nth-child(2) {
    animation-delay: 0.07s
}

.hist-chip-row:nth-child(3) {
    animation-delay: 0.11s
}

.hist-chip-row:nth-child(4) {
    animation-delay: 0.15s
}

.hist-chip-row:nth-child(5) {
    animation-delay: 0.19s
}

.hist-chip-row:nth-child(6) {
    animation-delay: 0.23s
}

@keyframes histChipIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hist-chip-row:hover {
    background: rgba(109, 93, 252, 0.07);
    transform: translateX(4px);
}

@media (prefers-color-scheme: dark) {
    .hist-chip-row:hover {
        background: rgba(109, 93, 252, 0.12);
    }
}

/* Clock icon */
.hist-chip-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(109, 93, 252, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.hist-chip-icon svg {
    width: 12px;
    height: 12px;
    stroke: #6d5dfc;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hist-chip-row:hover .hist-chip-icon {
    background: rgba(109, 93, 252, 0.2);
}

.hist-chip-row:hover .hist-chip-icon svg {
    stroke: #9b6bff;
}

/* Query text */
.hist-chip-q {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(11, 13, 18, 0.7);
    transition: color 0.2s;
}

.hist-chip-row:hover .hist-chip-q {
    color: rgba(11, 13, 18, 0.92);
}

@media (prefers-color-scheme: dark) {
    .hist-chip-q {
        color: rgba(255, 255, 255, 0.65);
    }

    .hist-chip-row:hover .hist-chip-q {
        color: rgba(255, 255, 255, 0.95);
    }
}

/* Time label */
.hist-chip-time {
    font-size: 10px;
    flex-shrink: 0;
    font-weight: 500;
    color: rgba(11, 13, 18, 0.3);
}

@media (prefers-color-scheme: dark) {
    .hist-chip-time {
        color: rgba(255, 255, 255, 0.22);
    }
}

/* Delete X button */
.hist-chip-del {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    flex-shrink: 0;
    transition: all 0.18s;
}

.hist-chip-del svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: rgba(11, 13, 18, 0.35);
    stroke-width: 2.5;
    stroke-linecap: round;
}

@media (prefers-color-scheme: dark) {
    .hist-chip-del svg {
        stroke: rgba(255, 255, 255, 0.3);
    }
}

.hist-chip-row:hover .hist-chip-del {
    opacity: 1;
}

.hist-chip-del:hover {
    background: rgba(248, 113, 113, 0.15);
}

.hist-chip-del:hover svg {
    stroke: #f87171;
}

/* Empty state */
.hist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px;
    text-align: center;
}

.hist-empty svg {
    width: 26px;
    height: 26px;
    stroke: rgba(11, 13, 18, 0.2);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hist-empty p {
    font-size: 12px;
    font-weight: 600;
    color: rgba(11, 13, 18, 0.3);
}

@media (prefers-color-scheme: dark) {
    .hist-empty svg {
        stroke: rgba(255, 255, 255, 0.15);
    }

    .hist-empty p {
        color: rgba(255, 255, 255, 0.25);
    }
}



/* =========================
   PREMIUM MOBILE MENU DRAWER v2
   (works on all pages, auto dark/light)
========================= */

/* ── Drawer: full-height side panel from right ── */
#siteNav .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(88vw, 320px);
    max-width: min(88vw, 320px);
    height: 100dvh;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-radius: 20px 0 0 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-right: none;
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.18);
    z-index: 1002;
    overflow: hidden;
    transform: translateX(110%);
    transition: transform 0.38s cubic-bezier(.4, 0, .2, 1);
}

/* Open state */
#siteNav.open .nav-menu {
    transform: translateX(0);
}


/* ── Menu Header (logo + close) ── */
.nm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nm-brand {
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    flex: 1;
    min-width: 0;
}

.nm-brand img {
    width: 30px;
    height: 30px;
    display: block;
}

@media (prefers-color-scheme: dark) {
    .nm-brand img {
        filter: invert(1) brightness(1.15);
    }
}

.nm-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
}

.nm-close:hover {
    background: rgba(109, 93, 252, 0.12);
    color: var(--text);
}

/* ── User Card ── */
.nm-user-card {
    margin: 14px 0 6px;
    padding: 13px 18px;
    border-radius: 0;
    background: rgba(109, 93, 252, 0.07);
    border-top: 1px solid rgba(109, 93, 252, 0.14);
    border-bottom: 1px solid rgba(109, 93, 252, 0.14);
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.nm-user-card.nm-hidden {
    display: none;
}

.nm-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-family: var(--font-head);
}

.nm-user-info {
    flex: 1;
    min-width: 0;
}

.nm-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nm-user-email {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nm-user-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(109, 93, 252, 0.18);
    color: var(--primary);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* ── Section Label ── */
.nm-section-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 18px 3px;
    flex-shrink: 0;
}

/* ── Scrollable items area ── */
.nm-items {
    flex: 1;
    overflow-y: auto;
    padding: 4px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    -webkit-overflow-scrolling: touch;
}

.nm-items::-webkit-scrollbar {
    width: 0;
}

/* ── Menu Item ── */
.nm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
    position: relative;
    overflow: hidden;
}

.nm-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    border-radius: 0 2px 2px 0;
    background: var(--primary);
    transition: transform 0.18s ease;
}

.nm-item:hover::before,
.nm-item.nm-active::before {
    transform: translateY(-50%) scaleY(1);
}

.nm-item:hover {
    background: rgba(109, 93, 252, 0.07);
    border-color: rgba(109, 93, 252, 0.14);
    transform: translateX(3px);
}

.nm-item.nm-active {
    background: rgba(109, 93, 252, 0.10);
    border-color: rgba(109, 93, 252, 0.22);
}

@media (prefers-color-scheme: dark) {
    .nm-item:hover {
        background: rgba(109, 93, 252, 0.12);
        border-color: rgba(109, 93, 252, 0.22);
    }

    .nm-item.nm-active {
        background: rgba(109, 93, 252, 0.15);
        border-color: rgba(109, 93, 252, 0.28);
    }
}

/* ── Item Icon ── */
.nm-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nm-item:hover .nm-icon {
    transform: scale(1.08) rotate(-4deg);
}

.nm-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.nm-icon-purple {
    background: rgba(109, 93, 252, 0.14);
}

.nm-icon-blue {
    background: rgba(59, 130, 246, 0.14);
}

.nm-icon-teal {
    background: rgba(20, 184, 166, 0.14);
}

.nm-icon-amber {
    background: rgba(245, 158, 11, 0.14);
}

.nm-icon-pink {
    background: rgba(236, 72, 153, 0.14);
}

.nm-icon-green {
    background: rgba(34, 197, 94, 0.14);
}

.nm-icon-red {
    background: rgba(248, 113, 113, 0.14);
}

/* ── Item Text ── */
.nm-item-text {
    flex: 1;
    min-width: 0;
}

.nm-item-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nm-item-desc {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
}

/* ── Badges ── */
.nm-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.nm-badge-new {
    background: rgba(20, 184, 166, 0.15);
    color: #0d9488;
}

.nm-badge-pro {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.nm-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    will-change: transform;
    animation: nm-pulse 2s infinite;
}

@media (prefers-color-scheme: dark) {
    .nm-badge-new {
        background: rgba(20, 184, 166, 0.20);
        color: #2dd4bf;
    }

    .nm-badge-pro {
        background: rgba(245, 158, 11, 0.20);
        color: #fbbf24;
    }
}

@keyframes nm-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.65);
    }
}

/* ── Divider ── */
.nm-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 6px;
    flex-shrink: 0;
}

/* ── Footer (logout) ── */
.nm-footer {
    padding: 8px 14px 20px;
    flex-shrink: 0;
}

.nm-logout-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform 0.18s, box-shadow 0.18s;
    font-family: var(--font-body);
}

.nm-logout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(109, 93, 252, 0.35);
}

.nm-logout-btn:active {
    transform: scale(0.98);
}

.nm-logout-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── Slide-in animation for items ── */
#siteNav.open .nm-item {
    animation: nm-slide-in 0.3s cubic-bezier(.4, 0, .2, 1) both;
}

#siteNav.open .nm-item:nth-child(1) {
    animation-delay: 0.04s;
}

#siteNav.open .nm-item:nth-child(2) {
    animation-delay: 0.08s;
}

#siteNav.open .nm-item:nth-child(3) {
    animation-delay: 0.12s;
}

#siteNav.open .nm-item:nth-child(4) {
    animation-delay: 0.16s;
}

#siteNav.open .nm-item:nth-child(5) {
    animation-delay: 0.20s;
}

#siteNav.open .nm-item:nth-child(6) {
    animation-delay: 0.24s;
}

#siteNav.open .nm-item:nth-child(7) {
    animation-delay: 0.28s;
}

#siteNav.open .nm-item:nth-child(8) {
    animation-delay: 0.32s;
}

#siteNav.open .nm-item:nth-child(9) {
    animation-delay: 0.36s;
}

#siteNav.open .nm-item:nth-child(10) {
    animation-delay: 0.40s;
}

@keyframes nm-slide-in {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Burger button: hamburger → X animation ── */
.nav-burger {
    position: relative;
}

.nav-burger .nm-hbar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1), opacity 0.2s;
    transform-origin: center;
}

/* Use SVG img for burger if it exists — hide nm-hbar in that case */
.nav-burger img~.nm-hbar,
.nav-burger:has(img) .nm-hbar {
    display: none;
}

/* When menu open → X animation on nm-hbar only (when no img) */
#siteNav.open .nav-burger:not(:has(img)) .nm-hbar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#siteNav.open .nav-burger:not(:has(img)) .nm-hbar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#siteNav.open .nav-burger:not(:has(img)) .nm-hbar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* iPad / tablet — menu still looks good */
@media (min-width: 541px) and (max-width: 860px) {
    #siteNav .nav-menu {
        width: min(72vw, 320px);
        max-width: min(72vw, 320px);
        border-radius: 24px 0 0 24px;
    }
}

/* === END PREMIUM MOBILE MENU DRAWER v2 === */


/* === NM-HIDDEN UNIVERSAL FIX === */
.nm-hidden {
    display: none !important;
}

/* === END === */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.nav--scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 4px 24px rgba(11, 13, 18, 0.08);
}

@media (prefers-color-scheme: dark) {
    .nav.nav--scrolled {
        background: rgba(7, 8, 18, 0.92) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    }
}




/* ===== Did You Mean Banner ===== */
.did-you-mean-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(109, 93, 252, 0.08);
    border: 1px solid rgba(109, 93, 252, 0.2);
    border-radius: 10px;
    font-size: 14px;
    /* margin-bottom: 14px; */
    margin: 33px 0 30px 0;
    flex-wrap: wrap;
    color: var(--text, #e2e8f0);
}

.did-you-mean-banner span {
    opacity: 0.75;
}

.dym-link {
    background: none;
    border: none;
    color: #a78bfa;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dym-link:hover {
    color: #c4b5fd;
}

.dym-dismiss {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 13px;
    padding: 0 4px;
    margin-left: auto;
    line-height: 1;
    opacity: 0.6;
}

.dym-dismiss:hover {
    opacity: 1;
}

/* ===== Share Tool Button ===== */
.shareToolBtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 99px;
    border: 1px solid rgba(109, 93, 252, 0.3);
    background: rgba(109, 93, 252, 0.06);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
}

.shareToolBtn:hover {
    background: rgba(109, 93, 252, 0.15);
    border-color: rgba(109, 93, 252, 0.55);
    color: #c4b5fd;
}

.shareToolBtn:disabled {
    opacity: 0.8;
    cursor: default;
}

/* Animated hero bars background */
.hero-bars-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-bar {
    flex: 1;
    transform-origin: bottom;
}

/* Dark mode bars */
body.dark .hero-bar,
[data-theme="dark"] .hero-bar,
.hero-bar {
    background: linear-gradient(to top, #7c3aed, transparent);
}

/* Light mode bars */
body.light .hero-bar,
[data-theme="light"] .hero-bar {
    background: linear-gradient(to top, #a78bfa, transparent);
}

@keyframes heroPulseBar {
    0% {
        transform: scaleY(var(--s));
        opacity: 0.6;
    }

    100% {
        transform: scaleY(calc(var(--s) * 1.13));
        opacity: 1;
    }
}

/* Phase 3: disable infinite decorative/search loaders when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

    .voice-btn.listening .vring-1,
    .voice-btn.listening .vring-2,
    .voice-btn.listening .vring-3,
    .voice-btn.listening .wbar:nth-child(1),
    .voice-btn.listening .wbar:nth-child(2),
    .voice-btn.listening .wbar:nth-child(3),
    .voice-btn.listening .wbar:nth-child(4),
    .voice-btn.listening .wbar:nth-child(5),
    .voice-btn.listening,
    .voice-btn.processing .vspin,
    .loader-shell::before,
    .loader-shell::after,
    .loader-mark,
    .loader-logo,
    .loader-dots span,
    .loader-progress-bar,
    .loader-spinner,
    .loader-ai-label,
    .loader-chip:nth-child(1),
    .prompt-card::before,
    .psb-glow-track,
    .psb-sheen,
    .psb-ring,
    .nm-badge-dot {
        animation: none !important;
    }
}

/* ========== Forced theme via html.theme-dark / html.theme-light (fozi_theme) ========== */
html.theme-dark {

    --bg: #070812;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.10);

    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.65);

    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 18px 58px rgba(0, 0, 0, 0.55);

    /* dark mode hero glow thoda deep */
    --hero-a: rgba(125, 95, 255, 0.30);
    --hero-b: rgba(255, 122, 168, 0.18);
    --hero-c: rgba(88, 197, 255, 0.14);

}

html.theme-dark .brand-logo {

    filter: invert(1) brightness(1.15) contrast(1.1);

}

html.theme-dark .nav-link {

    color: rgba(255, 255, 255, 0.70);

}

html.theme-dark .nav-link:hover {

    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);

}

html.theme-dark #launchBtnHeader {

    background: rgba(109, 93, 252, 0.22);
    border-color: rgba(109, 93, 252, 0.55);
    color: rgba(255, 255, 255, 0.92);

}

html.theme-dark #loginBtnHeader {

    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    /* ✅ login white */

}

html.theme-dark #loginBtnHeader:hover {

    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);

}

html.theme-dark .search-textarea::placeholder {

    color: rgba(255, 255, 255, 0.40);

}

html.theme-dark .pill-select {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);

}

html.theme-dark .pill-select:hover {

    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(109, 93, 252, 0.40);

}

html.theme-dark .pill-select:focus {

    box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.22);

}

html.theme-dark .recent-toggle-btn {

    background: rgba(109, 93, 252, 0.14);
    border-color: rgba(109, 93, 252, 0.30);
    color: rgba(255, 255, 255, 0.88);

}

html.theme-dark .recent-toggle-btn:hover {

    background: rgba(109, 93, 252, 0.22);
    border-color: rgba(109, 93, 252, 0.55);

}

html.theme-dark .tool-alt {

    background: rgba(255, 255, 255, 0.06);

}

html.theme-dark .result-card a.exploreBtn,
html.theme-dark .topPickCard .tool-actions .tool-explore,
html.theme-dark .tool-explore {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);

}

html.theme-dark .result-card a.exploreBtn:visited,
html.theme-dark .topPickCard .tool-actions .tool-explore:visited,
html.theme-dark .tool-explore:visited {

    color: rgba(255, 255, 255, 0.92);

}

html.theme-dark .result-card a.exploreBtn:hover,
html.theme-dark .topPickCard .tool-actions .tool-explore:hover,
html.theme-dark .tool-explore:hover {

    border-color: #7c5cff;
    color: #b8a8ff;
    background: rgba(124, 92, 255, 0.12);

}

html.theme-dark .comp-actions .comp-link.comp-explore {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92) !important;

}

html.theme-dark .comp-actions .comp-link.comp-explore:visited {

    color: rgba(255, 255, 255, 0.92) !important;

}

html.theme-dark .comp-actions .comp-link.comp-explore:hover {

    border-color: #7c5cff;
    color: #b8a8ff !important;
    background: rgba(124, 92, 255, 0.12);

}

html.theme-dark .nav-burger img {

    filter: invert(1) brightness(1.2);

}

html.theme-dark #siteNav .nav-burger img {

    filter: brightness(0) invert(1);

}

html.theme-dark .trending-wrap .toptrends-box {

    background: rgba(18, 18, 24, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);

}

html.theme-dark .learn-title::before,
html.theme-dark .learn-title::after {

    background: rgba(255, 255, 255, 0.14);

}

html.theme-dark .learn-card {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);

}

html.theme-dark .learn-ico {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(109, 93, 252, 0.20);

}

html.theme-dark .trending-wrap .trend-rank {

    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 34px rgba(255, 122, 0, 0.35);
    color: rgba(10, 10, 10, 0.92);

}

html.theme-dark .testi-avatar {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);

}

html.theme-dark .footer-brand-logo {

    filter: invert(1) brightness(1.2);

}

html.theme-dark .auth-backdrop,
html.theme-dark #authBackdrop {

    background: rgba(0, 0, 0, 0.65);

}

html.theme-dark .auth-card::after {

    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);

}

html.theme-dark .auth-card::before {

    background:
        radial-gradient(420px 320px at 20% 15%, var(--hero-a), transparent 62%),
        radial-gradient(520px 360px at 80% 20%, var(--hero-c), transparent 62%),
        radial-gradient(520px 380px at 55% 70%, var(--hero-b), transparent 62%),
        rgba(255, 255, 255, 0.05);

}

html.theme-dark .auth-close {

    background: rgba(255, 255, 255, 0.08);

}

html.theme-dark .auth-tabs {

    background: rgba(255, 255, 255, 0.06);

}

html.theme-dark .auth-tab.active {

    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.12);

}

html.theme-dark .auth-panel input {

    background: rgba(255, 255, 255, 0.06);

}

html.theme-dark .auth-social-btn {

    background: rgba(255, 255, 255, 0.08);

}

html.theme-dark .auth-side-logo {

    filter: invert(1) brightness(1.2);

}

html.theme-dark .sys-popup::before {

    background: rgba(0, 0, 0, 0.65);

}

html.theme-dark .sys-popup-card {

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.48),
        0 8px 28px rgba(109, 93, 252, 0.18);

}

html.theme-dark .sys-popup-close {

    background: rgba(255, 255, 255, 0.08);

}

html.theme-dark .sys-popup-close:hover {

    background: rgba(255, 255, 255, 0.12);

}

html.theme-dark .recent-toggle-btn:hover {

    background: rgba(109, 93, 252, 0.625);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);

}

html.theme-dark .recent-toggle-icon {

    filter: brightness(0) invert(1);
    opacity: 0.94;

}

html.theme-dark .filter-icon-img,
html.theme-dark #moreFiltersBtn.icon-only-btn img {

    filter: brightness(0) invert(1);

}

html.theme-dark .nav-actions .btn-ghost {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);

}

html.theme-dark .nav-actions .btn-ghost:hover {

    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(125, 95, 255, 0.34);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);

}

html.theme-dark .nav-actions .btn-solid {

    color: var(--btn-solid-text);

}

html.theme-dark .page-cat-tag {

    border-color: rgba(155, 107, 255, 0.24);
    background: linear-gradient(135deg,
            rgba(109, 93, 252, 0.16),
            rgba(255, 122, 168, 0.08));
    color: #b9acff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);

}

html.theme-dark .filter-left {

    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(109, 93, 252, 0.09), rgba(255, 122, 168, 0.05));
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

}

html.theme-dark .filter-left::after {

    background: rgba(255, 255, 255, 0.09);

}

html.theme-dark .filter-input::placeholder {

    color: rgba(255, 255, 255, 0.42);

}

html.theme-dark .filter-left:focus-within {

    border-color: rgba(155, 107, 255, 0.32);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.32),
        0 0 0 4px rgba(109, 93, 252, 0.12);

}

html.theme-dark .filter-clear {

    border-color: rgba(155, 107, 255, 0.22);
    background: linear-gradient(135deg,
            rgba(109, 93, 252, 0.14),
            rgba(255, 122, 168, 0.07));
    color: #c4b7ff;

}

html.theme-dark .filter-clear:hover {

    border-color: rgba(155, 107, 255, 0.34);
    background: linear-gradient(135deg,
            rgba(109, 93, 252, 0.2),
            rgba(255, 122, 168, 0.1));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);

}

html.theme-dark .muted-chip,
html.theme-dark #catCount {

    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);

}

html.theme-dark .cat-pill {

    border-color: rgba(255, 110, 110, 0.18);
    background: linear-gradient(135deg,
            rgba(255, 92, 92, 0.14),
            rgba(255, 122, 168, 0.08));
    color: #ff8b8f;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);

}

html.theme-dark .cat-pill:hover {

    border-color: rgba(255, 110, 110, 0.28);
    background: linear-gradient(135deg,
            rgba(255, 92, 92, 0.20),
            rgba(255, 122, 168, 0.10));
    color: #ff9da0;

}

html.theme-dark .cat-tool-link {

    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);

}

html.theme-dark .cat-tool-link:hover {

    border-color: rgba(155, 107, 255, 0.22);
    background: rgba(109, 93, 252, 0.14);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.20);

}

html.theme-dark .ext-ic {

    color: rgba(255, 255, 255, 0.62);

}

html.theme-dark .cat-tool-link:hover .ext-ic {

    color: #c4b7ff;

}

html.theme-dark .cat-list-wrap {

    scrollbar-color: rgba(155, 107, 255, 0.36) transparent;

}

html.theme-dark .cat-list-wrap::-webkit-scrollbar-thumb {

    background: rgba(155, 107, 255, 0.34);

}

html.theme-dark .cat-list-wrap::-webkit-scrollbar-thumb:hover {

    background: rgba(154, 107, 255, 0.244);

}

html.theme-dark .nav-menu {

    background: rgba(18, 19, 30, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);

}

html.theme-dark .nav-menu .nav-link {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);

}

html.theme-dark .nav-menu .nav-link:hover {

    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(125, 95, 255, 0.22);

}

html.theme-dark .page-cat-tag {

    border-color: rgba(155, 107, 255, 0.24);
    background: linear-gradient(135deg,
            rgba(109, 93, 252, 0.16),
            rgba(255, 122, 168, 0.08));
    color: #b9acff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);

}

html.theme-dark .latest-filter-left {

    border-color: rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(109, 93, 252, 0.09), rgba(255, 122, 168, 0.05));
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

}

html.theme-dark .latest-filter-left::after {

    background: rgba(255, 255, 255, 0.09);

}

html.theme-dark .latest-filter-input::placeholder {

    color: rgba(255, 255, 255, 0.42);

}

html.theme-dark .latest-filter-left:focus-within {

    border-color: rgba(155, 107, 255, 0.32);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.32),
        0 0 0 4px rgba(109, 93, 252, 0.12);

}

html.theme-dark .latest-inline-filters .pill-select,
html.theme-dark .latest-inline-filters .more-filters-btn {

    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);

}

html.theme-dark .latest-inline-filters .pill-select:hover,
html.theme-dark .latest-inline-filters .more-filters-btn:hover {

    border-color: rgba(155, 107, 255, 0.22);
    background: rgba(109, 93, 252, 0.14);

}

html.theme-dark .advanced-filters-panel {

    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(18, 19, 30, 0.96);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);

}

html.theme-dark .adv-check:hover {

    background: rgba(109, 93, 252, 0.12);

}

html.theme-dark .loader-logo {

    filter: invert(1);
    opacity: 0.95;

}

html.theme-dark .loader-shell {

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);

}

html.theme-dark .loader-chip:nth-child(1) {

    background: rgba(109, 93, 252, 0.12);
    border: 1px solid rgba(109, 93, 252, 0.28);
    color: rgba(167, 139, 250, 0.95);
    will-change: transform;
    animation: loaderChipIn 0.4s 0.2s ease forwards, loaderChipBlink 2s 0.6s ease-in-out infinite;

}

html.theme-dark .loader-chip:nth-child(1) .loader-chip-dot {

    background: #8b5cf6;

}

html.theme-dark .loader-chip:nth-child(2) {

    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: rgba(96, 165, 250, 0.95);

}

html.theme-dark .loader-chip:nth-child(2) .loader-chip-dot {

    background: #3b82f6;

}

html.theme-dark .loader-chip:nth-child(3) {

    background: rgba(236, 72, 153, 0.10);
    border: 1px solid rgba(236, 72, 153, 0.22);
    color: rgba(244, 114, 182, 0.95);

}

html.theme-dark .loader-chip:nth-child(3) .loader-chip-dot {

    background: #ec4899;

}

html.theme-dark .loader-mark {

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px rgba(0, 0, 0, 0.26);

}

html.theme-dark .compare-verdict,
html.theme-dark .compare-score-card,
html.theme-dark .compare-table {

    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);

}

html.theme-dark .compare-verdict-item,
html.theme-dark .compare-mini-pill {

    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);

}

html.theme-dark .compare-mini-pill-accent,
html.theme-dark .compare-winner-badge {

    background: rgba(124, 92, 255, 0.16);
    border-color: rgba(124, 92, 255, 0.28);
    color: #c7bbff;

}

html.theme-dark .compare-progress {

    background: rgba(255, 255, 255, 0.08);

}

html.theme-dark .compare-table a {

    color: #b8a8ff;

}

html.theme-dark .compare-verdict-badge {

    background: rgba(124, 92, 255, 0.16);
    border-color: rgba(124, 92, 255, 0.28);
    color: #c7bbff;

}

html.theme-dark .compare-choice-card {

    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);

}

html.theme-dark .compare-cell-win {

    background: rgba(124, 92, 255, 0.16);

}

html.theme-dark .compare-bar-inner {

    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(10, 12, 18, 0.96), rgba(20, 22, 32, 0.96));

}

html.theme-dark .compare-selected-chip {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.09);

}

html.theme-dark .compare-close {

    background: rgba(255, 255, 255, 0.07);

}

html.theme-dark .compare-close:hover {

    background: rgba(124, 92, 255, 0.16);

}

html.theme-dark .compare-score-card {

    box-shadow: none;

}

html.theme-dark .compare-cell-win::after {

    background: rgba(124, 92, 255, 0.18);
    border-color: rgba(124, 92, 255, 0.25);
    color: #c7bbff;

}

html.theme-dark .compare-card {

    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);

}

html.theme-dark .compare-head {

    border-bottom-color: rgba(255, 255, 255, 0.08);

}

html.theme-dark .compare-verdict,
html.theme-dark .compare-choice-card,
html.theme-dark .compare-score-card,
html.theme-dark .compare-table {

    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);

}

html.theme-dark .compare-verdict-item,
html.theme-dark .compare-mini-pill {

    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);

}

html.theme-dark .compare-table thead th {

    background: rgba(20, 20, 28, 0.96);

}

html.theme-dark .compare-cell-win {

    background: rgba(124, 92, 255, 0.18);

}

html.theme-dark .nav-dropdown-menu {

    background: rgba(17, 20, 30, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.48);

}

html.theme-dark .nav-dropdown-menu::before {

    background: rgba(17, 20, 30, 0.96);
    border-left-color: rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.08);

}

html.theme-dark .nav-dropdown-item {

    background: transparent;
    border: none;

}

html.theme-dark .nav-dropdown-item:hover {

    background: transparent;
    border: none;
    box-shadow: none;

}

html.theme-dark .ndi-label {

    color: rgba(255, 255, 255, 0.88);

}

html.theme-dark .nav-dropdown-item:hover .ndi-label {

    color: #a78bfa;

}

html.theme-dark .ndi-sub {

    color: rgba(255, 255, 255, 0.35);

}

html.theme-dark .ndi-arrow {

    stroke: rgba(255, 255, 255, 0.25);

}

html.theme-dark .ndi-divider {

    background: rgba(255, 255, 255, 0.07);

}

html.theme-dark .nav-sub-link {

    color: rgba(255, 255, 255, 0.72);

}

html.theme-dark .nav-sub-link:hover {

    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);

}

html.theme-dark .fpill-drop {

    background: rgba(12, 12, 22, 0.97);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

}

html.theme-dark .recent-toggle-svg {

    stroke: rgba(255, 255, 255, 0.8);

}

html.theme-dark .hist-inner {

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);

}

html.theme-dark .hist-head {

    border-bottom-color: rgba(255, 255, 255, 0.06);

}

html.theme-dark .hist-title-row {

    color: rgba(255, 255, 255, 0.3);

}

html.theme-dark .hist-chip-row:hover {

    background: rgba(109, 93, 252, 0.12);

}

html.theme-dark .hist-chip-q {

    color: rgba(255, 255, 255, 0.65);

}

html.theme-dark .hist-chip-row:hover .hist-chip-q {

    color: rgba(255, 255, 255, 0.95);

}

html.theme-dark .hist-chip-time {

    color: rgba(255, 255, 255, 0.22);

}

html.theme-dark .hist-chip-del svg {

    stroke: rgba(255, 255, 255, 0.3);

}

html.theme-dark .hist-empty svg {

    stroke: rgba(255, 255, 255, 0.15);

}

html.theme-dark .hist-empty p {

    color: rgba(255, 255, 255, 0.25);

}

html.theme-dark .nm-brand img {

    filter: invert(1) brightness(1.15);

}

html.theme-dark .nm-item:hover {

    background: rgba(109, 93, 252, 0.12);
    border-color: rgba(109, 93, 252, 0.22);

}

html.theme-dark .nm-item.nm-active {

    background: rgba(109, 93, 252, 0.15);
    border-color: rgba(109, 93, 252, 0.28);

}

html.theme-dark .nm-badge-new {

    background: rgba(20, 184, 166, 0.20);
    color: #2dd4bf;

}

html.theme-dark .nm-badge-pro {

    background: rgba(245, 158, 11, 0.20);
    color: #fbbf24;

}

html.theme-dark .nav.nav--scrolled {

    background: rgba(7, 8, 18, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);

}

html.theme-light .nav-burger img {

    filter: none;

}

html.theme-light #siteNav .nav-burger img {

    filter: brightness(0) saturate(100%);

}

html.theme-light .loader-logo {

    filter: invert(0);

}

html.theme-light .loader-shell {

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.62)),
        var(--surface);
    box-shadow: 0 12px 30px rgba(11, 13, 18, 0.08);

}

html.theme-light .loader-mark {

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px rgba(109, 93, 252, 0.10);

}

html.theme-light .loader-chip:nth-child(1) {

    background: rgba(109, 93, 252, 0.08);
    border: 1px solid rgba(109, 93, 252, 0.22);
    color: #5b46d4;
    will-change: transform;
    animation: loaderChipIn 0.4s 0.2s ease forwards, loaderChipBlink 2s 0.6s ease-in-out infinite;

}

html.theme-light .loader-chip:nth-child(1) .loader-chip-dot {

    background: #7c5cf6;

}

html.theme-light .loader-chip:nth-child(2) {

    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.20);
    color: #185fa5;

}

html.theme-light .loader-chip:nth-child(2) .loader-chip-dot {

    background: #3b82f6;

}

html.theme-light .loader-chip:nth-child(3) {

    background: rgba(236, 72, 153, 0.07);
    border: 1px solid rgba(236, 72, 153, 0.18);
    color: #99355a;

}

html.theme-light .loader-chip:nth-child(3) .loader-chip-dot {

    background: #ec4899;

}

/* Restores light palette when OS prefers dark but user selects Light (html.theme-light beats :root inside dark media). Same values as default :root above — no new colors. */
html.theme-light {
    --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-head: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --container: 1400px;
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 19px;
    --bg: #ffffff;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-2: rgba(255, 255, 255, 0.92);
    --border: rgba(17, 17, 17, 0.08);
    --text: #0b0d12;
    --muted: rgba(11, 13, 18, 0.65);
    --primary: #6d5dfc;
    --primary-2: #9b6bff;
    --btn-text: #0b0d12;
    --btn-solid-text: #ffffff;
    --shadow-sm: 0 8px 22px rgba(11, 13, 18, 0.10);
    --shadow-md: 0 16px 46px rgba(11, 13, 18, 0.12);
    --hero-a: rgba(125, 95, 255, 0.28);
    --hero-b: rgba(255, 122, 168, 0.22);
    --hero-c: rgba(88, 197, 255, 0.18);
}

/* ── Nav Avatar Button (desktop, logged-in) ── */
.nav-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: var(--surface-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    padding: 0;
    transition: box-shadow 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.nav-avatar-btn:hover {
    box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.2);
    transform: translateY(-1px);
}

#navAvatarInner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

/* ── Remember Me Toggle ── */
.remember-me-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 12px 0;
    user-select: none;
}

.remember-me-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.remember-me-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.remember-me-slider {
    position: absolute;
    inset: 0;
    background: var(--border, rgba(0, 0, 0, 0.15));
    border-radius: 20px;
    transition: background 0.25s ease;
    cursor: pointer;
}

.remember-me-slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.remember-me-input:checked+.remember-me-slider {
    background: var(--primary, #7c3aed);
}

.remember-me-input:checked+.remember-me-slider::before {
    transform: translateX(16px);
}

.remember-me-text {
    font-size: 0.85rem;
    opacity: 0.75;
    color: var(--text);
}