/* ==========================================================================
   Design system
   Zero dependencies. Light + dark. Fluid, accessible, fast.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */
:root {
    --brand: #6D5EF8;
    --brand-2: #C86DD7;
    --brand-3: #22D3EE;
    --accent: #2FD6A5;
    --warn: #F5A524;
    --danger: #F0435F;

    --bg: #F6F6FB;
    --bg-alt: #EFEFF7;
    --panel: #FFFFFF;
    --panel-2: rgba(255, 255, 255, .74);
    --line: rgba(18, 18, 45, .09);
    --line-strong: rgba(18, 18, 45, .16);
    --ink: #13132B;
    --ink-2: #3A3A5C;
    --muted: #64648A;
    --glass-blur: 22px;

    --shadow-sm: 0 1px 2px rgba(18, 18, 45, .06), 0 2px 8px rgba(18, 18, 45, .05);
    --shadow: 0 6px 18px rgba(18, 18, 45, .08), 0 2px 6px rgba(18, 18, 45, .05);
    --shadow-lg: 0 28px 60px -22px rgba(18, 18, 45, .32), 0 10px 24px -12px rgba(18, 18, 45, .18);
    --shadow-brand: 0 18px 44px -18px rgba(109, 94, 248, .58);

    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 34px;
    --r-full: 999px;

    --shell: 1280px;
    --gap: clamp(16px, 2.4vw, 28px);
    --ease: cubic-bezier(.22, 1, .36, 1);

    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #07070E;
    --bg-alt: #0B0B16;
    --panel: #10101D;
    --panel-2: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .085);
    --line-strong: rgba(255, 255, 255, .16);
    --ink: #F2F2F9;
    --ink-2: #C9C9E0;
    --muted: #9494B8;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 8px 22px rgba(0, 0, 0, .48);
    --shadow-lg: 0 34px 70px -26px rgba(0, 0, 0, .82), 0 12px 28px -14px rgba(0, 0, 0, .6);
    --shadow-brand: 0 20px 52px -20px rgba(109, 94, 248, .72);

    color-scheme: dark;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -.022em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.icon { flex: none; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--brand); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --- Layout ------------------------------------------------------------ */
.shell { width: min(100% - 2.4rem, var(--shell)); margin-inline: auto; }
.shell-narrow { width: min(100% - 2.4rem, 860px); margin-inline: auto; }

.section { padding-block: clamp(42px, 6vw, 78px); position: relative; }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }
.section-alt { background: var(--bg-alt); }

