/* ATR-рулетка. Только локальные шрифты, без CDN. */

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("fonts/NotoSansGeorgian-var.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F, U+0589, U+10FB;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-var.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-var.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-var.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-var.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic-var.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #04060b;
  --ink: #e8eef8;
  --muted: rgba(232, 238, 248, 0.62);
  --faint: rgba(232, 238, 248, 0.38);
  --line: rgba(255, 255, 255, 0.38);
  --line-strong: rgba(255, 255, 255, 0.55);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  --neon: #7ee8ff;
  --neon-dim: rgba(126, 232, 255, 0.35);
  --lilac: #d6a8ff;
  --danger-demo: #ffd37a;
  --chosen: #ffc56e;
  --search-clear: #ff9eae;
  --radius: 22px;
  --radius-s: 12px;
  --row: 76px;
  --window-pad: 28px 32px 26px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--night);
  color: var(--ink);
  font-family: "Outfit", "Geist", "Noto Sans", "Noto Sans Georgian", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body,
body * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-s);
  appearance: none;
  -webkit-appearance: none;
}

button:focus-visible {
  outline: 1px solid var(--neon);
  outline-offset: 3px;
}

/* --- Night sky --- */
.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 78% 0%, rgba(170, 196, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 12% 100%, rgba(40, 70, 130, 0.22), transparent 60%),
    radial-gradient(circle at 50% 50%, #0a1020, var(--night) 70%);
}

.moon {
  position: absolute;
  top: 7vh;
  right: 11vw;
  width: 86px;
  height: 86px;
  border-radius: 16px; /* soft square, not a circle */
  background:
    linear-gradient(145deg, rgba(240, 246, 255, 0.55), rgba(160, 190, 230, 0.08) 60%, transparent);
  box-shadow:
    0 0 80px 20px rgba(180, 210, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transform: rotate(8deg);
  opacity: 0.85;
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- Stage --- */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 96px 36px 24px;
}
@media (max-width: 700px) {
  .stage { padding: 16px 16px 96px; }
}

.window {
  width: min(680px, 100%);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 90px rgba(0, 0, 0, 0.5);
  padding: var(--window-pad);
  position: relative;
}

.window::before {
  /* faint inner frame */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  pointer-events: none;
}

.header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  min-width: 168px;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(180, 230, 255, 0.7);
  box-shadow: 0 0 22px rgba(126, 232, 255, 0.16);
}

.toggle:disabled {
  cursor: default;
}

.toggle:disabled:not([aria-pressed="true"]) {
  opacity: 0.42;
}

.badge-demo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 211, 122, 0.55);
  color: var(--danger-demo);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  padding: 5px 9px;
  background: rgba(20, 16, 8, 0.35);
  white-space: nowrap;
  pointer-events: none;
}

.reel-wrap {
  margin: 28px 0 22px;
  position: relative;
  z-index: 1;
}

.reel-viewport {
  height: calc(var(--row) * 3);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  position: relative;
}

.reel-viewport::before,
.reel-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--row);
  z-index: 2;
  pointer-events: none;
}

.reel-viewport::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(6, 10, 18, 0.72), transparent);
}

.reel-viewport::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(6, 10, 18, 0.72), transparent);
}

.center-frame {
  position: absolute;
  left: 10px;
  right: 10px;
  top: var(--row);
  height: var(--row);
  border: 1px solid rgba(180, 230, 255, 0.55);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(126, 232, 255, 0.18), inset 0 0 12px rgba(126, 232, 255, 0.06);
  pointer-events: none;
  z-index: 3;
}

.reel {
  will-change: transform;
}

.reel-item {
  height: var(--row);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}

