:root { --img-world: url("/assets/img/gp/world.webp"); --img-cta: url("/assets/img/gp/cta-football.webp"); }
:root {
    --bg: #0a0b0d;
    --bg-2: #0f1013;
    --surface: #131519;
    --surface-2: #181b20;
    --surface-3: #1f2329;
    --line: #23272e;
    --line-2: #2f343c;
    --border: var(--line);
    --border-strong: var(--line-2);
    --text: #f3f4f6;
    --text-2: #c3c7cf;
    --muted: #8b919e;
    --dim: #5d636f;
    --accent: #ffc21a;
    --accent-2: #ff8a00;
    --accent-soft: rgba(255, 194, 26, .1);
    --accent-line: rgba(255, 194, 26, .32);
    --accent-glow: rgba(255, 170, 20, .32);
    --accent-ink: #151004;
    --grad: linear-gradient(135deg, #ffd84d 0%, #ffb000 100%);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --r-xs: 4px;
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 14px;
    --radius: var(--r);
    --radius-sm: var(--r-sm);
    --radius-lg: var(--r-lg);
    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.7);
    --header-h: 72px;
    --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-d: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; min-height: 100vh; overflow-x: hidden;
    font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: #fff; line-height: 1.05; }
h1, h2 { font-family: var(--font-d); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
code { background: var(--surface-3); color: #ffd770; padding: .1em .4em; border-radius: var(--r-xs); font-size: .88em; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s3) 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2e35; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-center { text-align: center; }
.text-gradient { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.flex { display: flex; gap: 12px; align-items: center; } .flex-wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--s3); }
.section { padding: var(--s7) 0; position: relative; }
.section-sm { padding: var(--s6) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--s5); }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0 auto; max-width: 620px; }
.section-head h2 { margin-bottom: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: .9rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow::before, .section-head .eyebrow::after { content: ""; width: 24px; height: 2px; background: currentColor; }
.section-label { font-family: var(--font-d); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; background: var(--bg); transition: opacity .35s var(--ease), visibility .35s; animation: plFailsafe .01s 6s forwards; }
.preloader.is-done { opacity: 0; visibility: hidden; }
html.pl-skip .preloader { display: none; }
.pl-logo { position: relative; display: flex; align-items: center; gap: 16px; will-change: transform, filter, opacity; animation: plRun 2.9s cubic-bezier(.7, 0, .3, 1) both; }
.pl-logo img { width: 72px; height: 72px; }
.pl-word { font-family: var(--font-d); font-size: 3.2rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: #fff; line-height: 1; }
.pl-word em { font-style: normal; color: var(--accent); }
.pl-streaks { position: absolute; right: calc(100% + 10px); top: 50%; width: 46vw; height: 40px; transform: translateY(-50%); display: grid; align-content: space-between; opacity: 0; animation: plStreak 2.9s linear both; }
.pl-streaks i { display: block; height: 3px; border-radius: 3px; margin-left: auto; background: linear-gradient(90deg, transparent, var(--accent)); }
.pl-streaks i:nth-child(1) { width: 60%; } .pl-streaks i:nth-child(2) { width: 100%; } .pl-streaks i:nth-child(3) { width: 40%; }
@keyframes plRun {
    0%   { transform: translateX(-75vw) skewX(-18deg); filter: blur(10px); opacity: 0; }
    15%  { transform: translateX(14px) skewX(6deg); filter: blur(0); opacity: 1; }
    20%  { transform: translateX(0) skewX(0); }
    86%  { transform: translateX(0) skewX(0); filter: blur(0); opacity: 1; }
    90%  { transform: translateX(-18px) skewX(4deg); }
    100% { transform: translateX(85vw) skewX(-20deg); filter: blur(12px); opacity: 0; }
}
@keyframes plStreak { 0%, 2% { opacity: .9; } 16% { opacity: 0; } 88% { opacity: 0; } 92%, 100% { opacity: .9; } }
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; } }.topbar { position: fixed; z-index: 999; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width .4s var(--ease), opacity .3s; }

.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card { padding: var(--s3); }
.card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 var(--s2); display: flex; align-items: center; gap: 10px; }
.card-title .icon { color: var(--accent); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s2); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.05rem; display: flex; gap: 10px; align-items: center; font-family: var(--font); text-transform: none; font-weight: 700; }
.card-head h3 .icon { color: var(--accent); }