.stack > * + * { margin-top: var(--flow, 1rem); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 34px);
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.section-head p { color: var(--muted); margin: .45rem 0 0; max-width: 62ch; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .74rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand);
}
[data-theme="dark"] .eyebrow { color: color-mix(in srgb, var(--brand) 62%, #fff); }

.text-gradient {
    background: linear-gradient(100deg, var(--brand), var(--brand-2) 52%, var(--brand-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
    --btn-bg: var(--panel);
    --btn-fg: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: .72rem 1.25rem; border-radius: var(--r-full);
    background: var(--btn-bg); color: var(--btn-fg);
    border: 1px solid var(--line);
    font-weight: 600; font-size: .92rem; letter-spacing: -.01em;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
    --btn-bg: linear-gradient(120deg, var(--brand), var(--brand-2));
    --btn-fg: #fff;
    border-color: transparent; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 24px 56px -18px rgba(109, 94, 248, .75); }

.btn-ghost { --btn-bg: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-soft { --btn-bg: color-mix(in srgb, var(--brand) 12%, transparent); border-color: transparent; color: var(--brand); }
[data-theme="dark"] .btn-soft { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.btn-sm { padding: .48rem .9rem; font-size: .84rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.is-on { background: linear-gradient(120deg, var(--accent), #12B886); color: #05231A; border-color: transparent; }
.btn.is-on svg { color: currentColor; }

.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border-radius: var(--r-full); border: 1px solid var(--line);
    background: var(--panel-2); color: var(--ink);
    transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { transform: translateY(-2px); background: var(--panel); }
.icon-btn.is-on { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }

/* --- Chips & badges ---------------------------------------------------- */
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: .42rem .82rem; border-radius: var(--r-full);
    background: var(--panel-2); border: 1px solid var(--line);
    font-size: .82rem; font-weight: 550; color: var(--ink-2);
    transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--ink); }
.chip.is-active { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: .26rem .6rem; border-radius: var(--r-full);
    font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(10, 10, 24, .58); color: #fff; backdrop-filter: blur(8px);
}
.badge-trending { background: linear-gradient(120deg, #F5A524, #F0435F); }
.badge-editors { background: linear-gradient(120deg, var(--brand), var(--brand-2)); }
.badge-new { background: linear-gradient(120deg, #12B886, #22D3EE); }
.badge-video { background: rgba(10, 10, 24, .68); }

.meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }

/* --- Header ------------------------------------------------------------ */
.site-head {
    position: sticky; top: 0; z-index: 90;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(var(--glass-blur));
    -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .5); }

.head-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); height: 74px; }

/* --- Brand ------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
    color: #fff; box-shadow: var(--shadow-brand);
    transition: transform .25s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.03); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: grid; gap: 1px; }
.brand-word {
    font-family: var(--font-display); font-weight: 800; font-size: 1.12rem;
    letter-spacing: .015em; line-height: 1.1; color: var(--ink);
}
.brand-word b {
    font-weight: 800;
    background: linear-gradient(100deg, var(--brand-2), var(--brand-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .brand-word b { background: linear-gradient(100deg, #E9A0F0, var(--brand-3)); -webkit-background-clip: text; background-clip: text; }
.brand small {
    display: block; font-size: .6rem; font-weight: 600; letter-spacing: .17em;
    text-transform: uppercase; color: var(--muted); font-family: var(--font); line-height: 1.2;
}

/* --- Boot screen ------------------------------------------------------- */
.boot {
    position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 20px;
    background: var(--bg);
    animation: boot-out .45s var(--ease) 2.6s forwards;
}
.boot.is-done { animation: boot-out .45s var(--ease) forwards; }
.boot .brand-mark { width: 62px; height: 62px; border-radius: 20px; }
.boot .brand-mark svg { width: 38px; height: 38px; }
.boot .brand-word { font-size: 1.5rem; letter-spacing: .06em; }
.boot-bar { width: 148px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); animation: boot-slide 1.1s var(--ease) infinite; }
@keyframes boot-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .boot { display: none; } }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav a {
    padding: .5rem .78rem; border-radius: var(--r-full); font-size: .9rem; font-weight: 550;
    color: var(--ink-2); transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav a.is-active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
[data-theme="dark"] .nav a.is-active { color: #fff; background: color-mix(in srgb, var(--brand) 26%, transparent); }

.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-search { flex: 1; max-width: 320px; }

.nav-toggle { display: none; }

.fav-count {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
    display: grid; place-items: center; border-radius: 9px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff;
    font-size: .62rem; font-weight: 700; line-height: 1;
}
[hidden] { display: none !important; }

[data-theme="light"] [data-icon-dark], [data-theme="dark"] [data-icon-light] { display: none; }
[data-icon-light], [data-icon-dark] { display: grid; place-items: center; }

@media (max-width: 1080px) {
    .nav { display: none; }
    .head-search { display: none; }
    .nav-toggle { display: inline-grid; }
}

/* Mobile drawer */
.drawer {
    position: fixed; inset: 0; z-index: 120; display: none;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
    padding: 22px; overflow-y: auto;
}
.drawer.is-open { display: block; animation: fade .22s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a {
    padding: .95rem 1.1rem; border-radius: var(--r-md); font-size: 1.05rem; font-weight: 600;
    border: 1px solid transparent;
}
.drawer nav a:hover, .drawer nav a.is-active { background: var(--panel-2); border-color: var(--line); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --- Search ------------------------------------------------------------ */
.search {
    position: relative;
}
.search-field {
    display: flex; align-items: center; gap: 10px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--r-full); padding: .55rem .6rem .55rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.search-field:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.search-field input {
    flex: 1; min-width: 0; border: 0; background: none; outline: none;
    font-size: .95rem; padding: .25rem 0;
}
.search-field .icon { color: var(--muted); }

.search-hero .search-field {
    padding: .8rem .8rem .8rem 1.4rem;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-strong);
}
.search-hero .search-field input { font-size: 1.06rem; }

.search-panel {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 95;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); padding: 10px; display: none; max-height: min(72vh, 560px); overflow-y: auto;
}
.search-panel.is-open { display: block; animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.search-panel h4 {
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
    margin: 12px 12px 6px; font-family: var(--font); font-weight: 700;
}
.search-panel a, .search-panel button.sg-item {
    display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
    padding: .6rem .75rem; border-radius: var(--r-sm); color: var(--ink-2); font-size: .92rem;
}
.search-panel a:hover, .search-panel button.sg-item:hover, .search-panel .is-cursor {
    background: var(--panel-2); color: var(--ink);
}
[data-theme="dark"] .search-panel a:hover, [data-theme="dark"] .search-panel button.sg-item:hover { background: rgba(255, 255, 255, .06); }
.sg-count { margin-left: auto; font-size: .76rem; color: var(--muted); }
.sg-meta { margin-left: auto; font-size: .74rem; color: var(--muted); }

/* --- Hero -------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(52px, 8vw, 104px) clamp(36px, 5vw, 64px); overflow: hidden; }
.hero-aura {
    position: absolute; inset: -30% -10% auto; height: 720px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(46% 46% at 18% 32%, color-mix(in srgb, var(--brand) 46%, transparent) 0%, transparent 70%),
        radial-gradient(40% 40% at 78% 22%, color-mix(in srgb, var(--brand-2) 42%, transparent) 0%, transparent 70%),
        radial-gradient(38% 38% at 52% 66%, color-mix(in srgb, var(--brand-3) 34%, transparent) 0%, transparent 72%);
    filter: blur(28px); opacity: .55;
    animation: drift 22s ease-in-out infinite alternate;
}
[data-theme="dark"] .hero-aura { opacity: .42; }
@keyframes drift {
    from { transform: translate3d(-2%, 0, 0) scale(1); }
    to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero-inner { text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.3rem); letter-spacing: -.038em; max-width: 17ch; }
.hero-lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; margin: 0; }
.hero .search { width: min(100%, 720px); }

.trend-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; }
.trend-row .label { font-size: .8rem; color: var(--muted); font-weight: 600; }

.hero-stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 4vw, 54px);
    margin-top: 12px; padding-top: 26px; border-top: 1px solid var(--line); width: min(100%, 780px);
}
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.03em; }
.hero-stats span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* --- Grids ------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-prompts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); }
.grid-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* --- Prompt card ------------------------------------------------------- */
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    isolation: isolate;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }

.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 66px); }
.card-fav {
    position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
    display: grid; place-items: center; border-radius: var(--r-full);
    background: rgba(10, 10, 24, .5); color: #fff; backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(-4px); transition: all .25s var(--ease);
}
.card:hover .card-fav, .card-fav.is-on, .card-fav:focus-visible { opacity: 1; transform: none; }
.card-fav.is-on { background: linear-gradient(120deg, var(--brand), var(--brand-2)); }
.card-fav.is-on svg { fill: currentColor; }

.card-quick {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    display: flex; gap: 8px; opacity: 0; transform: translateY(10px);
    transition: all .3s var(--ease);
}
.card:hover .card-quick { opacity: 1; transform: none; }
.card-quick .btn { flex: 1; backdrop-filter: blur(14px); background: rgba(255, 255, 255, .92); color: #14142B; border-color: transparent; padding: .55rem .9rem; font-size: .82rem; }
.card-quick .btn:hover { background: #fff; }

/*
 * Copy is the primary action on a card. Hover never fires on a touch screen,
 * so reveal the controls permanently wherever there is no hover capability.
 */
@media (hover: none), (pointer: coarse), (max-width: 1000px) {
    .card-quick, .card-fav { opacity: 1; transform: none; }
}

.card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
[data-theme="dark"] .card-cat { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.card-title { font-size: 1.02rem; line-height: 1.32; letter-spacing: -.02em; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-desc { font-size: .87rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--muted); }
.card-foot span { display: inline-flex; align-items: center; gap: 4px; }
.card-foot .ar { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; }
.card-quick .btn, .card-fav, .card-foot { position: relative; z-index: 2; }

/* Spotlight card */
.spotlight {
    display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 44px);
    align-items: center; padding: clamp(18px, 2.4vw, 30px);
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow);
}
.spotlight-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 520px; }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.spotlight .lede { color: var(--muted); font-size: 1.02rem; }
.spotlight-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 860px) { .spotlight { grid-template-columns: minmax(0, 1fr); } .spotlight-media { max-height: 380px; } }

/* --- Category tile ----------------------------------------------------- */
.tile {
    position: relative; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end;
    min-height: 152px; padding: 16px; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line); background: var(--panel);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile::before {
    content: ""; position: absolute; inset: 0; opacity: .16;
    background: linear-gradient(150deg, var(--c1, var(--brand)), var(--c2, var(--brand-2)));
    transition: opacity .3s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tile:hover::before { opacity: .3; }
.tile-icon {
    position: relative; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--c1, var(--brand)), var(--c2, var(--brand-2))); color: #fff;
    box-shadow: 0 10px 24px -12px var(--c1, var(--brand));
}
.tile b { position: relative; font-family: var(--font-display); font-size: 1rem; letter-spacing: -.02em; }
.tile span { position: relative; font-size: .78rem; color: var(--muted); }

/* --- Collection card --------------------------------------------------- */
.collection {
    position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line);
    background: var(--panel); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.collection:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.collection-strip { display: grid; grid-template-columns: repeat(4, 1fr); height: 148px; }
.collection-strip.is-cover { grid-template-columns: 1fr; }
.collection-strip img { width: 100%; height: 100%; object-fit: cover; }
.collection-body { padding: 18px 20px 20px; display: grid; gap: 7px; }
.collection-body h3 { font-size: 1.15rem; }
.collection-body p { margin: 0; color: var(--muted); font-size: .88rem; }
.collection-body .meta-row { margin-top: 4px; }
.collection h3 a::after { content: ""; position: absolute; inset: 0; }

/* --- Panels / prose ---------------------------------------------------- */
.panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(18px, 2.6vw, 30px); box-shadow: var(--shadow-sm);
}
.panel-glass {
    background: var(--panel-2); backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2.1em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 1.16rem; margin: 1.7em 0 .5em; color: var(--ink); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose em { color: var(--ink); }
.prose blockquote {
    margin: 1.6em 0; padding: 1rem 1.4rem; border-left: 3px solid var(--brand);
    background: var(--panel-2); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose ol { counter-reset: item; }

/* --- Prompt detail ----------------------------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 46px); align-items: start; }
/* minmax(0,…), not a bare 1fr: a bare track's auto minimum lets wide
   min-content (the no-wrap tab strip) push the whole page past the
   viewport — the root cause of the clipped prompt pages on phones. */
@media (max-width: 1000px) { .detail { grid-template-columns: minmax(0, 1fr); } }

.detail-media { position: sticky; top: 96px; display: grid; gap: 14px; }
@media (max-width: 1000px) { .detail-media { position: static; } }
.detail-media figure { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.detail-media img { width: 100%; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-strip div {
    text-align: center; padding: 12px 6px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
}
.stat-strip b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.stat-strip span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.detail h1 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
.detail-lede { font-size: 1.06rem; color: var(--muted); }

.copy-block { position: relative; margin-bottom: 18px; }
.copy-head { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; flex-wrap: wrap; }
.copy-head h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.copy-head .btn { margin-left: auto; }
.copy-text {
    position: relative; margin: 0; padding: 18px 20px; border-radius: var(--r-md);
    background: var(--bg-alt); border: 1px solid var(--line);
    font-family: var(--font-mono); font-size: .88rem; line-height: 1.68; color: var(--ink-2);
    white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto;
}
[data-theme="dark"] .copy-text { background: rgba(255, 255, 255, .035); }
.copy-text.is-negative { border-left: 3px solid var(--danger); }
.copy-text.is-caption { font-family: var(--font); font-size: .95rem; }
.copy-text.is-tags { font-family: var(--font); color: var(--brand); font-weight: 550; }
[data-theme="dark"] .copy-text.is-tags { color: color-mix(in srgb, var(--brand) 50%, #fff); }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.spec {
    padding: 13px 15px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--line);
}
.spec span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.spec b { font-size: .94rem; font-weight: 600; }

.model-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.model-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: .45rem .85rem;
    border-radius: var(--r-full); border: 1px solid var(--line); background: var(--panel);
    font-size: .85rem; font-weight: 550;
}
.model-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--brand)); }

/* Launcher — the compatibility chips double as "open this prompt over there". */
.launch-block {
    padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line);
    background: var(--panel-2);
}
.launch-block .copy-head { margin-bottom: 6px; }
.launch-lede { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.launch-block .model-chips { gap: 10px; }

.model-chip.is-launch {
    padding: .6rem 1rem .6rem .85rem; gap: 10px; align-items: center;
    border-radius: var(--r-md);
    transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.model-chip.is-launch span { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.model-chip.is-launch small { font-size: .68rem; font-weight: 500; color: var(--muted); }
.model-chip.is-launch .model-chip-go {
    margin-left: 2px; color: var(--muted); transform: rotate(-45deg);
    transition: transform .2s var(--ease), color .2s var(--ease);
}
.model-chip.is-launch:hover {
    border-color: var(--dot, var(--brand));
    background: color-mix(in srgb, var(--dot, var(--brand)) 8%, var(--panel));
    transform: translateY(-1px);
}
.model-chip.is-launch:hover .model-chip-go { color: var(--dot, var(--brand)); transform: rotate(-45deg) translateX(2px); }

/* A tool that takes the prompt through the link gets the filled dot. */
.model-chip.is-direct i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--brand)) 22%, transparent); }
.model-chip.is-launch:not(.is-direct) i { background: transparent; border: 2px solid var(--dot, var(--brand)); }

