/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC PAGES — landing (#login-screen.pub), bot_status, premium, terms, privacy
   Theme: midnight cobalt, crown gold, live green, ice. Font: Geist (fonts.css).
   EVERY selector is scoped under .pub so nothing here can reach the dashboard,
   which shares index.css with the landing page. Buttons use .pbtn (not .btn,
   which the dashboard owns).
   ═══════════════════════════════════════════════════════════════════════════ */
.pub{
  --bg:#0f1730; --bg-2:#0b1226; --panel:#162042; --panel-2:#1d2a54; --panel-3:#24335f;
  --edge:rgba(170,190,255,.10);
  --ink:#eef2fb; --ink-2:#aab5d3; --ink-3:#7d89ab;
  --gold:#ffc83d; --gold-2:#ffd76b; --green:#3ddc97; --red:#ff6b6b; --blurple:#5865f2; --ice:#bfe9ff;
  --premium:#ffd600; --vip:#ff7b00; --free:#9aa3b8;
  --m:clamp(16px,3vw,44px);
  --gap:clamp(64px,11vw,168px);
  --ease:cubic-bezier(.23,1,.32,1);
  --pf:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif;
  background:var(--bg);color:var(--ink);font:400 17px/1.55 var(--pf);
  -webkit-font-smoothing:antialiased;
}
body.pub{margin:0;min-height:100vh;overflow-x:hidden}
.pub *,.pub *::before,.pub *::after{box-sizing:border-box}
.pub a{color:inherit}
.pub img{display:block;max-width:100%}
.pub button{font:inherit;color:inherit}
.pub :focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}
.pub .wrap{padding-inline:var(--m);max-width:1400px;margin-inline:auto;position:relative}
.pub .num{font-variant-numeric:tabular-nums}
.pub .ico{width:1em;height:1em;flex:none}
.pub h1,.pub h2,.pub h3{font-family:var(--pf);font-weight:700;letter-spacing:-.035em;line-height:1.04;text-wrap:balance;margin:0}
.pub h2{font-size:clamp(32px,4.4vw,64px)}
.pub p,.pub ul{margin:0}
.pub .lede{font-size:clamp(16px,1.35vw,20px);color:var(--ink-2);max-width:34em;text-wrap:pretty}

