/* Wspólny wygląd podstron (logowanie, polityka prywatności): te same zmienne, tło, HUD, nagłówek i stopka co strona główna. */
:root {
  color-scheme: dark;
  --ink: #0b0914; --binder: #15122a; --sleeve: #1f1b38; --line: #352f5c; --fg: #ece9f7; --muted: #9a94bb;
  --chrome: #f3e600; --chrome-ink: #161400; --cyan: #3fe0ff; --magenta: #ff2e88; --danger: #ff4d6d; --ok: #5bf29a;
  --f-display: "Chakra Petch", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 4px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: env(safe-area-inset-top, 0px) 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(63,224,255,.10), transparent 60%),
    radial-gradient(900px 480px at -8% 105%, rgba(255,46,136,.08), transparent 60%),
    linear-gradient(rgba(53,47,92,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,47,92,.22) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  display: flex; flex-direction: column;
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.wrap { max-width: 1240px; width: 100%; margin: 0 auto; flex: 1; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: var(--cyan); }

/* HUD: te same reguły co na stronie głównej (index.html) */
.hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); }
.hud { position: relative; z-index: 40; } /* panele walut/języka nad treścią strony */
.hud a, .hud button.link { color: var(--cyan); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.hud a:hover, .hud button.link:hover { text-decoration: underline; }
.hud a[aria-current="page"] { color: var(--fg); }
.hud-me { display: inline-flex; align-items: center; }
.hud-av { display: inline-block; flex: none; border-radius: 50%; background: var(--sleeve); border: 1px solid var(--line); object-fit: cover; vertical-align: middle; }
.hud-me .hud-av { margin-right: 6px; }
.uic { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.uic svg { display: block; width: 100%; height: 100%; overflow: visible; }
.login-link .uic { margin-right: 6px; }
.al-bell { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.al-bell .uic { width: 15px; height: 15px; }
.al-n { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--magenta); color: #fff; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.hud-menu .al-dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 2px var(--ink); }
.hud-menu { position: relative; }
/* pasek konta: wszystkie elementy w jednej linii, wyśrodkowane w pionie (lista walut była wyżej niż tekst) */
#hud-user { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 .5em; line-height: 1; }
#hud-user > span { display: inline-flex; align-items: center; }
#hud-user .curp { display: inline-flex; }
/* lista walut */
.curp { position: relative; display: inline-block; }
.curp-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 1px 6px 1px 7px; line-height: 1; background: transparent; border: 1px solid var(--line); border-radius: 3px; color: var(--cyan);
  font: inherit; letter-spacing: inherit; cursor: pointer; }
.curp-btn:hover, .curp.open .curp-btn { border-color: var(--cyan); }
.curp-btn b { font-weight: 600; color: var(--fg); }
.curp-btn .uic { width: 14px; height: 14px; }
.curp-btn .curp-chev { width: 12px; height: 12px; opacity: .7; transition: transform .15s ease; }
.curp.open .curp-chev { transform: rotate(180deg); }
.curp-panel { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: 300px; padding: 8px; background: #0b0914; border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,.65); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); text-transform: none; letter-spacing: 0; }
.curp.left .curp-panel { right: auto; left: 0; }
.curp.open .curp-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.curp-opt { display: flex; align-items: center; gap: 9px; padding: 7px 8px; background: none; border: 1px solid transparent; border-radius: 3px; color: var(--fg); cursor: pointer; text-align: left; font: inherit; min-width: 0; }
.curp-opt:hover { background: rgba(63,224,255,.08); }
.curp-opt[aria-selected="true"] { border-color: var(--chrome); background: rgba(243,230,0,.08); }
.curp-sym { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--chrome);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); }
.curp-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.curp-t b { font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.curp-t small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.curp-note { grid-column: 1 / -1; margin: 6px 2px 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.4; color: var(--muted); }
/* w menu na telefonie: panel rozwija się w miejscu */
.mm-cur { flex-wrap: wrap; }
.langp .curp-panel { width: 240px; }
#hud-user .langp { display: inline-flex; }
.curp.inline { position: static; }
.curp.inline .curp-btn { min-height: 36px; padding: 4px 10px; font-family: var(--f-mono); }
.curp.inline .curp-panel { position: static; width: 100%; margin-top: 8px; box-shadow: none; clip-path: none; }
.mm-cur .curp.inline.open { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.mm-cur .curp.inline.open .curp-panel { align-self: stretch; }
/* menu na telefonie */
.hud-menu, .mmenu { display: none; }
@media (max-width: 720px) {
  .hud { flex-wrap: nowrap; }
  #hud-user { display: none !important; }
  .brand .eyebrow button { display: none !important; }
  .hud .net { font-size: 10px; padding: 2px 6px; letter-spacing: .04em; }
  .hud-scan:not([hidden]) { margin-left: auto; }
  .hud-menu { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; background: var(--binder); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
  .hud-menu[aria-expanded="true"] { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
  .hud-menu img, .hud-menu > span { margin: 0 !important; }
  .mm-burger { display: grid; gap: 4px; } .mm-burger i { display: block; width: 18px; height: 2px; background: var(--cyan); }
  .mmenu:not([hidden]) { display: block; position: fixed; z-index: 45; top: calc(64px + env(safe-area-inset-top, 0px)); right: 12px; width: min(320px, calc(100vw - 24px)); padding: 14px;
    background: #0b0914; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.7); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
}
.mm-user { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mm-user img, .mm-user > span { margin: 0 !important; }
.mm-user b { display: block; font-family: var(--f-display); font-size: 17px; }
.mm-user small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.mm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.mm-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mm-sel { width: auto; min-height: 36px; padding: 4px 10px; }
.mm-seg { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mm-seg button { min-width: 48px; min-height: 36px; background: none; border: 0; color: var(--muted); font-family: var(--f-mono); font-weight: 600; cursor: pointer; }
.mm-seg button[aria-pressed="true"] { background: var(--cyan); color: var(--ink); }
.mm-links { display: grid; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mm-link { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; background: var(--binder); border: 1px solid var(--line); border-radius: var(--r); color: var(--fg); text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .03em; text-align: left; cursor: pointer; }
.mm-link.primary { background: var(--chrome); color: var(--chrome-ink); border-color: var(--chrome); }
.mm-link.danger { color: var(--magenta); border-color: rgba(255,46,136,.45); }
.mm-link .uic { width: 18px; height: 18px; margin-right: 10px; color: var(--cyan); }
.mm-link.danger .uic { color: var(--magenta); }
.mm-link.primary .uic { color: inherit; }
.mm-link[aria-current="page"] { border-color: var(--cyan); }
.hud-menu { color: var(--cyan); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg) !important; text-decoration: none !important; }
.logo svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 6px rgba(243,230,0,.35)); transition: filter .2s ease; }
.logo:hover svg { filter: drop-shadow(0 0 10px rgba(243,230,0,.7)); }
.logo-t { display: flex; flex-direction: column; line-height: 1; text-transform: none; }
.logo-t b { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--fg); }
.logo-t b i { font-style: normal; color: var(--chrome); }
.logo-t small { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); margin-top: 3px; text-transform: uppercase; }

/* nagłówek */
header.top { padding-block: 26px 18px; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: .95; margin: 6px 0 0; letter-spacing: .02em; text-transform: uppercase; position: relative; }
h1 .glitch { color: var(--chrome); position: relative; display: inline-block; }
h1 .glitch::before, h1 .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
h1 .glitch::before { color: var(--cyan); transform: translate(-2px, 0); clip-path: inset(0 0 62% 0); opacity: .8; animation: gl1 5s infinite steps(1); }
h1 .glitch::after { color: var(--magenta); transform: translate(2px, 0); clip-path: inset(58% 0 0 0); opacity: .8; animation: gl2 5s infinite steps(1); }
@keyframes gl1 { 0%, 92%, 100% { transform: translate(0); opacity: 0; } 93% { transform: translate(-4px, -1px); opacity: .9; } 95% { transform: translate(3px, 1px); opacity: .9; } 97% { transform: translate(-2px, 0); opacity: .9; } }
@keyframes gl2 { 0%, 92%, 100% { transform: translate(0); opacity: 0; } 93% { transform: translate(4px, 1px); opacity: .9; } 96% { transform: translate(-3px, 0); opacity: .9; } 98% { transform: translate(2px, -1px); opacity: .9; } }
.lead { margin: 14px 0 0; max-width: 720px; color: var(--muted); }

/* panel jak klaser na stronie głównej */
.panel { margin-top: 8px; position: relative; background: var(--binder); border: 1px solid var(--line); padding: 26px 28px 28px;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.014) 0 2px, transparent 2px 7px); }
.panel::before, .panel::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-top: 2px solid var(--chrome); border-left: 2px solid var(--chrome); }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--chrome); border-right: 2px solid var(--chrome); }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--binder); color: var(--fg);
  border-radius: var(--r); padding: 7px 14px; min-height: 44px; cursor: pointer; white-space: nowrap; font-family: var(--f-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; text-decoration: none; }
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.primary { background: var(--chrome); color: var(--chrome-ink); border-color: var(--chrome); border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.btn.primary:hover { color: var(--chrome-ink); filter: brightness(1.1); }
.btn svg { width: 18px; height: 18px; flex: none; }
.notice { margin: 0 0 16px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--cyan); padding: 8px 12px; background: rgba(63,224,255,.05); }
.notice[data-kind=warn] { border-color: var(--magenta); background: rgba(255,46,136,.06); color: var(--fg); }

