/* =========================================================================
   csg.technology — Precision system (v3 — diák kiadás)
   Landing page stylesheet. Dark-first, hairline-structured, one accent.
   A v2 (Linear-szerű) rendszeren nyugszik, diákcélcsoportra hangolva:
   élőbb lila accent (a logó gradienséből), kerekebb kártyák, szint-jelvények
   (Alap / Plusz / Prémium) és kredit-nyelvezet.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  /* ground & surfaces — warm near-black, never pure #000 */
  --ground: #08090a;
  --ground-2: #0b0c0e;
  --surface-1: #0e1013;
  --surface-2: #14161a;
  --surface-3: #1b1e23;

  /* hairlines carry all the structure */
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .24);

  /* ink */
  --ink: #f4f5f7;
  --ink-2: #9da3ac;
  --ink-3: #6c727b;

  /* one accent, under 5% of pixels — a logó lila színe */
  --accent: #a487ff;
  --accent-soft: rgba(164, 135, 255, .15);
  --accent-line: rgba(164, 135, 255, .45);

  /* a logó teljes grádiese (kék → lila → cián) kiemelésekhez */
  --grad: linear-gradient(120deg, #3a63f5, #9b5cff 52%, #22c7d6);

  /* inverted primary action */
  --btn: #f4f5f7;
  --btn-ink: #08090a;

  --pos: #5fd39b;
  --pos-soft: rgba(95, 211, 155, .13);
  --neg: #ff8a80;
  --neg-soft: rgba(255, 138, 128, .12);
  --warn: #e7b36b;

  /* kredit-szintek: Alap / Plusz / Prémium jelvényei */
  --tier-alap: #5fd39b;
  --tier-plusz: #a487ff;
  --tier-premium: #e7b36b;

  /* code is always a terminal, in both themes */
  --code-bg: #0a0b0d;
  --code-ink: #c9cfd8;
  --code-key: #8fa6ff;
  --code-str: #9be0b4;
  --code-com: #5f6670;
  --code-line: rgba(255, 255, 255, .09);

  --r-1: 8px;
  --r-2: 13px;
  --r-3: 18px;

  --sans: "Instrument Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 150ms;
  --slow: 420ms;

  --wrap: 1180px;
  --gutter: 28px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --ground: #fbfbfa;
  --ground-2: #f5f5f3;
  --surface-1: #ffffff;
  --surface-2: #f4f4f2;
  --surface-3: #ececea;

  --line: rgba(9, 9, 11, .10);
  --line-2: rgba(9, 9, 11, .17);
  --line-3: rgba(9, 9, 11, .28);

  --ink: #0a0a0c;
  --ink-2: #4f5259;
  --ink-3: #6e7178;

  --accent: #6d3af0;
  --accent-soft: rgba(109, 58, 240, .09);
  --accent-line: rgba(109, 58, 240, .38);

  --btn: #0a0a0c;
  --btn-ink: #ffffff;

  --pos: #0c7a46;
  --pos-soft: rgba(12, 122, 70, .10);
  --neg: #c0392b;
  --neg-soft: rgba(192, 57, 43, .09);
  --warn: #9a6a16;

  --tier-alap: #0c7a46;
  --tier-plusz: #6d3af0;
  --tier-premium: #9a6a16;
}

/* ----------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: "ss01" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, dl, dd, dt, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* a single, very quiet ambient wash at the top — not a gradient mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%);
}

/* ---------------------------------------------------------------- layout */
.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ typography */
.eyebrow,
.sec-k,
.foot-h,
.lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

h1.display {
  font-size: clamp(42px, 6.4vw, 82px);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h1.display .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 54ch;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  line-height: 1.62;
  text-wrap: pretty;
}
.lead strong { color: var(--ink); font-weight: 550; }

