/* ===========================================================
   NimbusHost — design system
   Display: Space Grotesk · Body: Inter · Mono: JetBrains Mono
   =========================================================== */

:root {
  --ink: #080C16;
  --bg: #0B1020;
  --bg-2: #0E1426;
  --panel: #131B30;
  --panel-2: #18233E;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --primary: #3B6BFF;
  --primary-2: #5B8CFF;
  --cyan: #28D7E9;
  --mint: #37E0A0;
  --amber: #FFB454;
  --rose: #FF6B81;

  --text: #EAF0FB;
  --muted: #93A1BE;
  --muted-2: #6B7894;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(91, 140, 255, 0.4), 0 18px 50px -12px rgba(59, 107, 255, 0.5);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(59, 107, 255, 0.22), transparent 60%),
    radial-gradient(700px 480px at 8% 6%, rgba(40, 215, 233, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--ink));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.5;
}

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

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

.mono { font-family: var(--font-mono); }
.accent { color: var(--cyan); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: #fff; box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary-2); background: rgba(91,140,255,.1); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: conic-gradient(from 200deg, var(--cyan), var(--primary-2), var(--primary), var(--cyan));
  position: relative; box-shadow: 0 6px 18px -6px rgba(59,107,255,.8);
}
.brand .mark::after {
  content: ""; position: absolute; inset: 7px;
  border-radius: 4px; background: var(--bg);
}
.brand small { color: var(--muted); font-weight: 400; font-family: var(--font-mono); font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a.link:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 78px 0 40px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--cyan); padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(40,215,233,.06); margin-bottom: 22px;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(55,224,160,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(55,224,160,0); } 100% { box-shadow: 0 0 0 0 rgba(55,224,160,0); } }

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -.025em; font-weight: 600;
  max-width: 16ch;
}
h1.hero-title .grad {
  background: linear-gradient(100deg, var(--cyan), var(--primary-2) 60%, var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 52ch; margin: 22px 0 30px; }

/* domain search — the signature element */
.domain-search {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 10px; max-width: 640px;
  box-shadow: var(--shadow);
}
.ds-row { display: flex; gap: 8px; }
.ds-row .prefix { display: flex; align-items: center; padding-left: 14px; color: var(--muted-2); font-family: var(--font-mono); font-size: 14px; }
.domain-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 16px; font-family: var(--font-mono); padding: 14px 6px;
}
.domain-search input::placeholder { color: var(--muted-2); }
.tld-row { display: flex; gap: 7px; flex-wrap: wrap; padding: 12px 6px 4px; }
.tld { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; transition: .2s; }
.tld:hover, .tld.on { color: var(--text); border-color: var(--primary-2); background: rgba(91,140,255,.1); }

#ds-result { margin-top: 14px; min-height: 0; }
.ds-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  margin-top: 8px; animation: rise .35s ease both;
}
.ds-card.ok { border-color: rgba(55,224,160,.4); background: rgba(55,224,160,.06); }
.ds-card.no { border-color: rgba(255,107,129,.35); background: rgba(255,107,129,.05); opacity: .8; }
.ds-name { font-family: var(--font-mono); font-size: 15px; }
.ds-meta { font-size: 13px; color: var(--muted); }
.tag { font-size: 11px; font-family: var(--font-mono); padding: 3px 9px; border-radius: 100px; }
.tag.free { background: rgba(55,224,160,.14); color: var(--mint); }
.tag.taken { background: rgba(255,107,129,.14); color: var(--rose); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.stat .l { color: var(--muted); font-size: 13px; }

/* ---------- section frame ---------- */
section.block { padding: 70px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.sec-head .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; margin: 12px 0 10px; font-weight: 600; }
.sec-head p { color: var(--muted); }

/* ---------- plans ---------- */
.plan-toggle { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 100px; padding: 4px; }
.seg button { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: 100px; cursor: pointer; font-family: var(--font-body); transition: .2s; }
.seg button.on { background: var(--primary); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-5px); border-color: var(--line-2); }
.plan.featured { border-color: var(--primary-2); box-shadow: var(--glow); }
.plan .badge { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; color: var(--bg); background: var(--cyan); padding: 4px 10px; border-radius: 100px; margin-bottom: 14px; font-weight: 700; }
.plan h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.plan .tagline { color: var(--muted); font-size: 13.5px; min-height: 38px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.price .cur { color: var(--muted); font-size: 16px; }
.price .amt { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -.02em; }
.price .per { color: var(--muted); font-size: 13px; }
.price .was { color: var(--muted-2); text-decoration: line-through; font-size: 14px; margin-left: 4px; }
.plan ul { list-style: none; margin: 18px 0 22px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text); align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--mint); }
.plan li.off { color: var(--muted-2); }
.plan li.off svg { color: var(--muted-2); }
.plan .btn { margin-top: auto; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(59,107,255,.12); color: var(--primary-2); margin-bottom: 16px; }
.feat h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14px; }

