/* ============================================================
   AuroraHost - design system
   White theme · orange accents · aurora gradients
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --orange: #FF6A1A;
  --orange-600: #F2570A;
  --orange-700: #D7460A;
  --amber: #FFA23A;
  --ember: #FF3D6E;

  /* Neutrals (white theme) */
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --surface-2: #F5F3EF;
  --line: #ECE8E1;
  --line-strong: #DED8CE;
  --ink: #1A1714;
  --ink-soft: #5A534B;
  --ink-mute: #8C8479;

  /* Status */
  --green: #1BA672;
  --green-soft: #E6F6EF;
  --red: #E5484D;

  /* Effects */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(26,23,20,.06), 0 1px 1px rgba(26,23,20,.04);
  --shadow: 0 12px 40px -12px rgba(26,23,20,.18);
  --shadow-orange: 0 18px 50px -16px rgba(255,106,26,.55);
  --ring: 0 0 0 4px rgba(255,106,26,.16);

  --maxw: 1200px;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ===== Dark theme (true neutral black, no brown/orange tint) ===== */
:root[data-theme="dark"] {
  --bg: #0B0B0D;
  --surface: #16161A;
  --surface-2: #202024;
  --line: #2A2A30;
  --line-strong: #3A3A42;
  --ink: #F2F2F4;
  --ink-soft: #B8B8C0;
  --ink-mute: #82828C;
  --green-soft: rgba(27,166,114,.18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 16px 50px -16px rgba(0,0,0,.7);
  --shadow-orange: 0 14px 40px -16px rgba(255,106,26,.45);
  --ring: 0 0 0 3px rgba(255,106,26,.28);
}
/* Kill the warm aurora glow in dark — it reads as brown */
:root[data-theme="dark"] body::before { opacity: .22; }
:root[data-theme="dark"] body::after { opacity: .03; }
:root[data-theme="dark"] .nav.scrolled,
:root[data-theme="dark"] .mobile-bar,
:root[data-theme="dark"] .side { background: rgba(16,16,18,.94); }
:root[data-theme="dark"] .btn-ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
:root[data-theme="dark"] .tag-green { background: rgba(27,166,114,.18); }
/* Selected states: subtle highlight, NOT a loud orange box */
:root[data-theme="dark"] .side nav a.active,
:root[data-theme="dark"] .lang-opt.on,
:root[data-theme="dark"] .opt.sel { background: rgba(255,106,26,.12); color: var(--orange); border-color: rgba(255,106,26,.4); box-shadow: none; }
/* Inputs / copybox readable in dark */
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .copybox input { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
:root[data-theme="dark"] .copybox input { color: var(--ink); }
:root[data-theme="dark"] .lang-opt { background: var(--surface-2); border-color: var(--line-strong); }
/* landing in dark */
:root[data-theme="dark"] .nav { background: rgba(11,11,13,.72); }
:root[data-theme="dark"] .nav.scrolled { background: rgba(11,11,13,.92); }
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .device,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .plan,
:root[data-theme="dark"] .zone-chip,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .step { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] footer { background: var(--surface); border-color: var(--line); }

/* theme toggle button (landing nav) */
.theme-toggle { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; transition: border-color .16s, color .16s; flex: none; }
.theme-toggle:hover { border-color: var(--orange); color: var(--orange-700); }
.theme-toggle svg { width: 18px; height: 18px; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Aurora atmosphere in the background */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(255,162,58,.22), transparent 70%),
    radial-gradient(50% 60% at 85% 5%, rgba(255,61,110,.14), transparent 70%),
    radial-gradient(40% 50% at 55% 0%, rgba(255,106,26,.20), transparent 70%);
  filter: blur(10px);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
  opacity: .6;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--orange) 45%, var(--orange-600));
  color: #fff; box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(255,106,26,.7); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--orange-700); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(251,250,248,.72);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(251,250,248,.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand .logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
}
.brand .logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--orange-700); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 0; font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--orange), var(--ember) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin: 22px 0 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .s b { font-family: var(--font-display); font-size: 28px; font-weight: 800; display: block; }
.hero-stats .s span { font-size: 13.5px; color: var(--ink-mute); }