h2.title {
  font-size: clamp(27px, 3.3vw, 42px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.sec-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.sec-k {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.sec-k::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 180px;
}
.sec-head p {
  margin-top: 16px;
  max-width: 64ch;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.68;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.008em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--line-3);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { flex: none; }

.btn-primary {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--btn-ink);
  font-weight: 550;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--btn) 88%, var(--accent));
  border-color: transparent;
  color: var(--btn-ink);
}

.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: var(--r-1); }
.btn-block { width: 100%; }
.btn-icon {
  width: 38px; height: 38px; padding: 0;
  border-color: transparent;
  color: var(--ink-2);
}
.btn-icon:hover { color: var(--ink); }

/* ---------------------------------------------------------------- inputs */
.field { display: block; margin-bottom: 22px; }
.lbl { display: block; margin-bottom: 10px; color: var(--ink-3); }

.input,
select,
textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  background: var(--surface-1);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.input::placeholder, textarea::placeholder { color: var(--ink-3); }
.input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
.input:focus, select:focus, textarea:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface-2);
}

select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
select option { background: var(--surface-2); color: var(--ink); }

/* range — a precise ruler, not a candy slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-3);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--ground);
  box-shadow: 0 0 0 1px var(--line-3);
  transition: box-shadow var(--fast), background var(--fast);
}
input[type="range"]:hover::-webkit-slider-thumb { background: var(--accent); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-3); }
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border: 3px solid var(--ground); border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 1px var(--line-3);
}

/* segmented control — underlined tabs, not pills */
.seg {
  display: inline-flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.seg button {
  position: relative;
  height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--fast);
}
.seg button:hover { color: var(--ink-2); }
.seg button.on { color: var(--ink); }
.seg button.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
}

/* ----------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-2);
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-1);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.badge.ok {
  color: var(--pos);
  border-color: color-mix(in srgb, var(--pos) 30%, transparent);
  background: var(--pos-soft);
}
.badge.off { color: var(--ink-3); border-color: var(--line); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.badge.neg { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 30%, transparent); background: var(--neg-soft); }

/* Kredit-szintek jelvényei: Alap (zöld) / Plusz (lila) / Prémium (arany). */
.badge.tier-alap {
  color: var(--tier-alap);
  border-color: color-mix(in srgb, var(--tier-alap) 32%, transparent);
  background: color-mix(in srgb, var(--tier-alap) 10%, transparent);
}
.badge.tier-plusz {
  color: var(--tier-plusz);
  border-color: color-mix(in srgb, var(--tier-plusz) 34%, transparent);
  background: color-mix(in srgb, var(--tier-plusz) 11%, transparent);
}
.badge.tier-premium {
  color: var(--tier-premium);
  border-color: color-mix(in srgb, var(--tier-premium) 34%, transparent);
  background: color-mix(in srgb, var(--tier-premium) 11%, transparent);
}

/* Gradiens kiemelés kisebb elemekhez (árkártya fejléc, cta). */
.gradtext {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 68px;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 6px;
}
.nav-links a {
  padding: 7px 11px;
  border-radius: var(--r-1);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color var(--fast), background var(--fast);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
}
.nav-burger:hover { color: var(--ink); border-color: var(--line-3); }

/* theme icon: show the mode you would switch to */
#theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] #theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] #theme-toggle .ic-sun { display: none; }

.nav-drawer {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--ground);
  padding: 8px 0 18px;
}
.nav-drawer a {
  display: block;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.nav-drawer a:last-child { border-bottom: 0; }
body.nav-open .nav-drawer { display: block; }

/* -------------------------------------------------------------- wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -.028em;
  white-space: nowrap;
}
.wordmark .mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3a63f5, #9b5cff 62%, #22c7d6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.wordmark .tld {
  color: var(--ink-3);
  font-weight: 450;
}

/* ----------------------------------------------------------------- hero */
.hero { padding: 92px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 72px;
  align-items: center;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 36px 0 26px;
}

.trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .01em;
  color: var(--ink-3);
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--pos);
}