/* ---------- uptime ribbon (signature 2) ---------- */
.uptime {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.uptime h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.uptime p { color: var(--muted); font-size: 14px; max-width: 46ch; }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 56px; }
.bars span { width: 7px; border-radius: 3px; background: var(--mint); opacity: .85; }
.bars span.warn { background: var(--amber); }
.uptime .pct { font-family: var(--font-mono); font-size: 13px; color: var(--mint); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.qa { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qa summary { cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { color: var(--primary-2); font-family: var(--font-mono); transition: transform .2s; }
.qa[open] summary .pm { transform: rotate(45deg); }
.qa .a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(110deg, rgba(59,107,255,.16), rgba(40,215,233,.1));
  border: 1px solid var(--line-2); border-radius: 24px;
  padding: 48px; text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -.02em; }
.cta-band p { color: var(--muted); margin: 12px auto 26px; max-width: 50ch; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 54px 0 34px; margin-top: 70px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-grid p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 10px; }
.foot-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber); }

/* ===========================================================
   Auth / Checkout (signup.html)
   =========================================================== */
.shell { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; max-width: 980px; width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.checkout .form-side { padding: 38px 40px; }
.checkout .order-side { padding: 38px 34px; background: linear-gradient(180deg, var(--panel-2), var(--bg-2)); border-left: 1px solid var(--line); }
.checkout h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.checkout .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.steps .s { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); }
.steps .s.on { background: var(--primary); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 13px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(59,107,255,.18); }
.field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; font-family: var(--font-mono); }
.err { color: var(--rose); font-size: 12px; margin-top: 6px; min-height: 14px; }

.order-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.order-line.total { border: 0; font-size: 18px; font-weight: 700; padding-top: 16px; }
.order-line .muted { color: var(--muted); }
.plan-pick { display: grid; gap: 8px; margin: 18px 0; }
.plan-opt { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: .2s; }
.plan-opt.on { border-color: var(--primary-2); background: rgba(59,107,255,.1); }
.plan-opt .pn { font-weight: 600; font-size: 14px; }
.plan-opt .pp { font-family: var(--font-mono); font-size: 14px; }
.sim-note { font-size: 12px; color: var(--amber); font-family: var(--font-mono); margin-top: 18px; text-align: center; }
.back-home { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; margin-bottom: 22px; }
.back-home:hover { color: var(--text); }

/* ===========================================================
   Dashboard (dashboard.html)
   =========================================================== */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { margin: 6px 8px 26px; }
.side nav { display: grid; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: .15s; }
.side nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side nav a.on { background: rgba(59,107,255,.14); color: var(--text); }
.side nav a svg { flex: none; }
.side .sgroup { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 20px 12px 8px; }

.main { padding: 26px 32px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.dash-top h1 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.dash-top .who { color: var(--muted); font-size: 14px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line-2); }
.chip.ok { color: var(--mint); border-color: rgba(55,224,160,.4); background: rgba(55,224,160,.07); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi .l { color: var(--muted); font-size: 13px; }
.kpi .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 6px 0 8px; }
.meter { height: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--primary)); }

.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: .2s; }
.tool:hover { border-color: var(--primary-2); background: rgba(59,107,255,.07); transform: translateY(-2px); }
.tool .ti { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(40,215,233,.12); color: var(--cyan); }
.tool .tn { font-size: 13.5px; font-weight: 600; }
.tool .td { font-size: 12px; color: var(--muted); }

table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.tbl tr:last-child td { border-bottom: 0; }
.pill { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 100px; }
.pill.active { background: rgba(55,224,160,.14); color: var(--mint); }
.pill.pending { background: rgba(255,180,84,.14); color: var(--amber); }