/* Hero device / dashboard preview card */
.device {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; transform: rotate(.6deg);
  position: relative;
}
.device-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.device-bar i:nth-child(1){ background: #ff5f57; } .device-bar i:nth-child(2){ background: #febc2e; } .device-bar i:nth-child(3){ background: #28c840; }
.device-bar .url { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.device-body { padding: 18px; display: grid; gap: 12px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 13px; }
.mini-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.mini-card .ic svg { width: 20px; height: 20px; }
.mini-card .t { font-weight: 600; font-size: 14.5px; }
.mini-card .d { font-size: 12.5px; color: var(--ink-mute); }
.mini-card .badge { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-on { background: var(--green-soft); color: var(--green); }
.ic-orange { background: linear-gradient(135deg,#FFE7D3,#FFD2B0); color: var(--orange-700); }
.ic-blue { background: #E4EEFF; color: #2D6BE0; }
.ic-violet { background: #EEE7FF; color: #7C5CE0; }
.ic-red { background: rgba(239,68,68,.12); color: var(--red, #ef4444); }

/* ---------- Section primitives ---------- */
section { position: relative; }
.section-pad { padding: 84px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 0; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 16px; }

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.feature::after { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:linear-gradient(90deg,var(--amber),var(--orange),var(--ember)); transform:scaleX(0); transform-origin:left; transition:transform .35s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature:hover::after { transform: scaleX(1); }
.feature .fic { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg,#FFE7D3,#FFD2B0); display: grid; place-items: center; color: var(--orange-700); margin-bottom: 18px; }
.feature .fic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; }
.feature.span2 { grid-column: span 2; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--orange), var(--orange-600)); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Pricing tabs ---------- */
.tabs { display: inline-flex; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 38px; }
.tab { border: none; background: none; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; padding: 10px 22px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); transition: all .2s; }
.tab.active { background: var(--surface); color: var(--orange-700); box-shadow: var(--shadow-sm); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .3s, border-color .3s; position: relative; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--orange); box-shadow: var(--shadow-orange); }
.plan.featured .tagb { position: absolute; top: -12px; left: 24px; background: linear-gradient(135deg,var(--orange),var(--orange-600)); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 18px; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 40px; margin: 14px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--ink-mute); font-family: var(--font-body); }
.plan ul { list-style: none; margin: 20px 0 24px; display: grid; gap: 11px; }
.plan li { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.plan li svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- Domain price table ---------- */
.dom-search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 36px; }
.dom-search input { flex: 1; padding: 15px 20px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-body); font-size: 15.5px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.dom-search input::placeholder { color: var(--ink-mute); }
.dom-search input:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); }

/* ---------- Domain zones marquee (rotating ribbon) ---------- */
.zones-marquee { position: relative; overflow: hidden; width: 100%; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.zones-track { display: flex; gap: 12px; width: max-content; animation: zones-scroll 60s linear infinite; }
.zones-marquee:hover .zones-track { animation-play-state: paused; }
@keyframes zones-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.zone-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; transition: border-color .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.zone-chip:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.zone-chip .zc-tld { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); }
.zone-chip .zc-p { font-size: 13px; color: var(--ink-mute); font-family: var(--font-mono); }
@media (prefers-reduced-motion: reduce) { .zones-track { animation: none; } }

/* ---------- CTA banner ---------- */
.cta-band { background: linear-gradient(130deg, #18130F, #2a1c12 60%, #3a1d0d); border-radius: var(--radius-lg); padding: 60px 50px; position: relative; overflow: hidden; color: #fff; }
.cta-band::before { content:""; position:absolute; inset:auto -10% -60% auto; width:60%; height:140%; background: radial-gradient(circle, rgba(255,106,26,.5), transparent 65%); }
.cta-band h2 { color: #fff; font-size: clamp(28px,4vw,42px); position: relative; }
.cta-band p { color: rgba(255,255,255,.7); margin: 14px 0 28px; font-size: 17px; position: relative; max-width: 520px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 16px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; transition: transform .25s; color: var(--orange); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq p { color: var(--ink-soft); font-size: 14.5px; padding: 0 0 18px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 16px; }
.foot-grid a { display: block; font-size: 14.5px; color: var(--ink-soft); padding: 6px 0; transition: color .2s; }
.foot-grid a:hover { color: var(--orange-700); }
.foot-grid p { font-size: 14px; color: var(--ink-soft); margin-top: 14px; max-width: 280px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-mute); flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features, .plans { grid-template-columns: repeat(2, 1fr); }
  .feature.span2 { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px; box-shadow: var(--shadow); }
  .nav-links.open a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .features, .plans, .steps { grid-template-columns: 1fr; }
  .feature.span2 { grid-column: span 1; }
  .section-pad { padding: 60px 0; }
  .cta-band { padding: 40px 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .dom-search { flex-direction: column; }
  .dom-search .btn { justify-content: center; }
}

/* ============================================================
   Dashboard
   ============================================================ */
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: var(--surface); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { padding: 6px 8px 22px; }
.side nav { display: grid; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: background .15s, color .15s; }
.side nav a svg { width: 19px; height: 19px; }
.side nav a:hover { background: var(--surface-2); color: var(--ink); }
.side nav a.active { background: linear-gradient(135deg,#FFE7D3,#FFD9BE); color: var(--orange-700); font-weight: 600; }
.side .side-foot { margin-top: auto; padding: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
.side .side-foot [data-deposit] { width: 100%; justify-content: center; }
.logout-btn { width: 100%; padding: 10px 15px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .16s, border-color .16s, color .16s; }
.logout-btn:hover { background: var(--red-soft, rgba(239,68,68,.1)); border-color: var(--red, #ef4444); color: var(--red, #ef4444); }

/* create choice (server / domain) */
.create-grid { display: flex; flex-direction: column; gap: 12px; }
.create-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .16s, transform .16s; }
.create-opt:hover { border-color: var(--orange); transform: translateY(-1px); }
.create-opt-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--amber), var(--orange) 55%, var(--ember)); }
.create-opt-txt { display: flex; flex-direction: column; flex: 1; }
.create-opt-txt b { font-size: 16px; color: var(--ink); }
.create-opt-txt span { font-size: 13px; color: var(--ink-mute); }
.create-opt-chev { color: var(--ink-mute); display: grid; place-items: center; }

.main { padding: 28px 34px 60px; }
/* Desktop: only the main content scrolls; the sidebar stays put */
@media (min-width: 881px) {
  .dash:not(.auth) { height: 100vh; overflow: hidden; }
  .dash:not(.auth) .main { height: 100vh; overflow-y: auto; }
}
.main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.main-head h1 { font-size: 28px; }
.main-head p { color: var(--ink-mute); font-size: 14px; margin-top: 4px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .lbl { font-size: 13px; color: var(--ink-mute); display: flex; align-items: center; gap: 8px; }
.stat .lbl svg { width: 16px; height: 16px; color: var(--orange); }
.stat .v { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin-top: 8px; }
.stat .sub { font-size: 12.5px; color: var(--green); margin-top: 2px; font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 17px; }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background .15s; }
.row:last-child { border-bottom: none; }
.row:hover { background: var(--surface-2); }
.row .ric { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.row .ric svg { width: 21px; height: 21px; }
.row .meta { min-width: 0; }
.row .meta .nm { font-weight: 600; font-size: 15px; }
.row .meta .ds { font-size: 13px; color: var(--ink-mute); }
.row .spec { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink-soft); }
.row .st { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.st-on { background: var(--green-soft); color: var(--green); }
.st-warn { background: #FFF1E2; color: var(--orange-700); }
.row-actions { display: flex; gap: 7px; }
.iconbtn { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-soft); transition: all .15s; }
.iconbtn:hover { border-color: var(--orange); color: var(--orange-700); }
.iconbtn svg { width: 16px; height: 16px; }

.empty { padding: 50px 22px; text-align: center; color: var(--ink-mute); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--line-strong); }

/* 404 */
.err-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.err-page .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(90px, 20vw, 180px); line-height: 1; background: linear-gradient(120deg,var(--amber),var(--orange) 50%,var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-page h1 { font-size: clamp(24px,4vw,34px); margin: 8px 0 14px; }
.err-page p { color: var(--ink-soft); max-width: 440px; margin: 0 auto 28px; }

/* mobile top bar + drawer (hidden on desktop) */
.mobile-bar { display: none; }
.drawer-backdrop { display: none; }

@media (max-width: 880px) {
  .dash { grid-template-columns: 1fr; }
  .mobile-bar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 60;
    padding: 12px 16px; border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  }
  .burger-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
  .burger-btn svg { width: 22px; height: 22px; }

  /* off-canvas drawer */
  .side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: 268px; max-width: 84vw; height: 100dvh;
    transform: translateX(-105%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
    border-right: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.18);
    overflow-y: auto;
  }
  .side.open { transform: translateX(0); }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(20,16,12,.45); opacity: 0; pointer-events: none; transition: opacity .26s; }
  .drawer-backdrop.show { display: block; opacity: 1; pointer-events: auto; }
  body.drawer-lock { overflow: hidden; }

  .stat-row { grid-template-columns: repeat(2,1fr); }
  .main { padding: 22px 18px 50px; }
  .row .spec { display: none; }
}

/* ============================================================
   Dashboard - full cabinet components
   ============================================================ */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar .crumbs { font-size: 13px; color: var(--ink-mute); }
.topbar h1 { font-size: 27px; margin-top: 3px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.balance-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; background: linear-gradient(135deg,#18130F,#3a1d0d); color: #fff; font-weight: 700; font-family: var(--font-display); }
.balance-chip svg { width: 16px; height: 16px; color: var(--amber); }

.view { display: none; animation: fade .35s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* quick actions */
.quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 26px; }
.qa { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: transform .2s, box-shadow .25s, border-color .2s; text-align: left; font: inherit; }
.qa:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.qa .ic { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg,#FFE7D3,#FFD2B0); color: var(--orange-700); display: grid; place-items: center; }
.qa .ic svg { width: 22px; height: 22px; }
.qa b { font-family: var(--font-display); font-size: 16px; }
.qa span { font-size: 13px; color: var(--ink-mute); }

/* segmented / tabs in views */
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; gap: 3px; }
.seg button { border: none; background: none; font: 600 13.5px var(--font-body); padding: 8px 16px; border-radius: 9px; cursor: pointer; color: var(--ink-soft); transition: all .18s; }
.seg button.on { background: var(--surface); color: var(--orange-700); box-shadow: var(--shadow-sm); }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; font: 15px var(--font-body); background: var(--surface); transition: border-color .2s, box-shadow .2s; color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); }
.select { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F2570A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.select::-ms-expand { display: none; }
.input.input-error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,72,77,.18); }
.textarea { resize: vertical; min-height: 90px; font-family: var(--font-mono); font-size: 13px; }
.hint { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; }

/* option cards (wizard) */
.opts { display: grid; gap: 10px; }
.opts.cols2 { grid-template-columns: 1fr 1fr; } .opts.cols3 { grid-template-columns: repeat(3,1fr); }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 13px; cursor: pointer; transition: all .18s; background: var(--surface); }
.opt:hover { border-color: var(--amber); }
.opt.sel { border-color: var(--orange); background: linear-gradient(135deg,#FFF6EF,#FFEFE2); box-shadow: var(--ring); }
.opt .flag { font-size: 22px; }
.opt .nm { font-weight: 600; font-size: 14.5px; }
.opt .meta { font-size: 12.5px; color: var(--ink-mute); }
.opt .pr { margin-left: auto; font-family: var(--font-mono); font-weight: 600; color: var(--orange-700); font-size: 14px; }
.opt .os { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); flex: none; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(26,23,20,.5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; overscroll-behavior: contain; }
.modal-bg.open { display: flex; animation: fade .25s; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 40px 100px -30px rgba(26,23,20,.5); animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
.modal-lock { position: fixed; width: 100%; overflow: hidden; }
.modal.wide { max-width: 680px; }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 19px; }
.modal-x { width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); transition: all .15s; }
.modal-x:hover { background: var(--line-strong); }
.modal-x svg { width: 18px; height: 18px; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* wizard steps */
.wsteps { display: flex; gap: 8px; margin-bottom: 22px; }
.wstep { flex: 1; height: 4px; border-radius: 999px; background: var(--line); transition: background .3s; }
.wstep.done { background: var(--orange); }

/* badges */
.tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.tag-status { background: var(--surface-2); color: var(--ink-soft); }
.tag-status .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); }
.dot-amber { background: #E8901A; }
.dot-gray { background: var(--ink-mute); }
.dot-red { background: var(--red); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-amber { background: rgba(255,162,58,.16); color: #c46a00; }
:root[data-theme="dark"] .tag-amber { background: rgba(255,162,58,.2); color: var(--amber); }
.tag-orange { background: #FFF1E2; color: var(--orange-700); }
.tag-gray { background: var(--surface-2); color: var(--ink-mute); }
.tag-red { background: #FDECEC; color: var(--red); }

/* dns table */
.dns-tbl { width: 100%; border-collapse: collapse; }
.dns-tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.dns-tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dns-tbl td.mono { font-family: var(--font-mono); font-size: 12.5px; }
.dns-tbl tr:hover td { background: var(--surface-2); }
.rtype { font-family: var(--font-mono); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #E4EEFF; color: #2D6BE0; }

/* deploy dropzone */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 44px 24px; text-align: center; transition: all .2s; cursor: pointer; background: var(--surface-2); }
.drop:hover, .drop.drag { border-color: var(--orange); background: var(--orange-soft, #FFF6EF); }
:root[data-theme="dark"] .drop { background: var(--surface-2); }
:root[data-theme="dark"] .drop:hover, :root[data-theme="dark"] .drop.drag { background: rgba(242,87,10,.12); border-color: var(--orange); }
.drop svg { width: 44px; height: 44px; color: var(--orange); margin: 0 auto 14px; }
.drop b { font-family: var(--font-display); font-size: 17px; display: block; }
.drop span { font-size: 13px; color: var(--ink-mute); }

/* progress / deploy log */
.dlog { background: #14110E; border-radius: var(--radius-sm); padding: 16px; font-family: var(--font-mono); font-size: 12.5px; color: #d8d2c8; max-height: 240px; overflow-y: auto; line-height: 1.7; }
.dlog .ok { color: #6ee7a8; } .dlog .ai { color: var(--amber); } .dlog .cmd { color: #7fb4ff; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 14px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--amber),var(--orange)); border-radius: 999px; transition: width .4s; }

/* referral link */
.copybox { display: flex; gap: 8px; }
.copybox input { flex: 1; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); }

/* toast */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 9px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px)); background: #fff; color: #252321; padding: 13px 16px; border: 1px solid #e8e5e1; border-radius: 11px; box-shadow: 0 8px 28px rgba(35, 30, 25, .12); font-size: 14px; font-weight: 500; animation: slidein .3s cubic-bezier(.2,.9,.3,1.2); }
.toast.ok { background: #fff; color: #252321; }
.toast svg { width: 18px; height: 18px; flex: none; color: #cf534b; }
.toast.ok svg { color: #159765; }
:root[data-theme="dark"] .toast, :root[data-theme="dark"] .toast.ok { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.dep-noserv { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 18px; text-align: center; background: var(--surface-2); }
.dep-noserv > div { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.dep-noserv > span { display: block; font-size: 13px; color: var(--ink-mute); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* progress ring for server stats */
.gauge { display: flex; gap: 18px; flex-wrap: wrap; }
.ga { text-align: center; }
.ga svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.ga .lbl { font-size: 12px; color: var(--ink-mute); margin-top: 6px; }
.ga .pct { font-family: var(--font-display); font-weight: 800; font-size: 15px; fill: var(--ink); transform: rotate(90deg); transform-origin: center; }

@media (max-width: 880px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .opts.cols2, .opts.cols3 { grid-template-columns: 1fr; }
}

/* Auth/login screen - hide sidebar, full-width */
.dash.auth { grid-template-columns: 1fr; }
.dash.auth .side { display: none; }

/* ============================================================
   Server detail page
   ============================================================ */
.srv-top { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 20px; }
.srv-top-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.srv-top-head .big-ic { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg,#FFE7D3,#FFD2B0); color: var(--orange-700); display: grid; place-items: center; position: relative; flex: none; }
.srv-top-head .big-ic svg { width: 30px; height: 30px; }
.srv-top-head .big-ic .live { position: absolute; bottom: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); }
.srv-top-head h2 { font-size: 24px; }
.srv-top-head .paid { font-size: 14px; color: var(--ink-mute); margin-top: 3px; }
.srv-top-head .paid b { color: var(--orange-700); font-weight: 700; }
.srv-ctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14.5px; }
.toggle .tg { width: 46px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.toggle .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: var(--shadow-sm); }
.toggle.on .tg { background: var(--orange); }
.toggle.on .tg::after { transform: translateX(20px); }
.btn-warn { background: linear-gradient(135deg, var(--amber), var(--orange)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-warn:hover { transform: translateY(-2px); }
.btn-danger { background: linear-gradient(135deg,#ff6b6b,#e5484d); color: #fff; box-shadow: var(--shadow-sm); }
.btn-danger:hover { transform: translateY(-2px); }
.btn-info { background: linear-gradient(135deg,#5b8def,#2d6be0); color: #fff; box-shadow: var(--shadow-sm); }
.btn-info:hover { transform: translateY(-2px); }

.srv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.card2 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.card2 h3 { font-size: 21px; margin-bottom: 22px; }
.inforow { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 14.5px; }
.inforow + .inforow { border-top: 1px solid var(--line); }
.inforow .k { color: var(--ink-mute); }
.inforow .vv { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.inforow .vv .mono { font-family: var(--font-mono); }
.cpy { cursor: pointer; color: var(--orange); display: inline-grid; place-items: center; opacity: .8; transition: opacity .15s; }
.cpy:hover { opacity: 1; }
.cpy svg { width: 16px; height: 16px; }
.info-sep { height: 1px; background: var(--line); margin: 8px 0; }

.storage-num { font-family: var(--font-display); font-weight: 800; font-size: 38px; margin-bottom: 4px; }
.storage-num span { font-size: 22px; color: var(--ink-mute); font-weight: 700; }
.eq { display: flex; gap: 4px; align-items: flex-end; height: 90px; margin: 18px 0; }
.eq i { flex: 1; border-radius: 3px; background: var(--line); height: 70%; }
.eq i.u { background: var(--orange); }
.eq i.r { background: var(--amber); opacity: .55; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.legend span { font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.legend span i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; flex: none; }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; }
.chart-card h3 { font-size: 20px; margin-bottom: 16px; }
.chart-card svg { width: 100%; height: 150px; display: block; }
.chart-empty { height: 150px; display: grid; place-items: center; color: var(--ink-mute); font-size: 13.5px; }

@media (max-width: 880px) { .srv-grid, .charts { grid-template-columns: 1fr; } }

/* Server actions grid (exactly the bot's set) */
.srv-actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.srv-actions-grid .btn { justify-content: flex-start; }
@media (max-width: 560px) { .srv-actions-grid { grid-template-columns: 1fr 1fr; } .srv-actions-grid .btn { justify-content: center; font-size: 13px; padding: 11px 12px; } }

/* ============================================================
   Responsive - all devices (consolidated)
   ============================================================ */
@media (max-width: 1024px) {
  .features, .plans { grid-template-columns: repeat(2, 1fr); }
  .stat-row, .quick { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .section-pad { padding: 54px 0; }
  .hero { padding: 50px 0 44px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 22px; }
  .cta-band { padding: 36px 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  /* dashboard */
  .main { padding: 20px 15px 46px; }
  .topbar { gap: 10px; }
  .topbar h1 { font-size: 22px; }
  .stat-row, .quick { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat .v { font-size: 24px; }
  .panel-head { padding: 15px 16px; }
  .row { padding: 14px 15px; gap: 11px; }
  .card2 { padding: 20px; }
  .srv-top { padding: 20px; }
  .srv-top-head h2 { font-size: 21px; }
  /* modals */
  .modal-bg { padding: 12px; }
  .modal-head { padding: 16px 18px; }
  .modal-body { padding: 18px; }
  .modal-foot { padding: 14px 18px; }
}
@media (max-width: 640px) {
  .dns-tbl { font-size: 12.5px; }
  .dns-tbl th, .dns-tbl td { padding: 9px 8px; }
  .legend span { font-size: 12px; padding: 6px 11px; }
}
@media (max-width: 480px) {
  .features, .plans, .steps, .stat-row, .quick { grid-template-columns: 1fr; }
  .feature.span2 { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .srv-actions-grid { grid-template-columns: 1fr; }
  .srv-actions-grid .btn { justify-content: flex-start; font-size: 14px; }
  .srv-ctl { flex-direction: column; align-items: stretch; }
  .srv-ctl .btn, .srv-ctl .toggle { width: 100%; justify-content: center; }
  .copybox { flex-direction: column; }
  .copybox .btn { justify-content: center; }
  .dom-search { flex-direction: column; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; justify-content: center; }
  .storage-num { font-size: 30px; }
  .storage-num span { font-size: 18px; }
  .balance-chip { display: none; }
  .row .spec { display: none; }
  .topbar h1 { font-size: 20px; }
  .hero h1 { font-size: clamp(28px, 7vw, 38px); line-height: 1.12; letter-spacing: -.02em; }
  .hero { padding: 36px 0 40px; }
}

/* ===== Overflow safety (mobile) ===== */
html, body { overflow-x: hidden; max-width: 100%; }
.dash, .main, .wrap { min-width: 0; }
.row .meta, .inforow .vv, .mini-card div, .qa { min-width: 0; }
.row .meta .nm, .row .meta .ds { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mono { overflow-wrap: anywhere; word-break: break-word; }
.inforow .vv { flex-wrap: wrap; justify-content: flex-end; }
.srv-top-head { flex-wrap: wrap; }
.topbar, .panel-head, .main-head { min-width: 0; }
.balance-chip { max-width: 100%; }
img, svg, table { max-width: 100%; }

/* Mobile nav - hide wide CTA so brand + Войти + burger fit */
@media (max-width: 640px) {
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { display: none; }
  .nav-inner { height: 64px; }
  .brand { font-size: 18px; }
}

/* Wizard step titles + bigger flags + OS logo */
.wz-title { margin-bottom: 14px; font-size: 17px; }
.opt .flag { font-size: 26px; line-height: 1; }
.opt .os { overflow: hidden; }
.opt .os img { display: block; }

/* ===== UI polish fixes ===== */
/* quick action cards - title was inheriting link blue */
.qa { color: var(--ink); }
.qa b { color: var(--ink); }
.qa span { color: var(--ink-mute); }
.qa:hover b { color: var(--orange-700); }

/* panel headers with inline SVG icon (replaced static emoji) */
.h2ic { display: flex; align-items: center; gap: 9px; }
.h2ic svg { color: var(--orange); flex: none; }

/* stat sub - neutral when not a positive delta */
.stat .sub.mute { color: var(--ink-mute); font-weight: 500; }

/* OS logo badge */
.os-badge { width: 40px; height: 40px; display: grid; place-items: center; flex: none; color: var(--ink-soft); }
.os-badge img { display: block; width: 32px; height: 32px; }
.os-badge .os-mask { width: 30px; height: 30px; }

/* horizontally scrollable tabs (DNS domains) - smooth, no ugly scrollbar */
.seg-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll button { flex: 0 0 auto; white-space: nowrap; }

/* settings profile header */
.prof-head { display: flex; align-items: center; gap: 14px; }
.prof-av { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--amber), var(--orange) 55%, var(--ember)); box-shadow: var(--shadow-orange); }
.prof-nm { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.prof-sub { font-size: 14px; color: var(--ink-mute); }

/* server detail charts spacing */
.charts { margin-top: 2px; }
.chart-card h3 { margin-bottom: 14px; }

/* ===== Branded loading screen (post-login boot) ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bootFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bootPulse { 0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(255,106,26,.28); } 50% { transform: scale(1.07); box-shadow: 0 14px 36px rgba(255,106,26,.45); } }
@keyframes bootBlink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.boot-screen { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; animation: bootFade .35s ease; }
.boot-mark { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boot-logo { width: 66px; height: 66px; border-radius: 19px; background: linear-gradient(135deg, var(--orange), var(--orange-600, #e85d10)); color: #fff; display: grid; place-items: center; animation: bootPulse 1.8s ease-in-out infinite; }
.boot-logo svg { width: 30px; height: 30px; }
.boot-word { font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--ink); }
.boot-spin { width: 28px; height: 28px; border: 3px solid var(--line, #eee); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; }
.boot-msg { font-size: 13.5px; color: var(--ink-mute); animation: bootBlink 1.6s ease-in-out infinite; }
.page-loader { padding: 4px 0 36px; max-width: 1100px; }
.page-loader h1 { margin: 0 0 36px; font-size: clamp(25px, 2.2vw, 34px); }
.page-loader-line, .page-loader-circle { display: block; background: var(--surface-2); animation: pageLoaderPulse 1.4s ease-in-out infinite; }
.page-loader-line { width: min(55%, 520px); height: 18px; border-radius: 8px; margin-bottom: 16px; }
.page-loader-line-wide { width: min(78%, 740px); height: 28px; margin-bottom: 23px; }
.page-loader-row { display: flex; align-items: center; gap: 16px; margin-top: 38px; }
.page-loader-circle { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.page-loader-line-row { margin: 0; width: min(42%, 390px); }
.page-loader-auth { min-height: 70vh; display: grid; place-items: center; }
.dash.page-loading .side-foot { visibility: hidden; }
@keyframes pageLoaderPulse { 50% { opacity: .45; } }
/* small inline loaders (charts, modals) get a spinner dot */
.chart-empty.loading, .hint.loading { display: flex; align-items: center; justify-content: center; gap: 10px; }
.chart-empty.loading::before, .hint.loading::before { content: ''; width: 16px; height: 16px; border: 2.5px solid var(--line, #eee); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; flex: none; }


/* ===== sidebar: pin brand+balance, scroll nav (desktop only) ===== */
@media (min-width: 881px) {
  .side { overflow: hidden; }
  .side .brand, .side .side-foot { flex: none; }
  #sidenav { flex: 1 1 auto; overflow-y: auto; min-height: 0; margin: 4px -4px; padding: 4px; display: flex; flex-direction: column; gap: 6px; }
  .side-foot { margin-top: 16px; }
}

/* ===== usage gauge (real CPU/RAM via SSH) ===== */
.gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px 0 4px; }
.gauge-ring { width: 138px; height: 138px; border-radius: 50%; display: grid; place-items: center; transition: background .4s ease; flex: none; }
.gauge-hole { width: 102px; height: 102px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.gauge-hole b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.gauge-sub { font-size: 13px; color: var(--ink-mute); text-align: center; }
/* chart cards must size to content so gauge sub-labels don't clip */
.chart-card { display: flex; flex-direction: column; padding-bottom: 30px; overflow: visible; }
.chart-card svg { width: 100%; height: 150px; display: block; }
.gauge { min-height: 0; }
.gauge-sub { margin-top: 2px; }


/* ===== language segmented control ===== */
.lang-seg { display: flex; gap: 10px; }
.lang-opt { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 14px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--ink); cursor: pointer; transition: all .16s; }
.lang-opt:hover { border-color: var(--orange); }
.lang-opt.on { border-color: var(--orange); background: #FFF4EC; color: var(--orange-700, var(--orange)); box-shadow: none; }
.lang-opt svg { width: 17px; height: 17px; }
.lang-flag { display: inline-flex; width: 24px; height: 16px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .2s ease; }
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-opt:hover .lang-flag { transform: scale(1.08) rotate(-2deg); }
.lang-opt.on .lang-flag { animation: flag-pop .35s ease; }
@keyframes flag-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }


/* ===== DNS records manager ===== */
.dns-list { display: flex; flex-direction: column; gap: 2px; }
.dns-row { display: grid; grid-template-columns: 70px 1.1fr 1.8fr 64px 36px; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; font-size: 13.5px; }
.dns-row:not(.dns-head):hover { background: var(--surface-2); }
.dns-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); font-weight: 600; padding-bottom: 4px; }
.dns-type { font-weight: 700; color: var(--orange-700); }
.dns-host, .dns-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 30px 12px; color: var(--ink); }
.dns-empty svg { color: var(--ink-mute); }
.dns-empty span { font-size: 13px; color: var(--ink-mute); }
@media (max-width: 560px) { .dns-row { grid-template-columns: 56px 1fr 1fr 30px; } .dns-row span:nth-child(4) { display: none; } .dns-head span:nth-child(4) { display: none; } }

.dns-acts { display: flex; gap: 2px; justify-content: flex-end; }

/* Aurora cabinet sidebar — light workspace navigation */
.dash { grid-template-columns: 292px minmax(0, 1fr); }
.side { padding: 21px 16px 16px; background: #FFFEFC; border-right-color: #EEE8DF; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 16px; flex: none; }
.side .side-head .brand { min-width: 0; padding: 0; gap: 8px; font-size: 20px; white-space: nowrap; }
.side .side-head .brand .logo { width: 37px; height: 37px; }
.side .side-head .brand .logo img { width: 37px; height: 37px; }
.brand-name { white-space: nowrap; }
.side-toggle { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid #EFE9E0; border-radius: 10px; background: #F8F5F0; color: #8D8278; cursor: pointer; }
.side-toggle:hover { color: var(--orange-700); border-color: #FFD1B5; background: #FFF3E9; }
.side-toggle svg { width: 18px; height: 18px; }
.side-search-wrap { display: flex; align-items: center; height: 44px; gap: 10px; border: 1px solid #E9E3DC; border-radius: 13px; background: #FAF8F5; color: #9A8E83; padding: 0 11px; flex: none; margin: 4px 3px 20px; cursor: text; transition: border-color .16s, box-shadow .16s; }
.side-search-wrap:focus-within { border-color: #FFAA76; box-shadow: 0 0 0 3px rgba(255,106,26,.10); }
.side-search-wrap svg { width: 18px; height: 18px; flex: none; }
.side-search-wrap input { border: 0; outline: 0; min-width: 0; width: 100%; background: transparent; color: var(--ink); font: 500 13.5px var(--font-body); }
.side-search-wrap input::placeholder { color: #A3998F; }
.side-search-wrap input::-webkit-search-cancel-button { cursor: pointer; }
.side-search-wrap kbd { white-space: nowrap; font: 600 11px var(--font-body); color: #9B9187; background: #EEEAE4; border-radius: 6px; padding: 2px 5px; }
#sidenav { scrollbar-width: thin; scrollbar-color: #DDD5CB transparent; }
.side-nav-group { padding: 0 0 17px; margin-bottom: 16px; border-bottom: 1px solid #F1ECE5; }
.side-nav-group:last-child { border-bottom: 0; margin-bottom: 0; }
.side-group-title { padding: 2px 14px 9px; color: #A59A8E; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; }
.side nav .side-nav-group a { min-height: 43px; margin: 2px 0; padding: 10px 13px; border-radius: 13px; color: #6C6259; font-size: 14px; font-weight: 600; }
.side nav .side-nav-group a svg { width: 19px; height: 19px; flex: none; color: #9B9085; }
.side nav .side-nav-group a:hover { background: #F9F3ED; color: #2A211C; }
.side nav .side-nav-group a.active { background: #FFF0E6; color: #D84F0B; box-shadow: inset 0 0 0 1px #FFE0CC; }
.side nav .side-nav-group a.active svg { color: #F26419; }
.side .side-foot { margin-top: auto; padding: 14px 0 0; border-top: 1px solid #F1ECE5; gap: 11px; }
.side-topup { width: 100%; min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #FFD9BF; border-radius: 12px; background: #FFF3E9; color: #CD4A0A; font: 700 13px var(--font-body); cursor: pointer; }
.side-topup:hover { background: #FFE8D9; }
.side-topup-icon { font-size: 21px; line-height: 1; font-weight: 400; }
.side-account-row { display: flex; align-items: center; gap: 6px; }
.side-account { flex: 1; display: flex; min-width: 0; align-items: center; gap: 10px; padding: 8px; border: 1px solid #ECE5DD; border-radius: 15px; background: #FAF7F3; text-align: left; cursor: pointer; }
.side-account:hover { border-color: #FFC8A5; background: #FFF5EC; }
.side-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; flex: none; background: linear-gradient(135deg,#FFA13A,#FF6A1A 60%,#F04E44); color: white; font: 800 17px var(--font-display); }
.side-account-info { min-width: 0; display: flex; flex: 1; flex-direction: column; line-height: 1.24; }
.side-account-info b { color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-account-info small { margin-top: 4px; color: #8F8377; font-size: 11.5px; white-space: nowrap; }
.side-account-chevron { width: 16px; height: 16px; color: #A59A8E; flex: none; }
.side-logout { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #A99B8F; cursor: pointer; }
.side-logout:hover { background: #FDEAE7; color: #D4433F; }
.side-logout svg { width: 18px; height: 18px; }
@media (min-width: 881px) {
  #sidenav { margin: 0 -5px; padding: 0 5px; gap: 0; }
  .dash.side-collapsed { grid-template-columns: 78px minmax(0,1fr); }
  .side-collapsed .side { padding: 15px 11px; }
  .side-collapsed .side-head { flex-direction: column; gap: 8px; padding: 4px 0 15px; }
  .side-collapsed .side-head .brand { justify-content: center; }
  .side-collapsed .side-toggle svg { transform: rotate(180deg); }
  .side-collapsed .brand-name, .side-collapsed .side-search-wrap, .side-collapsed .side-group-title, .side-collapsed .side-nav-label, .side-collapsed .side-topup-label, .side-collapsed .side-account-info, .side-collapsed .side-account-chevron, .side-collapsed .side-logout { display: none; }
  .side-collapsed .side-nav-group { padding-bottom: 8px; margin-bottom: 8px; }
  .side-collapsed .side nav .side-nav-group a { justify-content: center; padding: 12px; }
  .side-collapsed .side-topup { width: 46px; align-self: center; }
  .side-collapsed .side-account { justify-content: center; padding: 6px; }
  .side-collapsed .side-account-row { justify-content: center; }
}
@media (max-width: 880px) {
  .dash, .dash.side-collapsed { grid-template-columns: 1fr; }
  .side { width: 306px; max-width: 88vw; padding: 18px 15px 15px; }
  .side-toggle { background: #FFF3E9; }
  .side-search-wrap { margin-bottom: 17px; }
  #sidenav { flex: 1 1 auto; overflow-y: auto; min-height: 0; display: block; margin: 0 -3px; padding: 0 3px; }
  .side-foot { flex: none; }
}
:root[data-theme="dark"] .side { background: #16161A; border-color: #2A2A30; }
:root[data-theme="dark"] .side-head .brand-name, :root[data-theme="dark"] .side-account-info b { color: var(--ink); }
:root[data-theme="dark"] .side-toggle, :root[data-theme="dark"] .side-search-wrap, :root[data-theme="dark"] .side-account { background: #202024; border-color: #34343B; color: var(--ink-soft); }
:root[data-theme="dark"] .side-search-wrap input { color: var(--ink); }
:root[data-theme="dark"] .side-search-wrap kbd { background: #34343B; color: #A6A6B0; }
:root[data-theme="dark"] .side-nav-group, :root[data-theme="dark"] .side .side-foot { border-color: #2A2A30; }
:root[data-theme="dark"] .side nav .side-nav-group a { color: #B8B8C0; }
:root[data-theme="dark"] .side nav .side-nav-group a:hover { background: #27272C; color: #F2F2F4; }
:root[data-theme="dark"] .side nav .side-nav-group a.active { background: rgba(255,106,26,.13); color: #FF9A5C; box-shadow: inset 0 0 0 1px rgba(255,106,26,.22); }
:root[data-theme="dark"] .side-topup { background: #30221D; border-color: #69402B; color: #FFB184; }

/* Site domain availability, deploy server picker, deposit methods */
.domain-search-status { min-height: 20px; margin-top: -4px; }
.domain-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; max-height: 360px; overflow-y: auto; align-content: start; }
.zone.domain-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; border-radius: 11px; cursor: pointer; }
.domain-result .tld { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.domain-result .p { white-space: nowrap; font-size: 12px; color: var(--ink-mute); }
.domain-result { width: 100%; border: 1px solid var(--line); background: var(--surface); text-align: left; font: inherit; }
.domain-result:hover, .domain-result:focus-visible { border-color: var(--orange); box-shadow: var(--ring); outline: none; }
.dep-picker { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.dep-picker[open] { border-color: var(--orange); box-shadow: var(--ring); }
.dep-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; cursor: pointer; list-style: none; }
.dep-picker summary::-webkit-details-marker { display: none; }
.dep-picker-current { display: flex; align-items: center; min-width: 0; gap: 11px; color: var(--orange-700); }
.dep-picker-current > span { min-width: 0; display: flex; flex-direction: column; }
.dep-picker-current b, .dep-picker-option b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-picker-current small, .dep-picker-option small { font-size: 12px; color: var(--ink-mute); }
.dep-picker summary > svg:last-child { flex: none; color: var(--ink-mute); transition: transform .2s; }
.dep-picker[open] summary > svg:last-child { transform: rotate(180deg); }
.dep-picker-list { max-height: 260px; overflow-y: auto; padding: 6px; border-top: 1px solid var(--line); }
.dep-picker-option { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-mute); text-align: left; font: inherit; cursor: pointer; }
.dep-picker-option:hover, .dep-picker-option:focus-visible { background: var(--surface-2); outline: none; }
.dep-picker-option[aria-selected="true"] { background: var(--orange-light,#FFF2E8); color: var(--orange-700); }
.dep-picker-option-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.dep-picker-option > svg:last-child { opacity: 0; flex: none; }
.dep-picker-option[aria-selected="true"] > svg:last-child { opacity: 1; }
.deposit-methods { display: grid; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
.deposit-methods button { min-width: 0; padding: 9px 5px; font-size: 12.5px; }
@media (max-width: 480px) { .deposit-methods button { font-size: 11.5px; } }

/* Flat sidebar navigation, based on the compact reference layout */
.side-search-wrap { margin-bottom: 16px; }
#sidenav { display: flex; flex-direction: column; align-items: stretch; gap: 3px; overflow-y: auto; min-height: 0; }
.side nav a { min-height: 46px; display: flex; align-items: center; gap: 13px; padding: 10px 14px; border-radius: 13px; color: #756D65; font-size: 15px; font-weight: 600; }
.side nav a svg { width: 21px; height: 21px; color: #9B9187; }
.side nav a:hover { background: #F7F3EE; color: #312B25; }
.side nav a.active { background: #FFF0E6; color: #D84F0B; box-shadow: inset 0 0 0 1px #FFE0CC; }
.side nav a.active svg { color: #F26419; }
.side-nav-separator { border-top: 1px solid #EEE9E2; margin: 14px 2px 12px; }
.side .side-foot { border-top: 1px solid #EEE9E2; padding-top: 14px; }
.side-account { width: 100%; min-height: 60px; padding: 9px 11px; border-radius: 16px; }
.side-avatar { width: 38px; height: 38px; border-radius: 50%; }
.side-avatar svg { width: 22px; height: 22px; }
.side-account-info b { font-size: 14px; }
.side-account-info small { font-size: 12px; }
@media (min-width: 881px) {
  .side-collapsed .side nav a { justify-content: center; padding: 11px; }
  .side-collapsed .side-account { justify-content: center; padding: 6px; }
}
:root[data-theme="dark"] .side nav a { color: #B8B8C0; }
:root[data-theme="dark"] .side nav a:hover { background: #27272C; color: #F2F2F4; }
:root[data-theme="dark"] .side nav a.active { background: rgba(255,106,26,.13); color: #FF9A5C; box-shadow: inset 0 0 0 1px rgba(255,106,26,.22); }
:root[data-theme="dark"] .side-nav-separator { border-color: #2A2A30; }

@media (min-width: 881px) {
  .dash:not(.auth) { height: auto; min-height: 100vh; overflow: visible; }
  .dash:not(.auth) .main { height: auto; min-height: 100vh; overflow: visible; }
}


/* Minimal dashboard navigation */
body.dashboard-page { background: #fff; }
body.dashboard-page::before, body.dashboard-page::after { display: none; }
.dashboard-page .dash { background: #fff; grid-template-columns: 270px minmax(0,1fr); }
.dashboard-page .side { background: #fff; border-right: 1px solid #eceef0; padding: 24px 14px 16px; }
.dashboard-page .side-head { padding: 1px 1px 22px; }
.dashboard-page .side .side-head .brand { gap: 8px; font: 700 22px/1 var(--font-body); letter-spacing: -.035em; transform: translate(-5px, -2px); }
.dashboard-page .side .side-head .brand .logo, .dashboard-page .side .side-head .brand .logo img { width: 30px; height: 30px; }
.dashboard-page .side-search-wrap { height: 38px; margin: 0 3px 17px; padding: 0 10px; gap: 9px; background: #fff; border-color: #e6e8eb; border-radius: 11px; color: #98a0a9; }
.dashboard-page .side-search-wrap svg { width: 17px; height: 17px; }
.dashboard-page .side-search-wrap input { font-size: 14px; font-weight: 400; }
.dashboard-page .side-search-wrap input::placeholder { color: #9aa1aa; }
.dashboard-page .side-search-wrap kbd { background: #f3f4f5; color: #8c949e; }
.dashboard-page .side-toggle { background: #f7f8f9; border-color: #f0f1f3; color: #727b86; }
.dashboard-page .side-toggle:hover { background: #f2f3f5; border-color: #e7e9ed; color: #2d333c; }
.dashboard-page #sidenav { gap: 2px; }
.dashboard-page .side nav .side-nav-item { box-sizing: border-box; display: flex; align-items: center; min-height: 42px; gap: 12px; padding: 9px 12px; margin: 0; border-radius: 10px; color: #59616b; font: 500 14px var(--font-body); letter-spacing: -.005em; white-space: nowrap; }
.dashboard-page .side nav .side-nav-item svg { width: 19px; height: 19px; flex: none; color: #8b949e; }
.dashboard-page .side nav a.side-nav-item:hover { background: #f6f7f8; color: #20252b; }
.dashboard-page .side nav a.side-nav-item.active { background: #fff2e9; color: #de570e; box-shadow: none; font-weight: 650; }
.dashboard-page .side nav a.side-nav-item.active svg { color: #f26b21; }
.dashboard-page .side nav .side-nav-static { color: #59616b; cursor: default; }
.dashboard-page .side nav .side-nav-static svg { color: #8b949e; }
.dashboard-page .side-nav-separator { border-top: 1px solid #eceef0; margin: 13px 4px 12px; }
.dashboard-page #sidenav [hidden] { display: none !important; }
.dashboard-page .side .side-foot { border-color: #eceef0; }
.dashboard-page .side-account { background: #fafafa; border-color: #edf0f2; border-radius: 13px; }
.dashboard-page .side-account:hover { background: #f6f7f8; border-color: #e0e4e8; }
.dashboard-page .side-avatar { background: #fff0e7; color: #ea631b; }
.dashboard-page .side-account-info small { color: #929aa4; }
.dashboard-page .main { background: #fff; }
@media (min-width: 881px) {
  .dashboard-page .dash.side-collapsed { grid-template-columns: 72px minmax(0,1fr); }
  .dashboard-page .side-collapsed .side-nav-label { display: none; }
  .dashboard-page .side-collapsed .side nav .side-nav-item { justify-content: center; padding: 10px; }
}
@media (max-width: 880px) {
  .dashboard-page .dash, .dashboard-page .dash.side-collapsed { grid-template-columns: 1fr; }
  .dashboard-page .side { width: 285px; max-width: 88vw; }
}
:root[data-theme="dark"] .dashboard-page, :root[data-theme="dark"] body.dashboard-page,
:root[data-theme="dark"] .dashboard-page .dash, :root[data-theme="dark"] .dashboard-page .main { background: #0b0b0d; }
:root[data-theme="dark"] .dashboard-page .side { background: #16161a; border-color: #2a2a30; }
:root[data-theme="dark"] .dashboard-page .side-search-wrap { background: #202024; border-color: #34343b; }
:root[data-theme="dark"] .dashboard-page .side nav .side-nav-item { color: #b8b8c0; }
:root[data-theme="dark"] .dashboard-page .side nav .side-nav-static { color: #b8b8c0; }
:root[data-theme="dark"] .dashboard-page .side nav a.side-nav-item.active { background: rgba(255,106,26,.13); color: #ff9a5c; }
:root[data-theme="dark"] .dashboard-page .side-nav-separator { border-color: #2a2a30; }

/* Dock documentation next to the account card, like the reference */
.dashboard-page #sidenav { flex: 1 1 auto; }
.dashboard-page #sidenav .side-nav-separator:last-of-type { margin-top: auto; }
.dashboard-page .side .side-foot { margin-top: 0; border-top: 0; padding: 12px 0 0; }
.dashboard-page .side-account { min-height: 60px; background: #f5f6f7; border: 0; border-radius: 999px; padding: 9px 12px; }
.dashboard-page .side-account:hover { background: #eff1f3; }
.dashboard-page .side-account-info b { font-size: 14px; }
.dashboard-page .side-account-info small { font-size: 12px; }
:root[data-theme="dark"] .dashboard-page .side-account { background: #222227; }
:root[data-theme="dark"] .dashboard-page .side-account:hover { background: #2b2b31; }

/* Compact sidebar: icon rail with search and bottom account */
@media (min-width: 881px) {
  .dashboard-page .side-collapsed .side { padding: 20px 10px 15px; }
  .dashboard-page .side-collapsed .side-head { display: flex; flex-direction: column; align-items: center; padding: 0 0 20px; }
  .dashboard-page .side-collapsed .side-head .brand { display: none; }
  .dashboard-page .side-collapsed .side-toggle { width: 44px; height: 44px; border-radius: 12px; }
  .dashboard-page .side-collapsed .side-toggle svg { width: 19px; height: 19px; }
  .dashboard-page .side-collapsed .side-search-wrap { box-sizing: border-box; display: flex; justify-content: center; width: 44px; height: 44px; margin: 0 auto 13px; padding: 0; border: 0; background: transparent; color: #87919b; cursor: pointer; }
  .dashboard-page .side-collapsed .side-search-wrap:hover { background: #f5f6f8; }
  .dashboard-page .side-collapsed .side-search-wrap svg { width: 22px; height: 22px; }
  .dashboard-page .side-collapsed .side-search-wrap input,
  .dashboard-page .side-collapsed .side-search-wrap kbd { display: none; }
  .dashboard-page .side-collapsed #sidenav { margin: 0; padding: 0; align-items: center; }
  .dashboard-page .side-collapsed .side nav .side-nav-item { width: 44px; height: 44px; min-height: 44px; justify-content: center; margin: 0 auto; padding: 0; }
  .dashboard-page .side-collapsed .side nav .side-nav-item svg { width: 21px; height: 21px; }
  .dashboard-page .side-collapsed .side-nav-separator { align-self: stretch; margin: 12px 6px 11px; }
  .dashboard-page .side-collapsed .side .side-foot { display: flex; justify-content: center; padding-top: 10px; }
  .dashboard-page .side-collapsed .side-account { width: 44px; height: 44px; min-height: 44px; justify-content: center; margin: 0 auto; padding: 0; border-radius: 13px; background: transparent; }
  .dashboard-page .side-collapsed .side-account:hover { background: #f4f5f6; }
  .dashboard-page .side-collapsed .side-avatar { width: 36px; height: 36px; }
}
:root[data-theme="dark"] .dashboard-page .side-collapsed .side-search-wrap { background: transparent; }
:root[data-theme="dark"] .dashboard-page .side-collapsed .side-search-wrap:hover,
:root[data-theme="dark"] .dashboard-page .side-collapsed .side-account:hover { background: #27272c; }


/* Affiliate page */
.referral-view { max-width: 1440px; }
.ref-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,32%); overflow: hidden; min-height: 342px; margin-bottom: 20px; border: 1px solid #eceef1; border-radius: 22px; background: #f8f9fb; }
.ref-hero-content { position: relative; z-index: 1; padding: 40px 42px; }
.ref-eyebrow { display: inline-flex; margin-bottom: 13px; color: #e46621; font-size: 12px; font-weight: 700; letter-spacing: .045em; }
.ref-hero h2 { max-width: 620px; margin: 0 0 14px; font: 700 clamp(24px,2.1vw,32px)/1.2 var(--font-body); letter-spacing: -.035em; }
.ref-hero p { max-width: 600px; margin: 0 0 13px; color: #66707c; font-size: 15px; line-height: 1.55; }
.ref-hero .ref-rate-line { margin-top: 18px; color: #39414a; font-weight: 600; }
.ref-link-label { margin: 29px 0 8px; color: #89919a; font-size: 12px; font-weight: 600; }
.ref-link-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(100%,530px); min-height: 50px; padding: 4px 5px 4px 15px; border: 1px solid #dce1e5; border-radius: 11px; background: #fff; }
.ref-link-value { min-width: 0; overflow: hidden; color: #313943; font: 500 13px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.ref-copy { display: grid; place-items: center; width: 39px; height: 39px; flex: none; border: 0; border-radius: 8px; background: #fff2e9; color: #e46621; cursor: pointer; }
.ref-copy:hover { background: #ffe4d1; }
.ref-art { position: relative; display: grid; place-items: center; min-height: 300px; overflow: hidden; }
.ref-art-orbit { position: absolute; width: 258px; height: 258px; border: 1px solid #f0d8c7; border-radius: 50%; }
.ref-art-link { z-index: 2; display: grid; place-items: center; width: 116px; height: 116px; border: 1px solid #f0d9c8; border-radius: 30px; background: #fff; box-shadow: 0 18px 42px rgba(118,69,36,.1); color: #e86b22; transform: rotate(-8deg); }
.ref-art-link svg { transform: rotate(8deg); }
.ref-art-person { position: absolute; z-index: 3; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #e8e9eb; border-radius: 21px; background: #fff; box-shadow: 0 11px 28px rgba(42,45,52,.085); color: #919aa4; }
.ref-art-person-one { color: #e86b22; transform: translate(-116px,-76px); }
.ref-art-person-two { transform: translate(117px,77px); }
.ref-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 30px; }
.ref-metric { min-width: 0; min-height: 162px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 23px; border: 1px solid #e8eaed; border-radius: 19px; background: #fff; box-shadow: 0 8px 26px rgba(24,32,40,.035); }
.ref-metric:first-child { background: linear-gradient(145deg,#fffaf6 0%,#fff 70%); }
.ref-metric-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: auto; border-radius: 12px; background: #fff2e9; color: #e86b22; }
.ref-metric-label { margin-top: 18px; color: #737e89; font-size: 13px; font-weight: 500; }
.ref-metric strong { margin-top: 5px; color: #22272d; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
.ref-section { margin-bottom: 22px; overflow: hidden; border: 1px solid #eceef1; border-radius: 17px; background: #fff; }
.ref-section-head { display: flex; align-items: center; gap: 10px; padding: 23px 25px 18px; }
.ref-section-head h2, .ref-promo h2 { margin: 0; font: 700 18px var(--font-body); letter-spacing: -.02em; }
.ref-section-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #f2f3f5; color: #68717b; font-size: 12px; font-weight: 700; }
.ref-person { display: flex; align-items: center; gap: 13px; min-height: 65px; margin: 0 25px; border-top: 1px solid #f0f1f2; }
.ref-person-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 50%; background: #fff0e5; color: #d66223; font-size: 14px; font-weight: 700; }
.ref-person-info { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.4; }
.ref-person-info strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ref-person-info small { color: #929aa2; font-size: 12px; }
.ref-person-earned { color: var(--ink); font-size: 14px; white-space: nowrap; }
.ref-empty { padding: 13px 25px 29px; color: #929aa2; font-size: 14px; }
.ref-promo { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 24px 25px; border: 1px solid #eceef1; border-radius: 17px; background: #fff; }
.ref-promo p { margin: 6px 0 0; color: #8c949d; font-size: 13px; }
.ref-promo-form { display: flex; gap: 9px; min-width: min(100%,410px); }
.ref-promo-form input { min-width: 0; flex: 1; padding: 11px 13px; border: 1px solid #dfe3e7; border-radius: 10px; outline: none; background: #fff; color: #22272d; font: 14px var(--font-body); text-transform: uppercase; }
.ref-promo-form input:focus { border-color: #f1915e; box-shadow: 0 0 0 3px rgba(255,106,26,.1); }
.ref-promo-form .btn { padding: 10px 17px; border-radius: 10px; font-size: 13px; }
@media (max-width: 900px) {
  .ref-hero { grid-template-columns: 1fr; }
  .ref-art { display: none; }
  .ref-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .ref-hero-content { padding: 26px 23px; }
  .ref-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ref-metric { min-height: 138px; padding: 16px; }
  .ref-metric-icon { width: 34px; height: 34px; border-radius: 10px; }
  .ref-metric-label { margin-top: 13px; font-size: 12px; }
  .ref-metric strong { font-size: 24px; }
  .ref-section-head { padding: 19px 20px 14px; }
  .ref-person { margin: 0 20px; }
  .ref-promo { align-items: stretch; flex-direction: column; padding: 20px; }
  .ref-promo-form { min-width: 0; }
}
:root[data-theme="dark"] .ref-hero { background: #1b1b20; border-color: #303037; }
:root[data-theme="dark"] .ref-art-orbit { border-color: #4a3023; }
:root[data-theme="dark"] .ref-art-link, :root[data-theme="dark"] .ref-art-person { background: #222226; border-color: #45342c; }
:root[data-theme="dark"] .ref-hero p, :root[data-theme="dark"] .ref-promo p { color: #a0a0aa; }
:root[data-theme="dark"] .ref-hero .ref-rate-line { color: #d2d2d8; }
:root[data-theme="dark"] .ref-link-box, :root[data-theme="dark"] .ref-metric,
:root[data-theme="dark"] .ref-section, :root[data-theme="dark"] .ref-promo { background: #16161a; border-color: #303037; }
:root[data-theme="dark"] .ref-metric:first-child { background: linear-gradient(145deg,#241d1a,#16161a 72%); }
:root[data-theme="dark"] .ref-link-value, :root[data-theme="dark"] .ref-metric strong { color: #f2f2f4; }
:root[data-theme="dark"] .ref-person { border-color: #303037; }
:root[data-theme="dark"] .ref-promo-form input { background: #202024; border-color: #3a3a42; color: #f2f2f4; }


/* Leaner affiliate introduction */
.ref-hero { min-height: 316px; }
.ref-hero-content { padding-top: 42px; padding-bottom: 37px; }
.ref-hero h2 { margin-bottom: 18px; }
.ref-hero .ref-intro { max-width: 640px; margin-bottom: 21px; line-height: 1.72; }
.ref-inline-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: #e46621; font: inherit; font-weight: 600; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.ref-inline-link svg { display: inline-block; flex: none; vertical-align: middle; }
.ref-inline-link:hover { color: #c95112; text-decoration: underline; }
.ref-benefits { margin: 0 0 27px; }
.ref-benefit { display: flex; align-items: baseline; gap: 10px; color: #626b75; font-size: 15px; }
.ref-benefit-dash { width: 13px; height: 2px; flex: none; background: #ea6a22; transform: translateY(-4px); }
.ref-hero .ref-link-box { margin-top: 0; }
.ref-hero .ref-link-value { font-size: 14px; font-family: var(--font-body); font-weight: 600; }
:root[data-theme="dark"] .ref-benefit { color: #a0a0aa; }


/* Keep cabinet navigation fixed while the page scrolls */
@media (min-width: 881px) {
  .dashboard-page .dash:not(.auth) { display: block; height: auto; min-height: 100vh; overflow: visible; }
  .dashboard-page .dash:not(.auth) .side {
    position: fixed; inset: 0 auto 0 0; z-index: 20;
    width: 270px; height: 100dvh; overflow: hidden;
  }
  .dashboard-page .dash:not(.auth) .main {
    margin-left: 270px; width: auto; height: auto; min-height: 100vh; overflow: visible;
  }
  .dashboard-page .dash.side-collapsed:not(.auth) .side { width: 72px; }
  .dashboard-page .dash.side-collapsed:not(.auth) .main { margin-left: 72px; }
}


/* Affiliate copy: quieter type like the reference */
.ref-hero .ref-intro, .ref-hero .ref-benefit {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.72;
  color: #707984;
}
.ref-hero .ref-intro { max-width: 650px; }
.ref-hero .ref-inline-link { font-weight: 500; }
.ref-hero .ref-benefit { align-items: center; }
.ref-hero .ref-benefit-dash { transform: none; }
:root[data-theme="dark"] .ref-hero .ref-intro,
:root[data-theme="dark"] .ref-hero .ref-benefit { color: #a0a0aa; }

/* Server catalogue header */
.stat-row-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.server-tabs { display: flex; align-items: flex-end; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; }
.server-tab { appearance: none; display: inline-flex; flex: none; align-items: center; min-height: 39px; padding: 0 0 1px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-mute); font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.server-tab:hover { color: var(--ink); }
.server-tab.active { border-bottom-color: var(--ink); color: var(--ink); }
.server-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.server-tab-empty { padding: 24px 0; }
.server-tab-empty h2 { margin: 0 0 10px; font-size: 24px; font-weight: 600; }
.server-tab-empty p { margin: 0; color: var(--ink-mute); }
.server-page-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.server-page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.server-page-actions { display: flex; align-items: center; gap: 10px; }
.server-search { display: flex; align-items: center; gap: 10px; width: min(31vw, 310px); min-height: 45px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); }
.server-search:focus-within { border-color: var(--orange); }
.server-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.server-search input::placeholder { color: var(--ink-mute); }
.server-search svg { flex: none; color: var(--ink-mute); }
.server-no-results { padding: 32px; text-align: center; color: var(--ink-mute); }
@media (max-width: 1024px) { .stat-row-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .server-page-head { align-items: stretch; flex-direction: column; }
  .server-page-actions { width: 100%; }
  .server-search { flex: 1; width: auto; }
  .server-page-actions .btn { white-space: nowrap; }
}
@media (max-width: 480px) {
  .stat-row-three { grid-template-columns: 1fr; }
  .server-page-head h1 { font-size: 23px; }
  .server-search { min-width: 0; }
  .server-page-actions .btn { padding: 12px 14px; font-size: 13px; }
}

/* Server cards: compact identity, address, status and controls */
.server-card-list { display: grid; gap: 12px; margin-bottom: 24px; }
.server-card { display: grid; grid-template-columns: 68px minmax(200px, 1.3fr) minmax(160px, .85fr) minmax(160px, .65fr) 38px; align-items: center; gap: 20px; min-height: 112px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .16s; }
.server-card:hover, .server-card:focus-visible { border-color: var(--line-strong); box-shadow: var(--shadow-sm); outline: none; }
.server-card-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: #f16a27; color: #fff; }
.server-card-icon.os-debian { background: #bd3264; }
.server-card-icon.os-windows { background: #2789d6; }
.server-card-icon.os-default { background: #e87534; }
.server-card-icon svg { width: 30px; height: 30px; }
.server-card-identity, .server-card-network, .server-card-state { min-width: 0; }
.server-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 19px; font-weight: 700; }
.server-card-specs, .server-card-location, .server-card-expiry { margin-top: 6px; color: var(--ink-mute); font-size: 13px; line-height: 1.35; }
.server-card-specs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-card-ip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink-soft); }
.server-card-state { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.server-card-expiry { margin-top: 0; }
.server-card-more { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-mute); cursor: pointer; }
.server-card-more:hover, .server-card-more:focus-visible { background: var(--surface-2); color: var(--ink); outline: none; }
@media (max-width: 1120px) {
  .server-card { grid-template-columns: 62px minmax(150px, 1fr) minmax(120px, .8fr) 38px; gap: 15px; }
  .server-card-icon { width: 60px; height: 60px; }
  .server-card-state { grid-column: 2 / 4; grid-row: 2; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 9px; }
  .server-card-more { grid-column: 4; grid-row: 1 / 3; }
}
@media (max-width: 700px) {
  .server-card { grid-template-columns: 54px minmax(0, 1fr) 38px; gap: 10px 13px; min-height: 0; padding: 16px; }
  .server-card-icon { width: 52px; height: 52px; }
  .server-card-icon svg { width: 24px; height: 24px; }
  .server-card-name { font-size: 17px; }
  .server-card-network { grid-column: 2; grid-row: 2; }
  .server-card-state { grid-column: 2 / 4; grid-row: 3; }
  .server-card-more { grid-column: 3; grid-row: 1; }
}

/* Payments and expenses */
.billing-title { margin: 0 0 24px; font-size: 28px; }
.billing-balance { display: flex; align-items: center; gap: 16px; margin: 0 0 27px; }
.billing-balance-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #ececeb; color: #858584; }
.billing-balance-text { display: grid; gap: 2px; }
.billing-balance-text strong { color: var(--ink); font-size: 29px; font-weight: 700; letter-spacing: -.035em; line-height: 1.13; }
.billing-balance-text > span { color: var(--ink-mute); font-size: 13px; line-height: 1.3; }
.billing-tabs { display: flex; align-items: stretch; gap: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.billing-tab { flex: none; padding: 0 1px 15px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-mute); font: 600 15px var(--font-body); cursor: pointer; }
.billing-tab:hover { color: var(--ink); }
.billing-tab.active { border-bottom-color: var(--ink); color: var(--ink); }
.billing-payment { max-width: 430px; }
.billing-promo { max-width: 680px; }
.billing-payment h2, .billing-promo h2, .billing-history h2, .billing-placeholder h2 { margin: 0 0 20px; font-size: 23px; }
.billing-promo p, .billing-section-head p, .billing-placeholder p { margin: -8px 0 23px; color: var(--ink-mute); font-size: 14px; }
.billing-form { display: grid; gap: 19px; }
.billing-label { display: grid; gap: 7px; color: var(--ink-mute); font-size: 13px; font-weight: 500; }
.billing-amount { width: 100%; max-width: none; min-height: 46px; padding: 9px 13px; font-size: 15px; appearance: textfield; }
.billing-amount::-webkit-outer-spin-button, .billing-amount::-webkit-inner-spin-button { margin: 0; appearance: none; }
.billing-method-picker { position: relative; width: 100%; color: var(--ink); font-size: 16px; font-weight: 500; }
.billing-method-selected { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); cursor: pointer; list-style: none; }
.billing-method-selected::-webkit-details-marker { display: none; }
.billing-method-selected > svg, .billing-method-selected > img { flex: none; color: var(--orange); }
.billing-method-selected > span:nth-child(2) { flex: 1; }
.billing-method-chevron { display: grid; place-items: center; color: var(--ink-soft); transform: rotate(90deg); }
.billing-method-picker[open] .billing-method-chevron { transform: rotate(-90deg); }
.billing-method-options { position: absolute; z-index: 12; top: calc(100% + 6px); right: 0; left: 0; padding: 6px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); box-shadow: 0 14px 30px rgba(28, 25, 22, .11); }
.billing-method-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 8px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: 500 15px var(--font-body); text-align: left; cursor: pointer; }
.billing-method-option svg { color: var(--orange); }
.billing-method-option img { width: 20px; height: 20px; object-fit: contain; }
.billing-method-option .billing-sbp-icon { width: 24px; height: 24px; }
.billing-cryptobot-icon { border-radius: 5px; object-fit: cover; }
.billing-method-option:hover, .billing-method-option.active { background: #f7f5f2; }
.billing-promo-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--orange-700); font: 500 14px var(--font-body); cursor: pointer; }
.billing-promo-link:hover { text-decoration: underline; }
.billing-checkout { display: flex; align-items: center; gap: 19px; margin-top: 4px; }
.billing-submit { padding: 10px 18px; font-size: 14px; box-shadow: none; }
.billing-checkout > span { border-left: 1px solid var(--line-strong); padding-left: 24px; color: var(--ink-soft); }
.billing-total { color: var(--ink); }
.billing-promo-form { display: flex; gap: 10px; max-width: 540px; }
.billing-promo-form .input { min-width: 0; }
.billing-placeholder { max-width: 680px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.billing-placeholder h2 { margin-bottom: 16px; }
.billing-placeholder p { margin: 0; }
.billing-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.billing-section-head h2 { margin-bottom: 14px; }
.billing-section-head p { margin: 0; }
.billing-refresh { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink-soft); font: 600 13px var(--font-body); cursor: pointer; }
.billing-history-rows { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.billing-history-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(110px, 1fr) 100px 120px auto; align-items: center; gap: 16px; min-height: 68px; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.billing-history-row:last-child { border-bottom: 0; }
.billing-history-date, .billing-history-method { color: var(--ink-soft); }
.billing-history-amount { color: var(--ink); }
.billing-history-amount.charged { color: var(--ink-soft); }
.billing-history-status { color: var(--ink-mute); }
.billing-history-status.paid { color: var(--green); }
.billing-pay-link { color: var(--orange-700); font-weight: 600; }
.billing-history-empty { padding: 35px 20px; color: var(--ink-mute); text-align: center; }
@media (max-width: 700px) {
  .billing-title { font-size: 23px; }
  .billing-balance-icon { width: 48px; height: 48px; }
  .billing-balance-text strong { font-size: 23px; }
  .billing-tabs { gap: 18px; margin-bottom: 25px; }
  .billing-tab { font-size: 13px; }
  .billing-history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
  .billing-history-method { grid-column: 1; grid-row: 2; }
  .billing-history-amount { grid-column: 2; grid-row: 1; text-align: right; }
  .billing-history-status { grid-column: 2; grid-row: 2; text-align: right; }
  .billing-pay-link { grid-column: 1 / 3; }
}
@media (max-width: 480px) {
  .billing-checkout { align-items: stretch; flex-direction: column; gap: 13px; }
  .billing-checkout > span { border-left: 0; padding-left: 0; }
  .billing-promo-form { flex-direction: column; }
}

/* Quieter referral details */
.ref-link-box .ref-copy { width: 32px; height: 34px; border-radius: 0; background: transparent; }
.ref-link-box .ref-copy:hover { background: transparent; color: var(--orange-700); }
.ref-metric { min-height: 122px; padding: 24px; box-shadow: none; }
.ref-metric:first-child { background: var(--surface); }
.ref-metric-label { margin-top: 0; font-size: 14px; }
.ref-metric strong { margin-top: 14px; }
:root[data-theme="dark"] .ref-metric:first-child { background: var(--surface); }

/* Slimmer server list following the same cabinet visual language */
.servers-view .server-title { margin: 0 0 24px; font-size: 29px; }
.servers-view .server-tabs { margin-bottom: 30px; }
.servers-view .server-page-head { margin-bottom: 22px; }
.servers-view .server-page-head h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.servers-view .server-page-actions .btn { min-height: 40px; padding: 8px 15px; border-radius: 9px; box-shadow: none; font-size: 13px; }
.servers-view .server-page-actions .btn:hover { transform: none; box-shadow: none; }
.servers-view .server-search { min-height: 40px; border-radius: 9px; font-size: 13px; }
.server-list-head, .server-card { display: grid; grid-template-columns: 54px minmax(190px, 1.35fr) minmax(130px, 1fr) minmax(120px, .8fr) minmax(185px, auto); column-gap: 17px; align-items: center; }
.server-list-head { margin-bottom: 8px; padding: 0 18px; color: var(--ink-mute); font-size: 12px; }
.server-list-head span:first-child { grid-column: 1 / 3; }
.server-card-list { gap: 10px; }
.server-card { min-height: 88px; padding: 14px 18px; border-radius: 14px; box-shadow: none; }
.server-card-icon, .server-card-icon.os-default { width: 50px; height: 50px; background: #e95420; }
.server-card-icon.os-debian { background: #b22357; }
.server-card-icon.os-windows { background: #2088d0; }
.server-card-icon.os-linux { background: #444d57; }
.server-card-icon svg { width: 28px; height: 28px; }
.server-card-name { font-size: 16px; }
.server-card-specs { margin-top: 5px; font-size: 12px; }
.server-card-network { color: var(--ink-soft); }
.server-card-ip { font: 500 13px var(--font-body); }
.server-card-location { margin-top: 3px; font-size: 11px; }
.server-card-disk { min-width: 0; }
.server-card-diskbar { width: min(100%, 150px); height: 9px; overflow: hidden; border-radius: 99px; background: var(--line-strong); }
.server-card-diskbar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #18bf5b; transition: width .3s ease; }
.server-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.server-row-action { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.server-row-action[data-tip] { position: relative; }
.server-row-action[data-tip]:hover::after, .server-row-action[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 30; right: calc(100% + 7px); top: 50%; transform: translateY(-50%); padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.1); font: 500 12px var(--font-body); white-space: nowrap; pointer-events: none; }
.server-row-action:hover, .server-row-action:focus-visible { background: var(--surface-2); color: var(--ink); outline: none; }
.server-row-action:disabled { opacity: .35; cursor: default; }
.server-row-action:disabled:hover { background: transparent; color: var(--ink-soft); }

/* Keep form focus visible without the orange halo. */
.dashboard-page .input:focus,
.dashboard-page .select:focus,
.dashboard-page .textarea:focus { border-color: #aeb5bc; box-shadow: none; outline: none; }
:root[data-theme="dark"] .dashboard-page .input:focus,
:root[data-theme="dark"] .dashboard-page .select:focus,
:root[data-theme="dark"] .dashboard-page .textarea:focus { border-color: #777b84; }
@media (max-width: 1250px) {
  .server-list-head { display: none; }
  .server-card { grid-template-columns: 54px minmax(0, 1fr) minmax(110px, .7fr) minmax(105px, .6fr); gap: 8px 14px; }
  .server-card-icon { grid-column: 1; grid-row: 1 / 3; }
  .server-card-identity { grid-column: 2; grid-row: 1; }
  .server-card-network { grid-column: 3; grid-row: 1; }
  .server-card-disk { grid-column: 4; grid-row: 1; }
  .server-card-actions { grid-column: 2 / 5; grid-row: 2; justify-content: flex-end; }
}
@media (max-width: 700px) {
  .servers-view .server-title { font-size: 24px; }
  .server-card { grid-template-columns: 46px minmax(0, 1fr); gap: 6px 11px; padding: 13px; }
  .server-card-icon { width: 44px; height: 44px; grid-row: 1 / 3; }
  .server-card-icon svg { width: 24px; height: 24px; }
  .server-card-identity { grid-column: 2; grid-row: 1; }
  .server-card-network { grid-column: 2; grid-row: 2; }
  .server-card-disk { grid-column: 2; grid-row: 3; }
  .server-card-actions { grid-column: 1 / 3; grid-row: 4; justify-content: flex-end; }
}

/* A little more breathing room around the sidebar content */
@media (min-width: 881px) {
  .dashboard-page .dash:not(.side-collapsed) { grid-template-columns: 286px minmax(0, 1fr); }
  .dashboard-page .dash:not(.auth):not(.side-collapsed) .side { width: 286px; padding-left: 20px; padding-right: 20px; }
  .dashboard-page .dash:not(.auth):not(.side-collapsed) .main { margin-left: 286px; }
}

/* Consistent, compact space after the last item on every cabinet page. */
.dashboard-page .dash:not(.auth) .main { padding-bottom: 28px; }
.dashboard-page .main .view.active > :last-child { margin-bottom: 0; }
@media (max-width: 880px) {
  .dashboard-page .dash:not(.auth) .main { padding-bottom: 22px; }
}

/* OS marks in the server list; each is the corresponding operating system logo. */
.server-card-icon img { display: block; width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.server-card-icon.os-centos { background: #7554a3; }
.server-card-icon.os-almalinux { background: #257ca3; }
.server-card-icon.os-rockylinux { background: #10a774; }
.server-card-icon.os-fedora { background: #315c9a; }
.server-card-icon.os-alpine { background: #0d597f; }
.server-card-icon.os-linux { background: #444d57; }

/* Balance heading uses the same compact scale as the rest of billing. */
.billing-balance-text strong { font-size: 24px; }
.billing-balance-text > span { font-size: 12px; }
.billing-balance-icon { width: 50px; height: 50px; }
@media (max-width: 700px) {
  .billing-balance-text strong { font-size: 21px; }
  .billing-balance-icon { width: 44px; height: 44px; }
}

/* Compact menus on service cards. */
.card-action-menu { position: relative; flex: none; }
.card-action-menu summary { list-style: none; }
.card-action-menu summary::-webkit-details-marker { display: none; }
.card-action-menu[open] { z-index: 30; }
.server-card:has(.card-action-menu[open]) { position: relative; z-index: 20; }
.card-action-list { position: absolute; top: calc(100% + 6px); right: 0; width: 204px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 12px 30px rgba(22,22,22,.12); }
.card-action-item { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; font: 500 12px var(--font-body); cursor: pointer; }
.card-action-item:hover, .card-action-item:focus-visible { background: var(--surface-2); outline: none; }
.card-action-item.danger { color: var(--red); }
.card-action-separator { height: 1px; margin: 5px 3px; background: var(--line); }

/* Domains use the same compact row system as servers. */
.domain-list-head, .domain-card { display: grid; grid-template-columns: 54px minmax(200px, 1.45fr) minmax(140px, .8fr) minmax(120px, auto); column-gap: 17px; align-items: center; }
.domain-list-head { margin: 0 0 8px; padding: 0 18px; color: var(--ink-mute); font-size: 12px; }
.domain-list-head span:first-child { grid-column: 1 / 3; }
.domain-card-list { display: grid; gap: 10px; }
.domain-card-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; background: #f35a1f; }
.domain-card-expiry { color: var(--ink-soft); }
.domain-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.domains-view .server-title { margin: 0 0 24px; font-size: 29px; }
.domains-view .server-page-head { margin-bottom: 22px; }
.domains-view .server-page-head h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.domains-view .server-page-actions .btn { min-height: 40px; padding: 8px 15px; border-radius: 9px; box-shadow: none; font-size: 13px; }
.domains-view .server-page-actions .btn:hover { transform: none; box-shadow: none; }
.domains-view .server-search { min-height: 40px; border-radius: 9px; font-size: 13px; }
@media (max-width: 700px) {
  .domains-view .server-title { font-size: 24px; }
  .domain-list-head { display: none; }
  .domain-results { grid-template-columns: minmax(0, 1fr); }
}
.account-settings { max-width: 1080px; }
.account-section { margin: 28px 0 36px; }
.account-section h2, .account-detail h2 { margin: 0; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: 22px; }
.account-row { display: flex; align-items: center; gap: 15px; min-height: 77px; border-bottom: 1px solid var(--line); }
.account-row-icon { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.account-row-copy { display: grid; gap: 3px; min-width: 0; }
.account-row-copy strong { font-size: 15px; font-weight: 600; }
.account-row-copy span, .account-note, .account-session span { color: var(--ink-mute); font-size: 13px; }
.account-row-button { margin-left: auto; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--ink); font: 500 13px var(--font-body); cursor: pointer; white-space: nowrap; }
.account-row-button:hover { background: var(--line); }
.account-method-picker { position: relative; margin-left: auto; flex: none; min-width: 170px; font-size: 13px; }
.account-method-picker summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.account-method-picker summary::-webkit-details-marker { display: none; }
.account-method-picker[open] summary svg { transform: rotate(90deg); }
.account-method-options { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; width: 100%; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.account-method-options button { width: 100%; padding: 9px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.account-method-options button:hover { background: var(--surface-2); }
.account-subpage { width: 100%; }
.account-back { display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 33px; padding: 0; border: 0; background: none; color: var(--ink-mute); font: 500 14px var(--font-body); cursor: pointer; }
.account-back:hover { color: var(--ink); }
.account-subpage h1 { margin: 0 0 32px; font-size: clamp(26px, 2.2vw, 34px); }
.account-subpage-note { margin: -10px 0 28px; color: var(--ink-mute); font-size: 14px; }
.account-subpage-loading { display: flex; align-items: center; gap: 12px; color: var(--ink-mute); font-size: 14px; }
.account-subpage-loading .boot-spin { width: 18px; height: 18px; border-width: 2px; }
.account-empty { padding: 35px 0; color: var(--ink-mute); }
.account-device-group { max-width: 1000px; margin: 0 0 34px; }
.account-device-group h2 { margin: 0 0 16px; font-size: 20px; }
.account-device-group-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-revoke { margin-bottom: 15px; padding: 0; border: 0; background: none; color: #dc3f35; font: 500 14px var(--font-body); cursor: pointer; }
.account-revoke:disabled { opacity: .5; cursor: wait; }
.account-device-card { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.account-device-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); flex: none; }
.account-device-card > div { display: grid; gap: 5px; min-width: 0; }
.account-device-card strong { font-size: 15px; overflow-wrap: anywhere; }
.account-device-card > div span { color: var(--ink-mute); font-size: 13px; }
.account-history-head, .account-history-row { display: grid; grid-template-columns: minmax(150px,1.1fr) minmax(130px,.7fr) minmax(0,2fr); align-items: center; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.account-history-head { color: var(--ink-mute); font-size: 13px; }
.account-history-row { min-height: 66px; font-size: 14px; }
.account-history-row strong { font-weight: 600; }
.account-history-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.account-history-pages { display: flex; align-items: center; gap: 15px; margin: 26px 0; font-size: 14px; }
.account-history-pages button { border: 0; border-radius: 8px; padding: 7px 12px; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.account-history-pages button:disabled { opacity: .4; cursor: default; }
.account-detail { margin-bottom: 30px; }
.account-detail:empty { display: none; }
.account-detail-head { display: flex; align-items: center; gap: 20px; }
.account-detail-head h2 { flex: 1; }
.account-session { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 600px) { .account-session { display: grid; gap: 4px; } .account-row { gap: 10px; } .account-method-picker { min-width: 125px; } .account-history-head { display: none; } .account-history-row { grid-template-columns: 1fr; gap: 5px; } .account-history-row span { white-space: normal; overflow-wrap: anywhere; } }

/* 28 Oct: quieter referral banner and compact settings controls */
.ref-hero { display: block; min-height: 0; }
.ref-hero-content { padding: 34px 38px 32px; }
.ref-hero .ref-intro { max-width: 830px; }
.ref-hero .ref-link-box { width: min(100%, 540px); }
@media (max-width: 700px) { .ref-hero-content { padding: 25px 22px; } }
.account-method-picker { min-width: 0; width: auto; }
.account-method-picker summary { min-width: 132px; justify-content: space-between; padding: 8px 12px; border: 0; background: var(--surface-2); font: 500 13px var(--font-body); }
.account-method-picker summary:hover { background: var(--line); }
.account-method-options { min-width: 160px; width: max-content; }
.billing-method-selected, .billing-method-option { gap: 8px; }
.billing-method-icon { display: grid; place-items: center; flex: none; width: 25px; height: 25px; }
.billing-method-icon > img, .billing-method-icon > svg { display: block; max-width: 25px; max-height: 25px; }
.billing-method-selected { padding-left: 12px; }
.billing-method-option { padding-left: 10px; }
.page-loader { max-width: none; padding: 0; }
.page-loader .server-title { margin-bottom: 24px; }
.page-loader .server-tabs { margin-bottom: 30px; }
.page-skeleton, .page-skeleton-circle, .page-skeleton-copy > span, .page-skeleton-short { display: block; background: var(--surface-2); animation: pageLoaderPulse 1.4s ease-in-out infinite; }
.page-skeleton { width: 180px; height: 40px; border-radius: 9px; }
.page-skeleton-list { display: grid; gap: 10px; }
.page-skeleton-row { display: flex; align-items: center; gap: 18px; min-height: 92px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.page-skeleton-circle { width: 50px; height: 50px; flex: none; border-radius: 50%; }
.page-skeleton-copy { display: grid; gap: 9px; width: 34%; }
.page-skeleton-copy > span { height: 12px; border-radius: 6px; }
.page-skeleton-copy > span:last-child { width: 70%; }
.page-skeleton-short { width: 18%; height: 12px; border-radius: 6px; }
.page-skeleton-deploy { display: grid; gap: 18px; width: min(100%, 650px); padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.page-skeleton-deploy .page-skeleton { width: 100%; height: 48px; }
.page-skeleton-deploy .page-skeleton:first-child { height: 95px; }
.page-skeleton-balance { display: flex; gap: 16px; align-items: center; }
.page-skeleton-balance .page-skeleton:first-child { width: 50px; height: 50px; border-radius: 50%; }
.page-skeleton-balance .page-skeleton:last-child { width: 250px; height: 26px; }
@media (max-width: 700px) { .page-skeleton-short { display: none; } .page-skeleton-copy { width: 70%; } }

/* Installation tabs and rows */
.deploy-view .server-title { margin: 0 0 24px; font-size: 29px; }
.deploy-view .server-tabs { margin-bottom: 30px; }
.deploy-list-title { margin: 0 0 20px; font-size: 21px; letter-spacing: -.02em; }
.deploy-history-list { display: grid; gap: 10px; }
.deploy-history-row { display: flex; align-items: center; gap: 17px; padding: 18px 20px; min-height: 82px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.deploy-history-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 12px; background: var(--surface-2); color: var(--ink-soft); }
.deploy-history-main { display: grid; gap: 7px; min-width: 0; }
.deploy-history-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.deploy-history-main span { color: var(--ink-mute); font-size: 13px; }
.deploy-history-status { margin-left: auto; flex: none; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.deploy-history-status.success { color: var(--green); }
.deploy-history-status.running { color: var(--orange); }
.deploy-form { width: min(100%, 760px); }
.deploy-form .deploy-list-title { margin-bottom: 8px; }
.deploy-form-intro { margin: 0 0 24px; color: var(--ink-mute); font-size: 14px; line-height: 1.5; }
.deploy-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 190px; padding: 27px; border: 1px dashed var(--line-strong); border-radius: 15px; background: var(--surface); }
.deploy-upload:hover, .deploy-upload.drag, .deploy-upload:focus-visible { border-color: var(--orange); background: var(--surface); outline: none; }
.deploy-upload .deploy-upload-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 7px; border-radius: 11px; background: var(--surface-2); color: var(--orange); }
.deploy-upload .deploy-upload-icon svg { width: 22px; height: 22px; margin: 0; color: inherit; }
.deploy-upload b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16px var(--font-body); }
.deploy-upload span:not(.deploy-upload-icon), .deploy-upload small { color: var(--ink-mute); font-size: 13px; }
.deploy-upload small { margin-top: 3px; }
.deploy-form-fields { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 17px; margin-top: 24px; }
.deploy-form-fields .field { min-width: 0; margin: 0; }
.deploy-form-fields .field label { margin-bottom: 8px; color: var(--ink-soft); font-size: 13px; }
.deploy-form-fields .input, .deploy-form-fields .dep-picker { min-height: 49px; border-radius: 10px; box-sizing: border-box; }
.deploy-form-fields .input:focus { box-shadow: none; }
.deploy-form-fields .dep-picker[open] { box-shadow: none; }
.deploy-form-note { margin: 15px 0 25px; color: var(--ink-mute); font-size: 13px; }
.deploy-form-submit { min-width: 190px; min-height: 43px; padding: 10px 20px; border-radius: 10px; box-shadow: none; font-size: 14px; }
.deploy-form-submit:hover { transform: none; box-shadow: none; }
@media (max-width: 700px) { .deploy-view .server-title { font-size: 24px; } .deploy-form-fields { grid-template-columns: 1fr; gap: 17px; } .deploy-form-submit { width: 100%; justify-content: center; } }

/* Keep the account sidebar stable while content data loads */
.dash.page-loading .side-foot { visibility: visible; }

/* Referral skeleton follows the real hero and metric layout */
.page-skeleton-referral { display: grid; gap: 16px; padding: 34px 38px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 22px; background: #f8f9fb; }
.page-skeleton-referral .page-skeleton { width: min(68%, 650px); height: 16px; }
.page-skeleton-referral .page-skeleton:first-child { width: min(48%, 460px); height: 32px; }
.page-skeleton-referral .page-skeleton:last-child { width: min(50%, 530px); height: 50px; margin-top: 12px; }
.page-skeleton-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.page-skeleton-metrics .page-skeleton { width: 100%; height: 135px; border-radius: 18px; }
@media (max-width: 700px) { .page-skeleton-metrics { grid-template-columns: repeat(2,1fr); } .page-skeleton-referral { padding: 25px 22px; } }

/* Server creation: one page with a persistent order summary */
.server-create-view .server-title { margin: 20px 0 42px; font-size: 32px; }
.server-create-back { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink-mute); font: inherit; font-size: 14px; cursor: pointer; }
.server-create-back:hover { color: var(--ink); }
.server-create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 36px; }
.server-create-main { min-width: 0; }
.server-create-section { margin-bottom: 38px; }
.server-create-section > h2 { margin: 0 0 18px; font-size: 21px; line-height: 1.25; }
.server-create-region-grid, .server-create-os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.server-create-region, .server-create-os { min-height: 160px; text-align: left; border: 1px solid transparent; border-radius: 16px; background: #f7f7f8; color: var(--ink); }
.server-create-region { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 21px 22px; font: inherit; cursor: pointer; }
.server-create-region:hover, .server-create-os:hover, .server-create-plan:hover { border-color: var(--line-strong); }
.server-create-region.selected, .server-create-os.selected, .server-create-plan.selected { border: 2px solid var(--orange); padding: 20px 21px; background: #f7f7f8; }
.server-create-region strong, .server-create-os strong { font-size: 17px; font-weight: 600; }
.server-create-region small { color: var(--ink-mute); font-size: 13px; }
.server-create-flag { display: block; flex: 0 0 40px; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%; object-fit: cover; overflow: hidden; font-size: 34px; line-height: 40px; }
.server-create-os { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.server-create-os.open { z-index: 8; }
.server-create-os-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.server-create-os .os-badge { width: 32px; height: 32px; }
.server-create-os .os-badge img { width: 30px !important; height: 30px !important; }
.server-create-version { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; width: auto; max-width: 100%; padding: 8px 0 3px; margin-top: 10px; border: 0; background: transparent; color: var(--ink-mute); text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.server-create-version:hover { color: var(--ink); }
.server-create-version svg { flex: none; transform: rotate(90deg); transition: transform .18s ease; }
.server-create-version[aria-expanded="true"] svg { transform: rotate(-90deg); }
.server-create-version-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; display: grid; gap: 2px; max-height: 230px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 30px rgba(22,20,18,.12); }
.server-create-version-option { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.server-create-version-option:hover { background: var(--surface-alt, #f5f5f5); }
.server-create-version-option.selected { color: var(--orange); font-weight: 600; }
.server-create-version-option svg { flex: none; }
:root[data-theme="dark"] .server-create-version-option:hover { background: #26262c; }
.server-create-version-label { margin-top: 10px; color: var(--ink-mute); font-size: 13px; }
.server-create-plan-list { display: grid; gap: 10px; }
.server-create-plan { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.server-create-plan-spec { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.server-create-plan-spec span { color: var(--ink-mute); }
.server-create-plan-price { white-space: nowrap; font-size: 15px; }
.server-create-summary { position: sticky; top: 24px; align-self: start; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 10px 26px rgba(22,20,18,.045); }
.server-create-summary h2 { margin: 0 0 20px; font-size: 20px; }
.server-create-summary-row, .server-create-summary-total { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; }
.server-create-summary-row span { color: var(--ink-mute); }
.server-create-summary-row strong { text-align: right; font-weight: 600; }
.server-create-summary-total { margin-top: 12px; padding: 17px 0 0; border-top: 1px solid var(--line); font-size: 16px; }
.server-create-name { display: grid; gap: 8px; margin: 22px 0 15px; font-size: 13px; font-weight: 600; }
.server-create-name .input { width: 100%; box-sizing: border-box; }
.server-create-submit { width: 100%; justify-content: center; }
.server-create-loading { min-height: 150px; color: var(--ink-mute); }
.server-create-confirm { display: grid; gap: 12px; padding: 6px 0; }
.server-create-confirm p { margin: 0; }
.server-create-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 1100px) { .server-create-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; } .server-create-region-grid, .server-create-os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .server-create-layout { grid-template-columns: 1fr; } .server-create-summary { position: static; max-height: none; overflow: visible; order: -1; } }
@media (max-width: 640px) { .server-create-view .server-title { font-size: 25px; margin: 16px 0 26px; } .server-create-region-grid, .server-create-os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .server-create-region, .server-create-os { min-height: 125px; } .server-create-plan { align-items: flex-start; flex-direction: column; } }
:root[data-theme="dark"] .server-create-region, :root[data-theme="dark"] .server-create-os,
:root[data-theme="dark"] .server-create-region.selected, :root[data-theme="dark"] .server-create-os.selected { background: #1c1c20; }

/* Server details */
.server-detail-view { max-width: 1500px; margin: 0 auto; }
.server-detail-back { display: inline-flex; align-items: center; padding: 0; margin: 0 0 25px; border: 0; background: none; color: var(--ink-mute); font: inherit; font-size: 14px; cursor: pointer; }
.server-detail-back:hover { color: var(--ink); }
.server-detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.server-detail-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.server-detail-identity .server-card-icon { flex: none; width: 60px; height: 60px; }
.server-detail-identity h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
.server-detail-sub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink-mute); font-size: 13px; }
.server-detail-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-weight: 600; }
.server-detail-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #a7a5a2; }
.server-detail-status.online::before { background: #16bf64; }
.server-detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.server-detail-action, .server-detail-actions .card-action-menu > summary { display: inline-grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; list-style: none; }
.server-detail-action:hover, .server-detail-actions .card-action-menu > summary:hover { background: var(--surface-alt, #f7f6f4); }
.server-detail-action:disabled { opacity: .4; cursor: default; }
.server-detail-actions .card-action-menu > summary { font-size: 0; }
.server-detail-actions .card-action-menu > summary::-webkit-details-marker { display: none; }
.server-detail-tabs { display: flex; align-items: stretch; gap: 27px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.server-detail-tabs button { position: relative; flex: none; padding: 0 0 17px; border: 0; background: none; color: var(--ink-mute); font: inherit; font-size: 15px; cursor: pointer; }
.server-detail-tabs button.selected { color: var(--ink); font-weight: 600; }
.server-detail-tabs button.selected::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.server-detail-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.server-detail-chart-head h2 { margin: 0; font-size: 22px; }
.server-detail-period { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.server-detail-dashboard { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); gap: 16px; }
.server-detail-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.server-detail-panel h2, .server-detail-panel h3 { margin: 0 0 20px; font-size: 17px; font-weight: 600; }
.server-detail-panel h3 span { color: var(--ink-mute); font-weight: 400; }
.server-detail-chart { min-height: 325px; }
.server-detail-chart svg { display: block; width: 100%; height: 238px; }
.server-detail-empty { display: grid; place-items: center; min-height: 220px; color: var(--ink-mute); font-size: 13px; text-align: center; }
.server-detail-disk { display: flex; flex-direction: column; align-items: stretch; }
.server-detail-donut { display: grid; place-items: center; width: 160px; height: 160px; margin: 10px auto 24px; border-radius: 50%; }
.server-detail-donut > span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 126px; height: 126px; border-radius: 50%; background: var(--surface); }
.server-detail-donut strong { font-size: 31px; line-height: 1.1; }
.server-detail-donut small, .server-detail-disk-values small { display: block; color: var(--ink-mute); font-size: 12px; font-weight: 400; }
.server-detail-disk-values { display: flex; justify-content: space-around; gap: 10px; text-align: center; font-size: 14px; font-weight: 600; }
.server-detail-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.server-detail-row:last-child { border-bottom: 0; }
.server-detail-row > span:first-child { flex: 1; color: var(--ink-mute); }
.server-detail-row strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.server-detail-row .server-detail-action { width: 29px; height: 29px; border: 0; }
.server-detail-note, .server-detail-updated { margin: 16px 0 0; color: var(--ink-mute); font-size: 12px; }
.server-detail-management { display: grid; gap: 0; }
.server-detail-management button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.server-detail-management button:hover { color: var(--orange); }
.server-detail-management button:last-child { border-bottom: 0; }
@media (max-width: 950px) { .server-detail-dashboard { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .server-detail-hero { align-items: flex-start; flex-direction: column; } .server-detail-identity h1 { font-size: 24px; } .server-detail-actions { width: 100%; } .server-detail-panel { padding: 18px; } }
.server-detail-config-actions-title { margin-top: 25px !important; }
.server-detail-traffic-charts { position: relative; }
.server-detail-traffic-charts > svg:nth-child(2) { position: absolute; inset: 0; }
.server-detail-legend { display: flex; gap: 16px; color: var(--ink-mute); font-size: 12px; }
.server-detail-legend span:first-child { color: #b77ac2; }
.server-detail-legend span:last-child { color: #7aaa56; }
.deploy-form-fields .dep-picker > summary { height: 49px; box-sizing: border-box; padding: 4px 14px; }
.deploy-form-fields #depPort { height: 51px; min-height: 51px; }
.deploy-form-fields .dep-picker-current { gap: 8px; }
.deploy-form-fields .dep-picker-current small { font-size: 11px; }
#depPort::-webkit-outer-spin-button, #depPort::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#depPort { appearance: textfield; -moz-appearance: textfield; }

.server-detail-action[data-tip], .server-detail-actions .card-action-menu > summary[data-tip] { position: relative; }
.server-detail-action[data-tip]:hover::after, .server-detail-action[data-tip]:focus-visible::after, .server-detail-actions .card-action-menu > summary[data-tip]:hover::after, .server-detail-actions .card-action-menu > summary[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 40; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.1); font: 500 12px var(--font-body); white-space: nowrap; pointer-events: none; }

/* ========================================================================
   Telegram authorization — dedicated, responsive login experience
   ======================================================================== */
.dashboard-page .dash.auth { grid-template-columns: minmax(0, 1fr); }
.dashboard-page .dash.auth .main { min-width: 0; min-height: 100vh; padding: 0; background: #fff; }
.auth-shell { display: grid; grid-template-columns: minmax(360px, .94fr) minmax(440px, 1.06fr); min-height: 100vh; }
.auth-showcase { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(32px, 5vw, 68px); color: #fff; background: #19151a; isolation: isolate; }
.auth-showcase::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 110% 75% at 0% 105%, #ff5f18 0%, #e33b15 23%, transparent 63%), radial-gradient(ellipse 92% 68% at 105% 0%, #bd2563 0%, transparent 66%), linear-gradient(142deg, #1b1115 3%, #24171b 52%, #211619); }
.auth-showcase::after { content: ''; position: absolute; z-index: -1; top: 0; right: -18%; width: 75%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 49% 51% 63% 37% / 40% 43% 57% 60%; transform: rotate(17deg); }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; font: 700 24px/1 var(--font-display); letter-spacing: -.04em; }
.auth-logo { width: 38px; height: 38px; background: transparent; border: 0; }
.auth-logo img { width: 38px; height: 38px; }
.auth-showcase-copy { max-width: 510px; margin: auto 0; padding: 80px 0 56px; }
.auth-kicker { display: inline-flex; align-items: center; min-height: 29px; padding: 0 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.11); font-size: 12px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.auth-showcase h1 { max-width: 550px; margin: 18px 0 18px; color: #fff; font-size: clamp(40px, 4vw, 64px); line-height: .99; letter-spacing: -.055em; overflow-wrap: anywhere; }
.auth-showcase-copy > p { max-width: 420px; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.52; }
.auth-benefits { display: grid; gap: 12px; margin-top: 34px; }
.auth-benefits > div { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.94); font-size: 14px; font-weight: 600; }
.auth-benefits svg { color: #ffca83; }
.auth-orb { position: absolute; z-index: -1; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.auth-orb-one { right: 14%; bottom: -100px; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.15); background: radial-gradient(circle at 32% 30%, rgba(255,193,114,.48), rgba(255,91,17,.12) 45%, transparent 70%); }
.auth-orb-two { top: 24%; right: -48px; width: 115px; height: 115px; border: 1px solid rgba(255,255,255,.18); }
.auth-panel-wrap { display: grid; align-items: center; justify-items: center; padding: 40px; background: #fff; }
.auth-panel { width: min(100%, 480px); }
.auth-mobile-brand { display: none; align-items: center; justify-content: center; gap: 9px; margin-bottom: 42px; font: 700 23px/1 var(--font-display); letter-spacing: -.04em; }
.auth-mobile-brand .logo { width: 33px; height: 33px; }
.auth-step { display: inline-flex; align-items: center; gap: 7px; color: #807670; font-size: 13px; font-weight: 700; }
.auth-step > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff0e7; color: #ea5d13; font-size: 12px; }
.auth-panel h2 { margin: 16px 0 10px; font-size: clamp(34px, 3vw, 46px); letter-spacing: -.052em; }
.auth-lead { max-width: 420px; color: #6f665f; font-size: 16px; line-height: 1.55; }
.auth-telegram-btn { width: 100%; justify-content: center; margin-top: 30px; padding: 17px 24px; box-shadow: 0 18px 38px -17px rgba(242,87,10,.65); }
.auth-telegram-btn:hover { box-shadow: 0 22px 42px -17px rgba(242,87,10,.8); }
.auth-btn-arrow { margin-left: auto; font-size: 20px; line-height: 1; transition: transform .16s ease; }
.auth-telegram-btn:hover .auth-btn-arrow { transform: translateX(3px); }
.auth-code-box { margin-top: 17px; padding: 16px 18px; border: 1px solid #eee8e2; border-radius: 16px; background: #faf8f6; }
.auth-code-caption { display: flex; align-items: center; gap: 8px; color: #7b716a; font-size: 12px; font-weight: 600; }
.auth-code-caption svg { color: #ec631c; }
.auth-code { display: block; margin-top: 8px; color: #e9560c; font: 700 30px/1 var(--font-mono); letter-spacing: .2em; }
.auth-wait { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: #8a8179; font-size: 13px; font-weight: 600; }
.auth-wait-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff7a28; box-shadow: 0 0 0 0 rgba(255,106,26,.45); animation: auth-pulse 1.8s ease-out infinite; }
@keyframes auth-pulse { 65% { box-shadow: 0 0 0 8px rgba(255,106,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,26,0); } }
.auth-note { max-width: 425px; margin-top: 33px; padding-top: 18px; border-top: 1px solid #eee9e4; color: #a19891; font-size: 12px; line-height: 1.55; }
:root[data-theme="dark"] .dashboard-page .dash.auth .main, :root[data-theme="dark"] .auth-panel-wrap { background: #101012; }
:root[data-theme="dark"] .auth-code-box { background: #1a1a1e; border-color: #2c2c32; }
:root[data-theme="dark"] .auth-step { color: #a9a4a1; }
:root[data-theme="dark"] .auth-step > span { background: rgba(255,106,26,.17); }
:root[data-theme="dark"] .auth-lead { color: #aaa4a0; }
:root[data-theme="dark"] .auth-note { border-color: #2d2d32; color: #85818a; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-showcase { min-height: 335px; padding: 32px clamp(24px, 6vw, 54px); }
  .auth-showcase-copy { margin: 50px 0 0; padding: 0; }
  .auth-showcase h1 { max-width: 620px; font-size: clamp(34px, 7vw, 54px); }
  .auth-showcase-copy > p, .auth-benefits { display: none; }
  .auth-panel-wrap { align-items: start; padding: 50px max(24px, 8vw) 62px; }
}
@media (max-width: 560px) {
  .auth-showcase { display: none; }
  .auth-shell { min-height: 100svh; }
  .auth-panel-wrap { min-height: 100svh; padding: 34px 22px; }
  .auth-mobile-brand { display: flex; }
  .auth-panel h2 { font-size: 36px; }
  .auth-lead { font-size: 15px; }
  .auth-telegram-btn { margin-top: 26px; font-size: 15px; }
  .auth-code { font-size: 26px; }
}