/* --------------------------------------------------- hero: live ledger */
.ledger {
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-1);
  overflow: hidden;
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pos);
  letter-spacing: .1em;
}
.live .pip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--pos-soft);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .28; }
}

.spec-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.spec-list dt {
  font-size: 12.5px;
  color: var(--ink-2);
}
.spec-list dd {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}
.spec-list > div:last-child { border-bottom: 0; }

.ledger .code {
  border-top: 1px solid var(--line);
}

/* ----------------------------------------------------------------- code */
.code {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-ink);
  font: 400 11.5px/1.75 var(--mono);
  tab-size: 2;
}
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .c { color: var(--code-com); }

.codeblock {
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--code-bg);
}
.codeblock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--code-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--code-com);
}
.codeblock .code { padding: 20px; font-size: 12px; }

/* ---------------------------------------------------------- price table */
.panel {
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-1);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.panel-bar .seg {
  margin-bottom: -1px;
  border-bottom-color: transparent;
}
.panel-bar .input,
.panel-bar select {
  height: 36px;
  font-size: 13px;
  max-width: 220px;
  margin-bottom: 10px;
}
.panel-bar .input { flex: 1 1 200px; }
.panel-bar select { flex: 0 1 200px; width: auto; }
.count {
  margin-left: auto;
  margin-bottom: 10px;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

.table-wrap {
  max-height: 560px;
  overflow: auto;
  overscroll-behavior: contain;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}
.table th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-1);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--fast); }
.table tbody tr:hover { background: var(--surface-2); }
.table .num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table .t {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink);
}
.table .s {
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0;
}
.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-1);
}
.note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 66ch;
}

/* ----------------------------------------------------------- calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--surface-1);
}
.calc > div { padding: 36px; }
.calc > div + div {
  border-left: 1px solid var(--line);
  background: var(--surface-2);
}

.amount {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

.big {
  font-family: var(--mono);
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.big-unit {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.calc-grid span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.calc-grid b {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- packs */
.packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pack {
  position: relative;
  display: block;
  width: 100%;
  padding: 24px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-1);
  overflow: hidden;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.pack:hover { border-color: var(--line-3); background: var(--surface-2); }
