/* LFG Stock — Refined Glass design system
   Dark theme, orange accent, glassmorphism + plasma background */

/* ========== Self-hosted fonts ========== */
/* JetBrains Mono — cyrillic-ext */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* JetBrains Mono — cyrillic */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono — latin */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Outfit — latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Outfit — latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg:             #0e0703;
    --bg2:            #1a0d05;
    --orange:         #f97316;
    --orange-l:       #fb923c;
    --orange-b:       #fdba74;
    --gold:           #f59e0b;
    --amber:          #d97706;
    --coral:          #fb7185;

    --text:           #fff7ed;
    --text2:          rgba(255, 247, 237, 0.72);
    --text3:          rgba(255, 247, 237, 0.45);

    --glass:          rgba(255, 255, 255, 0.05);
    --glass-h:        rgba(255, 255, 255, 0.08);
    --border:         rgba(255, 247, 237, 0.1);
    --glass-shadow:   rgba(0, 0, 0, 0.35);

    --success:        #22c55e;
    --warning:        #eab308;
    --danger:         #dc2626;

    --navbar-h:       70px;
    --radius:         18px;
    --radius-sm:      12px;
    --pad:            22px;
    --t:              0.25s ease;

    /* back-compat aliases used in older blade templates */
    --bg-dark:        var(--bg);
    --text-primary:   var(--text);
    --text-secondary: var(--text2);
    --text-muted:     var(--text3);
    --glass-bg:       var(--glass);
    --glass-hover:    var(--glass-h);
    --glass-border:   var(--border);
    --orange-light:   var(--orange-l);
    --orange-bright:  var(--orange-b);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

/* ===== Global scrollbar ===== */
* { scrollbar-width: thin; scrollbar-color: rgba(249,115,22,.3) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,.5); }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}
.mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace; font-feature-settings: 'tnum' 1, 'zero' 1; }

a { color: var(--orange-l); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--orange-b); }

/* === Plasma background === */
.plasma-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.plasma-grid {
    position: absolute; inset: 0; opacity: .35;
    background-image: linear-gradient(rgba(255,247,237,.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,247,237,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}
.plasma-orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.plasma-orb-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, #ff7a18, transparent 65%); animation: plasma-float1 22s ease-in-out infinite; }
.plasma-orb-2 { width: 460px; height: 460px; top: 30%; right: -160px; background: radial-gradient(circle, #f59e0b, transparent 65%); animation: plasma-float2 26s ease-in-out infinite; }
.plasma-orb-3 { width: 580px; height: 580px; bottom: -220px; left: 30%; background: radial-gradient(circle, #ff5a73, transparent 65%); animation: plasma-float3 30s ease-in-out infinite; }
.plasma-noise {
    position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}
@keyframes plasma-float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.1); } }
@keyframes plasma-float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,-40px) scale(1.05); } }
@keyframes plasma-float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,40px) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .plasma-orb { animation: none !important; } }

/* === Wrapper === */
.wrapper {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

/* === Navbar === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(14, 7, 3, .55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.3px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
}
.brand-lfg { color: var(--text); }
.brand-dot { color: var(--text); }
.brand-stock {
    background: linear-gradient(135deg, var(--orange-l), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links { display: flex; gap: 4px; flex: 1; margin-left: 8px; }
.nav-links a {
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text2);
    font-weight: 500;
    font-size: 14px;
    transition: all .25s ease;
}
.nav-links a:hover {
    color: var(--text);
    background: var(--glass-h);
}
.nav-links a.active {
    color: var(--text);
    background: var(--glass);
    border: 1px solid var(--border);
}
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--glass-h); transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, #ff8a3d, #d97706);
    border: none;
    color: #fff;
    box-shadow: 0 10px 28px rgba(249,115,22,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff9a55, #e68a1a); box-shadow: 0 16px 40px rgba(249,115,22,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; justify-content: center; }

/* === Glass card === */
.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px var(--glass-shadow);
    padding: var(--pad);
    position: relative;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    border-radius: var(--radius) var(--radius) 0 0;
}
.glass-hoverable:hover {
    transform: translateY(-5px);
    border-color: rgba(249,115,22,.4);
    box-shadow: 0 24px 48px rgba(249,115,22,.18);
}

