/* ── Egglee — Shared UI Kit ──────────────────────
   Design primitives used by the client dashboard, the admin panel and the
   docs / terms / privacy pages. Loaded after common.css, before page CSS. */


/* ── Shared · Page Head ──────────────────────── */
.page-head { margin-bottom: 1.25rem; }

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .35rem;
}

.page-title {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.page-sub {
  font-size: .85rem;
  color: var(--text-soft);
  max-width: 62ch;
  margin-top: .25rem;
}

/* ── Shared · Panels ─────────────────────────── */
.card {
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.25rem;
  background: linear-gradient(168deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01) 55%), var(--surface);
  box-shadow: var(--shadow-soft), var(--inner-top);
}
.card:hover { border-color: var(--stroke); }

.panel-eyebrow {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.panel-subhead {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.2rem 0 .7rem;
}
.panel-subhead h4 {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}
.panel-subhead::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke), transparent);
}

/* ── Shared · Tables ─────────────────────────── */
.table-wrap {
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
}
.table th {
  background: rgba(255, 255, 255, .03);
  color: var(--text-soft);
}
.table td { border-bottom-color: rgba(255, 255, 255, .05); }
.table tr:hover td { background: rgba(255, 255, 255, .035); }

/* ── Overview · Hue Presets ──────────────────── */
/* Each HUD tile / action card picks one hue and every colored detail inside
   it (icon, meter, glow, button) derives from these four variables. */
.t-leaf   { --tint: #69f0ae; --tint-strong: #34c98a; --tint-soft: #c4ffe4; --tint-dim: rgba(105, 240, 174, .14); --tint-line: rgba(105, 240, 174, .40); }
.t-gold   { --tint: #ffca4d; --tint-strong: #f0a92b; --tint-soft: #ffeab5; --tint-dim: rgba(255, 202, 77, .14); --tint-line: rgba(255, 202, 77, .40); }
.t-sky    { --tint: #6fb2ff; --tint-strong: #4b86ec; --tint-soft: #d0e5ff; --tint-dim: rgba(111, 178, 255, .14); --tint-line: rgba(111, 178, 255, .40); }
.t-violet { --tint: #b39bff; --tint-strong: #8e72f0; --tint-soft: #e5dcff; --tint-dim: rgba(179, 155, 255, .14); --tint-line: rgba(179, 155, 255, .40); }
.t-slate  { --tint: #93a7c4; --tint-strong: #6d80a0; --tint-soft: #dde5f2; --tint-dim: rgba(147, 167, 196, .14); --tint-line: rgba(147, 167, 196, .40); }


/* ── Overview · Stat Tiles ───────────────────── */
.hud-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
  margin-bottom: 1.1rem;
}

.hud-stat {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: linear-gradient(168deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 55%), var(--surface);
  box-shadow: var(--shadow-soft), var(--inner-top);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
}

.hud-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tint), transparent 78%);
}

.hud-stat::after {
  content: '';
  position: absolute;
  top: -46px;
  right: -46px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tint-dim), transparent 68%);
  pointer-events: none;
}

.hud-stat:hover {
  transform: translateY(-3px);
  border-color: var(--tint-line);
  box-shadow: var(--shadow-lift);
}

.hud-stat-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .6rem;
}

.hud-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-content: center;
  font-size: 1.05rem;
  background: var(--tint-dim);
  border: 1px solid var(--tint-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  flex-shrink: 0;
}

.hud-stat-label {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.3;
}

.hud-stat-value {
  position: relative;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hud-stat-value .unit {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-left: .25rem;
}

.hud-stat-sub {
  position: relative;
  font-size: .74rem;
  color: var(--text-soft);
  margin-top: .3rem;
  min-height: 1.15em;
}
.hud-stat-sub b { color: var(--tint); font-weight: 700; }
.hud-stat-sub.alert b { color: var(--danger); }

.hud-stat-meter {
  position: relative;
  margin-top: .55rem;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.hud-stat-meter i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--tint-strong), var(--tint));
  transition: width .5s ease;
}
.hud-stat-meter.low i { background: linear-gradient(90deg, #e06a6a, #ff8f8f); }

/* ── Overview · Action Deck ──────────────────── */
.action-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-bottom: 1.1rem;
}

.action-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.05rem 1.1rem 1.1rem;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: linear-gradient(168deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 55%), var(--surface);
  box-shadow: var(--shadow-soft), var(--inner-top);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
}

.action-tile::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tint-dim), transparent 68%);
  opacity: .8;
  pointer-events: none;
}

.action-tile:hover {
  transform: translateY(-3px);
  border-color: var(--tint-line);
  box-shadow: var(--shadow-lift);
}

.action-tile.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-color: var(--tint-line);
  background:
    radial-gradient(85% 170% at 6% 50%, rgba(255, 202, 77, .16), transparent 58%),
    linear-gradient(168deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 55%), var(--surface);
}

.action-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-content: center;
  font-size: 1.25rem;
  background: var(--tint-dim);
  border: 1px solid var(--tint-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  flex-shrink: 0;
}

