@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../fonts/Bricolage-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #07080a;
  --bg2: #0c0d10;
  --card: #111216;
  --card-hi: #1a1b20;
  --line: rgba(255, 255, 255, 0.07);
  --line-hi: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #9ea2ac;
  --red: #ff4d28;
  --nitro: #ff7a1a;
  --amber: #ffc53d;
  --ok: #34d388;
  --danger: #ff4555;
  --radius: 18px;
  --display: 'Bricolage', 'Geist', system-ui, sans-serif;
  font-family: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 500px at 50% -120px, rgba(255, 77, 40, 0.16), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px) 0 0 / 26px 26px,
    var(--bg);
}
body.in-session { overflow: hidden; background: #000; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sprite { display: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { background: var(--card-hi); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-family: inherit; font-weight: 600; font-size: 12px; }
#speedfield { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#home > :not(#speedfield) { position: relative; z-index: 1; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; color: var(--text); cursor: pointer; transition: transform 0.12s, background 0.2s, border-color 0.2s, box-shadow 0.2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary { background: linear-gradient(135deg, var(--red), var(--nitro)); color: #fff; box-shadow: 0 10px 30px rgba(255, 77, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.primary:hover { box-shadow: 0 14px 40px rgba(255, 122, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-hi); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 122, 26, 0.6); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.block { width: 100%; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
input, select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-hi); background: var(--bg2); color: var(--text); font-family: inherit; font-size: 16px; outline: none; }
input:focus, select:focus { border-color: var(--nitro); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18); }
input[type=file] { padding: 6px; color: var(--muted); font-size: 14px; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line-hi); border-radius: 999px; background: var(--card-hi); color: var(--text); font: 600 13px/1 'Geist', sans-serif; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: rgba(255, 122, 26, 0.6); }
progress { accent-color: var(--nitro); }

.sd-spot-shade { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(6px); animation: rise 0.25s ease-out; }
.sd-spot-card { position: relative; display: grid; gap: 14px; justify-items: start; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  padding: 22px; border-radius: 22px; background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line-hi);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.sd-spot-img { width: calc(100% + 44px); margin: -22px -22px 0; border-radius: 22px 22px 0 0; display: block; }
.sd-spot-body { line-height: 1.55; }
.sd-spot-body h2, .sd-spot-body h3 { margin: 0 0 8px; font-family: var(--display); letter-spacing: -0.02em; }
.sd-spot-body p { margin: 0 0 10px; color: var(--muted); }
.sd-spot-body ul { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.sd-spot-body a { color: var(--nitro); }
.sd-spot-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-hi);
  background: rgba(7, 8, 10, 0.7); color: var(--text); font: 600 15px/1 'Geist', sans-serif; cursor: pointer; }
.sd-spot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-spot-close:disabled { cursor: default; color: var(--amber); }
.spot-edit { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 18px; }
.spot-fields { display: grid; gap: 12px; align-content: start; }
.spot-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.spot-plans { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.spot-preview .sd-spot-card { width: 100%; }
@media (max-width: 900px) { .spot-edit { grid-template-columns: 1fr; } }
label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 14px; z-index: 20 !important; display: flex; align-items: center; gap: 22px; width: min(1100px, calc(100% - 32px)); margin: 14px auto 0; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(12, 13, 16, 0.72); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.nav .links { display: flex; gap: 22px; margin-left: 10px; padding-left: 22px; border-left: 1px solid var(--line); }
.nav .links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.15s; }
.nav .links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-signin { color: var(--text); font-weight: 500; }