.reel-item .sym {
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.reel-item .nm {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.actions {
  position: relative;
  z-index: 1;
}

.btn-main,
.btn-demo,
.btn-ghost {
  width: 100%;
  border: 1px solid var(--line-strong);
  min-height: 56px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-main {
  box-shadow: 0 0 24px rgba(126, 232, 255, 0.12);
}

.btn-main:hover,
.btn-demo:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-main:active,
.btn-demo:active {
  transform: translateY(1px);
}

.btn-demo {
  border-color: rgba(255, 211, 122, 0.7);
  color: #fff6e0;
  margin-top: 12px;
}

.btn-ghost {
  margin-top: 10px;
  background: transparent;
  color: var(--muted);
  min-height: 46px;
  font-weight: 450;
}

.hint {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* --- Views inside the same window --- */
.view {
  position: relative;
  z-index: 1;
}

.view[hidden] {
  display: none !important;
}

.pay-box {
  text-align: center;
  padding: 8px 8px 0;
}

.pay-kicker {
  display: inline-block;
  border: 1px solid rgba(255, 211, 122, 0.7);
  color: var(--danger-demo);
  border-radius: 8px;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  margin-bottom: 18px;
}

.pay-box h1 {
  font-family: "Cormorant Garamond", "Outfit", "Noto Sans Georgian", serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.pay-box p {
  margin: 0 auto;
  max-width: 26em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.fake-addr {
  margin: 22px auto 4px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  color: var(--faint);
  font-family: "Geist Mono", "Noto Sans Georgian", monospace;
  font-size: 13px;
  max-width: 28em;
}

/* --- Result --- */
.result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.result-ticker {
  font-family: "Geist Mono", "Noto Sans Georgian", monospace;
  font-size: 28px;
  font-weight: 630;
  letter-spacing: 0.04em;
  margin: 0;
}

.result-name {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.result-price {
  font-family: "Geist Mono", "Noto Sans Georgian", monospace;
  font-size: 15px;
  color: var(--muted);
  text-align: right;
}

.potential {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 18px 0 16px;
}
.potential-pct,
.potential-usd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.potential-label,
.potential-sublabel {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.potential-value,
.potential-money,
.potential-none,
.sticker-pot {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.potential-value {
  font-family: "Outfit", "Geist", "Noto Sans Georgian", sans-serif;
  font-weight: 650;
  font-size: 42px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(126, 232, 255, 0.28);
}
.potential-money {
  font-family: "Outfit", "Geist", "Noto Sans Georgian", sans-serif;
  font-weight: 620;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.potential-none {
  font-family: "Outfit", "Geist", "Noto Sans Georgian", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  margin: 4px 0 0;
  color: var(--muted);
}
.potential.is-none {
  display: block;
}

/* Neon ATR bar */
.atr {
  margin: 6px 0 16px;
}

.atr-scale {
  position: relative;
  padding: 8px 0 6px;
}

.atr-track {
  position: relative;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.atr-spent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(126, 232, 255, 0.35), rgba(126, 232, 255, 0.95));
  box-shadow: 0 0 16px rgba(126, 232, 255, 0.7), 0 0 2px rgba(126, 232, 255, 0.9) inset;
  border-radius: 0 6px 6px 0;
  min-width: 0;
}

.atr-cal {
  position: absolute;
  top: 2px;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 2px #fff;
  border-radius: 1px;
  z-index: 3;
  pointer-events: none;
}

.atr-cal::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 8px #fff;
}

.atr-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 15px;
  color: rgba(232, 238, 248, 0.72);
  gap: 8px;
}

.atr-labels span {
  line-height: 1.3;
}

.explain {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.explain-cal {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.meta-line {
  margin: 16px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: var(--faint);
  font-size: 11px;
}

.disclaimer {
  margin: 0;
  font-size: 11px;
  color: var(--faint);
}

/* Phone */
@media (max-width: 700px) {
  :root {
    --row: 62px;
    --window-pad: 18px 16px 16px;
    --radius: 18px;
  }

  .stage {
    padding: 14px 12px;
    align-items: stretch;
  }

  .window {
    width: 100%;
    margin: auto 0;
  }

  .window::before {
    inset: 7px;
  }

  .toggle {
    min-width: 0;
    flex: 1;
    min-height: 44px;
    font-size: 13.5px;
    padding: 8px 10px;
  }

  .badge-demo {
    display: none;
  }

  .header {
    position: relative;
  }

  .header::after {
    content: "ДЕМО / ТЕСТ";
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--danger-demo);
    border: 1px solid rgba(255, 211, 122, 0.45);
    border-radius: 6px;
    padding: 3px 7px;
    background: rgba(20, 16, 8, 0.35);
  }

  .reel-wrap {
    margin: 36px 0 16px;
  }

  .reel-item {
    padding: 0 16px;
  }

  .reel-item .sym {
    font-size: 18px;
  }

  .btn-main {
    font-size: 15px;
    min-height: 58px;
    line-height: 1.25;
  }

  .pay-box h1 {
    font-size: 32px;
  }

  .potential-value {
    font-size: 34px;
  }

  .result-ticker {
    font-size: 22px;
  }

  .meta-line {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-height: 820px) and (max-width: 700px) {
  :root {
    --row: 52px;
  }

  .reel-wrap {
    margin: 32px 0 12px;
  }

  .potential {
    margin: 10px 0 10px;
  }

  .potential-value {
    font-size: 30px;
  }
}

body.is-pay #reel-wrap {
  display: none;
}

body.is-result #result-card {
  position: relative;
  z-index: 1;
}

#result-card {
  transition: opacity 0.35s ease;
}

@media (max-width: 700px) and (max-height: 900px) {
  body.is-result {
    --row: 48px;
  }
  body.is-result .reel-wrap {
    margin: 32px 0 10px;
  }
  body.is-result .btn-ghost {
    margin-top: 8px;
    min-height: 40px;
  }
}

body.is-pay .pay-kicker {
  display: none;
}

@media (max-width: 700px) {
  body.is-pay .pay-kicker {
    display: inline-block;
    margin-top: 8px;
  }
  .header::after {
    display: none;
  }
  .phone-badge {
    display: flex;
    justify-content: center;
    margin: 10px 0 0;
  }
  .phone-badge span {
    border: 1px solid rgba(255, 211, 122, 0.55);
    color: var(--danger-demo);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.14em;
    padding: 4px 8px;
    background: rgba(20, 16, 8, 0.35);
  }
  .reel-wrap {
    margin-top: 16px;
  }
  body.is-pay .phone-badge {
    display: none;
  }
}

@media (min-width: 701px) {
  .phone-badge {
    display: none;
  }
}


/* --- Этап 4: тайминг, две колонки, квитанции --- */
.desk {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  width: min(1280px, 100%);
}

.window {
  flex: 1 1 640px;
  max-width: 680px;
}

.header {
  align-items: center;
}

.timing {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: center;
  align-items: flex-end;
}

.timing-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 108px;
}

.timing-badge-slot {
  display: block;
  height: 22px;
  line-height: 22px;
}

.free-month-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #ffe566;
  background: rgba(40, 28, 0, 0.72);
  border: 1px solid rgba(255, 220, 80, 0.7);
  box-shadow:
    0 0 8px rgba(255, 210, 40, 0.55),
    0 0 18px rgba(255, 180, 0, 0.35),
    inset 0 0 8px rgba(255, 230, 80, 0.18);
  text-shadow:
    0 0 6px #ffd000,
    0 0 14px rgba(255, 200, 0, 0.9);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.free-flame {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transform-origin: 50% 85%;
  animation: free-flame 0.9s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #ffb000);
}

@keyframes free-flame {
  0%, 100% { transform: translateY(0) scale(1) rotate(-8deg); filter: drop-shadow(0 0 3px #ffb000); }
  35% { transform: translateY(-2px) scale(1.18) rotate(9deg); filter: drop-shadow(0 0 8px #ff6a00); }
  65% { transform: translateY(-1px) scale(0.96) rotate(-3deg); filter: drop-shadow(0 0 5px #ffcc33); }
}

.free-month-note {
  margin: 6px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffe566;
  text-shadow: 0 0 8px rgba(255, 200, 0, 0.55);
  position: relative;
  z-index: 1;
}
.free-month-note.is-out {
  color: var(--muted);
  text-shadow: none;
  font-weight: 500;
}

/* Stage 18: hide the legacy 1/day RANDOM free-spin UI that pay.js still draws.
   pay.js itself is not edited (login, wallet, signing, payment stay as-is). */
#spin-status .btn-free,
#spin-status #free-top10,
#spin-status .acct-free:not(.acct-paidspins) {
  display: none !important;
}


.toggle-timing {
  min-width: 108px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}

.window-caption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.asset-search {
  position: relative;
  z-index: 6;
  margin: 10px 0 0;
  width: 100%;
}
.asset-search-wrap { position: relative; }

.asset-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 44px;
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.asset-search-bar:focus-within {
  border-color: rgba(126, 232, 255, 0.65);
  box-shadow: 0 0 16px rgba(126, 232, 255, 0.18), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.asset-search-ico {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}

.asset-search-ico svg,
.asset-search-toggle svg,
.asset-search-clear svg { display: block; pointer-events: none; }

.asset-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  outline: none;
}

.asset-search-input::placeholder { color: var(--faint); }
.asset-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.asset-search-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
}

.asset-search-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.asset-search-toggle[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(126, 232, 255, 0.5);
  background: rgba(126, 232, 255, 0.1);
}
.asset-search-toggle.is-chosen {
  color: #2a1a04;
  background: var(--chosen);
  border-color: rgba(255, 197, 110, 0.8);
}

.asset-search-clear {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 158, 174, 0.8);
  border-radius: 10px;
  background: var(--search-clear);
  color: #3a1018;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 158, 174, 0.28);
}
.asset-search-clear:hover:not(:disabled) {
  background: #ffb0bc;
  border-color: rgba(255, 176, 188, 0.95);
}
.asset-search-clear:disabled {
  background: rgba(255, 158, 174, 0.2);
  border-color: rgba(255, 158, 174, 0.28);
  color: rgba(255, 210, 216, 0.45);
  box-shadow: none;
  cursor: default;
}

.asset-search-drop {
  position: absolute;
  left: 0;
  right: calc(34px + 8px);
  top: calc(100% - 2px);
  margin-top: 6px;
  max-height: min(320px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0c121c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  padding: 6px;
  z-index: 8;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.asset-search-drop::-webkit-scrollbar { display: none; width: 0; height: 0; }
.asset-search-drop[hidden] { display: none; }

.asset-search-item {
  width: 100%;
  display: grid;
  grid-template-columns: 3.2em 6.5em 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.asset-search-item:hover,
.asset-search-item.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 232, 255, 0.25);
}
.asset-search-item.is-held {
  opacity: 0.7;
}
.asset-search-item.is-selected {
  border-color: rgba(255, 197, 110, 0.55);
  background: rgba(255, 197, 110, 0.1);
}
.asset-search-item .rk {
  font-family: "Geist Mono", "Outfit", monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.asset-search-item .tk {
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.asset-search-item .nm {
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-search-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.asset-chosen,
.asset-held {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.asset-chosen[hidden],
.asset-held[hidden] { display: none; }
.asset-chosen {
  color: var(--chosen);
}
.asset-held {
  color: var(--danger-demo);
  font-size: 12px;
  line-height: 1.35;
}
:lang(ka) .asset-search-input,
:lang(ka) .asset-chosen,
:lang(ka) .asset-held { letter-spacing: 0; }

.reel-item.is-chosen .sym { color: var(--chosen); text-shadow: 0 0 12px rgba(255, 197, 110, 0.35); }
.reel-item.is-chosen .nm { color: rgba(255, 197, 110, 0.8); }

.reel-wrap {
  margin-top: 14px;
}

.blocked-msg {
  margin: 12px 0 0;
  text-align: center;
  color: var(--danger-demo);
  font-size: 14px;
  line-height: 1.45;
}

.receipts-window {
  flex: 1 1 640px;
  width: auto;
  max-width: 740px;
  min-width: 0;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 90px rgba(0, 0, 0, 0.5);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(940px, calc(100vh - 64px));
  position: relative;
}

.receipts-window::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  pointer-events: none;
}

.receipts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
  padding: 2px 4px 12px;
  min-width: 0;
  max-width: 100%;
}

.receipts-title {
  min-width: 0;
  flex: 1 1 160px;
}

.receipts-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.receipts-demo {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--danger-demo);
  letter-spacing: 0.04em;
}

.btn-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(126, 232, 255, 0.45);
  background: rgba(126, 232, 255, 0.08);
  color: var(--ink);
  border-radius: var(--radius-s);
  min-height: 36px;
  padding: 6px 12px 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(126, 232, 255, 0.12);
}
.btn-portfolio .pf-ico {
  width: 16px;
  height: 16px;
  color: var(--neon);
  flex: 0 0 auto;
}
.btn-portfolio:hover {
  background: rgba(126, 232, 255, 0.16);
  border-color: rgba(126, 232, 255, 0.7);
  color: #fff;
  box-shadow: 0 0 16px rgba(126, 232, 255, 0.22);
}
:lang(ka) .btn-portfolio { letter-spacing: 0; }

.btn-clear {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-radius: var(--radius-s);
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.receipts-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.receipts-tools > * {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

:lang(ka) .btn-clear,
:lang(ka) .btn-portfolio,
:lang(ka) .receipts-filter button,
:lang(ka) .receipts-head h2 {
  letter-spacing: 0;
}

.receipts-filter {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.receipts-filter button {
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.receipts-filter button[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(126, 232, 255, 0.6);
  background: rgba(126, 232, 255, 0.1);
  box-shadow: 0 0 10px rgba(126, 232, 255, 0.18);
}

:lang(ka) .receipts-filter button { letter-spacing: 0; font-size: 11px; }

.receipts-list {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 120px;
  padding: 0 4px 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  overflow: hidden;
}

.receipts-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.receipts-col-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  min-width: 0;
}

.receipts-col-h {
  margin: 0;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipts-col-month .receipts-col-h { color: var(--neon); }
.receipts-col-week .receipts-col-h { color: var(--lilac); }
:lang(ka) .receipts-col-h { text-transform: none; letter-spacing: 0.02em; }

.receipts-sort {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.receipts-sort-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.receipts-sort-btn svg { display: block; pointer-events: none; }

.receipts-sort-btn[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(126, 232, 255, 0.6);
  background: rgba(126, 232, 255, 0.1);
  box-shadow: 0 0 10px rgba(126, 232, 255, 0.18);
}

.receipts-col-week .receipts-sort-btn[aria-pressed="true"] {
  border-color: rgba(214, 168, 255, 0.6);
  background: rgba(214, 168, 255, 0.12);
  box-shadow: 0 0 10px rgba(214, 168, 255, 0.18);
}

.receipts-col-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.receipts-col-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.receipts-empty {
  margin: 24px 8px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
}

.sticker {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 12px 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.sticker.is-inactive {
  opacity: 0.55;
}

.sticker-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.sticker-title {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.sticker-ticker {
  font-family: "Geist Mono", "Noto Sans Georgian", monospace;
  font-weight: 630;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.sticker-market {
  font-family: "Outfit", "Geist", "Noto Sans Georgian", sans-serif;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}

.sticker-status {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
}

.sticker.is-inactive .sticker-status {
  color: var(--faint);
}

.sticker-meta,
.sticker-dates,
.sticker-pot {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.sticker-pot {
  color: var(--ink);
  font-family: "Outfit", "Geist", "Noto Sans Georgian", sans-serif;
  font-weight: 500;
  margin-top: 6px;
}

.sticker-outside {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

@media (max-width: 1180px) {
  .desk {
    flex-wrap: wrap;
    width: 100%;
  }
  .window,
  .receipts-window {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 700px) {
  html, body {
    overflow: auto;
    height: auto;
    min-height: 100%;
  }

  .stage {
    display: block;
    padding: 14px 12px 20px;
    min-height: 100vh;
  }

  .desk {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .window,
  .receipts-window {
    width: 100%;
    max-width: none;
    flex: none;
  }

  .receipts-window {
    max-height: none;
    min-height: 240px;
  }

  .receipts-list {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .receipts-col-list {
    overflow: visible;
  }

  .receipts-head {
    flex-wrap: wrap;
  }

  .header {
    flex-wrap: wrap;
  }

  .toggle {
    flex: 1 1 calc(50% - 8px);
  }

  .timing {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    margin-top: 4px;
  }

  .toggle-timing {
    flex: 1;
    min-width: 0;
    width: 100%;
  }

  .timing-slot {
    flex: 1;
    min-width: 0;
  }

  .atr-labels {
    font-size: 12px;
  }

  .window-caption {
    margin-top: 10px;
  }
  .reel-wrap {
    margin: 10px 0 12px;
  }
}

@media (min-width: 701px) {
  body.is-pay .pay-kicker {
    display: inline-block;
  }
}

.outside-note {
  color: var(--faint) !important;
  font-size: 12.5px !important;
  letter-spacing: 0.02em;
}
.btn-main:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 700px) and (max-height: 900px) {
  body.is-result {
    --row: 52px;
  }
  body.is-result .reel-viewport {
    height: var(--row);
  }
  body.is-result .center-frame {
    top: 0;
  }
  body.is-result .reel-viewport::before,
  body.is-result .reel-viewport::after {
    display: none;
  }
  body.is-result .explain {
    font-size: 13px;
    margin-top: 8px;
  }
  body.is-result .potential {
    margin: 8px 0 8px;
  }
  body.is-result .potential-value {
    font-size: 28px;
  }
  body.is-result .receipts-window {
    max-height: 280px;
  }
}

@media (max-width: 700px) {
  body.is-result .meta-line { margin-top: 8px; gap: 4px; }
  body.is-result .btn-ghost { min-height: 40px; margin-top: 6px; }
  body.is-result .window { padding-bottom: 12px; }
}

@media (max-width: 700px) {
  body.focus-receipts .window { display: none; }
  body.focus-receipts .receipts-window {
    max-height: calc(100vh - 28px);
    min-height: calc(100vh - 28px);
  }
}

/* --- Этап 5: крупные значки тайминга 1M / 1W на квитанциях --- */
.sticker-top {
  align-items: center;
}

.sticker-top .sticker-status {
  margin-left: auto;
}

.sticker-badge {
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 3px 8px 4px;
  border-radius: 9px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  flex: 0 0 auto;
}

.sticker-badge.is-month {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(126, 232, 255, 0.75), 0 0 22px rgba(126, 232, 255, 0.35);
  box-shadow: 0 0 12px rgba(126, 232, 255, 0.28), 0 0 0 1px rgba(126, 232, 255, 0.12) inset;
}

/* Этап 7: 1W сдвинут с розового #ff9ef0 в лиловый — в тон новой строке «Потенциал» недельных квитанций */
.sticker-badge.is-week {
  color: var(--lilac);
  text-shadow: 0 0 10px rgba(214, 168, 255, 0.8), 0 0 22px rgba(214, 168, 255, 0.38);
  box-shadow: 0 0 12px rgba(214, 168, 255, 0.3), 0 0 0 1px rgba(214, 168, 255, 0.14) inset;
}

.sticker.t-month { border-left: 3px solid rgba(126, 232, 255, 0.7); }
.sticker.t-week { border-left: 3px solid rgba(214, 168, 255, 0.72); }

.sticker.is-inactive .sticker-badge {
  text-shadow: none;
  box-shadow: none;
}

.sticker-ticker {
  font-size: 18px;
}

.history-link {
  position: relative;
  z-index: 1;
  display: block;
  margin: 10px 4px 2px;
  padding: 8px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--neon);
  text-decoration: none;
  border: 1px solid rgba(126, 232, 255, 0.3);
  border-radius: var(--radius-s);
  background: rgba(126, 232, 255, 0.05);
}

.history-link:hover { background: rgba(126, 232, 255, 0.12); }

.reel-item { contain: layout paint; }

@media (max-width: 700px) {
  .sticker-badge { font-size: 28px; padding: 3px 7px 4px; }
}

/* --- Этап 6: языки, кнопка Info, окно информации --- */
.stage {
  flex-direction: column;
  gap: 14px;
}

.topbar {
  width: min(1280px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.btn-info {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-info:hover { border-color: rgba(126, 232, 255, 0.6); box-shadow: 0 0 16px rgba(126, 232, 255, 0.18); }

.info-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px; /* мягкий квадрат, не круг */
  border: 1px solid rgba(126, 232, 255, 0.6);
  color: var(--neon);
  font-family: "Geist Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(126, 232, 255, 0.7);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lang-switch button {
  min-width: 42px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch button[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(126, 232, 255, 0.6);
  background: rgba(126, 232, 255, 0.1);
  box-shadow: 0 0 12px rgba(126, 232, 255, 0.2);
}

/* длинные строки RU/KA не должны ломать шапку */
.toggle { overflow-wrap: anywhere; line-height: 1.2; }
.btn-main { overflow-wrap: anywhere; line-height: 1.25; }
.sticker-meta, .sticker-dates, .explain, .lbl-spent, .lbl-full { overflow-wrap: anywhere; }
:lang(ka) .toggle { font-size: 14px; letter-spacing: 0; }
:lang(ka) .btn-main { letter-spacing: 0; }
:lang(ka) .pay-box h1 { font-family: "Noto Sans Georgian", "Outfit", sans-serif; font-weight: 500; font-size: 34px; }
:lang(ka) .h-head h1, :lang(ka) .modal-head h2 { font-family: "Noto Sans Georgian", "Outfit", sans-serif; }
:lang(ka) .sticker-status { letter-spacing: 0.02em; }

/* модальное окно */
body.modal-open { overflow: hidden !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 9, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 30, 46, 0.86), rgba(8, 12, 22, 0.9));
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 40px 120px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 8px;
}

.modal-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Outfit", "Noto Sans Georgian", serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.05;
}

.modal-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--danger-demo); letter-spacing: 0.03em; }

.modal-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.modal-close:hover { border-color: rgba(126, 232, 255, 0.6); color: #fff; }

.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-tabs button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.modal-tabs button[aria-selected="true"] {
  color: #fff;
  border-color: rgba(126, 232, 255, 0.7);
  background: rgba(126, 232, 255, 0.1);
  box-shadow: 0 0 16px rgba(126, 232, 255, 0.2);
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 22px 24px;
  scrollbar-width: none;
}

.modal-body::-webkit-scrollbar { display: none; width: 0; height: 0; }

.info-note { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 980px; }

.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.info-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px 14px 8px;
}

.info-col h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 18px;
}

.info-list li {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 24px 70px 1fr;
  gap: 6px;
  align-items: baseline;
  padding: 5px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.info-list .n { color: var(--faint); font-family: "Geist Mono", monospace; font-size: 11px; text-align: right; }
.info-list .tk { font-family: "Geist Mono", monospace; font-weight: 650; color: #fff; }
.info-list .nm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-list li.is-skipped { opacity: 0.5; }

#info-history .h-intro { margin-bottom: 14px; }
#info-history .h-grid { margin-top: 0; }
#info-history .h-card { background: rgba(255, 255, 255, 0.035); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-color: var(--line); }

@media (max-width: 860px) {
  .info-cols { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar { margin-bottom: 12px; }
  .btn-info { min-height: 38px; }
  .modal { padding: 0; align-items: stretch; }
  .modal-panel { max-height: none; height: 100vh; height: 100dvh; border-radius: 0; border-left: 0; border-right: 0; }
  .modal-head { padding: 16px 16px 6px; }
  .modal-head h2 { font-size: 26px; }
  .modal-tabs { padding: 6px 16px 12px; }
  .modal-tabs button { flex: 1; padding: 8px 10px; font-size: 13px; }
  .modal-body { padding: 14px 14px 24px; }
  .info-list { columns: 1; }
}

@media (min-width: 701px) {
  .receipts-window { max-height: min(940px, calc(100vh - 124px)); }
}

/* грузинский не пишут капсом (иначе Chrome переводит в Мтаврули) */
:lang(ka) .fb, :lang(ka) .sticker-status, :lang(ka) .pay-kicker, :lang(ka) .potential-label, :lang(ka) .potential-sublabel, :lang(ka) .modes-toggle-label { text-transform: none; letter-spacing: 0.02em; }


/* ===================== Этап 7: неоновая строка «Потенциал» ===================== */
.sticker.t-month .sticker-pot {
  color: var(--neon);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(126, 232, 255, 0.7), 0 0 18px rgba(126, 232, 255, 0.32);
}
.sticker.t-week .sticker-pot {
  color: var(--lilac);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(214, 168, 255, 0.75), 0 0 18px rgba(214, 168, 255, 0.34);
}
.sticker.is-inactive .sticker-pot { text-shadow: none; opacity: 0.7; }
.sticker-paid {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--faint);
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
}

/* ===================== Этап 7: экран входа / оплаты ===================== */

.credit-badge {
  margin: -4px auto 10px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid rgba(126, 232, 255, 0.45);
  color: var(--neon);
  font-size: 12px;
  letter-spacing: 0.03em;
  background: rgba(126, 232, 255, 0.06);
  box-shadow: 0 0 14px rgba(126, 232, 255, 0.16);
}
.credit-badge[hidden] { display: none; }

.gate { position: relative; display: flex; flex-direction: column; gap: 14px; }
.gate-kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--neon);
  text-shadow: 0 0 10px rgba(126, 232, 255, 0.5);
}
:lang(ka) .gate-kicker { text-transform: none; letter-spacing: 0.04em; }
.gate-title { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 640; }
.gate-h { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 620; }
.gate-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.gate-hint { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.45; }
.gate-warn { margin: 0; color: var(--danger-demo); font-size: 12px; line-height: 1.45; }
.gate-demo {
  margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45;
  color: var(--danger-demo); border: 1px dashed rgba(255, 211, 122, 0.45); background: rgba(255, 211, 122, 0.05);
}

.gate-choices { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
.gate-choice {
  display: flex; flex-direction: row; align-items: center; gap: 14px; text-align: left;
  width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 16px;
  color: #fff; cursor: pointer; font: inherit;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.gate-choice-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1; }
.gate-choice b { font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.gate-choice small {
  color: rgba(255, 255, 255, 0.8); font-size: 12px; line-height: 1.3; font-weight: 450;
  white-space: nowrap; overflow: hidden; max-width: 100%;
}
.gate-choice small[hidden] { display: none; }
.gate-choice.is-login {
  background: linear-gradient(180deg, #2f6bff, #1a4fe0);
  border: 1px solid rgba(140, 175, 255, 0.8);
  box-shadow: 0 0 22px rgba(47, 107, 255, 0.35);
}
.gate-choice.is-pay {
  background: linear-gradient(180deg, #c49bff, #9a62e8);
  border: 1px solid rgba(214, 168, 255, 0.85);
  box-shadow: 0 0 22px rgba(168, 100, 255, 0.38);
}
.gate-choice:hover { transform: translateY(-1px); filter: brightness(1.06); }
.gate-choice.is-login:hover, .gate-choice.is-pay:hover { border-color: inherit; box-shadow: inherit; }
.gate-ico {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 10px; margin: 0; font-size: 0;
  color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
}
.gate-ico svg { display: block; }
.is-login .gate-ico, .is-pay .gate-ico { color: #fff; box-shadow: none; }
:lang(ka) .gate-choice b { letter-spacing: 0; }

.gate-steps { display: flex; align-items: center; gap: 6px; }
.gate-steps span { width: 28px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); }
.gate-steps span.on { background: var(--neon); box-shadow: 0 0 8px rgba(126, 232, 255, 0.6); }
.gate-steps small { margin-left: 8px; color: var(--faint); font-size: 12px; }

.gate-cta {
  width: 100%; min-height: 54px; padding: 13px 18px; border-radius: 16px; cursor: pointer;
  font-size: 16px; font-weight: 600; color: #fff; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.1); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.gate-cta.is-cb { background: linear-gradient(180deg, #2f6bff, #1a4fe0); border-color: rgba(140, 175, 255, 0.8); box-shadow: 0 0 22px rgba(47, 107, 255, 0.35); }
.gate-cta.is-topup { border-color: rgba(126, 232, 255, 0.55); color: var(--neon); }
.gate-cta.is-quiet { min-height: 44px; font-size: 14px; opacity: 0.85; }
.gate-cta.is-sim { border: 1px dashed rgba(255, 211, 122, 0.7); color: var(--danger-demo); background: rgba(255, 211, 122, 0.06); }
.gate-cta:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.cb-mark {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: #fff; color: #1a4fe0; font-weight: 800; font-size: 14px;
}
.gate .btn-ghost { border-radius: 14px; min-height: 46px; font-size: 14px; cursor: pointer; }

.cb-popup {
  position: absolute; z-index: 5; left: 50%; top: 40px; transform: translateX(-50%);
  width: min(380px, 100%); padding: 0 20px 18px; border-radius: 18px;
  background: #0d1220; border: 1px solid rgba(140, 175, 255, 0.55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 30px rgba(47, 107, 255, 0.25);
  display: flex; flex-direction: column; gap: 12px;
}
.cb-popup-bar {
  margin: 0 -20px; padding: 8px 14px; font-size: 11px; color: var(--faint);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-family: "Geist Mono", monospace;
}
.cb-popup b { font-size: 17px; }
.cb-popup p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cb-email {
  min-height: 44px; padding: 10px 12px; border-radius: 12px; color: var(--ink);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font: inherit; font-size: 14px;
}

.cb-account {
  display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
}
.cb-account .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cb-account small { color: var(--faint); font-size: 12px; }
.cb-account code { font-family: "Geist Mono", monospace; font-size: 13px; }
.cb-bal { color: var(--best); text-shadow: 0 0 10px rgba(134, 255, 192, 0.35); }
.btn-signout {
  justify-self: start; background: none; border: 0; padding: 0; color: var(--muted);
  font-size: 12px; text-decoration: underline; cursor: pointer;
}

.gate-amount { display: grid; gap: 4px; }
.gate-amount small { color: var(--faint); font-size: 12px; }
.gate-amount-v { font-family: "Geist Mono", monospace; font-size: 32px; font-weight: 700; letter-spacing: 0.01em; }
.gate-amount-v .tag {
  color: var(--neon); text-shadow: 0 0 10px rgba(126, 232, 255, 0.65);
  border-bottom: 2px solid rgba(126, 232, 255, 0.6);
}
.gate-amount-v .cur { font-size: 18px; color: var(--muted); font-weight: 500; }

.gate-tokens { display: grid; gap: 6px; }
.gate-tokens small { color: var(--faint); font-size: 12px; }
.gate-tokens .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-tokens .chip {
  padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 13px;
}
.gate-tokens .chip[aria-pressed="true"] { color: #fff; border-color: rgba(214, 168, 255, 0.8); box-shadow: 0 0 14px rgba(214, 168, 255, 0.25); background: rgba(214, 168, 255, 0.1); }

.gate-direct-grid { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.gate-direct-info { display: grid; gap: 14px; min-width: 0; }
.gate-addr { display: grid; gap: 6px; }
.gate-addr small { color: var(--faint); font-size: 12px; }
.gate-addr-line { display: flex; gap: 8px; align-items: center; }
.gate-addr-line code {
  flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: "Geist Mono", monospace; font-size: 12px;
  padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.btn-copy {
  flex: 0 0 auto; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 12px; cursor: pointer;
}
.gate-qr { display: grid; gap: 6px; justify-items: center; width: 184px; }
.qr-svg {
  width: 184px; height: 184px; padding: 8px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 22px rgba(214, 168, 255, 0.3);
}
.qr-svg svg { width: 100%; height: 100%; display: block; }
.gate-qr small { color: var(--danger-demo); font-size: 11px; text-align: center; line-height: 1.35; }

.gate-wait {
  padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(126, 232, 255, 0.35);
  background: rgba(126, 232, 255, 0.04); display: grid; gap: 8px;
}
.gate-wait-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gate-wait-head .pulse {
  width: 12px; height: 12px; border-radius: 3px; background: var(--neon);
  box-shadow: 0 0 10px var(--neon); animation: gatePulse 1.4s ease-in-out infinite;
}
.gate-order { margin-left: auto; color: var(--faint); font-family: "Geist Mono", monospace; font-size: 12px; }
.gate-wait p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.gate-wait-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.gate-expires { font-family: "Geist Mono", monospace; color: var(--ink); }
.gate-demo-inline { color: var(--danger-demo); }
@keyframes gatePulse { 0%, 100% { opacity: 1; transform: rotate(0deg); } 50% { opacity: 0.35; transform: rotate(45deg); } }

.gate-paid { align-items: center; text-align: center; padding: 10px 0 4px; }
.gate-ok {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  color: var(--neon); border: 1px solid var(--neon); box-shadow: 0 0 26px rgba(126, 232, 255, 0.35);
}

@media (max-width: 640px) {
  .gate-title { font-size: 24px; }
  .gate-choice { min-height: 52px; padding: 10px 14px; }
  .gate-choice b { font-size: 15px; }
  .gate-direct-grid { grid-template-columns: 1fr; }
  .gate-qr { justify-self: center; }
  .gate-amount-v { font-size: 27px; }
  .cb-popup { top: 20px; }
}


/* ===================== Этап 8: зона входа/оплаты под главной кнопкой ===================== */
:root { --best: #86ffc0; --random: #d9e2f2; }
.pay-area { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.pay-area:empty { display: none; }
.acct { display: flex; flex-direction: column; gap: 12px; position: relative; }

.type-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace; font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.12em; line-height: 1; padding: 4px 7px; border-radius: 7px;
}
:lang(ka) .type-badge { letter-spacing: 0.02em; }
.type-badge.is-best {
  color: #06140d; background: var(--best);
  box-shadow: 0 0 12px rgba(134, 255, 192, 0.45);
}
.type-badge.is-best::before { content: "★"; }
.type-badge.is-random {
  color: var(--random); border: 1px dashed rgba(217, 226, 242, 0.7); background: rgba(255, 255, 255, 0.04);
}
.type-badge.is-random::before { content: "⚄"; font-size: 12px; }
.type-badge.is-chosen {
  color: #2a1a04; background: var(--chosen);
  box-shadow: 0 0 12px rgba(255, 197, 110, 0.45);
}
.type-badge.is-chosen::before { content: "◆"; font-size: 9px; }

.acct-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-mode {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.035);
}
.acct-mode b { font-size: 14px; line-height: 1.25; font-weight: 620; }
.acct-mode small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.acct-mode.is-random { border: 1px dashed rgba(217, 226, 242, 0.35); }
.acct-mode.is-best { border: 1px solid rgba(134, 255, 192, 0.45); box-shadow: 0 0 18px rgba(134, 255, 192, 0.08) inset; }

.acct-wallet {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
}
.acct-wallet-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acct-wallet-l div, .acct-wallet-r { display: grid; gap: 2px; }
.acct-wallet-r { text-align: right; }
.acct-wallet small { color: var(--faint); font-size: 11px; }
.acct-wallet code { font-family: "Geist Mono", monospace; font-size: 13px; }
.acct-wallet .btn-signout { grid-column: 1 / -1; }

.acct-sign {
  display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(140, 175, 255, 0.45); background: rgba(47, 107, 255, 0.07);
}
.acct-sign b { font-size: 15px; }
.acct-sign p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.acct-free { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.acct-free b { font-size: 14px; font-weight: 600; }
.free-chip { margin-left: auto; padding: 5px 10px; border-radius: 9px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.free-chip.is-on { color: var(--best); border-color: rgba(134, 255, 192, 0.55); box-shadow: 0 0 12px rgba(134, 255, 192, 0.18); }
.free-chip.is-used { color: var(--faint); border-style: dashed; }

.btn-free {
  width: 100%; min-height: 54px; border-radius: 16px; cursor: pointer; font-size: 16px; font-weight: 600;
  color: #fff; border: 1px dashed rgba(217, 226, 242, 0.75); background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(217, 226, 242, 0.1);
}
.btn-free:hover { background: rgba(255, 255, 255, 0.14); }
.btn-free:disabled { opacity: 0.4; cursor: not-allowed; }

.acct-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-bottom .gate-cta { min-height: 48px; font-size: 14px; }
.gate-cta.is-buy { border-color: rgba(134, 255, 192, 0.6); color: var(--best); background: rgba(134, 255, 192, 0.07); }
.acct-flash { margin: 0; color: var(--neon); font-size: 12px; }
.acct-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-price b { font-family: "Geist Mono", monospace; font-size: 26px; }
.test-tag {
  display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--danger-demo);
  border: 1px solid rgba(255, 211, 122, 0.55); background: rgba(255, 211, 122, 0.06); vertical-align: middle;
}
:lang(ka) .test-tag { text-transform: none; letter-spacing: 0; }
.acct-flow .gate-choice { min-height: 56px; }
.btn-main.is-ready {
  background: linear-gradient(180deg, #8fffc6, #3edc90);
  border-color: #6ef0b4;
  color: #06140d;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(62, 220, 144, 0.5);
}
.btn-main.is-ready:hover {
  background: linear-gradient(180deg, #a6ffd2, #4ee49a);
  border-color: #86ffc0;
  color: #06140d;
}
.btn-main.is-ready:active {
  background: linear-gradient(180deg, #6eefb0, #2fc87e);
}

/* окна Coinbase (демо) поверх страницы */
.cb-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.cb-overlay[hidden] { display: none; }
.cb-overlay-back { position: absolute; inset: 0; background: rgba(2, 4, 10, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cb-overlay .cb-popup { position: relative; left: auto; top: auto; transform: none; }
.cb-msg-label { color: var(--faint); font-size: 11px; }
.cb-msg {
  margin: 0; padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: "Geist Mono", monospace; font-size: 11.5px; line-height: 1.5; color: var(--ink);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.cb-popup .cb-free { color: var(--best); }

/* место в рейтинге: карточка результата и квитанции */
.spin-rank { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; font-size: 13px; color: var(--ink); }
.spin-rank-text { font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace; }
.sticker-type { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 12px; }
.sticker-type[hidden] { display: none; }
.sticker-rank { font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace; color: var(--ink); }
.sticker.is-inactive .type-badge { box-shadow: none; opacity: 0.7; }

@media (max-width: 640px) {
  .acct-modes { grid-template-columns: 1fr; }
  .acct-bottom { grid-template-columns: 1fr; }
  .acct-wallet { grid-template-columns: 1fr; }
  .acct-wallet-r { text-align: left; }
}

/* ===================== Этап 8b: live-режим (выключен по умолчанию) ===================== */
.gate-live {
  margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.45;
  color: #ffb4a8; border: 1px solid rgba(255, 140, 120, 0.6); background: rgba(255, 120, 100, 0.07);
}
.gate-live-status { color: var(--neon); }
.gate-qr small.is-live { color: var(--best); }
.gate-cta.is-check { border-color: rgba(126, 232, 255, 0.6); color: var(--neon); background: rgba(126, 232, 255, 0.06); }
.acct-mode small.acct-top10 { color: var(--ink); }
.acct-top10-note { margin-top: -4px; text-align: center; }

/* ===================== Этап 8d: счётчик, восстановление по хэшу, незавершённая оплата ===================== */
.acct-paidspins b { color: var(--best); }
.acct-recover { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); background: rgba(255, 255, 255, 0.025); }
.acct-recover small { color: var(--muted); font-size: 12px; }
.acct-recover-row { display: flex; gap: 8px; }
.acct-recover-input {
  flex: 1; min-width: 0; min-height: 38px; padding: 8px 10px; border-radius: 10px; color: var(--ink);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-family: "Geist Mono", monospace; font-size: 12px;
}
.acct-recover p { margin: 0; }
.acct-pending {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(126, 232, 255, 0.45); background: rgba(126, 232, 255, 0.05); font-size: 13px;
}
.gate-tx { margin: 0; font-size: 12px; color: var(--muted); font-family: "Geist Mono", monospace; overflow-wrap: anywhere; }
.gate-tx a { color: var(--neon); }
.credit-badge { margin: 4px auto 10px; }


/* ===================== Этап 9: разметка после входа ===================== */
.stage {
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: safe center;
}
.header-wallet {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  margin: 0 8px;
}
.header-wallet[hidden],
.header-wallet:empty { display: none; }

.header-wallet-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-wallet-addr {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-wallet-bal {
  color: var(--best);
  font-family: "Geist Mono", monospace;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(134, 255, 192, 0.45);
}

.header-wallet-out {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11.5px;
  text-underline-offset: 2px;
}
:lang(ka) .header-wallet-out { letter-spacing: 0; font-size: 11px; }

.spin-status {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.spin-status[hidden] { display: none; }
.spin-status-box {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.spin-status .acct-free { width: 100%; }
.spin-status .free-chip { max-width: 100%; overflow-wrap: anywhere; }
:lang(ka) .spin-status .free-chip { flex-basis: 100%; margin-left: 0; width: fit-content; max-width: 100%; }
.spin-status .btn-free { margin-top: 2px; }
.spin-status .acct-top10-note { margin: 0; }

.acct-topup-foot {
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .header-wallet-card { gap: 8px; padding: 4px 8px 4px 5px; }
  .header-wallet-addr, .header-wallet-bal { font-size: 12px; }
  .header-wallet-out { font-size: 11px; }
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; }
  .header-wallet { order: 3; flex-basis: 100%; margin: 0; justify-content: flex-start; }
}


/* ===================== Этап 9d: потенциал (tabular lining) и скрываемые карточки RANDOM/BEST ===================== */
.acct-modes-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin: 0;
  transition: grid-template-rows 0.28s ease, opacity 0.22s ease, margin 0.28s ease;
}
.acct-modes-wrap > .acct-modes {
  min-height: 0;
  overflow: hidden;
}
.acct-modes-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: 2px;
}
.modes-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
  padding: 4px 8px 2px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: none;
  color: var(--faint);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.modes-toggle:hover { color: var(--muted); }
.modes-toggle-label { text-align: center; overflow-wrap: anywhere; }
.modes-toggle-chevron {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform 0.28s ease;
}
.modes-toggle[aria-expanded="true"] .modes-toggle-chevron { transform: rotate(180deg); }
.acct > .modes-toggle {
  width: auto;
  margin: 0 auto 8px;
  padding: 4px 10px;
  border-top: 0;
  border-radius: 8px;
}


/* ===================== Этап 9e: тег рынка, фильтр, две колонки квитанций ===================== */
.sticker-pot {
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 8px;
}
.sticker.t-month .sticker-pot,
.sticker.t-week .sticker-pot { font-weight: 700; }

/* ===================== Этап 11: карточка квитанции (wow) ===================== */
.sticker-ticker,
.sticker-badge {
  cursor: pointer;
}
.sticker-ticker {
  border-radius: 6px;
}
.sticker-ticker:hover,
.sticker-ticker:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}
.sticker-badge:hover,
.sticker-badge:focus-visible {
  filter: brightness(1.12);
  box-shadow: 0 0 16px rgba(126, 232, 255, 0.35);
  outline: none;
}
.sticker.t-week .sticker-badge:hover,
.sticker.t-week .sticker-badge:focus-visible {
  box-shadow: 0 0 16px rgba(214, 168, 255, 0.4);
}

.wow-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wow-modal[hidden] { display: none; }

.wow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wow-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.92), rgba(6, 10, 18, 0.94));
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 0 1px rgba(126, 232, 255, 0.12) inset,
    0 40px 120px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.wow-modal.is-month .wow-panel {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 60px rgba(126, 232, 255, 0.12),
    0 40px 120px rgba(0, 0, 0, 0.7);
  border-color: rgba(126, 232, 255, 0.45);
}
.wow-modal.is-week .wow-panel {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 60px rgba(214, 168, 255, 0.14),
    0 40px 120px rgba(0, 0, 0, 0.7);
  border-color: rgba(214, 168, 255, 0.45);
}

.wow-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.wow-close:hover { border-color: rgba(126, 232, 255, 0.6); color: #fff; }
.wow-modal.is-week .wow-close:hover { border-color: rgba(214, 168, 255, 0.7); }

.wow-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 26px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wow-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

.wow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding-right: 60px;
}
.wow-head-main {
  flex: 1 1 240px;
  min-width: 0;
}

.wow-size {
  flex: 0 1 300px;
  width: 100%;
  max-width: 320px;
  padding: 10px 12px 11px;
  border-radius: 14px;
  border: 1px solid rgba(126, 232, 255, 0.32);
  background: linear-gradient(180deg, rgba(126, 232, 255, 0.10), rgba(126, 232, 255, 0.04));
  box-shadow: 0 0 20px rgba(126, 232, 255, 0.08);
  min-width: 0;
}
.wow-modal.is-week .wow-size {
  border-color: rgba(214, 168, 255, 0.38);
  background: linear-gradient(180deg, rgba(214, 168, 255, 0.12), rgba(214, 168, 255, 0.04));
  box-shadow: 0 0 20px rgba(214, 168, 255, 0.10);
}
.wow-size-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.wow-size-budget {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.wow-size-budget-lab {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.wow-size-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
}
.wow-size-input:focus {
  outline: none;
  border-color: rgba(126, 232, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(126, 232, 255, 0.18);
}
.wow-modal.is-week .wow-size-input:focus {
  border-color: rgba(214, 168, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(214, 168, 255, 0.18);
}
.wow-size-ccy {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.wow-size-result {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.wow-size-amount {
  margin: 2px 0 4px;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(126, 232, 255, 0.35);
}
.wow-modal.is-week .wow-size-amount {
  color: var(--lilac);
  text-shadow: 0 0 12px rgba(214, 168, 255, 0.4);
}
.wow-size-share {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
}
.wow-size-formula {
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.wow-size-note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--faint);
}
.wow-size.is-na .wow-size-amount {
  color: var(--faint);
  text-shadow: none;
  font-size: 16px;
}
.wow-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
:lang(ka) .wow-kicker { letter-spacing: 0.02em; text-transform: none; }
.wow-modal.is-month .wow-kicker { color: var(--neon); }
.wow-modal.is-week .wow-kicker { color: var(--lilac); }

.wow-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 8px;
}
.wow-title {
  margin: 0;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
}
.wow-market { color: var(--muted); font-size: 16px; font-weight: 500; }
.wow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.wow-meta b { color: var(--ink); font-weight: 600; }

.wow-chart-block {
  margin: 16px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wow-price-line {
  margin: 0;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.15em 0.35em;
  text-align: center;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(-10px);
  animation: wow-price-in 0.65s ease 2.5s forwards;
  color: #c8ff6e;
  background: rgba(180, 255, 80, 0.08);
  border: 1px solid rgba(180, 255, 80, 0.38);
  text-shadow: 0 0 8px rgba(190, 255, 90, 0.7), 0 0 18px rgba(190, 255, 90, 0.35);
  box-shadow: 0 0 18px rgba(180, 255, 80, 0.16);
}
.wow-price-line.is-down {
  transform: translateY(10px);
  animation-delay: 2.65s;
  color: #ff8fa3;
  background: rgba(255, 110, 140, 0.08);
  border-color: rgba(255, 120, 145, 0.42);
  text-shadow: 0 0 8px rgba(255, 120, 145, 0.7), 0 0 18px rgba(255, 110, 140, 0.35);
  box-shadow: 0 0 18px rgba(255, 110, 140, 0.16);
}
.wow-eq-label { font-weight: 700; letter-spacing: 0.04em; }
.wow-eq-num { font-weight: 700; }
.wow-eq-op { font-weight: 650; opacity: 0.9; }
.wow-eq-result {
  font-weight: 800;
  font-size: 1.16em;
  letter-spacing: 0.01em;
}
.wow-eq-vol { font-weight: 650; opacity: 0.92; }
@keyframes wow-price-in {
  to { opacity: 1; transform: translateY(0); }
}

.wow-screen {
  position: relative;
  margin: 0;
  padding: 10px 8px 8px;
  border-radius: 14px;
  border: 1.5px solid rgba(126, 232, 255, 0.45);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(126, 232, 255, 0.1), transparent 55%),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    0 0 0 1px rgba(126, 232, 255, 0.12) inset,
    0 0 40px rgba(126, 232, 255, 0.08) inset;
  overflow: hidden;
}
.wow-modal.is-week .wow-screen {
  border-color: rgba(214, 168, 255, 0.5);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(214, 168, 255, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    0 0 0 1px rgba(214, 168, 255, 0.12) inset,
    0 0 40px rgba(214, 168, 255, 0.08) inset;
}
.wow-plot { position: relative; }
.wow-plot svg,
.wow-screen svg { display: block; width: 100%; height: auto; }
.wow-ecg-ghost {
  fill: none;
  stroke: var(--neon);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.28;
}
.wow-modal.is-week .wow-ecg-ghost { stroke: var(--lilac); }
.wow-ecg {
  fill: none;
  stroke: var(--neon);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(126, 232, 255, 0.85));
  --ecg-len: 1400;
  stroke-dasharray: var(--ecg-len);
  stroke-dashoffset: var(--ecg-len);
  animation: wow-ecg-draw 6s ease-in-out infinite;
}
.wow-modal.is-week .wow-ecg {
  stroke: var(--lilac);
  filter: drop-shadow(0 0 6px rgba(214, 168, 255, 0.85));
}
@keyframes wow-ecg-draw {
  0% { stroke-dashoffset: var(--ecg-len); opacity: 1; }
  42% { stroke-dashoffset: 0; opacity: 1; }
  82% { stroke-dashoffset: 0; opacity: 1; }
  94% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: var(--ecg-len); opacity: 0; }
}
.wow-end-glow {
  fill: var(--neon);
  opacity: 0;
  filter: blur(3px);
  animation: wow-end-dot 6s ease-in-out infinite;
}
.wow-end-dot {
  fill: #f4fdff;
  stroke: var(--neon);
  stroke-width: 1.5;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(126, 232, 255, 1));
  animation: wow-end-dot 6s ease-in-out infinite;
}
.wow-modal.is-week .wow-end-glow { fill: var(--lilac); }
.wow-modal.is-week .wow-end-dot {
  fill: #fcf6ff;
  stroke: var(--lilac);
  filter: drop-shadow(0 0 6px rgba(214, 168, 255, 1));
}
@keyframes wow-end-dot {
  0%, 40% { opacity: 0; }
  46%, 82% { opacity: 1; }
  92%, 100% { opacity: 0; }
}
.wow-spark { fill: none; stroke: rgba(232, 238, 248, 0.22); stroke-width: 1.2; }
.wow-ref-line { stroke: rgba(232, 238, 248, 0.55); stroke-width: 1; stroke-dasharray: 5 5; }
.wow-typ-line { stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.55; }
.wow-typ-line.is-up { stroke: #c8ff6e; opacity: 0.72; }
.wow-typ-line.is-down { stroke: #ff8fa3; opacity: 0.72; }
.wow-spent-band { fill: currentColor; opacity: 0.1; }

.wow-last-plate {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  min-width: 132px;
  max-width: 42%;
  padding: 8px 12px 9px;
  border-radius: 10px;
  background: #7ee8ff;
  color: #041018;
  text-align: center;
  box-shadow: 0 0 22px rgba(126, 232, 255, 0.55);
  pointer-events: none;
  line-height: 1.1;
}
.wow-modal.is-week .wow-last-plate {
  background: #d6a8ff;
  color: #16081f;
  box-shadow: 0 0 22px rgba(214, 168, 255, 0.55);
}
.wow-last-kicker {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}
:lang(ka) .wow-last-kicker {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 12px;
}
.wow-last-value {
  display: block;
  margin-top: 3px;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.wow-approx-plate {
  position: absolute;
  right: 8px;
  z-index: 2;
  min-width: 112px;
  max-width: 38%;
  padding: 6px 10px 7px;
  border-radius: 9px;
  text-align: center;
  pointer-events: none;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(-50%);
  animation: wow-approx-in 0.65s ease 2.5s forwards;
}
@keyframes wow-approx-in {
  to { opacity: 1; }
}
.wow-approx-plate.is-up {
  top: var(--typ-up, 16%);
  background: #c8ff6e;
  color: #101806;
  box-shadow: 0 0 20px rgba(190, 255, 80, 0.62);
}
.wow-approx-plate.is-down {
  top: var(--typ-down, 84%);
  background: #ff8fa3;
  color: #2a0810;
  box-shadow: 0 0 20px rgba(255, 110, 140, 0.58);
  animation-delay: 2.65s;
}
.wow-approx-kicker {
  display: block;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}
:lang(ka) .wow-approx-kicker {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 10px;
}
.wow-approx-value {
  display: block;
  margin-top: 2px;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: clamp(15px, 1.9vw, 22px);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

@media (prefers-reduced-motion: reduce) {
  .wow-price-line,
  .wow-approx-plate,
  .wow-ecg,
  .wow-end-dot,
  .wow-end-glow {
    animation: none !important;
  }
  .wow-price-line { opacity: 1; transform: none; }
  .wow-approx-plate { opacity: 1; }
  .wow-approx-plate.is-up,
  .wow-approx-plate.is-down { transform: translateY(-50%); }
  .wow-ecg { stroke-dashoffset: 0; opacity: 1; }
  .wow-end-dot,
  .wow-end-glow { opacity: 1; }
}

.wow-caption,
.wow-spent-line,
.wow-left-line {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.wow-caption { margin-top: 2px; }
.wow-left-line { color: var(--ink); }
.wow-approx-note {
  margin: 10px 0 0;
  padding: 0 8px;
  text-align: center;
  color: #ff4d55;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 60, 70, 0.25);
}
:lang(ka) .wow-approx-note {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
  font-weight: 700;
}

.wow-ind-head,
.wow-rate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 8px;
}
.wow-ind-head h3,
.wow-rate-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.wow-period { color: var(--muted); font-size: 12px; }

.wow-ind-toggle {
  display: block;
  width: 100%;
  margin: 4px 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: inherit;
  font: inherit;
  font-weight: 650;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: center;
}
.wow-ind-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.wow-ind-wrap.is-compact .wow-secs { display: none; }

.wow-sec { margin: 0 0 8px; }
.wow-sec-h {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: inherit;
  font: inherit;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}
.wow-sec-h:hover { background: rgba(255, 255, 255, 0.07); }
.wow-sec-h .chev {
  display: inline-block;
  width: 1em;
  text-align: center;
  transition: transform 0.18s ease;
  color: var(--muted);
}
.wow-sec.is-closed .wow-sec-h .chev { transform: rotate(-90deg); }
.wow-sec.is-closed .wow-ind { display: none; }
.wow-sec .wow-ind { margin-top: 6px; }

.wow-ind {
  display: grid;
  gap: 6px;
}
.wow-row {
  display: grid;
  grid-template-columns: minmax(8.8em, 13em) minmax(0, 1fr) auto 32px;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.wow-row.is-market {
  background: rgba(80, 150, 255, 0.06);
  border-color: rgba(110, 182, 255, 0.22);
}
.wow-row .nm { font-weight: 600; font-size: 13px; }
.wow-row .val { color: var(--muted); font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.wow-chip {
  justify-self: end;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  white-space: nowrap;
}
.wow-chip.is-above { color: #9ef0c7; border-color: rgba(134, 255, 192, 0.4); background: rgba(134, 255, 192, 0.08); }
.wow-chip.is-below { color: #ffc9d4; border-color: rgba(255, 158, 174, 0.4); background: rgba(255, 158, 174, 0.08); }
.wow-chip.is-neutral { color: #e8eef8; border-color: rgba(232, 238, 248, 0.28); }
.wow-chip.is-na { color: var(--faint); }

.wow-star {
  justify-self: stretch;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  line-height: 1;
}
.wow-star.is-up { color: #5dff9a; text-shadow: 0 0 8px rgba(93, 255, 154, 0.45); }
.wow-star.is-down { color: #ff6b7d; text-shadow: 0 0 8px rgba(255, 107, 125, 0.4); }
.wow-star.is-neutral { color: #f4f7fb; opacity: 0.88; }
.wow-star.is-na { color: var(--faint); font-size: 13px; }
.wow-star.is-market {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #6eb6ff;
  border: 1.5px solid #6eb6ff;
  box-shadow: 0 0 8px rgba(110, 182, 255, 0.35);
  font-size: 12px;
  text-shadow: none;
}
.wow-star.is-market.is-up {
  border-color: #5dff9a;
  box-shadow: 0 0 8px rgba(93, 255, 154, 0.35);
}
.wow-star.is-market.is-down {
  border-color: #ff6b7d;
  box-shadow: 0 0 8px rgba(255, 107, 125, 0.35);
}
.wow-star.is-market.is-neutral {
  border-color: rgba(244, 247, 251, 0.65);
  color: #cfe6ff;
}
.wow-star.is-market.is-na {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.wow-star.is-market .sym { line-height: 1; }
.wow-star.is-market i {
  font-style: normal;
  font-size: 8px;
  margin-left: 0;
  line-height: 1;
}
.wow-star.is-market.is-up i { color: #5dff9a; }
.wow-star.is-market.is-down i { color: #ff6b7d; }
.wow-star.is-market.is-neutral i { color: #f4f7fb; }

.wow-counts {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}
.wow-stars { letter-spacing: 0.12em; font-size: 20px; color: var(--chosen); }
.wow-stars.is-yellow {
  color: #ffd24a;
  text-shadow: 0 0 10px rgba(255, 210, 74, 0.35);
  font-size: 22px;
}
.wow-modal.is-week .wow-stars { color: var(--lilac); }
.wow-modal.is-week .wow-stars.is-yellow { color: #ffd24a; text-shadow: 0 0 10px rgba(255, 210, 74, 0.35); }
.wow-formula {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.wow-rate-text { margin: 6px 0 0; font-size: 15px; line-height: 1.4; }
.wow-disc {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--danger-demo);
}
.wow-computed,
.wow-missing {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.4;
}
.wow-missing { color: var(--danger-demo); }

@media (max-width: 1280px) {
  .wow-modal { padding: 16px; }
  .wow-scroll { padding: 18px 18px 20px; }
  .wow-title { font-size: 28px; }
  .wow-size { max-width: 300px; }
  .wow-size-amount { font-size: 20px; }
  .wow-row { grid-template-columns: minmax(7.5em, 11em) minmax(0, 1fr) auto 32px; }
  .wow-price-line { font-size: 17px; padding: 9px 12px; }
  .wow-last-value { font-size: 22px; }
  .wow-approx-value { font-size: 18px; }
  .wow-approx-note { font-size: 12.5px; }
}
@media (max-width: 720px) {
  .wow-modal { padding: 0; align-items: stretch; }
  .wow-panel { width: 100%; max-height: 100dvh; border-radius: 0; }
  .wow-head { padding-right: 56px; }
  .wow-size { flex: 1 1 100%; max-width: none; }
  .wow-row {
    grid-template-columns: minmax(0, 1fr) auto 32px;
    column-gap: 8px;
    row-gap: 2px;
  }
  .wow-row .nm { grid-column: 1; grid-row: 1; }
  .wow-row .val { grid-column: 1; grid-row: 2; }
  .wow-chip { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; }
  .wow-star { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .wow-price-line { font-size: 14px; padding: 8px 8px; }
  .wow-last-plate { left: 6px; min-width: 108px; padding: 6px 8px 7px; }
  .wow-last-kicker { font-size: 8px; letter-spacing: 0.1em; }
  :lang(ka) .wow-last-kicker { font-size: 10px; }
  .wow-last-value { font-size: 16px; }
  .wow-approx-plate { right: 6px; max-width: 44%; padding: 5px 8px 6px; }
  .wow-approx-kicker { font-size: 8px; letter-spacing: 0.08em; }
  :lang(ka) .wow-approx-kicker { font-size: 9px; }
  .wow-approx-value { font-size: 14px; }
  .wow-approx-note { font-size: 12px; letter-spacing: 0.04em; }
}


/* --- Stage 14: Portfolio popup --- */
.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pf-modal[hidden] { display: none; }
.pf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pf-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.94), rgba(6, 10, 18, 0.96));
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border: 1px solid rgba(126, 232, 255, 0.4);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 60px rgba(126, 232, 255, 0.12),
    0 40px 120px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.pf-modal.is-week .pf-panel {
  border-color: rgba(214, 168, 255, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 60px rgba(214, 168, 255, 0.14),
    0 40px 120px rgba(0, 0, 0, 0.7);
}
.pf-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 28px 26px;
  scrollbar-width: none;
}
.pf-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

.pf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  padding-right: 52px;
  margin: 0 0 16px;
}
.pf-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}
.pf-modal.is-week .pf-kicker { color: var(--lilac); }
:lang(ka) .pf-kicker { letter-spacing: 0.02em; text-transform: none; }
.pf-title {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.pf-counts {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.pf-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.pf-budget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(126, 232, 255, 0.28);
  background: rgba(126, 232, 255, 0.06);
}
.pf-modal.is-week .pf-budget {
  border-color: rgba(214, 168, 255, 0.3);
  background: rgba(214, 168, 255, 0.07);
}
.pf-budget-lab { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pf-budget input {
  width: 7.5em;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
}
.pf-budget input:focus {
  outline: none;
  border-color: rgba(126, 232, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(126, 232, 255, 0.18);
}
.pf-modal.is-week .pf-budget input:focus {
  border-color: rgba(214, 168, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(214, 168, 255, 0.18);
}
.pf-ccy { font-size: 11px; font-weight: 650; letter-spacing: 0.06em; color: var(--muted); }
.pf-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
}
.pf-tabs button {
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}
.pf-tabs button[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(126, 232, 255, 0.6);
  background: rgba(126, 232, 255, 0.1);
  box-shadow: 0 0 10px rgba(126, 232, 255, 0.18);
}
.pf-modal.is-week .pf-tabs button[aria-pressed="true"] {
  border-color: rgba(214, 168, 255, 0.65);
  background: rgba(214, 168, 255, 0.12);
  box-shadow: 0 0 10px rgba(214, 168, 255, 0.2);
}

.pf-empty {
  margin: 40px auto;
  max-width: 28em;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.pf-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.85fr);
  gap: 22px 22px;
  align-items: start;
}
.pf-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 8.4em;
  gap: 8px 10px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: default;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pf-row.is-hot {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 18px rgba(126, 232, 255, 0.08);
}
.pf-swatch {
  width: 8px;
  border-radius: 99px;
  align-self: stretch;
  min-height: 36px;
}
.pf-row-main { min-width: 0; }
.pf-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.4em;
  align-items: center;
  column-gap: 8px;
}
.pf-ident {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}
.pf-tick {
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.03em;
}
.pf-mkt { font-size: 12px; color: var(--muted); }
.pf-status {
  width: 8.4em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}
.pf-badge {
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  border: 1px solid rgba(134, 255, 192, 0.35);
  color: #9ef0c7;
  background: rgba(134, 255, 192, 0.08);
  white-space: nowrap;
}
.pf-badge.is-stale {
  border-color: rgba(255, 196, 90, 0.45);
  color: #ffd27a;
  background: rgba(255, 196, 90, 0.1);
}
.pf-chips {
  display: grid;
  grid-template-columns: 8.8em 7.2em minmax(12.6em, 1fr);
  gap: 5px;
  margin-top: 6px;
  align-items: stretch;
}
.pf-chip,
.pf-vchip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: 3px 7px 4px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}
.pf-chip-k {
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.2;
}
:lang(ka) .pf-chip-k {
  letter-spacing: 0;
  text-transform: none;
  font-size: 9px;
}
.pf-chip-v {
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-vol {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  min-width: 0;
}
.pf-vchip.is-total {
  border-color: rgba(232, 238, 248, 0.5);
  background: rgba(255, 255, 255, 0.1);
}
.pf-vchip.is-total .pf-chip-v { color: #f4f7fb; }
.pf-vchip.is-spent {
  border-color: rgba(255, 120, 145, 0.48);
  background: rgba(255, 80, 100, 0.1);
}
.pf-vchip.is-spent .pf-chip-k { color: rgba(255, 160, 170, 0.8); }
.pf-vchip.is-spent .pf-chip-v { color: #ff8fa3; }
.pf-vchip.is-left {
  border-color: rgba(180, 255, 80, 0.42);
  background: rgba(180, 255, 80, 0.08);
}
.pf-vchip.is-left .pf-chip-k { color: rgba(200, 255, 140, 0.8); }
.pf-vchip.is-left .pf-chip-v { color: #c8ff6e; }
.pf-row-side {
  width: 8.4em;
  text-align: right;
  white-space: nowrap;
  align-self: center;
}
.pf-amt {
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.pf-share { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.pf-pot { margin: 2px 0 0; font-size: 12px; color: var(--neon); }
.pf-modal.is-week .pf-pot { color: var(--lilac); }

.pf-outside {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.pf-outside-h {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.pf-outside-h .chev { display: inline-block; width: 1em; transition: transform 0.18s ease; }
.pf-outside.is-closed .chev { transform: rotate(-90deg); }
.pf-outside.is-closed .pf-outside-body { display: none; }
.pf-outside-body { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.pf-row.is-out,
.pf-row.is-na {
  opacity: 0.62;
  filter: grayscale(0.35);
}
.pf-row.is-na .pf-amt,
.pf-row.is-na .pf-pot { color: var(--faint); }

.pf-chart {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 4px 4px;
}
.pf-donut-wrap {
  position: relative;
  width: min(100%, 340px);
}
.pf-donut-wrap svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 16px rgba(126, 232, 255, 0.12)); }
.pf-slice { cursor: pointer; transition: opacity 0.15s, filter 0.15s; }
.pf-slice.is-dim { opacity: 0.38; }
.pf-slice.is-hot { filter: brightness(1.18) drop-shadow(0 0 8px rgba(255, 255, 255, 0.35)); }
.pf-center {
  position: absolute;
  inset: 26% 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.pf-center-lab { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .pf-center-lab { letter-spacing: 0.02em; text-transform: none; }
.pf-center-amt {
  margin: 2px 0 0;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(126, 232, 255, 0.35);
  line-height: 1.15;
}
.pf-modal.is-week .pf-center-amt { color: var(--lilac); text-shadow: 0 0 12px rgba(214, 168, 255, 0.4); }
.pf-center-pct { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pf-legend {
  width: 100%;
  display: grid;
  gap: 5px;
  font-size: 12px;
}
.pf-leg {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 3px 4px;
  border-radius: 8px;
  color: var(--muted);
}
.pf-leg.is-hot { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.pf-leg i {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.pf-leg-tick { font-weight: 650; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pf-scale-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #ffd27a;
}

.pf-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}
.pf-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(126, 232, 255, 0.28);
  background: linear-gradient(180deg, rgba(126, 232, 255, 0.09), rgba(126, 232, 255, 0.03));
  box-shadow: 0 0 20px rgba(126, 232, 255, 0.07);
}
.pf-modal.is-week .pf-card {
  border-color: rgba(214, 168, 255, 0.3);
  background: linear-gradient(180deg, rgba(214, 168, 255, 0.1), rgba(214, 168, 255, 0.03));
}
.pf-card:nth-child(2) { opacity: 0.92; }
.pf-card:nth-child(3) { opacity: 0.84; }
.pf-card-k { margin: 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .pf-card-k { letter-spacing: 0.02em; text-transform: none; }
.pf-card-v {
  margin: 6px 0 0;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(126, 232, 255, 0.3);
}
.pf-modal.is-week .pf-card-v { color: var(--lilac); text-shadow: 0 0 12px rgba(214, 168, 255, 0.35); }
.pf-card-s { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pf-card-sub { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--faint); }

.pf-disc {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--danger-demo);
}
.pf-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pf-recalc { margin: 0; flex: 1 1 20em; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pf-refresh {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 1280px) {
  .pf-modal { padding: 16px; }
  .pf-scroll { padding: 18px 18px 20px; }
  .pf-title { font-size: 24px; }
  .pf-main { grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.8fr); gap: 14px; }
  .pf-card-v { font-size: 19px; }
}
@media (max-width: 900px) {
  .pf-main { grid-template-columns: 1fr; }
  .pf-chart { position: static; }
  .pf-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pf-modal { padding: 0; align-items: stretch; }
  .pf-panel { width: 100%; max-height: 100dvh; border-radius: 0; }
  .pf-head { padding-right: 52px; }
}


/* --- Stage 14b: developer seed dock --- */
.dev-dock {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 76px;
  pointer-events: auto;
}
.dev-tag {
  align-self: flex-start;
  padding: 1px 5px;
  border: 1px dashed rgba(255, 211, 122, 0.55);
  border-radius: 4px;
  color: var(--danger-demo);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
}
.btn-dev {
  margin: 0;
  padding: 8px 6px;
  border: 1px dashed rgba(255, 211, 122, 0.45);
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.55);
  color: rgba(232, 238, 248, 0.72);
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.btn-dev:hover {
  color: #fff;
  border-color: rgba(255, 211, 122, 0.8);
  background: rgba(255, 211, 122, 0.08);
}
.btn-dev.is-remove {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
}
.btn-dev.is-remove:hover {
  color: #ffc9d4;
  border-color: rgba(255, 158, 174, 0.55);
}
:lang(ka) .btn-dev { letter-spacing: 0; font-size: 10px; }

.dev-toast {
  position: fixed;
  right: 96px;
  bottom: 24px;
  z-index: 90;
  max-width: 22em;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 211, 122, 0.45);
  background: rgba(12, 16, 24, 0.92);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.dev-toast[hidden] { display: none; }

.type-badge.is-dev {
  border-color: rgba(255, 211, 122, 0.55);
  background: rgba(255, 211, 122, 0.1);
  color: var(--danger-demo);
  letter-spacing: 0.1em;
}
.type-badge.is-dev::before { content: none; }
.sticker-paid.is-dev {
  color: var(--danger-demo);
}

@media (max-width: 700px) {
  .dev-dock {
    top: auto;
    bottom: 12px;
    right: 10px;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    max-width: calc(100vw - 20px);
  }
  .btn-dev { padding: 7px 10px; }
  .dev-toast { right: 12px; bottom: 86px; }
}


/* --- Stage 14c: remaining vs full vol, late badges, 60% cap, rebalance, market filter --- */
.wow-eq-hint {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.04em;
  opacity: 0.72;
  text-shadow: none;
  text-align: center;
}
:lang(ka) .wow-eq-hint { letter-spacing: 0; font-size: 11.5px; }

.wow-size-left {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.wow-size-basis {
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

.win-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}
:lang(ka) .win-badge { letter-spacing: 0; font-size: 10.5px; }
.win-badge.is-late {
  color: #ffd37a;
  border-color: rgba(255, 211, 122, 0.55);
  background: rgba(255, 211, 122, 0.12);
}
.win-badge.is-none {
  color: #ffb0a8;
  border-color: rgba(255, 120, 100, 0.55);
  background: rgba(255, 90, 80, 0.14);
}

.pf-meta .win-badge { margin-left: 4px; vertical-align: middle; }
.pf-row-top .win-badge { margin-left: 2px; }

.pf-rebalance {
  margin: 16px 0 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.pf-rebalance-h {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.pf-rebalance-h .chev {
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.15s;
}
.pf-rebalance.is-closed .chev { transform: rotate(-90deg); }
.pf-rebalance.is-closed .pf-rebalance-body { display: none; }
.pf-rebalance-body {
  padding: 0 14px 12px 32px;
  display: grid;
  gap: 6px;
}
.pf-rebalance-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pf-head-tools { width: 100%; }
}

@media (max-width: 1100px) {
  .pf-chips { grid-template-columns: 8.4em 6.8em minmax(11.5em, 1fr); }
  .pf-chip-v { font-size: 11.5px; }
}
@media (max-width: 720px) {
  .pf-row { grid-template-columns: 8px minmax(0, 1fr); }
  .pf-row-side { width: auto; grid-column: 2; text-align: left; }
  .pf-row-top { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-status { width: auto; }
  .pf-chips { grid-template-columns: 1fr 1fr; }
  .pf-vol { grid-column: 1 / -1; }
}


/* --- Stage 15: snapshots 1 · 2 · Now --- */
.pf-snap-tabs { align-items: center; }
.pf-snap-tabs-lab {
  padding: 0 6px 0 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
:lang(ka) .pf-snap-tabs-lab, :lang(ru) .pf-snap-tabs-lab { letter-spacing: 0.04em; }
.pf-snap-tabs button { min-width: 34px; font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace; }
.pf-snap-tabs button[aria-pressed="true"] {
  border-color: rgba(255, 214, 120, 0.7);
  background: rgba(255, 196, 90, 0.13);
  box-shadow: 0 0 12px rgba(255, 196, 90, 0.24);
}
.pf-snap-tabs button[data-snap="now"][aria-pressed="true"] {
  border-color: rgba(126, 232, 255, 0.65);
  background: rgba(126, 232, 255, 0.12);
  box-shadow: 0 0 12px rgba(126, 232, 255, 0.22);
}

.pf-snap {
  margin: 14px 0 14px;
  padding: 12px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(126, 232, 255, 0.07), transparent 55%),
    rgba(255, 255, 255, 0.025);
}
.pf-modal.is-week .pf-snap {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(214, 168, 255, 0.09), transparent 55%),
    rgba(255, 255, 255, 0.025);
}
.pf-snap-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pf-snap-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(126, 232, 255, 0.35);
}
:lang(ka) .pf-snap-title, :lang(ru) .pf-snap-title { letter-spacing: 0.05em; }
.pf-modal.is-week .pf-snap-title { color: var(--lilac); text-shadow: 0 0 10px rgba(214, 168, 255, 0.35); }
.pf-snap-row {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  margin-top: 6px;
}
.pf-snap-mk {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7ee8ff;
}
.pf-snap-row.is-stocks .pf-snap-mk { color: #fbbf24; }
:lang(ka) .pf-snap-mk { text-transform: none; }
.pf-snap-track {
  display: grid;
  grid-template-columns: auto minmax(34px, 1fr) auto minmax(34px, 1fr) auto minmax(34px, 1fr) auto;
  align-items: center;
  gap: 0;
}
.pf-snap-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 5.4em;
  padding: 5px 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
div.pf-snap-node { cursor: default; }
button.pf-snap-node:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
.pf-snap-node-k {
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}
.pf-snap-node-d {
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.pf-snap-node.is-1, .pf-snap-node.is-2 { border-color: rgba(255, 214, 120, 0.4); }
.pf-snap-node.is-1 .pf-snap-node-k, .pf-snap-node.is-2 .pf-snap-node-k { color: #ffd27a; }
.pf-snap-node.is-now { border-color: rgba(126, 232, 255, 0.45); }
.pf-snap-node.is-now .pf-snap-node-k { color: var(--neon); }
.pf-snap-node.is-next {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}
.pf-snap-node.is-next .pf-snap-node-k { color: var(--muted); font-weight: 600; }
.pf-snap-node.is-active {
  border-color: rgba(255, 214, 120, 0.9);
  background: rgba(255, 196, 90, 0.14);
  box-shadow: 0 0 16px rgba(255, 196, 90, 0.32), inset 0 0 10px rgba(255, 196, 90, 0.08);
}
.pf-snap-node.is-now.is-active {
  border-color: rgba(126, 232, 255, 0.95);
  background: rgba(126, 232, 255, 0.14);
  box-shadow: 0 0 16px rgba(126, 232, 255, 0.35), inset 0 0 10px rgba(126, 232, 255, 0.08);
}
.pf-snap-node.is-active .pf-snap-node-d { color: var(--ink); }
.pf-snap-gap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 0 4px;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
  white-space: nowrap;
  min-width: 0;
}
.pf-snap-gap::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 214, 120, 0.25), rgba(255, 214, 120, 0.7), rgba(126, 232, 255, 0.7));
}
.pf-snap-gap.is-next::after {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 5px, transparent 5px 9px);
}
.pf-snap-rule {
  margin: 6px 0 0 calc(5.4em + 10px);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.pf-snap-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(232, 238, 248, 0.78);
}
.pf-snap-missing { margin: 4px 0 0; font-size: 12.5px; color: #ffb3bd; }

.pf-badge.is-snap {
  border-color: rgba(255, 214, 120, 0.5);
  color: #ffd27a;
  background: rgba(255, 196, 90, 0.1);
}

/* What actually happened after a past snapshot */
.pf-real {
  position: relative;
  margin-top: 7px;
  padding: 6px 8px 8px;
  border-radius: 11px;
  border: 1px solid rgba(190, 150, 255, 0.28);
  background: linear-gradient(180deg, rgba(190, 150, 255, 0.09), rgba(190, 150, 255, 0.03));
}
.pf-real-k {
  display: block;
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cdb4ff;
}
:lang(ka) .pf-real-k, :lang(ru) .pf-real-k { letter-spacing: 0.03em; }
.pf-real-chips {
  display: grid;
  grid-template-columns: 8.8em 7.2em minmax(12.6em, 1fr);
  gap: 5px;
  align-items: stretch;
}
.pf-real-two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 0; }
.pf-real .pf-chip { border-color: rgba(190, 150, 255, 0.3); background: rgba(190, 150, 255, 0.07); }
.pf-real .pf-chip-k { color: rgba(205, 180, 255, 0.85); }
.pf-rchip-move .pf-chip-v { color: #e0ccff; }
.pf-rchip-typ .pf-chip-v { color: #ffe08a; }
.pf-rchip-typ.is-over { border-color: rgba(255, 150, 120, 0.55); background: rgba(255, 120, 90, 0.1); }
.pf-rchip-typ.is-over .pf-chip-v { color: #ffab94; }
.pf-rchip-left .pf-chip-v { color: #c8ff6e; }
.pf-real-bar {
  position: relative;
  height: 6px;
  margin-top: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}
.pf-real-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #8b5cf6, #c4a6ff);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.55);
}
.pf-real-bar.is-over .pf-real-fill { background: linear-gradient(90deg, #8b5cf6, #ff8e72); box-shadow: 0 0 10px rgba(255, 142, 114, 0.5); }
.pf-real-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}
.pf-cards.has-real { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-card-real {
  border-color: rgba(190, 150, 255, 0.45);
  background: linear-gradient(180deg, rgba(190, 150, 255, 0.14), rgba(190, 150, 255, 0.04));
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.12);
}
@media (max-width: 1100px) {
  .pf-real-chips { grid-template-columns: 8.4em 6.8em minmax(11.5em, 1fr); }
  .pf-cards.has-real { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pf-snap-row { grid-template-columns: minmax(0, 1fr); }
  .pf-snap-rule { margin-left: 0; }
}
@media (max-width: 720px) {
  .pf-real-chips { grid-template-columns: 1fr 1fr; }
  .pf-real-two { grid-column: 1 / -1; }
  .pf-snap-node { min-width: 0; padding: 4px 6px 5px; }
  .pf-cards.has-real { grid-template-columns: 1fr; }
}

/* --- Stage 16: TEST toggle "Calc N=3 / N=6" (hide: SHOW_CALC_TEST = false in app.js) --- */
.calc-test {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 6px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 211, 122, 0.6);
  background: rgba(255, 211, 122, 0.06);
}
.calc-test-tag {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 211, 122, 0.55);
  color: var(--danger-demo, #ffd37a);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}
.calc-test-k { font-size: 10.5px; font-weight: 650; letter-spacing: 0.05em; color: var(--muted); }
.calc-test-btns { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); }
.calc-test-btns button {
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.calc-test-btns button[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(255, 211, 122, 0.8);
  background: rgba(255, 196, 90, 0.18);
  box-shadow: 0 0 10px rgba(255, 196, 90, 0.28);
}
.calc-test.is-dock { flex-direction: column; align-items: stretch; gap: 3px; padding: 4px; }
.calc-test.is-dock .calc-test-tag { align-self: flex-start; }
.calc-test.is-dock .calc-test-btns button { flex: 1; padding: 3px 4px; }

/* --- Stage 17: Portfolio Info panel + Now purple bar --- */
.pf-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.pf-algo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(190, 150, 255, 0.45);
  background: rgba(190, 150, 255, 0.08);
  color: #e0ccff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.12);
}
.pf-algo-btn .info-glyph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(190, 150, 255, 0.7);
  font-family: "Geist Mono", "Outfit", "Noto Sans Georgian", monospace;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
}
.pf-algo-btn:hover {
  border-color: rgba(190, 150, 255, 0.85);
  background: rgba(190, 150, 255, 0.16);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.28);
  color: #fff;
}
.pf-modal.is-week .pf-algo-btn {
  border-color: rgba(214, 168, 255, 0.5);
  color: #edd9ff;
}

.pf-algo {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.pf-algo[hidden] { display: none; }
.pf-panel { position: relative; }
.pf-algo-dim {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.55);
  backdrop-filter: blur(2px);
}
.pf-algo-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(190, 150, 255, 0.4);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(190, 150, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(16, 18, 32, 0.98), rgba(8, 10, 20, 0.98));
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(167, 139, 250, 0.12);
}
.pf-algo-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pf-algo-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 28px 32px;
  scrollbar-width: thin;
}
.pf-algo-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cdb4ff;
  text-shadow: 0 0 10px rgba(190, 150, 255, 0.35);
}
:lang(ka) .pf-algo-kicker, :lang(ru) .pf-algo-kicker { letter-spacing: 0.06em; }
.pf-algo-title {
  margin: 0 44px 10px 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.pf-algo-lead {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(232, 238, 248, 0.82);
}
.pf-algo-sec {
  margin: 0 0 12px;
  padding: 12px 14px 13px;
  border-radius: 14px;
  border: 1px solid rgba(190, 150, 255, 0.22);
  background: rgba(190, 150, 255, 0.05);
}
.pf-algo-sec h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e0ccff;
}
.pf-algo-sec p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(232, 238, 248, 0.82);
}
.pf-algo-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(190, 150, 255, 0.28);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 720px) {
  .pf-algo { justify-content: stretch; }
  .pf-algo-card { width: 100%; border-left: none; border-top: 1px solid rgba(190, 150, 255, 0.4); }
}


/* ===== Stage 19: legacy RANDOM price card (pay.js) is obsolete — hide it ===== */
#pay-area .acct-mode.is-random { display: none !important; }
#pay-area .acct-modes { grid-template-columns: 1fr !important; }

/* ===== Stage 19: interactive tutorial ===== */
.tut-launch {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 60;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 12px 10px;
  border: 1px solid rgba(126, 232, 255, 0.65);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, rgba(10, 24, 44, 0.92), rgba(7, 14, 28, 0.92));
  color: #bff3ff;
  font-weight: 700; font-size: 13px; line-height: 1;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(70, 200, 255, 0.35), inset 0 0 12px rgba(120, 220, 255, 0.12);
  text-shadow: 0 0 8px rgba(126, 232, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}
.tut-launch:hover, .tut-launch:focus-visible {
  padding-left: 16px;
  box-shadow: 0 0 22px rgba(70, 200, 255, 0.6), inset 0 0 14px rgba(120, 220, 255, 0.2);
  outline: none;
}
.tut-launch-play {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 10px;
  color: #06121f;
  background: #7ee8ff;
  box-shadow: 0 0 10px rgba(126, 232, 255, 0.8);
}
.tut-launch.is-pulse { animation: tut-pulse 1.5s ease-in-out 5; }
@keyframes tut-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(70, 200, 255, 0.35), 0 0 0 0 rgba(126, 232, 255, 0.55); }
  50% { box-shadow: 0 0 26px rgba(70, 200, 255, 0.85), 0 0 0 14px rgba(126, 232, 255, 0); }
}
body.modal-open .tut-launch, body.tut-active .tut-launch { display: none; }
@media (max-width: 720px) {
  .tut-launch {
    top: auto;
    bottom: 14px;
    transform: none;
    border-left: 1px solid rgba(126, 232, 255, 0.65);
    border-radius: 0 14px 14px 0;
    padding: 10px 12px 10px 8px;
  }
}

.tut-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: default;
}
.tut-root.is-on { opacity: 1; }
body.tut-active { overscroll-behavior: contain; }

.tut-spot {
  position: fixed;
  z-index: 2001;
  left: 50%; top: 50%; width: 0; height: 0;
  border-radius: 14px;
  border: 2px solid rgba(126, 232, 255, 0.95);
  box-shadow: 0 0 0 200vmax rgba(2, 5, 12, 0.64), 0 0 18px rgba(126, 232, 255, 0.75), inset 0 0 14px rgba(126, 232, 255, 0.25);
  pointer-events: none;
  transition: left 0.45s cubic-bezier(.4, .1, .2, 1), top 0.45s cubic-bezier(.4, .1, .2, 1), width 0.45s cubic-bezier(.4, .1, .2, 1), height 0.45s cubic-bezier(.4, .1, .2, 1), opacity 0.2s ease;
}

.tut-bubble {
  position: fixed;
  left: 0; top: 0;
  z-index: 2003;
  width: min(400px, calc(100vw - 20px));
  padding: 14px 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(126, 232, 255, 0.7);
  background: linear-gradient(180deg, rgba(10, 22, 42, 0.97), rgba(6, 12, 24, 0.97));
  color: #e8f4ff;
  box-shadow: 0 0 22px rgba(70, 200, 255, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.tut-bubble.is-on { opacity: 1; }
.tut-bubble.is-center { width: min(520px, calc(100vw - 20px)); }
.tut-kick { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.tut-step { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #ffe566; text-shadow: 0 0 8px rgba(255, 200, 0, 0.5); }
.tut-ch { font-size: 15px; color: #7ee8ff; text-shadow: 0 0 8px rgba(126, 232, 255, 0.45); }
.tut-text { margin: 0; font-size: 14px; line-height: 1.5; color: #dce9f7; }
.tut-dots { display: flex; gap: 5px; margin-top: 10px; }
.tut-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(150, 190, 230, 0.25); }
.tut-dots i.is-done { background: rgba(126, 232, 255, 0.55); }
.tut-dots i.is-on { background: #7ee8ff; box-shadow: 0 0 8px #7ee8ff; }

.tut-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2004;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  max-width: calc(100vw - 16px);
  border-radius: 14px;
  border: 1px solid rgba(126, 232, 255, 0.5);
  background: rgba(6, 12, 24, 0.94);
  box-shadow: 0 0 16px rgba(70, 200, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.tut-count { min-width: 56px; text-align: center; font-size: 12px; color: #9fb7cf; font-variant-numeric: tabular-nums; }
.tut-btn {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(150, 190, 230, 0.35);
  background: rgba(20, 36, 62, 0.8);
  color: #d6e6f6;
  font-weight: 600; font-size: 13px; line-height: 1;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.tut-btn:hover:not([disabled]), .tut-btn:focus-visible { border-color: #7ee8ff; box-shadow: 0 0 10px rgba(126, 232, 255, 0.5); outline: none; }
.tut-btn[disabled] { opacity: 0.35; cursor: default; }
.tut-btn.is-primary { background: #7ee8ff; color: #06121f; border-color: #7ee8ff; box-shadow: 0 0 12px rgba(126, 232, 255, 0.55); }
.tut-btn.tut-skip { color: #ffb3b3; border-color: rgba(255, 150, 150, 0.4); }
.tut-btn.tut-auto.is-on { color: #ffe566; border-color: rgba(255, 220, 80, 0.7); }
@media (max-width: 520px) {
  .tut-bar { gap: 5px; padding: 6px; }
  .tut-btn { padding: 6px 8px; font-size: 12px; }
  .tut-count { min-width: 40px; }
}

.tut-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 2006;
  width: 30px; height: 30px;
  margin: -3px 0 0 -3px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(126, 232, 255, 0.9)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
  transition: transform 0.8s cubic-bezier(.45, .05, .25, 1), opacity 0.2s ease;
}
.tut-cursor.is-on { opacity: 1; }
.tut-cursor.is-down svg { transform: scale(0.82); }
.tut-cursor svg { transition: transform 0.12s ease; transform-origin: 3px 2px; display: block; }
.tut-ripple {
  position: fixed;
  z-index: 2005;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #7ee8ff;
  box-shadow: 0 0 12px rgba(126, 232, 255, 0.9);
  pointer-events: none;
  animation: tut-ripple 0.65s ease-out forwards;
}
@keyframes tut-ripple { from { transform: scale(0.4); opacity: 1; } to { transform: scale(4.2); opacity: 0; } }

/* mock Coinbase window — an illustration only */
.tut-cb {
  position: fixed;
  left: 50%; top: 50%;
  z-index: 2002;
  width: min(340px, calc(100vw - 30px));
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  padding: 14px 16px 18px;
  border-radius: 20px;
  background: #f6f8fc;
  color: #0b1426;
  box-shadow: 0 0 0 3px rgba(255, 220, 80, 0.8), 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.tut-cb.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tut-cb[hidden] { display: none; }
.tut-cb-tag { margin: -14px -16px 12px; padding: 6px 10px; border-radius: 17px 17px 0 0; background: #ffd84a; color: #3a2a00; font-weight: 800; font-size: 10px; line-height: 1.2; font-family: inherit; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.tut-cb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tut-cb-logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0052ff; color: #fff; font-weight: 800; }
.tut-cb-title { font-size: 16px; }
.tut-cb-screen { display: grid; gap: 10px; }
.tut-cb-screen[hidden] { display: none; }
.tut-cb-google, .tut-cb-mail {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px; border: 1px solid #cfd8e6; background: #fff; color: #0b1426;
  font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; text-align: left;
}
.tut-cb-google { border-color: #0052ff; box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.18); }
.tut-cb-g { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef2f9; color: #0052ff; font-weight: 800; font-size: 12px; }
.tut-cb-gmail { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #fff3f2; color: #8a1c14; font-size: 13px; font-weight: 600; }
.tut-cb-gm { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #ea4335; color: #fff; font-weight: 800; font-size: 12px; }
.tut-cb-code-h { font-size: 15px; }
.tut-cb-input { padding: 12px; border-radius: 12px; border: 2px solid #0052ff; background: #fff; text-align: center; letter-spacing: 0.4em; font-size: 20px; color: #0b1426; }
.tut-cb-code-sub { color: #55657e; font-size: 12px; }
.tut-cb-ok { display: grid; justify-items: center; gap: 8px; padding: 10px 0 4px; }
.tut-cb-check { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #0aa56a; color: #fff; font-size: 24px; font-weight: 800; }
.tut-cb-ok code { padding: 3px 8px; border-radius: 8px; background: #e8eef8; color: #243553; }


/* ===== Stage 20: confirm dialog + realized line + wider dev dock ===== */
.wow-realized-line {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  color: #c4b5fd;
  text-shadow: 0 0 8px rgba(167, 139, 250, 0.35);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.confirm-modal[hidden] { display: none; }
.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.62);
}
.confirm-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 20px 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(126, 232, 255, 0.55);
  background: linear-gradient(180deg, rgba(10, 22, 42, 0.98), rgba(6, 12, 24, 0.98));
  box-shadow: 0 0 22px rgba(70, 200, 255, 0.35), 0 16px 40px rgba(0, 0, 0, 0.5);
  color: #e8f4ff;
}
.confirm-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.confirm-cancel,
.confirm-ok {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  font: 600 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}
.confirm-cancel {
  border: 1px solid rgba(150, 190, 230, 0.35);
  background: rgba(20, 36, 62, 0.8);
  color: #d6e6f6;
}
.confirm-ok {
  border: 1px solid rgba(255, 158, 174, 0.7);
  background: rgba(255, 80, 110, 0.18);
  color: #ffd0d8;
  box-shadow: 0 0 12px rgba(255, 80, 110, 0.25);
}
.confirm-cancel:hover, .confirm-cancel:focus-visible {
  border-color: #7ee8ff;
  outline: none;
}
.confirm-ok:hover, .confirm-ok:focus-visible {
  background: rgba(255, 80, 110, 0.32);
  outline: none;
}

.dev-dock { width: 88px; }