/* === Layout blocks === */
.page { padding: 32px 0 24px; }
.page-title { font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -1.2px; margin-bottom: 10px; }
.page-title em { font-style: normal; background: linear-gradient(135deg, #ff8a3d 0%, #f59e0b 60%, #ff5a73 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-subtitle { color: var(--text2); font-size: 15px; line-height: 1.6; margin-bottom: 28px; max-width: 620px; }
.page-eyebrow { font-size: 11px; color: var(--orange-l); letter-spacing: .5px; margin-bottom: 10px; }
.page-crumbs { display: flex; gap: 10px; align-items: center; color: var(--text3); font-size: 12.5px; margin-bottom: 18px; }
.page-crumbs a { color: var(--text2); }
.page-crumbs a:hover { color: var(--orange-l); }
.page-crumbs span { color: var(--text3); }

.section { position: relative; z-index: 2; margin-bottom: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-eyebrow { font-size: 11px; color: var(--orange-l); letter-spacing: .5px; margin-bottom: 6px; opacity: .85; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; }
.section-head p { color: var(--text2); font-size: 14px; margin-top: 2px; }
.section-link { color: var(--orange-l); font-weight: 500; font-size: 14px; text-decoration: none; padding: 8px 12px; border-radius: 8px; transition: all .25s; }
.section-link:hover { background: rgba(249,115,22,.08); color: var(--orange-b); }

/* === Hero === */
.hero {
    position: relative;
    z-index: 2;
    padding: 80px 0 56px;
}
.hero--split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}
.hero-inner {
    opacity: 0;
    transform: translateY(16px);
    animation: hero-reveal .8s ease forwards;
}
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(16px);
    animation: hero-reveal .8s .15s ease forwards;
}
@keyframes hero-reveal { to { opacity: 1; transform: translateY(0); } }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(249,115,22,.08);
    border: 1px solid rgba(249,115,22,.22);
    color: var(--orange-b);
    font-size: 12px;
    width: fit-content;
}
.hero-pill-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
    animation: pulse-dot 1.6s ease infinite;
}
.hero-pill-sep { color: rgba(255,247,237,.3); }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title {
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.04;
    margin: 18px 0;
    letter-spacing: -1.5px;
    max-width: 680px;
    text-wrap: balance;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #ff8a3d 0%, #f59e0b 60%, #ff5a73 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-cursor {
    display: inline-block;
    width: 6px;
    height: .85em;
    background: var(--orange-l);
    margin-left: 6px;
    vertical-align: -2px;
    animation: blink-cursor 1.1s steps(2) infinite;
    border-radius: 2px;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

.hero-lead {
    color: var(--text2);
    font-size: 17px;
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 28px;
}

/* === Hero search === */
.hero-search {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 7px 7px 7px 18px;
    max-width: 680px;
    margin-bottom: 36px;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.hero-search:focus-within {
    border-color: rgba(249,115,22,.55);
    box-shadow: 0 0 0 4px rgba(249,115,22,.1), 0 12px 36px rgba(249,115,22,.18);
}
.hero-search-icon { width: 18px; height: 18px; color: var(--text3); flex-shrink: 0; }
.hero-search input {
    background: transparent; border: none; outline: none;
    color: var(--text); font: inherit; font-size: 15px;
    padding: 12px 4px; min-width: 0;
}
.hero-search input::placeholder { color: var(--text3); }
.hero-search-tags { display: flex; gap: 5px; }
.hero-search-tags button {
    padding: 6px 11px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    cursor: pointer;
    transition: all .2s ease;
}
.hero-search-tags button:hover {
    border-color: rgba(249,115,22,.45);
    color: var(--orange-b);
    background: rgba(249,115,22,.08);
}
.hero-search-go { padding: 11px 22px; font-weight: 600; }

/* === Hero stats (new grid variant) === */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    max-width: 620px;
}
.hero-stats-grid .hero-stat {
    padding: 18px 20px;
    background: rgba(14,7,3,.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}
.hero-stats-grid .hero-stat-val {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--orange-l), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.hero-stats-grid .hero-stat-val i { font-style: normal; font-size: 14px; color: var(--text3); margin-left: 4px; -webkit-text-fill-color: var(--text3); }
.hero-stats-grid .hero-stat-lbl { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }

/* Hero stats (old flex variant — used before home page migration) */
.hero-stats {
    display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-bottom: 18px;
}
.hero-stat {
    display: flex; align-items: baseline; gap: 6px; padding: 0 20px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat-val {
    font-size: 24px; font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 1;
}
.hero-stat-label {
    font-size: 13px; color: var(--text3);
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* === Mini live cards (hero sidebar) === */
.mini-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    transition: transform .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mini-card::before {
    content: '';
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff8a3d, #f59e0b);
}
.mini-card:hover { transform: translateX(-3px); border-color: rgba(249,115,22,.35); }
.mini-card:nth-child(1) { transform: rotate(.7deg); }
.mini-card:nth-child(2) { transform: rotate(-.5deg); margin-left: 18px; }
.mini-card:nth-child(3) { transform: rotate(.3deg); }
.mini-card-label { font-size: 10.5px; color: var(--orange-b); letter-spacing: .5px; padding-left: 8px; }
.mini-card-title { font-size: 14px; font-weight: 600; padding-left: 8px; line-height: 1.35; }
.mini-card-meta { font-size: 11px; color: var(--text3); padding-left: 8px; }

/* === Games grid === */
.games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.game-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249,115,22,.4);
    box-shadow: 0 18px 40px rgba(249,115,22,.18);
}
.game-card-cover {
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}
.game-card-cover .cover {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform var(--t);
}
.game-card:hover .game-card-cover .cover { transform: scale(1.05); }
.game-card-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85));
}
.game-card-glow { position: absolute; inset: 0; }
.game-card-body { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.game-card-body h3 { font-size: 14px; font-weight: 600; }
.game-card-body span { font-size: 11px; color: var(--text3); }

/* === Party card === */
.parties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.party-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    position: relative;
}
.party-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.party-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249,115,22,.4);
    box-shadow: 0 24px 48px rgba(249,115,22,.18);
}
.party-card-cover {
    height: 170px;
    position: relative;
    overflow: hidden;
}
.party-card-cover-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.party-card-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.party-card-glow { position: absolute; inset: 0; }
.party-card-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
    color: var(--orange-b);
    border: 1px solid rgba(251,146,60,.3);
}
.party-card-time {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
    color: var(--text2);
    border: 1px solid var(--border);
}
.party-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.party-card-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.party-card-desc {
    color: var(--text2);
    font-size: 13.5px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.party-card-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.party-card-meta span { font-size: 11.5px; color: var(--text3); }
.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    font-family: inherit !important;
}
.badge-open { background: rgba(34,197,94,.14); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.badge-closed { background: rgba(220,38,38,.14); color: #fca5a5; border: 1px solid rgba(220,38,38,.3); }

/* === CTA banner === */
.cta-banner {
    position: relative;
    z-index: 2;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    margin-bottom: 32px;
}
.cta-banner-glow {
    position: absolute;
    inset: -60% -10% auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(249,115,22,.4), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}
.cta-content { position: relative; max-width: 520px; }
.cta-content .mono { font-size: 11px; color: var(--orange-l); margin-bottom: 8px; letter-spacing: .5px; }
.cta-content h2 { font-size: 30px; font-weight: 700; letter-spacing: -.6px; margin-bottom: 8px; }
.cta-content p { color: var(--text2); font-size: 15px; line-height: 1.6; }
.cta-actions { position: relative; display: flex; gap: 10px; }
@media (max-width: 640px) {
    .cta-banner { flex-direction: column; padding: 28px 24px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; justify-content: center; }
}

/* === Footer === */
.footer {
    position: relative;
    z-index: 2;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--text3);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

/* === Responsive (hero, grids) === */
@media (max-width: 1080px) {
    .hero--split { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 40px; }
    .hero-side { flex-direction: row; flex-wrap: wrap; }
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .parties-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero { padding: 36px 0 32px; }
    .hero-title { font-size: 32px; }
    .hero-search { grid-template-columns: auto 1fr auto; }
    .hero-search-tags { display: none; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .parties-grid { grid-template-columns: 1fr; }
}

/* === Search page === */
.searchbar {
    display: flex; gap: 10px; align-items: center;
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 14px; padding: 8px;
    backdrop-filter: blur(16px);
}
.searchbar input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); font-size: 15px; padding: 8px 12px;
    font-family: inherit;
}
.searchbar input::placeholder { color: var(--text3); }

/* === Grid layouts === */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: 280px 1fr; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text2); font-weight: 500; }
.form-control, textarea.form-control, .input, textarea.input {
    width: 100%; padding: 11px 14px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px;
    transition: border-color var(--t), background var(--t);
}
.form-control:focus, textarea.form-control:focus, .input:focus, textarea.input:focus {
    outline: none; border-color: var(--orange);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
input[type="file"].input, input[type="file"].form-control {
    padding: 10px 14px;
    cursor: pointer;
}
input[type="file"].input::file-selector-button, input[type="file"].form-control::file-selector-button {
    background: linear-gradient(135deg, var(--orange), var(--orange-b));
    color: #fff; border: none; border-radius: 8px;
    padding: 7px 16px; font-size: 13px; font-weight: 600;
    cursor: pointer; margin-right: 12px;
    transition: opacity var(--t);
}
input[type="file"].input::file-selector-button:hover, input[type="file"].form-control::file-selector-button:hover {
    opacity: .85;
}
.file-upload {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    padding: 12px;
    transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.file-upload:hover {
    border-color: rgba(249,115,22,0.35);
    background: rgba(255,255,255,0.05);
}
.file-upload:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.file-upload-input {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.file-upload-label {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 16px;
    border: 1px dashed rgba(251,146,60,0.45);
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(217,119,6,0.03));
    transition: background var(--t), border-color var(--t);
}
.file-upload-label:hover {
    border-color: rgba(251,146,60,0.8);
    background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(217,119,6,0.05));
}
.file-upload-title { font-size: 14px; font-weight: 600; color: var(--text); }
.file-upload-subtitle { font-size: 12px; line-height: 1.5; color: var(--text2); }
.file-upload-meta { margin-top: 10px; font-size: 12px; color: var(--text3); word-break: break-word; }
.file-upload.has-files .file-upload-meta { color: var(--orange-b); }

/* ===== Custom Select / Dropdown ===== */
.select-wrap { position: relative; width: 100%; }
.form-select {
    width: 100%;
    padding: 11px 42px 11px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--t), background var(--t), box-shadow var(--t);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--orange-l) 50%),
        linear-gradient(135deg, var(--orange-l) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) center,
        calc(100% - 12px) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.form-select:hover {
    background-color: rgba(255,255,255,0.06);
    border-color: rgba(249,115,22,0.35);
}
.form-select:focus {
    outline: none;
    border-color: var(--orange);
    background-color: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-select option {
    background: #1e1008;
    color: var(--text);
    padding: 10px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}
.form-select option:checked {
    background: linear-gradient(135deg, rgba(249,115,22,0.4), rgba(217,119,6,0.4));
    color: var(--orange-b);
}
.form-select option:hover { background: rgba(249,115,22,0.18); }
@supports (-moz-appearance: none) {
    .form-select { }
}
.form-select:disabled { opacity: 0.5; cursor: not-allowed; }
/* ===== End Custom Select ===== */

/* ===== Custom JS Dropdown (glassmorphism) ===== */
.dd { position: relative; width: 100%; }
.dd .dd-native { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.dd-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 11px 14px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text);
    font-family: 'Outfit', sans-serif; font-size: 14px;
    cursor: pointer; transition: border-color var(--t), background var(--t), box-shadow var(--t);
    text-align: left; gap: 8px; min-height: 42px;
}
.dd-trigger:hover { background: rgba(255,255,255,0.06); border-color: rgba(249,115,22,0.35); }
.dd-open .dd-trigger,
.dd-trigger:focus {
    outline: none; border-color: var(--orange);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.dd-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-label-placeholder { color: var(--text3); }
.dd-arrow { display: flex; align-items: center; color: var(--orange-l); transition: transform var(--t); flex-shrink: 0; }
.dd-open .dd-arrow { transform: rotate(180deg); }
.dd-panel {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    background: rgba(24, 14, 8, 0.92);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(249,115,22,0.2); border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 1px 0 rgba(255,255,255,0.06) inset;
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
}
.dd-open .dd-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dd-search {
    display: block; width: 100%; padding: 10px 14px;
    background: rgba(255,255,255,0.04); border: none;
    border-bottom: 1px solid rgba(249,115,22,0.12);
    color: var(--text); font-family: 'Outfit', sans-serif; font-size: 13px; outline: none;
}
.dd-search::placeholder { color: var(--text3); }
.dd-search:focus { background: rgba(255,255,255,0.06); }
.dd-list {
    max-height: 260px; overflow-y: auto; padding: 4px 0;
}
.dd-option {
    padding: 9px 14px; font-size: 14px; color: var(--text2);
    cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
    position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dd-option:hover { background: rgba(249,115,22,0.12); color: var(--text); }
.dd-option.dd-selected { color: var(--orange-b); background: rgba(249,115,22,0.16); }
.dd-option.dd-selected::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--orange), var(--amber)); border-radius: 0 3px 3px 0;
}
.dd-option.dd-placeholder { color: var(--text3); font-style: italic; }
/* ===== End Custom JS Dropdown ===== */

textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: #fca5a5; font-size: 13px; margin-top: 6px; }

/* === Alerts === */
.alert {
    padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
    border: 1px solid var(--border); background: var(--glass);
}
.alert-success { border-color: rgba(34,197,94,0.4); color: #86efac; }
.alert-danger  { border-color: rgba(220,38,38,0.4); color: #fca5a5; }

/* === Chips / filters === */
.filters { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    padding: 6px 12px; border-radius: 999px; font-size: 12px;
    background: var(--glass); border: 1px solid var(--border); color: var(--text2);
    cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: rgba(249,115,22,.45); color: var(--orange-b); background: rgba(249,115,22,.06); }
.chip-orange,
.chip.is-on {
    background: linear-gradient(135deg, rgba(249,115,22,.22), rgba(217,119,6,.22));
    color: var(--orange-b);
    border-color: rgba(251,146,60,.4);
}

/* === Party detail === */
.party-detail-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
.party-detail-cover {
    height: 320px; border-radius: var(--radius); background-size: cover; background-position: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}
.party-detail-cover-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; display: block;
}
.party-detail-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55));
}
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }

/* === Modal === */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.is-open { display: block; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-card {
    position: relative;
    width: min(560px, calc(100% - 32px));
    margin: 8vh auto 0;
    background: rgba(18,10,5,0.85);
    border: 1px solid rgba(249,115,22,0.22);
    border-radius: 16px;
    box-shadow: 0 24px 72px rgba(0,0,0,0.55);
    overflow: hidden;
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(217,119,6,0.03));
}
.modal-title { font-weight: 700; }
.modal-close {
    width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: var(--text); cursor: pointer; font-size: 20px; line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,0.08); }
.modal-body { padding: 16px; }

/* === Unseen indicators === */
.nav-cabinet-btn { position: relative; }
.nav-dot {
    position: absolute;
    top: -2px; right: -2px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--bg1, #0e0703);
    box-shadow: 0 0 6px rgba(239,68,68,0.5);
    pointer-events: none;
    z-index: 2;
}
.nav-dot.is-hidden { display: none; }
.nav-unseen-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; font-size: 11px; font-weight: 700;
    background: #ef4444; color: #fff;
    margin-left: 6px; vertical-align: middle;
}
.nav-unseen-badge.is-hidden { display: none; }
.cabinet-unseen { border-color: rgba(239,68,68,0.35) !important; background: rgba(239,68,68,0.06) !important; }
.cabinet-unseen-chip {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
    color: #fecaca; border: 1px solid rgba(239,68,68,0.35); background: rgba(239,68,68,0.10);
    flex-shrink: 0;
}
.cabinet-unseen-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.14); flex-shrink: 0;
}

/* === Chat === */
.chat-msg {
    padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 12px;
    background: rgba(255,255,255,0.03);
    max-width: min(86%, 760px);
}
.chat-msg--mine {
    margin-left: auto;
    border-color: rgba(249,115,22,0.35);
    background: rgba(249,115,22,0.10);
}
.chat-msg-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text3); margin-bottom: 6px; }
.chat-msg-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.chat-msg-photos img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* === Dialogs === */
.cabinet-dialog-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.02);
}
.dialogs-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; min-height: 620px; }
.dialogs-sidebar { border-right: 1px solid var(--border); padding-right: 12px; }
.dialogs-title { font-size: 16px; margin-bottom: 10px; }
.dialogs-list { display: flex; flex-direction: column; gap: 8px; }
.dialogs-item {
    display: block; padding: 10px;
    border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.02);
}
.dialogs-item.is-active { border-color: rgba(249,115,22,0.5); background: rgba(249,115,22,0.08); }
.dialogs-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.dialogs-item-last { margin-top: 4px; font-size: 12px; color: var(--text3); }
.dialogs-main { display: flex; flex-direction: column; min-width: 0; }
.dialogs-main-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 10px;
}
.dialogs-messages {
    flex: 1; min-height: 420px; max-height: 62vh; overflow: auto;
    display: flex; flex-direction: column; gap: 10px; padding-right: 6px;
}
.dialogs-form { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
/* #chat-textarea height now controlled by .chat-compose textarea */
@media (max-width: 980px) {
    .dialogs-layout { grid-template-columns: 1fr; min-height: auto; }
    .dialogs-sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 12px; margin-bottom: 6px; }
}

/* === Cabinet === */
.cabinet-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cabinet-card-actions .btn { width: 100%; justify-content: center; min-width: 0; padding: 10px 12px; }
.cabinet-card-actions form { margin: 0; }
.cabinet-party-card { padding: 0; overflow: hidden; }
.cabinet-party-card .party-card-cover { height: 150px; }
.cabinet-party-body { padding: 14px; }
.cabinet-album-preview { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.cabinet-album-preview img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.cabinet-album-more {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 10px;
    border-radius: 8px; border: 1px solid var(--border);
    color: var(--text2); font-size: 12px; background: rgba(255,255,255,0.03);
}
.cabinet-copy-btn { width: 100%; justify-content: center; margin-top: 8px; }
.cabinet-btn-danger { border-color: rgba(220,38,38,0.45); color: #fecaca; }
.cabinet-btn-danger:hover { background: rgba(220,38,38,0.12); }

/* === Utils === */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--text3); }
.text-center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between--nowrap { flex-wrap: nowrap !important; }

/* === SEO text blocks === */
.seo-text h2 { margin-bottom: 14px; font-size: 22px; font-weight: 700; }
.seo-lead { font-size: 15px; line-height: 1.7; color: var(--text2); max-width: 820px; margin-bottom: 24px; }
.seo-body { font-size: 14px; line-height: 1.7; color: var(--text2); max-width: 820px; }
.seo-body p { margin-bottom: 14px; }
.seo-list { list-style: none; padding: 0; margin: 14px 0; }
.seo-list li { padding: 8px 0 8px 22px; position: relative; }
.seo-list li::before {
    content: ''; position: absolute; left: 0; top: 16px;
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}
.seo-list li strong { color: var(--orange-b); }

/* === Steps grid (how it works) === */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.step-card { padding: 28px 24px; border-left: 3px solid var(--orange); }
.step-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.step-card p { font-size: 14px; line-height: 1.65; color: var(--text2); }
.step-card p a { color: var(--orange-l); text-decoration: underline; text-underline-offset: 2px; }
.step-card p a:hover { color: var(--orange-b); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(217,119,6,0.1));
    border: 1px solid rgba(249,115,22,0.25);
    color: var(--orange); font-weight: 800; font-size: 15px;
}