.action-tile.featured .action-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.75rem;
  animation: hudFloat 5s ease-in-out infinite;
}

.action-copy { position: relative; flex: 1; min-width: 0; }
.action-title { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.action-tile.featured .action-title { font-size: 1.15rem; }
.action-desc { font-size: .78rem; color: var(--text-soft); line-height: 1.5; }
.action-desc b { color: var(--tint); font-weight: 700; }

.action-controls {
  position: relative;
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-top: auto;
}

.act-field {
  flex: 1;
  min-width: 0;
  background: rgba(6, 9, 17, .7);
  border: 1px solid var(--stroke);
  border-radius: 11px;
  padding: .55rem .7rem;
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.act-field:focus { outline: none; border-color: var(--tint); box-shadow: 0 0 0 3px var(--tint-dim); }
.act-field option { background: #0d1424; color: var(--text); }

select.act-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23a9b6d0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 11px;
}

input[type="number"].act-field { text-align: center; }
.act-field-xs { flex: 0 0 84px; }
.act-field-sm { padding: .4rem .7rem; font-size: .78rem; }
select.act-field-sm { padding-right: 1.7rem; }

.act-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  padding: .6rem 1.1rem;
  font-family: inherit;
  font-size: .83rem;
  font-weight: 800;
  color: #0a1220;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--tint-soft), var(--tint) 42%, var(--tint-strong));
  box-shadow: 0 8px 20px -10px var(--tint), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.act-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 28px -12px var(--tint), inset 0 1px 0 rgba(255, 255, 255, .5); }
.act-btn:active:not(:disabled) { transform: translateY(0); }
.act-btn:disabled { opacity: .45; cursor: not-allowed; }

.act-btn-lg { padding: .85rem 1.8rem; font-size: .95rem; border-radius: 14px; }

/* Light sweeping across the headline call to action */
.act-btn-lg::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  animation: actSweep 3.8s ease-in-out infinite;
}
@keyframes actSweep {
  0%, 55% { left: -60%; }
  100%    { left: 130%; }
}


/* ── Card Header Row ──────────────────────────── */
.card-header-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
}
.card-header-row h3 { margin: 0; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  font-size: 1rem;
  background: var(--tint-dim);
  border: 1px solid var(--tint-line);
  flex-shrink: 0;
}

.card-header-row .header-action { margin-left: auto; }
.card-header-row .act-field { flex: 0 0 auto; width: auto; min-width: 178px; }

.badge {
  padding: .15rem .55rem;
  border-radius: 99px;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
}


/* ── Empty State ─────────────────────────────── */
.panel-empty {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--stroke-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
  color: var(--text-soft);
  font-size: .84rem;
}
.panel-empty span { font-size: 1.3rem; }


/* ── Pagination ──────────────────────────────── */
.pagination, .pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}

.page-btn {
  padding: .45rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

.page-info { font-size: .8rem; color: var(--text-soft); font-weight: 600; }


/* ── Inputs (shared with the legacy .input class) ── */
.input {
  background: rgba(6, 9, 17, .7);
  border: 1px solid var(--stroke);
  border-radius: 11px;
  padding: .55rem .75rem;
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.input::placeholder { color: rgba(169, 182, 208, .55); font-weight: 500; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23a9b6d0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 11px;
}
.input option { background: #0d1424; color: var(--text); }

/* ══════════════════════════════════════════════
   CONTENT PAGES — docs, terms, privacy
   ══════════════════════════════════════════════ */
.content-page .container { width: min(980px, 92vw); margin: 0 auto; padding: 0 1rem; }
.content-page .container.narrow { width: min(860px, 92vw); }

/* ── Top bar ─────────────────────────────────── */
.content-page .topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(6, 8, 15, .62);
  backdrop-filter: blur(16px);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.content-page .topbar.scrolled {
  background: rgba(7, 10, 18, .92);
  border-bottom-color: var(--stroke);
  box-shadow: 0 14px 30px -24px #000;
}
.content-page .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
}
.content-page .brand { display: flex; align-items: center; gap: .7rem; }
.content-page .brand-logo {
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02));
  transition: border-color var(--transition), box-shadow var(--transition);
}
.content-page .brand:hover .brand-logo {
  border-color: var(--primary);
  box-shadow: 0 0 18px -4px rgba(105, 240, 174, .6);
}
.content-page .brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.content-page .brand-name em { font-style: normal; color: var(--primary); }

/* ── Page hero ───────────────────────────────── */
.content-head {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.6rem;
  margin: 2.2rem 0 2rem;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(105, 240, 174, .14), transparent 55%),
    radial-gradient(90% 130% at 100% 0%, rgba(88, 123, 255, .12), transparent 52%),
    linear-gradient(168deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 55%), var(--surface);
  box-shadow: var(--shadow-soft), var(--inner-top);
}
.content-head h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .5rem;
}
.content-head p { color: var(--text-soft); font-size: .95rem; line-height: 1.7; max-width: 65ch; }
.content-head .updated {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .04);
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-soft);
}