.launch-toggle {
    display: flex; align-items: center; gap: 9px; margin-top: 14px;
    font-size: .87rem; color: var(--muted); cursor: pointer;
}
.launch-toggle input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; flex: none; }
.launch-toggle:hover { color: var(--ink); }
.launch-note { margin-top: 8px; font-size: .78rem; color: var(--muted); opacity: .85; }

@media (max-width: 560px) {
    .model-chip.is-launch { flex: 1 1 100%; justify-content: space-between; }
}

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button {
    padding: .7rem 1rem; font-size: .9rem; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; white-space: nowrap;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .25s var(--ease); }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Share menu -------------------------------------------------------- */
.share { position: relative; display: inline-flex; }
.share-menu {
    position: absolute; z-index: 60; top: calc(100% + 8px); left: 0;
    min-width: 216px; padding: 8px; display: grid; gap: 2px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); animation: fade .18s var(--ease);
}
.share-menu[hidden] { display: none; }
.share-menu.is-right { left: auto; right: 0; }
.share-menu a, .share-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 12px; border: 0; background: none; border-radius: var(--r-xs);
    color: var(--ink-2); font: inherit; font-size: .92rem; text-align: left;
    cursor: pointer; text-decoration: none;
}
.share-menu a:hover, .share-menu button:hover,
.share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--bg-alt); color: var(--ink); }
.share-menu .icon { color: var(--muted); flex: none; }