/* === Features grid === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.feature-card { padding: 26px 24px; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(249,115,22,0.12);
    border-color: rgba(249,115,22,0.25);
}
.feature-icon { font-size: 28px; margin-bottom: 14px; line-height: 1; filter: saturate(1.2); }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--orange-b); }
.feature-card p { font-size: 14px; line-height: 1.65; color: var(--text2); }

/* === Search results bar === */
.search-bar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:14px 18px; background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:14px; margin-bottom:18px; backdrop-filter:blur(12px); }
.search-active { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.search-key { font-size:10px; color:var(--text3); letter-spacing:.5px; }
.search-sort { display:flex; align-items:center; gap:6px; }
.sort-btn { padding:5px 10px; font:inherit; font-size:11.5px; background:transparent; border:1px solid transparent; color:var(--text2); border-radius:8px; cursor:pointer; transition:all .2s; }
.sort-btn:hover { color:var(--text); }
.sort-btn.is-on { background:rgba(249,115,22,.1); color:var(--orange-b); border-color:rgba(249,115,22,.3); }

/* === Toggle switch === */
.toggles { display:flex; flex-direction:column; gap:12px; padding:14px 0 4px; }
.toggle { display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-size:13.5px; color:var(--text2); }
.switch { width:34px; height:20px; border-radius:99px; background:rgba(255,255,255,.1); position:relative; transition:background .2s; flex-shrink:0; }
.switch i { position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .25s; }
.switch.is-on { background:linear-gradient(135deg, var(--orange), var(--amber)); }
.switch.is-on i { transform:translateX(14px); }

/* === Checkbox (auth pages) === */
.auth-checkbox { display:flex; gap:10px; align-items:center; cursor:pointer; font-size:13.5px; color:var(--text2); margin:8px 0; }
.auth-checkbox input { appearance:none; width:18px; height:18px; border:1px solid var(--border); border-radius:5px; cursor:pointer; flex-shrink:0; transition:all .2s; position:relative; background:rgba(255,255,255,.03); }
.auth-checkbox input:checked { background:linear-gradient(135deg, var(--orange), var(--amber)); border-color:var(--orange); }
.auth-checkbox input:checked::after { content:'✓'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:700; }

/* === Auth layout === */
.auth-wrap { padding:32px 0 64px; min-height:calc(100vh - 200px); display:flex; align-items:center; justify-content:center; }
.auth-card { display:grid; grid-template-columns:1fr 1fr; gap:0; max-width:980px; width:100%; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:24px; overflow:hidden; backdrop-filter:blur(20px); position:relative; }
.auth-card::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
.auth-side { padding:48px 44px; background:linear-gradient(180deg, rgba(249,115,22,.08), rgba(217,119,6,.04)); border-right:1px solid var(--border); display:flex; flex-direction:column; gap:18px; position:relative; overflow:hidden; }
.auth-side::after { content:''; position:absolute; bottom:-100px; right:-120px; width:380px; height:380px; background:radial-gradient(circle, rgba(249,115,22,.35), transparent 65%); filter:blur(40px); pointer-events:none; }
.auth-side > * { position:relative; z-index:1; }
.auth-side-h { font-size:30px; font-weight:800; line-height:1.15; letter-spacing:-.6px; }
.auth-side-h em { font-style:normal; background:linear-gradient(135deg, var(--orange-l), var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.auth-bullets { list-style:none; padding:0; margin:8px 0 0; display:flex; flex-direction:column; gap:12px; }
.auth-bullets li { display:flex; gap:10px; align-items:flex-start; color:var(--text2); font-size:14px; line-height:1.5; }
.auth-bullets li span { color:var(--orange-l); flex-shrink:0; padding-top:2px; }
.auth-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:auto; padding-top:24px; border-top:1px solid var(--border); }
.auth-stats > div { display:flex; flex-direction:column; gap:4px; padding-right:14px; border-right:1px solid var(--border); }
.auth-stats > div:last-child { border-right:none; }
.auth-stats span { font-size:22px; font-weight:700; background:linear-gradient(135deg, var(--orange-l), var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1; }
.auth-stats i { font-style:normal; font-size:11px; color:var(--text3); text-transform:uppercase; letter-spacing:.5px; }
.auth-main { padding:48px 44px; display:flex; flex-direction:column; gap:0; }
.auth-foot { padding-top:20px; margin-top:18px; border-top:1px solid var(--border); color:var(--text3); font-size:13px; text-align:center; }
@media (max-width:780px) { .auth-card { grid-template-columns:1fr; } .auth-side { border-right:none; border-bottom:1px solid var(--border); padding:32px 28px; } .auth-main { padding:32px 28px; } }

/* === Games toolbar === */
.games-toolbar { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center; padding:16px 18px; background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:14px; margin-bottom:22px; backdrop-filter:blur(12px); }
.search-inline { max-width:320px; margin-bottom:0 !important; padding:3px 3px 3px 14px !important; }
.search-inline input { padding:8px 4px !important; font-size:13.5px !important; }

/* === Game hero === */
.game-hero { display:grid; grid-template-columns:380px 1fr; gap:32px; margin-bottom:48px; align-items:stretch; }
.game-hero-cover { aspect-ratio:3/4; border-radius:20px; position:relative; overflow:hidden; border:1px solid var(--border); }
.game-hero-corners { position:absolute; inset:10px; pointer-events:none; }
.corner { position:absolute; width:18px; height:18px; }
.corner-tl { top:0; left:0; border-top:1px solid var(--orange-l); border-left:1px solid var(--orange-l); }
.corner-tr { top:0; right:0; border-top:1px solid var(--orange-l); border-right:1px solid var(--orange-l); }
.corner-bl { bottom:0; left:0; border-bottom:1px solid var(--orange-l); border-left:1px solid var(--orange-l); }
.corner-br { bottom:0; right:0; border-bottom:1px solid var(--orange-l); border-right:1px solid var(--orange-l); }
.game-hero-info { display:flex; flex-direction:column; padding:8px 0; }
.game-hero-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-bottom:24px; max-width:480px; }
.game-hero-stats > div { display:flex; flex-direction:column; gap:4px; padding:0 18px; border-left:1px solid var(--border); }
.game-hero-stats > div:first-child { padding-left:0; border-left:none; }
.game-hero-stats span { font-size:30px; font-weight:700; background:linear-gradient(135deg, var(--orange-l), var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1; }
.game-hero-stats i { font-style:normal; font-size:11px; color:var(--text3); text-transform:uppercase; letter-spacing:.5px; }
.game-hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
@media (max-width:780px) { .game-hero { grid-template-columns:1fr; } .game-hero-cover { max-width:280px; aspect-ratio:1.4/1; } }

/* === Party detail (extended) === */
.party-detail-cover-meta { position:absolute; bottom:24px; left:24px; display:flex; gap:14px; align-items:center; z-index:2; }
.party-detail-id { font-size:11px; color:rgba(255,247,237,.5); }
.party-detail-headrow { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; padding:32px 0 0; }
.party-detail-actions { display:flex; flex-direction:column; gap:8px; align-items:stretch; min-width:200px; }
.party-detail-desc { color:var(--text2); font-size:15px; line-height:1.7; white-space:pre-wrap; }

.photo-gallery-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:10px; }
.photo-gallery-grid .photo { aspect-ratio:4/3; border-radius:10px; border:1px solid var(--border); }

.host-block { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:start; }
.host-name { font-size:16px; font-weight:600; display:inline-flex; gap:10px; align-items:center; }
.host-meta { font-size:11.5px; color:var(--text3); margin:4px 0 8px; }
.host-bio { font-size:13.5px; color:var(--text2); line-height:1.55; max-width:520px; }

/* Roster */
.roster-list { list-style:none; padding:0; margin:0; }
.roster-list li { display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid var(--border); }
.roster-list li:last-child { border-bottom:none; }
.roster-list li.is-empty .roster-name { color:var(--text3); }
.roster-name { font-size:13.5px; font-weight:500; display:inline-flex; gap:8px; align-items:center; }
.host-tag { font-size:9px; color:var(--orange-l); border:1px solid rgba(249,115,22,.4); border-radius:3px; padding:1px 5px; }
.roster-role { font-size:11px; color:var(--text3); margin-top:2px; }

.stat-list { margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.stat-list > div { display:flex; justify-content:space-between; align-items:baseline; padding-bottom:11px; border-bottom:1px solid var(--border); }
.stat-list > div:last-child { border-bottom:none; padding-bottom:0; }
.stat-list dt { font-size:12.5px; color:var(--text3); margin:0; }
.stat-list dd { margin:0; font-size:14px; font-weight:500; }

/* === Form card sections === */
.form-card { padding:0; overflow:hidden; }
.form-section { padding:24px 26px; border-bottom:1px solid var(--border); }
.form-section:last-of-type { border-bottom:none; }
.form-section-h { font-size:15px; font-weight:600; margin-bottom:16px; display:flex; gap:10px; align-items:baseline; }
.form-section-h span { font-size:11px; color:var(--orange-l); }
.form-section-hint { font-weight:400; color:var(--text3); font-size:12px; }
.form-foot { padding:20px 26px; display:flex; gap:10px; align-items:center; background:rgba(255,255,255,.02); border-top:1px solid var(--border); flex-wrap:wrap; }

/* Tips sidebar */
.tips { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.tips li { display:flex; gap:8px; align-items:flex-start; font-size:13px; color:var(--text2); line-height:1.5; }
.tips li span { color:var(--orange-l); flex-shrink:0; }
.limit { padding:6px 0; }
.limit-bar { height:6px; border-radius:99px; background:rgba(255,255,255,.06); overflow:hidden; }
.limit-bar i { display:block; height:100%; background:linear-gradient(90deg, var(--orange-l), var(--gold)); border-radius:99px; }
.limit-row { display:flex; justify-content:space-between; align-items:baseline; margin-top:8px; font-size:13px; color:var(--text3); }
.limit-row span { font-size:18px; font-weight:600; color:var(--text); }
.limit-row i { font-style:normal; }

/* ===== TELEGRAM CABINET ===== */
.tg-topbar { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; align-items:flex-end; margin-bottom:16px; }
.tg-stats-bar { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin-bottom:16px; }
.tg-stat { padding:10px 16px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid var(--border); display:flex; align-items:center; gap:10px; }
.tg-stat-accent { background:linear-gradient(135deg, rgba(249,115,22,.10), rgba(217,119,6,.04)); border-color:rgba(249,115,22,.3); }
.tg-stat-k { font-size:9.5px; letter-spacing:.5px; color:var(--text3); }
.tg-stat-accent .tg-stat-k { color:var(--orange-b); }
.tg-stat-v { font-size:20px; font-weight:700; background:linear-gradient(135deg, var(--orange-l), var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tg-stat-v i { font-style:normal; font-size:12px; color:var(--text3); margin-left:2px; -webkit-text-fill-color:var(--text3); }

.tg-cabinet { display:grid; grid-template-columns:380px 1fr; min-height:calc(100vh - 280px); overflow:hidden; padding:0 !important; }
.tg-left { display:flex; flex-direction:column; border-right:1px solid var(--border); min-width:0; }
.tg-left-header { display:flex; align-items:center; gap:8px; padding:14px 18px; border-bottom:1px solid var(--border); flex-shrink:0; min-height:52px; }
.tg-left-title { font-size:15px; font-weight:700; }
.tg-left-scroll { flex:1; overflow-y:auto; }

.tg-back-btn { background:none; border:none; color:var(--text2); cursor:pointer; padding:4px; display:flex; align-items:center; border-radius:8px; transition:background .2s, color .2s; }
.tg-back-btn:hover { background:rgba(255,255,255,.06); color:var(--orange-l); }

.tg-party-item { display:grid; grid-template-columns:48px 1fr auto; gap:12px; align-items:center; padding:12px 18px; cursor:pointer; transition:background .2s; border-bottom:1px solid var(--border); }
.tg-party-item:last-child { border-bottom:none; }
.tg-party-item.has-unread { background:rgba(249,115,22,.04); border-left:3px solid var(--orange-l); }
.tg-mark-read-btn { background:none; border:1px solid rgba(255,255,255,.12); color:var(--text3); cursor:pointer; padding:5px 8px; border-radius:8px; display:flex; align-items:center; gap:4px; font-size:11px; transition:all .2s; margin-left:auto; }
.tg-mark-read-btn:hover { border-color:var(--orange-l); color:var(--orange-l); background:rgba(249,115,22,.06); }
.tg-party-item:hover { background:rgba(249,115,22,.06); }
.tg-party-item.is-active { background:rgba(249,115,22,.08); box-shadow:inset 3px 0 0 var(--orange); }
.tg-party-cover { width:48px; height:48px; border-radius:10px; overflow:hidden; position:relative; flex-shrink:0; }
.tg-party-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tg-party-info { min-width:0; }
.tg-party-name { font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tg-party-meta { font-size:11px; color:var(--text3); margin-top:2px; }
.tg-party-badges { display:flex; gap:6px; align-items:center; flex-shrink:0; }

.tg-app-item { display:grid; grid-template-columns:36px 1fr auto; gap:10px; align-items:center; padding:11px 18px; cursor:pointer; transition:background .2s; border-bottom:1px solid var(--border); }
.tg-app-item:last-child { border-bottom:none; }
.tg-app-item:hover { background:rgba(249,115,22,.06); }
.tg-app-item.is-active { background:rgba(249,115,22,.08); box-shadow:inset 3px 0 0 var(--orange); }
.tg-app-item.is-new { box-shadow:inset 3px 0 0 var(--orange); }
.tg-app-info { min-width:0; }
.tg-app-name { font-size:13px; font-weight:600; display:flex; align-items:baseline; }
.tg-app-text { font-size:11.5px; color:var(--text3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.tg-chat-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 6px #22c55e; flex-shrink:0; }
.tg-chat-dot--unread { background:#f97316; box-shadow:0 0 8px #f97316; animation: tg-pulse 1.5s ease-in-out infinite; }
@keyframes tg-pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

.tg-right { display:flex; flex-direction:column; min-width:0; }
.tg-right-header { display:flex; justify-content:space-between; align-items:center; padding:14px 24px; border-bottom:1px solid var(--border); flex-shrink:0; }
.tg-right-body { flex:1; overflow-y:hidden; display:flex; flex-direction:column; min-height:0; }
.tg-right-body .dialogs-messages { flex:1; overflow-y:auto; padding:16px 24px; display:flex; flex-direction:column; gap:10px; min-height:0; }
.tg-right-form { border-top:1px solid var(--border); padding:10px 16px; }
.chat-compose {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 4px 4px 4px;
    transition: border-color .2s;
}
.chat-compose:focus-within { border-color: rgba(249,115,22,.4); }
.chat-compose textarea {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    padding: 0 6px;
    resize: none;
    height: 30px;
    max-height: 78px;
    line-height: 30px;
    overflow-y: hidden;
}
.chat-compose textarea::placeholder { color: var(--text3); }
.chat-compose-attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text3);
    transition: color .2s, background .2s;
}
.chat-compose-attach:hover { color: var(--orange-l); background: rgba(249,115,22,.08); }
.chat-compose-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-l), var(--gold));
    border: none;
    cursor: pointer;
    color: #000;
    transition: opacity .2s, transform .2s;
}
.chat-compose-send:hover { opacity: .85; transform: scale(1.05); }
.chat-compose-send:active { transform: scale(.95); }
.chat-compose-send:disabled { opacity: .4; cursor: default; transform: none; }

.tg-right-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:var(--text3); font-size:14px; padding:40px; text-align:center; }
.tg-right-empty-icon { opacity:.3; }

.tg-section-divider { padding:12px 0 4px; border-top:1px solid var(--border); margin-top:4px; }
.tg-loading { padding:24px; color:var(--text3); font-size:13px; text-align:center; }
.tg-empty-hint { padding:24px 18px; color:var(--text3); font-size:13px; }
.tg-empty-hint a { color:var(--orange-l); }

@media (max-width:980px) {
    .tg-stats-bar { grid-template-columns:repeat(2, 1fr); }
    .tg-cabinet { grid-template-columns:1fr; min-height:auto; }
    .tg-left { border-right:none; border-bottom:1px solid var(--border); max-height:45vh; }
    .tg-right-body .dialogs-messages { padding:12px; }
    .tg-right-form { padding:8px 12px; }
}

/* === Cabinet stats grid === */
.cab-headrow { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; align-items:flex-end; }
.cab-quick { display:flex; gap:10px; align-items:center; }
.cab-stats { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
.stat-card { padding:18px 20px; border-radius:16px; background:rgba(255,255,255,.04); border:1px solid var(--border); backdrop-filter:blur(16px); position:relative; }
.stat-card-accent { background:linear-gradient(135deg, rgba(249,115,22,.12), rgba(217,119,6,.04)); border-color:rgba(249,115,22,.3); }
.stat-card-k { font-size:10.5px; color:var(--text3); letter-spacing:.5px; display:flex; gap:6px; align-items:center; margin-bottom:8px; }
.stat-card-accent .stat-card-k { color:var(--orange-b); }
.stat-card-dot { width:7px; height:7px; border-radius:50%; background:var(--orange); box-shadow:0 0 8px var(--orange); animation:pulse-dot 1.5s infinite; }
.stat-card-v { font-size:34px; font-weight:700; line-height:1; background:linear-gradient(135deg, var(--orange-l), var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-card-v i { font-style:normal; font-size:14px; color:var(--text3); margin-left:4px; -webkit-text-fill-color:var(--text3); }
.stat-card-bar { height:4px; background:rgba(255,255,255,.06); border-radius:99px; margin-top:14px; overflow:hidden; }
.stat-card-bar i { display:block; height:100%; background:linear-gradient(90deg, var(--orange-l), var(--gold)); border-radius:99px; }
.stat-card-meta { font-size:10.5px; color:var(--text3); margin-top:10px; }
@media (max-width:980px) { .cab-stats { grid-template-columns:repeat(2,1fr); } }

/* === Application list === */
.app-list { list-style:none; padding:0; margin:0; background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:18px; overflow:hidden; backdrop-filter:blur(16px); }
.app-list li { border-bottom:1px solid var(--border); }
.app-list li:last-child { border-bottom:none; }
.app-list li.is-new { box-shadow:inset 3px 0 0 var(--orange); }
.app-row { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; padding:16px 20px; text-decoration:none; color:var(--text); transition:background .2s; }
.app-row:hover { background:rgba(255,255,255,.03); }
.app-row:hover .app-arrow { color:var(--orange-l); transform:translateX(4px); }
.app-headrow { display:flex; justify-content:space-between; align-items:baseline; }
.app-name { font-size:14.5px; font-weight:600; }
.app-time { font-size:11px; color:var(--text3); }
.app-text { color:var(--text2); font-size:13.5px; line-height:1.4; margin-top:2px; }
.app-text em { font-style:normal; color:var(--text); font-weight:500; }
.app-meta { display:flex; gap:8px; margin-top:6px; }
.app-arrow { color:var(--text3); transition:all .2s; font-size:18px; }

/* === Cabinet mine cards === */
.cab-mine { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:14px; }
.mine-card { padding:0; overflow:hidden; }
.mine-cover { height:140px; position:relative; }
.mine-cover .party-card-tag { position:absolute; top:12px; left:12px; }
.mine-cover .badge-status { position:absolute; top:12px; right:12px; backdrop-filter:blur(10px); }
.mine-body { padding:14px 18px 16px; }
.mine-title { font-size:15.5px; font-weight:600; line-height:1.35; margin-bottom:8px; }
.mine-meta { display:flex; gap:8px; color:var(--text3); font-size:11.5px; margin-bottom:14px; }
.mine-actions { display:flex; gap:6px; flex-wrap:wrap; }

/* === Cabinet sidebar === */
.cab-profile { display:flex; gap:14px; align-items:center; }
.cab-profile-name { font-size:15px; font-weight:600; }
.cab-profile-meta { font-size:10.5px; color:var(--text3); margin-top:3px; }

.cab-dialogs { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0; }
.cab-dialogs li { border-bottom:1px solid var(--border); }
.cab-dialogs li:last-child { border-bottom:none; }
.cab-dialogs a { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; padding:11px 4px; text-decoration:none; color:var(--text); transition:background .2s; }
.cab-dialogs a:hover { background:rgba(255,255,255,.02); }
.cab-dialog-body { min-width:0; }
.cab-dialog-row { display:flex; justify-content:space-between; font-size:13px; }
.cab-dialog-row > span:first-child { font-weight:500; }
.cab-dialog-row > span:last-child { color:var(--text3); font-size:10.5px; }
.cab-dialog-text { font-size:11.5px; color:var(--text3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.cab-dialog-badge { background:var(--orange); color:#0a0604; padding:2px 7px; border-radius:99px; font-size:10px; font-weight:700; }

.activity { display:flex; gap:8px; align-items:flex-end; height:80px; padding:8px 0; }
.activity-day { display:flex; flex-direction:column; gap:6px; align-items:center; flex:1; }
.activity-bar { width:100%; max-width:18px; background:linear-gradient(180deg, var(--orange-l), var(--gold)); border-radius:4px 4px 0 0; box-shadow:0 0 8px rgba(249,115,22,.3); }
.activity-lbl { font-size:9.5px; color:var(--text3); }
.cab-activity-meta { font-size:11px; color:#86efac; margin-top:10px; }

/* === Dialogs page (extended) === */
.dialogs-layout.dialogs-full { padding:0; overflow:hidden; display:grid; grid-template-columns:320px 1fr; min-height:700px; }
.dialogs-full .dialogs-sidebar { border-right:1px solid var(--border); display:flex; flex-direction:column; padding-right:0; }
.dialogs-full .dialogs-list { list-style:none; padding:0; margin:0; overflow:auto; flex:1; display:flex; flex-direction:column; gap:0; }
.dialogs-full .dialogs-item { border-radius:0; border:none; border-bottom:1px solid var(--border); }
.dialogs-full .dialogs-item a { display:grid; grid-template-columns:auto 1fr auto; gap:11px; align-items:center; padding:14px 18px; }
.dialogs-full .dialogs-item.is-active { background:rgba(249,115,22,.07); box-shadow:inset 3px 0 0 var(--orange); border-color:var(--border); }

.chat-head { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; padding:18px 24px; border-bottom:1px solid var(--border); }
.chat-head-name { font-size:16px; font-weight:600; display:flex; gap:10px; align-items:center; }
.chat-head-meta { font-size:11px; color:var(--text3); margin-top:3px; }
.chat-head-actions { display:flex; gap:8px; }

.chat-body { flex:1; padding:24px; display:flex; flex-direction:column; gap:14px; overflow:auto; min-height:400px; }
.chat-day { font-size:10.5px; color:var(--text3); text-align:center; padding:8px 0; }
.chat-typing { font-size:11px; color:var(--text3); font-style:italic; margin-top:-4px; }
.msg { display:flex; gap:10px; align-items:flex-end; max-width:75%; }
.msg.is-mine { margin-left:auto; flex-direction:row-reverse; }
.msg-bubble { padding:11px 14px; border-radius:14px; background:rgba(255,255,255,.04); border:1px solid var(--border); }
.msg.is-mine .msg-bubble { background:linear-gradient(135deg, rgba(249,115,22,.18), rgba(217,119,6,.1)); border-color:rgba(249,115,22,.3); }
.msg-text { font-size:13.5px; line-height:1.5; }
.msg-photo { width:200px; height:120px; border-radius:8px; margin-top:8px; }
.msg-time { font-size:10px; color:var(--text3); margin-top:4px; }

.chat-input { padding:14px 24px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:8px; }
.chat-input textarea { min-height:60px; resize:none; }
.chat-input-actions { display:flex; gap:8px; justify-content:space-between; align-items:center; }
.chat-attach { width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text2); cursor:pointer; font-size:16px; transition:all .2s; }
.chat-attach:hover { border-color:rgba(249,115,22,.4); color:var(--orange-l); }
@media (max-width:980px) { .dialogs-layout.dialogs-full { grid-template-columns:1fr; min-height:auto; } .dialogs-full .dialogs-sidebar { border-right:none; border-bottom:1px solid var(--border); max-height:300px; } }

/* === Application detail === */
.app-detail-text { white-space:pre-wrap; line-height:1.7; color:var(--text2); font-size:14.5px; }
.app-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.app-party-tag { font-size:11px; color:var(--orange-l); margin-bottom:8px; }
.app-party-title { font-size:15px; font-weight:600; line-height:1.4; margin-bottom:10px; }
.app-party-meta { display:flex; flex-direction:column; gap:5px; font-size:11.5px; color:var(--text3); }

/* === Avatar === */
.avatar { width:40px; height:40px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; color:#fff; flex-shrink:0; font-family:'JetBrains Mono',monospace; letter-spacing:0; }
.avatar-sm { width:30px; height:30px; font-size:10px; border-radius:8px; }
.avatar-lg { width:56px; height:56px; font-size:16px; border-radius:14px; }

/* === Page layout helpers === */
.pg-layout-2 { display:grid; grid-template-columns:280px 1fr; gap:24px; align-items:start; }
.pg-layout-2-rev { display:grid; grid-template-columns:1fr 320px; gap:24px; align-items:start; }
@media (max-width:980px) { .pg-layout-2, .pg-layout-2-rev { grid-template-columns:1fr; } }

/* Badge pending */
.badge-pending { background:rgba(249,115,22,.14); color:var(--orange-b); border:1px solid rgba(249,115,22,.3); }

/* Section tight */
.section-tight { padding:0 0 48px; margin-bottom:0; }
.section-tight .section-head { margin-bottom:18px; }

/* Card header */
.card-h { font-size:15px; font-weight:600; margin-bottom:14px; display:flex; justify-content:space-between; align-items:baseline; }
.card-h span { font-size:11px; color:var(--text3); letter-spacing:.5px; font-family:'JetBrains Mono',monospace; }

/* === Back-compat: old hero classes used before page-by-page migration === */
.hero-label {
    display: inline-block;
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--orange-l); margin-bottom: 16px; padding: 6px 14px;
    border-radius: 999px; background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2);
}
.hero-stat-divider { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.hero-bar {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    max-width: 580px; padding: 5px; transition: border-color var(--t), box-shadow var(--t);
}
.hero-bar:focus-within {
    border-color: rgba(249,115,22,0.5);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.08), 0 8px 32px rgba(249,115,22,0.1);
}
.hero-bar-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text3); margin-left: 14px; }
.hero-bar input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); font-size: 15px; padding: 12px 14px; font-family: inherit; min-width: 0;
}
.hero-bar input::placeholder { color: var(--text3); }
.btn-search {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 24px; font-size: 14px; font-weight: 600; font-family: inherit;
    border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, var(--orange), var(--amber)); color: #fff;
    box-shadow: 0 4px 16px rgba(249,115,22,0.3); transition: all var(--t); flex-shrink: 0; white-space: nowrap;
}
.btn-search:hover { box-shadow: 0 6px 24px rgba(249,115,22,0.45); transform: translateY(-1px); }
.hero-desc {
    color: var(--text2); font-size: 16px; line-height: 1.65;
    max-width: 540px; margin-bottom: 28px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--orange), var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 768px) {
    .hero-stat { padding: 0 14px; }
    .hero-desc { font-size: 15px; margin-bottom: 22px; }
    .hero-bar { max-width: 100%; }
}
/* === End back-compat === */

/* ========== Admin panel ========== */
.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.admin-quick-card {
    display: block;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .15s;
    position: relative;
}
.admin-quick-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}
.admin-quick-card h3 { font-size: 16px; margin: 8px 0 4px; }
.admin-quick-card .app-arrow {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 18px;
    color: var(--muted);
    transition: color .2s;
}
.admin-quick-card:hover .app-arrow { color: var(--orange); }

/* === Admin Sidebar Layout === */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 250px; z-index: 100;
    background: #0c0804;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.admin-sidebar-head {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.admin-sidebar-head .brand { gap: 8px; }
.admin-sidebar-badge {
    font-size: 10px; font-weight: 700;
    background: linear-gradient(135deg, var(--orange), var(--orange-b));
    color: #fff; padding: 3px 8px; border-radius: 6px;
    letter-spacing: 1px;
}
.admin-sidebar-nav {
    flex: 1; padding: 12px 0;
}
.admin-sidebar-section {
    font-size: 10px; color: var(--text3);
    padding: 8px 20px 6px;
    letter-spacing: 1px; text-transform: uppercase;
}
.admin-sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px;
    font-size: 14px; color: var(--text2);
    text-decoration: none;
    transition: background .15s, color .15s;
    border-radius: 0;
}
.admin-sidebar-link:hover {
    background: rgba(255,255,255,.05);
    color: var(--text);
}
.admin-sidebar-link.active {
    color: var(--orange);
    background: rgba(249,115,22,.08);
    border-right: 3px solid var(--orange);
}
.admin-sidebar-link svg {
    flex-shrink: 0;
    opacity: .6;
}
.admin-sidebar-link.active svg,
.admin-sidebar-link:hover svg {
    opacity: 1;
}
.admin-sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 8px 0;
}
.admin-main {
    flex: 1;
    margin-left: 250px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.admin-content {
    flex: 1;
    padding: 32px 40px;
    position: relative;
    z-index: 1;
}
.admin-main .plasma-bg { position: fixed; left: 250px; }
.admin-sidebar-toggle {
    display: none;
    position: fixed; top: 14px; left: 14px; z-index: 101;
    background: rgba(14,7,3,.9); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px;
    color: var(--text); cursor: pointer;
}

@media (max-width: 900px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,.6);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-main .plasma-bg { left: 0; }
    .admin-sidebar-toggle { display: block; }
    .admin-content { padding: 24px 16px; padding-top: 56px; }
    .admin-charts-grid { grid-template-columns: 1fr !important; }
}

