/* ============================================================
   Aura UI — Liquid Glass (iOS 26 style), light
   Frosted translucent cards over a soft colour canvas.
   Shared foundation for authed surfaces (ЛК + админка).
   ============================================================ */

:root {
  /* Brand */
  --indigo: #5856D6;
  --indigo-dark: #4744c4;
  --violet: #7C5CFF;
  --grad: linear-gradient(135deg, #5856D6, #7C5CFF);

  /* Text */
  --text: #1d1d1f;
  --muted: #56565c;
  --faint: #8a8a90;

  /* Glass materials */
  --glass: rgba(255,255,255,.58);
  --glass-2: rgba(255,255,255,.72);
  --glass-line: rgba(255,255,255,.7);
  --hairline: rgba(60,60,67,.12);
  --blur: blur(30px) saturate(180%);

  /* Semantic */
  --green: #34c759;
  --amber: #ff9500;
  --red: #ff3b30;

  /* Shape & depth */
  --r-sm: 13px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 6px 24px rgba(28,28,52,.10);
  --shadow-lg: 0 16px 50px rgba(28,28,52,.16);
  --edge: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 .5px rgba(255,255,255,.3);
  --e: cubic-bezier(.16,1,.3,1);
  --e-spring: cubic-bezier(.34,1.3,.5,1);
}

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

body.app {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Soft colour canvas so the glass reads as glass */
  background:
    radial-gradient(58vw 52vh at 10% -8%, rgba(120,110,255,.30), transparent 60%),
    radial-gradient(50vw 44vh at 98% 4%, rgba(255,120,190,.20), transparent 58%),
    radial-gradient(60vw 50vh at 55% 108%, rgba(90,170,255,.22), transparent 62%),
    linear-gradient(180deg, #eef0f6, #e9ebf3);
  background-attachment: fixed;
}

a { color: var(--indigo); text-decoration: none; }

/* ---------- Layout ---------- */
.shell { max-width: 600px; margin: 0 auto; padding: 0 22px 96px; }
.shell.narrow { max-width: 560px; }

.app-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  background: rgba(255,255,255,.5);
  border-bottom: .5px solid var(--hairline);
}
.app-nav-inner {
  max-width: 980px; margin: 0 auto; padding: 0 22px;
  height: 54px; display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text); }
.logo-tile {
  width: 28px; height: 28px; border-radius: 8px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(88,86,214,.4), var(--edge);
}
.logo-tile svg { width: 17px; height: 17px; fill: #fff; }
.logo-word { font-size: 18px; letter-spacing: -.3px; }

.nav-link { color: var(--muted); font-size: 15px; transition: color .2s; cursor: pointer; }
.nav-link:hover { color: var(--text); }

/* ---------- Page header ---------- */
.page-head { padding: 56px 0 30px; }
.page-head h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.06; letter-spacing: -.025em; margin: 0; font-weight: 700; }
.page-head .lead { color: var(--muted); font-size: 17px; margin: 10px 0 0; }
.eyebrow { display: none; }

/* ---------- Glass card ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: .5px solid var(--glass-line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow), var(--edge);
}
.glass + .glass { margin-top: 22px; }

/* Section title inside a glass group — prominent */
.glass-h {
  font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--text);
  margin: 2px 0 12px; text-transform: none;
}