/* ---------- hero ---------- */
.hero { display: grid; justify-items: center; text-align: center; padding: 96px 24px 40px; max-width: 1100px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-hi); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 13px; font-weight: 600; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: shiftlight 1.6s steps(1) infinite; }
@keyframes shiftlight { 0%, 60% { background: var(--ok); box-shadow: 0 0 10px var(--ok); } 61%, 85% { background: var(--amber); box-shadow: 0 0 12px var(--amber); } 86%, 100% { background: var(--red); box-shadow: 0 0 14px var(--red); } }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 7.6vw, 96px); line-height: 0.98; letter-spacing: -0.045em; margin: 26px 0 22px; }
.accent { position: relative; background: linear-gradient(100deg, var(--red) 10%, var(--nitro) 55%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: -10px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--red), var(--amber)); transform-origin: left; animation: stripe 2.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes stripe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #c9ccd3; max-width: 680px; margin: 0; }
.connect-pill { display: flex; align-items: center; gap: 6px; width: min(720px, 100%); margin-top: 34px; padding: 7px 7px 7px 22px; border-radius: 999px; background: rgba(17, 18, 22, 0.9); border: 1px solid rgba(255, 122, 26, 0.35); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 77, 40, 0.05); }
.connect-pill input { border: 0; background: transparent; padding: 12px 6px; box-shadow: none; }
.connect-pill #remote-id { flex: 1.6; font-size: 19px; font-weight: 600; letter-spacing: 0.04em; }
.connect-pill #remote-pw { flex: 1; }
.connect-pill .divider { width: 1px; align-self: stretch; margin: 10px 4px; background: var(--line-hi); }
.hint { margin: 14px 0 0; color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pill { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.pill::before { content: '●'; margin-right: 7px; color: var(--muted); }
.pill.ok::before { color: var(--ok); }
.warn { color: var(--amber); font-size: 14px; }

.dash { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; width: min(900px, 100%); margin-top: 64px; padding: 28px; border-radius: 28px; background: linear-gradient(180deg, rgba(26, 27, 32, 0.8), rgba(17, 18, 22, 0.8)); border: 1px solid var(--line); text-align: left; }
.gauge { position: relative; display: grid; justify-items: center; }
.tacho { width: 260px; height: 156px; overflow: visible; }
.tacho .arc-bg { stroke: rgba(255, 255, 255, 0.08); stroke-width: 12; fill: none; }
.tacho .arc { stroke: url(#arc); stroke-width: 12; fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; animation: rev 3.2s cubic-bezier(.3, .7, .2, 1) infinite; }
@keyframes rev { 0% { stroke-dashoffset: 100; } 45% { stroke-dashoffset: 4; } 55% { stroke-dashoffset: 10; } 100% { stroke-dashoffset: 100; } }
.tacho .ticks line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; }
.tacho .ticks line.red { stroke: var(--red); }
.tacho .needle { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; transform-origin: 100px 110px; animation: needle 3.2s cubic-bezier(.3, .7, .2, 1) infinite; filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.8)); }
@keyframes needle { 0% { transform: rotate(-88deg); } 45% { transform: rotate(80deg); } 55% { transform: rotate(70deg); } 100% { transform: rotate(-88deg); } }
.tacho .hub { fill: var(--card-hi); stroke: var(--nitro); stroke-width: 3; }
.readout { position: absolute; top: 88px; display: flex; align-items: baseline; gap: 4px; }
.readout b { font-family: var(--display); font-size: 40px; letter-spacing: -0.03em; }
.readout span { color: var(--muted); font-weight: 600; }
.gauge small { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stats li { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -0.03em; background: linear-gradient(100deg, #fff, #ffd9c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 96px 24px 24px; text-align: center; }
.section.narrow { max-width: 760px; text-align: left; }
.section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 14px; }
.section.narrow h2 { text-align: center; }
.sub { color: var(--muted); font-size: 17px; margin: 0 auto 40px; max-width: 620px; }
.sub.small { font-size: 13px; margin-top: 18px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.steps article, .grid article { position: relative; padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(26, 27, 32, 0.9), rgba(17, 18, 22, 0.9)); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.steps article:hover, .grid article:hover { border-color: rgba(255, 122, 26, 0.45); transform: translateY(-3px); }
.steps article::before, .grid article::before { content: ''; position: absolute; left: 22px; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--red), var(--amber)); transition: width 0.35s ease; }
.steps article:hover::before, .grid article:hover::before { width: 55%; }
.num { position: absolute; right: 22px; top: 18px; font-family: var(--display); font-size: 44px; color: rgba(255, 255, 255, 0.06); }
.steps svg, .grid svg { width: 26px; height: 26px; color: var(--nitro); padding: 9px; box-sizing: content-box; border-radius: 12px; background: rgba(255, 77, 40, 0.1); }
.steps h3, .grid h3 { margin: 18px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.steps p, .grid p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }

/* ---------- pricing ---------- */
.period { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 30px; }
.period button { border: 0; background: transparent; color: var(--muted); font: 600 14px/1 'Geist', sans-serif; padding: 11px 18px; border-radius: 999px; cursor: pointer; }
.period button.on { background: var(--card-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-hi); }
.save { margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(52, 211, 136, 0.14); color: var(--ok); font-size: 11px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 24px; background: linear-gradient(180deg, rgba(26, 27, 32, 0.92), rgba(17, 18, 22, 0.92)); border: 1px solid var(--line); }
.plan.featured { border-color: rgba(255, 122, 26, 0.6); box-shadow: 0 30px 80px rgba(255, 77, 40, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.plan .tag { position: absolute; top: -12px; left: 30px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--red), var(--nitro)); font-size: 12px; font-weight: 600; }
.plan h3 { margin: 0; font-size: 18px; color: var(--muted); font-weight: 600; }
.price { margin: 14px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-family: var(--display); font-size: 52px; letter-spacing: -0.04em; }
.price span { color: var(--muted); }
.billed { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { padding-left: 28px; position: relative; color: #d9dbe0; }
.plan li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 122, 26, 0.16); box-shadow: inset 0 0 0 4px rgba(255, 122, 26, 0.0); }
.plan li::after { content: ''; position: absolute; left: 5px; top: 7px; width: 6px; height: 3px; border-left: 2px solid var(--nitro); border-bottom: 2px solid var(--nitro); transform: rotate(-45deg); }

/* ---------- downloads, faq, footer ---------- */
.downloads { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dl { display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: left; transition: border-color 0.2s, transform 0.2s; }
a.dl:hover { border-color: rgba(255, 122, 26, 0.6); transform: translateY(-3px); }
.dl svg { width: 28px; height: 28px; color: var(--nitro); margin-bottom: 6px; }
.dl span { color: var(--muted); font-size: 13px; }
.dl.soon { opacity: 0.5; }
a.dl.soon { pointer-events: none; }
.dl .dl-date:empty { display: none; }
.whatsnew { display: grid; gap: 14px; max-width: 760px; margin: 28px auto 0; text-align: left; }
.whatsnew-item { padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.whatsnew-item h3 { margin: 0 0 10px; font-size: 16px; }
.whatsnew-text { margin: 0; color: var(--muted); line-height: 1.6; white-space: pre-line; }
.whatsnew-text.clamped { max-height: 6.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.whatsnew-more { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--nitro); font: 600 14px/1 'Geist', sans-serif; cursor: pointer; }
details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::after { content: '+'; color: var(--nitro); font-size: 22px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 1140px; margin: 80px auto 0; padding: 32px 24px 48px; border-top: 1px solid var(--line); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); }

/* ---------- session (browser client) ---------- */
#session { position: fixed; inset: 0; background: #000; z-index: 30; }
#stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#screen { max-width: 100%; max-height: 100%; width: auto; height: auto; outline: none; touch-action: none; background: #000; }
#screen.viewonly { cursor: default !important; }
#remote-cursor { position: fixed; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; image-rendering: pixelated; z-index: 3; }
#toolbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 18px; background: rgba(12, 13, 16, 0.88); backdrop-filter: blur(14px); border: 1px solid var(--line); z-index: 5; max-width: calc(100vw - 20px); overflow-x: auto; transition: transform 0.18s ease; }
#session:fullscreen #toolbar:not(.peek):not(:hover):not(:focus-within) { transform: translate(-50%, calc(-100% - 12px)); }
#tb-hotzone { position: absolute; top: 0; left: 0; right: 0; height: 6px; z-index: 6; display: none; }
#session:fullscreen #tb-hotzone { display: block; }
#toolbar .peer { padding: 0 10px; font-weight: 600; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
#toolbar select { width: auto; padding: 8px 10px; font-size: 14px; border-radius: 10px; }
#monitors { display: flex; gap: 4px; }
.tb { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 9px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--text); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.tb:hover { background: rgba(255, 255, 255, 0.12); }
.tb.on { background: linear-gradient(135deg, var(--red), var(--nitro)); color: #fff; }
.tb.off { color: var(--danger); }
.tb.rec { background: var(--danger); color: #fff; animation: rec-pulse 1.6s ease-in-out infinite; }
@keyframes rec-pulse { 50% { opacity: 0.65; } }
.rec-time { font: 600 12px/1 var(--mono, ui-monospace, monospace); color: #ff9aa3; min-width: 3.2em; }
.tb.text { padding: 0 12px; font-size: 13px; }
.free-timer { background: rgba(255, 197, 61, 0.14); color: var(--amber); }
.free-timer.urgent { background: rgba(255, 69, 85, 0.18); color: #ff9aa3; }
.tb.danger { background: rgba(255, 69, 85, 0.18); color: #ff9aa3; }
.tb.danger:hover { background: var(--danger); color: #fff; }
.tb.badge::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.popover { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 7; display: grid; grid-template-columns: repeat(3, auto); gap: 12px; padding: 14px; border-radius: 14px; background: rgba(12, 13, 16, 0.96); border: 1px solid var(--line); }
.popover select { padding: 8px 10px; font-size: 14px; }
.tb-menu { position: absolute; z-index: 7; display: grid; gap: 2px; min-width: 250px; padding: 6px; border-radius: 14px; background: rgba(12, 13, 16, 0.96); border: 1px solid var(--line); }
.tb-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-family: inherit; font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; }
.tb-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.tb-menu button svg { width: 18px; height: 18px; color: var(--muted); }
.tb-menu button.on svg { color: var(--nitro); }
#stats { position: absolute; bottom: 14px; left: 14px; z-index: 4; display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(12, 13, 16, 0.88); border: 1px solid var(--line); font-size: 13px; min-width: 220px; }
#stats div { display: flex; justify-content: space-between; gap: 18px; }
#stats span { color: var(--muted); }
#viewonly { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(255, 197, 61, 0.16); color: var(--amber); font-size: 13px; z-index: 4; }
#soft-keyboard { position: absolute; left: -1000px; top: 0; width: 1px; height: 1px; opacity: 0; }
.panel { position: absolute; top: 70px; right: 12px; bottom: 12px; width: min(360px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(12, 13, 16, 0.96); border: 1px solid var(--line); z-index: 6; }
#panel-chat { top: auto; height: min(380px, 60vh); }
.panel header { display: flex; align-items: center; justify-content: space-between; }
#chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.msg { align-self: flex-start; max-width: 82%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--card-hi); line-height: 1.4; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, var(--red), var(--nitro)); border-radius: 14px 14px 4px 14px; }
#chat-form { display: flex; gap: 8px; }
#chat-form .btn { padding: 0 16px; border-radius: 12px; }
.files-bar { display: flex; gap: 10px; align-items: center; }
#files-path { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#files-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font-family: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.file-row:hover { background: rgba(255, 255, 255, 0.05); }
.file-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .size { color: var(--muted); font-size: 12px; }
.ico-folder::before { content: '📁'; }
.ico-file::before { content: '📄'; }
.err { color: var(--danger); padding: 10px; }
.upload { cursor: pointer; border-radius: 12px; }
#transfers { display: grid; gap: 8px; max-height: 30%; overflow-y: auto; }
.transfer { display: grid; gap: 4px; font-size: 13px; }
.transfer progress { width: 100%; height: 6px; accent-color: var(--nitro); }
.transfer.failed small { color: var(--danger); }
.transfer.done small { color: var(--ok); }
#overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 8, 10, 0.86); z-index: 10; }
.card { background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.overlay-card { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: min(420px, 92vw); }
.overlay-card h2 { margin: 8px 0 0; font-family: var(--display); letter-spacing: -0.02em; }
.overlay-card .status::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border: 2px solid var(--nitro); border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; }
.overlay-card .status:empty::before { display: none; }
.error { color: #ff9aa3; font-weight: 600; }
#sas-box { display: grid; gap: 4px; margin: 6px 0; }
.wait-pw { display: grid; gap: 8px; margin: 10px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }
.wait-pw .row { flex-wrap: nowrap; gap: 8px; }
.wait-pw input { padding: 10px 14px; }
#sas { font-family: var(--display); font-size: 30px; letter-spacing: 0.08em; color: var(--amber); }
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 40; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--card-hi); border: 1px solid var(--line); max-width: 360px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: rise 0.2s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ---------- account page ---------- */
.account { max-width: 980px; margin: 0 auto; padding: 70px 24px 40px; }
.auth { max-width: 440px; margin: 40px auto; }
.auth h1, .account h1 { font-family: var(--display); font-size: 44px; letter-spacing: -0.04em; margin: 0 0 8px; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin: 22px 0; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); font: 600 14px/1 'Geist', sans-serif; padding: 11px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: var(--card-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-hi); }
.form { display: grid; gap: 14px; }
.form .error { margin: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin: 26px 0; }
.plan-card .name { font-family: var(--display); font-size: 34px; letter-spacing: -0.03em; }
.plan-card .limits { color: var(--muted); font-size: 14px; margin-top: 6px; }
.devices { display: grid; gap: 10px; }
.device { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.device .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 77, 40, 0.1); color: var(--nitro); }
.device .meta small { display: block; color: var(--muted); }
.device .meta .own-name { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 13px; }
.device.renamable { grid-template-columns: auto 1fr auto auto auto; }
.icon-btn.rename:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--muted); }
.status-dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.icon-btn { border: 0; background: rgba(255, 255, 255, 0.05); color: var(--muted); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--danger); background: rgba(255, 69, 85, 0.12); }
.section-label { margin: 0; letter-spacing: 0.08em; }
label.check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
label.check input { width: 18px; height: 18px; padding: 0; margin: 1px 0 0; accent-color: var(--nitro); flex: none; box-shadow: none; }
label.check a, .legal a, .sub a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 3px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 70px 24px 20px; line-height: 1.65; }
.legal h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .operator { margin-top: 44px; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.legal .operator p { margin: 4px 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.legal-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-hi); color: var(--muted); font-size: 14px; }
.legal-nav a.on { color: var(--text); background: var(--card-hi); }
.empty { padding: 26px; border-radius: 16px; border: 1px dashed var(--line-hi); color: var(--muted); text-align: center; }
.social { display: grid; gap: 10px; margin: 22px 0 4px; }
.social-btn { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.social-btn:hover { background: #f2f2f2; }
.social-btn svg { width: 18px; height: 18px; flex: none; stroke: none; fill: currentColor; }
.social p { margin: 2px 0 0; line-height: 1.5; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-hi); }
.forgot-link { justify-self: center; color: var(--muted); text-decoration: none; }
.forgot-link:hover { color: var(--text); }
.ok-note { margin: 0; color: var(--ok); font-weight: 600; }
.verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
  padding: 14px 18px; border-radius: 14px; background: rgba(255, 197, 61, 0.08); border: 1px solid rgba(255, 197, 61, 0.35); }
.link-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 122, 26, 0.1); border: 1px solid rgba(255, 122, 26, 0.35); }
.link-card { margin-bottom: 26px; border-color: rgba(255, 122, 26, 0.45); }
.link-card h2 { margin: 0 0 16px; font-size: 22px; }
.link-card .device { grid-template-columns: auto 1fr; margin-bottom: 14px; }
.warn { color: var(--amber); line-height: 1.5; }
.methods { display: grid; gap: 10px; margin-bottom: 26px; }
.method { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }

/* ---------- your computers / address book ---------- */
.my-computers { display: grid; justify-items: center; gap: 8px; margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; }
.chip { border: 1px solid var(--line-hi); background: rgba(255, 255, 255, 0.04); color: var(--text); font: 500 14px/1 'Geist', sans-serif; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: rgba(255, 122, 26, 0.6); }
.chip.on::before, .chip.off::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--muted); }
.chip.on::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.book-form { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 10px; align-items: end; margin: 10px 0 12px; }
.book-form label { display: grid; gap: 6px; font-size: 13px; }
.book-form input { padding: 11px 14px; font-size: 15px; }
#book { margin-bottom: 26px; }

