:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #0b1020;
  --ink-2: #141b2e;
  --navy: #1a2340;
  --paper: #f6f1e8;
  --paper-2: #efe8da;
  --gold: #e2b57a;
  --gold-2: #c9924c;
  --sky: #8eb9d4;
  --ok: #6fbf9a;
  --warn: #e2b57a;
  --bad: #e07a6a;
  --shadow: 0 30px 80px rgba(0, 0, 0, .35);
  --radius: 22px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;
  --bg: #0b1020;
  --bg-2: #12182c;
  --text: #f6f1e8;
  --muted: rgba(246, 241, 232, .62);
  --mist: rgba(246, 241, 232, .08);
  --line: rgba(246, 241, 232, .12);
  --nav-bg: rgba(11, 16, 32, .72);
  --card: rgba(255, 255, 255, .04);
  --card-solid: #171e33;
  --band: #f6f1e8;
  --band-fg: #0b1020;
  --band-muted: rgba(11, 16, 32, .58);
  --band-line: rgba(11, 16, 32, .08);
  --surface: #fff;
  --surface-2: #fbf8f2;
  --surface-fg: #0b1020;
  --hero-from: #0b1020;
  --hero-to: #12182c;
  --orbit: #101628;
  --cta-from: #171e33;
  --cta-to: #0b1020;
  --sidebar: #0c1224;
  --sidebar-fg: #f6f1e8;
  --sidebar-muted: rgba(246, 241, 232, .55);
  --panel-bg: #12182a;
  --panel-fg: #f6f1e8;
  --panel-card: #1a2238;
  --panel-line: rgba(246, 241, 232, .1);
  --input-bg: #fff;
  --input-fg: #0b1020;
  --input-border: rgba(11, 16, 32, .12);
  --check: rgba(11, 16, 32, .7);
  --bar: #2a3348;
  --theme-btn: rgba(246, 241, 232, .1);
  --copy: rgba(246, 241, 232, .5);
}

html[data-theme="light"] {
  color-scheme: light;
  --shadow: 0 24px 60px rgba(20, 16, 8, .08);
  --bg: #f6f1e8;
  --bg-2: #efe6d4;
  --text: #0b1020;
  --muted: rgba(11, 16, 32, .58);
  --mist: rgba(11, 16, 32, .06);
  --line: rgba(11, 16, 32, .1);
  --nav-bg: rgba(246, 241, 232, .82);
  --card: #fff;
  --card-solid: #fff;
  --band: #fff;
  --band-fg: #0b1020;
  --band-muted: rgba(11, 16, 32, .58);
  --band-line: rgba(11, 16, 32, .08);
  --surface: #fff;
  --surface-2: #fbf8f2;
  --surface-fg: #0b1020;
  --hero-from: #f7f2e9;
  --hero-to: #efe4cf;
  --orbit: #1a2340;
  --cta-from: #1a2340;
  --cta-to: #0b1020;
  --sidebar: #fff8ee;
  --sidebar-fg: #0b1020;
  --sidebar-muted: rgba(11, 16, 32, .5);
  --panel-bg: #ebe4d6;
  --panel-fg: #0b1020;
  --panel-card: #fff;
  --panel-line: rgba(11, 16, 32, .08);
  --input-bg: #fff;
  --input-fg: #0b1020;
  --input-border: rgba(11, 16, 32, .12);
  --check: rgba(11, 16, 32, .7);
  --bar: #ece4d4;
  --theme-btn: rgba(11, 16, 32, .06);
  --copy: rgba(11, 16, 32, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 650; letter-spacing: -.03em; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.05rem; }

.tk-logo { display: inline-flex; align-items: center; gap: 10px; }
.tk-word { font-family: var(--serif); font-size: 1.35rem; font-weight: 650; letter-spacing: -.03em; }
.tk-mark { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: .85rem 1.35rem; font-weight: 600;
  cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #f0c892, var(--gold-2)); color: #1a140c; box-shadow: 0 10px 30px rgba(201, 146, 76, .28); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-dark { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .btn-dark { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .section.light .btn-dark { background: var(--ink); color: var(--paper); }
.btn-sm { padding: .55rem .95rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--theme-btn); color: var(--text); cursor: pointer;
  display: inline-grid; place-items: center; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold-2); }