/* stopka: zawsze na dole okna, także przy krótkiej treści */
.wrap > main { margin-bottom: 32px; }
footer { margin-top: auto; padding-block: 16px 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
footer a { color: var(--cyan); }
.foot-legal { font-size: 11px; line-height: 1.6; opacity: .85; }
.foot-legal p { margin: 0 0 4px; }
.foot-legal p:first-child { font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); opacity: .8; }

@media (max-width: 600px) { .panel { padding: 20px 16px 22px; } }
@media (prefers-reduced-motion: reduce) { h1 .glitch::before, h1 .glitch::after { animation: none; opacity: 0; } }

/* przejścia między stronami: pasek zostaje, treść płynnie się podmienia (Chrome/Edge/Safari 18.2+) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .hud { view-transition-name: hud; }
  ::view-transition-group(root) { animation-duration: .15s; }
  ::view-transition-old(root) { animation: .1s ease-in both vt-out; }
  ::view-transition-new(root) { animation: .15s ease-out both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(3px); } }
}

/* szkielety ładowania */
.sk { display: block; position: relative; overflow: hidden; background: var(--sleeve); border-radius: 3px; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(63,224,255,.10) 45%, rgba(255,46,136,.08) 55%, transparent 70%); background-size: 260% 100%; animation: skShine 1.4s linear infinite; }
@keyframes skShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.sk-l { height: 11px; margin: 7px 0; }
.sk-l.t { height: 17px; margin: 2px 0 12px; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sk-row > div { flex: 1; min-width: 0; }
.sk-av { flex: none; width: 26px; height: 26px; border-radius: 50%; }
.sk-th { flex: none; width: 40px; aspect-ratio: 63 / 88; }
.sk-hud { display: inline-block; vertical-align: middle; width: 220px; max-width: 40vw; height: 14px; }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }
.bp-img { position: relative; }
.bp-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(63,224,255,.10) 45%, rgba(255,46,136,.08) 55%, transparent 70%); background-size: 260% 100%; animation: skShine 1.4s linear infinite; }
.bp-img img { position: relative; }
@media (prefers-reduced-motion: reduce) { .bp-img::before { animation: none; } }
