/* ============================================================
   Hive-Net — UI redesign (Linear/Vercel-style minimal)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:           #08090a;
  --bg-elev-1:   #0e0f11;
  --bg-elev-2:   #15171a;
  --bg-input:    #0c0d0f;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-focus:  rgba(245, 184, 0, 0.55);

  /* Text */
  --text:        #ededee;
  --text-muted:  #8a8f98;
  --text-dim:    #5a5f68;

  /* Accent — single warm tone, used sparingly */
  --accent:        #f5b800;
  --accent-hover:  #ffc629;
  --accent-soft:   rgba(245, 184, 0, 0.10);
  --on-accent:     #0a0a0a;

  /* Status (muted, no big background fills) */
  --success:  #46c285;
  --warning:  #e8a13b;
  --danger:   #e5484d;
  --info:     #7aa2f7;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);

  /* Layout */
  --container: 1120px;
  --topbar-h:  56px;
}

/* ---------- Body ---------- */
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--accent-soft); color: var(--accent); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 24px;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.logo-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--accent);
}
.logo-text {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.topbar-nav { display: flex; align-items: center; gap: 6px; }
.topbar-nav .balance-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.topbar-nav .balance-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  font-size: 13px; font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary {
  background: var(--bg-elev-1);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--bg-elev-2); border-color: rgba(255,255,255,0.22); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn--ghost:hover { color: var(--text); background: var(--bg-elev-1); }
.btn--danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(229, 72, 77, 0.35);
}
.btn--danger:hover { background: rgba(229, 72, 77, 0.08); }
.btn--block { width: 100%; }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn--lg { height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Announcements (admin-managed, below topbar) ---------- */
.announcements {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.announcement {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 24px;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-1);
  color: var(--text);
}
.announcement:last-child { border-bottom: 0; }
.announcement::before {
  content: ''; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  margin-top: 7px;
  background: var(--info);
}
.announcement--success::before { background: var(--success); }
.announcement--warning::before { background: var(--warning); }
.announcement--danger::before  { background: var(--danger); }
.announcement__body { flex: 1; min-width: 0; }
.announcement__title { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.announcement__text { color: var(--text-muted); white-space: pre-wrap; word-wrap: break-word; }
.announcement--success .announcement__title { color: var(--success); }
.announcement--warning .announcement__title { color: var(--warning); }
.announcement--danger  .announcement__title { color: var(--danger); }
.announcement__close {
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  padding: 0 4px;
  border-radius: var(--radius-sm);
  background: transparent;
  flex-shrink: 0;
}
.announcement__close:hover { color: var(--text); background: var(--bg-elev-2); }
@media (max-width: 720px) {
  .announcement { padding: 10px 16px; }
}

/* ---------- Messages ---------- */
.messages { display: flex; flex-direction: column; gap: 8px; padding: 16px 24px 0; max-width: var(--container); margin: 0 auto; width: 100%; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  font-size: 13px;
  color: var(--text);
}
.flash::before {
  content: ''; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  margin-top: 7px;
  background: var(--text-muted);
}
.flash--success::before { background: var(--success); }
.flash--error::before, .flash--warning::before { background: var(--danger); }
.flash--info::before { background: var(--info); }

/* ---------- Main / layout ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.page-header {
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.page-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.page-subtitle { color: var(--text-muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* ---------- Hero (catalog landing) ---------- */
.hero {
  text-align: center;
  padding: 48px 16px 36px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--text-muted); font-size: 15px; max-width: 480px; margin: 0 auto; }

/* ---------- Section header ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-link { font-size: 13px; color: var(--text-muted); }
.section-link:hover { color: var(--text); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card + .card { margin-top: 16px; }

/* ---------- Config grid (pricing) ---------- */
.configs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.config {
  display: flex; flex-direction: column;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color .15s, transform .15s;
  position: relative;
}
.config:hover { border-color: var(--border-strong); }
.config--featured { border-color: rgba(245, 184, 0, 0.35); }
.config__badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 500;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid rgba(245, 184, 0, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
}
.config__name {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.config__period {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 18px;
}
.config__specs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 13px; }
.config__spec {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted);
}
.config__spec strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.config__price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: auto;
  margin-bottom: 16px;
}
.config__price .amount {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-mono);
}
.config__price .per {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-label .form-hint { color: var(--text-dim); font-weight: 400; }
.form-input,
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=url],
textarea,
select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
textarea { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; }
.form-input::placeholder,
input::placeholder, textarea::placeholder { color: var(--text-dim); }
.form-input:focus,
input:focus, textarea:focus, select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-errors { list-style: none; margin-top: 6px; padding: 0; }
.form-errors li { color: var(--danger); font-size: 12px; }

.form-submit { margin-top: 20px; }

/* Captcha block */
.captcha {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  height: 38px;
}
.captcha__q { font-family: var(--font-mono); color: var(--text); font-size: 14px; white-space: nowrap; }
.captcha__eq { color: var(--text-dim); }
.captcha input {
  flex: 1; background: transparent; border: 0; padding: 0;
  height: 100%;
  font-family: var(--font-mono);
}
.captcha input:focus { box-shadow: none; }