/* --- Filters / listing ------------------------------------------------- */
.filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    padding: 14px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.filter-bar select, .filter-bar input[type="search"] {
    padding: .55rem .8rem; border-radius: var(--r-full); border: 1px solid var(--line);
    background: var(--bg-alt); font-size: .86rem; min-width: 130px;
}
[data-theme="dark"] .filter-bar select { background: rgba(255, 255, 255, .05); }
.filter-bar .spacer { margin-left: auto; }
.filter-count { font-size: .86rem; color: var(--muted); }

.page-head { padding-block: clamp(30px, 5vw, 54px) clamp(20px, 3vw, 30px); position: relative; overflow: hidden; }
.page-head::before {
    content: ""; position: absolute; inset: -60% 30% auto -10%; height: 420px; z-index: -1;
    background: radial-gradient(45% 45% at 30% 40%, color-mix(in srgb, var(--pa, var(--brand)) 40%, transparent), transparent 70%),
                radial-gradient(40% 40% at 70% 30%, color-mix(in srgb, var(--pb, var(--brand-2)) 34%, transparent), transparent 72%);
    filter: blur(20px); opacity: .5;
}
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 20ch; }
.page-head p { color: var(--muted); max-width: 68ch; margin: .7rem 0 0; font-size: 1.02rem; }

.crumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 13px; height: 13px; opacity: .5; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 40px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
    border-radius: var(--r-full); border: 1px solid var(--line); background: var(--panel); font-size: .88rem; font-weight: 550;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-current { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.pagination .is-gap { border: 0; background: none; min-width: 20px; }

.empty {
    text-align: center; padding: clamp(40px, 8vw, 90px) 20px; border-radius: var(--r-xl);
    border: 1px dashed var(--line-strong); background: var(--panel-2);
}
.empty h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* --- Promo blocks ------------------------------------------------------ */
.promo {
    position: relative; overflow: hidden; border-radius: var(--r-xl);
    padding: clamp(24px, 4vw, 48px);
    background: linear-gradient(125deg, color-mix(in srgb, var(--pa, var(--brand)) 92%, #000), color-mix(in srgb, var(--pb, var(--brand-2)) 88%, #000));
    color: #fff; box-shadow: var(--shadow-lg);
}
.promo::after {
    content: ""; position: absolute; inset: auto -10% -60% auto; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 62%); pointer-events: none;
}
.promo h2, .promo h3 { color: #fff; }
.promo p { color: rgba(255, 255, 255, .84); }
.promo .btn { background: #fff; color: #14142B; border-color: transparent; }
.promo .btn:hover { background: rgba(255, 255, 255, .9); }
.promo-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 760px) { .promo-grid { grid-template-columns: minmax(0, 1fr); } }

.ad-slot {
    position: relative; border-radius: var(--r-lg); border: 1px dashed var(--line-strong);
    background: var(--panel-2); padding: clamp(18px, 2.6vw, 28px);
    display: grid; gap: 8px; text-align: center;
}
.ad-slot .ad-label {
    position: absolute; top: 10px; right: 12px; font-size: .6rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
}
.ad-slot h4 { font-size: 1.05rem; }
.ad-slot p { color: var(--muted); font-size: .9rem; margin: 0; max-width: 56ch; margin-inline: auto; }
.ad-slot .btn { justify-self: center; margin-top: 6px; }

/* --- Homepage statistics ----------------------------------------------- */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(10px, 1.6vw, 18px);
    padding: clamp(16px, 2.2vw, 24px);
    border-radius: var(--r-xl); border: 1px solid var(--line);
    background: var(--panel-2); backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
}
.stat-tile { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 6px 4px; }
.stat-icon {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; margin-bottom: 2px;
    color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
}
[data-theme="dark"] .stat-icon { color: color-mix(in srgb, var(--brand) 55%, #fff); background: color-mix(in srgb, var(--brand) 22%, transparent); }
.stat-tile b {
    font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.85rem);
    letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }

/* --- Live visitors ------------------------------------------------------ */
.visitors {
    padding: clamp(20px, 2.8vw, 32px); border-radius: var(--r-xl);
    border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-sm);
}
.visitors-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.visitors-head h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.visitors-head p { margin: 0; width: 100%; color: var(--muted); font-size: .88rem; }
.live-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
    animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 65%, transparent); }
    70% { box-shadow: 0 0 0 11px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.visitors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.visitor-card {
    display: grid; justify-items: center; gap: 3px; text-align: center;
    padding: 16px 10px; border-radius: var(--r-md);
    border: 1px solid var(--line); background: var(--bg-alt);
}
[data-theme="dark"] .visitor-card { background: rgba(255, 255, 255, .04); }
.visitor-icon {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-bottom: 3px;
    color: var(--vc, var(--brand)); background: color-mix(in srgb, var(--vc, var(--brand)) 14%, transparent);
}
.visitor-card b {
    font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.visitor-label { font-size: .75rem; color: var(--muted); }

/* Compact strip — sits in the footer on every page */
.visitors-strip {
    display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); flex-wrap: wrap;
    padding: 16px clamp(16px, 2.2vw, 22px); margin-bottom: 4px;
    border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel);
}
.visitors-strip-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}
.visitors-stat { display: inline-flex; align-items: center; gap: 8px; }
.visitors-stat svg { color: var(--vc, var(--brand)); flex: none; }
.visitors-stat b {
    font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums; color: var(--ink);
}
.visitors-stat small { color: var(--muted); font-size: .78rem; }
@media (max-width: 560px) {
    .visitors-strip { gap: 12px 18px; }
    .visitors-stat small { display: none; }
}

/* --- Trust indicators --------------------------------------------------- */
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.trust-item {
    display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
    border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel);
}
.trust-icon {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none;
    color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-2));
}
.trust-item b { display: block; font-size: .93rem; letter-spacing: -.01em; }
.trust-item small { color: var(--muted); font-size: .82rem; }

/* --- Fixed bottom dock -------------------------------------------------- */
.dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding: clamp(12px, 2.2vw, 22px);
    padding-bottom: calc(clamp(12px, 2.2vw, 22px) + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}
.dock > * { pointer-events: auto; }

/* Keep page content clear of the dock. */
.has-dock .site-foot .foot-bottom { padding-bottom: calc(clamp(64px, 9vw, 86px) + env(safe-area-inset-bottom, 0px)); }
.has-dock .toast-wrap { bottom: calc(clamp(78px, 11vw, 96px) + env(safe-area-inset-bottom, 0px)); }