.admin-table-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-table-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .15s;
}
.admin-table-row:last-child { border-bottom: none; }
.admin-table-row:hover { background: rgba(255,255,255,.03); }

.admin-cover-thumb {
    width: 56px; height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.05);
}
.admin-cover-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.admin-cover-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(249,115,22,.15), rgba(245,158,11,.08));
}

.admin-row-info { flex: 1; min-width: 0; }
.admin-row-title {
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-row-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    flex-wrap: wrap;
}

.admin-row-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 5px 12px !important;
    font-size: 12px !important;
}
.btn-danger {
    color: #fca5a5 !important;
    border-color: rgba(220,38,38,.35) !important;
}
.btn-danger:hover {
    background: rgba(220,38,38,.15) !important;
    border-color: rgba(220,38,38,.6) !important;
}

.admin-cover-preview {
    width: 200px; height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.08);
}
.admin-cover-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.admin-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}
.admin-toggle-row input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--orange);
    cursor: pointer;
}

@media (max-width: 768px) {
    .admin-table-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }
    .admin-row-actions { width: 100%; }
    .admin-quick-links { grid-template-columns: 1fr; }
}

/* ========== Cursor blink animation ========== */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========== Party card tag fix ========== */
.party-card-cover {
    position: relative;
    overflow: hidden;
}