/* ── Section nav (docs TOC and legal nav) ────── */
.toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-bottom: 2.5rem;
}
.toc a, .legal-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: linear-gradient(168deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 55%), var(--surface);
  color: var(--text-soft);
  font-size: .84rem;
  font-weight: 700;
  transition: transform .2s, border-color .2s, color .2s, box-shadow .2s;
}
.toc a:hover, .legal-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(105, 240, 174, .4);
  color: var(--primary);
  box-shadow: var(--shadow-lift);
}
.toc-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-content: center;
  border-radius: 9px;
  background: var(--primary-dim);
  border: 1px solid rgba(105, 240, 174, .28);
  font-size: .95rem;
  flex-shrink: 0;
}
.legal-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.legal-nav a { padding: .45rem .95rem; border-radius: 999px; font-size: .8rem; text-decoration: none; }

/* ── Long-form copy ──────────────────────────── */
.doc-section { margin-bottom: 3rem; scroll-margin-top: 90px; }
.doc-section h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}
.doc-section h2 .icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  border-radius: 11px;
  background: var(--primary-dim);
  border: 1px solid rgba(105, 240, 174, .28);
  font-size: 1.05rem;
}
.doc-section .section-desc { color: var(--text-soft); font-size: .92rem; line-height: 1.75; margin-bottom: 1.4rem; }
.doc-section h3 { font-size: 1.02rem; font-weight: 800; margin: 1.8rem 0 .5rem; color: var(--primary); }
.doc-section p, .doc-section li,
.legal p, .legal li { color: var(--text-soft); font-size: .9rem; line-height: 1.8; margin-bottom: .5rem; }
.doc-section ul, .doc-section ol,
.legal ul, .legal ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.doc-section strong, .legal strong { color: var(--text); }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal h2 { font-size: 1.15rem; font-weight: 800; margin: 2.2rem 0 .6rem; color: var(--primary); }
.legal h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.legal, .docs { padding-bottom: 4rem; }

/* ── Data tables ─────────────────────────────── */
.doc-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
}
.doc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.doc-table th, .doc-table td {
  padding: .7rem .95rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  white-space: nowrap;
}
.doc-table th {
  background: rgba(255, 255, 255, .03);
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:hover td { background: rgba(255, 255, 255, .035); }
.doc-table .highlight-cell { color: var(--primary); font-weight: 800; }

/* ── Callouts ────────────────────────────────── */
.info-card {
  padding: 1.2rem 1.35rem;
  margin: 1rem 0;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: linear-gradient(168deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 55%), var(--surface);
  box-shadow: var(--shadow-soft), var(--inner-top);
}
.info-card h4 { display: flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 800; margin-bottom: .4rem; }
.info-card p { color: var(--text-soft); font-size: .88rem; line-height: 1.7; margin: 0; }

.tip-box, .warn-box, .danger-box {
  position: relative;
  padding: .9rem 1.1rem .9rem 1.2rem;
  margin: 1rem 0;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.tip-box::before, .warn-box::before, .danger-box::before {
  content: '';
  position: absolute;
  top: .6rem;
  bottom: .6rem;
  left: 0;
  width: 3px;
  border-radius: 99px;
}
.tip-box { background: var(--primary-dim); border-color: rgba(105, 240, 174, .22); }
.tip-box::before { background: var(--primary); }
.tip-box strong { color: var(--primary); }
.warn-box { background: var(--warn-dim); border-color: rgba(250, 204, 21, .22); }
.warn-box::before { background: var(--warn); }
.warn-box strong { color: var(--warn); }
.danger-box { background: var(--danger-dim); border-color: rgba(255, 143, 143, .22); }
.danger-box::before { background: var(--danger); }
.danger-box strong { color: var(--danger); }

.formula {
  overflow-x: auto;
  padding: .8rem 1rem;
  margin: .8rem 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0, 0, 0, .3);
  color: var(--primary);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .85rem;
  white-space: nowrap;
}

/* ── Flow diagram ────────────────────────────── */
.flow { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.flow-step {
  padding: .5rem .95rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: linear-gradient(168deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01)), var(--surface);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.flow-arrow { color: var(--primary); font-weight: 800; }

/* ── Footer ──────────────────────────────────── */
.content-page .footer { border-top: 1px solid var(--stroke); padding: 2rem 0; margin-top: 2rem; }
.content-page .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.content-page .footer-brand { display: flex; align-items: center; gap: .5rem; }
.content-page .footer-brand img { width: 26px; height: 26px; }
.content-page .footer-brand span { font-weight: 800; font-size: .9rem; }
.content-page .footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.content-page .footer-links a { color: var(--text-soft); font-size: .82rem; transition: color var(--transition); }
.content-page .footer-links a:hover { color: var(--text); }
.content-page .footer-copy { color: var(--text-soft); font-size: .75rem; }

@media (max-width: 900px) { .toc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .toc { grid-template-columns: 1fr; }
  .content-head { padding: 1.5rem 1.2rem; border-radius: 18px; }
  .content-page .footer-inner { flex-direction: column; text-align: center; }
  .legal-nav { justify-content: center; }
}