.pack.on {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-1));
}
.pack.on::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.pack .pk-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.pack .pk-top > span:first-child { display: block; min-width: 0; }
.pack .pk-name {
  display: block;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -.015em;
}
.pack .pk-credit {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--pos);
}
.pack .pk-price {
  display: block;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pack .pk-price small {
  margin-left: 5px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}
.pack .pk-desc {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.pack .radio {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  display: grid;
  place-items: center;
  transition: border-color var(--fast);
}
.pack.on .radio { border-color: var(--accent); }
.pack.on .radio::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pack-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pack-cta p {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- feature */
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.why-item {
  padding: 34px 30px 34px 0;
  border-right: 1px solid var(--line);
}
.why-item:last-child { border-right: 0; }
.why-item:not(:first-child) { padding-left: 30px; }

.why-num {
  display: block;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.why-item h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -.022em;
}
.why-item p {
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ----------------------------------------------------------- integration */
.integ {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: start;
}

.steps { list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 30px 46px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: var(--surface-1);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 15px; top: 38px; bottom: 0;
  width: 1px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps b {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.018em;
}
.steps p {
  font-size: 14px;
  line-height: 1.66;
  color: var(--ink-2);
}
.steps code,
.inline-code {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  word-break: break-word;
}

/* ------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.015em;
  transition: color var(--fast);
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--ink-2); }
summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-3);
  transition: transform var(--slow) var(--ease), color var(--fast);
}
details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
  color: var(--accent);
}
details p {
  max-width: 92ch;
  padding: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* -------------------------------------------------------------- cta band */
.cta-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 {
  font-size: clamp(24px, 2.9vw, 36px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.cta-band p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- footer */
footer {
  padding: 68px 0 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-h {
  display: block;
  margin-bottom: 16px;
  color: var(--ink-3);
}
.foot-grid a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color var(--fast);
}
.foot-grid a.wordmark {
  display: inline-flex;
  padding: 0;
  color: var(--ink);
}
.foot-grid a:hover { color: var(--ink); }
.foot-note {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
}

/* ------------------------------------------------- section rail (≥1400) */
.rail {
  display: none;
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  flex-direction: column;
  gap: 2px;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-3);
  opacity: .55;
  transition: opacity var(--fast), color var(--fast);
}
.rail a::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width var(--slow) var(--ease), background var(--fast);
}
.rail a:hover { opacity: 1; color: var(--ink-2); }
.rail a.on { opacity: 1; color: var(--ink); }
.rail a.on::before { width: 26px; background: var(--accent); }

@media (min-width: 1400px) {
  .rail { display: flex; }
}

/* ---------------------------------------------------------------- motion */
.rise {
  animation: rise 700ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .ledger { max-width: 560px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .integ { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .hero { padding: 60px 0 72px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .packs { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why-item,
  .why-item:not(:first-child) {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .why-item:last-child { border-bottom: 0; }
  .why-num { margin-bottom: 16px; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }

  .nav-in { height: 60px; gap: 12px; }
  .nav-actions .btn-ghost { display: none; }

  h1.display { font-size: clamp(34px, 9.4vw, 46px); }
  .lead { margin-top: 22px; }
  .cta-row { margin: 28px 0 22px; }
  .cta-row .btn { flex: 1 1 100%; }
  .trust { gap: 14px; font-size: 10.5px; }

  .sec-head { margin-bottom: 34px; }

  .panel-bar { align-items: stretch; }
  .panel-bar .seg { width: 100%; justify-content: space-between; }
  .panel-bar .seg button { flex: 1; }
  .panel-bar .input,
  .panel-bar select { max-width: none; flex: 1 1 100%; }
  .count { margin-left: 0; padding-bottom: 0; }

  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tbody td { border: 0; padding: 3px 0; }
  .table tbody td.num {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-align: left;
  }
  .table tbody td.num::before {
    content: attr(data-label);
    flex: 0 0 108px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .calc > div { padding: 24px; }
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .pack { padding: 20px; }
  .pack .pk-price { font-size: 30px; }

  .cta-band { padding: 34px 0; align-items: flex-start; }
  .cta-band .btn { width: 100%; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-bottom { margin-top: 36px; }
}

@media (max-width: 420px) {
  .trust span:nth-child(3) { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ a11y/motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media print {
  .nav, .rail, footer, .cta-band, .side, .mhead { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .panel, .calc, .ledger, .codeblock, .card, .stat, .legal { border: 1px solid #ccc; }
}

/* =========================================================================
   ALKALMAZÁS — fiókfelület
   Ugyanaz a rendszer: hairline szerkezet, lapos felületek, egy akcentus.
   A régi markup `.glass` osztálya itt lapos, hairline-os panelre képződik.
   ========================================================================= */

.glass {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  box-shadow: none;
}
.glass::after { content: none; }

.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; }
.center { text-align: center; }
.tiny { font-size: 12px; }
.ok { color: var(--pos); font-size: 13px; margin-top: 10px; }
.err { color: var(--neg); font-size: 13px; margin-top: 10px; }

.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------- kompakt gombváltozatok */
.btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: var(--r-1);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--line-3);
  color: var(--ink);
}
.btn-danger {
  color: var(--neg);
  border-color: color-mix(in srgb, var(--neg) 34%, transparent);
}
.btn-danger:hover { background: var(--neg-soft); }

/* -------------------------------------------------------- űrlap-kiegészítés */
.input-sm { height: 38px; font-size: 13px; }

select[size] {
  height: auto;
  padding: 6px;
  line-height: 1.5;
  background-image: none;
}
select[size] option {
  padding: 7px 9px;
  border-radius: 5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
select[size] option:checked {
  background: var(--accent);
  color: #fff;
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  appearance: none;
  flex: none;
  width: 38px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-3) 32%, transparent);
  position: relative;
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease);
}
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* ------------------------------------------------------------------- auth */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: var(--r-3);
  border: 1px solid var(--line-2);
  background: var(--surface-1);
}
.auth-card .wordmark { margin-bottom: 26px; }
.auth-in { min-width: 0; }
.auth-card h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.auth-card .sub {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.auth-tabs {
  display: flex;
  width: 100%;
  margin: 22px 0 18px;
}
.auth-tabs button { flex: 1; }

.gbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  height: 44px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.gbtn:hover { background: var(--surface-3); border-color: var(--line-3); }
.gbtn.is-off { color: var(--ink-3); }
.gbtn.is-off:hover { background: var(--surface-2); border-color: var(--line-2); }
.gbtn svg { width: 18px; height: 18px; flex: none; }
.gbtn + .gbtn { margin-top: 10px; }

.auth-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-2);
}
.auth-note {
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-3);
}
.auth-note a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-quiet {
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-quiet:hover { color: var(--ink); }

/* ------------------------------------------------------------------ shell */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.side-top { padding: 0 4px 20px; }

.snav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  flex: 1;
}
.snav button,
.snav a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-1);
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -.006em;
  text-align: left;
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.snav button:hover,
.snav a:hover { background: var(--surface-2); color: var(--ink); }
.snav .on {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 2px 0 0 var(--accent);
}
.snav svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.snav .on svg { opacity: 1; color: var(--accent); }
.snav .tag {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}
.snav .sep { height: 1px; margin: 10px 10px; background: var(--line); }

.side-foot {
  margin-top: auto;
  padding: 14px 4px 4px;
  border-top: 1px solid var(--line);
}
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.who .nm {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who .em {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* ------------------------------------------------------------------- main */
.main { min-width: 0; display: flex; flex-direction: column; }

.mhead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 28px;
  height: 66px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.mhead h1 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -.022em;
}
.bal { display: flex; align-items: center; gap: 14px; }
.bal-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bal-v {
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.bal-v.low { color: var(--warn); }
.bal-v.bump { animation: bal-bump .6s var(--ease); }
@keyframes bal-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); color: var(--pos); }
  100% { transform: scale(1); }
}
.live-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: .45;
  transition: background .3s, opacity .3s, box-shadow .3s;
}
.live-dot.on {
  background: var(--pos);
  opacity: 1;
  box-shadow: 0 0 0 3px var(--pos-soft);
}
.live-dot.off { background: var(--warn); opacity: 1; }

.content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px 56px;
  max-width: 1320px;
  width: 100%;
}

/* ------------------------------------------------------------------ cards */
/* A fiókfelületen a .panel szakasz-tartó, nem önálló felület. */
.content .panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.content .panel > * { margin-top: 0 !important; }

.card {
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-1);
  overflow: hidden;
}
.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.card-h .h-t {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.008em;
}
.card-h .h-s {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.card-b { padding: 18px; }
.card-b.tight { padding: 0; }

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: var(--r-2);
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
  background: color-mix(in srgb, var(--warn) 9%, var(--surface-1));
  font-size: 13px;
}

/* ------------------------------------------------------------------ stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-1);
}
.stat-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-v {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-s {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

/* ----------------------------------------------------------------- charts */
.rowline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.rowline:last-child { border-bottom: 0; }
.rowline .t { font-size: 13px; font-weight: 500; }
.rowline .s { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.rowline .v {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 14px;
}
.chart { width: 100%; height: 180px; display: block; overflow: visible; }
.chart .bar {
  fill: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: fill var(--fast);
}
.chart .bar.today { fill: var(--accent); }
.chart .bar:hover { fill: var(--ink); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .lbl {
  fill: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .02em;
}

.hbars { display: flex; flex-direction: column; gap: 11px; }
.hbar {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.hbar .n {
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hbar .track {
  height: 6px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.hbar .fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  opacity: .75;
}
.hbar:first-child .fill { opacity: 1; }
.hbar .v {
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- toolbar */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar .input { flex: 1 1 200px; max-width: 320px; height: 38px; font-size: 13px; }
.toolbar select { flex: 0 1 180px; width: auto; height: 38px; font-size: 13px; }
.estimate {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- key reveal */
.key-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-1);
  border: 1px solid var(--accent-line);
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 12px;
}
.key-reveal code { flex: 1 1 260px; word-break: break-all; }
.key-reveal .btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  color: #eef2f9;
}
.key-reveal .btn:hover { background: rgba(255, 255, 255, .16); }

/* -------------------------------------------------------------- playground */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 440px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding: 2px;
}
.msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: var(--r-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.msg .who {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.msg.user {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.msg.bot { align-self: flex-start; background: var(--surface-2); }
.msg.bot .who { color: var(--accent); }
.msg .meta {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}
.msg .caret {
  display: inline-block;
  width: 6px; height: 13px;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.pg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.pg-side { display: flex; flex-direction: column; gap: 14px; }
.pg-side .card-b + .card-b { border-top: 1px solid var(--line); }

.model-picker {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: var(--ground-2);
}
.model-picker label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  cursor: pointer;
}
.model-picker label:last-child { border-bottom: 0; }
.model-picker label:hover { background: var(--surface-2); }
.model-picker input { width: 14px; height: 14px; accent-color: var(--accent); }
.model-picker .m {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* --------------------------------------------------------------- dialogs */
dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--surface-1);
  color: var(--ink);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .75);
}
dialog::backdrop {
  background: rgba(4, 5, 7, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.dlg-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.dlg-h h2 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.02em;
}
.dlg-b { padding: 18px; }
.dlg-f {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint-block {
  padding: 12px 14px;
  border-radius: var(--r-1);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ toast */
.toast-wrap {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 11px 18px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
  font-size: 13px;
  animation: rise .35s var(--ease) both;
}
.toast.ok { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 30%, transparent); }
.toast.err { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 30%, transparent); }

/* ------------------------------------------------------------ eszközök */
.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.device-row:last-of-type { border-bottom: 0; }
.device-row .d-main { min-width: 0; }
.device-row .d-t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.device-row .d-s { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.device-row .d-ip { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.device-badge {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--pos) 30%, transparent);
  background: var(--pos-soft);
  color: var(--pos);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --------------------------------------------------- kriptovaluta fizetés */
.pay-methods { margin-bottom: 20px; }
.pay-methods button { display: inline-flex; align-items: center; gap: 7px; }

.crypto-pick { margin-top: 20px; }
.crypto-pick .lbl { display: block; margin-bottom: 9px; }
.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.asset {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  background: var(--surface-1);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}
.asset:hover { border-color: var(--line-3); background: var(--surface-2); }
.asset.on {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-1));
}
.asset .sym {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}
.asset.on .sym { background: var(--accent); color: #fff; }
.asset .an { display: block; font-size: 13px; font-weight: 500; }
.asset .aw { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-3); }

.crypto-dialog { width: min(560px, calc(100vw - 32px)); }
.crypto-head {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.crypto-qr {
  width: 168px;
  height: 168px;
  padding: 9px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  background: #fff;
  display: grid;
  place-items: center;
}
.crypto-qr img,
.crypto-qr svg { width: 100%; height: 100%; display: block; }
.crypto-qr .qr-fallback {
  max-height: 100%;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  color: #101214;
  text-align: center;
  word-break: break-all;
}
.crypto-info { min-width: 0; }
.crypto-info .lbl { display: block; margin-bottom: 6px; }
.crypto-amount {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.15;
  word-break: break-all;
}
.crypto-huf { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); }
.crypto-net { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.crypto-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.crypto-status .dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent);
  animation: pulse 1.8s var(--ease) infinite;
}
.crypto-status.ok { color: var(--pos); }
.crypto-status.ok .dot { background: var(--pos); box-shadow: 0 0 0 3px var(--pos-soft); animation: none; }
.crypto-status.err { color: var(--neg); }
.crypto-status.err .dot { background: var(--neg); box-shadow: 0 0 0 3px var(--neg-soft); animation: none; }
.crypto-timer {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.crypto-addr { margin-top: 20px; }
.crypto-addr .lbl { display: block; margin-bottom: 7px; }
.crypto-addr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  background: var(--ground-2);
}
.crypto-addr-row code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
  user-select: all;
}
.crypto-dialog .hint-block { margin-top: 16px; }

.crypto-progress { margin-top: 16px; }
.crypto-progress .bar {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface-3);
}
.crypto-progress .bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.crypto-progress-note { margin-top: 7px; font-size: 11px; color: var(--ink-3); }

.crypto-open-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.crypto-open-line:last-child { border-bottom: 0; }
.crypto-open-line .t { font-size: 13px; font-weight: 500; }
.crypto-open-line .s { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }

/* ------------------------------------------------------------ app: mobil */
@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }

  .side {
    position: static;
    height: auto;
    padding: 12px 14px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--ground);
  }
  .side-top { padding: 0 0 10px; }
  .snav {
    flex-direction: row;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .snav::-webkit-scrollbar { display: none; }
  .snav button,
  .snav a { width: auto; flex: none; height: 34px; padding: 0 11px; }
  .snav .on { box-shadow: inset 0 -2px 0 var(--accent); }
  .snav .tag,
  .snav .sep { display: none; }
  .side-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 0 4px;
  }
  .side-foot .who .em { display: none; }
  .side-foot .row { margin-left: auto; }

  .mhead { padding: 0 18px; height: 60px; }
  .content { padding: 18px 18px 44px; }
}