/* ========== Nav profile dropdown ========== */
.nav-profile-wrap {
    position: relative;
}
.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    width: 38px;
    height: 38px;
    overflow: hidden;
    position: relative;
    transition: border-color .2s;
}
.nav-profile-btn:hover {
    border-color: var(--orange);
}
.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: #000;
}
.nav-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #1a0e06;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.3);
}
.nav-profile-dropdown.is-open {
    display: block;
}
.nav-profile-info {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-profile-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.nav-profile-info .muted {
    font-size: 12px;
}
.nav-profile-links {
    padding: 8px 0;
}
.nav-profile-links a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
}
.nav-profile-links a:hover {
    background: rgba(255,255,255,.05);
    color: var(--orange);
}
.nav-profile-cta {
    background: linear-gradient(135deg, var(--orange), var(--orange-b)) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 10px;
    margin: 4px 10px 6px;
    padding: 10px 16px !important;
    text-align: center;
}
.nav-profile-cta:hover {
    background: linear-gradient(135deg, #ff9a55, #e68a1a) !important;
    color: #fff !important;
}
.nav-profile-logout {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 8px;
}
.nav-profile-logout button {
    width: 100%;
    background: none;
    border: none;
    color: #fca5a5;
    font-size: 13px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s;
    font-family: inherit;
}
.nav-profile-logout button:hover {
    background: rgba(220,38,38,.1);
}

/* ========== Profile page ========== */
.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
}
.profile-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.1);
}
.avatar-lg {
    width: 72px !important;
    height: 72px !important;
    font-size: 24px !important;
}