/* ── buttons ─────────────────────────────────────────────────────────── */
.pub .pbtn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font:600 16px/1 var(--pf);padding:16px 22px;border-radius:12px;border:0;cursor:pointer;text-decoration:none;white-space:nowrap;transition:transform .16s var(--ease),background-color .16s ease,filter .16s ease}
.pub .pbtn:active{transform:scale(.97)}
.pub .pbtn .ico{font-size:20px}
.pub .pbtn-discord{background:var(--blurple);color:#fff}
.pub .pbtn-gold{background:var(--gold);color:#1b1400}
.pub .pbtn-quiet{background:rgba(255,255,255,.06);color:var(--ink);box-shadow:inset 0 0 0 1px var(--edge)}
.pub .pbtn-ice{background:var(--ice);color:#0b2540}
@media (hover:hover){.pub .pbtn-discord:hover{background:#4752c4}.pub .pbtn-gold:hover{background:var(--gold-2)}.pub .pbtn-quiet:hover{background:rgba(255,255,255,.1)}.pub .pbtn-ice:hover{filter:brightness(1.06)}}

/* ── nav (+ phone menu) ──────────────────────────────────────────────── */
.pub .pnav{display:flex;align-items:center;gap:26px;height:76px;position:relative;z-index:6}
.pub .plogo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;letter-spacing:-.02em;text-decoration:none;color:var(--ink)}
.pub .plogo img{width:32px;height:32px;border-radius:9px}
.pub .plogo b{color:var(--gold);font-weight:inherit}
.pub .pnav-links{display:flex;align-items:center;gap:24px;margin-left:auto;font-size:15px;color:var(--ink-2)}
.pub .pnav-links a{text-decoration:none;transition:color .15s ease}
.pub .pnav-links a:hover,.pub .pnav-links a[aria-current=page]{color:var(--ink)}
.pub .studio-link{display:inline-flex;align-items:center;gap:7px;color:var(--ice)!important}
.pub .studio-link .ico{font-size:16px}
.pub .pnav .pbtn{padding:11px 16px;font-size:15px}
.pub .pnav-menu{display:none;width:42px;height:42px;border:0;border-radius:12px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px var(--edge);color:var(--ink);cursor:pointer;place-items:center;font-size:22px;padding:0}
.pub .pnav-sheet{position:absolute;left:var(--m);right:var(--m);top:70px;z-index:30;background:rgba(22,32,66,.98);border-radius:18px;box-shadow:inset 0 0 0 1px var(--edge),0 20px 50px rgba(3,8,24,.55);padding:10px;display:grid;gap:2px;animation:pubSheet .22s var(--ease)}
.pub .pnav-sheet[hidden]{display:none}
@keyframes pubSheet{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.pub .pnav-sheet a{display:flex;align-items:center;gap:8px;padding:14px;border-radius:12px;text-decoration:none;font-size:16px}
.pub .pnav-sheet a:not(.pbtn):hover{background:rgba(255,255,255,.05)}
.pub .pnav-sheet .ico{font-size:18px}
.pub .pnav-sheet .pbtn{margin-top:6px}
@media (max-width:1000px){.pub .pnav-links{display:none}.pub .pnav-menu{display:grid}.pub .pnav{gap:10px;height:68px}.pub .pnav .pnav-add{margin-left:auto}}
@media (max-width:420px){.pub .pnav .pnav-add{display:none}.pub .pnav .pnav-menu{margin-left:auto}.pub .plogo{font-size:18px}.pub .plogo img{width:28px;height:28px}}

/* ── small shared pieces ─────────────────────────────────────────────── */
.pub .live-dot{width:9px;height:9px;border-radius:50%;background:var(--green);animation:pubPing 2s ease-out infinite;flex:none;display:inline-block}
@keyframes pubPing{0%{box-shadow:0 0 0 0 rgba(61,220,151,.55)}80%,100%{box-shadow:0 0 0 10px rgba(61,220,151,0)}}
.pub .down .live-dot{background:var(--red);animation:none}
.pub .chip-ico{width:40px;height:40px;border-radius:11px;background:color-mix(in srgb,var(--c) 16%,transparent);color:var(--c);display:grid;place-items:center;font-size:20px;flex:none}
.pub .tier-name{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.03em;color:var(--c)}
.pub .tier-name::before{content:"";width:.42em;height:.42em;border-radius:50%;background:var(--c);flex:none}
.pub .t-free{--c:var(--free)}.pub .t-prem{--c:var(--premium)}.pub .t-vip{--c:var(--vip)}
.pub .vault{background:#0a1024;border-radius:14px;padding:16px 18px;box-shadow:inset 0 0 0 1px var(--edge);font-size:14px}
.pub .vault div{display:grid;grid-template-columns:92px 1fr;gap:10px;padding:4px 0}
.pub .vault span{color:var(--ink-3)}
.pub .vault code{font:500 14px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
.pub .vault s{color:var(--red);text-decoration-thickness:2px}
.pub .vault .ct{color:var(--green)}
.pub [data-in]{transition:opacity .6s ease var(--d,0ms),transform .8s var(--ease) var(--d,0ms)}
.pub.js-in [data-in]:not(.is-in),.js-in .pub [data-in]:not(.is-in){opacity:0;transform:translateY(22px)}

/* ── footer ──────────────────────────────────────────────────────────── */
.pub .pfoot{margin-top:var(--gap);background:var(--bg-2);padding:clamp(48px,7vw,88px) 0 28px;position:relative}
.pub main + .pfoot{margin-top:clamp(48px,6vw,96px)}
.pub .pfoot-cta{display:flex;justify-content:space-between;align-items:center;gap:18px 40px;flex-wrap:wrap;background:var(--panel);box-shadow:inset 0 0 0 1px var(--edge);border-radius:22px;padding:clamp(20px,3vw,36px);margin-bottom:clamp(40px,6vw,80px)}
.pub .pfoot-cta .pfoot-cta-h{color:var(--ink);font-size:clamp(22px,2.4vw,34px);font-weight:700;letter-spacing:-.03em;line-height:1.1;margin-bottom:4px}
.pub .pfoot-cta p{color:var(--ink-2)}
.pub .pfoot-grid{display:grid;grid-template-columns:minmax(0,5fr) repeat(3,minmax(0,2fr));gap:36px}
.pub .pfoot-brand p{color:var(--ink-2);font-size:15px;margin:16px 0 20px;max-width:26em}
.pub .pfoot-brand p a{color:var(--ink);font-weight:600;text-underline-offset:4px}
.pub .pfoot-soc{display:flex;gap:8px}
.pub .psoc{display:inline-flex;width:42px;height:42px;border-radius:12px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--edge);align-items:center;justify-content:center;transition:background-color .15s ease}
.pub .psoc:hover{background:var(--panel-2)}
.pub .psoc svg{width:19px;height:19px;fill:#fff}
.pub .pfoot-grid nav{display:flex;flex-direction:column;gap:10px}
.pub .pfoot-grid h4{font-size:14px;font-weight:600;color:var(--ink-3);margin:0 0 4px}
.pub .pfoot-grid nav a{text-decoration:none;font-size:15px;color:var(--ink)}
.pub .pfoot-grid nav a:hover{color:var(--gold)}
.pub .pfoot-copy{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:clamp(32px,5vw,64px);padding-top:20px;font-size:13px;color:var(--ink-3);border-top:1px solid var(--edge)}
@media (max-width:820px){.pub .pfoot-grid{grid-template-columns:1fr 1fr 1fr;gap:24px}.pub .pfoot-brand{grid-column:1/-1}}
@media (max-width:480px){.pub .pfoot-cta .pbtn{width:100%}.pub .pfoot-grid nav a{font-size:14px}}

/* ── Discord-accurate message preview (js/discord_preview.js) ───────────── */
.pub .dc-frame{background:#313338;border-radius:16px;overflow:hidden;color:#dbdee1;font:400 15px/1.375 "gg sans","Noto Sans",Whitney,"Helvetica Neue",Helvetica,Arial,sans-serif;text-align:left;box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.pub .dc-chan{display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;font-weight:600;color:#f2f3f5;font-size:15px;border-bottom:1px solid #1f2023}
.pub .dc-chan span{color:#80848e;font-size:20px;font-weight:400;display:inline-flex}
.pub .dc-chan svg{width:18px;height:18px}
.pub .dc-scroll{padding:14px 0 16px;max-height:560px;overflow:auto;scrollbar-width:thin;scrollbar-color:#1a1b1e transparent}
.pub .dc-msg{position:relative;padding:4px 16px 4px 72px;min-height:44px;margin-top:12px}
.pub .dc-msg:first-child{margin-top:0}
.pub .dc-msg.cont{margin-top:2px;min-height:0}
.pub .dc-msg.cont .dc-av{display:none}
.pub .dc-msg:hover{background:#2e3035}
.pub .dc-av{position:absolute;left:16px;top:4px;width:40px;height:40px;border-radius:50%;object-fit:cover;background:#1e1f22}
.pub .dc-cmd ~ .dc-av{top:28px}
.pub .dc-head{display:flex;align-items:center;gap:6px;line-height:1.375rem;flex-wrap:wrap}
.pub .dc-head b{color:#f2f3f5;font-weight:500;font-size:16px}
.pub .dc-head time{color:#949ba4;font-size:12px;margin-left:2px}
.pub .dc-tag{display:inline-flex;align-items:center;gap:2px;background:#5865f2;color:#fff;font-size:10px;font-weight:600;border-radius:4px;padding:1px 5px 1px 3px;height:15px;line-height:1}
.pub .dc-tag svg{width:12px;height:12px}
.pub .dc-content{color:#dbdee1;word-wrap:break-word}
.pub .dc-content b,.pub .dc-e-desc b,.pub .dc-e-field b{font-weight:700;color:inherit}
.pub .dc-content a,.pub .dc-e-desc a,.pub .dc-e-field a{color:#00a8fc;text-decoration:none}
.pub .dc-content code,.pub .dc-e-desc code,.pub .dc-e-field code{font-family:Consolas,"Andale Mono WT",monospace;font-size:85%;background:#1e1f22;border-radius:4px;padding:.15em .3em}
.pub .dc-del{color:#80848e;text-decoration:line-through}
.pub .dc-men{background:rgba(88,101,242,.3);color:#c9cdfb;border-radius:3px;padding:0 2px;font-weight:500}
.pub .dc-att{display:block;max-width:min(300px,100%);max-height:260px;border-radius:8px;margin-top:6px;object-fit:cover}
.pub .dc-embed{margin-top:4px;display:grid;max-width:432px;background:#2b2d31;border-left:4px solid var(--ec);border-radius:4px}
.pub .dc-e-grid{display:grid;grid-template-columns:minmax(0,1fr);padding:8px 16px 16px 12px;gap:8px 0}
.pub .dc-embed.has-thumb .dc-e-grid{grid-template-columns:minmax(0,1fr) auto}
.pub .dc-embed.has-thumb .dc-e-grid > *:not(.dc-thumb){grid-column:1}
.pub .dc-thumb{grid-column:2;grid-row:1/6;width:80px;height:80px;border-radius:4px;object-fit:cover;margin-left:16px;margin-top:8px}
.pub .dc-e-author{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#f2f3f5;margin-top:8px}
.pub .dc-e-author img{width:24px;height:24px;border-radius:50%}
.pub .dc-e-author a{color:#f2f3f5;text-decoration:none}
.pub .dc-e-title{font-size:16px;font-weight:600;color:#f2f3f5;margin-top:8px}
.pub .dc-e-title a{color:#00a8fc;text-decoration:none}
.pub .dc-e-desc{font-size:14px;line-height:1.375;color:#dbdee1}
.pub .dc-e-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pub .dc-e-field{grid-column:1/-1;font-size:14px;line-height:1.375}
.pub .dc-e-field.inl{grid-column:span 1}
.pub .dc-e-field > b{display:block;color:#f2f3f5;font-weight:600;margin-bottom:2px}
.pub .dc-e-img{grid-column:1/-1!important;display:block;max-width:100%;max-height:300px;border-radius:4px;margin-top:8px;object-fit:cover}
.pub .dc-e-foot{grid-column:1/-1!important;display:flex;align-items:flex-start;gap:8px;font-size:12px;color:#dbdee1;line-height:1.35;margin-top:4px}
.pub .dc-e-foot img{width:20px;height:20px;border-radius:50%;flex:none}
.pub .dc-btns{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.pub .dc-btn{height:32px;padding:0 16px;border:0;border-radius:8px;font-family:inherit;font-weight:500;font-size:14px;color:#fff;cursor:pointer;transition:filter .15s ease,transform .12s var(--ease)}
.pub .dc-btn:hover{filter:brightness(.9)}
.pub .dc-btn:active{transform:scale(.97)}
.pub .dc-btn.blurple{background:#5865f2}.pub .dc-btn.grey{background:#4e5058}.pub .dc-btn.green{background:#248046}.pub .dc-btn.red{background:#da373c}
.pub .dc-reacts{display:flex;gap:4px;margin-top:6px}
.pub .dc-react{display:inline-flex;align-items:center;gap:6px;background:#2b2d31;border:1px solid transparent;border-radius:8px;padding:2px 8px;font-size:15px}
.pub .dc-react b{font-size:14px;font-weight:600;color:#b5bac1}
.pub .dc-eph{display:flex;align-items:center;gap:6px;font-size:12px;color:#949ba4;margin-top:6px}
.pub .dc-eph svg{width:16px;height:16px}
.pub .dc-eph a{color:#00a8fc}
.pub .dc-note{font-size:12px;color:#949ba4;margin-top:4px;font-style:italic}
.pub .dc-cmd{display:flex;align-items:center;gap:6px;font-size:14px;color:#b5bac1;margin:0 0 4px -56px;position:relative;padding-left:56px}
.pub .dc-cmd-line{position:absolute;left:34px;top:9px;width:28px;height:12px;border-left:2px solid #4e5058;border-top:2px solid #4e5058;border-top-left-radius:6px}
.pub .dc-cmd img{width:16px;height:16px;border-radius:50%}
.pub .dc-cmd b{color:#f2f3f5;font-weight:500}
.pub .dc-cmd-name{color:#00a8fc}
.pub .dc-reply-tx{color:#b5bac1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pub .dc-sys{display:flex;align-items:center;gap:12px;padding:6px 16px 6px 28px;color:#949ba4;font-size:14px}
.pub .dc-sys b{color:#f2f3f5;font-weight:500}
.pub .dc-sys-ic{width:20px;text-align:center}
/* dashboard-view previews (features with no Discord message) */
.pub .db-card{background:#1a2347;border-radius:16px;padding:18px;box-shadow:inset 0 0 0 1px var(--edge);font-size:14px;text-align:left}
.pub .db-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.pub .db-h b{font-size:16px}
.pub .db-h span{color:var(--ink-3);font-size:13px}
.pub .db-row{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;background:rgba(255,255,255,.03);margin-bottom:8px}
.pub .db-row img{width:40px;height:40px;border-radius:50%;background:var(--panel-3)}
.pub .db-row b{display:block}
.pub .db-row small{color:var(--ink-3);font-size:12px}
.pub .db-sw{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink-2);white-space:nowrap}
.pub .db-sw i{width:34px;height:20px;border-radius:999px;background:#3a456e;position:relative}
.pub .db-sw i::after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff}
.pub .db-sw.on i{background:var(--green)}.pub .db-sw.on i::after{left:17px}
.pub .db-add{width:100%;margin-top:4px;background:none;border:1px dashed rgba(170,190,255,.25);border-radius:12px;padding:10px;color:var(--ink-2);font:500 13px var(--pf)}
.pub .db-tab{width:100%;border-collapse:collapse;font-size:13px}
.pub .db-tab th{text-align:left;color:var(--ink-3);font-weight:500;padding:6px 8px;border-bottom:1px solid var(--edge)}
.pub .db-tab td{padding:9px 8px;border-bottom:1px solid rgba(170,190,255,.05)}
.pub .db-tab td:last-child{color:var(--green);font-weight:600;white-space:nowrap}
.pub .db-foot{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.pub .db-pill{background:rgba(255,255,255,.06);border-radius:999px;padding:5px 11px;font-size:12px;color:var(--ink-2)}
.pub .db-cat{margin-bottom:12px}
.pub .db-cat p{display:flex;justify-content:space-between;margin-bottom:6px}
.pub .db-cat span{color:var(--ink-3);font-size:12px}
.pub .db-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.pub .db-thumbs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:var(--panel-3)}
@media (max-width:520px){
  .pub .dc-frame{font-size:14px;border-radius:14px}
  .pub .dc-msg{padding:4px 12px 4px 56px}.pub .dc-av{left:10px;width:36px;height:36px}
  .pub .dc-cmd{margin-left:-44px;padding-left:44px}.pub .dc-cmd-line{left:26px}
  .pub .dc-thumb{width:60px;height:60px;margin-left:10px}
  .pub .dc-e-grid{padding:8px 12px 12px 10px}
  .pub .dc-scroll{max-height:480px;padding:10px 0 12px}
  .pub .db-tab th:nth-child(2),.pub .db-tab td:nth-child(2){display:none}
  .pub .db-card{padding:14px}
}

/* ── heartbeat monitor (landing + bot_status) ────────────────────────── */
.pub .ecg{position:relative;height:150px;-webkit-mask:linear-gradient(90deg,transparent,#000 9%,#000 90%,transparent);mask:linear-gradient(90deg,transparent,#000 9%,#000 90%,transparent)}
.pub .ecg svg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.pub .ecg path{fill:none;stroke:url(#ecgGrad);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(61,220,151,.7))}
.pub .ecg .grid line{stroke:rgba(170,190,255,.06);stroke-width:1}
.pub .ecg .now{position:absolute;left:var(--dot-x,88%);top:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--green);box-shadow:0 0 12px rgba(61,220,151,.9),0 0 0 4px rgba(61,220,151,.18);will-change:transform}
/* .pub.down = the status page marks its own <body> (which is .pub); .pub .down = the landing's status card */
.pub .down .ecg path,.pub.down .ecg path{stroke:var(--red);filter:none}.pub .down .ecg .now,.pub.down .ecg .now{background:var(--red);box-shadow:none}

/* ── subpages ────────────────────────────────────────────────────────── */
.pub .sub-top{position:relative;overflow:hidden;padding-bottom:clamp(28px,5vw,64px)}
.pub .sub-top::before{content:"";position:absolute;inset:0;background:radial-gradient(rgba(170,190,255,.14) 1px,transparent 1.6px) 0 0/28px 28px;-webkit-mask:radial-gradient(ellipse 70% 90% at 50% 0%,#000 25%,transparent 75%);mask:radial-gradient(ellipse 70% 90% at 50% 0%,#000 25%,transparent 75%);pointer-events:none}
.pub .sub-top::after{content:"";position:absolute;left:50%;top:-220px;width:900px;height:520px;transform:translateX(-50%);background:radial-gradient(closest-side,var(--glow,rgba(255,200,61,.14)),transparent);pointer-events:none}
.pub .sub-top > *{position:relative;z-index:1}
.pub .crumb{display:flex;width:max-content;align-items:center;gap:8px;font-size:14px;color:var(--ink-3);text-decoration:none;margin:clamp(16px,4vw,48px) 0 16px}
.pub .crumb:hover{color:var(--ink)}
.pub .crumb .ico{font-size:16px}
.pub .sub-h1{font-size:clamp(34px,5vw,72px);font-weight:700;letter-spacing:-.04em;line-height:1.02;margin-bottom:14px;max-width:14em}
.pub .sub-lede{font-size:clamp(16px,1.4vw,20px);color:var(--ink-2);max-width:36em}
/* status */
.pub .pill-state{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:15px;background:rgba(61,220,151,.12);color:#9ff0c9;border-radius:999px;padding:8px 16px;box-shadow:inset 0 0 0 1px rgba(61,220,151,.3);margin-bottom:18px}
.pub .down .pill-state,.pub .pill-state.down{background:rgba(255,107,107,.12);color:#ffb3b3;box-shadow:inset 0 0 0 1px rgba(255,107,107,.3)}
.pub .pill-state.connecting{background:rgba(255,181,71,.12);color:#ffd7a0;box-shadow:inset 0 0 0 1px rgba(255,181,71,.3)}
.pub .meta-row{display:flex;gap:8px 20px;flex-wrap:wrap;margin-top:16px;font-size:14px;color:var(--ink-3)}
.pub .meta-row b{color:var(--ink-2);font-weight:500;font-variant-numeric:tabular-nums}
.pub .ring-count{display:inline-flex;align-items:center;gap:8px}
.pub .ring-count svg{width:18px;height:18px;transform:rotate(-90deg)}
.pub .ring-count circle{fill:none;stroke-width:3}
.pub .mon-card{position:relative;border-radius:26px;padding:clamp(16px,2.4vw,30px);background:radial-gradient(800px 260px at 80% 0%,rgba(61,220,151,.12),transparent 60%),linear-gradient(180deg,#132048,#0d1530);box-shadow:inset 0 0 0 1px rgba(61,220,151,.18),0 30px 80px -20px rgba(3,8,24,.6);overflow:hidden;margin-bottom:10px}
.pub .mon-card .ecg{margin:6px calc(clamp(16px,2.4vw,30px) * -1) 0}
.pub .mon-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pub .mon-row b{font-size:15px;font-weight:600}
.pub .mon-row small{color:var(--ink-3);font-size:13px;margin-left:auto}
.pub .stats5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.pub .s5{position:relative;background:var(--panel);border-radius:20px;padding:18px;box-shadow:inset 0 0 0 1px var(--edge);overflow:hidden}
.pub .s5::before{content:"";position:absolute;right:-30px;top:-30px;width:120px;height:120px;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--c) 30%,transparent),transparent)}
.pub .s5 > span{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-3)}
.pub .s5 > span .ico{font-size:16px;color:var(--c)}
.pub .s5 b{display:block;font-size:clamp(24px,2.6vw,38px);font-weight:700;letter-spacing:-.03em;margin:8px 0 2px;font-variant-numeric:tabular-nums}
.pub .s5 small{font-size:12.5px;color:var(--ink-3)}
.pub .skel{display:inline-block;width:3.2em;height:.8em;border-radius:8px;background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.12),rgba(255,255,255,.05));background-size:200% 100%;animation:pubSkel 1.2s linear infinite;vertical-align:middle}
@keyframes pubSkel{to{background-position:-200% 0}}
.pub .sec-title{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap;margin:clamp(40px,6vw,80px) 0 16px}
.pub .sec-title h2{font-size:clamp(26px,3vw,40px)}
.pub .sec-title p{color:var(--ink-3);font-size:14px}
.pub .shards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.pub .shard{background:var(--panel);border-radius:20px;padding:18px;box-shadow:inset 0 0 0 1px var(--edge)}
.pub .shard-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.pub .shard-top b{font-size:17px}
.pub .spill{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:rgba(61,220,151,.12);color:#9ff0c9}
.pub .spill.off{background:rgba(255,107,107,.12);color:#ffb3b3}.pub .spill.off .live-dot{background:var(--red);animation:none}
.pub .spill.connecting{background:rgba(255,181,71,.12);color:#ffd7a0}
.pub .lat-row{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-3);margin-bottom:8px}
.pub .lat-row b{color:var(--ink);font-weight:600}
.pub .lat-bar{height:8px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}
.pub .lat-bar i{display:block;height:100%;border-radius:inherit;transition:width .6s var(--ease)}
.pub .lat-bar i.good{background:linear-gradient(90deg,#3ddc97,#7cf0c0)}.pub .lat-bar i.warn{background:linear-gradient(90deg,#ffb547,#ffd27a)}.pub .lat-bar i.bad{background:linear-gradient(90deg,#ff6b6b,#ff9a9a)}
.pub .shard-meta{display:flex;justify-content:space-between;margin-top:14px;padding-top:14px;border-top:1px solid var(--edge);font-size:13px;color:var(--ink-3)}
.pub .shard-meta b{color:var(--ink)}
.pub .about{margin-top:24px;background:rgba(255,255,255,.03);border-radius:18px;padding:16px 18px;font-size:14.5px;color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--edge);display:flex;gap:14px}
.pub .about .ico{font-size:20px;color:var(--ice);flex:none;margin-top:2px}
.pub .about b{color:var(--ink)}
.pub .g{color:var(--green);font-weight:600}.pub .y{color:#ffb547;font-weight:600}.pub .r{color:var(--red);font-weight:600}
/* premium */
.pub .plans3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.pub .pc{position:relative;border-radius:24px;padding:24px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--edge);display:flex;flex-direction:column;overflow:hidden;transition:transform .3s var(--ease)}
@media (hover:hover){.pub .pc:hover{transform:translateY(-4px)}}
.pub .pc::before{content:"";position:absolute;inset:-40% -20% auto auto;width:320px;height:320px;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--c) 26%,transparent),transparent);pointer-events:none}
.pub .pc.prem{--c:var(--premium);box-shadow:inset 0 0 0 2px var(--premium)}
.pub .pc.vip{--c:var(--vip);box-shadow:inset 0 0 0 1px rgba(255,123,0,.5)}
.pub .pc.free{--c:var(--free)}
.pub .pc-tag{align-self:flex-start;font-size:12px;font-weight:700;border-radius:999px;padding:4px 10px;background:color-mix(in srgb,var(--c) 18%,transparent);color:var(--c);margin-bottom:14px}
.pub .pc .tier-name{font-size:32px;margin-bottom:6px}
.pub .pc > p{color:var(--ink-2);font-size:15px;margin-bottom:18px}
.pub .pc ul{list-style:none;padding:0;display:grid;gap:14px;margin-bottom:22px;flex:1;align-content:start}
.pub .pc li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;font-size:15px}
.pub .pc li .ico{font-size:18px;color:var(--c);margin-top:2px}
.pub .pc li b{display:block;font-weight:600;margin-bottom:2px}
.pub .pc li span{color:var(--ink-2);font-size:14px}
.pub .pc .pbtn{width:100%}
.pub .pc.prem .pbtn{background:var(--premium);color:#1b1400}
.pub .pc.vip .pbtn{background:var(--vip);color:#1b0b00}
.pub .ctab-wrap{background:var(--panel);border-radius:24px;box-shadow:inset 0 0 0 1px var(--edge);overflow:auto}
.pub .ctab{width:100%;border-collapse:collapse;min-width:600px}
.pub .ctab thead th{position:sticky;top:0;background:#1a2550;text-align:left;font-size:14px;font-weight:600;padding:16px 18px;z-index:1}
.pub .ctab thead th:not(:first-child){text-align:center;width:120px}
.pub .ctab th.pre{color:var(--premium)}.pub .ctab th.vip{color:var(--vip)}.pub .ctab th.fre{color:var(--ink-2)}
.pub .ctab .grp td{padding:22px 18px 8px;font-size:12.5px;font-weight:700;color:var(--gold)}
.pub .ctab tbody tr:not(.grp) td{padding:13px 18px;border-top:1px solid rgba(170,190,255,.06);font-size:14.5px}
.pub .ctab tbody tr:not(.grp):hover td{background:rgba(255,255,255,.02)}
.pub .ctab td small{display:block;color:var(--ink-3);font-size:12.5px;margin-top:2px}
.pub .ctab td.v{text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
.pub .ctab td.v.pre{color:var(--premium)}.pub .ctab td.v.vip{color:var(--vip)}
.pub .ctab td.v .ico{font-size:18px;color:var(--green)}
.pub .ctab td.v .no{color:var(--ink-3);font-weight:400}
/* legal */
.pub .legal{display:grid;grid-template-columns:240px minmax(0,1fr);gap:clamp(24px,5vw,72px);align-items:start}
.pub .toc{position:sticky;top:20px;display:grid;gap:2px}
.pub .toc p{font-size:13px;color:var(--ink-3);margin-bottom:8px}
.pub .toc a{display:block;padding:8px 12px;border-radius:10px;text-decoration:none;font-size:14px;color:var(--ink-2);transition:background-color .15s ease,color .15s ease;white-space:nowrap}
.pub .toc a:hover{color:var(--ink);background:rgba(255,255,255,.04)}
.pub .toc a.on{color:var(--ink);background:var(--panel);box-shadow:inset 2px 0 0 var(--gold)}
.pub .doc{max-width:720px}
.pub .doc-section{scroll-margin-top:20px;padding:24px 0;border-top:1px solid var(--edge)}
.pub .doc-section:first-child{border-top:0;padding-top:0}
.pub .doc h2{font-size:clamp(21px,2vw,28px);margin-bottom:12px;letter-spacing:-.025em}
.pub .doc h3{font-size:18px;margin:18px 0 8px}
.pub .doc p,.pub .doc li{color:var(--ink-2);font-size:16.5px;line-height:1.7}
.pub .doc p + p{margin-top:12px}
.pub .doc ul{padding-left:20px;margin-top:10px;display:grid;gap:6px}
.pub .doc li::marker{color:var(--gold)}
.pub .doc a{color:var(--ice)}
.pub .doc strong{color:var(--ink)}
.pub .doc-notice{margin-top:16px;background:rgba(255,200,61,.08);box-shadow:inset 0 0 0 1px rgba(255,200,61,.25);border-radius:14px;padding:14px 16px;font-size:15px;color:var(--ink-2)}
.pub .updated{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-3);margin-top:6px}
.pub .updated .ico{font-size:15px}
@media (max-width:1100px){.pub .stats5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.pub .legal{grid-template-columns:1fr;gap:16px}.pub .toc{position:static;grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto;margin-inline:calc(var(--m) * -1);padding:0 var(--m) 4px;scrollbar-width:none}.pub .toc p{display:none}}
@media (max-width:640px){
  .pub .stats5{grid-template-columns:1fr 1fr;gap:8px}.pub .stats5 .s5:first-child{grid-column:1/-1}
  .pub .s5{padding:14px;border-radius:16px}
  .pub .ctab-wrap{overflow:clip;border-radius:18px}.pub .ctab{min-width:0;table-layout:fixed}.pub .ctab thead th:not(:first-child){width:54px}.pub .ctab td,.pub .ctab th{padding-left:10px!important;padding-right:10px!important}.pub .ctab td.v,.pub .ctab thead th:not(:first-child){padding-left:2px!important;padding-right:2px!important;text-align:center}.pub .ctab thead th{font-size:12.5px;padding-block:12px}.pub .ctab tbody tr:not(.grp) td{font-size:13.5px;padding-block:11px}.pub .ctab td.v{font-size:13px}.pub .ctab td small{font-size:11.5px}.pub .ctab .grp td{padding-top:18px}
  .pub .ecg{height:110px}.pub .mon-row small{margin-left:0;width:100%}
  /* Plans stay three across on phones, scaled down (descriptions hidden) */
  .pub .plans3{gap:6px}
  .pub .pc{padding:12px 9px 10px;border-radius:16px}
  .pub .pc::before{width:160px;height:160px}
  .pub .pc-tag{font-size:9.5px;padding:3px 7px;margin-bottom:8px;white-space:nowrap}
  .pub .pc .tier-name{font-size:18px;margin-bottom:8px}
  .pub .pc .tier-name::before{width:7px;height:7px}
  .pub .pc > p:not(.tier-name),.pub .pc li div span,.pub .pc-long{display:none}
  .pub .pc .tier-name{gap:6px}
  .pub .pc ul{gap:8px;margin-bottom:12px}
  .pub .pc li{grid-template-columns:12px minmax(0,1fr);gap:5px;font-size:11.5px;line-height:1.3}
  .pub .pc li .ico{font-size:12px;margin-top:1px}
  .pub .pc li b{font-weight:600;margin:0}
  .pub .pc .pbtn{padding:9px 4px;font-size:12.5px;border-radius:10px;min-height:0}
  .pub .doc-section{padding:18px 0}
}
@media (prefers-reduced-motion:reduce){.pub *{animation:none!important;transition-duration:.01ms!important}}
