/* ============================================================
   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;
}

* { 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: 11px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--amber), var(--orange) 50%, var(--ember));
  display: grid; place-items: center; box-shadow: var(--shadow-orange);
}
.brand .logo svg { width: 20px; height: 20px; }
.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; }

/* ---------- 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); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.dom-search input:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.zone { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.zone:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow-sm); }
.zone .tld { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }
.zone .p { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.zone .p b { color: var(--orange-700); font-size: 15px; font-family: var(--font-mono); }

/* ---------- 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: 14px; border-radius: 14px; background: linear-gradient(135deg,#18130F,#3a1d0d); color: #fff; }
.side .side-foot .lbl { font-size: 12px; color: rgba(255,255,255,.6); }
.side .side-foot .val { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 2px 0 12px; }

.main { padding: 28px 34px 60px; }
.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; 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; }

@media (max-width: 880px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 12px; }
  .side .brand { display: none; }
  .side nav { grid-auto-flow: column; gap: 6px; }
  .side .side-foot { display: none; }
  .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); }
.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; }
.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; box-shadow: 0 40px 100px -30px rgba(26,23,20,.5); animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
.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-green { background: var(--green-soft); color: var(--green); }
.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: #FFF6EF; }
.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: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 11px; background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 13px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; animation: slidein .3s cubic-bezier(.2,.9,.3,1.2); }
.toast.ok { background: linear-gradient(135deg,#147a52,#1BA672); }
.toast svg { width: 18px; height: 18px; }
@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: 10px; flex-wrap: wrap; }
.legend span { font-size: 12.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; }
.legend span i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.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(30px, 9vw, 42px); }
}

/* ===== 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; }
}