/* ========== News ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.news-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .15s;
}
.news-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}
.news-card-cover {
    height: 160px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card-body {
    padding: 16px 20px 20px;
}
.news-card-date {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}
.news-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}
.news-card-excerpt {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.news-article-cover {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
    max-height: 400px;
}
.news-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-article-body {
    line-height: 1.8;
    font-size: 15px;
}

/* ========== Chat pending / loader ========== */
.chat-msg--pending {
    opacity: .7;
}
.chat-msg--failed {
    opacity: .85;
}
.chat-msg--failed .chat-msg-status {
    color: #fca5a5;
}
.chat-msg-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}
.chat-loader {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,.15);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: chatSpin .6s linear infinite;
}
@keyframes chatSpin {
    to { transform: rotate(360deg); }
}

/* ========== Chat improvements ========== */
.chat-photo-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.chat-photo-preview:empty { display: none; margin: 0; }
.chat-preview-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
}
.chat-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-preview-rm {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}



/* ========== Lightbox ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(8px);
}
.lightbox-full {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: rgba(0,0,0,.6);
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, transform .2s;
    backdrop-filter: blur(4px);
}
.lightbox-close:hover {
    background: rgba(249,115,22,.7);
    border-color: rgba(249,115,22,.9);
    transform: scale(1.1);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text2);
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
}
.pagination-btn:hover {
    background: var(--glass-h);
    color: var(--orange);
    border-color: rgba(249,115,22,.3);
}
.pagination-active {
    background: linear-gradient(135deg, #ff8a3d, #d97706);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}
.pagination-active:hover {
    background: linear-gradient(135deg, #ff8a3d, #d97706);
    color: #fff;
}
.pagination-disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}
.pagination-dots {
    border: none;
    background: none;
    cursor: default;
    min-width: 28px;
    padding: 0 4px;
}

/* ========== Burger menu button ========== */
.nav-burger {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: var(--text);
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .2s;
}
.nav-burger:hover { border-color: var(--orange); }
.nav-burger svg { display: block; }
.nav-close-mobile { display: none; }

