:root{
  --bg:#0a0c10; --bg-2:#0d1015;
  --surface:#12151c; --surface-2:#181c25; --surface-3:#1f2430;
  --border:rgba(255,255,255,.07); --border-2:rgba(255,255,255,.12); --border-3:rgba(255,255,255,.2);
  --text:#e8ebf1; --text-2:#a4adbb; --text-3:#6c7585;
  --accent:#ff6a3d; --accent-2:#ff9b62; --accent-soft:rgba(255,106,61,.12); --accent-line:rgba(255,106,61,.35);
  --cyan:#38bdf8; --green:#34d399; --violet:#a78bfa; --amber:#fbbf24; --pink:#f472b6; --red:#f87171; --teal:#2dd4bf; --lime:#a3e635;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg:0 24px 60px rgba(0,0,0,.5);
  --r:14px; --r-sm:10px; --r-xs:7px;
  --font:'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono:'JetBrains Mono', ui-monospace, monospace;
  --header:64px;
  color-scheme:dark;
}
[data-theme="light"]{
  --bg:#f4f5f8; --bg-2:#eceef3;
  --surface:#ffffff; --surface-2:#f7f8fa; --surface-3:#eef0f4;
  --border:rgba(15,23,42,.08); --border-2:rgba(15,23,42,.13); --border-3:rgba(15,23,42,.22);
  --text:#0f172a; --text-2:#475467; --text-3:#8a93a3;
  --accent-soft:rgba(255,106,61,.1);
  --shadow:0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg:0 24px 60px rgba(15,23,42,.18);
  color-scheme:light;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{overflow-x:hidden; scroll-behavior:smooth;}
body{background:var(--bg); color:var(--text); font-family:var(--font); font-size:14px; line-height:1.7; min-height:100vh; overflow-x:hidden; -webkit-font-smoothing:antialiased;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}
input,textarea,select{font-family:inherit; color:inherit;}
img{max-width:100%; display:block;}
::selection{background:var(--accent); color:#fff;}
::-webkit-scrollbar{width:10px; height:10px;}
::-webkit-scrollbar-thumb{background:var(--surface-3); border-radius:10px; border:2px solid var(--bg);}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:6px;}
.mono{font-family:var(--mono);}
.muted{color:var(--text-2);} .faint{color:var(--text-3);}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}

/* ambient background */
.ambient{position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden;}
.ambient::before{content:''; position:absolute; width:900px; height:900px; top:-450px; right:-200px; background:radial-gradient(circle, rgba(255,106,61,.10), transparent 62%);}
.ambient::after{content:''; position:absolute; width:800px; height:800px; bottom:-400px; left:-250px; background:radial-gradient(circle, rgba(56,189,248,.07), transparent 62%);}
.grid-lines{position:fixed; inset:0; pointer-events:none; z-index:0; background-image:linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size:56px 56px; mask-image:radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity:.5;}

/* ---------- HEADER ---------- */
.hdr{position:sticky; top:0; z-index:100; height:var(--header); background:color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter:saturate(1.4) blur(14px); border-bottom:1px solid var(--border);}
.hdr-in{max-width:1320px; margin:0 auto; height:100%; display:flex; align-items:center; gap:18px; padding:0 22px;}
.logo{display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; letter-spacing:.2px; white-space:nowrap;}
.logo-mark{width:34px; height:34px; position:relative; flex-shrink:0;}
.logo-mark svg{width:100%; height:100%;}
.logo small{display:block; font-size:10.5px; font-weight:500; color:var(--text-3); letter-spacing:.3px; margin-top:-3px;}
.nav{display:flex; gap:2px;}
.nav a{display:flex; align-items:center; gap:7px; padding:8px 12px; border-radius:9px; color:var(--text-2); font-size:13.5px; font-weight:500; transition:.15s;}
.nav a i{font-size:13px; opacity:.85;}
.nav a:hover{color:var(--text); background:var(--surface-2);}
.nav a.on{color:var(--text); background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--border);}
.hdr-search{margin-right:auto; display:flex; align-items:center; gap:10px; height:38px; min-width:240px; padding:0 12px; border-radius:10px; background:var(--surface); border:1px solid var(--border); color:var(--text-3); font-size:13px; transition:.15s;}
.hdr-search:hover{border-color:var(--border-2); color:var(--text-2);}
.kbd{font-family:var(--mono); font-size:10.5px; padding:2px 6px; border-radius:5px; border:1px solid var(--border-2); background:var(--surface-2); color:var(--text-2); margin-right:auto;}
.icon-btn{width:38px; height:38px; display:grid; place-items:center; border-radius:10px; color:var(--text-2); border:1px solid var(--border); background:var(--surface); transition:.15s; flex-shrink:0;}
.icon-btn:hover{color:var(--text); border-color:var(--border-2);}
.icon-btn .dot{position:absolute; top:8px; left:9px; width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 2px var(--surface);}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; height:38px; padding:0 16px; border-radius:10px; font-size:13.5px; font-weight:600; transition:.15s; white-space:nowrap;}
.btn-primary{background:linear-gradient(135deg,var(--accent),#ff4d2e); color:#fff; box-shadow:0 6px 18px -6px rgba(255,106,61,.6), inset 0 1px 0 rgba(255,255,255,.2);}
.btn-primary:hover{filter:brightness(1.08); transform:translateY(-1px);}
.btn-ghost{background:var(--surface); border:1px solid var(--border); color:var(--text);}
.btn-ghost:hover{border-color:var(--border-2); background:var(--surface-2);}
.btn-sm{height:32px; padding:0 12px; font-size:12.5px; border-radius:8px;}
.me{display:flex; align-items:center; gap:8px; padding:4px 4px 4px 10px; border-radius:12px; border:1px solid var(--border); background:var(--surface); flex-shrink:0;}
.me span{font-size:12.5px; font-weight:600;}
.burger{display:none;}

/* ---------- LAYOUT ---------- */
.page{position:relative; z-index:1; max-width:1320px; margin:0 auto; padding:26px 22px 60px; min-height:calc(100vh - var(--header) - 140px);}
.cols{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:22px; align-items:start;}
.stack{display:flex; flex-direction:column; gap:22px;}
.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--r); box-shadow:var(--shadow);}
.card-h{display:flex; align-items:center; gap:10px; padding:16px 18px; border-bottom:1px solid var(--border);}
.card-h h3{font-size:14.5px; font-weight:700;}
.card-h .more{margin-right:auto; font-size:12.5px; color:var(--text-2); display:flex; align-items:center; gap:6px;}
.card-h .more:hover{color:var(--accent);}
.card-b{padding:16px 18px;}
.ico-badge{width:30px; height:30px; border-radius:9px; display:grid; place-items:center; font-size:13px; flex-shrink:0;}
.section-title{display:flex; align-items:flex-end; gap:12px; margin-bottom:14px;}
.section-title h2{font-size:19px; font-weight:700; letter-spacing:-.2px;}
.section-title p{font-size:13px; color:var(--text-2);}
.section-title .more{margin-right:auto;}
.crumbs{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-3); margin-bottom:14px; flex-wrap:wrap;}
.crumbs a:hover{color:var(--accent);}
.crumbs i{font-size:9px;}

/* ---------- HERO ---------- */
.hero{display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:22px; margin-bottom:22px;}
.hero-main{position:relative; overflow:hidden; padding:34px 34px 28px; border-radius:20px; background:
  radial-gradient(120% 140% at 100% 0%, rgba(255,106,61,.20), transparent 55%),
  radial-gradient(90% 120% at 0% 100%, rgba(56,189,248,.10), transparent 60%), var(--surface); border:1px solid var(--border); box-shadow:var(--shadow);}