.empty-auth { text-align: center; max-width: 420px; margin: 12vh auto; }
.empty-auth h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 10px; }
.empty-auth p { color: var(--muted); margin-bottom: 22px; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); padding: 13px 20px; border-radius: 100px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 99; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .checkout .order-side { border-left: 0; border-top: 1px solid var(--line); }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: none; }
  .kpis, .tools { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 14px; }
  .plans { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .uptime { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 6px; }

/* ===========================================================
   Auth card (login) + Admin panel
   =========================================================== */
.auth-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 34px 32px; box-shadow: var(--shadow); }
.auth-card h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-foot { color: var(--muted); font-size: 13.5px; margin-top: 18px; text-align: center; }
.auth-foot a { color: var(--primary-2); }

/* admin top bar */
.admin-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.search-box { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; }
.search-box input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 14.5px; font-family: var(--font-body); }
.search-box svg { color: var(--muted-2); flex: none; }
.filter-seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.filter-seg button { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 100px; cursor: pointer; font-family: var(--font-body); }
.filter-seg button.on { background: var(--primary); color: #fff; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.ibtn { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; font-family: var(--font-body); transition: .15s; white-space: nowrap; }
.ibtn:hover { border-color: var(--primary-2); background: rgba(91,140,255,.1); }
.ibtn.warn:hover { border-color: var(--amber); background: rgba(255,180,84,.12); color: var(--amber); }
.ibtn.danger:hover { border-color: var(--rose); background: rgba(255,107,129,.12); color: var(--rose); }
.inline-select { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 6px 8px; font-size: 13px; font-family: var(--font-body); cursor: pointer; }

.admin-table-wrap { overflow-x: auto; }
.admin-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(4,7,14,.72); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 90; padding: 20px; }
.modal-bg.show { display: grid; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.modal h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.codeline { font-family: var(--font-mono); font-size: 15px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; color: var(--cyan); word-break: break-all; margin-top: 10px; }

/* ===========================================================
   Control panels (customer + admin) — v2
   =========================================================== */
.brand .logo-img { height: 30px; width: auto; max-width: 160px; object-fit: contain; border-radius: 6px; }
.view { display: none; } .view.on { display: block; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { font-family: var(--font-mono); font-size: 13px; word-break: break-all; }
.pill.suspended, .pill.down, .pill.failed, .pill.inactive { background: rgba(255,107,129,.14); color: var(--rose); }
.pill.info { background: rgba(40,215,233,.12); color: var(--cyan); }
.pill.muted { background: rgba(255,255,255,.06); color: var(--muted); }
.svc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc .name { font-family: var(--font-mono); font-size: 13.5px; min-width: 150px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); flex: none; }
.dot.active { background: var(--mint); box-shadow: 0 0 10px rgba(55,224,160,.6); }
.dot.failed, .dot.inactive { background: var(--rose); }
.logbox { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: var(--muted); }
.modal.wide { max-width: 720px; }
.modal-body-scroll { max-height: 62vh; overflow: auto; }
.field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 12px 14px; font-family: var(--font-body); font-size: 14px; min-height: 80px; resize: vertical; }
.field input[type=checkbox] { width: auto; margin-right: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; margin-bottom: 12px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--font-body); }
.tabs button.on { color: var(--text); border-bottom-color: var(--primary-2); }
.banner { border: 1px solid rgba(255,180,84,.4); background: rgba(255,180,84,.08); color: var(--amber); padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.banner.info { border-color: rgba(40,215,233,.35); background: rgba(40,215,233,.07); color: var(--cyan); }
.banner.bad { border-color: rgba(255,107,129,.4); background: rgba(255,107,129,.08); color: var(--rose); }
.plan-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.plan-edit .panel-card { margin: 0; }
.plan-edit .field { margin-bottom: 10px; }
.plan-edit .field input { padding: 9px 11px; }
.inp { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: var(--font-body); }
.inp.mono { font-family: var(--font-mono); }
.btn[disabled], .ibtn[disabled] { opacity: .55; pointer-events: none; }
.side .imp { margin: 0 8px 16px; font-size: 12px; }
.empty { color: var(--muted); padding: 22px 6px; text-align: center; font-size: 14px; }
.logo-prev { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; margin-bottom: 14px; }
.logo-prev img { height: 40px; max-width: 200px; object-fit: contain; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
  .mobile-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
  .mobile-nav a.on { background: rgba(59,107,255,.14); color: var(--text); }
  .main { padding: 20px 16px; }
  .kv { grid-template-columns: 1fr; }
}
.tbl-wrap { overflow-x: auto; }
