:root {
    --ynix-bg: #08070d;
    --ynix-bg-soft: #0e0c16;
    --ynix-surface: #14111e;
    --ynix-surface-2: #1a1626;
    --ynix-surface-3: #211b30;
    --ynix-border: rgba(255, 255, 255, .09);
    --ynix-border-strong: rgba(167, 139, 250, .28);
    --ynix-text: #f5f3fb;
    --ynix-muted: #a39daf;
    --ynix-purple: #9b6cff;
    --ynix-purple-2: #7450ee;
    --ynix-blue: #55a7ff;
    --ynix-green: #55e6a5;
    --ynix-yellow: #facc15;
    --ynix-orange: #ffad5c;
    --ynix-red: #f87171;
    --ynix-pink: #f871a0;
    --ynix-radius-sm: 10px;
    --ynix-radius: 16px;
    --ynix-radius-lg: 24px;
    --ynix-shadow: 0 22px 70px rgba(0, 0, 0, .34);
    --ynix-transition: 180ms ease;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body.ynix-body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ynix-text);
    background:
        radial-gradient(circle at 12% -8%, rgba(116, 80, 238, .14), transparent 30rem),
        radial-gradient(circle at 92% 22%, rgba(85, 167, 255, .07), transparent 26rem),
        var(--ynix-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
body.ynix-body::selection { color: #fff; background: rgba(155, 108, 255, .65); }
main { position: relative; z-index: 1; }
a { color: var(--ynix-purple); text-decoration: none; transition: color var(--ynix-transition), opacity var(--ynix-transition); }
a:hover { color: #c4acff; }
h1, h2, h3, h4, h5, h6 { color: var(--ynix-text); font-weight: 750; letter-spacing: -.03em; }
p { color: var(--ynix-muted); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.text-neon { color: var(--ynix-purple) !important; }
.muted-copy, .text-muted { color: var(--ynix-muted) !important; }
.container { --bs-gutter-x: 2rem; max-width: min(100% - 1.5rem, 1480px); }
.narrow-container { max-width: min(100% - 1.5rem, 1080px); }
.form-container { max-width: min(100% - 1.5rem, 960px); }
.ambient { position: fixed; z-index: 0; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .1; }
.ambient-one { top: -12rem; left: -8rem; background: var(--ynix-purple); }
.ambient-two { top: 40%; right: -16rem; background: var(--ynix-blue); }

/* Brand, navigation and footer */
.ynix-navbar {
    z-index: 1020;
    min-height: 72px;
    border-bottom: 1px solid var(--ynix-border);
    background: rgba(8, 7, 13, .78);
    backdrop-filter: blur(18px);
}
.brand-mark { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-size: 1.13rem; font-weight: 650; letter-spacing: -.03em; }
.brand-mark:hover { color: #fff; }
.brand-mark strong { color: #b89bff; }
.brand-symbol { display: inline-grid; width: 34px; height: 34px; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: linear-gradient(135deg, var(--ynix-purple), var(--ynix-purple-2)); box-shadow: 0 8px 24px rgba(116,80,238,.28); }
.ynix-navbar .nav-link { padding: .65rem .9rem !important; color: var(--ynix-muted); border-radius: 9px; font-size: .93rem; font-weight: 600; }
.ynix-navbar .nav-link:hover, .ynix-navbar .nav-link.active { color: #fff; background: rgba(255,255,255,.055); }
.navbar-toggler:focus { box-shadow: 0 0 0 .18rem rgba(155,108,255,.3); }
.navbar-actions { white-space: nowrap; }
.icon-button { display: inline-grid; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; place-items: center; color: var(--ynix-muted); border: 1px solid var(--ynix-border); border-radius: 11px; background: rgba(255,255,255,.035); transition: all var(--ynix-transition); }
button.icon-button { cursor: pointer; }
.icon-button:hover { color: #fff; border-color: var(--ynix-border-strong); background: rgba(155,108,255,.11); transform: translateY(-1px); }
.icon-button.danger { color: var(--ynix-red); }
.coin-pill { display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .75rem; color: #ffe782; border: 1px solid rgba(250,204,21,.18); border-radius: 999px; background: rgba(250,204,21,.07); font-weight: 700; }
.coin-pill:hover { color: #fff0a5; background: rgba(250,204,21,.12); }
.notification-dot { position: absolute; top: -4px; right: -4px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; color: #fff; border: 2px solid var(--ynix-bg); border-radius: 999px; background: var(--ynix-pink); font-size: .58rem; font-weight: 800; }
.user-menu { display: inline-flex; align-items: center; gap: .55rem; height: 40px; padding: 0 .5rem 0 .2rem; color: var(--ynix-text); border: 0; background: transparent; font-size: .88rem; font-weight: 600; }
.ynix-dropdown { min-width: 215px; padding: .5rem; border: 1px solid var(--ynix-border); border-radius: 14px; background: #15121f; box-shadow: var(--ynix-shadow); }
.ynix-dropdown .dropdown-item { display: flex; align-items: center; gap: .65rem; padding: .62rem .7rem; color: var(--ynix-muted); border-radius: 8px; font-size: .9rem; }
.ynix-dropdown .dropdown-item:hover { color: #fff; background: rgba(155,108,255,.1); }
.dropdown-divider { border-color: var(--ynix-border); }
.site-footer { position: relative; z-index: 1; padding: 4.5rem 0 1.5rem; border-top: 1px solid var(--ynix-border); background: rgba(8,7,13,.8); }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 3rem; }
.footer-grid p, .footer-grid a { color: var(--ynix-muted); font-size: .88rem; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: .45rem; }
.footer-title { margin: 0 0 .5rem; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.25rem; color: #716c7b; border-top: 1px solid var(--ynix-border); font-size: .78rem; }

/* Buttons, alerts, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; border-radius: 11px; font-weight: 700; transition: transform var(--ynix-transition), box-shadow var(--ynix-transition), border-color var(--ynix-transition), background var(--ynix-transition); }
.btn:hover { transform: translateY(-1px); }
.btn-neon { color: #fff; border: 1px solid rgba(196,172,255,.32); background: linear-gradient(135deg, var(--ynix-purple), var(--ynix-purple-2)); box-shadow: 0 10px 28px rgba(116,80,238,.22); }
.btn-neon:hover, .btn-neon:focus { color: #fff; border-color: rgba(255,255,255,.34); background: linear-gradient(135deg, #aa7eff, #805cf5); box-shadow: 0 13px 34px rgba(116,80,238,.32); }
.btn-ghost { color: var(--ynix-text); border: 1px solid var(--ynix-border); background: rgba(255,255,255,.035); }
.btn-ghost:hover { color: #fff; border-color: var(--ynix-border-strong); background: rgba(155,108,255,.09); }
.btn-coin { color: #fff2a8; border: 1px solid rgba(250,204,21,.26); background: linear-gradient(135deg, rgba(250,204,21,.18), rgba(255,173,92,.1)); }
.btn-coin:hover { color: #fff7ce; border-color: rgba(250,204,21,.42); background: rgba(250,204,21,.18); }
.btn-danger-soft { color: #ff9a9a; border: 1px solid rgba(248,113,113,.22); background: rgba(248,113,113,.08); }
.btn-danger-soft:hover { color: #fff; border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.16); }
.btn-success { color: #061c13; border-color: var(--ynix-green); background: var(--ynix-green); font-weight: 800; }
.flash-stack { position: relative; z-index: 1040; }
.flash-stack > .alert:first-child { margin-top: 1rem; }
.ynix-alert { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; color: var(--ynix-text); border: 1px solid var(--ynix-border); border-left-width: 3px; border-radius: 12px; background: rgba(20,17,30,.96); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.ynix-alert.alert-success { border-left-color: var(--ynix-green); }
.ynix-alert.alert-danger { border-left-color: var(--ynix-red); }
.ynix-alert.alert-warning { border-left-color: var(--ynix-yellow); }
.ynix-alert.alert-info { border-left-color: var(--ynix-blue); }
.ynix-alert .btn-close { margin-left: auto; filter: invert(1); opacity: .55; }
.form-group { margin-bottom: 1.25rem; }
.form-group label, .modal-body > label { display: block; margin-bottom: .45rem; color: #ded9e8; font-size: .88rem; font-weight: 650; }
.form-group label span { color: var(--ynix-muted); font-weight: 400; }
.required { color: var(--ynix-pink) !important; }
.form-control, .form-select {
    min-height: 46px;
    color: var(--ynix-text);
    border: 1px solid var(--ynix-border);
    border-radius: 11px;
    background-color: rgba(7,6,11,.55);
    box-shadow: none;
}
.form-control::placeholder { color: #6d6876; }
.form-control:focus, .form-select:focus { color: #fff; border-color: rgba(155,108,255,.62); background-color: rgba(11,9,17,.9); box-shadow: 0 0 0 .2rem rgba(155,108,255,.12); }
.form-control:disabled, .form-select:disabled { opacity: .65; }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-check-input { border-color: rgba(255,255,255,.2); background-color: rgba(0,0,0,.25); }
.form-check-input:checked { border-color: var(--ynix-purple); background-color: var(--ynix-purple); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; color: #797382; font-size: .75rem; }
.form-hint { margin: .8rem 0 0; color: #77717f; font-size: .79rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; z-index: 2; top: 50%; left: .95rem; color: #6f6879; transform: translateY(-50%); }
.input-icon .form-control { padding-left: 2.7rem; padding-right: 2.7rem; }
.password-toggle { position: absolute; top: 50%; right: .7rem; color: var(--ynix-muted); border: 0; background: none; transform: translateY(-50%); }
.form-link { font-size: .78rem; }
.panel, .admin-panel { border: 1px solid var(--ynix-border); border-radius: var(--ynix-radius); background: linear-gradient(145deg, rgba(22,18,32,.92), rgba(15,13,23,.92)); box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.panel { padding: 1.4rem; }
.panel-heading, .admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.panel-heading > div, .admin-panel-heading > div { display: flex; align-items: center; gap: .8rem; }
.panel-heading h2, .admin-panel-heading h2 { margin: 0; font-size: 1.12rem; }
.panel-heading .eyebrow + h2, .admin-panel-heading .eyebrow + h2 { margin-top: .15rem; }
.panel-heading > div:has(.eyebrow), .admin-panel-heading > div:has(.eyebrow) { display: block; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: #a78bfa; font-size: .7rem; font-weight: 800; letter-spacing: .115em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ynix-green); box-shadow: 0 0 0 5px rgba(85,230,165,.09); animation: pulse-dot 2s infinite; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ynix-muted); font-size: .86rem; font-weight: 650; }
.back-link:hover { color: #fff; }

/* Home */
.hero-section { position: relative; padding: 6.8rem 0 6rem; overflow: hidden; }
.hero-section::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .8fr); gap: 5rem; align-items: center; }
.hero-copy h1 { margin: 1rem 0 1.25rem; font-size: clamp(3.25rem, 6vw, 5.8rem); line-height: .96; }
.hero-copy h1 span { color: transparent; background: linear-gradient(110deg, #fff 5%, #b89bff 48%, #55a7ff); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 630px; margin-bottom: 1.8rem; font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.5rem; }
.hero-proof span { color: #7f7988; font-size: .75rem; }
.hero-proof strong { display: block; color: #dcd6e8; font-size: 1.05rem; }
.hero-visual { position: relative; padding: 1.5rem; }
.mystery-card { position: relative; padding: 1.55rem; border: 1px solid rgba(155,108,255,.22); border-radius: 24px; background: linear-gradient(145deg, rgba(28,22,42,.98), rgba(13,11,21,.98)); box-shadow: 0 35px 90px rgba(0,0,0,.48), 0 0 70px rgba(116,80,238,.12); transform: rotate(1.5deg); }
.mystery-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, rgba(155,108,255,.4), transparent 42%, rgba(85,167,255,.18)); filter: blur(18px); opacity: .45; }
.mystery-card-head, .mystery-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mystery-number { color: #6f687b; font-size: .72rem; font-weight: 700; }
.mystery-overline { margin: 1.3rem 0 .4rem; color: #726b7e; font-size: .67rem; font-weight: 800; letter-spacing: .14em; }
.mystery-card h2 { margin-bottom: 1.2rem; font-size: 1.5rem; line-height: 1.25; }
.mystery-options { display: grid; gap: .55rem; }
.mystery-options span { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; color: #b5afc0; border: 1px solid var(--ynix-border); border-radius: 10px; background: rgba(255,255,255,.025); font-size: .82rem; }
.mystery-options b { display: grid; width: 25px; height: 25px; place-items: center; color: #c9b6ff; border-radius: 7px; background: rgba(155,108,255,.12); }
.mystery-blur { margin: 1rem 0; padding: .8rem; color: #827b8d; border: 1px dashed rgba(255,255,255,.1); border-radius: 10px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025), rgba(255,255,255,.025) 8px, transparent 8px, transparent 16px); text-align: center; font-size: .75rem; }
.mystery-card-foot { color: #88818f; font-size: .73rem; }
.floating-badge { position: absolute; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .75rem; border: 1px solid var(--ynix-border); border-radius: 999px; backdrop-filter: blur(12px); font-size: .72rem; font-weight: 800; box-shadow: 0 15px 30px rgba(0,0,0,.25); }
.badge-correct { top: 0; right: -1.2rem; color: var(--ynix-green); background: rgba(11,32,25,.86); }
.badge-plot { right: -2rem; bottom: 3rem; color: #d7c8ff; background: rgba(38,26,68,.9); }
.content-section { padding: 5.2rem 0; }
.alt-section { border-block: 1px solid rgba(255,255,255,.035); background: rgba(255,255,255,.015); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-heading h2 { margin: .25rem 0 0; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.section-heading p { margin: .35rem 0 0; }
.section-heading.centered { justify-content: center; text-align: center; }
.section-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--ynix-muted); font-size: .85rem; font-weight: 650; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.case-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-card { position: relative; display: flex; min-height: 285px; padding: 1.25rem; flex-direction: column; border: 1px solid var(--ynix-border); border-radius: var(--ynix-radius); background: linear-gradient(145deg, rgba(22,18,32,.9), rgba(13,11,20,.92)); overflow: hidden; transition: transform var(--ynix-transition), border-color var(--ynix-transition), box-shadow var(--ynix-transition); }
.case-card:hover { border-color: rgba(155,108,255,.3); box-shadow: 0 22px 50px rgba(0,0,0,.25); transform: translateY(-4px); }
.case-card.is-featured { border-color: rgba(155,108,255,.34); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.featured-ribbon { position: absolute; top: 0; right: 1.1rem; padding: .35rem .6rem; color: #e4d9ff; border-radius: 0 0 8px 8px; background: rgba(116,80,238,.72); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.case-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.2rem; }
.case-card h3 { margin: 0 0 .7rem; font-size: 1.12rem; line-height: 1.35; }
.case-card h3 a { color: var(--ynix-text); }
.case-card h3 a:hover { color: #c7b5f9; }
.case-excerpt { margin-bottom: 1rem; font-size: .85rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .8rem; color: #817a8b; font-size: .73rem; }
.case-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.055); }
.card-arrow { display: grid; width: 34px; height: 34px; place-items: center; color: #c7b6f4; border-radius: 10px; background: rgba(155,108,255,.1); }
.case-card:hover .card-arrow { color: #fff; background: var(--ynix-purple); }
.category-chip { display: inline-flex; align-items: center; width: fit-content; padding: .32rem .58rem; color: #bfa9f3; border: 1px solid rgba(155,108,255,.17); border-radius: 999px; background: rgba(155,108,255,.07); font-size: .65rem; font-weight: 750; }
.status-badge { display: inline-flex; align-items: center; width: fit-content; gap: .32rem; padding: .3rem .55rem; border: 1px solid var(--ynix-border); border-radius: 999px; font-size: .64rem; font-weight: 750; white-space: nowrap; }
.status-draft, .status-neutral { color: #aaa4b3; background: rgba(255,255,255,.035); }
.status-pending { color: #ffc680; border-color: rgba(255,173,92,.2); background: rgba(255,173,92,.08); }
.status-open, .status-success { color: var(--ynix-green); border-color: rgba(85,230,165,.2); background: rgba(85,230,165,.07); }
.status-revealed { color: #cbb8ff; border-color: rgba(155,108,255,.22); background: rgba(155,108,255,.09); }
.status-rejected, .status-danger { color: #ff9999; border-color: rgba(248,113,113,.22); background: rgba(248,113,113,.08); }
.status-archived { color: #898390; background: rgba(255,255,255,.025); }
.status-featured { color: #ffe277; border-color: rgba(250,204,21,.2); background: rgba(250,204,21,.07); }
.plot-countdown { display: inline-flex; align-items: center; gap: .35rem; color: #aaa3b6; font-size: .78rem; }
.plot-countdown strong { color: #d9d2e4; font-variant-numeric: tabular-nums; }
.plot-countdown.is-compact { font-size: .7rem; }
.plot-countdown.is-expired strong { color: var(--ynix-green); }
.reveal-copy { color: #b6a3eb; font-size: .75rem; }
.how-section { padding: 5.6rem 0; border-block: 1px solid rgba(255,255,255,.04); background: linear-gradient(180deg, rgba(155,108,255,.025), transparent); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 980px; margin: 2.3rem auto 0; }
.steps-grid article { position: relative; padding: 1.6rem; border: 1px solid var(--ynix-border); border-radius: var(--ynix-radius); background: rgba(255,255,255,.022); }
.step-number { position: absolute; top: 1rem; right: 1rem; color: rgba(255,255,255,.08); font-size: 2rem; font-weight: 900; }
.step-icon, .spend-icon { display: grid; width: 44px; height: 44px; margin-bottom: 1rem; place-items: center; color: #cdbaff; border: 1px solid rgba(155,108,255,.2); border-radius: 13px; background: rgba(155,108,255,.09); }
.steps-grid h3 { font-size: 1.05rem; }
.steps-grid p { margin: 0; font-size: .85rem; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.category-grid-large { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-tile { display: flex; min-height: 135px; padding: 1rem; flex-direction: column; color: var(--ynix-text); border: 1px solid var(--ynix-border); border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--category-color, #8b5cf6) 7%, transparent), rgba(255,255,255,.018)); }
.category-tile:hover { color: #fff; border-color: color-mix(in srgb, var(--category-color, #8b5cf6) 38%, transparent); transform: translateY(-3px); }
.category-tile > i { margin-bottom: auto; color: var(--category-color, #8b5cf6); font-size: 1.2rem; }
.category-tile strong { margin: .7rem 0 .15rem; font-size: .88rem; }
.category-tile span { color: #857f8e; font-size: .69rem; }
.category-tile p { margin: .45rem 0 .75rem; font-size: .78rem; }
.ranking-panel { display: grid; padding: 2rem; grid-template-columns: .7fr 1fr; gap: 2rem; border: 1px solid var(--ynix-border-strong); border-radius: var(--ynix-radius-lg); background: radial-gradient(circle at 15% 50%, rgba(155,108,255,.12), transparent 40%), var(--ynix-surface); }
.ranking-copy h2 { margin: .4rem 0; }
.ranking-mini { display: grid; gap: .5rem; }
.ranking-mini > a { display: grid; padding: .55rem .7rem; grid-template-columns: 30px 34px 1fr auto; gap: .6rem; align-items: center; color: var(--ynix-text); border-radius: 10px; background: rgba(255,255,255,.028); }
.rank-position { display: grid; min-width: 28px; height: 28px; place-items: center; color: #a9a2b3; border-radius: 8px; font-weight: 800; }
.rank-name, .rank-user > span:last-child { min-width: 0; }
.rank-name strong, .rank-name small, .rank-user strong, .rank-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name small, .rank-user small { color: #77717f; font-size: .68rem; }
.score-badge { display: inline-flex; align-items: center; gap: .35rem; color: #d4c3ff; font-size: .75rem; font-variant-numeric: tabular-nums; }
.score-badge i { color: var(--ynix-purple); }
.score-badge span { color: #827b8c; font-size: .63rem; }
.score-sm { font-size: .7rem; }
.final-cta { padding: 1rem 0 5.5rem; }
.cta-card { display: grid; padding: 2rem; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; border: 1px solid rgba(155,108,255,.26); border-radius: var(--ynix-radius-lg); background: linear-gradient(120deg, rgba(116,80,238,.14), rgba(85,167,255,.045)); }
.cta-icon { display: grid; width: 56px; height: 56px; place-items: center; color: #fff; border-radius: 17px; background: linear-gradient(135deg, var(--ynix-purple), var(--ynix-purple-2)); font-size: 1.25rem; }
.cta-card h2, .cta-card p { margin: 0; }

/* Generic pages, filters and pagination */
.page-hero, .dashboard-header, .profile-header, .wallet-hero, .room-play-header, .room-public-hero { padding: 4.6rem 0 3.8rem; }
.page-hero.compact { padding-bottom: 3.1rem; }
.page-hero h1, .dashboard-header h1, .profile-header h1, .wallet-hero h1, .room-play-header h1, .room-public-hero h1 { margin: .45rem 0 .4rem; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.page-hero p { max-width: 690px; margin: 0; font-size: 1rem; }
.page-hero > .container:has(> div + a), .rooms-hero > .container, .dashboard-header > .container, .wallet-hero > .container, .room-play-header > .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.filter-bar, .admin-filters { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; padding: .65rem; border: 1px solid var(--ynix-border); border-radius: 13px; background: rgba(20,17,30,.78); }
.filter-scroll, .ranking-filters { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-pill { display: inline-flex; align-items: center; padding: .48rem .75rem; color: #918a9b; border: 1px solid transparent; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.filter-pill:hover, .filter-pill.active { color: #fff; border-color: rgba(155,108,255,.2); background: rgba(155,108,255,.11); }
.filter-select { position: relative; display: flex; align-items: center; }
.filter-select > i { position: absolute; z-index: 2; left: .75rem; color: #77717f; }
.filter-select .form-select { min-height: 38px; padding-left: 2.2rem; font-size: .78rem; }
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; color: #7e7787; font-size: .76rem; }
.pagination-links { display: flex; gap: .35rem; }
.pagination-links a, .pagination-links span { display: grid; min-width: 34px; height: 34px; padding: 0 .4rem; place-items: center; color: #a39cac; border: 1px solid var(--ynix-border); border-radius: 9px; background: rgba(255,255,255,.025); }
.pagination-links .active { color: #fff; border-color: var(--ynix-purple); background: var(--ynix-purple); }
.pagination-links .disabled { opacity: .35; }
.empty-state { padding: 3.5rem 1.5rem; color: var(--ynix-muted); border: 1px dashed rgba(255,255,255,.1); border-radius: var(--ynix-radius); text-align: center; background: rgba(255,255,255,.014); }
.empty-state-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 1rem; place-items: center; color: #b9a3f4; border: 1px solid rgba(155,108,255,.18); border-radius: 18px; background: rgba(155,108,255,.07); font-size: 1.3rem; }
.empty-state h2 { margin-bottom: .35rem; font-size: 1.2rem; }
.empty-state p { max-width: 520px; margin: 0 auto; font-size: .86rem; }
.search-box { display: flex; max-width: 760px; margin-top: 1.4rem; padding: .45rem; align-items: center; gap: .5rem; border: 1px solid var(--ynix-border-strong); border-radius: 14px; background: rgba(18,15,27,.9); }
.search-box > i { margin-left: .65rem; color: #746d7d; }
.search-box input { min-width: 0; flex: 1; padding: .65rem .4rem; color: #fff; border: 0; outline: 0; background: transparent; }

/* Case page and voting */
.case-page { padding: 2rem 0 5rem; }
.case-container { max-width: min(100% - 1.5rem, 1360px); }
.case-breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.3rem; color: #77717f; font-size: .75rem; }
.case-breadcrumb a { color: #8d8696; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.case-title-block { margin-bottom: 1.2rem; }
.case-labels { display: flex; flex-wrap: wrap; gap: .45rem; }
.case-title-block h1 { max-width: 900px; margin: .8rem 0; font-size: clamp(2rem, 4.5vw, 3.35rem); line-height: 1.08; }
.case-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: #837c8c; font-size: .76rem; }
.dot-separator { width: 3px; height: 3px; border-radius: 50%; background: #5f5967; }
.avatar { display: inline-grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; color: #e6dcff; border: 1px solid rgba(155,108,255,.24); border-radius: 50%; background: linear-gradient(145deg, rgba(155,108,255,.2), rgba(85,167,255,.09)); font-size: .85rem; font-weight: 800; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar-xs { width: 27px; height: 27px; font-size: .63rem; }
.avatar-sm { width: 34px; height: 34px; font-size: .73rem; }
.avatar-lg { width: 62px; height: 62px; font-size: 1.2rem; }
.avatar-xl { width: 105px; height: 105px; font-size: 2rem; }
.story-card, .voting-card, .truth-card, .comments-section { margin-bottom: 1.2rem; padding: 1.55rem; border: 1px solid var(--ynix-border); border-radius: var(--ynix-radius); background: rgba(20,17,30,.82); }
.story-label { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; color: #9d89d4; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.story-text, .truth-text, .review-text { color: #ded9e8; font-size: 1rem; line-height: 1.82; overflow-wrap: anywhere; }
.voting-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.voting-heading h2 { margin: .25rem 0 0; font-size: 1.35rem; }
.vote-options { display: grid; gap: .65rem; }
.vote-option { position: relative; display: grid; min-height: 63px; padding: .7rem .9rem; grid-template-columns: 38px minmax(0, 1fr) auto; gap: .75rem; align-items: center; border: 1px solid var(--ynix-border); border-radius: 12px; background: rgba(255,255,255,.022); cursor: pointer; overflow: hidden; transition: all var(--ynix-transition); }
.vote-option:hover:not(.is-disabled) { border-color: rgba(155,108,255,.38); background: rgba(155,108,255,.055); }
.vote-option input { position: absolute; opacity: 0; pointer-events: none; }
.option-letter { position: relative; z-index: 2; display: grid; width: 35px; height: 35px; place-items: center; color: #cbb9fa; border: 1px solid rgba(155,108,255,.2); border-radius: 10px; background: rgba(155,108,255,.08); font-size: .8rem; font-weight: 850; }
.option-copy { position: relative; z-index: 2; color: #d5d0dc; font-size: .9rem; }
.option-check, .option-result-icon { position: relative; z-index: 2; display: grid; width: 28px; height: 28px; place-items: center; color: transparent; border: 1px solid var(--ynix-border); border-radius: 50%; }
.vote-option.is-selected { border-color: rgba(155,108,255,.52); background: rgba(155,108,255,.09); }
.vote-option.is-selected .option-check { color: #fff; border-color: var(--ynix-purple); background: var(--ynix-purple); }
.vote-option.is-correct { border-color: rgba(85,230,165,.5); background: rgba(85,230,165,.07); }
.vote-option.is-correct .option-letter, .vote-option.is-correct .option-result-icon { color: var(--ynix-green); border-color: rgba(85,230,165,.28); background: rgba(85,230,165,.09); }
.vote-option.is-disabled { cursor: default; }
.option-percentage { position: relative; z-index: 2; min-width: 44px; color: #cfc8da; text-align: right; font-size: .8rem; font-weight: 800; }
.option-progress { position: absolute; inset: 0 auto 0 0; width: var(--option-progress, 0); background: linear-gradient(90deg, rgba(155,108,255,.12), rgba(155,108,255,.025)); transition: width .8s ease; }
.login-gate { display: flex; margin-top: 1rem; padding: 1rem; align-items: center; gap: .8rem; border: 1px solid rgba(155,108,255,.14); border-radius: 12px; background: rgba(155,108,255,.045); }
.login-gate > i { color: #a78bfa; }
.login-gate > div { flex: 1; }
.login-gate strong, .login-gate span { display: block; }
.login-gate span { color: var(--ynix-muted); font-size: .76rem; }
.early-reveal-card { display: grid; margin-bottom: 1.2rem; padding: 1.2rem; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; border: 1px solid rgba(250,204,21,.18); border-radius: var(--ynix-radius); background: linear-gradient(120deg, rgba(250,204,21,.07), rgba(255,173,92,.025)); }
.early-icon, .truth-icon, .aside-icon, .state-illustration, .notification-icon, .activity-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 13px; }
.early-icon { color: #ffe27a; background: rgba(250,204,21,.1); }
.early-reveal-card h2, .early-reveal-card p { margin: 0; }
.early-reveal-card h2 { font-size: 1.1rem; }
.early-reveal-card p { font-size: .8rem; }
.truth-card { border-color: rgba(85,230,165,.2); background: linear-gradient(145deg, rgba(18,37,29,.68), rgba(15,13,23,.92)); }
.truth-card.early-truth { border-color: rgba(250,204,21,.2); }
.truth-top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.truth-icon { color: var(--ynix-green); background: rgba(85,230,165,.1); }
.truth-top h2 { margin: .2rem 0 0; font-size: 1.35rem; }
.vote-verdict { display: flex; margin-top: 1.25rem; padding: 1rem; align-items: center; gap: .8rem; border-radius: 12px; }
.vote-verdict.correct { color: var(--ynix-green); background: rgba(85,230,165,.08); }
.vote-verdict.wrong { color: #ff9494; background: rgba(248,113,113,.075); }
.vote-verdict > i { font-size: 1.35rem; }
.vote-verdict > div { flex: 1; }
.vote-verdict strong, .vote-verdict span { display: block; }
.vote-verdict span { color: var(--ynix-muted); font-size: .78rem; }
.engagement-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem 0 1.2rem; padding: .75rem .2rem; color: #85808d; font-size: .76rem; }
.engagement-bar > div { display: flex; gap: 1rem; }
.share-button, .report-link { color: #9891a2; border: 0; background: none; font-size: .76rem; }
.report-link:hover { color: var(--ynix-red); }
.comment-form { display: grid; margin-bottom: 1.5rem; grid-template-columns: auto 1fr; gap: .75rem; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; color: #77717f; font-size: .7rem; }
.comment-list { display: grid; gap: .4rem; }
.comment { display: grid; padding: 1rem 0; grid-template-columns: auto 1fr; gap: .75rem; border-top: 1px solid rgba(255,255,255,.055); }
.comment header { display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: baseline; }
.comment header strong, .comment header span, .comment time { overflow-wrap: anywhere; }
.comment header span, .comment time { color: #77717f; font-size: .69rem; }
.comment p { margin: .35rem 0 0; color: #c3bdca; font-size: .85rem; }
.empty-comments, .comment-login { padding: 1.5rem; color: #827c89; border: 1px dashed var(--ynix-border); border-radius: 11px; text-align: center; font-size: .8rem; }
.case-aside { display: grid; gap: 1rem; }
.aside-card { padding: 1.2rem; border: 1px solid var(--ynix-border); border-radius: var(--ynix-radius); background: rgba(20,17,30,.82); }
.aside-card.sticky-card { top: 92px; }
.sticky-card { position: sticky; top: 92px; }
.aside-icon { margin-bottom: .9rem; color: #c8b4ff; background: rgba(155,108,255,.09); }
.aside-card h3 { margin: .35rem 0; font-size: 1.02rem; }
.aside-card p { font-size: .8rem; }
.aside-stats { display: grid; padding-top: .9rem; grid-template-columns: repeat(2, 1fr); gap: .5rem; border-top: 1px solid var(--ynix-border); }
.aside-stats span { color: #77717f; font-size: .66rem; }
.aside-stats strong { display: block; color: #ddd7e7; font-size: .95rem; }
.related-cases { margin-top: 4rem; }
.ynix-modal { color: var(--ynix-text); border: 1px solid var(--ynix-border); border-radius: 16px; background: #171320; box-shadow: var(--ynix-shadow); }
.modal-backdrop { z-index: 1050; }
.modal { z-index: 1060; }
.ynix-modal .modal-header, .ynix-modal .modal-footer { border-color: var(--ynix-border); }
.ynix-modal .btn-close { filter: invert(1); }

/* Authentication */
.auth-body { min-height: 100vh; }
.auth-shell { position: relative; z-index: 1; display: grid; min-height: 100vh; grid-template-columns: minmax(340px, .82fr) 1.18fr; }
.auth-brand-panel { display: flex; padding: clamp(2rem, 5vw, 5rem); flex-direction: column; justify-content: space-between; border-right: 1px solid var(--ynix-border); background: radial-gradient(circle at 25% 35%, rgba(116,80,238,.2), transparent 35rem), rgba(13,10,20,.72); }
.auth-pitch h1 { margin: 1rem 0; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .94; }
.auth-pitch h1 span { color: #b69aff; }
.auth-pitch p { font-size: 1rem; }
.auth-footnote { color: #716a7b; font-size: .74rem; letter-spacing: .08em; }
.auth-form-panel { display: grid; padding: 2rem; place-items: center; }
.auth-card { width: min(100%, 460px); padding: clamp(1.3rem, 4vw, 2.2rem); border: 1px solid var(--ynix-border); border-radius: 20px; background: rgba(20,17,30,.82); box-shadow: var(--ynix-shadow); }
.auth-card h1 { margin: .35rem 0; font-size: 2rem; }
.auth-card > p { margin-bottom: 1.5rem; }
.auth-mobile-brand { display: none; margin-bottom: 2rem; }
.auth-switch { margin: 1.5rem 0 0; text-align: center; font-size: .82rem; }
.ynix-form .btn-lg { min-height: 50px; }

/* Dashboard, profile and ranking */
.dashboard-header { padding-bottom: 2rem; }
.user-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.user-stat { position: relative; display: flex; min-height: 120px; padding: 1rem; align-items: center; gap: .8rem; border: 1px solid var(--ynix-border); border-radius: 14px; background: rgba(20,17,30,.82); }
.user-stat > span { display: grid; width: 42px; height: 42px; place-items: center; color: #bca8f1; border-radius: 12px; background: rgba(155,108,255,.09); }
.user-stat small, .user-stat em { display: block; color: #7d7687; font-size: .68rem; font-style: normal; }
.user-stat strong { display: block; color: #fff; font-size: 1.7rem; line-height: 1.1; }
.user-stat > a { position: absolute; right: .8rem; bottom: .7rem; font-size: .66rem; }
.user-stat.featured { border-color: rgba(155,108,255,.25); }
.user-stat.coin > span { color: #ffe277; background: rgba(250,204,21,.08); }
.user-stat.success > span { color: var(--ynix-green); background: rgba(85,230,165,.08); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.activity-row { display: grid; padding: .8rem 0; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; color: var(--ynix-text); border-top: 1px solid rgba(255,255,255,.055); }
.activity-icon { width: 35px; height: 35px; color: #a78bfa; background: rgba(155,108,255,.08); }
.activity-icon.correct { color: var(--ynix-green); background: rgba(85,230,165,.08); }
.activity-icon.wrong { color: var(--ynix-red); background: rgba(248,113,113,.08); }
.activity-copy strong, .activity-copy small { display: block; }
.activity-copy strong { font-size: .84rem; }
.activity-copy small, .activity-result { color: #7c7585; font-size: .68rem; }
.mini-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.mini-stat-row > div { padding: .75rem; text-align: center; border-right: 1px solid var(--ynix-border); }
.mini-stat-row > div:last-child { border-right: 0; }
.mini-stat-row strong, .mini-stat-row span { display: block; }
.mini-stat-row strong { font-size: 1.3rem; }
.mini-stat-row span { color: #7d7686; font-size: .68rem; }
.notification-mini-list { display: grid; }
.notification-mini-list > a { display: grid; padding: .7rem 0; grid-template-columns: auto 1fr; gap: .65rem; color: var(--ynix-text); border-top: 1px solid rgba(255,255,255,.055); }
.notification-icon { width: 35px; height: 35px; color: #c2aef6; background: rgba(155,108,255,.09); }
.notification-mini-list strong, .notification-mini-list small { display: block; }
.notification-mini-list strong { font-size: .79rem; }
.notification-mini-list small { color: #797281; font-size: .67rem; }
.plot-tip { margin-top: 1rem; background: linear-gradient(145deg, rgba(155,108,255,.1), rgba(20,17,30,.9)); }
.tip-icon { color: #ffe17a; }
.plot-tip h3 { margin-top: .5rem; font-size: 1.05rem; }
.plot-tip p, .plot-tip a { font-size: .8rem; }
.profile-header { border-bottom: 1px solid var(--ynix-border); background: rgba(255,255,255,.012); }
.profile-header > .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.profile-main { display: flex; align-items: center; gap: 1.25rem; }
.profile-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.profile-name-row h1 { margin: 0; }
.verified-badge { padding: .3rem .55rem; color: #bca9ee; border-radius: 999px; background: rgba(155,108,255,.09); font-size: .68rem; }
.profile-username, .profile-since { color: #7d7687; font-size: .76rem; }
.profile-main p { max-width: 520px; margin: .65rem 0; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.profile-stats div { min-width: 105px; padding: .8rem; border: 1px solid var(--ynix-border); border-radius: 12px; background: rgba(255,255,255,.022); }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { font-size: 1.2rem; }
.profile-stats span { color: #787180; font-size: .68rem; }
.ranking-filters { margin-top: 1.4rem; }
.ranking-table-wrap { overflow-x: auto; border: 1px solid var(--ynix-border); border-radius: var(--ynix-radius); background: rgba(20,17,30,.72); }
.ranking-table, .admin-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.ranking-table { min-width: 900px; }
.admin-table { min-width: 1040px; }
.ranking-table th, .ranking-table td, .admin-table th, .admin-table td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.055); vertical-align: middle; }
.ranking-table th, .admin-table th { color: #797281; background: rgba(255,255,255,.018); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ranking-table td, .admin-table td { color: #bdb7c7; font-size: .78rem; }
.ranking-table tr:last-child td, .admin-table tr:last-child td { border-bottom: 0; }
.ranking-table tr:hover td, .admin-table tr:hover td { background: rgba(255,255,255,.018); }
.top-rank td { background: rgba(155,108,255,.025); }
.rank-1 .rank-position { color: #ffe171; background: rgba(250,204,21,.08); }
.rank-user { display: inline-flex; min-width: 185px; align-items: center; gap: .6rem; color: var(--ynix-text); }
.achievement-badge { display: inline-block; padding: .3rem .5rem; color: #ac9bda; border-radius: 7px; background: rgba(155,108,255,.07); font-size: .66rem; white-space: nowrap; }

/* My cases and editor */
.my-cases-list { display: grid; gap: .7rem; }
.my-case-row { display: flex; padding: 1rem 1.1rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--ynix-border); border-radius: 14px; background: rgba(20,17,30,.74); }
.my-case-copy { min-width: 0; }
.my-case-copy > div:first-child { display: flex; gap: .4rem; }
.my-case-copy h2 { margin: .55rem 0; font-size: 1rem; }
.my-case-actions { display: flex; align-items: center; gap: .45rem; }
.my-case-actions form { display: inline-flex; }
.moderation-note { margin: .55rem 0 0; padding: .55rem .7rem; color: #f2b879; border-radius: 8px; background: rgba(255,173,92,.07); font-size: .75rem; }
.case-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
.case-editor-main { display: grid; gap: 1rem; }
.editor-section, .editor-settings { padding: 1.4rem; border: 1px solid var(--ynix-border); border-radius: var(--ynix-radius); background: rgba(20,17,30,.78); }
.editor-section-heading { display: flex; gap: .8rem; margin-bottom: 1.5rem; }
.editor-section-heading > span { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; color: #bca8ef; border-radius: 10px; background: rgba(155,108,255,.1); font-size: .7rem; font-weight: 850; }
.editor-section-heading h2, .editor-section-heading p { margin: 0; }
.editor-section-heading h2 { font-size: 1.15rem; }
.editor-section-heading p { font-size: .78rem; }
.options-editor { display: grid; gap: .6rem; }
.editor-option { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 30px; gap: .55rem; align-items: center; }
.editor-option .form-control { min-height: 43px; }
.correct-radio { margin: 0 !important; }
.correct-radio input { position: absolute; opacity: 0; }
.correct-radio span { display: inline-flex; min-height: 35px; padding: 0 .7rem; align-items: center; gap: .35rem; color: #898291; border: 1px solid var(--ynix-border); border-radius: 9px; font-size: .69rem; cursor: pointer; }
.correct-radio input:checked + span { color: var(--ynix-green); border-color: rgba(85,230,165,.28); background: rgba(85,230,165,.08); }
.remove-option { width: 30px; height: 30px; color: #8d8696; border: 0; border-radius: 8px; background: transparent; }
.remove-option:hover { color: var(--ynix-red); background: rgba(248,113,113,.08); }
.editor-settings hr { border-color: var(--ynix-border); }
.reveal-preview { display: flex; margin: .8rem 0 1.1rem; padding: .75rem; align-items: center; gap: .65rem; border-radius: 10px; background: rgba(155,108,255,.065); }
.reveal-preview > i { color: #bca6f2; }
.reveal-preview small, .reveal-preview strong { display: block; }
.reveal-preview small { color: #797281; font-size: .65rem; }
.reveal-preview strong { font-size: .8rem; }
.switch-row { display: flex; padding: .75rem 0; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: .8rem; }
.switch-row small { color: #797281; font-size: .66rem; }
.editor-actions { display: flex; margin-top: 1rem; padding: 1rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--ynix-border); border-radius: 14px; background: rgba(20,17,30,.84); }
.editor-actions > div { display: flex; align-items: center; gap: .75rem; }
.editor-save-hint { max-width: 220px; color: #797281; font-size: .69rem; text-align: right; }

/* Wallet, packages and payments */
.wallet-hero { border-bottom: 1px solid var(--ynix-border); background: linear-gradient(120deg, rgba(250,204,21,.045), transparent 55%); }
.wallet-balance { min-width: 250px; padding: 1.2rem; border: 1px solid rgba(250,204,21,.17); border-radius: 16px; background: rgba(250,204,21,.045); }
.wallet-balance > span, .wallet-balance > small { display: block; color: #8d856c; font-size: .7rem; }
.wallet-balance > strong { display: inline-block; margin: .15rem .2rem .65rem 0; color: #fff1a3; font-size: 2.4rem; line-height: 1; }
.wallet-balance .btn { display: flex; margin-top: .6rem; }
.spend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 2rem; }
.spend-grid article { display: grid; padding: 1rem; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; border: 1px solid var(--ynix-border); border-radius: 14px; background: rgba(20,17,30,.72); }
.spend-grid .spend-icon { width: 38px; height: 38px; margin: 0; }
.spend-grid h2, .spend-grid p { margin: 0; }
.spend-grid h2 { font-size: .9rem; }
.spend-grid p { font-size: .68rem; }
.spend-grid > article > strong { color: #ffe27e; font-size: .82rem; }
.transactions-panel { margin-top: 1rem; }
.transaction-row { display: grid; padding: .8rem 0; grid-template-columns: auto 1fr auto auto; gap: .7rem; align-items: center; border-top: 1px solid rgba(255,255,255,.055); }
.transaction-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; }
.transaction-icon.income { color: var(--ynix-green); background: rgba(85,230,165,.08); }
.transaction-icon.expense { color: var(--ynix-orange); background: rgba(255,173,92,.08); }
.transaction-row strong, .transaction-row small { display: block; }
.transaction-row strong { font-size: .8rem; }
.transaction-row small, .transaction-balance { color: #76707e; font-size: .66rem; }
.transaction-amount { font-weight: 800; }
.transaction-amount.income { color: var(--ynix-green); }
.transaction-amount.expense { color: var(--ynix-orange); }
.packages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.package-card { position: relative; display: flex; min-height: 425px; padding: 1.35rem; flex-direction: column; border: 1px solid var(--ynix-border); border-radius: 18px; background: rgba(20,17,30,.8); }
.package-card.popular { border-color: rgba(155,108,255,.43); box-shadow: 0 25px 60px rgba(116,80,238,.14); transform: translateY(-8px); }
.package-popular { position: absolute; top: 0; left: 50%; padding: .35rem .7rem; color: #fff; border-radius: 0 0 9px 9px; background: var(--ynix-purple); font-size: .65rem; font-weight: 800; transform: translateX(-50%); white-space: nowrap; }
.package-name { margin-top: .7rem; color: #9f98a8; font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.package-coins { display: flex; margin: .8rem 0; align-items: baseline; gap: .4rem; color: #ffe277; }
.package-coins strong { font-size: 2.6rem; line-height: 1; }
.package-coins span { color: #8c856c; font-size: .7rem; }
.package-bonus { width: fit-content; padding: .25rem .45rem; color: var(--ynix-green); border-radius: 6px; background: rgba(85,230,165,.08); font-size: .65rem; }
.package-card p { margin: 1rem 0; font-size: .78rem; }
.package-price { margin-top: auto; margin-bottom: 1rem; }
.package-price small, .package-price strong { color: #fff; }
.package-price strong { font-size: 1.65rem; }
.package-price span { display: block; color: #76707e; font-size: .63rem; }
.payment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1rem; align-items: start; }
.payment-main { display: grid; gap: 1rem; }
.payment-status { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.payment-instructions, .payment-state, .payment-summary { padding: 1.4rem; }
.step-bubble { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 11px; background: var(--ynix-purple); font-size: .76rem; font-weight: 850; }
.pix-key-box { display: flex; padding: .9rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px dashed rgba(155,108,255,.3); border-radius: 12px; background: rgba(155,108,255,.05); }
.pix-key-box small, .pix-key-box strong, .pix-key-box span { display: block; }
.pix-key-box small, .pix-key-box span { color: #7f7888; font-size: .67rem; }
.pix-key-box strong { max-width: 460px; overflow: hidden; text-overflow: ellipsis; font-size: .86rem; }
.payment-amount { display: flex; margin: 1rem 0; align-items: center; justify-content: space-between; color: #87808f; }
.payment-amount strong { color: #fff; font-size: 1.3rem; }
.payment-summary dl, .detail-facts dl, .settings-list { margin: 0; }
.payment-summary dl > div, .detail-facts dl > div, .settings-list > div { display: flex; padding: .7rem 0; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.055); }
.payment-summary dt, .detail-facts dt, .settings-list dt { color: #77717f; font-size: .7rem; font-weight: 500; }
.payment-summary dd, .detail-facts dd, .settings-list dd { margin: 0; color: #d1cadb; font-size: .75rem; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.payment-summary dd small, .detail-facts dd small { display: block; color: #7a7482; font-weight: 400; }
.payment-expiry { display: flex; margin-top: 1rem; padding: .75rem; align-items: center; gap: .65rem; border-radius: 10px; background: rgba(255,173,92,.07); }
.payment-state { padding: 3rem 1.5rem; text-align: center; }
.state-illustration { width: 66px; height: 66px; margin: 0 auto 1rem; color: #aaa3b3; background: rgba(255,255,255,.05); font-size: 1.4rem; }
.state-illustration.success { color: var(--ynix-green); background: rgba(85,230,165,.09); }
.state-illustration.danger { color: var(--ynix-red); background: rgba(248,113,113,.09); }
.state-illustration.pending { color: var(--ynix-orange); background: rgba(255,173,92,.09); }
.state-timeline { display: flex; max-width: 630px; margin: 1.8rem auto 0; justify-content: center; }
.state-timeline span { display: flex; min-width: 120px; padding-top: .7rem; flex-direction: column; color: #6f6977; border-top: 2px solid var(--ynix-border); font-size: .66rem; }
.state-timeline span.done { color: var(--ynix-green); border-color: var(--ynix-green); }
.state-timeline span.current { color: var(--ynix-orange); border-color: var(--ynix-orange); }
.upload-dropzone { display: flex !important; min-height: 200px; padding: 1.5rem; align-items: center; justify-content: center; flex-direction: column; color: #9a93a3; border: 1px dashed rgba(155,108,255,.35); border-radius: 14px; background: rgba(155,108,255,.035); text-align: center; cursor: pointer; }
.upload-dropzone.dragover { border-color: var(--ynix-purple); background: rgba(155,108,255,.09); }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { color: #b99ff8; font-size: 1.8rem; }
.upload-dropzone strong { margin-top: .7rem; color: #e1dbe9; }
.upload-dropzone span, .upload-dropzone em { font-size: .72rem; font-style: normal; }
.upload-dropzone em { margin-top: .6rem; color: #c0aaff; }

/* Rooms and notifications */
.join-room-panel { display: flex; margin-bottom: 1.2rem; padding: 1rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--ynix-border-strong); border-radius: 15px; background: rgba(155,108,255,.045); }
.join-room-panel > div { display: flex; align-items: center; gap: .75rem; }
.join-room-panel h2 { margin: 0; font-size: 1.05rem; }
.join-icon, .room-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #c4b1f6; border-radius: 12px; background: rgba(155,108,255,.1); }
.join-room-panel form { display: flex; gap: .5rem; }
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.room-card { display: flex; min-height: 250px; padding: 1.2rem; flex-direction: column; border: 1px solid var(--ynix-border); border-radius: 15px; background: rgba(20,17,30,.76); }
.room-card-top, .room-card-footer, .room-stats { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.room-card h2 { margin: 1rem 0 .35rem; font-size: 1.12rem; }
.room-card p { font-size: .78rem; }
.room-stats { justify-content: flex-start; margin-top: auto; color: #7e7787; font-size: .68rem; }
.room-card-footer { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--ynix-border); }
.room-code { color: #9991a2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; }
.room-cost-summary { display: grid; margin: 1rem 0; padding: .9rem; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; border-radius: 12px; background: rgba(250,204,21,.055); }
.room-cost-summary > span { color: #ffe274; }
.room-cost-summary strong, .room-cost-summary small { display: block; }
.room-cost-summary small { color: #7d7668; font-size: .66rem; }
.room-play-header { border-bottom: 1px solid var(--ynix-border); background: rgba(155,108,255,.025); }
.room-invite { display: flex; padding: .8rem 1rem; align-items: center; gap: .7rem; border: 1px dashed rgba(155,108,255,.3); border-radius: 12px; }
.room-invite small, .room-invite strong { display: block; }
.room-invite small { color: #77717f; font-size: .65rem; }
.room-invite button { color: #bda9ef; border: 0; background: transparent; }
.room-play-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; }
.room-members { padding: 1.2rem; }
.member-row { display: grid; padding: .65rem 0; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; border-top: 1px solid rgba(255,255,255,.055); }
.member-row strong, .member-row small { display: block; }
.member-row strong { font-size: .78rem; }
.member-row small, .member-role { color: #77717f; font-size: .65rem; }
.room-public-hero { min-height: 480px; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(155,108,255,.13), transparent 28rem); }
.room-public-hero .container { max-width: 780px; }
.room-icon.large { width: 65px; height: 65px; margin: 0 auto 1rem; font-size: 1.35rem; }
.room-public-stats { display: flex; margin: 1.2rem 0; justify-content: center; gap: 2rem; }
.room-public-stats strong, .room-public-stats span { display: block; }
.room-public-stats span { color: #827b8b; font-size: .72rem; }
.join-callout { display: inline-flex; padding: .75rem; align-items: center; gap: .7rem; border: 1px solid var(--ynix-border); border-radius: 12px; }
.notifications-list { display: grid; gap: .55rem; }
.notification-row { display: grid; padding: 1rem; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; border: 1px solid var(--ynix-border); border-radius: 13px; background: rgba(20,17,30,.7); }
.notification-row.unread { border-color: rgba(155,108,255,.25); background: rgba(155,108,255,.045); }
.notification-copy { color: var(--ynix-text); }
.notification-copy strong, .notification-copy p, .notification-copy time { display: block; }
.notification-copy p { margin: .2rem 0; font-size: .78rem; }
.notification-copy time { color: #736c7b; font-size: .65rem; }
.mark-read { display: grid; width: 28px; height: 28px; place-items: center; border: 0; background: transparent; }
.mark-read span { width: 8px; height: 8px; border-radius: 50%; background: var(--ynix-purple); box-shadow: 0 0 0 5px rgba(155,108,255,.08); }

/* Admin */
.admin-body { background: #09080e; }
.admin-sidebar { position: fixed; z-index: 1040; inset: 0 auto 0 0; display: flex; width: 245px; padding: 1.2rem .8rem; flex-direction: column; border-right: 1px solid var(--ynix-border); background: rgba(13,11,19,.98); transition: transform .24s ease; }
.admin-brand { padding: 0 .5rem 1.4rem; }
.admin-brand small { margin-left: auto; color: #796b9c; font-size: .55rem; letter-spacing: .12em; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: .2rem; }
.sidebar-label { padding: .5rem .7rem; color: #5f5967; font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.admin-nav-link { display: flex; padding: .65rem .75rem; align-items: center; gap: .7rem; color: #8e8798; border-radius: 10px; font-size: .8rem; font-weight: 600; }
.admin-nav-link i { width: 18px; text-align: center; }
.admin-nav-link:hover, .admin-nav-link.active { color: #fff; background: rgba(155,108,255,.1); }
.admin-nav-link.active i { color: #b99fff; }
.admin-sidebar-bottom { display: grid; gap: .7rem; margin-top: auto; }
.sidebar-user { display: flex; padding: .7rem; align-items: center; gap: .6rem; border-top: 1px solid var(--ynix-border); }
.sidebar-user strong, .sidebar-user small { display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .74rem; }
.sidebar-user small { color: #6f6878; font-size: .59rem; }
.admin-page { min-height: 100vh; margin-left: 245px; }
.admin-topbar { position: sticky; z-index: 1020; top: 0; display: flex; min-height: 76px; padding: .85rem 1.5rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ynix-border); background: rgba(9,8,14,.88); backdrop-filter: blur(16px); }
.admin-kicker { color: #6f6879; font-size: .62rem; text-transform: uppercase; }
.admin-topbar h1 { margin: 0; font-size: 1.25rem; }
.admin-top-actions { display: flex; align-items: center; gap: .6rem; }
.admin-menu-toggle { display: none; }
.admin-content { padding: 1.5rem; }
.admin-welcome { display: flex; margin-bottom: 1.25rem; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-welcome h2, .admin-welcome p { margin: 0; }
.admin-date { color: #77717f; font-size: .72rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.admin-stat-grid.compact { grid-template-columns: repeat(4, 1fr); }
.admin-stat-card { position: relative; display: grid; min-height: 105px; padding: 1rem; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center; color: var(--ynix-text); border: 1px solid var(--ynix-border); border-radius: 13px; background: rgba(20,17,30,.78); }
.admin-stat-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--tone-color, #bda9ef); border-radius: 11px; background: color-mix(in srgb, var(--tone-color, #9b6cff) 10%, transparent); }
.tone-purple { --tone-color: var(--ynix-purple); } .tone-blue { --tone-color: var(--ynix-blue); } .tone-green { --tone-color: var(--ynix-green); } .tone-yellow { --tone-color: var(--ynix-yellow); } .tone-orange { --tone-color: var(--ynix-orange); } .tone-red { --tone-color: var(--ynix-red); }
.admin-stat-card small, .admin-stat-card strong { display: block; }
.admin-stat-card small { color: #7c7585; font-size: .65rem; }
.admin-stat-card strong { font-size: 1.35rem; }
.admin-stat-card > i { color: #5f5967; }
.admin-panel { padding: 1.2rem; }
.admin-chart-grid { display: grid; grid-template-columns: 1fr 1.65fr; gap: .75rem; margin-bottom: .75rem; }
.chart-container { position: relative; height: 270px; }
.admin-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.admin-list-row { display: grid; padding: .7rem 0; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; color: var(--ynix-text); border-top: 1px solid rgba(255,255,255,.055); }
.list-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #bda9ef; border-radius: 10px; background: rgba(155,108,255,.08); }
.admin-list-row strong, .admin-list-row small { display: block; }
.admin-list-row strong { font-size: .78rem; }
.admin-list-row small { color: #77717f; font-size: .65rem; }
.attention-row { display: grid; padding: .8rem; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; color: #cfc9d8; border-top: 1px solid rgba(255,255,255,.055); }
.attention-row > i:first-child { color: #bda9ef; }
.attention-row.danger > i:first-child { color: var(--ynix-red); }
.attention-row.warning > i:first-child { color: var(--ynix-orange); }
.attention-row strong, .attention-row small { display: block; }
.attention-row small { color: #77717f; font-size: .65rem; }
.admin-search { position: relative; flex: 1; }
.admin-search i { position: absolute; top: 50%; left: .8rem; color: #6f6878; transform: translateY(-50%); }
.admin-search input { width: 100%; min-height: 40px; padding: 0 .7rem 0 2.3rem; color: #fff; border: 1px solid var(--ynix-border); border-radius: 10px; outline: 0; background: rgba(0,0,0,.2); }
.admin-filters .form-select { max-width: 210px; min-height: 40px; font-size: .75rem; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.table-primary { display: flex; min-width: 180px; flex-direction: column; color: var(--ynix-text); }
.table-primary span { color: #746d7c; font-size: .62rem; }
.table-primary strong { color: #dcd6e5; font-size: .77rem; }
.table-user { display: inline-flex; align-items: center; gap: .5rem; }
.table-user.detailed { min-width: 230px; color: var(--ynix-text); }
.table-user span > strong, .table-user span > small { display: block; }
.table-user small { color: #77717f; font-size: .62rem; }
.role-badge, .user-status { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .48rem; border-radius: 7px; font-size: .65rem; }
.role-admin { color: #ffdd76; background: rgba(250,204,21,.08); }
.role-moderator { color: #bba6f1; background: rgba(155,108,255,.08); }
.role-user { color: #9d97a4; background: rgba(255,255,255,.04); }
.user-status i { font-size: .4rem; }
.user-active { color: var(--ynix-green); } .user-suspended { color: var(--ynix-orange); } .user-banned { color: var(--ynix-red); }
.admin-detail-heading { display: grid; margin-bottom: 1rem; grid-template-columns: minmax(100px, auto) 1fr auto; gap: 1rem; align-items: center; }
.admin-detail-heading h2 { margin: .2rem 0; font-size: 1.45rem; }
.admin-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.admin-detail-actions form { display: inline-flex; }
.admin-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: .8rem; align-items: start; }
.review-section { margin: 0; }
.review-section + .review-section { margin-top: .8rem; }
.review-section .review-text { margin-top: .8rem; font-size: .88rem; }
.review-options { display: grid; gap: .5rem; margin-top: .9rem; }
.review-option { display: grid; padding: .65rem; grid-template-columns: 35px 1fr auto; gap: .7rem; align-items: center; border: 1px solid var(--ynix-border); border-radius: 10px; }
.review-option.correct { border-color: rgba(85,230,165,.3); background: rgba(85,230,165,.05); }
.review-option strong { color: var(--ynix-green); font-size: .67rem; }
.truth-review { border-color: rgba(85,230,165,.16); }
.detail-facts .eyebrow { margin-bottom: .5rem; }
.admin-user-identity { display: flex; align-items: center; gap: .8rem; }
.admin-user-identity h2 { margin: 0; }
.admin-user-identity > div > span:last-child { color: #77717f; font-size: .72rem; }
.admin-two-columns { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: .8rem; align-items: start; }
.category-admin-list { display: grid; gap: .45rem; }
.category-admin-row { border: 1px solid var(--ynix-border); border-radius: 12px; background: rgba(255,255,255,.015); }
.category-admin-row summary { display: grid; padding: .75rem; grid-template-columns: auto 1fr auto auto; gap: .7rem; align-items: center; cursor: pointer; list-style: none; }
.category-admin-row summary::-webkit-details-marker { display: none; }
.category-admin-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--category-color); border-radius: 10px; background: color-mix(in srgb, var(--category-color) 10%, transparent); }
.category-admin-row summary strong, .category-admin-row summary small { display: block; }
.category-admin-row summary small { color: #77717f; font-size: .65rem; }
.category-inline-form { padding: 1rem; border-top: 1px solid var(--ynix-border); }
.inline-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.admin-empty { padding: 1.3rem; color: #77717f; text-align: center; font-size: .78rem; }
.admin-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.command-list { display: grid; gap: .5rem; }
.command-list code { padding: .65rem .75rem; color: #c7b5f4; border: 1px solid var(--ynix-border); border-radius: 8px; background: rgba(0,0,0,.22); font-size: .72rem; }
.proof-available { display: flex; padding: 1.2rem; align-items: center; gap: .9rem; border: 1px dashed rgba(85,230,165,.25); border-radius: 12px; background: rgba(85,230,165,.04); }
.proof-available > span { display: grid; width: 50px; height: 50px; place-items: center; color: var(--ynix-green); border-radius: 14px; background: rgba(85,230,165,.09); font-size: 1.2rem; }
.proof-available p { margin: .2rem 0 0; font-size: .76rem; }
.admin-overlay { position: fixed; z-index: 1030; inset: 0; display: none; background: rgba(0,0,0,.62); }

/* Error pages */
.error-page { min-height: 70vh; display: grid; padding: 4rem 0; place-items: center; text-align: center; }
.error-page .container { max-width: 720px; }
.error-code { display: block; color: transparent; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(155,108,255,.55)); -webkit-background-clip: text; background-clip: text; font-size: clamp(5rem, 15vw, 10rem); font-weight: 900; letter-spacing: -.08em; line-height: .8; }
.error-icon { display: grid; width: 58px; height: 58px; margin: 1.5rem auto; place-items: center; color: #c8b4ff; border: 1px solid rgba(155,108,255,.22); border-radius: 18px; background: rgba(155,108,255,.08); font-size: 1.25rem; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.error-page p { margin-bottom: 1.5rem; }

/* Motion */
.reveal-in { animation: reveal-in .65s ease both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(85,230,165,.08); } 50% { box-shadow: 0 0 0 8px rgba(85,230,165,0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Responsive */
@media (max-width: 1199.98px) {
    .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .ynix-navbar .navbar-collapse { margin-top: .8rem; padding: .8rem; border: 1px solid var(--ynix-border); border-radius: 14px; background: #12101b; }
    .navbar-actions { flex-wrap: wrap; margin-top: .7rem; }
    .hero-section { padding-top: 4.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { width: min(100%, 590px); margin: 0 auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid-large { grid-template-columns: repeat(3, 1fr); }
    .case-layout, .case-editor-layout, .room-play-grid { grid-template-columns: 1fr; }
    .case-aside { grid-template-columns: repeat(2, 1fr); }
    .sticky-card { position: static; }
    .user-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .payment-layout { grid-template-columns: 1fr; }
    .dashboard-aside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .plot-tip { margin-top: 0; }
    .profile-header > .container { align-items: flex-start; flex-direction: column; }
    .rooms-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-page { margin-left: 0; }
    .admin-menu-toggle { display: grid; }
    .admin-overlay.is-visible { display: block; }
    .admin-chart-grid, .admin-bottom-grid { grid-template-columns: 1fr; }
    .admin-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .content-section { padding: 3.5rem 0; }
    .hero-section { padding: 3.8rem 0; }
    .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
    .hero-proof { gap: 1rem; }
    .mystery-card { transform: none; }
    .floating-badge { display: none; }
    .case-grid, .case-grid-two, .steps-grid, .category-grid, .category-grid-large, .packages-grid, .rooms-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid-large { grid-template-columns: repeat(2, 1fr); }
    .ranking-panel { grid-template-columns: 1fr; }
    .cta-card { grid-template-columns: auto 1fr; }
    .cta-card .btn { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
    .footer-bottom { flex-direction: column; }
    .page-hero > .container:has(> div + a), .rooms-hero > .container, .dashboard-header > .container, .wallet-hero > .container, .room-play-header > .container { align-items: flex-start; flex-direction: column; }
    .filter-bar, .admin-filters { align-items: stretch; flex-direction: column; }
    .filter-select .form-select, .admin-filters .form-select { width: 100%; max-width: none; }
    .case-aside { grid-template-columns: 1fr; }
    .early-reveal-card { grid-template-columns: auto 1fr; }
    .early-reveal-card form { grid-column: 1 / -1; }
    .login-gate { align-items: flex-start; flex-wrap: wrap; }
    .login-gate .btn { width: 100%; }
    .auth-shell { display: block; }
    .auth-brand-panel { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 1rem; }
    .auth-mobile-brand { display: inline-flex; }
    .profile-main { align-items: flex-start; }
    .profile-stats { width: 100%; grid-template-columns: repeat(4, 1fr); }
    .profile-stats div { min-width: 0; }
    .spend-grid { grid-template-columns: 1fr; }
    .package-card.popular { transform: none; }
    .join-room-panel { align-items: stretch; flex-direction: column; }
    .join-room-panel form { width: 100%; }
    .join-room-panel form .form-control { min-width: 0; }
    .admin-detail-heading { grid-template-columns: 1fr; }
    .admin-detail-actions { justify-content: flex-start; }
    .admin-two-columns, .admin-settings-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 1rem; }
}
@media (max-width: 575.98px) {
    .ynix-navbar { min-height: 64px; }
    .hero-actions .btn, .rooms-hero .btn, .dashboard-header .btn { width: 100%; }
    .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); }
    .hero-proof span { text-align: center; }
    .case-grid, .category-grid, .category-grid-large { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .cta-card { grid-template-columns: 1fr; text-align: center; }
    .cta-icon { margin: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .voting-heading { flex-direction: column; }
    .vote-option { grid-template-columns: 34px 1fr auto; padding-inline: .65rem; }
    .engagement-bar { align-items: flex-start; flex-direction: column; }
    .comment-form { grid-template-columns: 1fr; }
    .user-stat-grid, .dashboard-aside { grid-template-columns: 1fr; }
    .mini-stat-row { grid-template-columns: repeat(2, 1fr); }
    .mini-stat-row > div:nth-child(2) { border-right: 0; }
    .mini-stat-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--ynix-border); }
    .activity-row { grid-template-columns: auto 1fr; }
    .activity-result { grid-column: 2; }
    .profile-main { flex-direction: column; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .ranking-table thead { display: none; }
    .ranking-table, .ranking-table tbody, .ranking-table tr, .ranking-table td { display: block; width: 100%; }
    .ranking-table tr { padding: .8rem; border-bottom: 1px solid var(--ynix-border); }
    .ranking-table td { display: flex; padding: .38rem 0; align-items: center; justify-content: space-between; border: 0; text-align: right; }
    .ranking-table td::before { content: attr(data-label); color: #77717f; font-size: .65rem; }
    .rank-user { min-width: 0; }
    .my-case-row { align-items: stretch; flex-direction: column; }
    .my-case-actions { flex-wrap: wrap; }
    .editor-option { grid-template-columns: 34px 1fr 30px; }
    .correct-radio { grid-column: 2 / 3; }
    .editor-actions, .editor-actions > div { align-items: stretch; flex-direction: column; }
    .editor-save-hint { max-width: none; text-align: left; }
    .transaction-row { grid-template-columns: auto 1fr auto; }
    .transaction-balance { grid-column: 2 / -1; }
    .wallet-balance { width: 100%; min-width: 0; }
    .state-timeline { display: grid; gap: .4rem; }
    .state-timeline span { min-width: 0; border-top: 0; border-left: 2px solid var(--ynix-border); }
    .join-room-panel form { flex-direction: column; }
    .room-public-stats { gap: 1rem; }
    .join-callout { align-items: stretch; flex-direction: column; }
    .admin-stat-grid, .admin-stat-grid.compact { grid-template-columns: 1fr; }
    .admin-topbar { padding-inline: .8rem; }
    .admin-date { display: none; }
    .pagination-wrap { align-items: flex-start; flex-direction: column; }
}