.btn {
    --b: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid var(--b);
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1; letter-spacing: .01em;
    color: #fff; background: var(--surface-3); cursor: pointer; white-space: nowrap; text-decoration: none; user-select: none;
    transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { color: #fff; background: #262a31; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffd04d; color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent-glow); }
.btn-ghost { background: transparent; --b: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: #3b414a; }
.btn-light { background: #fff; color: #0b0c10; } .btn-light:hover { background: #e9eaee; color: #0b0c10; }
.btn-danger { background: var(--danger); } .btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #04140a; } .btn-success:hover { background: #16a34a; color: #fff; }
.btn-warning { background: var(--warning); color: #140c02; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-xs { height: 30px; padding: 0 10px; font-size: .8rem; gap: 6px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.btn-icon.btn-sm { width: 36px; height: 36px; }
.icon { display: inline-block; vertical-align: middle; width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-xs { width: 13px; height: 13px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-fill { fill: currentColor; stroke: none; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: .9rem; }
.pill-icon { width: 28px; height: 28px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.pill b { color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-xs); font-size: .75rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { color: #4ade80; background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); }
.badge-danger { color: #f87171; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25); }
.badge-warning { color: #fbbf24; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); }
.badge-muted { color: var(--muted); background: rgba(148,163,184,.08); border-color: var(--line); }
.badge-primary { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-xs); font-size: .75rem; font-weight: 700; color: var(--text-2); background: var(--surface-3); border: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
.chip-accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.chip-success { color: #4ade80; background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.25); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.chip-success .dot { background: var(--success); }
.role-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); font-size: .74rem; font-weight: 700; color: var(--rc, #94a3b8); background: color-mix(in srgb, var(--rc, #94a3b8) 12%, transparent); border: 1px solid color-mix(in srgb, var(--rc, #94a3b8) 35%, transparent); white-space: nowrap; }
.role-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc, #94a3b8); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); vertical-align: -2px; }
.stars .icon { width: 16px; height: 16px; }
.stars .off { color: #2c3037; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b4e; animation: livePulse 1.6s infinite; display: inline-block; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,78,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,59,78,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,78,0); } }

.avatar { --ah: 40; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; font-weight: 800; font-size: 1rem; color: #fff; background: hsl(var(--ah) 45% 32%); text-transform: uppercase; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: .82rem; }
.avatar-md { width: 44px; height: 44px; }
.avatar-xl { width: 112px; height: 112px; font-size: 2.6rem; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.av-wrap .status { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #4b5059; border: 3px solid var(--surface); box-sizing: content-box; }
.av-wrap .status.on { background: var(--success); }
.av-wrap-xl .status { width: 18px; height: 18px; border-width: 5px; right: 6px; bottom: 6px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--font-d); font-size: 1.6rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.brand-text b em { font-style: normal; color: var(--accent); }
.brand-text small { font-size: .62rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-lg .brand-mark { width: 46px; height: 46px; }
.brand-lg .brand-text b { font-size: 1.9rem; }

.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: rgba(10,11,13,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3); }
.header-inner .brand { justify-self: start; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; color: var(--text-2); font-weight: 600; font-size: .95rem; padding: 10px 14px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 8px; align-items: center; justify-self: end; }
.umenu { position: relative; }
.umenu-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 6px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.umenu-btn:hover { background: var(--surface-2); }
.umenu-chev { transform: rotate(90deg); color: var(--muted); transition: transform .2s; }
.umenu.is-open .umenu-chev { transform: rotate(-90deg); }
.umenu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 24px 48px -12px rgba(0,0,0,.7); display: grid; gap: 2px; animation: popIn .18s var(--ease-out); z-index: 60; }
.umenu-pop a, .umenu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-2); font: inherit; font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; text-align: left; }
.umenu-pop a:hover, .umenu-pop button:hover { background: var(--surface-3); color: #fff; }
.umenu-pop form { margin: 0; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.umenu-id { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.hero { padding: var(--s5) 0 var(--s7); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 480px at 78% 30%, rgba(255,170,20,.10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s5); align-items: center; }
.hero h1 { margin: var(--s3) 0; }
.hero h1 .line { display: block; }
.hero-lead { font-size: 1.12rem; color: var(--text-2); max-width: 540px; margin-bottom: var(--s4); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: var(--s5); border-top: 1px solid var(--line); padding-top: var(--s3); }
.hero-trust div { display: grid; padding-right: var(--s4); margin-right: var(--s4); border-right: 1px solid var(--line); }
.hero-trust div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-trust b { font-family: var(--font-d); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-trust span { color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: 6px; }

.stage { position: relative; padding: 48px 0 0; }
.stage-player { position: absolute; z-index: 1; bottom: 64px; height: 100%; width: auto; max-width: none; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.stage-player.p1 { left: -3%; animation: playerIn .9s .15s var(--ease-out) both; }
.stage-player.p2 { right: -3%; animation: playerIn .9s .3s var(--ease-out) both; }
@keyframes playerIn { from { opacity: 0; transform: translateY(30px); } }
.tv { position: relative; z-index: 2; margin: 0 14%; border-radius: var(--r); padding: 6px; background: #1a1d22; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,194,26,.06); }
.tv-screen { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: #0c0e10; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: 1; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 7s linear; }
.hero-slides img.is-on { opacity: 1; transform: scale(1); }
.tv-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 26%, transparent 60%, rgba(0,0,0,.8) 100%); pointer-events: none; }
.scorebug { position: absolute; z-index: 4; left: 12px; top: 12px; display: flex; align-items: stretch; border-radius: var(--r-xs); overflow: hidden; font-family: var(--font-d); font-weight: 700; font-size: .95rem; letter-spacing: .04em; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.scorebug > span { display: grid; place-items: center; padding: 4px 9px; }
.scorebug .lg { background: var(--accent); color: var(--accent-ink); font-size: .78rem; }
.scorebug .tm { background: rgba(10,11,13,.9); color: #fff; }
.scorebug .sc { background: #fff; color: #0b0c10; font-variant-numeric: tabular-nums; }
.scorebug .clk { background: rgba(10,11,13,.9); color: var(--accent); font-variant-numeric: tabular-nums; }
.tv-live { position: absolute; z-index: 4; right: 12px; top: 12px; display: flex; gap: 6px; }
.tv-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--r-xs); background: rgba(10,11,13,.8); font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: #fff; border: 1px solid rgba(255,255,255,.1); }
.tv-chip.red { background: #e11d48; border-color: transparent; }
.tv-chip.red .live-dot { background: #fff; }
.tv-bar { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; color: #e9eaee; }
.tv-progress { flex: 1; height: 3px; background: rgba(255,255,255,.22); position: relative; overflow: hidden; }
.tv-progress i { position: absolute; inset: 0 auto 0 0; width: 74%; background: var(--accent); animation: tvProg 30s linear infinite; }
@keyframes tvProg { from { width: 60%; } to { width: 96%; } }
.stage-cards { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 14% 0; }
.float-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; font-weight: 700; font-size: .9rem; color: #fff; background: rgba(19,21,25,.92); border: 1px solid var(--line-2); border-radius: var(--r); backdrop-filter: blur(10px); }
.float-card small { display: block; color: var(--muted); font-weight: 600; font-size: .76rem; }
.float-card .ic { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
.channel-strip { display: flex; gap: 10px; margin-top: 24px; justify-content: center; }
.ch-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--text-2); }
.ch-pill .icon { color: var(--accent); width: 16px; height: 16px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stats-strip > div { padding: var(--s3) var(--s2); text-align: center; display: grid; justify-items: center; gap: 4px; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip .icon { color: var(--accent); margin-bottom: 6px; }
.stats-strip b { display: block; font-family: var(--font-d); font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; }
.stats-strip span { color: var(--muted); font-weight: 600; font-size: .88rem; }

.seg { display: inline-flex; padding: 4px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; height: 40px; padding: 0 18px; border-radius: var(--r-xs); cursor: pointer; transition: color .2s, background .2s; display: inline-flex; gap: 8px; align-items: center; }
.seg button:hover { color: #fff; }
.seg button.is-active { background: var(--accent); color: var(--accent-ink); }
.pricing-top { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: var(--s2); flex-wrap: wrap; position: relative; }
.car-nav { display: flex; gap: 8px; position: absolute; right: 0; }
.car-nav button { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; }
.car-nav button:hover { background: var(--surface-3); }
.car-nav button:disabled { opacity: .3; cursor: default; }
.car { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px 0 24px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.car-track.is-drag * { pointer-events: none; }
.car-dots { display: flex; gap: 6px; justify-content: center; }
.car-dots i { width: 8px; height: 4px; border-radius: 2px; background: var(--line-2); transition: width .3s, background .3s; }
.car-dots i.on { width: 24px; background: var(--accent); }
.price-card { position: relative; padding: var(--s3); display: flex; flex-direction: column; scroll-snap-align: start; transition: transform .3s var(--ease), border-color .3s; }
.price-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.price-card.is-featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,194,26,.08), var(--surface) 40%); }
.price-ribbon { position: absolute; top: -12px; left: var(--s3); background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; height: 24px; padding: 0 10px; border-radius: var(--r-xs); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.price-ribbon .icon { width: 12px; height: 12px; }
.price-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 48px; }
.price-name { font-family: var(--font-d); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; color: #fff; line-height: 1; }
.price-type { color: var(--muted); font-size: .82rem; font-weight: 600; margin-top: 4px; }
.price-save { font-size: .72rem; font-weight: 800; color: #4ade80; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); height: 22px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: var(--r-xs); white-space: nowrap; }
.price-amount { margin: var(--s2) 0 0; display: flex; align-items: baseline; gap: 6px; }
.price-amount b { font-family: var(--font-d); font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; }
.price-amount span { color: var(--muted); font-weight: 600; }
.price-old { color: var(--dim); text-decoration: line-through; font-size: .9rem; height: 22px; }
.price-monthly { font-size: .86rem; color: var(--muted); height: 22px; }
.price-monthly b { color: var(--accent); }
.price-desc { color: var(--text-2); font-size: .92rem; margin: 12px 0 var(--s2); min-height: 3em; }
.price-feats { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; font-size: .9rem; color: var(--text-2); }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; }
.price-feats li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: var(--r-xs); background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc21a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.price-feats-title { font-family: var(--font-d); font-size: .8rem; letter-spacing: .16em; color: var(--muted); font-weight: 700; margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); }
.price-card .price-body { flex: 1; display: flex; flex-direction: column; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { padding: var(--s3); transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature-ic { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: var(--s2); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }

.vod-tabs { display: flex; justify-content: center; margin-bottom: var(--s3); }
.vod-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 16px) / 7); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 18px; scrollbar-width: none; }
.vod-row::-webkit-scrollbar { display: none; }
.vod-card { scroll-snap-align: start; position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 2 / 3; background: var(--surface-2); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
.vod-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.vod-card img { width: 100%; height: 100%; object-fit: cover; }
.vod-card .vod-meta { position: absolute; inset: auto 0 0 0; padding: 32px 10px 10px; background: linear-gradient(0deg, rgba(0,0,0,.95), transparent); font-size: .84rem; font-weight: 700; line-height: 1.3; }
.vod-card .vod-rating { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); color: var(--accent); font-weight: 800; font-size: .72rem; height: 22px; padding: 0 7px; border-radius: var(--r-xs); display: inline-flex; gap: 4px; align-items: center; }
.vod-card .vod-rating .icon { width: 12px; height: 12px; }
.vod-card .vod-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.18); }

.globe-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--img-world) center / min(1400px, 120%) no-repeat; opacity: .08; pointer-events: none; }
.globe-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
.globe-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-top: var(--s3); overflow: hidden; }
.globe-stats div { padding: var(--s2); text-align: center; border-right: 1px solid var(--line); }
.globe-stats div:last-child { border-right: 0; }
.globe-stats b { display: block; font-family: var(--font-d); font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1.1; }
.globe-stats span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); display: grid; gap: 12px; }
.marquee-row { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.country { display: flex; align-items: center; gap: 12px; width: 220px; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; transition: border-color .3s; }
.country:hover { border-color: var(--accent-line); }
.country img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--line-2); flex: none; }
.country div { min-width: 0; }
.country b { display: block; font-size: .94rem; line-height: 1.2; }
.country small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cat-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--s2); }
.cat-chip { display: inline-flex; gap: 8px; align-items: center; justify-content: center; height: 40px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--text-2); }
.cat-chip .icon { width: 16px; height: 16px; color: var(--accent); }

.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.device { padding: var(--s3); display: flex; flex-direction: column; gap: 12px; color: inherit; transition: border-color .3s, transform .3s var(--ease); }
.device:hover { transform: translateY(-4px); border-color: var(--accent-line); color: inherit; }
.device-ic { width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.device-ic .icon { width: 26px; height: 26px; }
.device h3 { margin: 0; font-size: 1.05rem; }
.device p { margin: 0; color: var(--muted); font-size: .86rem; flex: 1; }
.device .go { display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; font-weight: 700; color: var(--accent); }
.device .go .icon { width: 14px; height: 14px; transition: transform .3s; }
.device:hover .go .icon { transform: translateX(4px); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.review p { margin: 0; color: var(--text-2); flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author small { display: block; color: var(--muted); font-size: .82rem; }

.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; font-size: inherit; }
.faq-q button { width: 100%; display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: var(--s2); padding: 20px 4px; background: none; border: 0; color: #fff; font: inherit; font-size: 1.06rem; font-weight: 700; text-align: left; cursor: pointer; }
.faq-q button:hover .faq-t { color: var(--accent); }
.faq-n { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: var(--dim); letter-spacing: .06em; }
.faq-t { transition: color .2s; }
.faq-ic { position: relative; width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line-2); transition: background .25s, border-color .25s; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text-2); border-radius: 1px; transition: transform .3s var(--ease), background .25s; }
.faq-ic::after { transform: rotate(90deg); }
.faq-item.is-open .faq-ic { background: var(--accent); border-color: var(--accent); }
.faq-item.is-open .faq-ic::before, .faq-item.is-open .faq-ic::after { background: var(--accent-ink); }
.faq-item.is-open .faq-ic::after { transform: rotate(0deg); }
.faq-item.is-open .faq-n { color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 48px 22px calc(40px + var(--s2) + 4px); color: var(--text-2); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: center; padding: var(--s5); border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(10,11,13,.96) 35%, rgba(10,11,13,.55)), var(--img-cta) right center / cover; border: 1px solid var(--line-2); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0; }
.cta-band .flex { justify-content: flex-end !important; }

.site-footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s3); margin-top: var(--s5); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s5); }
.footer-brand p { color: var(--muted); margin: var(--s2) 0; max-width: 380px; font-size: .94rem; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer h4 { font-family: var(--font-d); font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:not(.btn):not(.brand) { color: var(--muted); font-weight: 500; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--accent); }
.footer-bottom { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: .86rem; }
.bottom-nav { display: none; }

.page-hero { padding: var(--s6) 0 var(--s4); text-align: center; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0 auto; font-size: 1.06rem; }
.crumbs { display: flex; gap: 8px; justify-content: center; font-size: .86rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: #fff; }
.prose { max-width: 820px; margin: 0 auto; font-size: 1.04rem; color: var(--text-2); }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card { padding: var(--s3); display: flex; flex-direction: column; gap: 10px; color: inherit; transition: border-color .3s, transform .3s var(--ease); }
.blog-card:hover { transform: translateY(-3px); border-color: var(--accent-line); color: inherit; }
.blog-card h3 { margin: 0; }
.blog-card p { color: var(--muted); margin: 0; flex: 1; font-size: .94rem; }

.form-grid { display: grid; gap: var(--s2); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s2); }
.field { display: grid; gap: 8px; align-content: start; }
.field > span { font-size: .84rem; font-weight: 700; color: var(--text-2); }
.field small { color: var(--muted); font-size: .8rem; }
input, select, textarea {
    width: 100%; font: inherit; font-size: .96rem; color: var(--text);
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
    padding: 0 14px; height: 46px; transition: border-color .2s, box-shadow .2s; outline: none;
}
textarea { height: auto; padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: #3b414a; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,194,26,.14); }
input::placeholder, textarea::placeholder { color: var(--dim); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b919e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
select option { background: var(--surface-2); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); padding: 0; }
input[type=color] { padding: 4px; cursor: pointer; }
input[type=file] { padding: 10px; height: auto; }
.input-group { position: relative; display: flex; }
.input-group input { padding-right: 48px; }
.input-group .ig-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: var(--r-xs); }
.input-group .ig-btn:hover { color: #fff; background: var(--surface-3); }
.input-ic { position: relative; }
.input-ic > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .2s; }
.input-ic input { padding-left: 42px; }
.input-ic:focus-within > .icon { color: var(--accent); }
.otp-input { text-align: center; letter-spacing: .5em; font-size: 1.4rem; font-weight: 800; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .sw { width: 40px; height: 22px; border-radius: 22px; background: #2c3037; position: relative; transition: background .25s; flex: none; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .sw { background: var(--success); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:disabled + .sw { opacity: .4; cursor: not-allowed; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 3px; background: var(--line-2); transition: background .3s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #a3e635; }
.pw-meter[data-s="4"] i { background: var(--success); }
.alert { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: .93rem; border: 1px solid; margin-bottom: 14px; }
.alert-danger { color: #fecaca; background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); }
.alert-success { color: #bbf7d0; background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.3); }
.alert-warning { color: #fde68a; background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); }
.alert-info { color: #dbe4ff; background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.28); }
.info-list { margin: 0; padding-left: 18px; color: var(--text-2); font-size: .92rem; display: grid; gap: 8px; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 320px; }
.swatch { position: relative; aspect-ratio: 1; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch i { position: absolute; inset: 0; border-radius: var(--r-sm); background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); transition: transform .15s; }
.swatch input:checked + i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.swatch:hover i { transform: scale(1.06); }

.auth-body { min-height: 100vh; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; padding: var(--s5); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); background: linear-gradient(180deg, rgba(10,11,13,.55), rgba(10,11,13,.96) 70%), var(--img-cta) center / cover; border-right: 1px solid var(--line); }
.auth-aside h2 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); max-width: 520px; }
.auth-aside .lead { color: var(--text-2); max-width: 460px; }
.auth-benefits { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.auth-benefits li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: .92rem; color: var(--text-2); padding: 12px; background: rgba(19,21,25,.8); border: 1px solid var(--line); border-radius: var(--r); animation: fadeUp .5s var(--ease-out) both; }
.auth-benefits li:nth-child(2) { animation-delay: .06s; } .auth-benefits li:nth-child(3) { animation-delay: .12s; } .auth-benefits li:nth-child(4) { animation-delay: .18s; }
.auth-benefits .ic, .ic-solid { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); flex: none; }
.ic-solid { background: var(--accent); color: var(--accent-ink); border: 0; }
.auth-quote { padding: 14px 16px; max-width: 460px; background: rgba(19,21,25,.85); }
.auth-quote p { margin: 0 0 4px; color: var(--text-2); font-size: .94rem; }
.auth-main { display: grid; place-items: center; padding: var(--s5) var(--s3); position: relative; }
.auth-card { width: 100%; max-width: 420px; animation: fadeUp .5s var(--ease-out) both; }
.auth-card .brand { margin-bottom: var(--s3); }
.auth-split .auth-card .auth-brand { display: none; }
.auth-title { font-size: 2.6rem; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: var(--s3); }
.auth-foot { margin-top: var(--s3); color: var(--muted); font-size: .94rem; text-align: center; }
.auth-back { position: absolute; top: var(--s3); right: var(--s3); }
.auth-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 6px 0; }
.auth-sep::before, .auth-sep::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: .86rem; }
.check-list .is-ok { color: #4ade80; } .check-list .is-bad { color: #f87171; }
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px 16px 120px; }
.auth-wrap .auth-card { padding: 36px; }

.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.glass .table-wrap, .card .table-wrap { background: transparent; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.actions { text-align: right; white-space: nowrap; width: 1%; }
.table td.actions > * { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.table td.actions > form { margin: 0 0 0 6px; }
.empty { text-align: center; padding: var(--s5) var(--s3); color: var(--muted); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .5; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: var(--s3); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: .9rem; }
.pagination a:hover { border-color: var(--line-2); color: #fff; }
.pagination .is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.dash-body { background: var(--bg); }
.dash { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.dash-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: var(--s3) var(--s2); border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 2px; z-index: 40; }
.dash-side .brand { padding: 0 10px var(--s3); }
.dash-side .brand-text b { font-size: 1.45rem; }
.side-label { font-family: var(--font-d); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: var(--s2) 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; font-size: .93rem; transition: background .15s, color .15s; position: relative; }
.side-link .icon { width: 18px; height: 18px; color: var(--muted); }
.side-link:hover { background: var(--surface-2); color: #fff; }
.side-link.is-active { background: var(--surface-3); color: #fff; }
.side-link.is-active .icon { color: var(--accent); }
.side-link.is-active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 2px 2px 0; background: var(--accent); }
.side-link .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.side-link .count:empty, .side-link .count[data-n="0"] { display: none; }
.side-back { margin-top: var(--s2); border-top: 1px solid var(--line); border-radius: 0; padding-top: 0; }
.side-user { margin-top: auto; padding: 12px; display: flex; gap: 12px; align-items: center; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.side-user .av-wrap .status { border-color: var(--surface); }
.side-user b { display: block; font-size: .92rem; line-height: 1.3; }
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 var(--s4); border-bottom: 1px solid var(--line); background: rgba(10,11,13,.9); backdrop-filter: blur(12px); }
.dash-top h1 { font-family: var(--font-d); font-size: 1.5rem; margin: 0; text-transform: none; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-top .flex { margin-left: auto; }
.dash-content { padding: var(--s4); flex: 1; animation: fadeIn .3s var(--ease-out) both; width: 100%; max-width: 1480px; }
.dash-toggle { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: var(--s3); }
.stat { padding: 20px; display: flex; gap: 16px; align-items: center; transition: border-color .3s; }
.stat:hover { border-color: var(--line-2); }
.stat-ic { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.stat-ic.green { background: rgba(34,197,94,.12); color: #4ade80; }
.stat-ic.amber { background: rgba(245,158,11,.12); color: #fbbf24; }
.stat-ic.rose { background: rgba(239,68,68,.12); color: #f87171; }
.stat b { display: block; font-family: var(--font-d); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat span { color: var(--muted); font-size: .86rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.grid-side { display: grid; grid-template-columns: 1fr 360px; gap: var(--s3); align-items: start; }
.grid-side-l { grid-template-columns: 380px 1fr; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); }
.stack { display: grid; gap: var(--s3); align-content: start; }
.welcome-card { background: linear-gradient(90deg, rgba(255,194,26,.09), transparent 60%), var(--surface); }

.sub-card { padding: 0; overflow: hidden; }
.sub-head { padding: var(--s3); display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: linear-gradient(90deg, rgba(255,194,26,.08), transparent 60%); border-bottom: 1px solid var(--line); }
.sub-head h2 { margin: 0; font-size: 1.6rem; }
.sub-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); }
.sub-meta > div { padding: 16px var(--s3); background: var(--surface); }
.sub-meta small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.sub-meta b { font-size: 1.1rem; }
.countdown { font-variant-numeric: tabular-nums; }
.sub-body { padding: var(--s3); display: grid; gap: 12px; }
.copy-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.copy-row > span { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.copy-row code { background: none; padding: 0; color: #ffe08a; font-size: .9rem; overflow-wrap: anywhere; }
.copy-row .btns { display: flex; gap: 6px; }
.qr-box { background: #fff; padding: 10px; border-radius: var(--r-sm); width: max-content; }
.lock-screen { max-width: 560px; margin: 40px auto; text-align: center; padding: var(--s5) var(--s4); }
.lock-screen .lock-ic { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: var(--r); display: grid; place-items: center; background: rgba(239,68,68,.1); color: #f87171; }

.roles-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--s3); align-items: start; }
.role-list { padding: 8px; display: grid; gap: 2px; }
.role-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-weight: 700; transition: background .15s; border: 1px solid transparent; }
.role-item:hover { background: var(--surface-2); }
.role-item.is-active { background: var(--surface-3); border-color: var(--line-2); }
.role-item .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.role-item .handle { margin-left: auto; color: var(--muted); cursor: grab; opacity: .6; }
.role-item.is-locked .handle { visibility: hidden; }
.role-item.is-dragging { opacity: .4; }
.role-item.drag-over { border-color: var(--accent); border-style: dashed; }
.role-item small { color: var(--muted); font-weight: 600; font-size: .76rem; }
.perm-group { margin-bottom: var(--s3); }
.perm-group h4 { font-family: var(--font-d); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.perm-row b { display: block; font-size: .94rem; }
.perm-row small { color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); animation: fadeIn .2s; }
.modal-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; padding: var(--s3); animation: popIn .25s var(--ease-out); background: var(--surface-2); }
.modal-box.lg { max-width: 760px; }
.modal-close { position: absolute; right: 14px; top: 14px; }
.modal-box h3 { margin-bottom: 18px; font-size: 1.2rem; padding-right: 40px; }
.toasts { position: fixed; z-index: 300; top: 16px; right: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; font-weight: 600; animation: slideIn .35s var(--ease-out); }
.toast.success { border-left-color: var(--success); } .toast.error { border-left-color: var(--danger); } .toast.warning { border-left-color: var(--warning); }
.toast.is-leaving { animation: slideOut .3s var(--ease) forwards; }
.cookie { position: fixed; z-index: 120; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); padding: 18px; animation: fadeUp .4s var(--ease-out); background: var(--surface-2); }
.cookie .flex { margin-top: 14px; }
.cookie .flex .btn { flex: 1; }
.cookie b { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.cookie b .icon { color: var(--accent); }
.cookie p { color: var(--muted); font-size: .88rem; margin: 0; }

.chat-fab { position: fixed; z-index: 110; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: var(--r); border: 0; cursor: pointer; color: var(--accent-ink); display: grid; place-items: center; background: var(--accent); box-shadow: 0 12px 32px -8px var(--accent-glow); transition: transform .25s var(--ease); }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .icon { width: 24px; height: 24px; }
.chat-fab .chat-badge { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--danger); color: #fff; font-size: .74rem; font-weight: 800; display: none; place-items: center; padding: 0 6px; border: 2px solid var(--bg); }
.chat-fab .chat-badge.show { display: grid; }
.chat-fab .online-dot { position: absolute; bottom: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--success); border: 3px solid var(--bg); display: none; }
.chat-fab.staff-online .online-dot { display: block; }
.chat-panel { position: fixed; z-index: 111; right: 20px; bottom: 88px; width: 380px; height: min(600px, calc(100vh - 120px)); display: none; flex-direction: column; overflow: hidden; padding: 0; background: var(--surface); animation: popIn .25s var(--ease-out); transform-origin: bottom right; }
.chat-panel.is-open { display: flex; }
.chat-head { padding: 16px 18px; display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chat-head b { display: block; line-height: 1.2; }
.chat-head small { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.chat-head small.on::before { background: #4ade80; }
.chat-head .btn-icon { margin-left: auto; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: var(--r); font-size: .93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: fadeUp .2s var(--ease-out); }
.msg time { display: block; font-size: .7rem; opacity: .6; margin-top: 4px; }
.msg.me { align-self: flex-end; background: var(--accent); border-bottom-right-radius: 3px; color: var(--accent-ink); font-weight: 500; }
.msg.them { align-self: flex-start; background: var(--surface-3); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.msg.system { align-self: center; background: transparent; color: var(--muted); font-size: .8rem; text-align: center; padding: 4px; }
.msg .who { display: block; font-size: .72rem; font-weight: 800; opacity: .8; margin-bottom: 2px; }
.typing { align-self: flex-start; display: none; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-3); }
.typing.show { display: flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.chat-foot { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-end; }
.chat-foot textarea { min-height: 46px; max-height: 120px; resize: none; }
.chat-foot .btn { height: 46px; width: 46px; padding: 0; flex: none; }
.chat-start { padding: 20px; display: grid; gap: 14px; align-content: start; flex: 1; overflow-y: auto; }

.support-layout { display: grid; grid-template-columns: 320px 1fr 300px; height: calc(100vh - 64px - 64px); min-height: 520px; overflow: hidden; padding: 0; }
.support-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.support-list .tabs { padding: 12px; border-bottom: 1px solid var(--line); }
.conv-items { overflow-y: auto; flex: 1; }
.conv-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.conv-item:hover { background: var(--surface-2); }
.conv-item.is-active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.conv-item .ci-body { flex: 1; min-width: 0; }
.conv-item b { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }
.conv-item b small { color: var(--muted); font-weight: 600; font-size: .74rem; }
.conv-item p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .unread { min-width: 20px; height: 20px; border-radius: 10px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 6px; align-self: center; }
.support-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.support-chat .chat-body { background: var(--bg-2); }
.support-chat-head { padding: 12px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.support-info { border-left: 1px solid var(--line); padding: 20px; overflow-y: auto; }
.support-info dl { display: grid; gap: 4px; margin: 0; font-size: .9rem; }
.support-info dt { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }
.support-info dd { margin: 0; overflow-wrap: anywhere; }
.canned { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; }
.canned button { font-size: .78rem; height: 28px; padding: 0 10px; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; font-family: inherit; }
.canned button:hover { border-color: var(--accent); color: #fff; }

.webtv-body { overflow: hidden; }
.webtv { display: grid; grid-template-columns: 260px 360px 1fr; height: 100vh; }
.wt-col { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-2); }
.wt-head { padding: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.wt-head .brand-text b { font-size: 1.35rem; }
.wt-scroll { overflow-y: auto; flex: 1; padding: 8px; }
.wt-cat { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--r-sm); background: transparent; border: 0; color: var(--text-2); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.wt-cat:hover { background: var(--surface-2); color: #fff; }
.wt-cat.is-active { background: var(--accent-soft); color: #fff; }
.wt-cat .icon { color: var(--accent); width: 15px; height: 15px; }
.wt-cat small { color: var(--muted); }
.wt-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 10px; border-radius: var(--r-sm); background: transparent; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wt-item:hover { background: var(--surface-2); }
.wt-item.is-active { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.wt-item .logo { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--surface-3); flex: none; object-fit: contain; padding: 4px; }
.wt-item .logo.poster { width: 42px; height: 60px; object-fit: cover; padding: 0; }
.wt-item b { display: block; font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-item small { color: var(--muted); font-size: .78rem; display: inline-flex; gap: 4px; align-items: center; }
.wt-item small .icon { width: 12px; height: 12px; color: var(--accent); }
.wt-item .meta { min-width: 0; flex: 1; }
.wt-fav { background: none; border: 0; color: #3a3f47; cursor: pointer; padding: 6px; }
.wt-fav .icon { width: 17px; height: 17px; }
.wt-fav.on { color: var(--accent); }
.wt-player { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.wt-video { position: relative; background: #000; aspect-ratio: 16/9; max-height: 70vh; width: 100%; }
.wt-video video { width: 100%; height: 100%; background: #000; }
.wt-video .wt-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; pointer-events: none; }
.wt-video .wt-overlay .icon { margin: 0 auto; }
.wt-info { padding: 20px 24px; overflow-y: auto; flex: 1; }
.wt-info h2 { font-size: 1.6rem; margin-bottom: 6px; }
.epg-list { display: grid; gap: 8px; margin-top: 14px; }
.epg-item { padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.epg-item.now { border-color: var(--accent-line); background: var(--accent-soft); }
.epg-item time { color: var(--accent); font-weight: 700; margin-right: 8px; }
.wt-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.wt-tabs button { height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.wt-tabs button.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.episode-grid { display: grid; gap: 8px; margin-top: 14px; }
.wt-mobile-tabs { display: none; }

.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-3) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
.sk-line { height: 46px; margin-bottom: 8px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--text-2); font-weight: 700; font-size: .88rem; background: var(--surface); font-family: inherit; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: #fff; border-color: var(--line-2); }
.tabs .is-active { background: var(--accent-soft); border-color: var(--accent-line); color: #fff; }
.tabs .is-active .icon { color: var(--accent); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 0; font-size: .93rem; margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { overflow-wrap: anywhere; }
.order-steps { display: grid; gap: 14px; counter-reset: s; padding: 0; margin: 0; }
.order-steps li { list-style: none; padding-left: 44px; position: relative; color: var(--text-2); min-height: 30px; }
.order-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
pre.pay-info { white-space: pre-wrap; font-family: inherit; margin: 0; padding: 16px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px dashed var(--line-2); }
.thumb-list { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-list figure { margin: 0; position: relative; width: 150px; aspect-ratio: 16/10; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.thumb-list img { width: 100%; height: 100%; object-fit: cover; }
.thumb-list label { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 6px; align-items: center; font-size: .74rem; background: rgba(0,0,0,.75); padding: 3px 8px; border-radius: var(--r-xs); cursor: pointer; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-list li:first-child { padding-top: 0; }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list a { color: #fff; font-weight: 700; }
.mini-list a:hover { color: var(--accent); }
.mini-list small { color: var(--muted); font-size: .82rem; }

.cm { display: grid; grid-template-columns: 248px minmax(0, 1fr) 248px; gap: var(--s3); align-items: start; padding-top: var(--s4); padding-bottom: var(--s5); }
.cm-wide { grid-template-columns: 248px minmax(0, 1fr); }
.cm-side, .cm-members { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; scrollbar-width: thin; }
.cm-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.cm-side-head b { font-family: var(--font-d); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.cm-channels { padding: 8px; display: grid; gap: 1px; flex: 1; }
.cm-grp { font-family: var(--font-d); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 14px 8px 6px; }
.cm-ch { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; font-size: .93rem; }
.cm-ch span:not(.cm-hash) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-ch .cm-hash { width: 16px; text-align: center; font-size: 1.15rem; font-weight: 500; color: var(--dim); }
.cm-ch small { font-size: .72rem; color: var(--dim); font-weight: 700; }
.cm-ch:hover { background: var(--surface-2); color: var(--text); }
.cm-ch.is-active { background: var(--surface-3); color: #fff; }
.cm-ch.is-active .cm-hash { color: var(--accent); }
.cm-me { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); }
.cm-me:hover { color: #fff; }
.cm-me-name { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.cm-me-name b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.cm-me-name small { font-size: .74rem; color: var(--muted); }
.cm-me .status, .cm-member .status { border-color: var(--bg-2); }
.cm-member .status { border-color: var(--surface); }
.cm-guest { padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cm-guest-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cm-members { padding: 0 8px 12px; }
.cm-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -8px 4px; border-bottom: 1px solid var(--line); }
.cm-stats div { padding: 12px 4px; text-align: center; border-right: 1px solid var(--line); }
.cm-stats div:last-child { border-right: 0; }
.cm-stats b { display: block; font-family: var(--font-d); font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.cm-stats span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.cm-member { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px; border-radius: var(--r-sm); }
.cm-member:hover { background: var(--surface-2); }
.cm-member b { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-members > p { padding: 0 8px; }
.cm-newest { margin: 12px 0 0; padding-top: 12px !important; border-top: 1px solid var(--line); }
.cm-main { min-width: 0; display: grid; gap: var(--s2); align-content: start; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); flex-wrap: wrap; }
.cm-head-title { display: flex; align-items: center; gap: var(--s2); min-width: 0; flex: 1; }
.cm-head-ic { width: 48px; height: 48px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--font-d); font-size: 1.7rem; font-weight: 700; }
.cm-head h1 { font-family: var(--font); text-transform: none; font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.cm-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.cm-sort { justify-content: flex-start; }
.cm-search { width: 260px; }
.mod-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mod-tools form { margin: 0; }
.mod-move select { height: 30px; font-size: .8rem; padding: 0 30px 0 10px; width: auto; background-position: right 8px center; background-size: 14px; }

.thread-list { overflow: hidden; }
.thread-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 84px 104px 168px; gap: var(--s2); align-items: center; padding: 14px var(--s3); border-bottom: 1px solid var(--line); transition: background .15s; }
.thread-row:last-child { border-bottom: 0; }
.thread-row:not(.thread-row-head):hover { background: var(--surface-2); }
.thread-row-head { padding-top: 10px; padding-bottom: 10px; background: var(--bg-2); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.thread-row-head span:first-child { grid-column: 1 / 3; }
.thread-row-head span:nth-child(2), .thread-row-head span:nth-child(3) { text-align: center; }
.thread-row.is-pinned { background: linear-gradient(90deg, rgba(255,194,26,.05), transparent 50%); box-shadow: inset 3px 0 0 var(--accent); }
.thread-av .avatar { width: 44px; height: 44px; }
.thread-main h3 { margin: 0 0 4px; font-size: 1.02rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thread-main h3 a { color: #fff; }
.thread-main h3 a:hover { color: var(--accent); }
.thread-meta { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.thread-meta a { font-weight: 600; }
.thread-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.thread-cat { color: var(--muted); font-weight: 600; }
.thread-cat:hover { color: var(--accent); }
.thread-num { text-align: center; display: grid; line-height: 1.15; }
.thread-num b { font-family: var(--font-d); font-size: 1.3rem; font-weight: 700; }
.thread-num span { font-size: .72rem; color: var(--muted); }
.thread-last { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thread-last div { min-width: 0; display: grid; line-height: 1.25; }
.thread-last b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-last small { font-size: .76rem; color: var(--muted); }

.posts { display: grid; gap: 12px; }
.post { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px; gap: var(--s2); padding: var(--s2) var(--s3); scroll-margin-top: calc(var(--header-h) + 16px); }
.post:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,194,26,.12); }
.post.is-first { border-left: 3px solid var(--accent); }
.post-av .status { border-color: var(--surface); }
.post-body { min-width: 0; }
.post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.post-name { font-weight: 700; font-size: 1rem; }
.post-name:hover { text-decoration: underline; }
.post-head time { color: var(--muted); font-size: .8rem; }
.post-link { margin-left: auto; color: var(--dim); font-size: .78rem; font-weight: 700; }
.post-text { color: var(--text-2); overflow-wrap: anywhere; line-height: 1.65; }
.post-text blockquote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--line-2); color: var(--muted); background: var(--bg-2); border-radius: 0 var(--r-xs) var(--r-xs) 0; }
.post-text .mention { color: var(--accent); background: var(--accent-soft); padding: 0 4px; border-radius: var(--r-xs); font-weight: 600; }
.post-text a:not(.mention) { text-decoration: underline; text-underline-offset: 2px; }
.post-edit { display: grid; gap: 8px; margin-top: 8px; }
.post-actions { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.post-actions form { margin: 0; }
.pa-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pa-btn:hover { background: var(--surface-3); color: #fff; }
.pa-btn.is-on { color: #fb7185; border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.08); }
.pa-btn.is-on .icon { fill: currentColor; }
.pa-btn.is-static { cursor: default; }
.pa-btn.is-static:hover { background: transparent; color: var(--muted); }
.pa-danger:hover { color: #f87171; }
.post-side { display: grid; gap: 6px; align-content: start; padding-left: var(--s2); border-left: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.post-side span { display: flex; align-items: center; gap: 6px; }

.composer { display: grid; grid-template-columns: 44px 1fr; gap: var(--s2); padding: var(--s2) var(--s3); scroll-margin-top: calc(var(--header-h) + 16px); }
.composer-main { display: grid; gap: 10px; }
.composer textarea { min-height: 120px; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.composer-bar code { font-size: .8em; }
.composer-guest { display: block; text-align: center; }

.cm-grp-lg { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding: var(--s2) 0 0; margin: 0; }
.cm-grp-lg i { width: 10px; height: 10px; border-radius: 50%; }
.cm-grp-lg span { color: var(--dim); }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.member-card { display: flex; align-items: center; gap: 12px; padding: 14px; color: inherit; transition: border-color .2s; }
.member-card:hover { border-color: var(--line-2); color: inherit; }
.member-card .status { border-color: var(--surface); }
.member-card div { min-width: 0; display: grid; line-height: 1.3; }
.member-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card small { color: var(--muted); font-size: .8rem; }

.profile-page { padding-top: var(--s4); padding-bottom: var(--s5); max-width: 1080px; }
.profile-card { overflow: hidden; }
.profile-banner { --bn: #ffc21a; height: 180px; background: linear-gradient(120deg, var(--bn), color-mix(in srgb, var(--bn) 35%, #0a0b0d)); position: relative; }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); padding: 0 var(--s4); margin-top: -64px; position: relative; flex-wrap: wrap; }
.profile-top .av-wrap-xl .avatar { width: 128px; height: 128px; font-size: 3rem; box-shadow: 0 0 0 6px var(--surface); }
.profile-top .av-wrap-xl .status { border-color: var(--surface); }
.profile-actions { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.profile-info { padding: var(--s2) var(--s4) 0; }
.profile-info h1 { font-family: var(--font); text-transform: none; font-weight: 700; font-size: 2.2rem; margin: 0 0 10px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.profile-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--s3); padding: var(--s3) var(--s4) var(--s4); margin-top: var(--s3); border-top: 1px solid var(--line); }
.profile-about p { color: var(--text-2); }
.profile-facts { display: flex; gap: var(--s3); flex-wrap: wrap; margin: 0; }
.profile-facts div { display: grid; gap: 2px; }
.profile-facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.profile-facts dd { margin: 0; font-weight: 700; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); align-self: start; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.profile-stats div { padding: var(--s2) 8px; text-align: center; border-right: 1px solid var(--line); }
.profile-stats div:last-child { border-right: 0; }
.profile-stats b { display: block; font-family: var(--font-d); font-size: 2rem; font-weight: 800; line-height: 1; }
.profile-stats span { color: var(--muted); font-size: .8rem; font-weight: 600; }

.profile-editor { overflow: hidden; }
.pe-banner { --bn: #ffc21a; height: 96px; background: linear-gradient(120deg, var(--bn), color-mix(in srgb, var(--bn) 35%, #0a0b0d)); transition: background .3s; }
.pe-body { padding: 0 var(--s3) var(--s3); display: grid; gap: var(--s3); }
.pe-head { display: flex; align-items: flex-end; gap: var(--s2); margin-top: -44px; flex-wrap: wrap; }
.pe-avatar { position: relative; cursor: pointer; flex: none; }
.pe-avatar .avatar { width: 96px; height: 96px; font-size: 2.2rem; box-shadow: 0 0 0 5px var(--surface); }
.pe-avatar-edit { position: absolute; right: 2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--surface); transition: transform .2s; }
.pe-avatar:hover .pe-avatar-edit { transform: scale(1.1); }
.pe-id { display: grid; gap: 6px; padding-bottom: 6px; flex: 1; min-width: 0; justify-items: start; }
.pe-id b { font-size: 1.3rem; }
.pe-view { margin-bottom: 6px; }
.pe-actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s2); border-top: 1px solid var(--line); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(6px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } .preloader { display: none; } }
@media (max-width: 640px) { .pl-logo img { width: 52px; height: 52px; } .pl-word { font-size: 2.4rem; } }

@media (max-width: 1280px) {
    .cm { grid-template-columns: 232px minmax(0, 1fr); }
    .cm-members { display: none; }
    .thread-row { grid-template-columns: 44px minmax(0, 1fr) 72px 96px 150px; }
    .post { grid-template-columns: 44px minmax(0, 1fr); }
    .post-side { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1200px) {
    .support-layout { grid-template-columns: 300px 1fr; }
    .support-info { display: none; }
    .webtv { grid-template-columns: 220px 300px 1fr; }
    .device-grid { grid-template-columns: repeat(3, 1fr); }
    .car-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
    .vod-row { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
    .nav a { padding: 10px 10px; }
    .nav a::after { left: 10px; right: 10px; }
}
@media (max-width: 1080px) {
    .header-inner { grid-template-columns: auto 1fr; }
    .nav, .header-actions .hide-m { display: none; }
    .hero-grid, .split, .globe-wrap { grid-template-columns: 1fr; }
    .hero { padding-top: var(--s4); }
    .hero-grid > div:first-child { text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero .pill { margin: 0 auto; }
    .stage { max-width: 760px; margin: 0 auto; width: 100%; }
    .globe-wrap > .reveal:first-child { text-align: center; }
    .split > .reveal:first-child { text-align: center; }
    .split .flex { justify-content: center; }
    .review-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
    .footer-brand p { margin-left: auto; margin-right: auto; }
    .footer-social { justify-content: center; }
    .footer-col { text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .cta-band { grid-template-columns: 1fr; text-align: center; background: linear-gradient(180deg, rgba(10,11,13,.92), rgba(10,11,13,.8)), var(--img-cta) center / cover; }
    .cta-band p { margin: 0 auto; }
    .cta-band .flex { justify-content: center !important; }
    .grid-side, .grid-side-l, .roles-layout, .profile-grid { grid-template-columns: 1fr; }
    .member-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    body.has-bottom-nav { padding-bottom: 84px; }
    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(15,16,19,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: .7rem; font-weight: 700; position: relative; }
    .bottom-nav a .icon { width: 22px; height: 22px; }
    .bottom-nav a.is-active { color: #fff; }
    .bottom-nav a.is-active .icon { color: var(--accent); }
    .bottom-nav a.is-active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--accent); }
    .chat-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; width: 52px; height: 52px; }
    .chat-panel { right: 8px; left: 8px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); height: calc(100vh - 96px); }
    .cookie { bottom: calc(76px + env(safe-area-inset-bottom)); left: 16px; }
    .dash { grid-template-columns: 1fr; }
    .dash-side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-105%); transition: transform .3s var(--ease-out); }
    .dash-side.is-open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
    .dash-toggle { display: inline-flex; }
    .dash-top { padding: 0 var(--s2); }
    .dash-top h1 { font-size: 1.3rem; }
    .dash-content { padding: var(--s2) var(--s2) 100px; }
    .support-layout { grid-template-columns: 1fr; height: auto; }
    .support-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
    .support-chat { height: 70vh; }
    .copy-row { grid-template-columns: 1fr auto; }
    .copy-row > span { grid-column: 1 / -1; }
    .webtv-body { overflow: auto; }
    .webtv { grid-template-columns: 1fr; height: auto; }
    .wt-col { border-right: 0; max-height: 60vh; }
    .wt-col.wt-hide-m { display: none; }
    .wt-player { order: -1; position: sticky; top: 0; z-index: 5; }
    .wt-mobile-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; position: sticky; top: 0; background: var(--bg); z-index: 4; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-split .auth-card .auth-brand { display: inline-flex; }
    .auth-card { text-align: left; }
    .auth-main { padding: var(--s5) var(--s3); align-items: start; }
    .device-grid { grid-template-columns: repeat(2, 1fr); }
    .car-track { grid-auto-columns: calc((100% - 16px) / 2); }
    .pricing-top { justify-content: space-between; }
    .car-nav { position: static; }
    .cm, .cm-wide { grid-template-columns: minmax(0, 1fr); padding-top: var(--s2); }
    .cm-side { position: static; max-height: none; overflow: hidden; min-width: 0; }
    .cm-side-head { border-bottom: 0; padding-bottom: 0; }
    .cm-channels { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 14px 14px; }
    .cm-channels::-webkit-scrollbar { display: none; }
    .cm-channels .cm-grp { display: none; }
    .cm-ch { flex: none; border: 1px solid var(--line); background: var(--bg-2); }
    .cm-ch span:not(.cm-hash) { overflow: visible; }
    .cm-me, .cm-guest { display: none; }
    .thread-row { grid-template-columns: 40px minmax(0, 1fr) 64px; padding: 14px var(--s2); }
    .thread-row-head { display: none; }
    .thread-row .thread-num:nth-of-type(3), .thread-last { display: none; }
    .cm-side-head .btn { display: none; }
    .thread-av .avatar { width: 40px; height: 40px; }
    .table-wrap { border: 0; background: transparent; overflow: visible; }
    .table-wrap .table thead { display: none; }
    .table-wrap .table, .table-wrap .table tbody, .table-wrap .table tr, .table-wrap .table td { display: block; width: 100%; }
    .table-wrap .table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 14px; margin-bottom: 10px; }
    .table-wrap .table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); text-align: right; min-height: 40px; }
    .table-wrap .table tr td:last-child { border-bottom: 0; }
    .table-wrap .table td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; flex: none; }
    .table-wrap .table td:not([data-label])::before, .table-wrap .table td[data-label=""]::before { display: none; }
    .table-wrap .table td[data-label=""] { justify-content: flex-end; }
    .table-wrap .table td.num { text-align: right; }
    .table-wrap .table td.actions { width: 100%; white-space: normal; justify-content: flex-end; gap: 6px; }
    .table-wrap .table td.actions > * { margin-left: 0; }
    .table-wrap .table tbody tr:hover { background: var(--surface); }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { padding: 0 var(--s2); }
    .section { padding: var(--s6) 0; }
    .section-sm { padding: var(--s5) 0; }
    .section-head { margin-bottom: var(--s4); }
    h1 { font-size: 2.6rem; }
    h2 { font-size: 2.1rem; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-text b { font-size: 1.4rem; }
    .brand-text small { font-size: .56rem; letter-spacing: .22em; }
    .header-actions .btn { height: 38px; padding: 0 14px; }
    .umenu-btn { height: 40px; padding: 0 8px 0 4px; gap: 6px; }
    .hero h1 { margin: var(--s2) 0; }
    .hero-cta .btn { flex: 1 1 100%; }
    .hero-trust { grid-template-columns: repeat(3, 1fr); width: 100%; }
    .hero-trust div { padding: 0 8px; margin: 0; text-align: center; }
    .hero-trust b { font-size: 1.5rem; }
    .stage { padding-top: 24px; }
    .tv { margin: 0 10%; }
    .stage-player { bottom: 70px; height: 86%; }
    .stage-player.p1 { left: -6%; }
    .stage-player.p2 { right: -6%; }
    .stage-cards { margin: 12px 0 0; }
    .float-card { padding: 10px; font-size: .8rem; gap: 8px; }
    .float-card .ic { width: 30px; height: 30px; }
    .float-card small { font-size: .7rem; }
    .scorebug { left: 8px; top: 8px; font-size: .78rem; }
    .scorebug .lg, .scorebug .clk { display: none; }
    .tv-live { right: 8px; top: 8px; }
    .tv-live .tv-chip:not(.red) { display: none; }
    .tv-bar { left: 8px; right: 8px; bottom: 8px; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stats-strip > div:nth-child(2) { border-right: 0; }
    .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .stats-strip b { font-size: 1.8rem; }
    .seg { width: 100%; }
    .seg button { flex: 1; justify-content: center; padding: 0 8px; font-size: .88rem; }
    .pricing-top { justify-content: center; }
    .car-nav { display: none; }
    .car-track { grid-auto-columns: 86%; padding-top: 20px; }
    .vod-row { grid-auto-columns: calc((100% - 2 * 12px) / 2.6); gap: 12px; }
    .device-grid { gap: 12px; }
    .device { padding: var(--s2); align-items: center; text-align: center; }
    .device p { display: none; }
    .review-grid, .blog-grid { grid-template-columns: 1fr; }
    .cat-chips { grid-template-columns: repeat(2, 1fr); }
    .globe-stats b { font-size: 1.5rem; }
    .faq-q button { grid-template-columns: 28px 1fr 32px; gap: 12px; font-size: 1rem; padding: 18px 0; }
    .faq-a p { padding: 0 0 20px 40px; }
    .cta-band { padding: var(--s4) var(--s2); }
    .cta-band .flex .btn { flex: 1 1 100%; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s3) 8px; }
    .site-footer h4 { font-size: .82rem; letter-spacing: .1em; }
    .site-footer ul { gap: 8px; font-size: .88rem; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 6px; }
    .auth-wrap .auth-card { padding: 26px 20px; }
    .auth-title { font-size: 2.2rem; }
    .auth-back { top: 16px; right: 16px; }
    .modal-box { padding: 20px 16px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 14px; gap: 12px; flex-direction: column; align-items: flex-start; }
    .stat b { font-size: 1.6rem; }
    .kv { grid-template-columns: 1fr; }
    .kv dt { border-bottom: 0; padding-bottom: 0; font-size: .8rem; }
    .kv dd { padding-top: 2px; }
    .check-list { grid-template-columns: 1fr; }
    .cm-head { padding: var(--s2); }
    .cm-head h1 { font-size: 1.3rem; }
    .cm-head-ic { width: 40px; height: 40px; font-size: 1.4rem; }
    .cm-head > .btn, .cm-search { width: 100%; }
    .post, .composer { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; gap: 12px; }
    .post .avatar-md, .composer .avatar-md { width: 36px; height: 36px; font-size: .9rem; }
    .member-grid { grid-template-columns: 1fr; }
    .profile-banner { height: 120px; }
    .profile-top { padding: 0 var(--s2); margin-top: -52px; }
    .profile-top .av-wrap-xl .avatar { width: 104px; height: 104px; font-size: 2.4rem; }
    .profile-info { padding: var(--s2) var(--s2) 0; }
    .profile-info h1 { font-size: 1.8rem; }
    .profile-grid { padding: var(--s2); }
    .pe-body { padding: 0 var(--s2) var(--s2); }
    .swatches { max-width: none; }
    .new-thread-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 340px) {
    .brand-text small { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

.dash-welcome { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.dash-welcome b { font-size: 1.1rem; }
.dash-welcome .small { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.dash-quick { display: flex; gap: 8px; flex-wrap: wrap; }
a.stat { color: inherit; }
a.stat:hover { color: inherit; border-color: var(--accent-line); }
.bar-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; height: 200px; align-items: end; }
.bar { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 8px; justify-items: center; }
.bar i { align-self: end; width: 100%; max-width: 40px; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; transition: filter .2s; }
.bar i.is-zero { background: var(--line-2); }
.bar:hover i { filter: brightness(1.15); }
.bar small { font-size: .68rem; color: var(--muted); }
.user-list { display: grid; }
.user-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; }
.user-list a:last-child { border-bottom: 0; }
.user-list a:hover b { color: var(--accent); }
.user-list > a > div { display: grid; line-height: 1.3; }
.user-list small { color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) {
    .bar-chart { gap: 3px; height: 160px; }
    .bar small { font-size: .55rem; writing-mode: vertical-rl; transform: rotate(180deg); }
    .dash-quick { width: 100%; }
    .dash-quick .btn { flex: 1; }
}

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar input, .filter-bar select { width: auto; flex: 1 1 180px; height: 36px; font-size: .9rem; }
.filter-bar .btn { height: 36px; }
@media (max-width: 640px) { .filter-bar { width: 100%; } .filter-bar input, .filter-bar select { flex: 1 1 100%; } .filter-bar .btn { flex: 1; } }

.smtp-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s2); }
.smtp-hint { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; margin-top: -8px; }
@media (max-width: 640px) { .smtp-row { grid-template-columns: 1fr 1fr; } .smtp-host { grid-column: 1 / -1; } }

@media (max-width: 640px) {
    .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 100%; }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs a, .tabs button { flex: none; }
    .card-head { align-items: stretch; }
    .card-head > * { max-width: 100%; }
}

.glass h1, .glass h2 { font-family: var(--font); text-transform: none; font-weight: 700; letter-spacing: -.005em; }
.glass h2 { font-size: 1.3rem; }
.lock-screen h2, .sub-head h2 { font-family: var(--font-d); text-transform: uppercase; font-weight: 800; font-size: 1.8rem; }
.glass h2.card-title, .glass h2.section-label { font-size: 1.05rem; }
.glass h2.section-label { font-size: .82rem; font-family: var(--font-d); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.glass .cm-grp-lg { font-size: .9rem; }

.dash-body { font-size: 15px; }
@media (min-width: 981px) { .dash { grid-template-columns: 248px minmax(0, 1fr); } }
@media (max-width: 980px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.dash-content { max-width: none; padding: var(--s3) var(--s4) var(--s5); }
.dash-top { height: 60px; padding: 0 var(--s4); gap: 12px; }
.dash-top h1 { font-size: 1.35rem; }
.dash-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dash-top .umenu-btn { height: 40px; }
.dash-crumb { color: var(--muted); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dash-crumb .icon { width: 14px; height: 14px; }
.glass.card > .card-head { margin: calc(var(--s3) * -1) calc(var(--s3) * -1) 0; padding: 16px var(--s3); border-bottom: 1px solid var(--line); min-height: 68px; }
.card-head h3 .count, .count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2); font-size: .74rem; font-weight: 700; }
.glass.card > .filter-bar { margin: 0 calc(var(--s3) * -1); padding: 12px var(--s3); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.glass.card > .card-head + .table-wrap, .glass.card > .filter-bar + .table-wrap, .glass.card > .card-head + .empty, .glass.card > .filter-bar + .empty { margin: 0 calc(var(--s3) * -1) calc(var(--s3) * -1); border: 0; border-radius: 0 0 var(--r) var(--r); }
.glass.card > .card-head + :not(.filter-bar):not(.table-wrap):not(.empty) { margin-top: var(--s2); }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(auto-fit, minmax(160px, 220px)); gap: 8px; align-items: center; }
.filter-bar > .btn { justify-self: start; }
.filter-bar .input-ic { display: block; }
.filter-bar .input-ic input { padding-left: 38px; }
.filter-bar .input-ic > .icon { left: 12px; }
.filter-bar input, .filter-bar select { width: 100%; height: 38px; }
.filter-bar .btn { height: 38px; }
.table th { padding: 11px 16px; }
.table td { padding: 12px 16px; }
.table tbody tr:nth-child(even) { background: rgba(255,255,255,.012); }
.table td .small { margin-top: 2px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: var(--s2) 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.note .icon { color: var(--accent); margin-top: 2px; }
@media (max-width: 980px) {
    .dash-content { padding: var(--s2) var(--s2) 100px; }
    .dash-top { padding: 0 var(--s2); }
    .dash-top .hide-m { display: none; }
    .glass.card > .filter-bar + .table-wrap, .glass.card > .card-head + .table-wrap { margin: var(--s2) 0 0; border-radius: 0; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar .input-ic { grid-column: 1 / -1; }
    .filter-bar > .btn { justify-self: stretch; }
}
@media (max-width: 640px) {
    .glass.card > .card-head { margin: -24px -24px 0; padding: 14px 16px; }
    .glass.card > .filter-bar { margin: 0 -24px; padding: 12px 16px; }
    .filter-bar { width: auto; }
}

.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; gap: 12px; font-weight: 700; }
.btn-google:hover { background: #f1f3f4; color: #1f1f1f; }
.auth-card .btn-google { height: 48px; margin-bottom: 4px; }

.notice-card { border-color: rgba(245,158,11,.35); }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; }
.notice-list li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.notice-list div { display: grid; gap: 2px; min-width: 0; }
.notice-list small { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.notice-list time { color: var(--dim); font-size: .8rem; white-space: nowrap; }
.notice-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--warning); }
.notice-dot.trial_fail { background: var(--danger); }
.span-2 { grid-column: 1 / -1; }
.nowrap { white-space: nowrap; }
.vod-card .vod-meta small { display: block; color: var(--accent); font-size: .72rem; font-weight: 700; margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }
.vod-card img { transition: transform .5s var(--ease); }
.vod-card:hover img { transform: scale(1.05); }

.vod-row { grid-auto-columns: calc((100% - 7 * 16px) / 8); }
.cm-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: end; padding: var(--s4); border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(10,11,13,.97) 30%, rgba(10,11,13,.7)), var(--img-cta) right center / cover; }
.cm-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 10px; max-width: 560px; }
.cm-hero p { color: var(--text-2); max-width: 520px; margin: 0; }
.cm-hero-cta { display: flex; gap: 8px; margin-top: var(--s3); flex-wrap: wrap; }
.cm-hero-stats { display: grid; grid-template-columns: repeat(2, 120px); border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(10,11,13,.75); backdrop-filter: blur(8px); overflow: hidden; }
.cm-hero-stats div { padding: 14px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cm-hero-stats div:nth-child(2n) { border-right: 0; }
.cm-hero-stats div:nth-child(n+3) { border-bottom: 0; }
.cm-hero-stats b { display: block; font-family: var(--font-d); font-size: 1.7rem; font-weight: 800; line-height: 1; color: #fff; }
.cm-hero-stats span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px 14px; padding: var(--s2); color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.cat-card:hover { border-color: var(--accent-line); transform: translateY(-2px); color: inherit; }
.cat-ic { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.cat-body { min-width: 0; display: grid; gap: 2px; }
.cat-body b { font-size: 1.02rem; display: flex; align-items: center; gap: 6px; }
.cat-body b .icon { color: var(--muted); }
.cat-body small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-meta { display: flex; gap: 12px; font-size: .76rem; color: var(--dim); font-weight: 700; margin-top: 2px; }
.cat-last { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); min-height: 45px; }
.cat-last div { min-width: 0; display: grid; line-height: 1.25; }
.cat-last b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-last small { font-size: .76rem; color: var(--muted); }
.cm-hot { margin: 0; padding: 0 8px 0 26px; display: grid; gap: 8px; font-size: .86rem; }
.cm-hot li::marker { color: var(--accent); font-weight: 800; }
.cm-hot a { color: var(--text); font-weight: 600; display: block; line-height: 1.3; }
.cm-hot a:hover { color: var(--accent); }
.cm-hot small { color: var(--dim); font-size: .74rem; }
.cm-rules { margin: 14px 0 0; padding: 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.cm-rules b { display: flex; align-items: center; gap: 6px; color: #fff; margin-bottom: 4px; font-size: .86rem; }
.cm-rules b .icon { color: var(--accent); }
.cm-rules p { margin: 0; }
@media (max-width: 1200px) { .vod-row { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 1080px) { .cm-hero { grid-template-columns: 1fr; } .cm-hero-stats { grid-template-columns: repeat(4, 1fr); } .cm-hero-stats div { border-bottom: 0; } .cm-hero-stats div:nth-child(2n) { border-right: 1px solid var(--line); } .cm-hero-stats div:last-child { border-right: 0; } }
@media (max-width: 640px) { .vod-row { grid-auto-columns: calc((100% - 2 * 12px) / 2.6); } .cm-hero { padding: var(--s3) var(--s2); } .cm-hero-stats { grid-template-columns: repeat(2, 1fr); } .cm-hero-stats div:nth-child(2n) { border-right: 0; } .cm-hero-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .cat-grid { grid-template-columns: 1fr; } .cm-hero-cta .btn { flex: 1; } }

.captcha-field > label { font-size: .84rem; font-weight: 700; color: var(--text-2); }
.captcha { display: grid; grid-template-columns: 150px 48px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.captcha img { width: 150px; height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); user-select: none; -webkit-user-drag: none; }
.captcha-refresh { height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.captcha-refresh:hover { background: var(--surface-3); color: #fff; }
.captcha-refresh.spin .icon { animation: spin .6s linear; }
.captcha input { height: 48px; text-align: center; font-size: 1.1rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; padding: 0 8px; }
.captcha input::placeholder { letter-spacing: .06em; font-size: .9rem; font-weight: 500; text-transform: none; }
@media (max-width: 360px) { .captcha { grid-template-columns: 130px 44px minmax(0, 1fr); } .captcha img { width: 130px; height: 42px; } .captcha-refresh, .captcha input { height: 42px; } }

.trial-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; background: linear-gradient(90deg, rgba(255,194,26,.12), transparent 70%), var(--surface); border-color: var(--accent-line); }
.trial-info { display: flex; gap: var(--s2); align-items: center; }
.trial-info h3 { margin: 0 0 4px; font-size: 1.15rem; }
.trial-ic { width: 52px; height: 52px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.trial-form { display: grid; grid-template-columns: 360px auto; gap: 12px; align-items: end; }
.trial-form .btn { height: 48px; }
@media (max-width: 1180px) { .trial-card { grid-template-columns: 1fr; } .trial-form { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 640px) { .trial-form { grid-template-columns: 1fr; } .trial-form .btn { width: 100%; } }

.modal { align-items: center; justify-content: center; padding: 16px; }
.modal-box { max-height: calc(100dvh - 32px); margin: auto; }
@media (max-width: 640px) { .modal { align-items: flex-end; padding: 0; } .modal-box { max-height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; } }
input[type=color] { width: 72px; height: 46px; padding: 4px; border-radius: var(--r-sm); background: var(--bg-2); }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.roles-side { padding: 0; overflow: hidden; }
.roles-side .card-head { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); min-height: 64px; }
.roles-side .roles-hint { padding: 12px 16px 4px; margin: 0; }
.role-panel .perm-group:first-of-type { margin-top: var(--s3); }
.role-panel .role-title .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.trial-hero { display: flex; gap: var(--s3); align-items: center; background: linear-gradient(90deg, rgba(255,194,26,.14), transparent 70%), var(--surface); border-color: var(--accent-line); }
.trial-hero h2 { font-family: var(--font-d); text-transform: uppercase; font-weight: 800; font-size: 2rem; margin: 0 0 6px; }
.trial-hero .trial-ic { width: 64px; height: 64px; }
@media (max-width: 640px) { .trial-hero { flex-direction: column; align-items: flex-start; } .trial-hero h2 { font-size: 1.6rem; } }
.trial-page .grid-2 { align-items: stretch; }
.role-fields { border: 0; padding: 0; margin: var(--s3) 0 0; min-width: 0; }
.alert { display: block; }
.alert > .icon:first-child { margin: -2px 8px 0 0; }
.modal-box { background: var(--surface-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }

.pp { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; background: #000; overflow: hidden; outline: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pp.is-fs { max-height: none; aspect-ratio: auto; height: 100%; }
.pp-top, .pp-bar { position: absolute; left: 0; right: 0; z-index: 3; transition: opacity .25s, transform .25s; }
.pp-top { top: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px 30px; background: linear-gradient(180deg, rgba(0,0,0,.75), transparent); }
.pp-bar { bottom: 0; padding: 30px 12px 8px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.pp:not(.show-ui).is-playing .pp-top, .pp:not(.show-ui).is-playing .pp-bar { opacity: 0; pointer-events: none; }
.pp:not(.show-ui).is-playing { cursor: none; }
.pp-title { color: #fff; font-weight: 700; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pp-live { display: none; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); background: #e11d48; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; flex: none; }
.pp-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livePulse 1.6s infinite; }
.pp.is-live .pp-live { display: inline-flex; }
.pp-res { flex: none; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--r-xs); background: rgba(255,255,255,.14); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.pp-center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.pp-center > * { pointer-events: auto; grid-area: 1 / 1; }
.pp-msg { text-align: center; color: var(--text-2); padding: 20px; max-width: 420px; display: grid; justify-items: center; gap: 6px; }
.pp-msg .icon-lg { width: 44px; height: 44px; color: var(--accent); }
.pp-msg p { margin: 0; }
.pp-spin i { display: block; width: 48px; height: 48px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.pp-big { width: 72px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); cursor: pointer; box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: transform .2s; }
.pp-big:hover { transform: scale(1.06); }
.pp-big .icon { width: 30px; height: 30px; margin-left: 4px; }
.pp-row { display: flex; align-items: center; gap: 4px; }
.pp-btn { height: 40px; min-width: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--r-sm); background: transparent; color: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.pp-btn:hover { background: rgba(255,255,255,.12); }
.pp-btn[hidden] { display: none; }
.pp-btn .icon { width: 20px; height: 20px; }
.pp-play .pp-i-pause, .pp.is-playing .pp-play .pp-i-play { display: none; }
.pp.is-playing .pp-play .pp-i-pause { display: inline-block; }
.pp .pp-i-mute, .pp.is-muted .pp-i-vol { display: none; }
.pp.is-muted .pp-i-mute { display: inline-block; }
.pp-vol { display: flex; align-items: center; }
.pp-vol input { --v: 100%; width: 84px; height: 4px; padding: 0; border: 0; border-radius: 4px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, #fff var(--v), rgba(255,255,255,.25) var(--v)); cursor: pointer; transition: width .2s; }
.pp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.pp-vol input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.pp-time { color: #fff; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; }
.pp-grow { flex: 1; }
.pp-seek { position: relative; height: 16px; margin: 0 4px 4px; display: flex; align-items: center; }
.pp-seek[hidden] { display: none; }
.pp-seek-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; transition: height .15s; }
.pp-seek:hover .pp-seek-track { height: 6px; }
.pp-buf, .pp-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.pp-buf { background: rgba(255,255,255,.3); }
.pp-prog { background: var(--accent); }
.pp-seek input { position: absolute; inset: 0; width: 100%; height: 16px; opacity: 0; cursor: pointer; padding: 0; margin: 0; }
.pp-menu-wrap { position: relative; }
.pp-menu { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 140px; padding: 6px; border-radius: var(--r); background: rgba(19,21,25,.96); border: 1px solid var(--line-2); display: grid; gap: 2px; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.pp-menu button { height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font: inherit; font-size: .86rem; font-weight: 600; text-align: left; cursor: pointer; }
.pp-menu button:hover { background: var(--surface-3); color: #fff; }
.pp-menu button.is-on { color: var(--accent); }
.pp-menu button.is-on::after { content: " ✓"; }
.pp-keys kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; margin: 0 1px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface-2); font: inherit; font-size: .72rem; font-weight: 700; color: var(--text-2); }
.wt-player { background: var(--bg); }
.logo-ph { display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.wt-cat-n { display: inline-flex; gap: 8px; align-items: center; }
.wt-live-dot { color: #f87171 !important; }
.wt-live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 4px; }
.wt-head .input-ic { display: block; }
@media (max-width: 980px) {
    .pp { max-height: none; }
    .wt-mobile-tabs { grid-template-columns: 40px 1fr 1fr; }
    .pp-keys { display: none; }
}
@media (max-width: 640px) {
    .pp-vol input, #ppPip { display: none; }
    .pp-btn { min-width: 36px; height: 36px; padding: 0 6px; }
    .pp-top { padding: 10px 12px 24px; }
    .pp-bar { padding: 24px 6px 4px; }
    .pp-q span { display: none; }
    .pp-big { width: 60px; height: 60px; }
}

.social-auth { display: flex; justify-content: center; margin: 4px 0 2px; }
.g-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #dadce0; box-shadow: 0 6px 18px -6px rgba(0,0,0,.6); transition: transform .2s var(--ease), box-shadow .2s; }
.g-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(0,0,0,.7), 0 0 0 4px rgba(255,194,26,.18); }
.g-btn:active { transform: translateY(0) scale(.97); }

.hdr-ic { position: relative; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.hdr-ic:hover { background: var(--surface-2); color: #fff; }
.hdr-ic .icon { width: 19px; height: 19px; }
.hdr-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; font-style: normal; display: grid; place-items: center; border: 2px solid var(--bg); }
.hdr-badge[hidden] { display: none; }
.notif-menu { position: relative; }
.notif-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 24px 48px -12px rgba(0,0,0,.7); z-index: 60; animation: popIn .18s var(--ease-out); overflow: hidden; }
.notif-pop-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-pop-head a { font-size: .84rem; font-weight: 700; }
.notif-pop-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: .9rem; line-height: 1.35; }
.notif-row:hover { background: var(--surface-3); color: #fff; }
.notif-row b { color: #fff; }
.notif-row small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.notif-row.is-unread { background: rgba(255,194,26,.06); }
.notif-row.is-unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.notif-av { position: relative; flex: none; }
.notif-ic { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--surface-2); }
.notif-ic.n-like { background: #fb7185; color: #fff; } .notif-ic.n-reply, .notif-ic.n-mention { background: var(--info); color: #fff; } .notif-ic.n-follow_accept { background: var(--success); color: #fff; }
.user-list { display: grid; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; }
.user-row:last-child { border-bottom: 0; }
.user-row .grow { min-width: 0; display: grid; line-height: 1.3; color: inherit; }
.user-row .grow small { color: var(--muted); font-size: .8rem; }
a.user-row:hover b { color: var(--accent); }
.umenu-pop .danger { color: #f87171 !important; }
.umenu-pop .danger:hover { background: rgba(239,68,68,.1) !important; }
.profile-actions .umenu-pop { width: 230px; }

.profile-banner.has-img, .pe-banner.has-img { background-size: cover; background-position: center; }
.profile-banner.has-img::after { background: linear-gradient(180deg, transparent 40%, rgba(10,11,13,.55)); }
.profile-banner { height: 220px; }
.profile-info h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-counts { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.profile-counts button, .profile-counts span { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .95rem; cursor: pointer; }
.profile-counts span { cursor: default; }
.profile-counts b { color: #fff; font-weight: 800; margin-right: 4px; }
.profile-counts button:hover:not(:disabled) { color: #fff; }
.profile-counts button:disabled { cursor: not-allowed; }
.profile-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--s2); }
.soc { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); font-size: .84rem; font-weight: 600; }
.soc:hover { color: #fff; border-color: var(--accent-line); }
.soc-instagram .icon { color: #e1306c; } .soc-x .icon { color: #fff; } .soc-facebook .icon { color: #1877f2; } .soc-tiktok .icon { color: #25f4ee; } .soc-youtube .icon { color: #ff0033; } .soc-telegram .icon { color: #29a9eb; }
.private-box { text-align: center; padding: var(--s5) var(--s3); display: grid; justify-items: center; gap: 8px; }
.private-box h2 { margin: 0; font-size: 1.3rem; }
.private-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); color: var(--text-2); }
.follow-list { max-height: 60vh; overflow-y: auto; }

.pe-banner { position: relative; display: block; height: 160px; cursor: pointer; background-size: cover; background-position: center; }
.pe-banner-edit { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--r-sm); background: rgba(10,11,13,.75); color: #fff; font-size: .84rem; font-weight: 700; backdrop-filter: blur(6px); transition: background .2s; }
.pe-banner:hover .pe-banner-edit { background: rgba(10,11,13,.92); }
.pe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.pe-section { padding-top: var(--s3); border-top: 1px solid var(--line); }
.pe-section h4 { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: var(--s2); }
.pe-section h4 .icon { color: var(--accent); }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.social-field .input-ic > .icon { left: 13px; }
.privacy-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s3); align-items: start; }
.privacy-grid .switch { align-items: flex-start; }
.privacy-grid .switch > span:last-child { display: grid; gap: 2px; }
.privacy-grid .switch small { color: var(--muted); font-size: .82rem; }
.privacy-grid .switch .sw { margin-top: 2px; }

.notif-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s3); padding-top: var(--s4); padding-bottom: var(--s5); align-items: start; }
.notif-main { display: grid; gap: var(--s2); }
.notif-page .notif-row { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
.notif-page .notif-row:last-child { border-bottom: 0; }

.page-dm .site-footer { display: none; }
.dm { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--s2); height: calc(100dvh - var(--header-h) - 32px); padding-top: var(--s2); padding-bottom: var(--s2); }
.dm-side, .dm-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.dm-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dm-side-head h1 { font-size: 1.5rem; margin: 0; }
.dm-search { display: block; margin: 12px 12px 4px; }
.dm-search input { height: 40px; }
.dm-list { flex: 1; overflow-y: auto; padding: 6px; }
.dm-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); color: inherit; }
.dm-item:hover { background: var(--surface-2); color: inherit; }
.dm-item.is-active { background: var(--surface-3); }
.dm-item[hidden] { display: none; }
.dm-item .status { border-color: var(--surface); }
.dm-item-body { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.dm-item-body b { font-size: .95rem; }
.dm-item-body small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-item.is-unread .dm-item-body b, .dm-item.is-unread .dm-item-body small { color: #fff; font-weight: 700; }
.dm-item-meta { display: grid; justify-items: end; gap: 4px; font-size: .72rem; color: var(--dim); }
.dm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 800; display: grid; place-items: center; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dm-back { display: none; }
.dm-peer { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.dm-peer .status { border-color: var(--surface); }
.dm-peer span:last-child { display: grid; line-height: 1.25; }
.dm-peer small { color: var(--muted); font-size: .8rem; }
.dm-body { flex: 1; overflow-y: auto; padding: var(--s2) var(--s3); display: flex; flex-direction: column; gap: 4px; background: var(--bg-2); scroll-behavior: auto; }
.dm-lock { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); padding: 4px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.dm-hello { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; }
.dm-day { align-self: center; margin: 12px 0 6px; font-size: .74rem; color: var(--dim); font-weight: 700; }
.dm-msg { max-width: min(72%, 520px); padding: 8px 12px 6px; border-radius: 16px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; animation: fadeUp .18s var(--ease-out); }
.dm-msg.them { align-self: flex-start; background: var(--surface-3); border-bottom-left-radius: 4px; }
.dm-msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.dm-msg.me a { color: var(--accent-ink); text-decoration: underline; }
.dm-msg time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: .68rem; opacity: .65; margin-top: 2px; }
.dm-tick { width: 14px; height: 10px; display: inline-block; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 8l5 5L17 2' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 8l5 5L17 2' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat; }
.dm-msg.me.is-seen .dm-tick { width: 18px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 16'%3E%3Cpath d='M1 8l5 5L17 2M10 11l2 2L23 2' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 16'%3E%3Cpath d='M1 8l5 5L17 2M10 11l2 2L23 2' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E"); }
.dm-img { display: block; margin: 2px -6px 4px; border-radius: 12px; overflow: hidden; max-width: 320px; }
.dm-img img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.dm-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.dm-attach { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); cursor: pointer; transition: background .2s; }
.dm-attach:hover { background: var(--surface-2); color: var(--accent); }
.dm-input { flex: 1; min-width: 0; display: grid; gap: 8px; }
.dm-input textarea { min-height: 44px; max-height: 140px; height: 44px; resize: none; border-radius: 22px; padding: 11px 16px; }
.dm-preview { position: relative; width: 84px; height: 84px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.dm-preview img { width: 100%; height: 100%; object-fit: cover; }
.dm-preview button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }
.dm-send { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.dm-blocked { padding: 16px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; }
.dm-empty { margin: auto; text-align: center; padding: var(--s4); display: grid; justify-items: center; gap: 8px; max-width: 420px; }
.dm-empty h2 { margin: 0; font-family: var(--font); text-transform: none; font-size: 1.4rem; }
.dm-empty-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); color: var(--accent); margin-bottom: 6px; }
.dm-empty-ic .icon { width: 30px; height: 30px; }

@media (max-width: 1080px) {
    .notif-page { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
    .page-dm.has-bottom-nav { padding-bottom: 0; }
    .page-dm .bottom-nav, .page-dm .chat-fab { display: none; }
    .dm { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--header-h)); padding: 0; gap: 0; }
    .dm-side, .dm-main { border-radius: 0; border-left: 0; border-right: 0; }
    .dm.has-peer .dm-side { display: none; }
    .dm:not(.has-peer) .dm-main { display: none; }
    .dm-back { display: inline-flex; }
    .pe-grid, .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hdr-ic { width: 38px; height: 38px; }
    .header-actions { gap: 6px; }
    .social-grid { grid-template-columns: 1fr; }
    .profile-banner { height: 140px; }
    .profile-counts { gap: var(--s2); }
    .dm-msg { max-width: 82%; }
    .dm-body { padding: 12px; }
    .pe-banner { height: 120px; }
    .notif-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px); width: auto; }
}
.page-dm .chat-fab, .page-dm .chat-panel { display: none !important; }
.toasts { top: calc(var(--header-h) + 10px); }
.dash-body .toasts { top: 72px; }
.auth-body .toasts { top: 70px; }
.pe-head { margin-top: -30px; }
.pe-id { gap: 4px; padding-bottom: 2px; }
.pp[data-state=idle] .pp-bar, .pp[data-state=idle] .pp-top { display: none; }
.wt-head .flex.between { flex-wrap: nowrap; gap: 8px; }
.wt-head .brand { min-width: 0; }
.wt-head .brand-mark { width: 30px; height: 30px; }
.wt-head .brand-text b { font-size: 1.25rem; }
.wt-head .brand-text small { font-size: .52rem; letter-spacing: .2em; }
.wt-tabs button { font-size: .8rem; gap: 4px; }
.sub-head > * { min-width: 0; max-width: 100%; }
.sub-head .flex { flex-wrap: wrap; }
@media (max-width: 640px) { .sub-head .flex { width: 100%; } .sub-head .flex .btn { flex: 1 1 auto; } .sub-head h2 { font-size: 1.5rem; } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .18s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .26s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }
.site-header { view-transition-name: hdr; }
.bottom-nav { view-transition-name: bnav; }
.dash-side { view-transition-name: dside; }
html.is-leaving main#main, html.is-leaving .dash-content { opacity: .55; transition: opacity .25s .12s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
body.modal-lock { overflow: hidden; }

:root { --bn: 0px; }
@media (max-width: 980px) {
    body.has-bottom-nav { --bn: calc(64px + env(safe-area-inset-bottom)); padding-bottom: calc(var(--bn) + 12px); }
    body:not(.has-bottom-nav) .bottom-nav { display: none; }
    .chat-fab { bottom: calc(var(--bn) + 16px); }
    .chat-panel { bottom: calc(var(--bn) + 12px); height: calc(100dvh - var(--bn) - 24px - env(safe-area-inset-top)); max-height: 640px; }
    .cookie { bottom: calc(var(--bn) + 12px); }
    .dash-content { padding-bottom: 96px; }
    body.side-open { overflow: hidden; }
}

.to-top { position: fixed; z-index: 105; right: 20px; bottom: 88px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(24,27,32,.92); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s, transform .3s var(--ease-out), background .2s, border-color .2s; box-shadow: 0 12px 28px -10px rgba(0,0,0,.7); }
.to-top .icon { transform: rotate(-90deg); width: 20px; height: 20px; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dash-body .to-top { bottom: 24px; }
@media (max-width: 980px) {
    .to-top { right: 16px; bottom: calc(var(--bn) + 80px); width: 42px; height: 42px; }
    .dash-body .to-top { bottom: 20px; }
}

.announce { background: linear-gradient(90deg, #ffd84d, #ffb000); color: var(--accent-ink); font-size: .9rem; font-weight: 700; transition: margin .3s, opacity .3s; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.announce a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); flex: none; animation: pulse 1.6s infinite; }
.announce-x { margin-left: auto; background: rgba(0,0,0,.1); border: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--accent-ink); flex: none; }
.announce.is-gone { opacity: 0; margin-top: -40px; }
@keyframes pulse { 50% { opacity: .35; } }

.cur-menu { position: relative; }
.cur-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; transition: background .2s, color .2s; }
.cur-btn b { color: var(--accent); font-size: 1.02rem; }
.cur-btn:hover, .cur-menu.is-open .cur-btn { background: var(--surface-2); color: #fff; }
.cur-pop { width: 260px; }
.cur-pop .umenu-id { display: flex; justify-content: space-between; align-items: baseline; }
.cur-pop button { align-items: center; }
.cur-pop .cur-sym { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--surface-3); display: grid; place-items: center; color: var(--accent); font-weight: 800; flex: none; }
.cur-pop .grow { display: grid; line-height: 1.25; }
.cur-pop small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.cur-pop .cur-check { margin-left: auto; color: var(--accent); opacity: 0; }
.cur-pop button.is-on { background: var(--accent-soft); color: #fff; }
.cur-pop button.is-on .cur-check { opacity: 1; }
@media (max-width: 640px) { .cur-btn { padding: 0 10px; height: 38px; } .hide-s { display: none !important; } }

.region-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; gap: 10px; margin: 0 auto var(--s3); }
.region-switch button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.region-switch button:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.region-switch button .icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.region-switch button span { display: grid; line-height: 1.2; }
.region-switch button b { color: #fff; font-size: 1rem; }
.region-switch button small { color: var(--muted); font-size: .78rem; }
.region-switch button.is-active { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,194,26,.1), var(--surface)); box-shadow: 0 0 0 3px var(--accent-soft); }
.region-switch button.is-active .icon { color: var(--accent); }
.region-panel { animation: fadeIn .3s var(--ease-out); }
.pricing-note { text-align: center; margin: var(--s2) 0 0; display: flex; gap: 6px; justify-content: center; align-items: center; }
.px { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .region-switch { grid-template-columns: 1fr 1fr; gap: 8px; } .region-switch button { padding: 10px 12px; gap: 8px; } .region-switch button small { display: none; } }

.seg a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-xs); color: var(--text-2); font-weight: 700; font-size: .92rem; transition: color .2s, background .2s; }
.seg a:hover { color: #fff; }
.seg a.is-active { background: var(--accent); color: var(--accent-ink); }
.seg a.is-active .count { background: rgba(0,0,0,.18); color: var(--accent-ink); }
.seg-block { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg-block button { justify-content: center; padding: 0 10px; }

.toasts { position: fixed; z-index: 400; top: calc(var(--header-h) + 12px); right: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toasts[data-queue]:not([data-queue=""])::after { content: attr(data-queue) " bildirim sırada"; justify-self: end; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; pointer-events: auto; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 12px; align-items: start; padding: 12px 12px 14px 14px; border-radius: var(--r); background: rgba(24,27,32,.97); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-left: 0; box-shadow: 0 20px 44px -16px rgba(0,0,0,.85); font-size: .92rem; font-weight: 600; color: var(--text); animation: toastIn .38s var(--ease-out) both; --tc: var(--accent); }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc); }
.toast.success { --tc: var(--success); } .toast.error { --tc: var(--danger); } .toast.warning { --tc: var(--warning); } .toast.info { --tc: var(--accent); }
.toast-ic { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 15%, transparent); color: var(--tc); }
.toast-ic .icon { width: 18px; height: 18px; }
.toast-body { display: grid; gap: 2px; line-height: 1.4; padding-top: 5px; word-break: break-word; }
.toast-body b { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tc); }
.toast-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; margin-top: 3px; }
.toast-x:hover { background: var(--surface-3); color: #fff; }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tc); transform-origin: left; animation: toastBar var(--ms, 4s) linear forwards; opacity: .7; }
.toast.is-paused .toast-bar { animation-play-state: paused; }
.toast.is-link { cursor: pointer; }
.toast.is-link:hover { border-color: var(--line-2); background: rgba(31,35,41,.98); }
.toast.is-leaving { animation: toastOut .28s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px) scale(.97); height: 0; margin: 0; padding-top: 0; padding-bottom: 0; } }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.dash-body .toasts { top: 76px; }
.auth-body .toasts { top: 16px; }
@media (max-width: 640px) { .toasts { left: 12px; right: 12px; width: auto; top: calc(var(--header-h) + 8px); } }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,6,8,.74); backdrop-filter: blur(4px); animation: fadeIn .2s both; }
.modal-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: var(--s3); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 40px 90px -24px rgba(0,0,0,.95); animation: modalIn .28s var(--ease-out) both; outline: none; scrollbar-width: thin; }
.modal-box.sm { max-width: 420px; }
.modal-box.lg { max-width: 780px; }
.modal-box.xl { max-width: min(1100px, 96vw); }
.modal-box h3 { margin: 0 0 18px; font-size: 1.2rem; padding-right: 44px; }
.modal-close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.modal.is-closing .modal-box { animation: modalOut .18s var(--ease) both; }
.modal.is-closing .modal-backdrop { animation: fadeOut .18s both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fadeOut { to { opacity: 0; } }
.modal-confirm p { margin: 0; }
@media (max-width: 640px) {
    .modal { align-items: flex-end; padding: 0; }
    .modal-box, .modal-box.sm, .modal-box.lg { max-width: none; max-height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); animation-name: sheetIn; }
    .modal.is-closing .modal-box { animation-name: sheetOut; }
    .modal-box::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -10px auto 14px; }
    .modal-lightbox { align-items: center; padding: 8px; }
    .modal-lightbox .modal-box { border-radius: var(--r); }
    .modal-lightbox .modal-box::before { display: none; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }

.modal-lightbox .modal-box { background: #050607; padding: 12px; max-height: 96dvh; display: grid; }
.lb { margin: 0; display: grid; gap: 8px; justify-items: center; }
.lb img { max-width: 100%; max-height: calc(96dvh - 110px); object-fit: contain; border-radius: var(--r-sm); transition: opacity .2s; background: repeating-conic-gradient(#14161a 0 25%, #0f1013 0 50%) 0 0 / 20px 20px; }
.lb img.is-loading { opacity: .3; }
.lb figcaption { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: var(--r-sm); background: rgba(0,0,0,.55); color: #fff; font-size: 2rem; cursor: pointer; z-index: 2; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-nav:hover { background: var(--accent); color: var(--accent-ink); }
.lb-tools { display: flex; justify-content: center; }
[data-preview] { cursor: zoom-in; }

.preview-box { padding: var(--s2); border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface); }

.crop-stage { position: relative; width: min(100%, calc(60dvh * var(--ratio, 1))); aspect-ratio: var(--ratio, 1); margin: 0 auto; overflow: hidden; border-radius: var(--r); background: repeating-conic-gradient(#14161a 0 25%, #0f1013 0 50%) 0 0 / 22px 22px; cursor: grab; touch-action: none; user-select: none; }
.crop-stage.is-round { max-width: min(420px, 100%); }
.crop-stage.is-drag { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: center; pointer-events: none; will-change: transform; }
.crop-frame { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,194,26,.9); border-radius: inherit; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.crop-stage.is-round .crop-frame { border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,194,26,.9); background: none; }
.crop-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 8px; }
.crop-zoom { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; }
.crop-zoom input { flex: 1; accent-color: var(--accent); }

.file-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.file-thumbs figure { margin: 0; width: 120px; display: grid; gap: 4px; }
.file-thumbs img, .file-thumbs .ft-file { width: 120px; height: 80px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-3); display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--muted); }
.file-thumbs figcaption { font-size: .74rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: grid; }
.file-thumbs figcaption small { color: var(--muted); }

.pagination button { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.pagination button:hover:not(:disabled) { border-color: var(--line-2); color: #fff; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.pg-client { align-items: center; margin-top: var(--s2); }
.pg-client .pg-info { border: 0; background: none; color: var(--muted); font-size: .8rem; font-weight: 600; min-width: auto; margin-right: 6px; font-variant-numeric: tabular-nums; }
.pg-client .pg-gap { border: 0; background: none; min-width: 18px; padding: 0; }
.pg-per { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.pg-per select { width: auto; height: 38px; padding: 0 28px 0 10px; font-size: .86rem; }
.card .pg-client, .glass .pg-client { margin-bottom: 2px; }
@media (max-width: 640px) { .pg-client .pg-info { width: 100%; text-align: center; margin: 0 0 4px; } .pg-per { margin: 6px 0 0; } }

.hero-slides img { transition: opacity 1.2s var(--ease), transform 8s linear; will-change: opacity, transform; }
.hero-slides img.is-on { animation: kenBurns 9s linear both; }
.hero-slides img.is-out { opacity: 0; z-index: 0; }
@keyframes kenBurns { from { transform: scale(1.07); } to { transform: scale(1); } }
.hs-dots { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 54px; display: flex; gap: 6px; }
.hs-dots button { width: 26px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hs-dots button i { width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); transition: background .3s; }
.hs-dots button.on i { background: var(--accent); }
@media (max-width: 640px) { .hs-dots { bottom: 46px; } }

.ad { position: relative; display: block; margin: var(--s3) auto; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); line-height: 0; }
.ad a, .ad picture { display: block; }
.ad img { width: 100%; height: auto; max-height: var(--ad-h, 150px); object-fit: cover; object-position: center; display: block; transition: transform .4s var(--ease); }
.ad a:hover img { transform: scale(1.015); }
.ad-tag { position: absolute; z-index: 1; top: 6px; right: 6px; line-height: 1; padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,.6); color: #cfd3da; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ad-site_top, .ad-site_bottom, .ad-panel_top { --ad-h: 120px; }
.ad-home_top, .ad-home_mid { --ad-h: 150px; }
.ad-blog_inline { --ad-h: 150px; margin: var(--s3) 0 0; }
.ad-community_side { --ad-h: 250px; margin: 0; }
.ad-community_side img { object-fit: contain; background: var(--bg-2); }
.ad-panel { margin: 0 0 var(--s3); }
.ad-top { margin-top: var(--s3); margin-bottom: 0; }
@media (max-width: 640px) {
    .ad { --ad-h: 90px !important; margin: var(--s2) auto; }
    .ad-community_side { --ad-h: 180px !important; }
    .container.ad { width: calc(100% - 32px); }
}
.ad-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ad-admin { display: grid; grid-template-rows: 130px 1fr; overflow: hidden; padding: 0; }
.ad-admin-img { position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ad-admin-img img { width: 100%; height: 130px; object-fit: contain; }
.ad-admin-img .chip { position: absolute; left: 8px; bottom: 8px; }
.ad-admin-body { padding: 14px; display: grid; gap: 8px; align-content: start; }
.ad-stats { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.ad-stats b { color: #fff; }
.ad-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

.maint-body { min-height: 100dvh; display: grid; background: radial-gradient(ellipse at top, rgba(255,194,26,.08), transparent 60%), var(--bg); }
.maint { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: var(--s3); padding: var(--s3) 16px; }
.maint-card { width: min(560px, 100%); text-align: center; padding: var(--s5) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; justify-items: center; gap: 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.maint-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.maint-ic .icon { width: 32px; height: 32px; animation: spin 6s linear infinite; }
.maint-card h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0; }
.maint-card p { color: var(--muted); margin: 0; max-width: 440px; }
.maint-eta { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .9rem; }
.maint-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.maint-bar-anim { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); overflow: hidden; }
.maint-bar-anim i { position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slideBar 1.8s var(--ease) infinite; }
@keyframes slideBar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.maint-foot { color: var(--dim); }
.maint-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: var(--s3); border-radius: var(--r); background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); color: #fde68a; font-size: .92rem; }
.maint-bar .btn { margin-left: auto; }
.ws-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .78rem; font-weight: 700; color: var(--muted); }
.ws-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.ws-pill.on i { background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livePing 2s infinite; }
@keyframes livePing { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.ws-status { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ws-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); }
.ws-status.on i { background: var(--success); }
.ws-status small { grid-column: 2; }
.fx-now { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fx-now div { display: grid; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); min-width: 120px; }
.fx-now span { font-size: .78rem; color: var(--muted); }
.fx-now b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.settings-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.settings-nav { position: sticky; top: 84px; padding: 10px; display: grid; gap: 2px; max-height: calc(100dvh - 100px); overflow-y: auto; }
.settings-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font: inherit; font-weight: 600; font-size: .9rem; text-align: left; cursor: pointer; }
.settings-nav button:hover { background: var(--surface-2); color: #fff; }
.settings-nav button.is-active { background: var(--accent-soft); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.settings-nav button.is-active .icon { color: var(--accent); }
.settings-nav .dot-warn { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); margin-left: auto; }
.settings-search { position: relative; display: block; margin-bottom: 6px; }
.settings-search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.settings-search input { height: 38px; padding-left: 34px; font-size: .88rem; }
.settings-body { display: grid; gap: var(--s3); }
.settings-panel { animation: fadeIn .25s var(--ease-out); }
.setting-row { padding: 10px 0; }
.settings-save { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r); background: rgba(19,21,25,.94); backdrop-filter: blur(10px); border: 1px solid var(--line-2); }
@media (max-width: 980px) {
    .settings-wrap { grid-template-columns: 1fr; }
    .settings-nav { position: static; display: flex; overflow-x: auto; max-height: none; padding: 6px; gap: 4px; scrollbar-width: none; }
    .settings-nav button { flex: none; width: auto; white-space: nowrap; }
    .settings-search { flex: none; width: 180px; margin: 0; }
}

.fcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; grid-auto-rows: 1fr; }
.fcat { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: 1fr auto auto; gap: 12px; padding: 16px; border-top: 3px solid var(--cc, var(--accent)); min-height: 0; }
.fcat-ic { width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; background: color-mix(in srgb, var(--cc, var(--accent)) 14%, transparent); color: var(--cc, var(--accent)); }
.fcat-body { min-width: 0; }
.fcat-body b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fcat-body p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.fcat-meta { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); padding-top: 10px; border-top: 1px solid var(--line); }
.fcat-meta b { color: #fff; }
.fcat-actions { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86rem; }

.cat-grid { grid-auto-rows: 1fr; }
.cat-card { grid-template-rows: 1fr auto; border-top: 2px solid color-mix(in srgb, var(--cc, var(--accent)) 70%, transparent); }
.cat-card .cat-ic { background: color-mix(in srgb, var(--cc, var(--accent)) 12%, transparent); border-color: color-mix(in srgb, var(--cc, var(--accent)) 35%, transparent); color: var(--cc, var(--accent)); }
.cat-body { align-content: start; }
.cat-body small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.5em; }

.gate { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4); padding: var(--s5) var(--s4); align-items: center; }
.gate h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 10px 0 14px; }
.gate .eyebrow { display: inline-flex; gap: 6px; align-items: center; }
.gate-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: var(--s3) 0; }
.gate-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gate-stats div { background: var(--surface); padding: 14px; display: grid; text-align: center; }
.gate-stats b { font-family: var(--font-d); font-size: 1.6rem; }
.gate-stats span { color: var(--muted); font-size: .8rem; }
.gate-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gate-cats li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); filter: saturate(.8); }
.gate-cats li .fcat-ic { width: 40px; height: 40px; }
.gate-cats li div { display: grid; }
.gate-cats small { color: var(--muted); font-size: .8rem; }
@media (max-width: 980px) { .gate { grid-template-columns: 1fr; padding: var(--s4) var(--s3); } .gate-stats { grid-template-columns: repeat(2, 1fr); } }

.t-prefix { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-right: 6px; border-radius: 4px; font-family: var(--font); font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; vertical-align: middle; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent); }
h1 .t-prefix { height: 26px; font-size: .8rem; transform: translateY(-4px); }

.rte { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); overflow: visible; transition: border-color .2s, box-shadow .2s; }
.rte:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: var(--r) var(--r) 0 0; position: sticky; top: calc(var(--header-h) + 4px); z-index: 3; }
.rte-group { display: flex; gap: 2px; padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--line); }
.rte-bar button { min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--text-2); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rte-bar button:hover { background: var(--surface-3); color: #fff; }
.rte-bar button.is-on { background: var(--accent); color: var(--accent-ink); }
.rte-right { margin-left: auto; display: flex; gap: 4px; }
.rte-right button { border: 1px solid var(--line-2); }
.rte-drop { position: relative; }
.rte-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; padding: 6px; display: grid; gap: 2px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); animation: popIn .15s var(--ease-out); }
.rte-menu button { justify-content: flex-start; width: 100%; font-weight: 600; }
.rte-menu hr { margin: 4px 0; }
.rte-swatch { width: 16px; height: 16px; border-radius: 4px; background: conic-gradient(#ffc21a, #f87171, #60a5fa, #4ade80, #ffc21a); }
.sw-c { width: 14px; height: 14px; border-radius: 4px; background: var(--c); display: inline-block; }
.rte-tpl { border: 1px solid var(--accent-line) !important; color: var(--accent) !important; }
.rte-area { min-height: calc(var(--rows, 6) * 1.6em + 24px); max-height: 60dvh; overflow-y: auto; padding: 12px 14px; outline: none; color: var(--text); line-height: 1.6; word-break: break-word; }
.rte.is-empty .rte-area::before { content: attr(data-placeholder); color: var(--dim); pointer-events: none; position: absolute; }
.rte-area > :first-child { margin-top: 0; }
.rte-src { display: block; width: 100%; min-height: 180px; border: 0; border-radius: 0 0 var(--r) var(--r); background: #08090b; color: #d6dbe3; padding: 12px 14px; resize: vertical; }
.rte-compact .rte-bar { position: static; }
.rte-compact .rte-group:nth-child(3) button:nth-child(n+3) { display: none; }
@media (max-width: 640px) {
    .rte-bar { position: static; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .rte-group { flex: none; }
    .rte-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(var(--bn) + 12px); }
}

.post-text h2, .post-text h3, .post-text h4, .rte-area h2, .rte-area h3 { font-family: var(--font); text-transform: none; font-size: 1.12rem; margin: 1em 0 .4em; color: #fff; }
.post-text ul, .post-text ol, .rte-area ul, .rte-area ol { padding-left: 1.3em; margin: .5em 0; }
.post-text table, .rte-area table, .prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; display: block; overflow-x: auto; }
.post-text th, .post-text td, .rte-area th, .rte-area td, .prose th, .prose td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.post-text th, .rte-area th, .prose th { background: var(--surface-3); color: #fff; }
.post-text img, .rte-area img { max-width: 100%; max-height: 520px; border-radius: var(--r-sm); margin: .6em 0; height: auto; }
.post-text pre, .rte-area pre, .prose pre { background: #08090b; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; overflow-x: auto; }
.post-text pre code, .prose pre code { background: none; padding: 0; color: #d6dbe3; }
.post-text details, .rte-area details, .prose details { margin: .8em 0; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.post-text summary, .rte-area summary, .prose summary { cursor: pointer; padding: 10px 12px; font-weight: 700; color: var(--accent); list-style: none; }
.post-text summary::-webkit-details-marker { display: none; }
.post-text summary::before, .rte-area summary::before, .prose summary::before { content: "▸ "; }
.post-text details[open] summary::before, .prose details[open] summary::before { content: "▾ "; }
.post-text details > :not(summary), .rte-area details > :not(summary), .prose details > :not(summary) { padding: 0 12px 10px; margin: 0; }
.box-info, .box-warn, .box-success, .box-danger { margin: 1em 0; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid; border-left-width: 3px; }
.box-info > :last-child, .box-warn > :last-child, .box-success > :last-child, .box-danger > :last-child { margin-bottom: 0; }
.box-info { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.35); color: #dbe4ff; }
.box-warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.4); color: #fde68a; }
.box-success { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.35); color: #bbf7d0; }
.box-danger { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.35); color: #fecaca; }
.c-accent { color: var(--accent); } .c-red { color: #f87171; } .c-green { color: #4ade80; } .c-blue { color: #60a5fa; } .c-muted { color: var(--muted); }
.hl, mark { background: rgba(255,194,26,.22); color: #fff; padding: 0 .2em; border-radius: 3px; }
.ta-center { text-align: center; } .ta-right { text-align: right; }
.big { font-size: 1.2em; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-3); font: 600 .78em ui-monospace, Consolas, monospace; color: #fff; text-align: center; }

.live-flash { animation: liveFlash 1.4s var(--ease); }
@keyframes liveFlash { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 30% { box-shadow: 0 0 0 4px var(--accent-soft); } 100% { box-shadow: none; } }
.post.is-new { animation: postIn .5s var(--ease-out) both; border-color: var(--accent-line); }
@keyframes postIn { from { opacity: 0; transform: translateY(10px); } }
.is-removing { opacity: 0 !important; transform: scale(.98); transition: opacity .25s, transform .25s; }
.pa-btn.pop .icon { animation: likePop .4s var(--ease-out); }
@keyframes likePop { 40% { transform: scale(1.35); } }
.new-posts-bar { position: sticky; bottom: calc(var(--bn) + 16px); z-index: 6; display: flex; justify-content: center; pointer-events: none; }
.new-posts-bar .btn { pointer-events: auto; box-shadow: 0 12px 30px -8px var(--accent-glow); animation: fadeUp .3s var(--ease-out); }
#threadList.is-stale .thread-list { transition: opacity .2s; }
.post-av-m { display: none; }
.composer-av { display: block; }
.new-thread .nt-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--s2); }

@media (max-width: 1180px) { .cm { grid-template-columns: 220px minmax(0, 1fr); } .cm-members { display: none; } }
@media (max-width: 980px) {
    .cm { grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding-top: var(--s2); }
    .cm-side { position: static; max-height: none; }
}
@media (max-width: 760px) {
    .page-cm .cm-side { display: none; }
    .cm-hero { padding: var(--s3) var(--s2) !important; }
    .cm-hero h1 { font-size: 1.7rem; }
    .cm-hero p { font-size: .92rem; }
    .cm-head { gap: 10px; }
    .cm-head h1 { font-size: 1.35rem; line-height: 1.2; }
    .cm-head p { font-size: .86rem; }
    .cat-grid { grid-template-columns: 1fr !important; grid-auto-rows: auto; gap: 8px; }
    .cat-card { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; gap: 8px 12px; }
    .cat-card .cat-ic { width: 40px; height: 40px; }
    .cat-last { padding-top: 8px; min-height: 0; }
    .cat-last .avatar { display: none; }
    .thread-row-head { display: none !important; }
    .thread-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; }
    .thread-row .thread-av .avatar { width: 36px; height: 36px; }
    .thread-row .thread-num { display: none; }
    .thread-row .thread-num:first-of-type { display: grid; text-align: center; font-size: .8rem; }
    .thread-row .thread-num b { font-size: .95rem; }
    .thread-last { grid-column: 2 / -1; font-size: .78rem; }
    .thread-last .avatar { display: none; }
    .thread-main h3 { font-size: .98rem; }
    .thread-meta { font-size: .78rem; }
    .post { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 10px; }
    .post-av, .post-side { display: none; }
    .post-av-m { display: inline-flex; margin-right: 2px; }
    .post-head { flex-wrap: wrap; gap: 6px 8px; }
    .post-actions { gap: 4px; }
    .pa-btn { padding: 6px 8px; }
    .composer { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .composer-av { display: none; }
    .mod-tools { width: 100%; }
    .new-thread .nt-row { grid-template-columns: 1fr 1fr; }
}

.field-top { display: flex !important; justify-content: space-between; align-items: baseline; gap: 8px; }
.field-link { font-size: .8rem; font-weight: 600; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 14px 0 4px; font-size: .86rem; }
.auth-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.auth-links a:hover { color: var(--accent); }
.auth-ic { width: 56px; height: 56px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); margin-bottom: 14px; }
.auth-ic.ok { background: rgba(34,197,94,.1); color: #4ade80; border-color: rgba(34,197,94,.3); }
.auth-ic.bad { background: rgba(239,68,68,.1); color: #f87171; border-color: rgba(239,68,68,.3); }
.recover-done { text-align: center; display: grid; justify-items: center; gap: 6px; animation: fadeUp .35s var(--ease-out); }
.recover-done .auth-ic { margin: 0 auto 10px; }
.masked-mail { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; width: 100%; padding: 14px 16px; margin: 6px 0 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); }
.masked-mail span { color: var(--muted); font-size: .84rem; }
.masked-mail b { color: #fff; font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; word-break: break-all; }
.phone-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 10px; align-items: start; }
.phone-input { display: block; }
.phone-input .dial { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--accent); font-size: .92rem; pointer-events: none; }
.phone-input input { padding-left: 62px !important; }
.captcha-holder:empty { display: none; }
@media (max-width: 480px) { .phone-row { grid-template-columns: 1fr; } }

.guide-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip-btn span { color: var(--muted); font-size: .76rem; }
.chip-btn:hover { color: #fff; border-color: var(--accent-line); }
.chip-btn.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-btn.is-active span { color: rgba(0,0,0,.55); }
.guide-search { flex: 0 1 320px; display: block; }
.guide-search input { height: 40px; }
.blog-grid { grid-auto-rows: 1fr; }
.blog-card h2 { font-size: 1.18rem; margin: 0; font-family: var(--font); text-transform: none; line-height: 1.3; }
.blog-card-top { display: flex; justify-content: space-between; align-items: center; }
.guide-ic { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); flex: none; }
.blog-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.blog-card-meta span { display: inline-flex; gap: 5px; align-items: center; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s3); align-items: start; }
.guide-layout .prose { max-width: none; margin: 0; }
.guide-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.guide-meta span { display: inline-flex; gap: 6px; align-items: center; }
.guide-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: var(--s2); }
.guide-toc b { display: block; margin-bottom: 8px; font-family: var(--font-d); text-transform: uppercase; letter-spacing: .04em; }
.guide-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9rem; }
.guide-toc a { color: var(--text-2); }
.guide-toc a:hover { color: var(--accent); }
.guide-toc-m { display: none; margin: 0 0 1em; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.guide-toc-m summary { font-weight: 700; cursor: pointer; }
.guide-toc-m ol { margin: 8px 0 0; }
.guide-help { display: grid; justify-items: start; gap: 8px; }
.guide-help p { margin: 0; }
.guide-end { display: grid; gap: 12px; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose table { font-size: .94rem; }
@media (max-width: 980px) { .guide-layout { grid-template-columns: 1fr; } .guide-side { position: static; } .guide-toc { display: none; } .guide-toc-m { display: block; } .guide-search { flex: 1 1 100%; } }

.smtp-list { display: grid; gap: 10px; }
.smtp-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px 14px; }
.smtp-item.is-off { opacity: .6; }
.smtp-prio { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; border: 1px solid var(--accent-line); }
.smtp-main { display: grid; min-width: 0; }
.smtp-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smtp-err { color: #fca5a5 !important; white-space: normal !important; }
.smtp-stats { display: flex; gap: 12px; font-size: .8rem; color: var(--muted); }
.smtp-stats b { color: #fff; }
.smtp-actions { display: flex; gap: 4px; }
@media (max-width: 760px) { .smtp-item { grid-template-columns: 36px minmax(0, 1fr); } .smtp-stats, .smtp-item > .badge, .smtp-actions { grid-column: 2; } }

.dm-preview { width: auto; height: auto; display: flex; align-items: center; gap: 10px; padding: 6px 36px 6px 6px; margin-bottom: 8px; border-radius: var(--r); background: var(--surface-2); max-width: 100%; }
.dm-preview img { width: 64px; height: 64px; border-radius: var(--r-sm); cursor: zoom-in; flex: none; }
.dm-file-meta { display: grid; min-width: 0; line-height: 1.3; }
.dm-file-meta small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-img { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; border-radius: var(--r); overflow: hidden; }

img.img-broken { visibility: hidden; }

.logo-ph { display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: var(--accent); background: linear-gradient(135deg, var(--surface-3), var(--surface-2)) !important; }
.wt-item .logo { image-rendering: auto; }
.wt-m-sub { margin-left: auto; white-space: nowrap; }
@media (max-width: 980px) {
    .webtv-body { overflow-x: hidden; overflow-y: auto; }
    .webtv { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
    .wt-mobile-tabs { order: -3; display: flex !important; align-items: center; gap: 10px; padding: 8px 12px; position: static; background: var(--bg-2); border-bottom: 1px solid var(--line); }
    .wt-mobile-tabs .brand-mark { width: 26px; height: 26px; }
    .wt-mobile-tabs .brand-text b { font-size: 1.1rem; }
    .wt-mobile-tabs .brand-text small { display: none; }
    .wt-player { display: contents; }
    .pp { order: -2; position: sticky; top: 0; z-index: 30; max-height: none; box-shadow: 0 10px 24px -12px rgba(0,0,0,.9); }
    .wt-info { order: -1; padding: 12px 14px; flex: none; border-bottom: 1px solid var(--line); }
    .wt-info h2 { font-size: 1.15rem; margin-bottom: 2px; }
    .pp-keys { display: none; }
    .wt-col, .wt-col.wt-hide-m { display: flex !important; max-height: none; border-right: 0; background: var(--bg); }
    #wtCats { order: 0; }
    #wtCats .wt-head { padding: 10px 12px 6px; border-bottom: 0; }
    #wtCats .wt-head .flex.between { display: none; }
    #catList { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 4px 12px 10px; flex: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; border-bottom: 1px solid var(--line); }
    #catList::-webkit-scrollbar { display: none; }
    #catList .wt-cat { flex: none; width: auto; white-space: nowrap; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .84rem; scroll-snap-align: start; background: var(--surface); }
    #catList .wt-cat.is-active { border-color: var(--accent); background: var(--accent-soft); }
    #catList .wt-cat small { margin-left: 6px; }
    #catList .skeleton { flex: none; width: 110px; height: 34px; border-radius: 999px; }
    #wtItems { order: 1; }
    #wtItems .wt-head { padding: 10px 12px; position: sticky; top: calc(min(56.25vw, 100dvh * .5)); z-index: 10; background: var(--bg); }
    #wtItems .wt-scroll { overflow: visible; padding: 4px 8px calc(16px + env(safe-area-inset-bottom)); }
    .wt-item { padding: 10px 8px; }
    .wt-item .logo { width: 52px; height: 40px; }
    .wt-item .logo.poster { width: 44px; height: 64px; }
    .episode-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 980px) and (orientation: landscape) and (max-height: 520px) {
    .pp { position: relative; max-height: 100dvh; }
    #wtItems .wt-head { position: static; }
}

.pagination.pg-client, .pagination.pg-server { display: grid; justify-items: center; gap: 10px; margin: var(--s3) auto 0; width: 100%; }
.pg-pages { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; max-width: 100%; }
.pg-pages a, .pg-pages span, .pg-pages button { min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pg-pages a:hover, .pg-pages button:hover:not(:disabled) { border-color: var(--accent-line); color: #fff; }
.pg-pages .is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); cursor: default; }
.pg-pages .pg-arrow { font-size: 1.25rem; line-height: 1; }
.pg-pages .pg-arrow.is-disabled, .pg-pages button:disabled { opacity: .35; cursor: not-allowed; }
.pg-pages .pg-gap { border: 0; background: none; min-width: 20px; padding: 0; cursor: default; color: var(--muted); }
.pg-meta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); font-weight: 600; }
.pg-meta .pg-info { font-variant-numeric: tabular-nums; }
.pg-meta .pg-per { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pg-meta .pg-per select { width: auto; height: 34px; padding: 0 28px 0 10px; font-size: .86rem; }
.pg-client .pg-info { border: 0; background: none; margin: 0; width: auto; }
@media (max-width: 420px) {
    .pg-pages { gap: 4px; }
    .pg-pages a, .pg-pages span, .pg-pages button { min-width: 36px; height: 36px; font-size: .86rem; padding: 0 6px; }
}

input, select, textarea { max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--dim); opacity: 1; text-overflow: ellipsis; }
input:placeholder-shown { text-overflow: ellipsis; }
.field > span, .field-top { overflow-wrap: anywhere; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s2); }
.check-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.copy-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; padding: 8px 10px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: #fff; }
.auth-links form { margin: 0; }
.auth-links .link-btn { color: var(--text-2); }
@media (max-width: 640px) {
    input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
    .form-row, .smtp-row, .new-thread .nt-row, .phone-row { grid-template-columns: 1fr !important; }
    .btn-lg { height: 50px; font-size: 1rem; }
    .card-head { flex-wrap: wrap; gap: 10px; }
    .card-head > .flex, .card-head > div:last-child { flex-wrap: wrap; }
    .auth-card { padding: 0 2px; }
    .auth-links { justify-content: center; text-align: center; }
    .settings-save { flex-direction: column; align-items: stretch; text-align: center; }
    .settings-save .btn { width: 100%; }
    .order-total { font-size: 1.5rem !important; }
}

.order-grid { align-items: start; }
.order-total { font-size: 1.4rem; }
.pay-methods { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.pay-methods legend { font-size: .84rem; font-weight: 700; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.pay-method { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:hover { border-color: var(--accent-line); }
.pm-ic { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.pm-text { display: grid; line-height: 1.3; min-width: 0; }
.pm-text b { color: #fff; }
.pm-text small { color: var(--muted); font-size: .8rem; }
.pm-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.pay-method:has(input:checked) { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,194,26,.07), var(--surface)); box-shadow: 0 0 0 3px var(--accent-soft); }
.pay-method:has(input:checked) .pm-ic { background: var(--accent-soft); color: var(--accent); }
.pay-method:has(input:checked) .pm-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-card .auth-ic { margin-bottom: 10px; }
.pay-info { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }

.verify-steps { margin: 0 0 var(--s3); padding: 14px 16px 14px 34px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); display: grid; gap: 8px; color: var(--text-2); font-size: .92rem; }
.verify-change { border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 14px; background: var(--surface); }
.verify-change summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.verify-change[open] summary { margin-bottom: 12px; }
.verify-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: rgba(59,130,246,.12); border-bottom: 1px solid rgba(59,130,246,.3); color: #dbe4ff; font-size: .9rem; text-align: center; }

.card-head { min-width: 0; }
.card-head h3 { min-width: 0; overflow-wrap: anywhere; }
.table-wrap { max-width: 100%; }
.empty { display: grid; justify-items: center; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 14px; gap: 10px; } .stat-ic { width: 40px; height: 40px; } .stat b { font-size: 1.5rem; } }

html, body { overflow-x: clip; max-width: 100%; }

.cm, .cm-main, .composer, .composer-main, .post, .post-body, .post-text, .posts,
.rte, .rte-bar, .rte-area, .rte-src, .new-thread, .field, .form-grid, .grid-2 > *, .grid-side > *, .dash-main, .dash-content,
.order-grid > *, .guide-layout > *, .settings-body, .notif-main, .dm-main, .card, .glass { min-width: 0; }
.composer { grid-template-columns: 44px minmax(0, 1fr); }
.rte, .rte-bar, .rte-area, .rte-src { max-width: 100%; }
.post-text, .rte-area, .prose { overflow-wrap: anywhere; }
.post-text pre, .rte-area pre, .prose pre, .post-text table, .prose table { max-width: 100%; }
.post-text img, .rte-area img, .prose img { max-width: 100%; height: auto; }

.rte-bar { flex-wrap: wrap; }
@media (max-width: 760px) {
    .composer { grid-template-columns: minmax(0, 1fr); }
    .rte-bar { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; position: static; }
    .rte-bar::-webkit-scrollbar { display: none; }
    .rte-group, .rte-drop, .rte-right { flex: none; }
    .rte-right { margin-left: 0; }
    .rte-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(var(--bn) + 12px); max-height: 60dvh; overflow-y: auto; }
}

html { scrollbar-width: thin; scrollbar-color: rgba(255, 194, 26, .28) transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
html, .table-wrap, .dm-body, .modal-box { scrollbar-color: rgba(255, 194, 26, .28) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 194, 26, .55); background-clip: padding-box; }
html::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { background: rgba(255, 194, 26, .28); background-clip: padding-box; }
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap { scrollbar-width: thin; overflow-x: auto; overscroll-behavior-x: contain; }

.setup-devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; grid-auto-rows: 1fr; }
.setup-device { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 20px; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.setup-device:hover { border-color: var(--accent-line); transform: translateY(-3px); color: inherit; }
.setup-device b { font-size: 1.08rem; color: #fff; }
.setup-device small { color: var(--muted); }
.setup-count { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--accent); }
.setup-help { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; margin-top: var(--s3); }
.setup-help > div:first-child { flex: 1 1 320px; }
.setup-dev-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: var(--s3); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.setup-dev-tabs::-webkit-scrollbar { display: none; }
.setup-dev-tabs .chip-btn { flex: none; white-space: nowrap; }
.setup-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.setup-app { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; color: inherit; transition: border-color .2s, background .2s; }
.setup-app:hover { border-color: var(--accent-line); color: inherit; background: var(--surface-2); }
.setup-app b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup-app-ic { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-family: var(--font-d); font-size: 1.05rem; border: 1px solid var(--accent-line); }
.setup-go { color: var(--muted); }
.setup-article .steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.setup-article .steps li { position: relative; padding: 10px 14px 10px 44px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); counter-increment: s; margin: 0; overflow-wrap: anywhere; }
.setup-article .steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 800; background: var(--surface-3); color: var(--accent); }
.setup-article h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin-top: 1.4em; }
.step-no { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: 1rem; flex: none; font-family: var(--font-d); }
.yt { display: grid; gap: 6px; margin: 0 0 1.4em; }
.yt-play, .yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000 center / cover no-repeat; position: relative; cursor: pointer; overflow: hidden; }
.yt-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45)); }
.yt-play span { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 40px -8px var(--accent-glow); transition: transform .2s var(--ease); }
.yt-play:hover span { transform: translate(-50%, -50%) scale(1.08); }
.yt-play span .icon { width: 28px; height: 28px; margin-left: 4px; }
.setup-others { list-style: none; padding: 0; }
@media (max-width: 640px) { .setup-app { grid-template-columns: 40px minmax(0, 1fr) auto; } .setup-app .chip { display: none; } .setup-app-ic { width: 40px; height: 40px; } }

@media (max-width: 980px) {
    body.kb-open .bottom-nav, body.kb-open .chat-fab, body.kb-open .to-top, body.kb-open .cookie, body.kb-open .new-posts-bar { display: none !important; }
    body.kb-open.has-bottom-nav { --bn: 0px; padding-bottom: 12px; }
    .page-dm { overflow: hidden; height: var(--vvh, 100dvh); overscroll-behavior: none; }
    .page-dm .dm { height: calc(var(--vvh, 100dvh) - var(--header-h)); }
    .page-dm .dm-main { display: flex; flex-direction: column; min-height: 0; }
    .page-dm .dm-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .page-dm .dm-compose { flex: none; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--surface); }
    body.kb-open.page-dm .dm-compose { padding-bottom: 10px; }
    .page-dm .site-header { position: sticky; top: 0; }
}

.btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.feat { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .2s, opacity .2s, background .2s; }
.feat:hover { border-color: var(--accent-line); }
.feat-ic { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feat-text { display: grid; gap: 2px; min-width: 0; }
.feat-text b { color: #fff; }
.feat-text small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.feat.is-off { background: var(--bg-2); }
.feat.is-off .feat-ic { background: var(--surface-3); color: var(--dim); }
.feat.is-off .feat-text b { color: var(--text-2); }
.feat.is-warn { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.06); }
.feat .switch { gap: 0; }

.twofa-mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .88rem; text-align: center; }


.snd-tg { position: relative; }
.snd-tg.is-off { color: var(--dim); }
.snd-tg.is-off .icon { opacity: .55; }
.snd-tg.is-off::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%) rotate(-45deg); pointer-events: none; }
.snd-tg-text { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; border-radius: 6px; }
.snd-tg-text:hover { color: var(--text); background: var(--surface-2, rgba(255,255,255,.05)); }
.snd-tg-text.is-off::after { left: 13px; width: 16px; }

.support-chat-head { flex-wrap: nowrap; padding: 10px 14px; gap: 10px; }
.sup-who { flex: 1; min-width: 0; }
.sup-who b, .sup-who .small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-acts { display: flex; gap: 4px; flex: none; }
.sup-acts .btn { gap: 6px; }
.sup-back { display: none; }
.sup-back .icon { transform: rotate(180deg); }
.sup-info-btn, .sup-info-head, .sup-scrim { display: none; }
.support-chat .chat-foot textarea { font-size: 16px; }

@media (max-width: 1200px) {
    .support-layout { position: relative; }
    .sup-info-btn { display: inline-flex; }
    .support-info { display: block !important; position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; width: min(340px, 88%); background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: -18px 0 40px -20px rgba(0,0,0,.8); transform: translateX(105%); transition: transform .28s var(--ease-out); padding: 0 18px 18px; }
    .sup-info-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 14px 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
    .support-layout.is-info .support-info { transform: none; }
    .sup-scrim { display: block; position: absolute; inset: 0; z-index: 4; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
    .support-layout.is-info .sup-scrim { opacity: 1; pointer-events: auto; }
}

@media (max-width: 980px) {
    .dash-body:has(#supportApp) .dash-content { padding: 8px 8px 8px; }
    .support-layout { grid-template-columns: minmax(0, 1fr) !important; height: calc(var(--vvh, 100dvh) - 60px - 16px) !important; min-height: 380px; border-radius: var(--r); }
    .support-list { max-height: none !important; border: 0 !important; }
    .support-list .tabs { overflow-x: auto; scrollbar-width: none; }
    .support-chat { display: none; height: auto !important; }
    .support-layout.is-chat .support-list { display: none; }
    .support-layout.is-chat .support-chat { display: flex; }
    .sup-back { display: inline-flex; flex: none; margin-left: -6px; }
    .support-chat-head { padding: 8px 10px; gap: 8px; }
    .sup-acts .btn { padding: 0 9px; }
    .sup-acts .btn span { display: none; }
    .support-chat .chat-body { padding: 12px 10px; }
    .support-chat .msg { max-width: 86%; }
    .canned { flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px 0; scrollbar-width: none; }
    .canned button { flex: none; }
    .support-chat .chat-foot { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
    .support-chat .typing { margin: 0 12px 6px !important; }
    .conv-item { padding: 12px 14px; }
}

.modal-series .modal-box { padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: min(860px, calc(100dvh - 32px)); }
.modal-series .modal-content { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-series .modal-close { background: rgba(10,11,13,.6); backdrop-filter: blur(6px); }
.sm { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sm-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 24px 56px 18px 24px; background: linear-gradient(180deg, rgba(255,194,26,.07), transparent 85%); border-bottom: 1px solid var(--line); }
.sm-poster { width: 132px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-3); display: grid; place-items: center; font-size: 2.4rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.9); }
.sm-hero-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sm-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sm-title { margin: 0; font-size: 1.6rem; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.sm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.sm-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sm-meta .icon { width: 14px; height: 14px; color: var(--accent); }
.sm-plot { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sm-cta { margin-top: 4px; }
.sm-cta .btn { gap: 8px; }
.sm-cta .btn small { font-weight: 600; opacity: .75; }
.sm-seasons { display: flex; gap: 8px; padding: 12px 24px; overflow-x: auto; flex: none; border-bottom: 1px solid var(--line); scrollbar-width: thin; scroll-snap-type: x proximity; }
.sm-seasons button { flex: none; display: grid; gap: 1px; text-align: left; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; cursor: pointer; scroll-snap-align: start; transition: border-color .15s, background .15s, color .15s; }
.sm-seasons button span { font-weight: 800; font-size: .9rem; }
.sm-seasons button small { font-size: .72rem; color: var(--muted); }
.sm-seasons button:hover { border-color: var(--accent-line); color: #fff; }
.sm-seasons button.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sm-seasons button.is-active small { color: inherit; opacity: .7; }
.sm-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 24px 24px; overscroll-behavior: contain; scrollbar-width: thin; }
.sm-skel { display: grid; gap: 10px; }
.sm-skel .sk-line { height: 64px; }
.sm-eps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sm-ep { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.sm-ep:hover, .sm-ep:focus-visible { border-color: var(--accent-line); background: var(--surface-2); outline: none; }
.sm-ep.is-playing { border-color: var(--accent); background: var(--accent-soft); }
.sm-ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); display: grid; place-items: center; }
.sm-ep-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-ep-thumb b { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.sm-ep-thumb img + b { display: none; }
.sm-ep-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .15s; }
.sm-ep-play .icon { width: 26px; height: 26px; fill: currentColor; }
.sm-ep:hover .sm-ep-play, .sm-ep.is-playing .sm-ep-play { opacity: 1; }
.sm-ep.is-seen .sm-ep-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.sm-ep-text { display: grid; gap: 3px; min-width: 0; }
.sm-ep-text small { color: var(--muted); font-size: .74rem; font-weight: 700; }
.sm-ep-text small em { color: var(--accent); font-style: normal; }
.sm-ep-text b { font-size: .92rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-ep-plot { font-size: .78rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }

.sm-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.sm-now-text { display: grid; gap: 2px; min-width: 0; }
.sm-now-text small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sm-now-text b { color: #fff; }
.sm-now-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-now-acts .btn:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 980px) {
    .sm-eps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .modal-series .modal-box { padding: 0 !important; max-height: 94dvh; }
    .sm-hero { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px 52px 14px 16px; }
    .sm-poster { width: 84px; font-size: 1.8rem; }
    .sm-title { font-size: 1.2rem; }
    .sm-plot { -webkit-line-clamp: 2; font-size: .84rem; }
    .sm-cta .btn { width: 100%; justify-content: center; }
    .sm-hero .sm-cta { grid-column: 1 / -1; }
    .sm-seasons { padding: 10px 16px; }
    .sm-body { padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); }
    .sm-ep { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 6px; }
    .sm-now { padding: 10px 12px; }
    .sm-now-acts { width: 100%; }
    .sm-now-acts .btn { flex: 1; justify-content: center; }
    .sm-now-acts .btn span { display: none; }
    .sm-now-acts .btn-primary span, .sm-now-acts .btn-primary { flex: 2; }
}
.sm-cta { display: flex; }
@media (max-width: 640px) {
    .sm-cta .btn { width: 100%; height: auto; min-height: 44px; flex-wrap: wrap; justify-content: center; row-gap: 0; padding: 8px 12px; line-height: 1.2; text-align: center; }
    .sm-cta .btn small { flex-basis: 100%; font-size: .74rem; }
}
@media (max-width: 640px) {
    .modal-series { align-items: flex-end; padding: 0; }
    .modal-series .modal-box { max-width: none; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; animation-name: sheetIn; }
    .modal-series.is-closing .modal-box { animation-name: sheetOut; }
}

@media (max-width: 980px) {
    html:has(body.page-dm), html:has(#supportApp) { overflow: hidden; overscroll-behavior: none; }
    .page-dm [data-announce], .page-dm .maint-bar { display: none !important; }
    .page-dm .site-header { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); z-index: 100; }
    .page-dm .dm { position: fixed; left: 0; right: 0; top: calc(var(--vvt, 0px) + var(--header-h)); height: calc(var(--vvh, 100dvh) - var(--header-h)); margin: 0; }

    .dash-body:has(#supportApp) { overflow: hidden; }
    .dash-body:has(#supportApp) .dash-top { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); }
    .dash-body:has(#supportApp) .support-layout { position: fixed !important; left: 8px; right: 8px; top: calc(var(--vvt, 0px) + 68px); height: calc(var(--vvh, 100dvh) - 76px) !important; min-height: 0; }

    body.kb-open .chat-panel.is-open { top: calc(var(--vvt, 0px) + 8px); bottom: auto; height: calc(var(--vvh, 100dvh) - 16px); max-height: none; }
}
@media (max-width: 980px) {
    .dm-compose textarea, .dm-compose input, .chat-panel textarea, .chat-panel input, #supInput { font-size: 16px !important; }
}

.glass.card > .card-head + .table-wrap, .glass.card > .filter-bar + .table-wrap { max-width: none; width: auto; }

@media (min-width: 981px) {
    .table-wrap { container-type: inline-size; }
    .table td.actions > * { margin-left: 4px; }
    .table td.actions .btn-xs { min-width: 32px; height: 32px; padding: 0 8px; justify-content: center; }
    .table code { word-break: break-all; }
    @container (max-width: 900px) {
        .table { font-size: .88rem; }
        .table th, .table td { padding: 10px 10px; }
        .table td { overflow-wrap: anywhere; }
        .table td .badge { white-space: normal; text-align: left; }
        .table th:first-child, .table td:first-child { padding-left: 16px; }
        .table th:last-child, .table td:last-child { padding-right: 16px; }
    }
    @container (max-width: 860px) {
        .table .col-opt { display: none; }
    }
    @container (max-width: 560px) {
        .table thead { display: none; }
        .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
        .table tr { padding: 4px 16px; border-bottom: 1px solid var(--line); }
        .table tbody tr:nth-child(even) { background: transparent; }
        .table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 !important; border-bottom: 1px dashed var(--line); text-align: right; min-height: 38px; }
        .table tr td:last-child { border-bottom: 0; }
        .table td::before { content: attr(data-label); color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; flex: none; }
        .table td:not([data-label])::before, .table td[data-label=""]::before { display: none; }
        .table td[data-label=""], .table td.actions { justify-content: flex-end; width: 100%; }
        .table td.col-opt { display: flex; }
        .table td.empty { display: block; text-align: center; }
    }
}
@media (max-width: 980px) {
    .table-wrap .table td:has(> :nth-child(2)) { display: block; text-align: right; }
    .table-wrap .table td:has(> :nth-child(2))::before { float: left; margin: 2px 12px 0 0; }
    .table-wrap .table td.actions:has(> :nth-child(2)) { display: flex; }
}
@media (min-width: 981px) {
    @container (max-width: 560px) {
        .table td:has(> :nth-child(2)) { display: block; text-align: right; }
        .table td:has(> :nth-child(2))::before { float: left; margin: 2px 12px 0 0; }
        .table td.actions:has(> :nth-child(2)) { display: flex; }
    }
}
.filter-bar > * { min-width: 0; }
@media (max-width: 980px) {
    .filter-bar > span, .filter-bar > p, .filter-bar > nav, .filter-bar > .seg { grid-column: 1 / -1; }
    .filter-bar .seg { overflow-x: auto; scrollbar-width: none; }
    .table-wrap .table td { overflow-wrap: anywhere; min-width: 0; }
    .table-wrap .table td > * { min-width: 0; }
}

.ptabs .settings-body { gap: var(--s2); }
.fw-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--s2); align-items: start; }
.fw-split.fw-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.fw-split + .glass, [data-panel="list"] { display: grid; gap: var(--s2); }
.fw-main, .fw-aside { min-width: 0; }
.fw-aside { display: grid; gap: var(--s2); align-content: start; }
.fw-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--s2); align-items: stretch; }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.fw-tile { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.fw-tile textarea { resize: vertical; min-height: 96px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.fw-tile > span .count { margin-left: 6px; }

.switch.fw-opt { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); transition: border-color .2s, background .2s; }
.switch.fw-opt:hover { border-color: var(--line-2); }
.switch.fw-opt:has(input:checked) { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .05); }
.switch.fw-opt .sw { margin-top: 2px; }
.fw-opt-t { display: grid; gap: 4px; min-width: 0; }
.fw-opt-t b { font-size: .93rem; color: #fff; overflow-wrap: anywhere; }
.fw-opt-t small { color: var(--muted); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }

.fw-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.fw-chip { position: relative; display: block; cursor: pointer; }
.fw-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fw-chip > span { display: grid; gap: 3px; height: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); transition: border-color .2s, background .2s; }
.fw-chip > span::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--line-2); transition: .2s; }
.fw-chip input:checked + span { border-color: rgba(255, 194, 26, .45); background: var(--accent-soft); }
.fw-chip input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface-2); }
.fw-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fw-chip b { font-size: .9rem; color: #fff; }
.fw-chip small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }

.fw-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 8px; }
.fw-seg label { position: relative; cursor: pointer; }
.fw-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fw-seg span { display: grid; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); transition: .2s; }
.fw-seg b { font-size: .9rem; color: #fff; }
.fw-seg small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.fw-seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.fw-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.fw-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: .86rem; }
.fw-dl dt { color: var(--muted); white-space: nowrap; }
.fw-dl dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.fw-dl code { overflow-wrap: anywhere; }
.fw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .87rem; }
.fw-checks li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.fw-checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.fw-checks li.ok::before { background: var(--success); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.fw-checks li.mid::before { background: var(--warning); }
.fw-checks li.no::before { background: var(--danger); }
.fw-domains { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fw-domains li { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); min-width: 0; }
.fw-note .info-list { gap: 10px; }
.fw-note p + p { margin-top: 10px; }
.fw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fw-tags span { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2); overflow-wrap: anywhere; }
.fw-good .fw-tags span { border-color: rgba(34, 197, 94, .3); color: #b6f0c8; }
.fw-big { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--s4) var(--s3); }
.fw-big-n { font-family: var(--font-display, inherit); font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--accent); }
.fw-big-l { color: var(--muted); font-size: .85rem; }
.fw-cc { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.fw-cc b { font-size: 2rem; line-height: 1; color: var(--accent); }
.fw-cc span { color: var(--text-2); }
.fw-clip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.fw-events td small.fw-clip { margin-top: 3px; font-size: .75rem; }
.fw-events td { vertical-align: top; }
.fw-events td:nth-child(3) { max-width: 260px; }
.settings-nav .fw-flag { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex: none; }
.settings-nav .fw-flag.off { background: var(--danger); }
.settings-nav .fw-flag.on { background: var(--success); }
.settings-nav button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1280px) {
    .fw-split, .fw-split.fw-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
    .fw-split.fw-rev > .fw-aside { order: 2; }
}
@media (max-width: 1100px) {
    .fw-split, .fw-split.fw-rev { grid-template-columns: minmax(0, 1fr); }
    .fw-split.fw-rev > .fw-aside { order: 0; }
    .fw-aside { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
    .fw-big { padding: var(--s3); }
}
@media (max-width: 640px) {
    .ptabs .card { padding: var(--s2); }
    .switch.fw-opt, .fw-tile { padding: 12px; }
    .fw-events td:nth-child(3) { max-width: none; }
    .fw-events td .fw-clip { white-space: normal; overflow-wrap: anywhere; text-align: right; }
}

.fw-log { list-style: none; margin: 0 calc(var(--s3) * -1) calc(var(--s3) * -1); padding: 0; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); scrollbar-width: thin; }
.fw-log li { display: grid; grid-template-columns: minmax(118px, auto) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px var(--s3); border-bottom: 1px solid var(--line); }
.fw-log li:last-child { border-bottom: 0; }
.fw-log li:hover { background: var(--surface-2); }
.fw-log li.is-log { opacity: .7; }
.fw-log-main { display: grid; gap: 3px; min-width: 0; }
.fw-log-main code { font-size: .82rem; color: #fff; }
.fw-log-main small { color: var(--muted); font-size: .76rem; }
.fw-log-meta { display: grid; justify-items: end; gap: 2px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.fw-log-meta small { font-family: ui-monospace, Consolas, monospace; opacity: .8; }
.ptabs:has(.settings-panel.no-save:not(.hidden)) .settings-save { display: none; }
@media (max-width: 640px) {
    .fw-log { margin: 0 calc(var(--s2) * -1) calc(var(--s2) * -1); max-height: 480px; }
    .fw-log li { grid-template-columns: minmax(0, 1fr) auto; padding: 10px var(--s2); gap: 6px 10px; }
    .fw-log li .fw-badges { grid-column: 1; }
    .fw-log-meta { grid-column: 2; grid-row: 1; }
    .fw-log-main { grid-column: 1 / -1; }
}

.ptabs .settings-save { flex-direction: row; align-items: center; padding: 10px 14px; }
.ptabs .settings-save .btn { width: auto; flex: none; }
.ptabs .settings-save > span { flex: 1 1 220px; min-width: 0; text-align: left; }
@media (max-width: 1280px) {
    .ptabs { grid-template-columns: minmax(0, 1fr); }
    .ptabs .settings-nav { position: static; display: flex; overflow-x: auto; max-height: none; padding: 6px; gap: 4px; scrollbar-width: none; }
    .ptabs .settings-nav::-webkit-scrollbar { display: none; }
    .ptabs .settings-nav button { flex: none; width: auto; white-space: nowrap; }
    .ptabs .settings-nav button.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
    .ptabs .settings-nav .fw-flag, .ptabs .settings-nav .dot-warn { margin-left: 4px; }
}
@media (max-width: 640px) {
    .ptabs .settings-save { bottom: 10px; }
    .ptabs .settings-save > span { display: none; }
    .ptabs .settings-save .btn { width: 100%; }
}

.stat-grid.fw-stats { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
@media (max-width: 640px) { .stat-grid.fw-stats { grid-template-columns: 1fr 1fr; } }

.ptabs .settings-nav button .count { margin-left: auto; }
.ptabs .pe-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.ptabs .social-grid { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.ptabs .profile-editor { min-width: 0; }
.ptabs .pe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ptabs .user-list { display: grid; gap: 6px; }
.ptabs .user-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ptabs .user-row .grow { flex: 1; min-width: 0; }
.ptabs [data-panel="ilet"] .fw-row { align-items: start; }
.tfa-setup { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-bottom: var(--s2); }
.tfa-form { flex: 1 1 220px; min-width: 0; }
.tfa-secret { display: inline-block; margin: 6px 0 14px; font-size: 1rem; overflow-wrap: anywhere; }

.perm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--s2); align-items: start; margin-top: var(--s2); }
.perm-groups .perm-group { margin: 0 !important; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); min-width: 0; }
.perm-groups .perm-group h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.perm-groups .perm-row { padding: 10px 0; }
.perm-groups .perm-row:last-child { border-bottom: 0; }
.perm-groups .perm-row > div { min-width: 0; }
.perm-groups .perm-row small { display: block; font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.perm-row.perm-2fa { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.roles-layout > div:last-child { min-width: 0; }
.roles-side { position: sticky; top: 84px; }
@media (max-width: 980px) { .roles-side { position: static; } }

.serp { padding: 14px; border-radius: var(--r); background: #fff; color: #202124; font-family: Arial, sans-serif; display: grid; gap: 4px; min-width: 0; }
.serp-site { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.3; }
.serp-site b { display: block; font-weight: 400; color: #202124; font-size: 14px; }
.serp-site small { color: #4d5156; overflow-wrap: anywhere; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f1f3f4; color: #000; font-weight: 700; flex: none; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.serp-desc { color: #4d5156; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }

.cron-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s2); }
.cron-card { position: relative; display: grid; gap: 8px; align-content: start; min-width: 0; padding-top: var(--s3); }
.cron-card h4 { margin: 0; font-size: 1rem; padding-right: 36px; }
.cron-card p { margin: 0; }
.cron-no { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .85rem; }
.cmd { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2, #0b0c0f); border: 1px solid var(--line); color: #ffe08a; font: .8rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; max-width: 100%; }
.fw-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.log-list { max-height: none; margin-bottom: 0; }
.log-list .fw-badges .badge { max-width: 180px; }
.log-filter { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; max-width: 460px; min-width: 0; }
.log-filter .input-ic { flex: 1; min-width: 0; }
.log-det summary { cursor: pointer; list-style: none; display: block; min-width: 0; }
.log-det summary::-webkit-details-marker { display: none; }
.log-det summary code { font-size: .76rem; color: var(--muted); }
.log-det pre { margin: 6px 0 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-3); font-size: .76rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.fw-log-main code.fw-clip, .fw-log-main small code { display: block; }
@media (max-width: 640px) {
    .log-filter { max-width: none; flex-basis: 100%; }
    .fw-actions { grid-column: 2; grid-row: 1; }
}

.perm-groups { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.roles-layout { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
@media (max-width: 980px) { .roles-layout { grid-template-columns: minmax(0, 1fr); } }
.role-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.log-list { max-height: calc(100vh - 300px); min-height: 320px; overflow-y: auto; margin: 0 calc(var(--s3) * -1); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .log-list { margin: 0 calc(var(--s2) * -1); max-height: calc(100vh - 240px); } }

@media (max-width: 980px) {
    .table-wrap .table tr { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 0; padding: 8px 14px; }
    .table-wrap .table td, .table-wrap .table td:has(> :nth-child(2)) { display: flex !important; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; text-align: left !important; padding: 7px 0 !important; border-bottom: 0 !important; min-height: 0; width: auto; }
    .table-wrap .table td::before, .table-wrap .table td:has(> :nth-child(2))::before { float: none !important; margin: 0 !important; font-size: .64rem; }
    .table-wrap .table td:has(> :nth-child(2)), .table-wrap .table td.empty, .table-wrap .table td.wide { grid-column: 1 / -1; }
    .table-wrap .table td.actions, .table-wrap .table td[data-label=""] { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; justify-content: flex-end !important; align-items: center; gap: 6px; border-top: 1px dashed var(--line) !important; margin-top: 4px; padding-top: 8px !important; }
    .table-wrap .table td.empty { align-items: center; text-align: center !important; }
    .table-wrap .table td > * { max-width: 100%; }
}
@media (max-width: 360px) {
    .table-wrap .table tr { grid-template-columns: minmax(0, 1fr); }
}

nav.seg, .seg[role=tablist] { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
nav.seg::-webkit-scrollbar { display: none; }
nav.seg > button, nav.seg > a { flex: none; white-space: nowrap; }

.diag-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; padding: 8px 0; }
.diag-sum { padding: 10px 12px; border-radius: var(--r-sm); font-weight: 700; font-size: .88rem; margin-bottom: 10px; }
.diag-sum.ok { background: rgba(34, 197, 94, .1); color: #86efac; border: 1px solid rgba(34, 197, 94, .3); }
.diag-sum.bad { background: rgba(239, 68, 68, .1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .3); }
.diag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.diag-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .85rem; }
.diag-list li::before { content: "✓"; grid-row: span 2; color: var(--success); font-weight: 800; }
.diag-list li.no::before { content: "✕"; color: var(--danger); }
.diag-list li b { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.diag-list li span { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }

.srv-bar { display: block; height: 5px; margin-top: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.srv-bar i { display: block; height: 100%; border-radius: 5px; }
.srv-steps > li { line-height: 1.6; }
.diag-list li span { white-space: pre-wrap; font-family: inherit; }

.nav .nav-search { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent-line, rgba(255,194,26,.35)); background: var(--accent-soft); color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s, transform .2s; }
.nav .nav-search:hover { background: rgba(255,194,26,.18); transform: translateY(-1px); }
.nav .nav-search .icon { color: var(--accent); }
.hdr-search { display: none; }
@media (max-width: 1100px) { .hdr-search { display: grid; } }

.ms-box { display: grid; gap: 14px; max-height: min(86vh, 860px); grid-template-rows: auto auto auto auto minmax(0, 1fr); }
.ms-box h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.ms-box h3 .icon { color: var(--accent); }
.ms-input { display: flex; }
.ms-input input { height: 52px; font-size: 1.05rem; padding-left: 42px; width: 100%; }
.ms-types { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-types label { position: relative; cursor: pointer; }
.ms-types input { position: absolute; opacity: 0; pointer-events: none; }
.ms-types span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: .86rem; transition: .2s; }
.ms-types input:checked + span { background: var(--accent); border-color: var(--accent); color: #111; }
.ms-types input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ms-results { overflow-y: auto; min-height: 180px; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.ms-hint { display: grid; justify-items: center; gap: 8px; padding: 36px 12px; text-align: center; color: var(--muted); }
.ms-hint > .icon { width: 34px; height: 34px; opacity: .5; }
.ms-hint p { margin: 0; }
.ms-hint .btn { margin-top: 6px; }
.ms-sum { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ms-list { display: grid; gap: 8px; }
.ms-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.ms-poster { position: relative; width: 54px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: rgba(255,255,255,.25); }
.ms-poster.is-logo { height: 54px; background: #fff1; }
.ms-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ms-poster.is-logo img { object-fit: contain; padding: 6px; }
.ms-body { display: grid; gap: 6px; min-width: 0; }
.ms-body b { color: #fff; font-size: .95rem; overflow-wrap: anywhere; }
.ms-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ms-tags i { font-style: normal; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-tags .ms-t { color: #111; background: var(--accent); }
.ms-tags .ms-live { background: #ef4444; color: #fff; }
.ms-tags .ms-series { background: #3b82f6; color: #fff; }
.ms-tags .ms-r { color: var(--accent); }
.ms-ok { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; color: #86efac; white-space: nowrap; }
.ms-foot { text-align: center; padding: 12px 0 4px; }
@media (max-width: 640px) {
    .ms-box { max-height: 92vh; }
    .ms-item { grid-template-columns: 46px minmax(0, 1fr); }
    .ms-poster { width: 46px; height: 64px; }
    .ms-poster.is-logo { height: 46px; }
    .ms-ok { display: none; }
}

.vod-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--s3); }
.vod-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.vod-stat:hover { border-color: var(--accent-line, rgba(255,194,26,.35)); transform: translateY(-2px); }
.vod-stat .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); }
.vod-stat b { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1.1; }
.vod-stat span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.vod-stat-cta { background: var(--accent-soft); border-color: var(--accent-line, rgba(255,194,26,.35)); }
.vod-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--s3); }
.vod-cat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 600; font-size: .84rem; cursor: pointer; transition: .2s; max-width: 100%; }
.vod-cat:hover { color: #fff; border-color: var(--accent); }
.vod-cat span { color: var(--accent); font-size: .74rem; font-weight: 800; }
.vod-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: var(--s2) 0 6px; }
.vod-row-head h3 { margin: 0; font-size: 1.05rem; }
.vod-card.no-img img { display: none; }
.vod-card.no-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--surface-3), var(--surface)); }
.vod-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.vod-logo { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 14px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.vod-logo img { width: 72px; height: 48px; object-fit: contain; }
.vod-logo.no-img img { display: none; }
.vod-logo span { font-size: .78rem; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vod-ask { display: flex; align-items: center; gap: 16px; margin-top: var(--s4); padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--accent-line, rgba(255,194,26,.35)); background: var(--accent-soft); }
.vod-ask > .icon { width: 30px; height: 30px; color: var(--accent); flex: none; }
.vod-ask > div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.vod-ask b { color: #fff; font-size: 1.05rem; }
.vod-ask span { color: var(--text-2); font-size: .9rem; }
@media (max-width: 760px) {
    .vod-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vod-ask { flex-direction: column; text-align: center; }
    .vod-ask .btn { width: 100%; }
}

.req-similar { padding: 12px 14px; border-radius: var(--r); border: 1px solid rgba(34, 197, 94, .3); background: rgba(34, 197, 94, .06); font-size: .86rem; }
.req-similar ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.req-similar li { display: flex; justify-content: space-between; gap: 10px; color: #fff; }
.req-similar li small { color: var(--muted); }
.req-langs { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.req-langs .fw-chip > span { padding: 10px 12px 10px 38px; }
.req-mine, .req-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req-mine li { display: grid; gap: 6px; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.req-top { display: flex; gap: 6px; flex-wrap: wrap; }
.req-title { color: #fff; overflow-wrap: anywhere; }
.req-note { margin: 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-3); font-size: .84rem; color: var(--text-2); }
.req-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.req-admin li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 16px; align-items: start; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.req-main { display: grid; gap: 6px; min-width: 0; }
.req-details { margin: 4px 0 0; font-size: .86rem; color: var(--text-2); overflow-wrap: anywhere; }
.req-act { display: grid; gap: 8px; }
@media (max-width: 900px) { .req-admin li { grid-template-columns: minmax(0, 1fr); } }

.xtb-body{min-height:100vh;display:grid;place-items:center;padding:24px 16px}
.xtb-main{width:100%;max-width:520px}
.xtb-card{display:grid;gap:18px;padding:28px}
.xtb-head{display:flex;gap:14px;align-items:center}
.xtb-spin{flex:none;width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,255,255,.12);border-top-color:var(--brand,#ffc21a);animation:xtbspin .8s linear infinite}
.xtb-spin.is-done{animation:none;border-color:var(--brand,#ffc21a)}
@keyframes xtbspin{to{transform:rotate(360deg)}}
.xtb-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.xtb-steps li{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:center;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04)}
.xtb-steps .xtb-res{grid-column:2;overflow-wrap:anywhere}
.xtb-dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.25);grid-row:span 2}
.xtb-steps li.is-run .xtb-dot{background:var(--brand,#ffc21a);animation:xtbpulse 1s ease-in-out infinite}
.xtb-steps li.is-ok .xtb-dot{background:#34d399}
.xtb-steps li.is-err .xtb-dot{background:#fb7185}
.xtb-steps li.is-err .xtb-res{color:#fb7185}
@keyframes xtbpulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.xtb-spin,.xtb-steps li.is-run .xtb-dot{animation:none}}
.sub-sync{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:18px 22px}.sub-sync>div{flex:1 1 280px;min-width:0}

@media (pointer: coarse), (max-width: 980px) {
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), textarea, select, [contenteditable=true] { font-size: max(16px, 1em); }
}

.adpv { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.adpv-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.adpv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; align-items: start; }
.adpv-fig { margin: 0; display: grid; gap: 6px; min-width: 0; }
.adpv-fig figcaption { font-size: .75rem; color: var(--muted); display: flex; gap: 6px; align-items: center; justify-content: center; }
.adpv-frame { position: relative; overflow: hidden; border: 1px solid var(--line-2, var(--line)); border-radius: 12px; background: var(--bg); }
.adpv-phone { border-radius: 22px; border-width: 4px; }
.adpv-page { position: absolute; left: 0; top: 0; width: 1280px; transform-origin: 0 0; padding-bottom: 28px; pointer-events: none; }
.adpv-page.is-m { width: 375px; }
.adpv-bar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.adpv-page.is-m .adpv-bar { height: 56px; padding: 0 16px; }
.adpv-bar span { width: 120px; height: 22px; border-radius: 6px; background: var(--accent, #ffc21a); opacity: .85; }
.adpv-bar em { width: 220px; height: 14px; border-radius: 7px; background: var(--line); }
.adpv-page.is-m .adpv-bar em { width: 60px; }
.adpv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.adpv-wrap.is-narrow { max-width: 848px; }
.adpv-page.is-m .adpv-wrap { padding: 0 12px; }
.adpv-cols { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 24px; }
.adpv-sk { display: grid; gap: 12px; margin: 24px 0; }
.adpv-sk i { display: block; height: 14px; border-radius: 7px; background: var(--surface-2, var(--line)); }
.adpv-page.is-m .adpv-sk { gap: 9px; margin: 14px 0; }
.adpv-empty { margin: 24px 0; height: 120px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 22px; }
.adpv-page.is-m .adpv-empty { height: 90px; font-size: 16px; }
@media (max-width: 640px) { .adpv-grid { grid-template-columns: minmax(0, 1fr); } .adpv-fig-m { max-width: 200px; margin: 0 auto; width: 100%; } }
.serp { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.serp-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.serp-modes { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.serp-modes button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); font: 600 .74rem/1 inherit; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.serp-modes button.is-on { background: var(--accent); color: #111; }
.serp-card { background: #fff; color: #202124; border-radius: 12px; padding: 16px 18px; font-family: Arial, "Helvetica Neue", sans-serif; max-width: 652px; width: 100%; box-sizing: border-box; overflow: hidden; }
.serp.is-mob .serp-card { max-width: 380px; padding: 14px; border-radius: 16px; box-shadow: 0 1px 6px rgba(32,33,36,.28); }
.serp-src { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; min-width: 0; }
.serp-fav { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; display: grid; place-items: center; overflow: hidden; }
.serp-fav img { width: 18px; height: 18px; }
.serp-src-t { display: grid; min-width: 0; line-height: 1.25; }
.serp-name { font-size: 14px; color: #202124; }
.serp-url { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp.is-mob .serp-title { white-space: normal; font-size: 18px; color: #1558d6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.serp.is-mob .serp-desc { -webkit-line-clamp: 3; }
.serp-desc.is-empty { font-style: italic; color: #80868b; }
.serp-meter { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.serp-meter .sm-ok { color: #34d399; } .serp-meter .sm-warn { color: #fbbf24; } .serp-meter .sm-bad { color: #fb7185; }

.serp-head > b { color: var(--text, #e6e8ee); display: inline-flex; gap: 6px; align-items: center; }

@media (pointer: coarse), (max-width: 980px) {
    .site-header, .dash-top { background: #0a0b0d; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .bottom-nav { background: #0f1013; backdrop-filter: none; -webkit-backdrop-filter: none; }
    html, body { background-color: #0a0b0d; }
}
@supports (-webkit-touch-callout: none) {
    .site-header { view-transition-name: none; }
}
.push-hero { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 24px; margin-bottom: var(--s3); position: relative; overflow: hidden; }
.push-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 0 0, rgba(255,194,26,.10), transparent 55%); pointer-events: none; }
.push-hero[data-state="on"]::before { background: radial-gradient(ellipse at 0 0, rgba(52,211,153,.12), transparent 55%); }
.push-hero[data-state="denied"]::before, .push-hero[data-state="warn"]::before { background: radial-gradient(ellipse at 0 0, rgba(251,113,133,.12), transparent 55%); }
.push-hero-main { display: flex; gap: 16px; align-items: flex-start; flex: 1 1 360px; min-width: 0; position: relative; }
.push-hero-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,194,26,.12); color: var(--accent); }
.push-hero-ic .icon { width: 26px; height: 26px; }
.push-hero[data-state="on"] .push-hero-ic { background: rgba(52,211,153,.14); color: #34d399; }
.push-hero-txt { min-width: 0; display: grid; gap: 4px; }
.push-hero-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.push-hero-top h2 { font-size: 1.25rem; margin: 0; }
.push-hero-status { margin: 4px 0 0; color: var(--text, #e6e8ee); }
.pwa-diag { overflow-wrap: anywhere; }
.push-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--surface-2, #1a1d23); color: var(--muted); border: 1px solid var(--line); }
.push-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.push-pill[data-state="on"] { color: #34d399; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.push-pill[data-state="off"] { color: #fbbf24; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.push-pill[data-state="denied"], .push-pill[data-state="warn"] { color: #fb7185; border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08); }
.push-hero-act { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.push-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s3); align-items: start; }
.push-devices, .push-log, .push-staff { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.push-devices li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.push-devices li.is-me { border-color: rgba(52,211,153,.4); }
.pd-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.pd-body { display: grid; gap: 2px; min-width: 0; }
.pd-body b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pd-body small { overflow-wrap: anywhere; }
.pd-this { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(52,211,153,.14); color: #34d399; }
.pd-warn { color: #fbbf24; }
.push-log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.push-log li > div { display: grid; gap: 2px; min-width: 0; }
.pl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.push-log li.is-ok .pl-dot { background: #34d399; } .push-log li.is-err .pl-dot { background: #fb7185; } .push-log li.is-idle .pl-dot { background: #fbbf24; }
.pl-codes { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; color: var(--muted); overflow-wrap: anywhere; }
.push-staff li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.push-staff li:last-child { border-bottom: 0; }
.push-tabs { margin-bottom: 12px; }
.push-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.push-steps.hidden { display: none; }
@media (max-width: 980px) { .push-grid { grid-template-columns: minmax(0, 1fr); } .push-hero-act { width: 100%; } .push-hero-act .btn { flex: 1 1 auto; justify-content: center; } }