.dock-visitors {
    display: flex; align-items: center; gap: clamp(10px, 1.6vw, 18px);
    padding: .55rem clamp(.8rem, 1.6vw, 1.1rem);
    border-radius: var(--r-full); border: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    backdrop-filter: saturate(180%) blur(var(--glass-blur));
    -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(18px) scale(.94);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.dock-visitors.is-in { opacity: 1; transform: none; }
.dock-live { display: grid; place-items: center; padding-inline: 2px; }
.dock-stat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dock-stat svg { color: var(--vc, var(--brand)); flex: none; }
.dock-stat b {
    font-family: var(--font-display); font-size: .95rem; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums; color: var(--ink);
}
.dock-stat small { color: var(--muted); font-size: .74rem; }

@media (max-width: 900px) {
    .dock-stat.is-wide { display: none; }
}
@media (max-width: 600px) {
    .dock-stat small { display: none; }
    .dock-visitors { gap: 10px; padding: .5rem .75rem; }
    .dock-stat b { font-size: .88rem; }
}

/* --- Floating Telegram button ------------------------------------------- */
.tg-float {
    display: flex; align-items: center;
    opacity: 0; transform: translateY(18px) scale(.9);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.tg-float.is-in { opacity: 1; transform: none; }
.tg-float-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: .72rem 1.15rem .72rem .72rem; border-radius: var(--r-full);
    background: linear-gradient(120deg, #229ED9, #38BDF8); color: #fff;
    font-weight: 650; font-size: .92rem; letter-spacing: -.01em; white-space: nowrap;
    box-shadow: 0 16px 36px -14px rgba(34, 158, 217, .85), 0 2px 8px rgba(0, 0, 0, .18);
    animation: tg-bob 4.5s ease-in-out infinite;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tg-float-btn::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 0 0 rgba(34, 158, 217, .55);
    animation: tg-pulse 6s ease-out infinite;
}
.tg-float-btn:hover { transform: scale(1.06); box-shadow: 0 22px 46px -14px rgba(34, 158, 217, .95); color: #fff; }
.tg-float-icon {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
    background: rgba(255, 255, 255, .2);
}
@keyframes tg-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes tg-pulse {
    0%, 65% { box-shadow: 0 0 0 0 rgba(34, 158, 217, .5); }
    85% { box-shadow: 0 0 0 16px rgba(34, 158, 217, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 158, 217, 0); }
}
.tg-float-close {
    display: grid; place-items: center; width: 22px; height: 22px; margin-left: -8px; margin-bottom: 26px;
    border-radius: 50%; background: var(--panel); color: var(--muted);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: color .2s var(--ease), transform .2s var(--ease);
}
.tg-float-close:hover { color: var(--ink); transform: scale(1.12); }

@media (max-width: 640px) {
    .tg-float-label { display: none; }
    .tg-float-btn { padding: .55rem; }
    .tg-float-icon { width: 38px; height: 38px; }
    .tg-float-close { margin-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-float-btn, .tg-float-btn::after, .live-dot { animation: none; }
}

/* --- MRWEBDEALS pre-footer CTA ------------------------------------------ */
.deals-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 40px);
    align-items: center; padding: clamp(22px, 3vw, 36px);
    border-radius: var(--r-xl); border: 1px solid var(--line);
    background: var(--panel); box-shadow: var(--shadow);
}
.deals-cta::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 1;
    background: linear-gradient(90deg, #F59E0B, #F43F5E 55%, #8B5CF6);
}
.deals-cta::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: -180px -140px auto auto; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, #F59E0B 26%, transparent), transparent 68%);
}
.deals-cta-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px;
    font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #F43F5E;
}
[data-theme="dark"] .deals-cta-eyebrow { color: #FBA36B; }
.deals-cta h2 { font-size: clamp(1.3rem, 2.8vw, 1.85rem); margin-bottom: .45rem; }
.deals-cta p { margin: 0; color: var(--muted); max-width: 64ch; }
.deals-cta-action { display: grid; justify-items: center; gap: 8px; }
.deals-cta-action small { color: var(--muted); font-size: .76rem; }
@media (max-width: 780px) {
    .deals-cta { grid-template-columns: minmax(0, 1fr); }
    .deals-cta-action { justify-items: stretch; }
    .deals-cta-action .btn { width: 100%; }
    .deals-cta-action small { text-align: center; }
}

/* --- MRWEBDEALS banner ------------------------------------------------- */
.deals {
    --d1: #F59E0B;
    --d2: #F43F5E;
    --d3: #8B5CF6;
    --tg: #229ED9;

    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--r-xl); border: 1px solid var(--line);
    background: var(--panel); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.deals:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.deals::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 1;
    background: linear-gradient(90deg, var(--d1), var(--d2) 55%, var(--d3));
}
.deals::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: -140px -120px auto auto; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--d1) 30%, transparent), transparent 68%);
}
[data-theme="dark"] .deals::after { background: radial-gradient(circle, color-mix(in srgb, var(--d1) 22%, transparent), transparent 68%); }

.deals-tile {
    position: relative; flex: none; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 15px; color: #fff;
    background: linear-gradient(140deg, var(--d1), var(--d2));
    box-shadow: 0 12px 26px -12px var(--d2);
}
.deals-tile.is-large { width: 68px; height: 68px; border-radius: 21px; }
.deals-spark {
    position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(140deg, var(--d3), var(--d2));
    border: 2px solid var(--panel);
}