.theme-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-ico-moon { display: none; }
html[data-theme="light"] .theme-ico-sun { display: none; }
html[data-theme="light"] .theme-ico-moon { display: block; }

/* Site nav */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: .5rem .85rem; color: var(--muted); border-radius: 999px; }
.nav-link.is-active, .nav-link:hover { color: var(--text); background: var(--mist); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: transparent;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; margin: 0 auto;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(226,181,122,.28), transparent 60%),
    radial-gradient(700px 380px at 10% 20%, rgba(142,185,212,.22), transparent 55%),
    linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .07;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--gold-2); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; font-weight: 600;
}
html[data-theme="dark"] .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .95; margin: .35em 0 .4em; }
.hero p { max-width: 34rem; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-meta { display: flex; gap: 22px; color: var(--muted); font-size: .92rem; }
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
}
.orbit {
  height: 340px; border-radius: 22px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, #e2b57a 0%, transparent 42%),
    radial-gradient(circle at 20% 20%, #8eb9d4 0%, transparent 30%),
    var(--orbit);
}
.orbit span {
  position: absolute; inset: auto; border: 1px solid rgba(246,241,232,.18); border-radius: 50%;
}
.orbit span:nth-child(1) { width: 140px; height: 140px; left: 18%; top: 22%; }
.orbit span:nth-child(2) { width: 220px; height: 220px; left: 28%; top: 12%; }
.orbit span:nth-child(3) { width: 70px; height: 70px; right: 18%; bottom: 22%; background: rgba(226,181,122,.25); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hero-stats b { display: block; font-size: 1.2rem; }
.hero-stats span { color: var(--muted); font-size: .82rem; }

.section { padding: 84px 0; }
.section.light { background: var(--band); color: var(--band-fg); }
.section.light .muted { color: var(--band-muted); }
.section h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 14px; }
.kicker { color: var(--gold-2); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }

.cards-3, .cards-4 { display: grid; gap: 18px; margin-top: 34px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.section.light .card {
  background: var(--surface);
  color: var(--surface-fg);
  border-color: var(--band-line);
  box-shadow: 0 16px 40px rgba(20, 16, 8, .06);
}
.card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.ico-blob {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(226,181,122,.3), rgba(142,185,212,.18));
  margin-bottom: 16px; font-size: 1.2rem;
}

.tariff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.tariff {
  position: relative; padding: 26px; border-radius: 26px;
  background: var(--surface); color: var(--surface-fg); border: 1px solid var(--band-line);
}
.tariff.is-featured { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(20,16,8,.12); border-color: var(--gold); }
.tariff .price { font-family: var(--serif); font-size: 2.6rem; margin: 8px 0 4px; }
.tariff .period { color: var(--band-muted); }
.tariff ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.tariff li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--band-line); }
.badge {
  display: inline-flex; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--ink); color: var(--gold);
}

.faq details {
  background: var(--surface); border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; color: var(--surface-fg);
  border: 1px solid var(--band-line);
}
.faq summary { cursor: pointer; font-weight: 600; }

.cta-band {
  margin: 20px auto 0; border-radius: 32px; padding: 42px;
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(226,181,122,.35), transparent),
    linear-gradient(135deg, var(--cta-from), var(--cta-to));
  color: var(--paper);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.cta-band .muted { color: rgba(246, 241, 232, .7); }

