/* VeriList design system — independent brand, no third-party marks. */
:root {
  --ink: #0b1220;
  --ink-2: #1b2942;
  --muted: #5b6b84;
  --line: #e3e9f2;
  --line-strong: #cdd8e8;
  --bg: #f6f8fc;
  --card: #ffffff;
  --brand: #2f5bea;
  --brand-dark: #1e42bd;
  --brand-soft: #e8eefe;
  --mint: #0f9d6e;
  --mint-soft: #e3f7ee;
  --amber: #b45309;
  --amber-soft: #fdf3e2;
  --red: #b42318;
  --red-soft: #fdecea;
  --violet: #6d3bd4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -12px rgba(16, 24, 40, .18);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
::selection { background: #cfd9ff; }
:focus-visible { outline: 3px solid #8aa4ff; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt1 { margin-top: .75rem; } .mt2 { margin-top: 1.5rem; } .mt3 { margin-top: 2.5rem; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2f5bea, #7b3fe4); color: #fff; box-shadow: 0 4px 10px -2px rgba(47, 91, 234, .5);
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-size: .93rem; font-weight: 550; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 18px;
  font: inherit; font-weight: 650; font-size: .92rem; line-height: 1.2;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(47, 91, 234, .55); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: #aebdd4; }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-white { background: #fff; color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #911b12; }
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(105, 71, 255, .55), transparent 65%),
    radial-gradient(700px 380px at 8% 108%, rgba(12, 155, 190, .35), transparent 60%),
    linear-gradient(160deg, #08101f 0%, #0d1a33 55%, #111f3d 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(600px 300px at 60% 20%, #000, transparent 80%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 0 92px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(92deg, #9db4ff, #6fe3c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #c3cfe4; font-size: 1.12rem; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: #93a4c0; font-size: .84rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: #6fe3c8; }

.upload-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 20px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.upload-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.upload-card-head strong { color: #fff; font-size: .92rem; }
.dot-row { display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.dot.on { background: #6fe3c8; }
.dropzone {
  border: 1.5px dashed rgba(255,255,255,.3); border-radius: 12px; padding: 26px 18px;
  text-align: center; color: #b9c7e0; background: rgba(7, 14, 28, .35);
}
.dropzone svg { width: 30px; height: 30px; color: #9db4ff; margin-bottom: 8px; }
.mini-results { margin-top: 14px; display: grid; gap: 8px; }
.mini-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: .82rem; color: #cbd6e8; }
.mini-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 999px; }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip .container { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 0; color: var(--muted); font-size: .85rem; }
.trust-strip strong { color: var(--ink-2); }

/* ---------- Cards & features ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-pad-lg { padding: 32px; }
.card h3 { margin-bottom: 8px; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature p { color: var(--muted); margin-bottom: 0; font-size: .93rem; }

.step { position: relative; padding-top: 8px; }
.step-num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: .93rem; }

.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.class-card { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: #fff; }
.class-card.live { border-top: 4px solid var(--mint); }
.class-card.dead { border-top: 4px solid var(--red); }
.class-card.unknown { border-top: 4px solid var(--amber); }
.class-card h3 { display: flex; align-items: center; gap: 9px; font-size: 1rem; }
.class-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.pill-live { background: var(--mint-soft); color: var(--mint); }
.pill-dead { background: var(--red-soft); color: var(--red); }
.pill-unknown { background: var(--amber-soft); color: var(--amber); }
.pill-neutral { background: #eef2f8; color: var(--muted); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.pill-warn { background: var(--amber-soft); color: var(--amber); }

.note { border: 1px solid var(--line); background: #fff; border-left: 4px solid var(--brand); border-radius: 10px; padding: 16px 18px; color: var(--ink-2); font-size: .92rem; }
.note.warn { border-left-color: var(--amber); background: #fffcf5; }
.note.danger { border-left-color: var(--red); background: #fff8f7; }
.note.success { border-left-color: var(--mint); background: #f7fdfa; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; background: #eef2fa; padding: 4px; border-radius: 10px; gap: 4px; }
.billing-toggle button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 7px; font: inherit;
  font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.billing-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.billing-toggle .save { color: var(--mint); font-size: .72rem; font-weight: 700; margin-left: 4px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 18px 44px -22px rgba(47, 91, 234, .55); }
.price-tag { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.price-desc { color: var(--muted); font-size: .87rem; min-height: 42px; margin-bottom: 16px; }
.price-amount { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 2px; }
.price-amount .value { font-size: 2.35rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.price-amount .period { color: var(--muted); font-size: .85rem; padding-bottom: 5px; }
.price-sub { color: var(--muted); font-size: .8rem; min-height: 20px; margin-bottom: 18px; }
.price-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: .89rem; }
.price-list li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); }
.price-list svg { width: 16px; height: 16px; color: var(--mint); flex: 0 0 auto; margin-top: 3px; }
.price-card .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { background: #f0f4fb; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare td.center, .compare th.center { text-align: center; }

/* ---------- Forms & auth ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 44px 20px 64px; background: radial-gradient(700px 360px at 50% -10%, #e6edff, transparent 70%), var(--bg); }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-card.wide { width: min(520px, 100%); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .lead { font-size: .93rem; margin-bottom: 22px; }
.auth-foot { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff;
  padding: 10px 12px; font: inherit; font-size: .93rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 91, 234, .14); }
.textarea { min-height: 150px; resize: vertical; font-family: var(--mono); font-size: .85rem; }
.input-row { display: flex; gap: 10px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }
.check input { margin-top: 4px; }
.form-error { background: var(--red-soft); color: var(--red); border-radius: 8px; padding: 10px 12px; font-size: .86rem; margin-bottom: 14px; }
.form-error:empty { display: none; }
.form-ok { background: var(--mint-soft); color: #0b6b4a; border-radius: 8px; padding: 10px 12px; font-size: .86rem; margin-bottom: 14px; }
.form-ok:empty { display: none; }
.password-meter { height: 5px; background: var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.password-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }

/* ---------- Dashboard ---------- */
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.side { background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.side-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.side a, .side button.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  color: var(--ink-2); font-size: .9rem; font-weight: 550; border: 0; background: none; width: 100%;
  cursor: pointer; font-family: inherit; text-align: left;
}
.side a:hover, .side button.side-link:hover { background: #f2f5fb; text-decoration: none; }
.side a.active, .side button.side-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.side svg { width: 17px; height: 17px; }
.side-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.main { padding: 28px 32px 64px; min-width: 0; }
.main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.main-head h1 { font-size: 1.6rem; margin-bottom: 4px; }
.main-head p { margin: 0; color: var(--muted); font-size: .92rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kpi .label { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.kpi .value { font-size: 1.65rem; font-weight: 750; letter-spacing: -.02em; margin: 4px 0 2px; }
.kpi .sub { font-size: .78rem; color: var(--muted); }
.usage-bar { height: 8px; background: #eef2f8; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.usage-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.usage-bar i.warn { background: var(--amber); }
.usage-bar i.full { background: var(--red); }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { text-align: left; background: #f7f9fd; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fbfcff; }
.table-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-tools .input, .table-tools .select { max-width: 260px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: #b8c4d8; margin-bottom: 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); gap: 10px; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 11px 14px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs button:hover { color: var(--ink); }

.drop-file {
  border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 34px 20px; text-align: center;
  background: #fbfcff; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop-file:hover, .drop-file.drag { border-color: var(--brand); background: var(--brand-soft); }
.drop-file svg { width: 34px; height: 34px; color: var(--brand); margin-bottom: 8px; }
.drop-file strong { display: block; font-size: .95rem; }
.drop-file span { font-size: .82rem; color: var(--muted); }
.sample-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.scan-status { display: inline-flex; align-items: center; gap: 7px; }
.spinner { width: 14px; height: 14px; border: 2px solid #c9d6f5; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 10px; background: #edf1f8; border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #2f5bea, #6f8cff); border-radius: 999px; transition: width .4s; }
.counter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.counter { padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.counter .n { font-size: 1.3rem; font-weight: 750; }
.counter .l { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dl-card { display: flex; gap: 10px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.dl-card:hover { border-color: var(--brand); text-decoration: none; background: #fbfcff; }
.dl-card svg { width: 18px; height: 18px; color: var(--brand); }
.dl-card small { display: block; color: var(--muted); font-size: .74rem; }
.dl-card.disabled { opacity: .5; pointer-events: none; }

.plan-banner { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, #0d1a33, #22376a); color: #fff; border-radius: 14px; padding: 24px; }
.plan-banner h2 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.plan-banner .muted { color: #a9b8d6; }
.plan-banner .bar { background: rgba(255,255,255,.16); }
.plan-banner .bar i { background: #6fe3c8; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.admin-shell .side { background: #0d1729; border-right: 0; }
.admin-shell .side a, .admin-shell .side button.side-link { color: #aebbd3; }
.admin-shell .side a:hover, .admin-shell .side button.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-shell .side a.active, .admin-shell .side button.side-link.active { background: rgba(94, 130, 255, .18); color: #b9c9ff; }
.admin-shell .side-label { color: #64748b; }
.admin-shell .side-foot { border-color: rgba(255,255,255,.08); color: #7c8aa5; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eef2f8; color: var(--muted); }
.badge.live { background: var(--mint-soft); color: var(--mint); }
.badge.dead { background: var(--red-soft); color: var(--red); }
.badge.unknown { background: var(--amber-soft); color: var(--amber); }
.badge.danger { background: var(--red-soft); color: var(--red); }
.badge.ok { background: var(--mint-soft); color: var(--mint); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 15, 30, .55); display: grid; place-items: center; padding: 20px; z-index: 100; }
.modal { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: 88vh; overflow: auto; padding: 26px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal h2 { font-size: 1.2rem; }
.modal.modal-wide { width: min(980px, 100%); }
.modal .table-scroll { max-height: 56vh; overflow: auto; }
.modal .table-scroll thead th { position: sticky; top: 0; background: #fff; z-index: 1; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast { background: #101d33; color: #fff; border-radius: 10px; padding: 12px 14px; font-size: .88rem; box-shadow: var(--shadow); border-left: 3px solid #6f8cff; animation: slide .2s ease-out; }
.toast.success { border-left-color: #2ed3a0; }
.toast.error { border-left-color: #ff6b5e; }
@keyframes slide { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Footer ---------- */
.site-footer { background: #08111f; color: #9fb0ca; padding: 54px 0 28px; }
.site-footer a { color: #c9d6ea; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { max-width: 320px; font-size: .87rem; }
.footer-links { display: grid; gap: 8px; font-size: .87rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .8rem; }
.footer-bottom .brand { color: #fff; font-size: 1rem; }

/* ---------- Legal ---------- */
.legal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 34px; }
.legal h3 { font-size: 1.02rem; margin-top: 22px; }
.legal p, .legal li { color: #34425c; font-size: .94rem; }
.legal .meta { color: var(--muted); font-size: .84rem; }

/* ---------- Utilities / responsive ---------- */
.hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.split { display: grid; grid-template-columns: 1.4fr .9fr; gap: 22px; align-items: start; }
.stat-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.stat-line:last-child { border-bottom: 0; }
.stat-line strong { color: var(--ink); }
.code-box { background: #0d1729; color: #d7e3f8; padding: 14px 16px; border-radius: 10px; font-family: var(--mono); font-size: .8rem; overflow-x: auto; }
.kbd { font-family: var(--mono); font-size: .8em; background: #eef2f8; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding: 60px 0 68px; }
  .hero p { max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .app-shell, .admin-shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; gap: 2px; }
  .side a, .side button.side-link { white-space: nowrap; width: auto; }
  .side-label, .side-foot { display: none; }
  .main { padding: 22px 18px 54px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .class-grid, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 20px; border-bottom: 1px solid var(--line); gap: 4px; }
  .nav-links.open a { padding: 10px 4px; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .grid-2, .grid-3, .grid-4, .counter-row, .dl-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal { padding: 24px; }
  .section { padding: 52px 0; }
  .table-tools { flex-direction: column; align-items: stretch; }
  .table-tools .input, .table-tools .select { max-width: none; }
}