.deals-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px;
    font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
    color: var(--d2);
}
[data-theme="dark"] .deals-eyebrow { color: color-mix(in srgb, var(--d1) 70%, #fff); }

.deals-title { font-size: 1.22rem; letter-spacing: -.022em; margin: 0 0 .4rem; }
.deals-text { margin: 0; color: var(--muted); font-size: .92rem; max-width: 62ch; }

.deals-features { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; }
.deals-features li {
    display: inline-flex; align-items: center; gap: 6px; padding: .3rem .68rem;
    border-radius: var(--r-full); border: 1px solid var(--line); background: var(--bg-alt);
    font-size: .76rem; font-weight: 550; color: var(--ink-2);
}
.deals-features li svg { color: var(--d2); }
[data-theme="dark"] .deals-features li { background: rgba(255, 255, 255, .045); }

.btn-deals {
    background: linear-gradient(120deg, var(--tg), #38BDF8); color: #fff; border-color: transparent;
    box-shadow: 0 16px 34px -16px var(--tg);
}
.btn-deals:hover { box-shadow: 0 22px 44px -16px var(--tg); color: #fff; }

.deals-proof { display: block; margin-top: 9px; font-size: .74rem; color: var(--muted); }

/* Inline — a cell inside the prompt grid */
.deals.is-inline {
    display: flex; flex-direction: column; gap: 8px; padding: 20px 18px;
    justify-content: center;
}
.deals.is-inline .deals-title { font-size: 1.02rem; margin-bottom: 0; }
.deals.is-inline .deals-text { font-size: .85rem; }
.deals.is-inline .deals-tile { margin-bottom: 2px; }
.deals.is-inline .btn { margin-top: 6px; }
.deals.is-inline .deals-proof { text-align: center; }

/* Side — prompt detail sidebar, desktop only */
.deals.is-side { padding: 18px; display: grid; gap: 9px; }
.deals.is-side .deals-head { display: flex; gap: 10px; align-items: center; }
.deals.is-side .deals-eyebrow { margin-bottom: 0; }
.deals.is-side .deals-title { font-size: .98rem; margin: 0; }
.deals.is-side .deals-text { font-size: .84rem; }
.deals.is-side .deals-proof { text-align: center; margin-top: 0; }
@media (max-width: 1000px) { .deals.is-side { display: none; } }

/* Compact — a single row at the end of a prompt page */
.deals.is-compact {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 16px clamp(16px, 2.2vw, 24px);
}
.deals.is-compact .deals-copy { flex: 1; min-width: 210px; }
.deals.is-compact .deals-title { font-size: 1rem; margin-bottom: .15rem; }
.deals.is-compact .deals-text { font-size: .85rem; }
@media (max-width: 560px) { .deals.is-compact .btn { width: 100%; } }

.newsletter { display: grid; gap: 16px; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input {
    flex: 1; min-width: 220px; padding: .85rem 1.2rem; border-radius: var(--r-full);
    border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14); color: #fff;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .66); }
.newsletter .form-note { font-size: .82rem; color: rgba(255, 255, 255, .78); }

/* --- Testimonials & FAQ ------------------------------------------------ */
.quote {
    display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--r-lg);
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.quote p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    font-weight: 700; font-family: var(--font-display); background: linear-gradient(135deg, var(--a1), var(--a2));
}
.quote b { font-size: .93rem; }
.quote small { color: var(--muted); display: block; font-size: .8rem; }
.stars { display: flex; gap: 3px; color: var(--warn); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* --- Creators ---------------------------------------------------------- */
.creator-card {
    display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--r-lg);
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, transform .18s ease;
}
.creator-card:hover { border-color: var(--ca); transform: translateY(-2px); }
.creator-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.creator-card h3 { font-size: 1.08rem; margin: 0; }
.creator-card h3 a { color: inherit; }
.creator-card h3 a:hover { color: var(--ca); }
.creator-card small { color: var(--muted); font-size: .82rem; }
.creator-head { display: flex; align-items: center; gap: 14px; }
.creator-avatar {
    width: 56px; height: 56px; border-radius: 50%; flex: none;
    object-fit: cover; border: 1px solid var(--line);
}
.creator-avatar.is-initial {
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.3rem;
    font-family: var(--font-display); border: 0;
    background: linear-gradient(135deg, var(--ca), color-mix(in srgb, var(--ca) 35%, #0B0B14));
}

.byline {
    display: inline-flex; align-items: center; gap: 11px; margin-bottom: 4px;
    padding: 7px 14px 7px 7px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--panel); color: inherit;
}
.byline:hover { border-color: var(--brand); }
.byline-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.byline-avatar.is-initial {
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--ca), color-mix(in srgb, var(--ca) 35%, #0B0B14));
}
.byline small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.byline b { font-size: .92rem; }

.accordion { display: grid; gap: 10px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
.acc-item summary {
    list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; gap: 14px;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
    content: ""; margin-left: auto; width: 10px; height: 10px; flex: none;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform .25s var(--ease);
}
.acc-item[open] summary::after { transform: rotate(-135deg); }
.acc-item .acc-body { padding: 0 20px 18px; color: var(--muted); }

/* --- Forms ------------------------------------------------------------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .84rem; font-weight: 600; }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="url"], .field select, .field textarea {
    width: 100%; padding: .78rem 1rem; border-radius: var(--r-md);
    border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
[data-theme="dark"] .input, [data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea {
    background: rgba(255, 255, 255, .05);
}
.field textarea { min-height: 130px; resize: vertical; font-family: var(--font); line-height: 1.6; }
.field textarea.mono { font-family: var(--font-mono); font-size: .88rem; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent);
}
.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* File inputs sit outside the selector list above — they need their own box so
   the submission form does not drop to an unstyled browser control. */
.field input[type="file"] {
    width: 100%; padding: .7rem .9rem; border-radius: var(--r-md); font-size: .88rem;
    border: 1.5px dashed var(--line-strong); background: var(--bg-alt); color: var(--ink-2);
    cursor: pointer;
}
.field input[type="file"]:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.field input[type="file"]::file-selector-button {
    margin-right: 12px; padding: .4rem .9rem; border: 0; border-radius: var(--r-full);
    background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff;
    font-weight: 600; font-size: .82rem; cursor: pointer;
}
.field-error { font-size: .8rem; font-weight: 600; color: var(--danger); }
.field:has(.field-error) input, .field:has(.field-error) select, .field:has(.field-error) textarea {
    border-color: color-mix(in srgb, var(--danger) 60%, transparent);
}

.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: .92rem; margin-bottom: 18px; border: 1px solid transparent; }
.alert-success { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.alert-error { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 32%, transparent); }
.alert-info { background: color-mix(in srgb, var(--brand) 12%, transparent); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }

/* --- Footer ------------------------------------------------------------ */
.site-foot { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: var(--bg-alt); }
.foot-grid {
    display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px); padding-block: clamp(36px, 5vw, 60px);
}
@media (max-width: 940px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid h4 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--font); }
.foot-links { display: grid; gap: 9px; }
.foot-links a { font-size: .89rem; color: var(--ink-2); }
.foot-links a:hover { color: var(--brand); }
.foot-about p { color: var(--muted); font-size: .9rem; max-width: 40ch; }
.social-row { display: flex; gap: 8px; margin-top: 14px; }
.foot-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-block: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted);
}

/* --- Toast ------------------------------------------------------------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(92vw, 420px); }
.toast {
    display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: var(--r-full);
    background: #14142B; color: #fff; box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 550;
    animation: toast-in .3s var(--ease);
}
[data-theme="dark"] .toast { background: #F2F2F9; color: #14142B; }
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }
.toast .icon { color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* --- Utilities --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.rail { display: flex; gap: var(--gap); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail > * { flex: 0 0 clamp(230px, 30vw, 280px); scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Member accounts & submissions ------------------------------------- */
/* Composed from the existing tokens and shapes — .panel, .chip, .btn, .field —
   so these screens read as part of the same site rather than a bolted-on area. */

.status-pill {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    padding: .26rem .7rem; border-radius: var(--r-full);
    font-size: .74rem; font-weight: 650; letter-spacing: .01em;
    border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-2);
}
.status-pill.is-pending  { background: color-mix(in srgb, #F5A524 18%, transparent); border-color: color-mix(in srgb, #F5A524 40%, transparent); }
.status-pill.is-approved { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.status-pill.is-rejected { background: color-mix(in srgb, var(--danger) 15%, transparent); border-color: color-mix(in srgb, var(--danger) 34%, transparent); }

.account-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.account-counts { display: flex; gap: 8px; flex-wrap: wrap; }

.submission-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 620px) { .submission-row { grid-template-columns: minmax(0, 1fr); } }

.submission-thumb {
    aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--line); background: var(--bg-alt); display: grid; place-items: center;
}
.submission-thumb img { width: 100%; height: 100%; object-fit: cover; }

.submission-main { min-width: 0; }
.submission-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.submission-head h3 { font-size: 1.05rem; margin: 0; }
.submission-meta { font-size: .84rem; margin: 6px 0 0; }
.submission-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.form-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brand);
    font-family: var(--font); font-weight: 700; margin-bottom: 16px;
}