/* ---------- admin dashboard ---------- */
.adm { max-width: 1320px; margin: 0 auto; padding: 40px 24px 60px; }
.adm h1 { font-family: var(--display); letter-spacing: -0.03em; margin: 0 0 6px; font-size: 30px; }
.adm h2.section-label { margin: 30px 0 10px; }
.adm-badge { padding: 4px 10px; border-radius: 999px; background: rgba(255, 77, 40, 0.15); color: var(--nitro); font-size: 13px; font-weight: 600; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 22px; }
.adm-tabs button { border: 0; background: transparent; color: var(--muted); font: 600 14px/1 'Geist', sans-serif; padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.adm-tabs button.on { background: var(--card-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-hi); }
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.adm-stat { display: grid; gap: 6px; padding: 20px 22px; }
.adm-stat b { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.adm-bar input:not([type=checkbox]), .adm-bar select { width: auto; min-width: 240px; padding: 10px 14px; font-size: 14px; }
.adm-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr.click { cursor: pointer; }
.adm-table tr.click:hover td { background: rgba(255, 255, 255, 0.03); }
.adm-table a, .adm-user a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 3px; }
.adm-table a.danger, .btn.danger { color: #ff9aa3; }
.adm-party { display: grid; gap: 2px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.adm-plan { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.07); color: var(--muted); white-space: nowrap; }
.adm-plan.pro, .adm-plan.team, .adm-plan.active, .adm-plan.sent { background: rgba(52, 211, 136, 0.14); color: var(--ok); }
.adm-plan.enterprise, .adm-plan.accepted { background: rgba(255, 197, 61, 0.16); color: var(--amber); }
.adm-plan.banned, .adm-plan.cancelled, .adm-plan.declined, .adm-plan.ended { background: rgba(255, 69, 85, 0.14); color: #ff9aa3; }
.adm-user { display: grid; gap: 10px; margin: 14px 0 0; }
.adm-user p { margin: 0; }
.adm-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.adm-inline label { display: grid; gap: 6px; font-size: 13px; }
.adm-inline input, .adm-inline select { width: auto; min-width: 150px; padding: 9px 12px; font-size: 14px; }
.adm-table textarea { min-width: 220px; padding: 9px 12px; font-size: 13px; }
.adm-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.adm-form h2 { grid-column: 1 / -1; margin: 0; font-size: 20px; }
.adm-form label { display: grid; gap: 6px; font-size: 13px; align-content: start; }
.adm-form label.check { display: flex; align-self: end; }
.adm-form .wide, .adm-form p { grid-column: 1 / -1; margin: 0; }
.adm-form input, .adm-form select, .adm-form textarea { padding: 10px 12px; font-size: 14px; }
textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-hi); background: var(--bg2); color: var(--text); font-family: inherit; font-size: 15px; resize: vertical; }
.toast.error { border-color: rgba(255, 69, 85, 0.5); }
#offer-form-wrap { margin-bottom: 18px; }

/* ---------- enterprise offer page ---------- */
.offer h1 { margin-bottom: 6px; }
.offer-status { color: var(--amber); font-weight: 600; min-height: 1em; }
.offer-card { margin: 22px 0; }
.offer-price b { font-family: var(--display); font-size: 44px; letter-spacing: -0.03em; color: var(--text); }
.offer-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.offer-list li { color: var(--text); padding-left: 28px; position: relative; }
.offer-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.offer-notes { white-space: pre-line; }
.offer-actions { display: grid; justify-items: start; gap: 8px; margin: 22px 0; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  .plans, .steps { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; justify-items: center; }
  .nav .links { display: none; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid, .downloads, .stats { grid-template-columns: 1fr; }
  .connect-pill { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .connect-pill .divider { display: none; }
  .connect-pill .btn { width: 100%; }
  .hero { padding-top: 60px; }
  .nav-signin { display: none; }
  #toolbar .peer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