/* ========== Mobile responsive ========== */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-inner { padding: 12px 16px; gap: 12px; }
    .nav-burger { display: flex; }
    .nav-actions { margin-left: auto; }
    .nav-actions .btn { display: none; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: #0e0703;
        flex-direction: column;
        align-items: stretch;
        justify-content: start;
        gap: 0;
        margin: 0;
        padding: 70px 20px 20px;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a {
        font-size: 17px;
        font-weight: 500;
        padding: 16px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,.06);
        border-radius: 0;
        color: var(--text2);
    }
    .nav-links a:last-of-type { border-bottom: none; }
    .nav-links a.active {
        color: var(--orange);
        background: rgba(249,115,22,.06);
        border-left: 3px solid var(--orange);
    }
    .nav-close-mobile {
        display: flex;
    }

    /* Wrapper */
    .wrapper { padding: 0 14px; }

    /* Page */
    .page { padding: 20px 0 16px; }
    .page-title { font-size: 26px; letter-spacing: -.8px; }
    .page-subtitle { font-size: 14px; margin-bottom: 20px; }
    .page-crumbs { font-size: 11px; gap: 6px; flex-wrap: wrap; }

    /* Section */
    .section { margin-bottom: 32px; }
    .section-head { flex-direction: column; align-items: start; gap: 10px; margin-bottom: 18px; }
    .section-head h2 { font-size: 22px; }

    /* Row between */
    .row-between { flex-direction: column; gap: 12px; }

    /* Hero */
    .hero { padding: 28px 0 24px; }
    .hero-title { font-size: 28px; letter-spacing: -.8px; }
    .hero-desc { font-size: 14px; }
    .hero-search { grid-template-columns: auto 1fr auto; padding: 6px; }
    .hero-search input { font-size: 13px; }
    .hero-stats-grid { grid-template-columns: 1fr; max-width: 100%; }
    .hero-stats-grid .hero-stat { padding: 14px 16px; }
    .mini-card { padding: 14px; }

    /* Games grid */
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .games-toolbar { flex-direction: column; padding: 12px; gap: 10px; }
    .search-inline { max-width: 100%; }

    /* Party cards */
    .parties-grid { grid-template-columns: 1fr; }
    .party-card-cover { height: 140px; }
    .party-card-body { padding: 12px; }
    .party-card-title { font-size: 15px; }
    .party-card-meta { flex-wrap: wrap; }

    /* Party detail */
    .party-detail-headrow { flex-direction: column; gap: 16px; }
    .party-detail-actions { min-width: 0; width: 100%; }
    .host-block { grid-template-columns: auto 1fr; gap: 10px; }
    .host-block .btn { grid-column: 1 / -1; }
    .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* Game hero */
    .game-hero { grid-template-columns: 1fr; gap: 20px; }
    .game-hero-cover { max-width: 200px; aspect-ratio: 1/1; }
    .game-hero-stats { grid-template-columns: repeat(3, 1fr); max-width: 100%; }

    /* Dialogs */
    .dialogs-layout { grid-template-columns: 1fr; min-height: auto; }
    .dialogs-sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 12px; max-height: 200px; overflow-y: auto; }
    .dialogs-main-head { padding: 10px 12px; }
    .dialogs-messages { padding: 10px; }
    .dialogs-form { padding: 8px 10px; }
    .chat-msg { padding: 8px 10px; max-width: 90%; }

    /* Cabinet */
    .cab-stats { grid-template-columns: 1fr 1fr; }
    .cabinet-card-actions { grid-template-columns: 1fr; }
    .pg-layout-2, .pg-layout-2-rev { grid-template-columns: 1fr; }

    /* Application list */
    .app-row { grid-template-columns: auto 1fr; gap: 10px; padding: 12px 14px; }
    .app-row .app-arrow { display: none; }

    /* Auth */
    .auth-card { grid-template-columns: 1fr; }
    .auth-side { padding: 24px 20px; border-right: none; border-bottom: 1px solid var(--border); }
    .auth-main { padding: 24px 20px; }

    /* CTA */
    .cta-banner { flex-direction: column; padding: 20px 16px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; justify-content: center; }

    /* Glass panels */
    .glass { padding: 16px; border-radius: 14px; }

    /* Footer */
    .footer { flex-direction: column; text-align: center; gap: 8px; padding: 20px 0; font-size: 13px; }

    /* News */
    .news-grid { grid-template-columns: 1fr; }

    /* Admin */
    .admin-quick-links { grid-template-columns: 1fr; }

    /* Profile */
    .profile-avatar-row { flex-direction: column; align-items: start; }

    /* Filters */
    .chips { gap: 4px; }
    .chip { padding: 5px 10px; font-size: 11px; }

    /* Buttons */
    .btn { padding: 10px 16px; font-size: 13px; }
    .btn-sm { padding: 7px 12px; font-size: 12px; }

    /* Close mobile menu button */
    .nav-close-mobile {
        position: absolute;
        top: 16px;
        right: 16px;
        background: none;
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 8px;
        color: var(--text);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .wrapper { padding: 0 10px; }
    .navbar-inner { padding: 10px 12px; }
    .games-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 24px; }
    .party-card-tag { font-size: 10px; padding: 3px 8px; }
    .party-card-time { font-size: 10px; padding: 3px 8px; }
    .hero-stats-grid .hero-stat-val { font-size: 22px; }
}