@media (max-width: 760px) {
  .auth-card { padding: 24px 20px; }
  .auth-wrap { padding: 24px 14px; }

  .mhead { gap: 10px; }
  .mhead .bal { width: 100%; justify-content: space-between; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat-v { font-size: 22px; }
  .card-h { padding: 12px 14px; }
  .card-b { padding: 14px; }
  .toolbar .input,
  .toolbar select { flex: 1 1 100%; max-width: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .hbar { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .msg { max-width: 100%; }
  .device-row { flex-wrap: wrap; }
  .crypto-head { grid-template-columns: minmax(0, 1fr); }
  .crypto-qr { width: 100%; max-width: 200px; height: auto; aspect-ratio: 1; margin: 0 auto; }
  .crypto-info { text-align: center; }
  .crypto-status { justify-content: center; }
  .crypto-addr-row { flex-wrap: wrap; }
  .assets { grid-template-columns: minmax(0, 1fr); }
  .dlg-b { padding: 14px; }
}

/* =========================================================================
   JOGI OLDALAK
   ========================================================================= */
.legal-wrap {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 40px;
  padding: 56px 0 96px;
  align-items: start;
}
.legal-nav {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.legal-nav a {
  padding: 7px 10px;
  border-radius: var(--r-1);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background var(--fast), color var(--fast);
}
.legal-nav a:hover { background: var(--surface-2); color: var(--ink); }
.legal-nav a.on {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 2px 0 0 var(--accent);
}

.legal {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.legal h1 {
  margin-bottom: 8px;
  font-size: clamp(27px, 3.3vw, 40px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.legal .meta-line {
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.legal h2 {
  margin: 38px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -.018em;
}
.legal h2:first-of-type { margin-top: 14px; padding-top: 0; border-top: 0; }
.legal h3 { margin: 22px 0 6px; font-size: 14px; font-weight: 550; }
.legal p,
.legal li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}
.legal p + p { margin-top: 10px; }
.legal ul,
.legal ol { margin: 10px 0 0; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); font-weight: 550; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 12px;
}
.legal .callout {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: var(--r-1);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal section { display: none; }
.legal section:not([hidden]) { display: block; }

/* Jogi adattáblák és kiemelések */
.legal-data {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: 1px;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  overflow: hidden;
  background: var(--line);
}
.legal-data dt,
.legal-data dd {
  margin: 0;
  padding: 9px 13px;
  background: var(--surface-1);
  font-size: 13px;
  line-height: 1.6;
}
.legal-data dt { color: var(--ink-3); }
.legal-data dd { color: var(--ink); }

.table-scroll {
  margin: 14px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
}
.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.legal-table th,
.legal-table td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.6;
}
.legal-table thead th {
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table td:first-child { color: var(--ink); }

.legal-quote {
  margin: 14px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--r-1) var(--r-1) 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.legal-template {
  margin: 14px 0;
  padding: 18px 20px;
  border: 1px dashed var(--line-3);
  border-radius: var(--r-1);
  background: var(--surface-1);
  font-size: 13px;
  line-height: 2;
  color: var(--ink-2);
}
.legal-template p { font-size: 13px; }

.legal-missing {
  display: inline-block;
  padding: 1px 6px;
  border: 1px dashed var(--neg);
  border-radius: 4px;
  background: var(--neg-soft);
  color: var(--neg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}
.review-note {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  border-left: 2px solid var(--warn);
  background: rgba(231, 179, 107, .08);
  font-size: 12px;
  color: var(--ink-2);
}

/* ------------------------------------------------- süti-hozzájárulás */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  padding: 14px;
  pointer-events: none;
}
.consent.on { display: block; }
/* A rögzített banner alatt maradjon hely a tartalomnak. */
html.consent-on body { padding-bottom: 220px; }
@media (max-width: 560px) {
  html.consent-on body { padding-bottom: 320px; }
}
.consent-card {
  pointer-events: auto;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-1);
  box-shadow: 0 18px 60px -24px rgba(0, 0, 0, .55);
}
.consent-card h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.consent-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.consent-card a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent-opts {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.consent-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
}
.consent-opt input { margin-top: 3px; accent-color: var(--accent); }
.consent-opt b { display: block; color: var(--ink); font-weight: 550; font-size: 13px; }
.consent-opt small { display: block; color: var(--ink-3); font-size: 11.5px; }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.consent-actions .btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 560px) {
  .legal-data { grid-template-columns: minmax(0, 1fr); }
  .legal-data dt { padding-bottom: 0; background: var(--surface-2); }
  .legal-data dd { background: var(--surface-2); padding-top: 2px; }
  .consent-actions .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------- nyilatkozat-blokkok */
.consent-block {
  margin: 16px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--surface-2);
}
.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
}
.consent-line + .consent-line { border-top: 1px solid var(--line); }
.consent-line input {
  flex: none;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-line a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent-line .req { color: var(--neg); font-weight: 600; }
.consent-attention {
  animation: consent-pulse 1.6s var(--ease);
  border-color: var(--neg);
}
@keyframes consent-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  30% { box-shadow: 0 0 0 3px var(--neg-soft); }
}

/* --------------------------------------------------- fiók lábléc */
.app-foot {
  margin-top: 8px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
}
.app-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.app-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.app-foot a { color: var(--ink-3); }
.app-foot a:hover { color: var(--ink); text-decoration: underline; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.legal-links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.legal-links a:hover { color: var(--ink); }

.danger-zone { border-color: rgba(255, 138, 128, .28); }
.danger-zone .h-t { color: var(--neg); }

@media (max-width: 900px) {
  .legal-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 32px 0 64px;
  }
  .legal-nav {
    position: static;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .legal-nav::-webkit-scrollbar { display: none; }
  .legal-nav a { flex: none; white-space: nowrap; }
  .legal-nav a.on { box-shadow: inset 0 -2px 0 var(--accent); }
  .legal h2 { margin-top: 30px; padding-top: 20px; }
}