.model-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.model-option {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: .45rem .85rem; border-radius: var(--r-full);
    border: 1px solid var(--line); background: var(--bg-alt);
    font-size: .84rem; font-weight: 550; color: var(--ink-2);
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.model-option input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.model-option:has(input:checked) { border-color: var(--brand); color: var(--ink); }
.model-option:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.current-image {
    display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
    padding: 12px; border-radius: var(--r-md); background: var(--bg-alt); border: 1px solid var(--line);
}
.current-image img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); flex: none; }

.submit-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.byline-credit {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0; font-size: .88rem; color: var(--muted);
}
.byline-credit b { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-head, .site-foot, .card-quick, .toast-wrap, .ad-slot, .promo { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ==========================================================================
   Prompt detail — classes extracted from the view's former inline styles so
   the page can be restyled per breakpoint. Values match the old inline CSS
   exactly; desktop rendering is unchanged.
   ========================================================================== */
.detail-section { padding-top: 26px; }
.detail-actions { gap: 8px; }
.detail-chips { margin-bottom: 14px; }
.detail-cta { margin: 22px 0 28px; }
.detail-specs { margin: 26px 0; }
.detail-launch { margin-bottom: 28px; }
.detail-tabs { margin-bottom: 30px; }

.share-panel { padding: 18px; }
.share-title {
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 12px;
}

.tips-list { padding-left: 1.1em; }
.tips-list li { margin-bottom: .6em; }

.detail-tags { margin-bottom: 28px; }
.detail-tags h3 { font-size: 1rem; margin-bottom: 12px; }

.comments-panel { margin-top: 30px; }
.comments-title { font-size: 1.1rem; margin-bottom: 16px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-head { gap: 10px; margin-bottom: 6px; }
.comment-head b { font-size: .9rem; }
.comment p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.comment-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, #6D5EF8, #C86DD7);
}
.comment-form { margin-top: 18px; }
.comment-form-grid { gap: 12px; }
.comment-form .hint[data-note] { margin-top: 10px; }

/* ==========================================================================
   Mobile hardening — small-screen rules layered on the existing design.
   Canonical breakpoints: 900 / 760 / 560 / 420. Nothing here changes the
   desktop rendering; every rule is scoped to a max-width query or is a
   pure overflow guard.
   ========================================================================== */

/* <picture> wrappers (WebP sources) must be transparent to layout so the
   existing img sizing rules — grid cells, aspect-ratio boxes, object-fit —
   keep working exactly as when the img was the direct child. */
picture { display: contents; }

/* Long titles, slugs and prompt codes must wrap instead of forcing the page
   wider than the viewport. */
h1, h2, h3, .card-title, .detail h1, .page-head h1, .crumbs { overflow-wrap: break-word; min-width: 0; }
.copy-text, .mono { overflow-wrap: break-word; }
/* Email addresses and URLs in link lists have no natural break points. */
.foot-links a { overflow-wrap: anywhere; }

/* Contact page: form + info sidebar (was a fixed inline two-column grid). */
.contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Ad creatives keep their box even before the image arrives. */
.ad-slot img { width: 100%; height: auto; border-radius: var(--r-sm); }

@media (max-width: 760px) {
    /* The tab strip scrolls sideways on narrow screens; the right-edge fade
       hints that more tabs exist. The strip's own padding keeps the last tab
       clear of the fade once scrolled to the end. */
    .tabs {
        padding-right: 34px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent);
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent);
    }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs button { scroll-snap-align: start; }
}

@media (max-width: 560px) {
    /* Collection covers: 4-across thumbnails become an uncramped 2×2 mosaic. */
    .collection-strip { grid-template-columns: repeat(2, 1fr); height: auto; }
    .collection-strip img { height: auto; aspect-ratio: 16 / 10; }
    .collection-strip.is-cover { grid-template-columns: 1fr; }
    .collection-strip.is-cover img { aspect-ratio: 16 / 9; }

    /* Filter bar: six wrapping selects become a compact two-column grid. */
    .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .filter-bar select, .filter-bar input[type="search"] { min-width: 0; width: 100%; }
    .filter-bar .spacer { display: none; }
    .filter-bar .filter-count { grid-column: 1 / -1; text-align: center; order: 99; }
    .filter-bar noscript, .filter-bar noscript .btn { grid-column: 1 / -1; width: 100%; }

    /* Prompt detail stat strip: 4 cramped cells become a comfortable 2×2. */
    .stat-strip { grid-template-columns: repeat(2, 1fr); }

    /* Section headers stack their "view all" action under the title. */
    .section-head { align-items: flex-start; }
}

@media (max-width: 420px) {
    .shell, .shell-narrow { width: min(100% - 1.6rem, var(--shell)); }
    .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
    .btn-lg { padding: .85rem 1.3rem; font-size: .95rem; }
}