/* ---------- Auth ---------- */
.auth {
  max-width: 380px;
  margin: 48px auto;
  padding: 28px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.auth h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.auth__sub { color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.auth__alt { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.auth__alt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.auth__alt a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* ---------- Cabinet ---------- */
.cabinet {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.cabinet__side {
  position: sticky; top: calc(var(--topbar-h) + 24px);
  display: flex; flex-direction: column; gap: 10px;
}
.cabinet__profile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  flex-shrink: 0;
}
.cabinet__profile-info { min-width: 0; }
.cabinet__profile-name { font-size: 13px; font-weight: 600; }
.cabinet__profile-email { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cabinet__balance {
  padding: 14px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cabinet__balance-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cabinet__balance-amount {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cabinet__nav {
  display: flex; flex-direction: column;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
}
.cabinet__nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  transition: background-color .12s, color .12s;
}
.cabinet__nav a:hover { background: var(--bg-elev-2); color: var(--text); }
.cabinet__nav a.is-active { background: var(--bg-elev-2); color: var(--text); }
.cabinet__nav svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .8; }

.cabinet__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.section {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.section h2 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }

/* ---------- Status badges (minimal) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge--success { color: var(--success); }
.badge--warning { color: var(--warning); }
.badge--danger  { color: var(--danger); }
.badge--info    { color: var(--info); }
.badge--accent  { color: var(--accent); }

/* status-* aliases used in old templates */
.status-pending   { color: var(--warning); }
.status-checking  { color: var(--info); }
.status-confirmed { color: var(--success); }
.status-cancelled { color: var(--danger); }
.status-failed    { color: var(--danger); }

/* ---------- Inline kv rows (payment details, instructions) ---------- */
.kv {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.kv__row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.kv__key { color: var(--text-muted); }
.kv__val { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); word-break: break-all; text-align: right; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.copy-btn.is-ok { color: var(--success); border-color: rgba(70, 194, 133, 0.35); }

/* ---------- Tables (payment history etc.) ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-elev-1);
}
.table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,0.015); }
.table .mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ---------- Method picker (payment) ---------- */
.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.method {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.method input[type=radio] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.method.is-selected,
.method:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.method__name { font-size: 13px; font-weight: 600; color: var(--text); }
.method__desc { font-size: 12px; color: var(--text-muted); }

/* ---------- Empty state ---------- */
.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Service alert (issues banner) ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  margin-bottom: 12px;
  font-size: 13px;
}
.alert::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  margin-top: 7px; flex-shrink: 0;
  background: var(--warning);
}
.alert--down::before { background: var(--danger); }
.alert__title { font-weight: 600; margin-bottom: 2px; }
.alert__text { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }

/* ---------- Referral block ---------- */
.ref { display: flex; flex-direction: column; gap: 12px; }
.ref__intro { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.ref__intro strong { color: var(--accent); font-weight: 600; }
.ref__code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ref__code {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 184, 0, 0.25);
  border-radius: var(--radius);
  letter-spacing: 0.08em;
  user-select: all;
}
.ref__discount {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(70, 194, 133, 0.3);
  border-radius: var(--radius);
  background: rgba(70, 194, 133, 0.06);
  font-size: 13px;
}
.ref__discount strong { color: var(--success); }
.ref__list { display: flex; flex-direction: column; gap: 4px; }
.ref__list-item {
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ---------- Sublist for active subscriptions ---------- */
.sub-list { display: flex; flex-direction: column; gap: 8px; }
.sub-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s;
}
a.sub-item:hover { border-color: var(--border-strong); }
.sub-item__name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.sub-item__id { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ---------- Utilities ---------- */
.muted    { color: var(--text-muted); }
.accent   { color: var(--accent); }
.mono     { font-family: var(--font-mono); }
.center   { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 12px; } .gap-3 { gap: 16px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cabinet { grid-template-columns: 1fr; }
  .cabinet__side { position: static; }
}

@media (max-width: 720px) {
  :root { --topbar-h: 52px; }
  .topbar { padding: 0 16px; }
  .main { padding: 20px 16px 48px; }
  .messages { padding: 12px 16px 0; }

  .topbar-nav { gap: 4px; }
  .topbar-nav .btn:not(.btn--primary):not(.btn--mobile-keep) { display: none; }
  .topbar-nav .balance-chip { padding: 5px 8px; font-size: 11px; }
  .nav-toggle { display: inline-flex; }

  .hero { padding: 32px 8px 24px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }

  .configs { grid-template-columns: 1fr; gap: 10px; }
  .config { padding: 18px; }

  .auth { margin: 24px 16px; padding: 22px; }

  .methods { grid-template-columns: 1fr; }

  .section { padding: 16px; }

  /* Tables on mobile — keep horizontal scroll but reduce padding */
  .table th, .table td { padding: 10px 12px; }

  /* Drop the "details arrow" column visually on tight widths */
  .hide-mobile { display: none; }

  .page-title { font-size: 20px; }
}

/* Mobile menu (slide-down panel toggled by nav-toggle) */
.mobile-menu {
  display: none;
  position: fixed; inset: var(--topbar-h) 0 0 0;
  z-index: 40;
  padding: 16px;
  background: rgba(8, 9, 10, 0.97);
  backdrop-filter: blur(12px);
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a, .mobile-menu button {
  width: 100%;
  justify-content: flex-start;
  height: 44px;
  font-size: 15px;
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