.site-foot { border-top: 1px solid var(--line); padding: 48px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h4 { margin: 0 0 10px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
html[data-theme="dark"] .foot-grid h4 { color: var(--gold); }
.foot-grid a, .foot-grid p { display: block; color: var(--muted); margin: .35rem 0; }
.foot-copy { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 16px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.legal { max-width: 760px; }
.legal p { color: var(--muted); }

.loc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.loc-pill {
  border: 1px solid var(--band-line); background: var(--surface); color: var(--surface-fg);
  border-radius: 999px; padding: .55rem .9rem; cursor: pointer;
}
.loc-pill.is-active { background: var(--ink); color: var(--paper); }

/* Auth */
body.is-auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-art {
  padding: 36px; display: flex; flex-direction: column; justify-content: space-between;
  color: #f6f1e8;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(226,181,122,.28), transparent 50%),
    radial-gradient(500px 280px at 80% 80%, rgba(142,185,212,.22), transparent 50%),
    #0b1020;
}
.auth-art-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-art .theme-toggle { color: #f6f1e8; border-color: rgba(246,241,232,.18); background: rgba(246,241,232,.08); }
.auth-toolbar { display: none; justify-content: flex-end; margin-bottom: 18px; }
.auth-quote p { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; max-width: 12ch; }
.auth-form-wrap { background: var(--band); color: var(--band-fg); display: grid; place-items: center; padding: 32px 20px; }
html[data-theme="dark"] .auth-form-wrap { background: var(--bg); color: var(--text); }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { margin: 0 0 8px; font-size: 2.2rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.field span { font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--input-fg); border-radius: 14px;
  padding: .85rem 1rem; outline: none;
}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  background: rgba(246,241,232,.06);
  color: var(--text);
  border-color: var(--line);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(226,181,122,.22); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--check); }
html[data-theme="dark"] .check, html[data-theme="dark"] .auth-alt { color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 14px; margin: 12px 0; font-weight: 600; }
.alert-bad { background: #fde8e4; color: #8a2f24; }
.alert-ok { background: #e7f6ee; color: #1f6b45; }
.auth-alt { margin-top: 16px; color: var(--band-muted); }

/* Panel */
body.is-panel {
  display: grid; grid-template-columns: 270px 1fr; min-height: 100vh;
  color: var(--panel-fg);
  background:
    radial-gradient(900px 400px at 100% -10%, rgba(226,181,122,.18), transparent 50%),
    var(--panel-bg);
}
.panel-side {
  background:
    linear-gradient(180deg, rgba(226,181,122,.08), transparent 28%),
    var(--sidebar);
  color: var(--sidebar-fg);
  padding: 18px 14px 16px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
}
.brand-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 12px 18px; }
.brand-panel .tk-logo { margin-bottom: 2px; }
.brand-sub { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  position: relative;
  padding: .8rem 1rem;
  border-radius: 16px;
  font-weight: 550;
  color: var(--sidebar-muted);
}
.side-link.is-active, .side-link:hover { background: var(--mist); color: var(--sidebar-fg); }
.side-link.is-active {
  background: linear-gradient(90deg, rgba(226,181,122,.18), rgba(246,241,232,.06));
  box-shadow: inset 3px 0 0 var(--gold);
}
html[data-theme="light"] .side-link.is-active {
  background: linear-gradient(90deg, rgba(226,181,122,.28), rgba(11,16,32,.04));
  color: var(--ink);
}
.side-ico::before { content: "•"; }
.side-ico[data-ico="grid"]::before { content: "▦"; }
.side-ico[data-ico="server"]::before { content: "▣"; }
.side-ico[data-ico="layers"]::before { content: "≡"; }
.side-ico[data-ico="wallet"]::before { content: "◈"; }
.side-ico[data-ico="chat"]::before { content: "✉"; }
.side-ico[data-ico="user"]::before { content: "☺"; }
.nav-badge { margin-left: auto; background: #e07a6a; color: #fff; min-width: 18px; height: 18px; border-radius: 9px; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); }
.side-user strong, .side-user span { display: block; }
.side-user span { color: var(--sidebar-muted); font-size: .8rem; }
.avatar { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(180deg, #f0c892, #c9924c); color: #1a140c; display: grid; place-items: center; font-weight: 700; }
.logout { margin-left: auto; color: var(--sidebar-muted); }
.panel-main { min-width: 0; }
.panel-top {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 18px 28px 8px; background: transparent; position: sticky; top: 0; z-index: 8;
}
.top-balance {
  display: inline-flex; align-items: baseline; gap: 10px;
  background: var(--panel-card); color: var(--panel-fg); border-radius: 999px; padding: .55rem 1rem;
  box-shadow: 0 10px 30px rgba(20,16,8,.06);
  margin-right: auto;
  border: 1px solid var(--panel-line);
}
.top-balance span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.top-balance strong { font-family: var(--serif); font-size: 1.15rem; color: var(--panel-fg); }
.panel-content { padding: 4px 28px 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 22px; }
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--panel-card); border-radius: 24px; padding: 22px 20px; border: 1px solid var(--panel-line);
  box-shadow: 0 16px 40px rgba(20,16,8,.05);
  transition: transform .2s ease;
}
.kpi:hover { transform: translateY(-3px); }
.kpi span { color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.kpi b { display: block; margin-top: 8px; font-size: 2rem; font-family: var(--serif); }
.kpi::after {
  content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,181,122,.28), transparent 70%);
}
.panel-card {
  background: var(--panel-card); border-radius: 24px; padding: 24px; border: 1px solid var(--panel-line); margin-top: 16px;
  box-shadow: 0 18px 40px rgba(20,16,8,.05);
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--panel-line); background: var(--panel-card); color: var(--panel-fg); border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.chip.is-active { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .chip.is-active { background: var(--paper); color: var(--ink); }

.server-list { display: grid; gap: 12px; }
.server {
  display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr auto; gap: 12px; align-items: center;
  padding: 18px 18px 18px 22px; border-radius: 22px;
  background: var(--panel-card); border: 1px solid var(--panel-line);
  box-shadow: 0 10px 28px rgba(20,16,8,.04);
  position: relative;
}
.server::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--bar);
}
.server:has(.status.is-running)::before { background: #2f9e6d; }
.server:has(.status.is-stopped)::before { background: #c2410c; }
.server-name { font-weight: 700; font-size: 1.05rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa3b5; }
.status.is-running::before { background: #2f9e6d; box-shadow: 0 0 0 4px rgba(47,158,109,.16); }
.status.is-stopped::before { background: #c2410c; }
.qa { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--panel-card); color: var(--panel-fg); cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.copy-ip { cursor: pointer; border: 0; background: transparent; font: inherit; color: var(--copy); }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--panel-card); border: 1px solid var(--panel-line); border-radius: 26px;
  padding: 22px 22px 20px; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(20,16,8,.1); }
.plan.is-featured {
  border-color: var(--gold);
  box-shadow: 0 22px 50px rgba(201, 146, 76, .16);
}
.plan-top { margin-bottom: 8px; }
.plan-kicker {
  display: inline-flex; margin-bottom: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2);
}
.plan h3 { margin: 0; font-size: 1.35rem; }
.plan .price { font-family: var(--serif); font-size: 2.55rem; line-height: 1; margin: 10px 0 2px; }
.plan .price small { font-size: 1.1rem; font-weight: 600; }
.plan .period { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.plan-specs { list-style: none; padding: 0; margin: 8px 0 18px; flex: 1; }
.plan-specs li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--panel-line); font-size: .92rem;
}
.plan-specs span { color: var(--muted); }
.plan .btn { margin-top: auto; }

.loc-bar {
  background: var(--panel-card); border: 1px solid var(--panel-line);
  border-radius: 28px; padding: 22px 24px 18px; margin-bottom: 28px;
}
.loc-bar-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.loc-bar-head h3, .plan-head h3 { margin: 0; font-size: 1.35rem; }
.plan-step {
  margin: 0 0 4px; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
}
.loc-current {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mist); border-radius: 999px; padding: .4rem .85rem; font-weight: 600;
}
.loc-group + .loc-group { margin-top: 14px; }
.loc-group-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.loc-bar .loc-pills { margin: 0; }
.loc-bar .loc-pill {
  background: var(--panel-bg);
  border-color: var(--panel-line);
  color: var(--panel-fg);
}
.loc-bar .loc-pill.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
html[data-theme="dark"] .loc-bar .loc-pill.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.loc-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.loc-flag { font-size: 1.05rem; line-height: 1; }
.loc-soon { margin: 14px 0 0; font-size: .88rem; }
.plan-head { margin: 0 0 14px; }
.plan-summary .price { font-family: var(--serif); font-size: 2.4rem; line-height: 1; margin: 8px 0 2px; }
.plan-summary .price small { font-size: 1rem; }
.plan-summary .period { color: var(--muted); margin-bottom: 8px; }
.plan-summary h3 { margin: 0; }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bar { height: 8px; background: var(--bar); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #c9924c, #8eb9d4); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--panel-line); }
.pill { display: inline-flex; border-radius: 999px; padding: .15rem .55rem; font-size: .78rem; font-weight: 700; }
.pill-ok { background: #e7f6ee; color: #1f6b45; }
.pill-wait { background: #fff4e0; color: #8a5a12; }
.pill-off { background: var(--bar); color: var(--muted); }

.thread { display: grid; gap: 12px; }
.bubble { background: var(--surface-2); border-radius: 18px; padding: 14px 16px; color: var(--surface-fg); }
html[data-theme="dark"] .bubble { background: rgba(246,241,232,.06); color: var(--text); }
.bubble.is-admin { background: var(--ink); color: var(--paper); }

.flash { padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-weight: 600; }
.flash.is-success { background: #e7f6ee; color: #1f6b45; }
.flash.is-danger, .flash.is-error { background: #fde8e4; color: #8a2f24; }
.flash.is-warning { background: #fff4e0; color: #8a5a12; }
.flash.is-info { background: #e8f1f7; color: #1d4a66; }

.tk-toast {
  position: fixed; top: 18px; right: 18px; z-index: 80; min-width: 220px; max-width: 360px;
  padding: 12px 14px; border-radius: 14px; background: #101628; color: #fff; font-weight: 600;
  box-shadow: var(--shadow);
}
.tk-toast.is-error { background: #8a2f24; }
.tk-toast[hidden], .tk-loader[hidden] { display: none !important; }
.tk-loader {
  position: fixed; inset: 0; background: rgba(11,16,32,.45); display: grid; place-items: center; z-index: 90; color: #fff;
}
.tk-spinner {
  width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--gold);
  animation: spin .7s linear infinite; margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.legal ul { color: var(--muted); padding-left: 1.2rem; }
.legal li { margin: .4rem 0; }
.crumbs { margin: 0 0 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .5; }
.crumbs a { color: var(--gold-2); }
html[data-theme="dark"] .crumbs a { color: var(--gold); }

.section.light .legal p, .section.light .legal li { color: var(--band-muted); }

.dash-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 8px; }
.dash-hero {
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(226,181,122,.35), transparent 55%),
    linear-gradient(135deg, var(--cta-from), var(--cta-to));
  color: var(--paper); border-radius: 28px; padding: 28px;
}
.dash-hero h2 { margin: 0 0 8px; color: inherit; }
.dash-hero .muted { color: rgba(246,241,232,.7); }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--panel-line);
}
.step-num {
  width: 28px; height: 28px; border-radius: 9px; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
html[data-theme="dark"] .step-num { background: var(--paper); color: var(--ink); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.blog-grid-list { grid-template-columns: repeat(2, 1fr); }
.blog-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); color: var(--surface-fg);
  border: 1px solid var(--band-line); border-radius: 22px; padding: 22px;
  box-shadow: 0 16px 40px rgba(20, 16, 8, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(20, 16, 8, .1); }
.blog-card h3 { margin: 0; font-size: 1.35rem; color: var(--surface-fg); }
.blog-card p, .blog-card .muted { color: var(--band-muted); }
.blog-card p { margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  display: inline-flex; padding: .15rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; background: var(--mist); color: var(--text);
}
.section.light .tag { background: rgba(11,16,32,.06); color: var(--band-fg); }
.article-head h1 { max-width: 18ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-cta { margin-top: 48px; }
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.5em 0 .45em; }
.prose h3 { font-size: 1.25rem; margin: 1.3em 0 .4em; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.7; color: var(--band-muted); }
.prose strong { color: var(--band-fg); }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold);
  color: var(--band-fg);
}
.prose pre {
  background: var(--ink); color: var(--paper); border-radius: 16px;
  padding: 16px 18px; overflow-x: auto; font-size: .92rem;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.prose :not(pre) > code {
  background: rgba(11,16,32,.06); border-radius: 6px; padding: .12em .4em; color: var(--band-fg);
}
html[data-theme="dark"] .section.light .prose :not(pre) > code { background: rgba(11,16,32,.08); }
.prose hr { border: 0; border-top: 1px solid var(--band-line); margin: 2em 0; }
.prose img { border-radius: 16px; }

@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
  .contact-grid .card[style] { grid-column: auto; }
  .hero-grid, .cards-3, .cards-4, .tariff-grid, .contact-grid, .foot-grid, .kpi-row, .server, .info-grid, .metrics, body.is-auth, .blog-grid, .blog-grid-list, .plan-grid {
    grid-template-columns: 1fr;
  }
  body.is-panel { grid-template-columns: 1fr; }
  .panel-side { position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); transform: translateX(-110%); transition: transform .25s ease; z-index: 50; }
  .panel-side.is-open { transform: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 20px; right: 20px; flex-direction: column;
    background: var(--card-solid); padding: 16px; border-radius: 18px; border: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .tariff.is-featured { transform: none; }
  .auth-art { min-height: 220px; }
  .auth-toolbar { display: flex; }
  .auth-art .theme-toggle { display: none; }
}