.hero-main .eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:600; color:var(--accent-2); background:var(--accent-soft); border:1px solid var(--accent-line); padding:5px 11px; border-radius:20px;}
.hero-main .eyebrow .live{width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(52,211,153,.2); animation:live 1.8s infinite;}
@keyframes live{50%{box-shadow:0 0 0 6px rgba(52,211,153,0);}}
.hero-main h1{font-size:34px; line-height:1.35; font-weight:700; letter-spacing:-.5px; margin:16px 0 12px; max-width:560px;}
.hero-main h1 em{font-style:normal; background:linear-gradient(90deg,var(--accent),var(--amber)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.hero-main p{color:var(--text-2); font-size:14.5px; max-width:520px; margin-bottom:22px;}
.hero-search{display:flex; align-items:center; gap:12px; height:52px; padding:0 16px; border-radius:14px; background:var(--bg-2); border:1px solid var(--border-2); color:var(--text-3); font-size:14px; max-width:540px; transition:.15s; width:100%;}
.hero-search:hover{border-color:var(--accent-line); color:var(--text-2);}
.hero-search i{color:var(--accent);}
.hero-quick{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px;}
.hero-quick a{font-size:12px; color:var(--text-2); padding:5px 11px; border-radius:20px; border:1px solid var(--border); background:var(--surface-2);}
.hero-quick a:hover{color:var(--text); border-color:var(--border-2);}
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:26px; max-width:560px;}
.stat{padding:12px 14px; border-radius:12px; background:color-mix(in srgb, var(--surface-2) 70%, transparent); border:1px solid var(--border);}
.stat b{display:block; font-size:21px; font-weight:700; font-family:var(--mono); letter-spacing:-.5px;}
.stat span{font-size:11.5px; color:var(--text-3);}
.stone{position:absolute; left:28px; bottom:20px; width:190px; opacity:.9; pointer-events:none;}

/* featured carousel */
.feature{position:relative; border-radius:20px; overflow:hidden; border:1px solid var(--border); background:var(--surface); box-shadow:var(--shadow); min-height:100%;}
.feature-slide{position:absolute; inset:0; opacity:0; transition:opacity .6s ease; display:flex; flex-direction:column; justify-content:flex-end;}
.feature-slide.on{opacity:1; z-index:1;}
.feature-slide img, .feature-slide .fallback{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scale(1.04); transition:transform 6s ease;}
.feature-slide.on img{transform:scale(1);}
.feature-slide::after{content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 20%, rgba(5,6,9,.55) 55%, rgba(5,6,9,.95));}
.feature-cap{position:relative; z-index:2; padding:22px 24px 54px; color:#fff;}
.feature-cap .lbl{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; padding:4px 10px; border-radius:20px; background:rgba(255,255,255,.14); backdrop-filter:blur(6px); margin-bottom:10px;}
.feature-cap h3{font-size:20px; line-height:1.5; font-weight:700; margin-bottom:8px;}
.feature-cap .m{display:flex; gap:14px; font-size:12px; color:rgba(255,255,255,.75); align-items:center;}
.feature-dots{position:absolute; z-index:3; bottom:20px; right:24px; display:flex; gap:6px;}
.feature-dots button{width:22px; height:4px; border-radius:4px; background:rgba(255,255,255,.3); transition:.3s;}
.feature-dots button.on{width:38px; background:var(--accent);}
.feature-tag{position:absolute; z-index:3; top:18px; right:18px; font-size:11.5px; font-weight:600; color:#fff; display:flex; align-items:center; gap:6px; padding:6px 11px; border-radius:20px; background:rgba(0,0,0,.45); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.12);}

/* ---------- SECTIONS GRID ---------- */
.sec-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px;}
.sec{position:relative; padding:16px; border-radius:var(--r); background:var(--surface); border:1px solid var(--border); overflow:hidden; transition:.2s; display:flex; flex-direction:column; gap:10px; min-height:132px;}
.sec::before{content:''; position:absolute; inset:0; background:radial-gradient(120% 90% at 100% 0%, var(--c-soft), transparent 60%); opacity:.8; transition:.2s;}
.sec:hover{transform:translateY(-3px); border-color:var(--c-line); box-shadow:0 14px 30px -14px var(--c-soft);}
.sec > *{position:relative;}
.sec .top{display:flex; align-items:center; gap:10px;}
.sec .ic{width:40px; height:40px; border-radius:11px; display:grid; place-items:center; font-size:16px; color:var(--c); background:var(--c-soft); border:1px solid var(--c-line);}
.sec .count{margin-right:auto; font-family:var(--mono); font-size:12px; color:var(--text-2); background:var(--surface-2); border:1px solid var(--border); padding:2px 8px; border-radius:7px;}
.sec h4{font-size:14px; font-weight:700;}
.sec p{font-size:12px; color:var(--text-3); line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.sec .last{font-size:11.5px; color:var(--text-2); margin-top:auto; display:flex; align-items:center; gap:6px; white-space:nowrap; overflow:hidden;}
.sec .last span{overflow:hidden; text-overflow:ellipsis;}
.sec.empty{opacity:.75;}
.sec.empty .last{color:var(--text-3);}

/* ---------- TABS / CHIPS ---------- */
.tabs{display:flex; gap:4px; padding:4px; border-radius:12px; background:var(--surface); border:1px solid var(--border); width:fit-content; max-width:100%; overflow-x:auto;}
.tabs button{display:flex; align-items:center; gap:7px; padding:7px 14px; border-radius:9px; font-size:13px; font-weight:600; color:var(--text-2); white-space:nowrap; transition:.15s;}
.tabs button:hover{color:var(--text);}
.tabs button.on{background:var(--surface-3); color:var(--text); box-shadow:0 1px 2px rgba(0,0,0,.2);}
.tabs button .n{font-family:var(--mono); font-size:11px; color:var(--text-3);}
.chip{display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 9px; border-radius:7px; font-size:11.5px; font-weight:600; white-space:nowrap; color:var(--c, var(--text-2)); background:var(--c-soft, var(--surface-2)); border:1px solid var(--c-line, var(--border));}
.chip i{font-size:10.5px;}
.pill{display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 13px; border-radius:9px; font-size:12.5px; font-weight:600; color:var(--text-2); background:var(--surface); border:1px solid var(--border); transition:.15s; white-space:nowrap;}
.pill:hover{color:var(--text); border-color:var(--border-2);}
.pill.on{color:var(--accent); border-color:var(--accent-line); background:var(--accent-soft);}

/* ---------- TOPIC CARDS ---------- */
.t-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px;}
.tc{display:flex; flex-direction:column; border-radius:var(--r); background:var(--surface); border:1px solid var(--border); overflow:hidden; transition:.2s; position:relative;}
.tc:hover{transform:translateY(-3px); border-color:var(--border-2); box-shadow:var(--shadow-lg);}
.tc-media{position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--surface-2);}
.tc-media img{width:100%; height:100%; object-fit:cover; transition:transform .5s;}
.tc:hover .tc-media img{transform:scale(1.05);}
.tc-media .fallback{position:absolute; inset:0; display:grid; place-items:center;}
.tc-media .badges{position:absolute; top:10px; right:10px; left:10px; display:flex; gap:6px; z-index:2;}
.tc-media .badges .chip{background:rgba(8,10,14,.72); color:#fff; border-color:rgba(255,255,255,.12); backdrop-filter:blur(6px);}
.tc-media .play{position:absolute; inset:0; display:grid; place-items:center; z-index:1; opacity:0; transition:.2s;}
.tc-media .play span{width:46px; height:46px; border-radius:50%; display:grid; place-items:center; background:rgba(255,106,61,.92); color:#fff; font-size:15px; box-shadow:0 8px 24px rgba(0,0,0,.4);}
.tc:hover .play{opacity:1;}
.tc-body{padding:14px 15px 12px; display:flex; flex-direction:column; gap:8px; flex:1;}
.tc-body h4{font-size:14px; font-weight:700; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.tc-body p{font-size:12px; color:var(--text-3); line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.tc-foot{display:flex; align-items:center; gap:8px; padding:10px 15px; border-top:1px solid var(--border); font-size:11.5px; color:var(--text-3); margin-top:auto;}
.tc-foot .who{display:flex; align-items:center; gap:7px; color:var(--text-2); font-weight:600; min-width:0;}
.tc-foot .who span{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.tc-foot .st{margin-right:auto; display:flex; gap:10px; white-space:nowrap;}
.tc-foot .st i{margin-left:3px;}
.res-icons{display:flex; gap:6px;}
.res-icons span{width:22px; height:22px; border-radius:6px; display:grid; place-items:center; font-size:10px; background:var(--surface-2); border:1px solid var(--border); color:var(--text-2);}
.res-icons .ok{color:var(--green);}

/* list rows */
.t-list{display:flex; flex-direction:column;}
.tr{display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:14px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--border); transition:.15s;}
.tr:last-child{border-bottom:none;}
.tr:hover{background:var(--surface-2);}
.tr-thumb{width:72px; height:46px; border-radius:8px; overflow:hidden; background:var(--surface-2); position:relative;}
.tr-thumb img{width:100%; height:100%; object-fit:cover;}
.tr h4{font-size:13.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.tr .m{display:flex; gap:10px; align-items:center; font-size:11.5px; color:var(--text-3); margin-top:3px; flex-wrap:wrap;}
.tr .nums{display:flex; gap:16px; font-family:var(--mono); font-size:12px; color:var(--text-2); text-align:center;}
.tr .nums b{display:block; color:var(--text); font-size:13px;}
.tr .nums small{font-size:10px; color:var(--text-3); font-family:var(--font);}

/* compact rows (sidebar) */
.mini{display:flex; align-items:center; gap:10px; padding:10px 18px; border-bottom:1px solid var(--border); transition:.15s;}
.mini:last-child{border-bottom:none;}
.mini:hover{background:var(--surface-2);}
.mini .rk{width:22px; font-family:var(--mono); font-size:12px; color:var(--text-3); text-align:center;}
.mini .nm{flex:1; min-width:0;}
.mini .nm b{display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.mini .nm span{font-size:11px; color:var(--text-3);}
.mini .pt{font-family:var(--mono); font-size:12.5px; font-weight:700;}

/* avatar */
.av{border-radius:50%; flex-shrink:0; object-fit:cover; background:var(--surface-3); display:grid; place-items:center; color:#fff; font-weight:700; overflow:hidden; position:relative;}
.av-ring{display:inline-flex; vertical-align:middle; flex-shrink:0; line-height:0; padding:2px; border-radius:50%; background:conic-gradient(from 180deg, var(--tier, var(--border-2)), transparent 70%, var(--tier, var(--border-2)));}
.av-ring .av{border:2px solid var(--surface);}

/* tier badge */
.tier{display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 9px 0 10px; border-radius:7px; font-size:11.5px; font-weight:700; color:var(--tier); background:color-mix(in srgb, var(--tier) 13%, transparent); border:1px solid color-mix(in srgb, var(--tier) 35%, transparent); white-space:nowrap;}
.tier svg{width:13px; height:13px;}

/* ---------- WIDGETS ---------- */
.online{display:flex; align-items:center; gap:10px; padding:14px 18px;}
.online .stack-av{display:flex;}
.online .stack-av .av{margin-left:-8px; border:2px solid var(--surface);}
.online .lbl{font-size:12.5px; color:var(--text-2);}
.online .lbl b{color:var(--green);}
.chart-wrap{padding:8px 14px 14px;}
.chart-wrap svg{width:100%; height:auto; overflow:visible;}
.legend{display:flex; flex-wrap:wrap; gap:8px 14px; padding:0 18px 16px; font-size:12px; color:var(--text-2);}
.legend span{display:flex; align-items:center; gap:6px;}
.legend i{width:9px; height:9px; border-radius:3px; display:inline-block;}
.donut-box{display:flex; align-items:center; gap:16px; padding:16px 18px 6px;}
.donut-box .center b{display:block; font-size:22px; font-family:var(--mono);}
.donut-box .center span{font-size:11.5px; color:var(--text-3);}

/* ---------- SECTION PAGE ---------- */
.sec-hero{position:relative; overflow:hidden; border-radius:20px; padding:28px 30px; margin-bottom:18px; border:1px solid var(--border); background:radial-gradient(110% 160% at 100% 0%, var(--c-soft), transparent 55%), var(--surface); box-shadow:var(--shadow);}
.sec-hero .ic{width:56px; height:56px; border-radius:15px; display:grid; place-items:center; font-size:22px; color:var(--c); background:var(--c-soft); border:1px solid var(--c-line);}
.sec-hero .row{display:flex; gap:18px; align-items:center;}
.sec-hero h1{font-size:26px; font-weight:700; letter-spacing:-.3px;}
.sec-hero p{color:var(--text-2); max-width:640px; font-size:13.5px; margin-top:4px;}
.sec-hero .kpis{display:flex; gap:26px; margin-top:20px; flex-wrap:wrap;}
.sec-hero .kpis div b{display:block; font-family:var(--mono); font-size:19px;}
.sec-hero .kpis div span{font-size:11.5px; color:var(--text-3);}
.sec-hero .bigic{position:absolute; left:-10px; bottom:-40px; font-size:180px; color:var(--c); opacity:.06; transform:rotate(-12deg);}
.toolbar{display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap;}
.toolbar .grow{flex:1;}
.searchbox{display:flex; align-items:center; gap:8px; height:36px; padding:0 12px; border-radius:10px; background:var(--surface); border:1px solid var(--border); min-width:220px;}
.searchbox input{background:none; border:none; outline:none; font-size:13px; width:100%;}
.select{height:36px; padding:0 12px; border-radius:10px; background:var(--surface); border:1px solid var(--border); font-size:13px; outline:none;}
.viewtoggle{display:flex; padding:3px; border-radius:10px; background:var(--surface); border:1px solid var(--border);}
.viewtoggle button{width:32px; height:28px; border-radius:7px; color:var(--text-3);}
.viewtoggle button.on{background:var(--surface-3); color:var(--text);}
.side-nav a{display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:9px; font-size:13px; color:var(--text-2); transition:.15s;}
.side-nav a:hover{background:var(--surface-2); color:var(--text);}
.side-nav a.on{background:var(--accent-soft); color:var(--accent-2);}
.side-nav a i{width:16px; text-align:center; color:var(--c, inherit);}
.side-nav a .n{margin-right:auto; font-family:var(--mono); font-size:11px; color:var(--text-3);}
.side-nav .grp{font-size:11px; font-weight:700; color:var(--text-3); padding:12px 12px 6px; letter-spacing:.3px;}

.pager{display:flex; align-items:center; justify-content:center; gap:6px; margin-top:22px;}
.pager button{min-width:36px; height:36px; padding:0 10px; border-radius:9px; font-family:var(--mono); font-size:13px; color:var(--text-2); background:var(--surface); border:1px solid var(--border);}
.pager button:hover:not(:disabled){border-color:var(--border-2); color:var(--text);}
.pager button.on{background:var(--accent); color:#fff; border-color:var(--accent);}
.pager button:disabled{opacity:.35; cursor:default;}
.pager .info{font-size:12px; color:var(--text-3); margin:0 8px;}

.empty-state{padding:50px 20px; text-align:center; color:var(--text-2);}
.empty-state .ic{width:56px; height:56px; margin:0 auto 14px; border-radius:16px; display:grid; place-items:center; font-size:22px; background:var(--surface-2); border:1px solid var(--border); color:var(--text-3);}
.empty-state h4{font-size:15px; color:var(--text); margin-bottom:4px;}

/* ---------- TOPIC PAGE ---------- */
.topic-head{margin-bottom:18px;}
.topic-head h1{font-size:28px; line-height:1.45; font-weight:700; letter-spacing:-.3px; margin:10px 0 12px;}
.topic-head .meta{display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:12.5px; color:var(--text-2);}
.topic-head .meta .who{display:flex; align-items:center; gap:9px; font-weight:600; color:var(--text);}
.topic-head .sep{width:4px; height:4px; border-radius:50%; background:var(--text-3);}
.post{padding:26px 28px;}
.prose{font-size:15px; line-height:2.05; color:var(--text); overflow-wrap:anywhere;}
.prose > * + *{margin-top:12px;}
.prose h3{font-size:19px; font-weight:700; margin-top:22px; line-height:1.6;}
.prose h4{font-size:16px; font-weight:700; margin-top:18px;}
.prose a{color:var(--accent-2); text-decoration:underline; text-decoration-color:var(--accent-line); text-underline-offset:3px;}
.prose a:hover{text-decoration-color:var(--accent);}
.prose img{border-radius:12px; border:1px solid var(--border); margin:8px 0;}
.prose video{width:100%; border-radius:12px; border:1px solid var(--border);}
.prose hr{border:none; height:1px; background:var(--border-2); margin:20px 0;}
.prose ul{padding-right:22px;}
.prose blockquote{border-right:3px solid var(--accent); padding:8px 14px; background:var(--surface-2); border-radius:8px;}
.prose code{font-family:var(--mono); font-size:13px; background:var(--surface-3); padding:1px 6px; border-radius:5px;}
.prose pre{font-family:var(--mono); background:var(--bg-2); border:1px solid var(--border); border-radius:12px; padding:14px 16px; overflow-x:auto; direction:ltr; text-align:left; font-size:13px; line-height:1.75;}
.prose .center{text-align:center;}
.prose .mention{color:var(--cyan); background:rgba(56,189,248,.1); padding:1px 6px; border-radius:6px; font-weight:600;}
.embed-yt{position:relative; aspect-ratio:16/9; border-radius:14px; overflow:hidden; border:1px solid var(--border); background:#000; margin:10px 0;}
.embed-yt iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
.embed-card{display:flex !important; align-items:center; gap:12px; padding:14px 16px; border-radius:12px; border:1px solid var(--border-2); background:var(--surface-2); text-decoration:none !important; color:var(--text) !important; margin:8px 0;}
.embed-card i{font-size:20px; color:var(--green);}
.embed-card span{font-weight:700;}
.embed-card small{margin-right:auto; color:var(--text-3); font-family:var(--mono); font-size:11.5px; direction:ltr;}
.locked-box{display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:12px; margin:10px 0; border:1px dashed var(--accent-line); background:repeating-linear-gradient(-45deg, var(--accent-soft), var(--accent-soft) 10px, transparent 10px, transparent 20px);}
.locked-box > i{width:40px; height:40px; border-radius:11px; display:grid; place-items:center; background:var(--accent); color:#fff; font-size:15px; flex-shrink:0;}
.locked-box b{display:block; font-size:14px;}
.locked-box span{font-size:12.5px; color:var(--text-2);}
.post-actions{display:flex; align-items:center; gap:8px; padding:14px 28px; border-top:1px solid var(--border); flex-wrap:wrap;}
.react{display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 12px; border-radius:9px; font-size:12.5px; font-weight:600; color:var(--text-2); background:var(--surface-2); border:1px solid var(--border); transition:.15s;}
.react:hover{color:var(--text); border-color:var(--border-2);}
.react.on{color:var(--accent); border-color:var(--accent-line); background:var(--accent-soft);}

.res-panel .row{display:flex; align-items:center; gap:12px; padding:12px 18px; border-bottom:1px solid var(--border); font-size:13px;}
.res-panel .row:last-child{border-bottom:none;}
.res-panel .row .k{color:var(--text-3); font-size:12px; width:86px; flex-shrink:0;}
.res-panel .row .v{font-weight:600; min-width:0;}
.dl{display:flex; align-items:center; gap:12px; padding:12px 14px; margin:0 14px 10px; border-radius:12px; background:var(--surface-2); border:1px solid var(--border); transition:.15s;}
.dl:hover{border-color:var(--border-2);}
.dl .ico-badge{background:rgba(52,211,153,.12); color:var(--green);}
.dl.locked .ico-badge{background:var(--accent-soft); color:var(--accent);}
.dl b{display:block; font-size:13px;}
.dl span{font-size:11.5px; color:var(--text-3); direction:ltr; display:block; text-align:right;}
.dl .go{margin-right:auto; color:var(--text-3);}
.scan-ok{display:flex; align-items:center; gap:10px; margin:0 14px 14px; padding:11px 14px; border-radius:12px; background:rgba(52,211,153,.08); border:1px solid rgba(52,211,153,.25); color:var(--green); font-size:12.5px; font-weight:600;}
.scan-ok a{margin-right:auto; font-size:11.5px; text-decoration:underline;}

.author-card{padding:20px 18px; text-align:center;}
.author-card .av-ring{width:fit-content; margin:0 auto 10px;}
.author-card h4{font-size:16px;}
.author-card .grps{display:flex; gap:6px; justify-content:center; margin:8px 0 14px; flex-wrap:wrap;}
.author-card .nums{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px;}
.author-card .nums div{padding:9px 4px; border-radius:10px; background:var(--surface-2); border:1px solid var(--border);}
.author-card .nums b{display:block; font-family:var(--mono); font-size:15px;}
.author-card .nums span{font-size:10.5px; color:var(--text-3);}
.badge-row{display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:14px;}
.bdg{width:30px; height:30px; border-radius:9px; display:grid; place-items:center; font-size:12px; color:#fff;}

.reply{display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px; padding:20px 24px; border-bottom:1px solid var(--border);}
.reply:last-child{border-bottom:none;}
.reply .head{display:flex; align-items:center; gap:10px; margin-bottom:6px; flex-wrap:wrap;}
.reply .head b{font-size:13.5px;}
.reply .head time{font-size:12px; color:var(--text-3);}
.reply .prose{font-size:14px; line-height:1.95;}
.reply.best{background:linear-gradient(90deg, transparent, rgba(52,211,153,.06));}
.best-tag{color:var(--green); font-size:11.5px; font-weight:700; display:inline-flex; gap:5px; align-items:center;}

.composer{padding:16px 20px 18px;}
.composer .bar{display:flex; gap:2px; padding:6px; border:1px solid var(--border); border-bottom:none; border-radius:12px 12px 0 0; background:var(--surface-2); flex-wrap:wrap;}
.composer .bar button{width:32px; height:30px; border-radius:7px; color:var(--text-2); font-size:12.5px;}
.composer .bar button:hover{background:var(--surface-3); color:var(--text);}
.composer .bar .sp{width:1px; background:var(--border-2); margin:4px 4px;}
.composer textarea{width:100%; min-height:110px; resize:vertical; padding:14px; border-radius:0 0 12px 12px; border:1px solid var(--border); background:var(--bg-2); outline:none; font-size:14px; line-height:1.8;}
.composer textarea:focus{border-color:var(--accent-line);}
.composer .foot{display:flex; align-items:center; gap:10px; margin-top:12px;}
.composer .foot .hint{font-size:12px; color:var(--text-3);}

/* ---------- LEADERBOARD ---------- */
.podium{display:grid; grid-template-columns:1fr 1.15fr 1fr; gap:16px; align-items:end; margin-bottom:22px;}
.pod{position:relative; text-align:center; padding:24px 16px 20px; border-radius:20px; border:1px solid var(--border); background:radial-gradient(100% 80% at 50% 0%, color-mix(in srgb, var(--medal) 18%, transparent), transparent 70%), var(--surface); box-shadow:var(--shadow); overflow:hidden;}
.pod.first{padding-top:34px; padding-bottom:28px; border-color:color-mix(in srgb, var(--medal) 45%, transparent);}
.pod .place{position:absolute; top:14px; right:16px; font-family:var(--mono); font-size:30px; font-weight:700; color:var(--medal); opacity:.25;}
.pod .crown{color:var(--medal); font-size:20px; margin-bottom:8px; filter:drop-shadow(0 4px 12px color-mix(in srgb, var(--medal) 60%, transparent));}
.pod .av-ring{width:fit-content; margin:0 auto 12px;}
.pod h3{font-size:17px; margin-bottom:6px;}
.pod .pts{font-family:var(--mono); font-size:26px; font-weight:700; color:var(--medal); margin:10px 0 2px;}
.pod .pts small{font-size:12px; color:var(--text-3); font-family:var(--font);}
.pod .sub{display:flex; justify-content:center; gap:14px; font-size:12px; color:var(--text-2); margin-top:10px;}
.lb-table{width:100%; border-collapse:collapse;}
.lb-table th{font-size:11.5px; font-weight:600; color:var(--text-3); text-align:right; padding:12px 16px; border-bottom:1px solid var(--border);}
.lb-table td{padding:12px 16px; border-bottom:1px solid var(--border); font-size:13px;}
.lb-table tr:last-child td{border-bottom:none;}
.lb-table tbody tr{transition:.15s;}
.lb-table tbody tr:hover{background:var(--surface-2);}
.lb-table .num{font-family:var(--mono);}
.lb-user{display:flex; align-items:center; gap:10px; font-weight:700;}
.xp{height:6px; border-radius:6px; background:var(--surface-3); overflow:hidden; min-width:90px;}
.xp i{display:block; height:100%; border-radius:6px; background:linear-gradient(90deg,var(--tier,var(--accent)),color-mix(in srgb,var(--tier,var(--accent)) 60%, #fff));}
.tiers{display:grid; grid-template-columns:repeat(6,1fr); gap:10px;}
.tier-card{padding:14px 12px; border-radius:12px; border:1px solid var(--border); background:var(--surface-2); text-align:center;}
.tier-card .emb{width:42px; height:42px; margin:0 auto 8px; color:var(--tier);}
.tier-card b{display:block; font-size:13px; color:var(--tier);}
.tier-card span{font-size:11px; color:var(--text-3); font-family:var(--mono);}

/* ---------- BADGES ---------- */
.b-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px;}
.b-card{position:relative; padding:20px; border-radius:var(--r); border:1px solid var(--border); background:var(--surface); overflow:hidden; transition:.2s;}
.b-card:hover{transform:translateY(-3px); border-color:color-mix(in srgb, var(--bc) 40%, transparent);}
.b-card::before{content:''; position:absolute; top:-60px; left:-60px; width:180px; height:180px; border-radius:50%; background:var(--bc); opacity:.1; filter:blur(30px);}
.b-card .hex{width:58px; height:58px; display:grid; place-items:center; font-size:22px; color:#fff; clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0 50%); background:linear-gradient(145deg, var(--bc), color-mix(in srgb, var(--bc) 55%, #000)); margin-bottom:14px; position:relative;}
.b-card h4{font-size:15px; margin-bottom:4px; position:relative;}
.b-card p{font-size:12.5px; color:var(--text-2); min-height:40px; position:relative;}
.b-card .foot{display:flex; align-items:center; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid var(--border); position:relative; font-size:12px; color:var(--text-3);}
.b-card .holders{display:flex;}
.b-card .holders .av{margin-left:-7px; border:2px solid var(--surface);}
.b-card .rare{position:absolute; top:16px; left:16px; font-size:10.5px; font-weight:700; color:var(--amber); background:rgba(251,191,36,.12); border:1px solid rgba(251,191,36,.3); padding:2px 8px; border-radius:20px;}

/* ---------- PROFILE ---------- */
.prof-cover{height:220px; border-radius:20px 20px 0 0; background-size:cover; background-position:center; position:relative; overflow:hidden;}
.prof-cover::after{content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 30%, rgba(8,10,14,.75));}
.prof-head{position:relative; padding:0 28px 22px; display:flex; align-items:flex-end; gap:20px; margin-top:-56px; z-index:2; flex-wrap:wrap;}
.prof-head .av-ring .av{border-width:4px;}
.prof-head h1{font-size:26px; font-weight:700;}
.prof-head .sub{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:6px; font-size:12.5px; color:var(--text-2);}
.prof-head .acts{margin-right:auto; display:flex; gap:8px; padding-bottom:6px;}
.lvl{padding:16px 28px 20px; border-top:1px solid var(--border); display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center;}
.lvl .xp{height:10px; min-width:0;}
.lvl .t{font-size:12px; color:var(--text-3);}
.lvl .t b{color:var(--text);}
.kgrid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
.kpi{padding:16px; border-radius:var(--r); border:1px solid var(--border); background:var(--surface);}
.kpi .ico-badge{margin-bottom:10px;}
.kpi b{display:block; font-family:var(--mono); font-size:22px;}
.kpi span{font-size:12px; color:var(--text-3);}
.heat{display:grid; grid-auto-flow:column; grid-template-rows:repeat(7,1fr); gap:3px; overflow-x:auto; padding-bottom:4px;}
.heat i{width:12px; height:12px; border-radius:3px; background:var(--surface-3);}
.heat i.l1{background:rgba(255,106,61,.3);} .heat i.l2{background:rgba(255,106,61,.55);} .heat i.l3{background:rgba(255,106,61,.8);} .heat i.l4{background:var(--accent);}
.bars .b{display:grid; grid-template-columns:110px minmax(0,1fr) 30px; gap:10px; align-items:center; font-size:12.5px; margin-bottom:10px;}
.bars .b .track{height:8px; border-radius:8px; background:var(--surface-3); overflow:hidden;}
.bars .b .track i{display:block; height:100%; border-radius:8px;}
.bars .b em{font-style:normal; font-family:var(--mono); font-size:12px; color:var(--text-2); text-align:left;}
.form{display:grid; gap:16px; max-width:640px;}
.field label{display:block; font-size:12.5px; font-weight:600; margin-bottom:6px;}
.field input, .field textarea, .field select{width:100%; height:42px; padding:0 14px; border-radius:10px; background:var(--bg-2); border:1px solid var(--border); outline:none; font-size:14px;}
.field textarea{height:auto; min-height:90px; padding:12px 14px; resize:vertical;}
.field input:focus, .field textarea:focus, .field select:focus{border-color:var(--accent-line);}
.field small{display:block; margin-top:5px; font-size:11.5px; color:var(--text-3);}
.switch{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-radius:12px; border:1px solid var(--border); background:var(--surface-2);}
.switch b{display:block; font-size:13px;} .switch span{font-size:12px; color:var(--text-3);}
.toggle{width:42px; height:24px; border-radius:20px; background:var(--surface-3); position:relative; flex-shrink:0; transition:.2s;}
.toggle::after{content:''; position:absolute; top:3px; right:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:.2s;}
.toggle.on{background:var(--accent);}
.toggle.on::after{right:21px;}

/* ---------- COMPOSER (Topic Builder) ---------- */
.builder{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:start;}
.palette-blocks{display:grid; grid-template-columns:repeat(4,1fr); gap:8px;}
.pblock{display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 6px; border-radius:12px; border:1px dashed var(--border-2); background:var(--surface-2); font-size:12px; font-weight:600; color:var(--text-2); transition:.15s;}
.pblock i{font-size:16px; color:var(--c, var(--accent));}
.pblock:hover{border-style:solid; border-color:var(--accent-line); color:var(--text); transform:translateY(-2px);}
.blk{border:1px solid var(--border); border-radius:12px; background:var(--surface-2); overflow:hidden;}
.blk + .blk{margin-top:10px;}
.blk-h{display:flex; align-items:center; gap:8px; padding:8px 10px 8px 12px; border-bottom:1px solid var(--border); font-size:12px; font-weight:700; color:var(--text-2);}
.blk-h i.t{color:var(--c, var(--accent));}
.blk-h .ops{margin-right:auto; display:flex; gap:2px;}
.blk-h .ops button{width:26px; height:26px; border-radius:6px; color:var(--text-3); font-size:11px;}
.blk-h .ops button:hover{background:var(--surface-3); color:var(--text);}
.blk-b{padding:10px 12px; display:grid; gap:8px;}
.blk-b input, .blk-b textarea, .blk-b select{width:100%; padding:9px 11px; border-radius:8px; border:1px solid var(--border); background:var(--bg-2); outline:none; font-size:13px;}
.blk-b textarea{min-height:70px; resize:vertical; line-height:1.7;}
.blk-b textarea.code{font-family:var(--mono); direction:ltr; text-align:left; font-size:12.5px;}
.blk-b .inline{display:flex; gap:8px; align-items:center;}
.preview-frame{position:sticky; top:calc(var(--header) + 16px);}
.alert{display:flex; gap:12px; padding:14px 16px; border-radius:12px; border:1px solid var(--al-line); background:var(--al-bg); font-size:14px;}
.alert i{color:var(--al); font-size:16px; margin-top:4px;}
.feat-list{list-style:none; padding:0 !important; display:grid; grid-template-columns:1fr 1fr; gap:8px;}
.feat-list li{display:flex; gap:8px; align-items:flex-start; padding:10px 12px; border-radius:10px; background:var(--surface-2); border:1px solid var(--border); font-size:13.5px; line-height:1.7;}
.feat-list li i{color:var(--green); margin-top:6px; font-size:12px;}
.banner-blk{position:relative; border-radius:14px; overflow:hidden; padding:30px 24px; text-align:center; background:linear-gradient(135deg, #1a1d29, #0d0f15); border:1px solid var(--border);}
.banner-blk::before{content:''; position:absolute; inset:0; background:radial-gradient(80% 100% at 50% 0%, rgba(255,106,61,.3), transparent 70%);}
.banner-blk *{position:relative;}
.banner-blk h3{font-size:24px; color:#fff; margin:0 !important;}
.banner-blk p{color:rgba(255,255,255,.7); margin-top:6px !important; font-size:14px;}
.dl-blk{display:flex; align-items:center; gap:14px; padding:16px; border-radius:14px; border:1px solid rgba(52,211,153,.3); background:linear-gradient(135deg, rgba(52,211,153,.10), transparent);}
.dl-blk .ico-badge{width:44px; height:44px; background:var(--green); color:#04130d; font-size:17px; border-radius:12px;}
.dl-blk b{display:block; font-size:15px;}
.dl-blk span{font-size:12px; color:var(--text-2);}
.dl-blk .btn{margin-right:auto;}

/* ---------- COMMAND PALETTE ---------- */
.cmdk-overlay{position:fixed; inset:0; z-index:500; background:rgba(5,6,9,.6); backdrop-filter:blur(6px); display:none; align-items:flex-start; justify-content:center; padding-top:12vh;}
.cmdk-overlay.open{display:flex; animation:fade .15s ease;}
@keyframes fade{from{opacity:0;} to{opacity:1;}}
.cmdk{width:min(680px, 92vw); border-radius:18px; background:var(--surface); border:1px solid var(--border-2); box-shadow:var(--shadow-lg); overflow:hidden; animation:pop .18s ease;}
@keyframes pop{from{transform:translateY(-8px) scale(.98); opacity:0;} to{transform:none; opacity:1;}}
.cmdk-in{display:flex; align-items:center; gap:12px; padding:0 18px; height:60px; border-bottom:1px solid var(--border);}
.cmdk-in i{color:var(--accent); font-size:16px;}
.cmdk-in input{flex:1; background:none; border:none; outline:none; font-size:16px;}
.cmdk-list{max-height:min(420px, 60vh); overflow-y:auto; padding:8px;}
.cmdk-grp{font-size:11px; font-weight:700; color:var(--text-3); padding:10px 10px 6px;}
.cmdk-item{display:flex; align-items:center; gap:12px; padding:9px 10px; border-radius:10px; cursor:pointer;}
.cmdk-item.sel{background:var(--surface-3);}
.cmdk-item .ico-badge{width:34px; height:34px;}
.cmdk-item .tx{flex:1; min-width:0;}
.cmdk-item .tx b{display:block; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.cmdk-item .tx span{font-size:11.5px; color:var(--text-3);}
.cmdk-item .ret{font-size:11px; color:var(--text-3); opacity:0;}
.cmdk-item.sel .ret{opacity:1;}
.cmdk-item mark{background:none; color:var(--accent-2); font-weight:700;}
.cmdk-foot{display:flex; gap:16px; padding:10px 16px; border-top:1px solid var(--border); font-size:11.5px; color:var(--text-3);}
.cmdk-foot span{display:flex; gap:6px; align-items:center;}

/* toast */
.toasts{position:fixed; bottom:22px; left:22px; z-index:600; display:flex; flex-direction:column; gap:8px;}
.toast{display:flex; align-items:center; gap:10px; padding:12px 16px; border-radius:12px; background:var(--surface-3); border:1px solid var(--border-2); box-shadow:var(--shadow-lg); font-size:13px; animation:pop .2s ease;}
.toast i{color:var(--green);}

/* footer */
.ftr{position:relative; z-index:1; border-top:1px solid var(--border); margin-top:20px;}
.ftr-in{max-width:1320px; margin:0 auto; padding:26px 22px; display:flex; align-items:center; gap:22px; flex-wrap:wrap; font-size:12.5px; color:var(--text-3);}
.ftr-in nav{display:flex; gap:16px; flex-wrap:wrap; margin-right:auto;}
.ftr-in nav a:hover{color:var(--text);}

/* skeleton */
.skel{background:linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size:200% 100%; animation:sk 1.2s infinite; border-radius:10px;}
@keyframes sk{to{background-position:-200% 0;}}

/* reveal */
.rv{opacity:0; transform:translateY(10px); transition:opacity .45s ease, transform .45s ease;}
.rv.in{opacity:1; transform:none;}

/* page enter */
#app.enter{animation:pageIn .28s ease;}
@keyframes pageIn{from{opacity:.35; transform:translateY(6px);} to{opacity:1; transform:none;}}
@media (prefers-reduced-motion: reduce){ #app.enter{animation:none;} .rv{opacity:1; transform:none; transition:none;} }

/* drawer (mobile nav) */
.drawer{position:fixed; inset:0; z-index:400; display:none;}
.drawer.open{display:block;}
.drawer .scrim{position:absolute; inset:0; background:rgba(0,0,0,.5);}
.drawer .panel{position:absolute; top:0; right:0; bottom:0; width:280px; background:var(--surface); border-left:1px solid var(--border); padding:18px; display:flex; flex-direction:column; gap:4px; animation:slide .2s ease;}
@keyframes slide{from{transform:translateX(100%);} to{transform:none;}}
.drawer .panel a{display:flex; align-items:center; gap:12px; padding:12px; border-radius:10px; font-size:14px; font-weight:600; color:var(--text-2);}
.drawer .panel a.on, .drawer .panel a:hover{background:var(--surface-2); color:var(--text);}

/* ---------- DROPDOWNS ---------- */
.tools{position:relative;}
.dd-wrap{position:relative;}
.dd{position:absolute; top:calc(100% + 10px); left:0; z-index:300; min-width:240px; background:var(--surface); border:1px solid var(--border-2); border-radius:14px; box-shadow:var(--shadow-lg); padding:6px; display:none; animation:pop .15s ease;}
.dd.open{display:block;}
.dd a, .dd button.it{display:flex; align-items:center; gap:10px; width:100%; padding:9px 11px; border-radius:9px; font-size:13px; color:var(--text-2); text-align:right;}
.dd a:hover, .dd button.it:hover{background:var(--surface-2); color:var(--text);}
.dd a i, .dd button.it i{width:16px; text-align:center;}
.dd hr{border:none; height:1px; background:var(--border); margin:6px 4px;}
.dd .dd-head{display:flex; align-items:center; gap:10px; padding:10px 11px 12px;}
.dd .dd-head b{display:block; font-size:14px;}
.dd .danger{color:var(--red) !important;}
.badge-n{position:absolute; top:-5px; left:-5px; min-width:18px; height:18px; padding:0 5px; border-radius:10px; background:var(--accent); color:#fff; font-size:10.5px; font-weight:700; display:grid; place-items:center; font-family:var(--mono); box-shadow:0 0 0 2px var(--bg);}
.notif-dd{width:360px; padding:0;}
.notif-dd .nh{display:flex; align-items:center; gap:8px; padding:14px 16px; border-bottom:1px solid var(--border);}
.notif-dd .nh b{font-size:14px;}
.notif-dd .nh button{margin-right:auto; font-size:12px; color:var(--accent-2);}
.notif-list{max-height:380px; overflow-y:auto;}
.notif{display:flex; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border); font-size:13px; line-height:1.6; position:relative;}
.notif:last-child{border-bottom:none;}
.notif:hover{background:var(--surface-2);}
.notif.unread::before{content:''; position:absolute; left:14px; top:18px; width:8px; height:8px; border-radius:50%; background:var(--accent);}
.notif .ico-badge{width:34px; height:34px;}
.notif small{display:block; font-size:11.5px; color:var(--text-3);}
.auth-btns{display:flex; gap:8px;}

/* ---------- MODAL ---------- */
.modal-ov{position:fixed; inset:0; z-index:550; background:rgba(5,6,9,.6); backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:20px; animation:fade .15s ease;}
.modal{width:min(480px,100%); max-height:90vh; overflow-y:auto; background:var(--surface); border:1px solid var(--border-2); border-radius:18px; box-shadow:var(--shadow-lg); animation:pop .18s ease;}
.modal-h{display:flex; align-items:center; gap:10px; padding:18px 20px; border-bottom:1px solid var(--border);}
.modal-h h3{font-size:16px;}
.modal-h .x{margin-right:auto; width:32px; height:32px; border-radius:8px; color:var(--text-3);}
.modal-h .x:hover{background:var(--surface-2); color:var(--text);}
.modal-b{padding:18px 20px; display:grid; gap:14px;}
.modal-f{display:flex; gap:8px; justify-content:flex-start; padding:14px 20px; border-top:1px solid var(--border); flex-direction:row-reverse;}
.radio-list{display:grid; gap:8px;}
.radio-list label{display:flex; align-items:center; gap:10px; padding:11px 13px; border-radius:10px; border:1px solid var(--border); background:var(--surface-2); cursor:pointer; font-size:13.5px;}
.radio-list label:has(input:checked){border-color:var(--accent-line); background:var(--accent-soft);}
.err{font-size:12px; color:var(--red); margin-top:5px; display:none;}
.err.show{display:block;}
.field.bad input, .field.bad textarea{border-color:rgba(248,113,113,.6);}

/* ---------- AUTH ---------- */
.auth{min-height:calc(100vh - var(--header) - 180px); display:grid; place-items:center; padding:20px 0;}
.auth-card{width:min(440px,100%); padding:32px 30px; border-radius:22px; background:radial-gradient(120% 90% at 100% 0%, rgba(255,106,61,.12), transparent 60%), var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-lg);}
.auth-card .logo-mark{width:48px; height:48px; margin:0 auto 14px; display:block;}
.auth-card h1{font-size:22px; text-align:center;}
.auth-card .sub{text-align:center; color:var(--text-2); font-size:13px; margin:6px 0 22px;}
.auth-card form{display:grid; gap:14px;}
.auth-card .alt{text-align:center; font-size:13px; color:var(--text-2); margin-top:18px;}
.auth-card .alt a{color:var(--accent-2); font-weight:600;}
.pw{position:relative;}
.pw button{position:absolute; left:10px; top:50%; transform:translateY(-50%); color:var(--text-3); width:30px; height:30px;}
.check{display:flex; align-items:flex-start; gap:9px; font-size:12.5px; color:var(--text-2);}
.check input{margin-top:5px; accent-color:var(--accent);}
.check a{color:var(--accent-2);}
.demo-note{font-size:11.5px; color:var(--text-3); text-align:center; padding:10px; border-radius:10px; background:var(--surface-2); border:1px dashed var(--border-2); margin-top:16px;}
.strength{height:4px; border-radius:4px; background:var(--surface-3); overflow:hidden; margin-top:6px;}
.strength i{display:block; height:100%; width:0; transition:.2s;}
.quick-users{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:10px;}
.quick-users button{display:flex; align-items:center; gap:6px; padding:5px 10px 5px 6px; border-radius:20px; border:1px solid var(--border); background:var(--surface-2); font-size:12px; color:var(--text-2);}
.quick-users button:hover{border-color:var(--border-2); color:var(--text);}

/* ---------- MEMBERS ---------- */
.m-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px;}
.mcard{position:relative; padding:22px 16px 16px; border-radius:var(--r); border:1px solid var(--border); background:var(--surface); text-align:center; overflow:hidden; transition:.2s;}
.mcard:hover{transform:translateY(-3px); border-color:var(--border-2); box-shadow:var(--shadow-lg);}
.mcard::before{content:''; position:absolute; inset:0 0 auto; height:62px; background:radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--tier) 30%, transparent), transparent 70%);}
.mcard > *{position:relative;}
.mcard .av-ring, .author-card .av-ring, .pod .av-ring{display:flex; width:fit-content; margin-left:auto; margin-right:auto;}
.mcard .av-ring{margin-bottom:10px;}
.mcard h4{font-size:15px; margin-bottom:6px;}
.mcard .chips{display:flex; gap:6px; justify-content:center; flex-wrap:wrap; min-height:24px;}
.mcard .nums{display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:14px; padding-top:12px; border-top:1px solid var(--border);}
.mcard .nums b{display:block; font-family:var(--mono); font-size:14px;}
.mcard .nums span{font-size:10.5px; color:var(--text-3);}
.mcard .joined{font-size:11.5px; color:var(--text-3); margin-top:10px;}

/* ---------- MESSAGES ---------- */
.msg-wrap{display:grid; grid-template-columns:300px minmax(0,1fr); height:calc(100vh - var(--header) - 150px); min-height:480px; overflow:hidden;}
.msg-side{border-left:1px solid var(--border); display:flex; flex-direction:column; min-height:0;}
.msg-side .search{padding:12px; border-bottom:1px solid var(--border);}
.convs{overflow-y:auto; flex:1;}
.conv{display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--border); cursor:pointer;}
.conv:hover{background:var(--surface-2);}
.conv.on{background:var(--accent-soft);}
.conv .tx{flex:1; min-width:0;}
.conv .tx b{display:block; font-size:13px;}
.conv .tx span{display:block; font-size:12px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.conv time{font-size:10.5px; color:var(--text-3);}
.thread{display:flex; flex-direction:column; min-height:0;}
.thread-h{display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--border);}
.thread-b{flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:10px;}
.bubble{max-width:72%; padding:10px 14px; border-radius:16px; font-size:13.5px; line-height:1.7; background:var(--surface-2); border:1px solid var(--border); align-self:flex-end; white-space:pre-wrap; overflow-wrap:anywhere;}
.bubble.mine{align-self:flex-start; background:linear-gradient(135deg,var(--accent),#ff4d2e); color:#fff; border:none;}
.bubble small{display:block; font-size:10.5px; opacity:.7; margin-top:4px;}
.thread-f{display:flex; gap:8px; padding:12px; border-top:1px solid var(--border);}
.thread-f textarea{flex:1; resize:none; height:44px; padding:11px 14px; border-radius:12px; background:var(--bg-2); border:1px solid var(--border); outline:none; font-size:13.5px;}
.sys-note{align-self:center; font-size:11.5px; color:var(--text-3); padding:6px 12px; border-radius:20px; background:var(--surface-2);}

/* ---------- STATIC PAGE / SEARCH ---------- */
.static-body{padding:28px 32px;}
.static-body h3:first-child{font-size:24px; margin-top:0;}
.search-head{display:flex; align-items:center; gap:12px; height:56px; padding:0 18px; border-radius:14px; background:var(--surface); border:1px solid var(--border-2); margin-bottom:16px;}
.search-head input{flex:1; background:none; border:none; outline:none; font-size:16px;}
.search-head i{color:var(--accent);}
mark.hl{background:var(--accent-soft); color:var(--accent-2); border-radius:3px; padding:0 2px;}
.reply .tools-r{display:flex; gap:4px; margin-top:8px;}
.reply .tools-r button{font-size:12px; color:var(--text-3); padding:4px 8px; border-radius:6px;}
.reply .tools-r button:hover{background:var(--surface-2); color:var(--text);}
.react .cnt{font-family:var(--mono); font-size:11.5px; opacity:.8;}
.unlocked-box{display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:12px; margin:10px 0; border:1px solid rgba(52,211,153,.35); background:rgba(52,211,153,.07);}
.unlocked-box > i{width:40px; height:40px; border-radius:11px; display:grid; place-items:center; background:var(--green); color:#04130d; font-size:15px; flex-shrink:0;}
.unlocked-box b{display:block; font-size:14px;}
.unlocked-box a{color:var(--green) !important;}
.bio{font-size:13.5px; color:var(--text-2); max-width:640px; margin-top:8px;}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1400px){
  .auth-btns a:last-child{display:none;}
  .hdr-search{min-width:190px;}
  .hdr-in{gap:12px;}
}
@media (max-width:1180px){
  .sec-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .nav a span{display:none;}
  .hdr-search{min-width:0;}
  .hdr-search .lbl{display:none;}
}
@media (max-width:960px){
  .hdr-search{min-width:0; width:38px; padding:0; justify-content:center; flex:none;}
  .hdr-search .kbd, .hdr-search .lbl{display:none;}
  .new-btn span{display:none;}
  .new-btn{padding:0 12px;}
  .me span{display:none;}
  .me{padding:4px;}
}
@media (max-width:1000px){
  .cols{grid-template-columns:minmax(0,1fr);}
  .hero{grid-template-columns:minmax(0,1fr);}
  .feature{min-height:340px;}
  .builder{grid-template-columns:minmax(0,1fr);}
  .preview-frame{position:static;}
  .tiers{grid-template-columns:repeat(3,1fr);}
  .kgrid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:760px){
  :root{--header:58px;}
  .nav, .hdr-search, .me span, .hdr .new-btn span{display:none;}
  .burger{display:grid;}
  .hdr-in{gap:8px; padding:0 14px;}
  .hdr .tools{margin-right:auto; display:flex; gap:8px;}
  .page{padding:18px 14px 40px;}
  .hero-main{padding:24px 20px;}
  .hero-main h1{font-size:25px;}
  .stats{grid-template-columns:repeat(2,1fr);}
  .stone{display:none;}
  .sec-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .t-grid{grid-template-columns:minmax(0,1fr);}
  .tr{grid-template-columns:60px minmax(0,1fr);}
  .tr .nums{display:none;}
  .tr-thumb{width:60px; height:40px;}
  .podium{grid-template-columns:1fr;}
  .podium .pod.first{order:-1;}
  .lb-table .hide-sm{display:none;}
  .tiers{grid-template-columns:repeat(2,1fr);}
  .topic-head h1{font-size:22px;}
  .post{padding:20px 18px;}
  .post-actions{padding:12px 18px;}
  .reply{padding:16px 18px;}
  .prof-cover{height:150px;}
  .prof-head{padding:0 18px 18px;}
  .prof-head .acts{margin-right:0; width:100%;}
  .lvl{grid-template-columns:minmax(0,1fr); padding:16px 18px;}
  .palette-blocks{grid-template-columns:repeat(3,1fr);}
  .feat-list{grid-template-columns:1fr;}
  .sec-hero{padding:22px 18px;}
  .sec-hero h1{font-size:21px;}
  .msg-wrap{grid-template-columns:minmax(0,1fr); height:auto;}
  .msg-side{border-left:none; border-bottom:1px solid var(--border); max-height:240px;}
  .thread{min-height:420px;}
  .notif-dd{width:min(340px, calc(100vw - 24px)); left:-60px;}
  .auth-btns .btn-ghost{display:none;}
  .static-body{padding:20px 18px;}
}
@media (max-width:420px){
  .sec-grid{grid-template-columns:minmax(0,1fr);}
  .kgrid{grid-template-columns:repeat(2,1fr);}
}

/* ===== server-rendered additions ===== */
.tabs a{display:flex; align-items:center; gap:7px; padding:7px 14px; border-radius:9px; font-size:13px; font-weight:600; color:var(--text-2); white-space:nowrap; transition:.15s;}
.tabs a:hover{color:var(--text);}
.tabs a.on{background:var(--surface-3); color:var(--text); box-shadow:0 1px 2px rgba(0,0,0,.2);}
.tabs a .n{font-family:var(--mono); font-size:11px; color:var(--text-3);}
.viewtoggle a{width:32px; height:28px; border-radius:7px; color:var(--text-3); display:grid; place-items:center;}
.viewtoggle a.on{background:var(--surface-3); color:var(--text);}
.pager a, .pager span.on, .pager span.dis{min-width:36px; height:36px; padding:0 10px; border-radius:9px; font-family:var(--mono); font-size:13px; color:var(--text-2); background:var(--surface); border:1px solid var(--border); display:inline-grid; place-items:center;}
.pager a:hover{border-color:var(--border-2); color:var(--text);}
.pager span.on{background:var(--accent); color:#fff; border-color:var(--accent);}
.pager span.dis{opacity:.35;}
.toggle-input{position:absolute; opacity:0; width:0; height:0;}
.switch{cursor:pointer; position:relative;}
.toggle-input:checked + .toggle{background:var(--accent);}
.toggle-input:checked + .toggle::after{right:21px;}
.toggle-input:focus-visible + .toggle{outline:2px solid var(--accent); outline-offset:2px;}
.announce{display:flex; align-items:center; gap:10px; padding:11px 16px; margin-bottom:16px; border-radius:12px; font-size:13.5px; background:var(--accent-soft); border:1px solid var(--accent-line); color:var(--text);}
.announce > i{color:var(--accent);}
.announce .btn{margin-right:auto;}
.announce.warn{background:rgba(251,191,36,.1); border-color:rgba(251,191,36,.35);} .announce.warn > i{color:var(--amber);}
.announce.danger{background:rgba(248,113,113,.1); border-color:rgba(248,113,113,.35);} .announce.danger > i{color:var(--red);}
.unlocked-inner{margin-top:8px;}
.unlocked-inner > *{margin-top:6px;}
.alert{border-right:3px solid; border-radius:10px; padding:12px 16px; font-size:14px;}
.alert-info{background:rgba(56,189,248,.08); border-color:var(--cyan);}
.alert-warn{background:rgba(251,191,36,.08); border-color:var(--amber);}
.alert-ok{background:rgba(52,211,153,.08); border-color:var(--green);}
.feat-list li::before{content:'\f00c'; font-family:'Font Awesome 6 Free'; font-weight:900; color:var(--green); font-size:12px; margin-top:4px;}
.sig{font-size:12px; color:var(--text-3); border-top:1px dashed var(--border-2); margin-top:10px; padding-top:8px;}
.reply.is-hidden{opacity:.55;}
.sticky-side{position:sticky; top:calc(var(--header) + 16px);}
@media (max-width:1000px){ .sticky-side{position:static;} }
.notif-page .notif{border-bottom:1px solid var(--border);}
.hero-search input::placeholder{color:var(--text-3);}
.mini.static{cursor:default;}
.lb-table a.lb-user:hover{color:var(--accent-2);}
.kpi{display:block;}
a.kpi:hover{border-color:var(--border-2);}
.toast.err i{color:var(--red);} .toast.info i{color:var(--cyan);}
.btn[disabled]{opacity:.6; pointer-events:none;}
.prose .dl-blk .btn{text-decoration:none; color:#fff;}

/* ===== 1.4.0: cover editor ===== */
.cover-edit{height:170px; border-radius:14px; background-size:cover; background-position:center; position:relative; overflow:hidden; border:1px solid var(--border); touch-action:none; user-select:none}
.cover-edit.can-drag{cursor:grab}
.cover-edit.dragging{cursor:grabbing}
.cover-hint{position:absolute; inset:auto 10px 10px auto; background:rgba(0,0,0,.55); color:#fff; font-size:11.5px; padding:5px 10px; border-radius:8px; pointer-events:none}
.cover-presets{display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin-top:14px}
.cover-preset{height:46px; border-radius:10px; border:2px solid transparent; cursor:pointer; position:relative; overflow:hidden}
.cover-preset span{position:absolute; inset:auto 0 0 0; font-size:10.5px; color:#fff; background:rgba(0,0,0,.35); padding:2px 0}
.cover-preset.on, .cover-preset:hover{border-color:var(--accent)}
@media (max-width:600px){ .cover-presets{grid-template-columns:repeat(3,1fr)} }

/* ===== 1.4.0: ads ===== */
.ad-slot{position:relative; display:flex; justify-content:center; margin:0 0 18px; border-radius:14px; overflow:hidden; background:var(--surface-2); border:1px solid var(--border)}
.ad-slot img{display:block; max-width:100%; height:auto}
.ad-slot a{display:block}
.ad-tag{position:absolute; top:6px; left:6px; z-index:1; font-size:10px; background:rgba(0,0,0,.55); color:#fff; padding:2px 7px; border-radius:6px}
.ad-top img, .ad-footer img, .ad-list img{width:100%; max-height:140px; object-fit:cover}
.ad-topic{margin:0}
.ad-sidebar{margin:0}
.ad-sidebar img{width:100%}
.t-grid > .ad-slot{grid-column:1/-1; margin:0}
.t-list > .ad-slot{margin:8px; border-radius:10px}

/* ===== 1.4.0: store ===== */
.sp-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px}
.sp-card{background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; transition:.2s}
.sp-card:hover{transform:translateY(-3px); border-color:var(--accent-line, var(--border-2))}
.sp-media{position:relative; aspect-ratio:4/3; background:var(--surface-2); display:grid; place-items:center; font-size:38px; color:var(--text-3)}
.sp-media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.sp-feat{position:absolute; top:10px; right:10px; z-index:1}
.sp-body{padding:14px; display:flex; flex-direction:column; gap:8px; flex:1}
.sp-body h4{margin:0; font-size:15px; line-height:1.6}
.sp-body .btn{margin-top:auto}
.sp-price{display:flex; gap:8px; align-items:baseline}
.sp-price b{font-size:18px; color:var(--accent)}
.sp-price del{color:var(--text-3); font-size:13px}
.sp-hero{display:grid; grid-template-columns:1.1fr 1fr; gap:24px}
.sp-gallery img{width:100%; border-radius:14px; border:1px solid var(--border)}
.sp-thumbs{display:flex; gap:8px; margin-top:8px; flex-wrap:wrap}
.sp-thumbs img{width:72px; height:54px; object-fit:cover; border-radius:8px; cursor:pointer; opacity:.75}
.sp-thumbs img:hover{opacity:1}
.sp-buy{position:sticky; top:90px}
.sp-mini{display:flex; gap:12px; align-items:center; padding:10px; border-radius:12px; background:var(--surface-2)}
.sp-mini img{width:64px; height:48px; object-fit:cover; border-radius:8px}
@media (max-width:860px){ .sp-hero{grid-template-columns:1fr} .sp-buy{position:static} }

/* ===== 1.5.0: code blocks ===== */
.prose pre{position:relative; direction:ltr; text-align:left}
.prose pre.has-ln{padding-left:52px}
.prose pre .ln{position:absolute; left:0; top:0; bottom:0; width:40px; padding:inherit; padding-left:0; padding-right:8px; text-align:right; color:var(--text-3); opacity:.55; user-select:none; border-right:1px solid var(--border); white-space:pre; font:inherit}
.prose pre[data-lang]::before{content:attr(data-lang); position:absolute; top:6px; right:44px; font-size:10.5px; color:var(--text-3); font-family:inherit}
.code-copy{position:absolute; top:6px; right:6px; width:30px; height:28px; border-radius:8px; border:1px solid var(--border); background:var(--surface-2); color:var(--text-2); cursor:pointer; opacity:.7}
.code-copy:hover{opacity:1; color:var(--accent)}
.hl-k{color:#c792ea}
.hl-s{color:#c3e88d}
.hl-c{color:#6b7a90; font-style:italic}
.hl-n{color:#f78c6c}
.hl-f{color:#82aaff}
.hl-p{color:#ff6a3d}
[data-theme=light] .hl-k{color:#7c3aed} [data-theme=light] .hl-s{color:#15803d} [data-theme=light] .hl-n{color:#c2410c} [data-theme=light] .hl-f{color:#1d4ed8}

/* ===== 1.5.0: install steps ===== */
div.steps-blk{margin:18px 0; border:1px solid var(--border); border-radius:16px; padding:14px; background:var(--surface-2)}
div.steps-blk > .step-l{font-weight:700; font-size:15px; margin-bottom:8px}
ol.steps-blk{list-style:none; counter-reset:st; padding:0; margin:0; display:grid; gap:12px}
li.step{counter-increment:st; position:relative; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px 14px 12px 14px; transition:.2s}
li.step::before{content:counter(st); position:absolute; top:12px; right:-10px; width:24px; height:24px; border-radius:50%; background:var(--accent); color:#fff; font-size:12px; font-weight:700; display:grid; place-items:center}
li.step.done{opacity:.55; border-color:rgba(52,211,153,.5)}
li.step.done::before{content:'✓'; background:#34d399}
.step-h{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; padding-right:12px}
.step-h > span{font-size:11px; font-weight:700; padding:2px 8px; border-radius:6px; background:var(--surface-2)}
.side-server{color:#ff6a3d} .side-client{color:#38bdf8} .side-python{color:#fbbf24} .side-quest{color:#a78bfa} .side-db{color:#34d399}
code.step-file{direction:ltr; font-size:12px; background:var(--surface-2); padding:2px 8px; border-radius:6px}
.step-l{font-size:12.5px; color:var(--text-2); margin:8px 0 4px}
.step-act{color:var(--accent); font-weight:700}
.step-done{margin-right:auto; width:30px; height:28px; border-radius:8px; border:1px solid var(--border); background:transparent; color:var(--text-3); cursor:pointer}
li.step.done .step-done{background:#34d399; color:#fff; border-color:#34d399}
.step-form{border:1px dashed var(--border-2, var(--border)); border-radius:12px; padding:10px; margin-bottom:10px; display:grid; gap:8px}
.step-form-h{display:flex; justify-content:space-between; align-items:center}

/* ===== 1.5.0: tags, templates, works ===== */
.tag-picker{display:grid; gap:8px}
.tp-group{display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.tp-label{font-size:12px; color:var(--text-3); min-width:80px}
.tp-tag input{display:none}
.tp-tag span{display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid var(--border); font-size:12.5px; cursor:pointer}
.tp-tag input:checked + span{background:var(--accent-soft); border-color:var(--accent); color:var(--accent)}
.tpl-row{display:flex; flex-wrap:wrap; gap:6px}
.tag-chip{text-decoration:none}
.works-row{display:flex; align-items:center; gap:6px}
.works-name{flex:1; font-size:13px}
.works-btn{display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:8px; border:1px solid var(--border); background:transparent; color:var(--text-2); cursor:pointer; font-size:12px}
.works-btn.ok.on{background:rgba(52,211,153,.15); border-color:#34d399; color:#34d399}
.works-btn.no.on{background:rgba(248,113,113,.15); border-color:#f87171; color:#f87171}

/* ===== 1.6.0: solved, similar ===== */
.solved-chip{background:rgba(52,211,153,.15) !important; color:#34d399 !important; border-color:rgba(52,211,153,.4) !important}
.solved-mini{color:#34d399; font-size:12px; font-weight:600}
.similar-box{margin-top:8px; border:1px solid rgba(251,191,36,.4); background:rgba(251,191,36,.08); border-radius:12px; padding:10px 12px; display:grid; gap:6px; font-size:13px}
.similar-box a{color:var(--text); text-decoration:none}
.similar-box a:hover{color:var(--accent)}

/* ===== 1.7.0: Plus, developer profile, requests ===== */
.plus-chip{background:linear-gradient(135deg,rgba(251,191,36,.25),rgba(255,106,61,.25)) !important; color:#fbbf24 !important; border-color:rgba(251,191,36,.5) !important; font-weight:700}
.dev-box{display:grid; gap:10px; margin-top:12px}
.dev-skills{display:flex; flex-wrap:wrap; gap:6px}
.dev-pf{display:flex; flex-wrap:wrap; gap:8px}
.dev-pf a{display:inline-flex; gap:6px; align-items:center; padding:5px 10px; border:1px solid var(--border); border-radius:8px; font-size:12.5px; text-decoration:none; color:var(--text)}
.req-vote button{display:grid; place-items:center; width:54px; padding:6px 0; border-radius:12px; border:1px solid var(--border); background:var(--surface-2); color:var(--text-2); cursor:pointer}
.req-vote button i{font-size:20px; line-height:1}
.req-vote button.on{border-color:var(--accent); color:var(--accent); background:var(--accent-soft)}
.dotm{margin-bottom:16px; background:radial-gradient(120% 140% at 100% 0%,rgba(251,191,36,.14),transparent 60%),var(--surface)}

/* ===== 1.8.0: download health, VirusTotal, quick replies ===== */
.dl-sha{display:flex; gap:8px; align-items:center; margin:-6px 0 14px; padding:6px 10px; border:1px dashed var(--border); border-radius:10px; font-size:12px}
.dl-sha span{color:var(--text-3); font-weight:700}
.dl-sha code{flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11.5px}
.dl-state{display:flex; gap:6px; align-items:center; margin:-4px 14px 10px; padding:6px 10px; border-radius:8px; font-size:12px; text-decoration:none}
.dl-state.bad, .dl-state.vt-flagged{background:rgba(248,113,113,.12); color:#f87171}
.dl-state.vt-warn{background:rgba(251,191,36,.12); color:#fbbf24}
.dl-state.vt-clean{background:rgba(52,211,153,.12); color:#34d399}
.canned-sel{width:auto; max-width:100%; margin-bottom:8px; font-size:13px}

/* ===== 2.0.0: wiki, learning paths, language switch ===== */
.wiki-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; padding:14px}
.wiki-item{display:grid; gap:4px; padding:12px 14px; border:1px solid var(--border); border-radius:12px; text-decoration:none; color:var(--text); background:var(--surface-2); transition:border-color .15s}
.wiki-item:hover{border-color:var(--accent-line)}
.wiki-item .faint{font-size:12px}
.wiki-body h2{font-size:20px; margin:26px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--border); scroll-margin-top:80px}
.wiki-body h3{font-size:17px; margin:20px 0 8px; scroll-margin-top:80px}
.wiki-list{margin:8px 0 12px; padding-inline-start:22px; display:grid; gap:4px}
.wiki-toc .card-b{display:grid; gap:6px; font-size:13.5px}
.wiki-toc a{color:var(--text-2); text-decoration:none}
.wiki-toc a:hover{color:var(--accent-2)}
.wiki-toc a.sub{padding-inline-start:14px; font-size:12.5px}
.wiki-diff{font-size:12.5px; overflow-x:auto}
.wiki-diff>div{display:flex; gap:8px; padding:1px 12px; white-space:pre-wrap}
.wiki-diff span{width:12px; flex:none; opacity:.7}
.wiki-diff code{background:none; padding:0; white-space:pre-wrap; word-break:break-word}
.wiki-diff .d-add{background:rgba(52,211,153,.12)}
.wiki-diff .d-del{background:rgba(248,113,113,.12); text-decoration:line-through; text-decoration-color:rgba(248,113,113,.5)}
.wiki-diff .d-gap{padding:2px 12px; color:var(--text-3)}
.path-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px}
.path-card{text-decoration:none; color:inherit; border-color:var(--c-line,var(--border)); transition:transform .15s}
.path-card:hover{transform:translateY(-2px)}
.path-bar{height:7px; border-radius:99px; background:var(--surface-2); overflow:hidden; margin-top:10px}
.path-bar span{display:block; height:100%; background:linear-gradient(90deg,var(--accent),#fbbf24); border-radius:inherit}
.path-steps{list-style:none; padding:0; margin:16px 0 0; display:grid; gap:10px}
.path-steps li{display:flex; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--border); border-radius:14px; background:var(--surface)}
.path-steps li.done{border-color:rgba(52,211,153,.4)}
.path-steps .num{width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--surface-2); font-weight:700}
.path-steps li.done .num{background:rgba(52,211,153,.18); color:#34d399}
.path-mini .card-b{display:grid; gap:4px}
.lang-sw{display:inline-flex; gap:6px; align-items:center}
.dl-state.vt-pending{background:rgba(56,189,248,.12); color:var(--cyan,#38bdf8)}
.dl-sha a{color:var(--cyan,#38bdf8)}
.dl-sha code{direction:ltr; unicode-bidi:isolate; cursor:copy}
.dl-sha code:hover{color:var(--accent-2)}
/* 2.0.4: download fingerprint bar */
.dl-vt{display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:space-between; margin:-6px 0 16px; padding:8px 14px; border:1px solid var(--border); border-top:0; border-radius:0 0 14px 14px; background:var(--surface-2); font-size:12.5px}
.dl-vt a{display:inline-flex; gap:6px; align-items:center; color:#34d399; text-decoration:none; font-weight:600}
.dl-vt a:hover{text-decoration:underline}
.dl-hash{display:inline-flex; gap:6px; align-items:center; border:0; background:none; padding:0; color:var(--text-3); font:inherit; font-family:var(--mono,monospace); font-size:12px; cursor:copy}
.dl-hash:hover{color:var(--text)}
/* 2.1.0: update news */
/* 2.10.4: admin > releases */
.rel-kpis{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px}
.rel-kpi{--c:#ff9b62; display:flex; gap:10px; align-items:center; padding:12px 14px; border:1px solid var(--border); border-radius:14px; background:var(--surface)}
.rel-kpi>i{width:36px; height:36px; flex:none; display:grid; place-items:center; border-radius:10px; background:var(--c-soft, rgba(255,155,98,.12)); color:var(--c)}
.rel-kpi b{display:block; font-size:18px; line-height:1.2} .rel-kpi span{font-size:12px; color:var(--text-2)}
.rel-grid{display:grid; grid-template-columns:minmax(0,320px) minmax(0,1fr); gap:16px; align-items:start}
.rel-list{position:sticky; top:76px}
.rel-tools{display:grid; gap:8px; padding:10px 12px; border-bottom:1px solid var(--border)}
.rel-search{position:relative} .rel-search i{position:absolute; inset-inline-start:10px; top:50%; transform:translateY(-50%); color:var(--text-3); font-size:12px}
.rel-search input{width:100%; padding:7px 30px; border:1px solid var(--border); border-radius:10px; background:var(--bg); color:var(--text); font:inherit; font-size:13px; text-align:right}
.rel-pills{display:flex; flex-wrap:wrap; gap:4px}
.rel-pill{border:1px solid var(--border); background:transparent; color:var(--text-2); border-radius:999px; padding:3px 9px; font:inherit; font-size:12px; cursor:pointer}
.rel-pill small{opacity:.7} .rel-pill.on{border-color:var(--accent); color:var(--text); background:var(--accent-soft)}
.rel-bulk{display:none; gap:6px; align-items:center; flex-wrap:wrap; padding:6px 8px; border:1px solid var(--accent-line); border-radius:10px; background:var(--accent-soft)}
.rel-bulk.active{display:flex} .rel-bulk .select{flex:1; min-width:120px; width:auto; padding:4px 8px; font-size:12.5px}
.rel-scroll{max-height:62vh; overflow:auto; padding:6px 8px 10px}
.rel-group summary{display:flex; gap:8px; align-items:center; padding:7px 8px; margin-top:2px; cursor:pointer; list-style:none; border-radius:10px; font-size:13px}
.rel-group summary::-webkit-details-marker{display:none}
.rel-group summary:hover{background:var(--surface-2)}
.rel-group summary>i{font-size:10px; color:var(--text-3); transition:transform .15s} .rel-group:not([open]) summary>i{transform:rotate(90deg)}
.rel-group summary .faint{font-size:11.5px; flex:1}
.rel-gall{border:0; background:transparent; color:var(--text-3); cursor:pointer; padding:2px 5px; border-radius:6px} .rel-gall:hover{color:var(--accent-2)}
.rel-row{display:flex; gap:8px; align-items:center; padding:5px 8px; margin-block:3px; margin-inline-start:14px; border:1px solid var(--border); border-radius:10px}
.rel-row input{width:16px; height:16px; accent-color:var(--accent); cursor:pointer; flex:none}
.rel-row>i{width:16px; text-align:center; font-size:11px; flex:none}
.rel-row a{flex:1; display:flex; gap:6px; align-items:center; flex-wrap:wrap; text-decoration:none; color:var(--text); font-size:13px}
.rel-row .chip{font-size:11px; padding:1px 7px} .rel-row .chip i, .rel-chips .chip i{font-size:9px; margin-inline-end:3px}
.rel-row:hover{border-color:var(--accent-line)} .rel-row.bk-on{background:rgba(255,106,61,.07)}
.rel-row.on{border-color:var(--accent); background:var(--accent-soft)}
.rel-head{padding:14px 16px}
.rel-head-top{display:flex; gap:10px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap}
.rel-head h2{margin:0 0 6px; font-size:22px}
.rel-chips, .rel-actions{display:flex; gap:6px; flex-wrap:wrap}
.rel-del:hover{color:#f87171; border-color:#f8717166}
.rel-facts{display:flex; gap:14px; flex-wrap:wrap; margin-top:12px; padding-top:10px; border-top:1px dashed var(--border); font-size:12.5px; color:var(--text-2)}
.rel-facts i{margin-inline-end:4px; color:var(--text-3)}
.rel-md{display:flex; gap:4px; margin-bottom:6px}
.rel-md button{border:1px solid var(--border); background:var(--surface-2); color:var(--text-2); border-radius:8px; width:32px; height:28px; cursor:pointer}
.rel-md button:hover{color:var(--text); border-color:var(--accent-line)}
.rel-opts{display:grid; gap:6px; margin:6px 0 12px; font-size:13.5px}
.rel-row[hidden], .rel-group[hidden], .rel-none[hidden]{display:none}
@media (max-width:980px){ .rel-kpis{grid-template-columns:repeat(2,minmax(0,1fr))} .rel-list{position:static} }
.rel-banner{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px}
.rel-banner span{flex:1; min-width:220px}
@media (max-width:860px){ .rel-grid{grid-template-columns:1fr !important} .rel-scroll{max-height:none} }
/* 2.2.0: topic rating */
.rate-sum{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.rate-avg{font-size:28px; line-height:1; font-weight:800}
.stars{position:relative; display:inline-block; direction:ltr; unicode-bidi:isolate; font-size:17px; line-height:1; letter-spacing:2px; color:var(--surface-2,#2a2f3a)}
.stars::before{content:"★★★★★"; color:rgba(148,163,184,.35)}
.stars > span{position:absolute; inset:0 auto 0 0; overflow:hidden; white-space:nowrap; color:#fbbf24}
.stars > span::before{content:"★★★★★"}
.rate-pick{display:flex; gap:4px; margin:12px 0 6px; direction:ltr; justify-content:flex-end}
.rate-pick button{width:36px; height:36px; display:grid; place-items:center; border-radius:10px; border:1px solid var(--border); background:var(--surface-2); color:rgba(148,163,184,.55); font-size:16px; cursor:pointer; transition:transform .12s, color .12s}
.rate-pick button:hover{transform:translateY(-1px)}
.rate-pick button.on, .rate-pick button.hov{color:#fbbf24; border-color:rgba(251,191,36,.45); background:rgba(251,191,36,.10)}
.link-btn{border:0; background:none; padding:0; color:var(--accent-2); font:inherit; cursor:pointer; text-decoration:underline}
.rate-mini{display:inline-flex; gap:4px; align-items:center; color:#fbbf24; font-weight:700; font-size:12px}
/* 2.3.0: best of month, rating reasons, diff block, stats */
.bm-row{display:flex; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); text-decoration:none; color:inherit}
.bm-row:last-child{border-bottom:0}
.bm-n{width:26px; height:26px; flex:none; display:grid; place-items:center; border-radius:8px; background:rgba(251,191,36,.14); color:#fbbf24; font-weight:800; font-size:13px}
.bm-t{display:grid; gap:2px; min-width:0; font-size:13.5px}
.bm-t > span{display:flex; gap:6px; align-items:center; font-size:12px}
.stars.sm{font-size:12px; letter-spacing:1px}
.rate-why{display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:12px; padding:10px; border:1px dashed rgba(251,191,36,.4); border-radius:10px; font-size:12.5px}
.rate-why > b{width:100%; color:#fbbf24}
.rate-reasons{display:grid; gap:8px}
.diff-blk{margin:12px 0; border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--surface-2); font-family:var(--mono,monospace); font-size:12.5px; text-align:left}
.d-file{padding:8px 12px; border-bottom:1px solid var(--border); color:var(--text-2); font-weight:600; background:rgba(167,139,250,.08)}
.d-note{padding:10px 12px; color:var(--text-3)}
.diff-lines{overflow-x:auto}
.diff-lines > div{white-space:pre; padding:1px 12px; min-height:1.5em; line-height:1.5}
.diff-lines .d-op{display:inline-block; width:16px; opacity:.7; user-select:none}
.diff-lines .d-add{background:rgba(52,211,153,.13); color:#a7f3d0}
.diff-lines .d-del{background:rgba(248,113,113,.13); color:#fecaca}
.stat-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px}
.stat-box{display:grid; gap:4px; padding:16px; text-align:center}
.stat-box i{font-size:20px; color:var(--accent)}
.stat-box b{font-size:22px}
.stat-box span{color:var(--text-3); font-size:12.5px}
/* 2.4.0: logo, admin layout, roles, cache */
.logo-img{height:50px; width:auto; display:block}
@media (max-width:700px){ .logo-img{height:40px} }
.adm-shell{display:grid; grid-template-columns:250px minmax(0,1fr); gap:20px; align-items:start}
.adm-side{position:sticky; top:84px; display:grid; gap:4px; padding:12px; border:1px solid var(--border); border-radius:18px; background:var(--surface); max-height:calc(100vh - 100px); overflow:auto}
.adm-brand{display:flex; gap:10px; align-items:center; padding:6px 6px 12px; border-bottom:1px solid var(--border); margin-bottom:6px}
.adm-brand small{display:block; color:var(--text-3); font-size:11.5px}
.adm-menu > summary{display:none}
.adm-gl{margin:10px 8px 4px; font-size:11px; font-weight:700; letter-spacing:.3px; color:var(--text-3)}
.adm-link{display:flex; gap:10px; align-items:center; padding:9px 10px; border-radius:11px; color:var(--text-2); text-decoration:none; font-size:13.5px; transition:background .15s, color .15s}
.adm-link i{width:18px; text-align:center; color:var(--text-3)}
.adm-link span{flex:1}
.adm-link em{font-style:normal; min-width:20px; padding:1px 6px; border-radius:99px; background:#ef4444; color:#fff; font-size:11px; text-align:center}
.adm-link:hover{background:var(--surface-2); color:var(--text)}
.adm-link.on{background:var(--accent-soft); color:var(--accent-2); font-weight:700}
.adm-link.on i{color:var(--accent)}
.adm-main{min-width:0}
@media (max-width:980px){
  .adm-shell{grid-template-columns:1fr}
  .adm-side{position:static; max-height:none}
  .adm-menu > summary{display:flex; gap:8px; align-items:center; cursor:pointer; padding:8px 10px; border-radius:10px; background:var(--surface-2); font-weight:700; list-style:none}
  .adm-menu:not([open]) > :not(summary){display:none}
  .adm-menu[open] > summary{margin-bottom:6px}
}
.roles-wrap{display:grid; grid-template-columns:minmax(0,300px) minmax(0,1fr); gap:16px; align-items:start}
@media (max-width:900px){ .roles-wrap{grid-template-columns:1fr} }
.role-item{display:flex; gap:10px; align-items:center; padding:9px 10px; border:1px solid var(--border); border-radius:12px; text-decoration:none; color:var(--text)}
.role-item.on{border-color:var(--accent); background:var(--accent-soft)}
.role-item small{display:block; color:var(--text-3); font-size:11.5px}
.role-ic{width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:10px; background:var(--c-soft); color:var(--c)}
.perm-grp{border:1px solid var(--border); border-radius:12px; padding:10px 14px 12px; margin:0 0 12px}
.perm-grp legend{padding:0 6px; font-weight:700; display:flex; gap:8px; align-items:center}
.perm-list{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:6px 14px; font-size:13.5px}
.role-chip{font-weight:700}
.cache-list{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:8px; margin-top:14px; font-size:12.5px; color:var(--text-2)}
.cache-list span{display:flex; gap:8px; align-items:center; padding:8px 10px; border-radius:10px; background:var(--surface-2)}
.cache-list i{color:var(--accent)}
/* 2.5.0: learning path with stages and video lessons */
.path-steps-wrap{display:grid; gap:10px; margin-top:16px}
.path-stage{display:flex; gap:10px; align-items:center; margin:18px 0 4px; font-size:17px}
.path-stage > span{width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:var(--accent-soft); color:var(--accent-2); font-size:14px}
.path-stage small{margin-inline-start:auto; font-size:12.5px; font-weight:600}
.path-step{display:flex; gap:14px; align-items:flex-start; padding:12px; border:1px solid var(--border); border-radius:16px; background:var(--surface); scroll-margin-top:90px}
.path-step.done{border-color:rgba(52,211,153,.4)}
.path-step.is-next{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.path-step .num{width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--surface-2); font-weight:700; font-size:13px}
.path-step.done .num{background:rgba(52,211,153,.18); color:#34d399}
.ps-body{flex:1; min-width:0; display:grid; gap:6px}
.ps-actions{display:flex; gap:6px; flex-wrap:wrap; margin-top:2px}
.yt-lite{position:relative; flex:none; width:240px; aspect-ratio:16/9; padding:0; border:0; border-radius:12px; overflow:hidden; background:#000; cursor:pointer}
.yt-lite img{width:100%; height:100%; object-fit:cover; display:block; opacity:.9; transition:opacity .15s}
.yt-lite:hover img{opacity:1}
.yt-play{position:absolute; inset:0; margin:auto; width:54px; height:38px; display:grid; place-items:center; border-radius:12px; background:rgba(255,0,0,.88); color:#fff; font-size:16px}
.yt-dur{position:absolute; bottom:6px; inset-inline-end:6px; padding:1px 6px; border-radius:6px; background:rgba(0,0,0,.75); color:#fff; font-size:11.5px; direction:ltr}
.yt-frame{flex:none; width:240px; aspect-ratio:16/9; border:0; border-radius:12px; background:#000}
.path-step:has(.yt-frame){flex-wrap:wrap}
.path-step:has(.yt-frame) .yt-frame{width:100%; max-width:720px}
@media (max-width:700px){ .path-step{flex-wrap:wrap} .yt-lite, .yt-frame{width:100%} }
/* 2.6.0: SEO tab */
.seo-ring{--p:0; width:74px; height:74px; flex:none; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#34d399 calc(var(--p)*1%), var(--surface-2) 0)}
.seo-ring b{width:58px; height:58px; display:grid; place-items:center; border-radius:50%; background:var(--surface); font-size:15px}
.seo-checks{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:8px; margin-top:16px; font-size:13px}
.seo-checks > div{display:flex; gap:8px; align-items:flex-start; padding:8px 10px; border-radius:10px; background:var(--surface-2)}
.seo-checks .ok i{color:#34d399; margin-top:3px}
.seo-checks .no i{color:#fbbf24; margin-top:3px}
.seo-checks small{display:block; color:var(--text-3); font-size:12px}
.seo-soc{display:flex; gap:8px; align-items:center}
.seo-soc i{width:18px; text-align:center; color:var(--text-3)}
.seo-guide ol{margin:0; padding-inline-start:20px; display:grid; gap:8px; font-size:13.5px; line-height:1.8}
/* 2.6.3: cron task status */
.cron-tasks{display:grid; gap:6px; margin:12px 0 4px}
.cron-tasks > div{display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; padding:8px 10px; border-radius:10px; background:var(--surface-2)}
.cron-tasks > div b{flex:1; font-size:13px}
.cron-tasks small{width:100%; font-size:11.5px}
/* 2.6.5: permanent account deletion */
.del-card{border-color:rgba(248,113,113,.45); margin-bottom:14px}
.del-opt{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid var(--border); border-radius:12px; margin-bottom:8px; cursor:pointer}
.del-opt input{width:auto; margin-top:4px}
.del-opt small{display:block; color:var(--text-3); font-size:12.5px; margin-top:2px}
.del-opt:has(input:checked){border-color:rgba(248,113,113,.6); background:rgba(248,113,113,.06)}
.btn-danger{background:#dc2626; color:#fff; border-color:#dc2626}
.btn-danger:hover{background:#b91c1c}
.btn-danger:disabled{opacity:.5; cursor:not-allowed}
/* ===== 2.7.0: home command center ===== */
.hx-me{display:flex; flex-wrap:wrap; gap:14px 20px; align-items:center; justify-content:space-between; margin:22px 0 6px; padding:16px 18px; border:1px solid var(--border); border-radius:20px;
  background:radial-gradient(120% 160% at 100% 0%, var(--accent-soft), transparent 55%), var(--surface)}
.hx-me-who{display:flex; gap:12px; align-items:center; min-width:260px; flex:1}
.hx-me-who > div{display:grid; gap:4px; flex:1; max-width:420px}
.hx-me-who b{font-size:16px}
.hx-me-who > div > span{display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:12.5px}
.hx-tier{height:6px; border-radius:99px; background:var(--surface-2); overflow:hidden}
.hx-tier span{display:block; height:100%; border-radius:inherit}
.hx-me-acts{display:flex; gap:8px; flex-wrap:wrap}
.hx-act{display:flex; gap:10px; align-items:center; padding:9px 14px; border:1px solid var(--border); border-radius:14px; background:var(--surface-2); color:var(--text); text-decoration:none; transition:transform .15s, border-color .15s}
.hx-act:hover{transform:translateY(-2px); border-color:var(--accent-line)}
.hx-act i{font-size:16px; color:var(--accent)}
.hx-act span{display:grid; line-height:1.3}
.hx-act b{font-size:13px} .hx-act small{font-size:11.5px; color:var(--text-3)}
.hx-act.primary{background:var(--accent); border-color:var(--accent)} .hx-act.primary i, .hx-act.primary b, .hx-act.primary small{color:#fff}
.hx-join{display:flex; flex-wrap:wrap; gap:12px 16px; align-items:center; margin:22px 0 6px; padding:16px 18px; border:1px dashed var(--accent-line); border-radius:20px; background:var(--surface)}
.hx-join > i{font-size:24px; color:var(--accent)}
.hx-join > div{flex:1; min-width:220px; display:grid} .hx-join span{color:var(--text-3); font-size:13px}
.hx-bento{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); grid-auto-flow:dense; gap:14px; margin-bottom:30px}
.hx-tile{position:relative; min-height:150px; display:flex; flex-direction:column; gap:6px; padding:18px; border:1px solid var(--border); border-radius:20px; background:var(--surface); color:var(--text); text-decoration:none; overflow:hidden; transition:transform .18s, border-color .18s, box-shadow .18s}
.hx-tile:hover{transform:translateY(-3px); border-color:var(--accent-line); box-shadow:0 14px 34px -18px rgba(0,0,0,.6)}
.hx-tile h3{margin:4px 0 0; font-size:16px} .hx-tile p{margin:0; color:var(--text-3); font-size:13px; line-height:1.7}
.hx-ic{width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:var(--c-soft); color:var(--c); font-size:18px}
.hx-num{margin-top:auto; font-size:12px; color:var(--text-2); font-weight:600}
.hx-course{grid-column:span 2; grid-row:span 2; min-height:314px; background:radial-gradient(120% 120% at 0% 0%, rgba(255,106,61,.18), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(167,139,250,.14), transparent 60%), var(--surface)}
.hx-course h3{font-size:21px; line-height:1.5}
.hx-badge{align-self:flex-start; display:inline-flex; gap:6px; align-items:center; padding:4px 10px; border-radius:99px; background:var(--accent-soft); color:var(--accent-2); font-size:12px; font-weight:700}
.hx-stages{display:flex; gap:6px; flex-wrap:wrap; margin:6px 0}
.hx-stages span{width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:var(--surface-2); color:var(--text-3); font-size:12px; font-weight:700; border:1px solid var(--border)}
.hx-stages .part{border-color:var(--accent-line); color:var(--accent-2)}
.hx-stages .full{background:rgba(52,211,153,.18); border-color:rgba(52,211,153,.5); color:#34d399}
.hx-next{display:flex; gap:12px; align-items:center; padding:8px; border-radius:14px; background:var(--surface-2)}
.hx-next img{width:112px; height:63px; object-fit:cover; border-radius:10px; flex:none}
.hx-next span{display:grid; gap:2px; min-width:0} .hx-next small{color:var(--text-3); font-size:11.5px} .hx-next b{font-size:13.5px; line-height:1.5}
.hx-prog{margin-top:auto; display:grid; gap:4px; font-size:12px; color:var(--text-3)}
.hx-syserr code{direction:ltr; text-align:left; padding:6px 8px; border-radius:8px; background:var(--surface-2); color:#f87171; font-size:11.5px}
.hx-store-row{display:flex; gap:6px; margin-top:auto}
.hx-store-row span{width:48px; height:48px; border-radius:12px; overflow:hidden; background:var(--surface-2); display:grid; place-items:center; color:var(--text-3)}
.hx-store-row img{width:100%; height:100%; object-fit:cover}
.hx-dotm-who{display:flex; gap:10px; align-items:center; margin-top:auto}
.hx-dotm-who span{display:grid} .hx-dotm-who small{color:var(--text-3); font-size:12px}
.hx-plus{background:radial-gradient(130% 130% at 100% 0%, rgba(251,191,36,.16), transparent 60%), var(--surface)}
.hx-help{display:grid; gap:8px}
.hx-q{display:flex; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--border); border-radius:16px; background:var(--surface); color:var(--text); text-decoration:none; transition:border-color .15s}
.hx-q:hover{border-color:rgba(250,204,21,.5)}
.hx-q-n{width:46px; height:46px; flex:none; display:grid; place-items:center; align-content:center; border-radius:12px; background:rgba(250,204,21,.12); color:#facc15; line-height:1.1}
.hx-q-n small{font-size:10.5px}
.hx-q-t{flex:1; min-width:0; display:grid; gap:4px}
.hx-q-t b{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hx-q-t small{display:flex; gap:6px; align-items:center; color:var(--text-3); font-size:12px}
.hx-community{display:flex; flex-wrap:wrap; gap:14px 20px; align-items:center; justify-content:space-between; margin-top:34px; padding:20px 22px; border-radius:22px; border:1px solid var(--border);
  background:radial-gradient(100% 160% at 0% 100%, rgba(88,101,242,.16), transparent 55%), radial-gradient(100% 160% at 100% 0%, rgba(255,0,51,.12), transparent 55%), var(--surface)}
.hx-community > div:first-child{display:grid; gap:2px} .hx-community b{font-size:17px} .hx-community span{color:var(--text-3); font-size:13px}
.hx-soc{display:flex; gap:8px; flex-wrap:wrap}
.hx-soc a{display:inline-flex; gap:8px; align-items:center; padding:9px 14px; border-radius:12px; background:var(--c-soft); color:var(--c); text-decoration:none; font-weight:700; font-size:13px; border:1px solid transparent; transition:border-color .15s}
.hx-soc a:hover{border-color:var(--c)}
@media (max-width:1100px){ .hx-bento{grid-template-columns:repeat(2, minmax(0,1fr))} .hx-course{grid-row:auto} }
@media (max-width:620px){ .hx-bento{grid-template-columns:1fr} .hx-course{grid-column:auto; grid-row:auto} .hx-me-acts{width:100%} .hx-act{flex:1 1 45%} }

/* ===== 2.7.0: creator analytics ===== */
.st-head{display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between; margin:6px 0 16px}
.st-who{display:flex; gap:12px; align-items:center} .st-who h1{font-size:22px; margin:0 0 2px}
.st-tools{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.st-staff{display:flex; gap:6px} .st-staff input{width:170px}
.st-kpis{display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:12px}
.st-kpi{position:relative; display:grid; gap:2px; padding:14px; overflow:hidden; background:radial-gradient(120% 120% at 100% 0%, var(--c-soft), transparent 60%), var(--surface)}
.st-kpi-top{display:flex; justify-content:space-between; align-items:center}
.st-kpi-top i, .st-kpi > i{color:var(--c); font-size:16px}
.st-kpi b{font-size:24px; line-height:1.3} .st-kpi span{color:var(--text-3); font-size:12px}
.st-kpi .spark{display:block; width:100%; height:26px; margin-top:6px; opacity:.85}
.st-delta{font-size:11.5px; font-weight:700; padding:2px 7px; border-radius:99px; background:var(--surface-2); color:var(--text-3); direction:ltr}
.st-delta.up{background:rgba(52,211,153,.14); color:#34d399} .st-delta.down{background:rgba(248,113,113,.14); color:#f87171} .st-delta.new{background:var(--accent-soft); color:var(--accent-2)}
.st-chart{margin-top:14px} .st-chart .card-b{padding-top:4px}
.ch-lines{width:100%; height:240px; display:block}
.ch-lines .gl{stroke:var(--border)} .ch-lines .ax, .ch-heat .ax{fill:var(--text-3); font-size:10px; font-family:inherit}
.st-legend{display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--text-2)}
.st-legend i{display:inline-block; width:10px; height:10px; border-radius:3px; margin-inline-end:5px; vertical-align:middle}
.st-grid{display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:14px; margin-top:14px}
.st-grid.three{grid-template-columns:repeat(3, minmax(0,1fr))}
.ch-heat{width:100%; min-width:560px; height:auto}
.st-tips .card-b{display:grid; gap:8px}
.st-tip{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:12px; background:var(--c-soft); font-size:13px; line-height:1.8}
.st-tip i{color:var(--c); margin-top:4px}
.st-all{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.st-all div{display:grid; padding:10px; border-radius:12px; background:var(--surface-2)} .st-all b{font-size:18px} .st-all span{color:var(--text-3); font-size:12px}
.st-table-card{margin-top:14px}
.st-table th[data-sort]{cursor:pointer; user-select:none} .st-table th[data-sort]:hover{color:var(--accent-2)}
.st-table th[data-dir="desc"]::after{content:" ▼"; font-size:10px} .st-table th[data-dir="asc"]::after{content:" ▲"; font-size:10px}
.st-flags{display:flex; gap:8px; align-items:center; font-size:11.5px; color:var(--text-3); margin-top:2px}
.st-flags .bad{color:#f87171}
.st-bar{height:6px; width:80px; border-radius:99px; background:var(--surface-2); overflow:hidden; display:inline-block; vertical-align:middle; margin-inline-end:6px}
.st-bar span{display:block; height:100%; background:linear-gradient(90deg, #38bdf8, #a78bfa)}
.st-lock{position:relative} .st-lock-bg{filter:blur(6px); opacity:.5; pointer-events:none}
.st-lock-card{position:absolute; inset:40px 0 auto; margin:0 auto; max-width:560px}
@media (max-width:1100px){ .st-kpis{grid-template-columns:repeat(3, minmax(0,1fr))} .st-grid, .st-grid.three{grid-template-columns:1fr} }
@media (max-width:560px){ .st-kpis{grid-template-columns:repeat(2, minmax(0,1fr))} }
/* ===== 2.8.0: admin analytics ===== */
.an-live{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px}
.an-live > div{display:flex; gap:8px; align-items:baseline; padding:10px 16px; border:1px solid var(--border); border-radius:14px; background:var(--surface)}
.an-live b{font-size:20px} .an-live span{color:var(--text-3); font-size:12.5px} .an-live .live{align-self:center}
.an-live .an-off{color:#fbbf24; font-size:13px; align-items:center}
.an-kpis{grid-template-columns:repeat(6, minmax(0,1fr))}
.an-two{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.an-list{display:grid; gap:2px}
.an-list > a, .an-list > div{display:flex; gap:10px; align-items:center; padding:7px 8px; border-radius:10px; color:var(--text); text-decoration:none; font-size:13px}
.an-list > a:hover{background:var(--surface-2)}
.an-l{flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.an-l .dot{display:inline-block; width:8px; height:8px; border-radius:50%; margin-inline-end:6px}
.an-bar{width:70px; height:6px; border-radius:99px; background:var(--surface-2); overflow:hidden; flex:none}
.an-bar i{display:block; height:100%; background:var(--accent); border-radius:inherit}
.an-list b{font-size:12.5px; color:var(--text-2)}
@media (max-width:1100px){ .an-kpis{grid-template-columns:repeat(3, minmax(0,1fr))} }
@media (max-width:560px){ .an-kpis{grid-template-columns:repeat(2, minmax(0,1fr))} .an-two{grid-template-columns:1fr} }
/* ===== 2.8.0: hidden-links settings ===== */
.hide-ov{grid-template-columns:repeat(4, minmax(0,1fr)); margin-bottom:14px}
.hide-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px}
.hide-grid .switch{margin:10px 0}
.radio-cards{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.radio-cards.one{grid-template-columns:1fr}
.rc{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); cursor:pointer}
.rc:has(input:checked){border-color:var(--accent); background:var(--accent-soft)}
.rc input{margin-top:4px; accent-color:var(--accent)}
.rc span{display:grid; gap:2px} .rc b{font-size:13.5px} .rc small{color:var(--text-3); font-size:12px; line-height:1.6}
.hide-secs{display:grid; gap:6px; max-height:420px; overflow:auto}
.hs-row{display:flex; gap:10px; align-items:center; justify-content:space-between; padding:6px 8px; border-radius:10px; background:var(--surface-2); font-size:13px}
.hs-row select{width:auto; min-width:150px}
.lock-files{display:flex; flex-wrap:wrap; gap:6px; margin-top:6px}
.lock-files em{font-style:normal; display:inline-flex; gap:6px; align-items:center; padding:3px 9px; border-radius:99px; background:var(--surface-2); color:var(--text-2); font-size:12px}
@media (max-width:900px){ .hide-grid, .radio-cards{grid-template-columns:1fr} .hide-ov{grid-template-columns:1fr 1fr} }
/* ===== 2.8.0: online box ===== */
.on-nums{display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; padding:4px 16px 12px}
.on-nums > div{display:grid; justify-items:center; gap:2px; padding:10px 6px; border-radius:12px; background:var(--c-soft, var(--accent-soft)); color:var(--c, var(--accent))}
.on-nums > div:first-child{--c:#ff6a3d; --c-soft:#ff6a3d1f; position:relative}
.on-nums > div:first-child .live{position:absolute; top:8px; inset-inline-start:8px}
.on-nums b{font-size:20px; color:var(--text)} .on-nums small{font-size:11.5px; color:var(--text-3)}
.on-av{padding:0 16px; flex-wrap:wrap}
.more-av{display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--surface-2); font-size:11px; color:var(--text-2)}
.on-names{padding:8px 16px 4px; font-size:12.5px; color:var(--text-3); line-height:1.9}
.on-names a{color:var(--text-2); text-decoration:none} .on-names a:hover{color:var(--accent-2)}
.on-foot{display:grid; gap:4px; padding:10px 16px 14px; margin-top:6px; border-top:1px solid var(--border); font-size:12.5px; color:var(--text-2)}
.on-foot a{color:var(--text); text-decoration:none} .on-foot i{color:var(--text-3); margin-inline-end:4px}
/* ===== 2.8.1: hide-links page polish ===== */
.rc input[type="radio"]{width:18px !important; height:18px !important; min-width:18px; padding:0 !important; margin:3px 0 0; flex:none; border:0; background:none}
.rc{align-items:flex-start}
.rc-ic{width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:10px; background:var(--surface-3, var(--bg-2)); color:var(--text-3)}
.rc:has(input:checked) .rc-ic{background:var(--accent); color:#fff}
.rc em{font-style:normal; justify-self:start; margin-top:4px; padding:2px 8px; border-radius:99px; background:var(--surface-3, var(--bg-2)); color:var(--text-2); font-size:11px}
.rc:has(input:checked) em{background:rgba(255,106,61,.18); color:var(--accent-2)}
.sec-help{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; margin-bottom:12px; border-radius:12px; background:rgba(56,189,248,.08); border:1px solid rgba(56,189,248,.22); color:var(--text-2); font-size:12.5px; line-height:1.9}
.sec-help > i{color:#38bdf8; margin-top:5px}
.hint-tip{display:flex; gap:6px; align-items:flex-start; margin-top:6px; font-style:normal; font-size:11.5px; color:#fbbf24; line-height:1.7}
.hint-tip i{margin-top:3px}
.switch > div{display:grid; gap:2px}
.step-n{display:inline-grid; place-items:center; width:24px; height:24px; margin-inline-end:6px; border-radius:8px; background:var(--accent); color:#fff; font-size:13px}
.pts-presets{display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 4px}
.pts-presets .chip{cursor:pointer; border:1px solid var(--border)} .pts-presets .chip:hover{border-color:var(--accent-line)}
.hs-row.is-off{box-shadow:inset 3px 0 0 #34d399} .hs-row.is-force{box-shadow:inset 3px 0 0 var(--accent)}
.hide-save{display:flex; gap:12px; align-items:center; margin-top:14px; padding:14px; border-radius:14px; background:var(--surface); border:1px solid var(--border); position:sticky; bottom:10px; z-index:5}
.field small.faint{display:block; margin-top:6px; line-height:1.8}
/* ===== 2.8.1: home redesign polish ===== */
.hx-hero{margin-bottom:18px}
.hx-hero .hero-main{padding:36px 36px 30px; background:radial-gradient(90% 120% at 100% 0%, rgba(255,106,61,.16), transparent 55%), radial-gradient(70% 90% at 0% 100%, rgba(167,139,250,.10), transparent 60%), var(--surface)}
.hx-hero .stats{gap:0; margin-top:24px; border:1px solid var(--border); border-radius:16px; background:color-mix(in srgb, var(--bg-2) 70%, transparent); overflow:hidden}
.hx-hero .stat{display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; padding:12px 14px; border:0; border-radius:0; background:none; border-inline-start:1px solid var(--border)}
.hx-hero .stat:first-child{border-inline-start:0}
.hx-hero .stat i{grid-row:1 / 3; width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-size:14px}
.hx-hero .stat:nth-child(2) i{background:rgba(56,189,248,.12); color:#38bdf8}
.hx-hero .stat:nth-child(3) i{background:rgba(52,211,153,.12); color:#34d399}
.hx-hero .stat:nth-child(4) i{background:rgba(167,139,250,.12); color:#a78bfa}
.hx-hero .stat b{font-size:19px; line-height:1.2}
.hx-title{align-items:flex-end; margin:34px 0 16px; padding-bottom:12px; border-bottom:1px solid var(--border); position:relative}
.hx-title::after{content:""; position:absolute; bottom:-1px; inset-inline-start:0; width:64px; height:2px; border-radius:2px; background:linear-gradient(90deg, var(--accent), var(--amber))}
.hx-title h2{font-size:21px; margin:2px 0}
.hx-kicker{--k:var(--accent); display:inline-flex; gap:6px; align-items:center; font-size:11.5px; font-weight:700; letter-spacing:.3px; color:var(--k)}
.hx-kicker i{font-size:11px}
.hx-me{margin:0 0 6px}
.hx-bento{margin-bottom:8px}
.hx-tile{min-height:160px}
.hx-tile:not(.hx-course):not(.hx-plus){background:linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 40%, transparent), transparent 70%), var(--surface)}
.hx-tile .hx-ic{transition:transform .2s}
.hx-tile:hover .hx-ic{transform:scale(1.08) rotate(-4deg)}
.hx-secs{margin-bottom:6px; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px}
.hx-secs .sec{padding:14px; gap:8px; min-height:0}
.hx-secs .sec p{-webkit-line-clamp:1}
.hx-secs .sec .last{padding-top:8px; border-top:1px dashed var(--border)}
.hx-community{margin-top:38px}
@media (max-width:1100px){ .hx-secs{grid-template-columns:repeat(2, minmax(0,1fr))} }
@media (max-width:620px){ .hx-hero .stats{grid-template-columns:1fr 1fr} .hx-hero .stat:nth-child(3){border-inline-start:0} .hx-hero .stat:nth-child(n+3){border-top:1px solid var(--border)} .hx-secs{grid-template-columns:1fr} .hx-title h2{font-size:19px} }
/* ===== 2.9.0: members bulk actions ===== */
.u-filters{display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 0 10px}
.u-filters .chip{text-decoration:none; border:1px solid var(--border)} .u-filters .chip.on{background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent-2)}
.bulk-bar{display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:10px 12px; margin-bottom:10px; border:1px solid var(--border); border-radius:14px; background:var(--surface); position:sticky; top:70px; z-index:6}
.bulk-bar.active{border-color:var(--accent-line); box-shadow:0 10px 30px -18px rgba(255,106,61,.6)}
.bulk-bar .select{width:auto; min-width:220px}
.bk-count b{color:var(--accent-2)} .bk-hint{font-size:12px}
.bk-col{width:34px; text-align:center} .bk-col input{width:17px; height:17px; accent-color:var(--accent); cursor:pointer}
tr.bk-on td{background:rgba(255,106,61,.07)}
/* ===== 2.9.0: email confirmation gate ===== */
.vg-wrap{display:grid; place-items:center; min-height:62vh; padding:30px 0}
.vg-card{max-width:560px; width:100%; padding:30px 28px; text-align:center}
.vg-ic{width:74px; height:74px; margin:0 auto 14px; display:grid; place-items:center; border-radius:22px; background:var(--accent-soft); color:var(--accent); font-size:32px}
.vg-card h1{font-size:21px; margin:0 0 8px}
.vg-steps{list-style:none; padding:0; margin:18px 0; display:grid; gap:8px; text-align:start}
.vg-steps li{display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:12px; background:var(--surface-2); font-size:13.5px}
.vg-steps i{color:var(--accent); width:18px}
.vg-acts{display:flex; gap:8px; justify-content:center; flex-wrap:wrap}
.vg-change{margin-top:16px; text-align:start} .vg-change summary{cursor:pointer; color:var(--text-2); font-size:13px}
.vg-change form{margin-top:10px}
.vg-out{margin-top:14px}
/* ===== 2.9.0: analytics page redesign (below the KPIs) ===== */
.an-sec{margin:34px 0 14px}
.an-card{border-radius:18px; overflow:hidden; background:linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 35%, transparent), transparent 120px), var(--surface)}
.an-card .card-h h3{display:flex; gap:10px; align-items:center; font-size:15px}
.an-ic{width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:10px; background:var(--c-soft); color:var(--c); border:1px solid var(--c-line); font-size:14px}
.an-chart .card-b{padding-top:6px}
.an-chart .ch-lines{height:280px}
.an-legend{display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 4px}
.an-legend span{display:inline-flex; gap:6px; align-items:center; padding:4px 10px; border-radius:99px; background:var(--surface-2); font-size:12px; color:var(--text-2)}
.an-legend span::before{content:""; width:9px; height:9px; border-radius:3px; background:var(--c)}
.an-grid{display:grid; gap:14px; margin-top:14px}
.an-g3{grid-template-columns:repeat(3, minmax(0,1fr))}
.an-g21{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.an-rank{display:grid; gap:4px}
.an-row{display:flex; gap:10px; align-items:center; padding:8px 8px; border-radius:12px; color:var(--text); text-decoration:none; transition:background .15s}
a.an-row:hover{background:var(--surface-2)}
.an-rk{width:24px; height:24px; flex:none; display:grid; place-items:center; border-radius:8px; background:var(--surface-2); color:var(--text-3); font-size:11.5px; font-weight:700}
.an-rk.top{background:var(--accent-soft); color:var(--accent-2)}
.an-main{flex:1; min-width:0; display:grid; gap:6px}
.an-lbl{font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.an-track{height:5px; border-radius:99px; background:var(--surface-2); overflow:hidden}
.an-track i{display:block; height:100%; border-radius:inherit; background:var(--accent)}
.an-val{flex:none; font-family:var(--mono); font-size:12.5px; padding:2px 8px; border-radius:8px; background:var(--surface-2); color:var(--text-2)}
.an-person{padding:7px 8px; border-radius:12px} .an-person .an-val{margin-inline-start:auto}
.an-empty{display:grid; justify-items:center; gap:8px; padding:24px 10px; color:var(--text-3); font-size:13px; text-align:center}
.an-empty i{font-size:22px; opacity:.6}
.an-donuts{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.an-donut{display:grid; justify-items:center; gap:8px}
.an-donut small{color:var(--text-3); font-size:12px}
.an-dleg{display:grid; gap:4px; width:100%}
.an-dleg span{display:flex; gap:8px; align-items:center; font-size:12.5px; padding:3px 6px; border-radius:8px; background:var(--surface-2)}
.an-dleg i{width:9px; height:9px; border-radius:3px; flex:none} .an-dleg b{margin-inline-start:auto; font-family:var(--mono); font-size:12px}
.an-tiles{display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:8px}
.an-tile{position:relative; display:grid; gap:2px; padding:12px 12px 10px; border-radius:14px; background:radial-gradient(120% 120% at 100% 0%, var(--c-soft), transparent 65%), var(--surface-2); border:1px solid var(--border)}
.an-tile i{color:var(--c); font-size:13px; margin-bottom:4px}
.an-tile b{font-size:18px; line-height:1.3} .an-tile span{color:var(--text-3); font-size:11.5px; line-height:1.5}
@media (max-width:1100px){ .an-g3, .an-g21{grid-template-columns:1fr} }
@media (max-width:560px){ .an-donuts{grid-template-columns:1fr} }
/* ===== 2.9.0: verification modal ===== */
.vg-overlay{position:fixed; inset:0; z-index:9999; display:grid; place-items:center; padding:20px; overflow:auto; background:rgba(5,6,10,.82); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px)}
.vg-overlay .vg-card{box-shadow:0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px var(--accent-line)}
.vg-timer{display:flex; gap:10px; align-items:center; justify-content:center; margin:12px 0 4px; padding:10px 14px; border-radius:12px; background:rgba(248,113,113,.1); border:1px solid rgba(248,113,113,.35); color:#fca5a5; font-size:13.5px}
.vg-timer b.mono{font-size:16px; color:#fff} .vg-timer.warn{background:rgba(251,191,36,.08); border-color:rgba(251,191,36,.3); color:#fcd34d}
body:has(.vg-overlay){overflow:hidden}
/* 2.9.1: the two donuts wrap instead of being clipped on narrow cards */
.an-donuts{grid-template-columns:repeat(auto-fit, minmax(170px, 1fr))}
.an-donut{min-width:0} .an-donut .donut-box{max-width:100%}
/* 2.9.2: a form-level error that stays on screen */
.reg-alert, .alert-err{display:flex; gap:8px; align-items:flex-start; padding:12px 14px; margin-bottom:14px; border-radius:12px; background:rgba(248,113,113,.1); border:1px solid rgba(248,113,113,.4); color:#fca5a5; font-size:13.5px; line-height:1.8}
.reg-alert i{margin-top:5px}
/* ===== 2.10.0: sign-ups per network ===== */
.sg-table td{vertical-align:middle}
.sg-hot td{background:rgba(251,191,36,.06)}
.sg-users{max-width:260px} .sg-users a, .sg-users span{display:inline-block; margin:2px 4px 2px 0; padding:1px 8px; border-radius:99px; background:var(--surface-2); font-size:12px; color:var(--text-2); text-decoration:none}
.sg-users a.unconf{color:#fbbf24} .sg-users .gone{text-decoration:line-through; opacity:.6}
.sg-act{display:flex; gap:6px; flex-wrap:wrap; align-items:center} .sg-act input{width:170px; height:34px; padding:0 10px; border-radius:9px; background:var(--bg-2); border:1px solid var(--border); color:inherit; font:inherit; font-size:12.5px}
.sg-act .select{width:auto}
.sg-notify{font-size:12px; white-space:nowrap}

/* 2.10.5: update news (release topics) */
.rn-wrap{display:grid; gap:14px; margin:4px 0}
.rn-hero{position:relative; overflow:hidden; padding:22px 22px 18px; border-radius:18px; border:1px solid var(--accent-line); background:radial-gradient(120% 140% at 100% 0%, rgba(255,106,61,.22), transparent 60%), linear-gradient(135deg, var(--surface-2), var(--surface))}
.rn-hero h2{margin:8px 0 6px; font-size:22px; line-height:1.5}
.rn-hero p{margin:0; color:var(--text-2); font-size:14.5px; line-height:1.9}
.rn-ver{display:inline-flex; gap:6px; align-items:center; padding:3px 11px; border-radius:999px; background:var(--accent-soft); color:var(--accent-2); font-size:12.5px; font-weight:700}
.rn-sec{--c:#ff9b62; --cs:rgba(255,155,98,.13); padding:14px 16px 16px; border:1px solid var(--border); border-radius:16px; background:var(--surface)}
.rn-sec.rn-new{--c:#ff9b62; --cs:rgba(255,155,98,.13)} .rn-sec.rn-imp{--c:#38bdf8; --cs:rgba(56,189,248,.13)} .rn-sec.rn-safe{--c:#34d399; --cs:rgba(52,211,153,.13)} .rn-sec.rn-misc{--c:#a78bfa; --cs:rgba(167,139,250,.13)}
.rn-sec h3{display:flex; gap:10px; align-items:center; margin:0 0 12px; font-size:16.5px}
.rn-ico{width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:11px; background:var(--cs); color:var(--c); font-size:16px}
.rn-list{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.rn-item{display:flex; gap:12px; align-items:flex-start; padding:11px 12px; border-radius:13px; background:var(--surface-2); border:1px solid transparent; transition:border-color .15s}
.rn-item:hover{border-color:var(--cs)}
.rn-emo{width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:10px; background:var(--cs); color:var(--c); font-size:16px; line-height:1}
.rn-item b{display:block; font-size:14.5px; margin-bottom:2px}
.rn-item span:not(.rn-emo){display:block; color:var(--text-2); font-size:13.8px; line-height:1.85}
.rn-p{margin:0 0 10px; color:var(--text-2)}
.rn-foot{display:flex; gap:8px; align-items:center; justify-content:center; padding:12px; border-radius:14px; border:1px dashed var(--border); color:var(--text-2); font-size:13.5px}
.rn-foot i{color:#f87171}
@media (max-width:560px){ .rn-hero{padding:18px 16px} .rn-hero h2{font-size:19px} .rn-sec{padding:12px} }