/* ---------- Plan hero card ---------- */
.plan-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: 28px;
  border: .5px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow), var(--edge);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.plan-hero.pro {
  border: none;
  background: linear-gradient(135deg, #6360e6, #8A6BFF 55%, #9D7BFF);
  color: #fff;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.4);
}
.plan-hero.pro::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(255,255,255,.35), transparent 60%);
  pointer-events: none;
}
.plan-hero > * { position: relative; }
.plan-hero .pname { font-size: 13px; color: var(--faint); }
.plan-hero.pro .pname { color: rgba(255,255,255,.8); }
.plan-hero .ptitle { font-size: 32px; font-weight: 700; letter-spacing: -.025em; margin: 4px 0 12px; }
.plan-hero .pmeta { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.plan-hero.pro .pmeta { color: rgba(255,255,255,.85); }
.plan-hero .pmeta b { color: var(--text); font-weight: 600; }
.plan-hero.pro .pmeta b { color: #fff; }

/* ---------- Usage ring ---------- */
.ring { width: 104px; height: 104px; position: relative; display: grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: rgba(60,60,67,.14); }
.plan-hero.pro .ring .track { stroke: rgba(255,255,255,.28); }
.ring .bar { stroke: url(#ringgrad); stroke-linecap: round; transition: stroke-dashoffset 1s var(--e); }
.plan-hero.pro .ring .bar { stroke: #fff; }
.ring .label { position: absolute; text-align: center; }
.ring .label .v { font-size: 23px; font-weight: 700; line-height: 1; }
.ring .label .u { font-size: 11px; color: var(--faint); margin-top: 3px; }
.plan-hero.pro .ring .label .u { color: rgba(255,255,255,.75); }
.ring.inf .v { font-size: 26px; }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: .5px solid var(--glass-line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow), var(--edge);
}
.stat .n { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat .delta { font-size: 12px; font-weight: 600; margin-top: 6px; }
.stat .delta.up { color: var(--green); } .stat .delta.down { color: var(--red); }

/* ---------- List rows ---------- */
.list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: .5px solid var(--hairline); gap: 12px; min-height: 30px;
}
.list-row:last-child { border-bottom: none; }
.list-row .k { color: var(--text); font-size: 16px; }
.list-row .v { font-size: 16px; color: var(--muted); text-align: right; }
.list-row .v b { color: var(--text); font-weight: 600; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: rgba(120,120,128,.16); color: var(--muted);
}
.badge.pro { background: var(--grad); color: #fff; box-shadow: var(--edge); }
.plan-hero.pro .badge { background: rgba(255,255,255,.22); color: #fff; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: rgba(52,199,89,.16); color: #248a3d; }
.plan-hero.pro .badge.ok { background: rgba(255,255,255,.24); color: #fff; }
.badge.warn { background: rgba(255,149,0,.18); color: #b25e00; }
.plan-hero.pro .badge.warn { background: rgba(255,255,255,.24); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: 980px; color: #fff; background: var(--indigo);
  box-shadow: 0 6px 18px rgba(88,86,214,.32), var(--edge);
  transition: background .18s, transform .2s var(--e-spring), box-shadow .2s, filter .2s;
}
.btn:hover { background: var(--indigo-dark); filter: brightness(1.04); }
.btn:active { transform: scale(.98); }
.btn.block { display: flex; width: 100%; }
/* Glass (secondary) button */
.btn.ghost {
  background: var(--glass-2); color: var(--indigo);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: .5px solid var(--glass-line); box-shadow: var(--shadow), var(--edge);
}
.btn.ghost:hover { background: rgba(255,255,255,.85); filter: none; }
.btn.danger { background: transparent; color: var(--red); box-shadow: none; }
.btn.danger:hover { background: rgba(255,59,48,.08); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.plan-hero.pro .btn { background: #fff; color: var(--indigo); box-shadow: 0 6px 18px rgba(0,0,0,.18), var(--edge); }

.linkbtn { background: none; border: none; cursor: pointer; color: var(--indigo); font-size: 15px; padding: 4px 6px; font-weight: 500; }
.linkbtn.muted { color: var(--muted); }
.linkbtn.danger { color: var(--red); }

/* ---------- Inputs ---------- */
.field {
  width: 100%; padding: 14px 16px; font-size: 16px;
  border: .5px solid var(--glass-line); border-radius: var(--r-sm);
  background: rgba(255,255,255,.6); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--text); box-shadow: var(--edge);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--indigo); background: rgba(255,255,255,.85); box-shadow: 0 0 0 4px rgba(88,86,214,.14); }
.field + .field { margin-top: 12px; }

/* Segmented control (glass) */
.seg {
  display: flex; gap: 3px; padding: 4px; border-radius: 13px; margin-bottom: 18px;
  background: rgba(120,120,128,.14); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.seg button { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 500; transition: .18s; }
.seg button.active { background: rgba(255,255,255,.9); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.12), var(--edge); }

/* ---------- Selectable plan options (glass) ---------- */
.opt {
  display: block; cursor: pointer; border-radius: var(--r);
  border: 1px solid var(--glass-line); background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  padding: 18px 20px; margin-bottom: 13px; transition: border-color .18s, box-shadow .18s;
  position: relative; box-shadow: var(--shadow), var(--edge);
}
.opt:hover { border-color: rgba(88,86,214,.4); }
.opt.sel { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(88,86,214,.16), var(--shadow), var(--edge); }
.opt input { position: absolute; opacity: 0; }
.opt .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.opt .name { font-size: 17px; font-weight: 700; }
.opt .price { font-size: 17px; font-weight: 700; }
.opt .price s { color: var(--faint); font-weight: 500; margin-right: 6px; }
.opt .per { color: var(--muted); font-size: 13px; margin-top: 4px; }
.opt .save { font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); padding: 3px 9px; border-radius: 999px; box-shadow: var(--edge); }

/* Feature list */
.feats { list-style: none; padding: 0; margin: 0; }
.feats li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; font-size: 15px; color: var(--text); border-top: .5px solid var(--hairline); }
.feats li:first-child { border-top: none; }
.feats li .ck { flex: none; width: 21px; height: 21px; border-radius: 50%; background: rgba(88,86,214,.12); color: var(--indigo); display: grid; place-items: center; font-size: 12px; margin-top: 1px; }

/* ---------- States ---------- */
.center { text-align: center; color: var(--muted); padding: 28px 0; }
.empty { text-align: center; color: var(--faint); padding: 18px 0; font-size: 14px; }
.spinner { width: 24px; height: 24px; border: 2.5px solid rgba(60,60,67,.2); border-top-color: var(--indigo); border-radius: 50%; animation: spin .7s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { background: rgba(255,59,48,.1); color: #b3261e; font-size: 14px; line-height: 1.45; padding: 12px 14px; border: .5px solid rgba(255,59,48,.3); border-radius: var(--r-sm); margin: 0 0 14px; }
.note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 14px; line-height: 1.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: rgba(28,28,30,.8); color: #fff; padding: 13px 20px; border-radius: 16px; font-size: 14px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.2);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(255,59,48,.9); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s var(--e) both; }
  .rise.d1 { animation-delay: .05s; } .rise.d2 { animation-delay: .12s; }
  .rise.d3 { animation-delay: .19s; } .rise.d4 { animation-delay: .26s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ============================================================
   Admin / CRM shell
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column;
  padding: 20px 14px; gap: 4px;
  background: rgba(255,255,255,.5); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-right: .5px solid var(--glass-line);
}
.sidebar .brand { display: flex; align-items: center; gap: 9px; padding: 6px 10px 18px; }
.sidebar .brand .logo-word { font-size: 18px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px;
  color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; transition: .16s; border: none; background: none; width: 100%; text-align: left;
}
.side-link svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.side-link:hover { background: rgba(120,120,128,.1); color: var(--text); }
.side-link.active { background: rgba(255,255,255,.85); color: var(--indigo); font-weight: 600; box-shadow: var(--shadow), var(--edge); }
.sidebar .spacer { flex: 1; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: .5px solid var(--hairline); margin-top: 6px; }
.side-foot .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; box-shadow: var(--edge); flex: none; }
.side-foot .who { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .role { font-size: 11px; color: var(--faint); }

.crm-main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 30px; background: rgba(255,255,255,.5); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: .5px solid var(--glass-line);
}
.topbar h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.crm-body { padding: 26px 30px 60px; max-width: 1100px; }
.crm-section { display: none; }
.crm-section.active { display: block; animation: rise .4s var(--e) both; }

/* KPI grid */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }

/* Charts */
.chart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.chart-card { padding: 20px 22px; }
.chart-card .ch-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.chart-card .ch-title { font-size: 15px; font-weight: 600; }
.chart-card .ch-big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.chart-card .ch-sub { font-size: 13px; color: var(--muted); }
.chart-card svg { width: 100%; display: block; overflow: visible; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; margin-top: 14px; }
.bars .bar { flex: 1; background: var(--grad); border-radius: 5px 5px 2px 2px; min-height: 4px; transition: height .6s var(--e); opacity: .9; }
.bars .bar:hover { opacity: 1; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.legend { font-size: 13px; }
.legend .lg { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; }

/* Table */
.tbl-wrap { border-radius: var(--r-lg); overflow: hidden; border: .5px solid var(--glass-line); background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow), var(--edge); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; padding: 13px 18px; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; border-bottom: .5px solid var(--hairline); }
table.tbl td { padding: 14px 18px; border-bottom: .5px solid var(--hairline); }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr { cursor: pointer; transition: background .14s; }
table.tbl tbody tr:hover { background: rgba(120,120,128,.08); }
.uid { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; color: var(--faint); }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .ava { width: 30px; height: 30px; border-radius: 50%; background: rgba(88,86,214,.14); color: var(--indigo); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.search { flex: 1; padding: 12px 16px; font-size: 15px; border: .5px solid var(--glass-line); border-radius: 12px; background: rgba(255,255,255,.6); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); color: var(--text); box-shadow: var(--edge); }
.search:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(88,86,214,.12); }

/* Drawer (client detail) */
.scrim { position: fixed; inset: 0; background: rgba(20,20,40,.28); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 440px; max-width: 92vw; z-index: 95;
  background: rgba(255,255,255,.72); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-left: .5px solid var(--glass-line); box-shadow: -20px 0 60px rgba(28,28,52,.2);
  transform: translateX(100%); transition: transform .36s var(--e); overflow-y: auto; padding: 26px;
}
.drawer.open { transform: none; }
.drawer .dh { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.drawer .dh .ava { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; box-shadow: var(--edge); }
.drawer .dh h3 { margin: 0; font-size: 20px; font-weight: 700; }
.drawer .close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(120,120,128,.16); color: var(--muted); font-size: 18px; cursor: pointer; }
.drawer .close:hover { background: rgba(120,120,128,.28); }
.sub-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin: 22px 0 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); box-shadow: var(--edge); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 14px; bottom: 0; width: 1px; background: var(--hairline); }
.timeline li:last-child::after { display: none; }
.timeline .t { color: var(--faint); font-size: 12px; }

/* Inline editable rows (tariffs / models) */
.edit-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: .5px solid var(--hairline); }
.edit-row:last-child { border-bottom: none; }
.edit-row .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.mini { width: 96px; padding: 8px 10px; font-size: 14px; border: .5px solid var(--glass-line); border-radius: 9px; background: rgba(255,255,255,.7); color: var(--text); text-align: right; }
.sample-note { font-size: 12px; color: var(--faint); background: rgba(120,120,128,.1); border-radius: 999px; padding: 4px 11px; display: inline-block; margin-bottom: 14px; }

/* Auth gate (admin login) */
.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.gate { width: 100%; max-width: 380px; }
.gate .glogo { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 10px 30px rgba(88,86,214,.4), var(--edge); }
.gate .glogo svg { width: 32px; height: 32px; fill: #fff; }
.gate h1 { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.gate .sub { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 22px; }

@media (max-width: 900px) {
  .chart-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: .5px solid var(--glass-line); }
  .sidebar .brand { width: 100%; padding-bottom: 8px; }
  .sidebar .spacer, .side-foot { display: none; }
  .side-link { width: auto; }
}

/* ---------- Legal prose ---------- */
.prose { color: var(--text); }
.prose h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 28px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.6; }
.prose ul { padding-left: 20px; margin: 6px 0; }
.prose li { margin: 4px 0; }
.prose .upd { color: var(--faint); font-size: 13px; margin: 0 0 4px; }
.prose .disclaimer { font-size: 13px; color: var(--faint); border-top: .5px solid var(--hairline); margin-top: 26px; padding-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .page-head { padding-top: 42px; }
  .plan-hero { grid-template-columns: 1fr; }
}
