﻿:root {
  --bg: #070707;
  --panel: #101010;
  --panel2: #151515;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #ffffff;
  --blue: #2e3192;
  --yellow: #fff200;
  --focus: #fff200;
  --font: "JetBrains Mono", ui-monospace, Consolas, "Cascadia Mono", monospace;
  --font-display: "JetBrains Mono", ui-monospace, Consolas, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }

/* Hide UI until boot / soft-nav swap finishes (avoids flicker). */
html.boot-pending body,
html.softnav-pending body {
  visibility: hidden !important;
}
html.boot-ready:not(.softnav-pending) body {
  visibility: visible;
}

/* custom scrollbar — solid white thumb on a black track, everywhere on the site */
html {
  scrollbar-width: thin;
  scrollbar-color: #fff var(--bg);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--bg);
}

*::-webkit-scrollbar-thumb {
  background: #fff;
  border: 2px solid var(--bg);
}

*::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

*::-webkit-scrollbar-corner {
  background: var(--bg);
}

html, body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.5 var(--font);
  position: relative;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* decorative background: blueprint dot-grid + crossed diagonal lines, echoing the logo motif */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background-image: radial-gradient(rgba(255, 242, 0, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
}

.bg-deco::before,
.bg-deco::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 6px;
  background: var(--yellow);
  opacity: 0.05;
  top: 50%;
  left: 50%;
}

.bg-deco::before { transform: translate(-50%, -50%) rotate(24deg); }
.bg-deco::after { transform: translate(-50%, -50%) rotate(-24deg); }

/* header — below modals (100000+), above page content */
.top {
  position: relative;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: visible;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  overflow: visible;
}

.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--blue), var(--yellow), var(--blue));
  background-size: 300% 100%;
  animation: flow-line 8s linear infinite;
}

@keyframes flow-line {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .top::after { animation: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

/* Header bait link → #seo-heading (top of advantages section) */
.nav-advantages {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 11px 16px 11px 14px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  background: transparent;
  border: none;
  /* clip only on ::before/::after — hand must overflow the frame */
  overflow: visible;
  z-index: 5;
  transition: color 0.18s, transform 0.18s;
}

.nav-advantages::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--yellow) 25%,
    var(--blue) 50%,
    var(--yellow) 75%,
    var(--blue) 100%
  );
  background-size: 200% 100%;
  animation: nav-adv-flow 3.4s linear infinite;
}

.nav-advantages::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #07070f;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.nav-advantages-wave {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 68%);
  transform: scale(0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: nav-adv-wave 2.8s ease-in-out infinite;
}

.nav-advantages-wave.w2 {
  animation-delay: 0.55s;
}

.nav-advantages-like {
  position: relative;
  width: 26px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-self: flex-end;
  margin-bottom: 2px;
  color: #fff;
  z-index: 2;
  overflow: visible;
}

.nav-advantages-like-core {
  width: 24px;
  height: 28px;
  display: block;
  color: #fff;
  transform: scale(1.06, 1.42) translateY(5px);
  transform-origin: 32% 100%;
  animation: nav-adv-like 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  will-change: transform, filter;
  overflow: visible;
}

.nav-advantages-text {
  position: relative;
  z-index: 1;
  font-weight: 800;
  color: #fff;
}

.nav-advantages:hover {
  color: #0a0a0a;
  transform: translateY(-1px);
}

.nav-advantages:hover::before {
  animation-play-state: paused;
}

.nav-advantages:hover::after {
  background: var(--yellow);
}

.nav-advantages:hover .nav-advantages-text {
  color: #0a0a0a;
}

.nav-advantages:hover .nav-advantages-like {
  color: var(--blue);
}

.nav-advantages:hover .nav-advantages-like-core {
  color: var(--blue);
}

.nav-advantages:hover .nav-advantages-wave {
  animation: none;
  opacity: 0;
}

@keyframes nav-adv-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* grow hand +30% — seated lower so hover stays inside the yellow button */
@keyframes nav-adv-like {
  0%, 100% {
    transform: scale(1.06, 1.42) rotate(0deg) translateY(5px);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  22% {
    transform: scale(1.11, 1.48) rotate(-2deg) translateY(4px);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
  }
  48% {
    transform: scale(1.38, 1.85) rotate(3deg) translateY(3px);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
  }
  68% {
    transform: scale(1.26, 1.68) rotate(-1deg) translateY(4px);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
  }
  84% {
    transform: scale(1.14, 1.5) rotate(1deg) translateY(4.5px);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.12));
  }
}

@keyframes nav-adv-wave {
  0%, 8% {
    opacity: 0;
    transform: scale(0.45);
  }
  30% {
    opacity: 0.5;
  }
  70% {
    opacity: 0.12;
  }
  100% {
    opacity: 0;
    transform: scale(6.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-advantages::before,
  .nav-advantages-like-core,
  .nav-advantages-wave { animation: none; }
  .nav-advantages-like-core {
    transform: scale(1.06, 1.42) translateY(5px);
    filter: none;
  }
}

.brand img {
  display: block;
  width: 2.6cm;
  height: 2.6cm;
  object-fit: contain;
}

/* brand lockup: "QRcode Global" on one line, each part cycling color, subtitle stepping down-right */
.brand-stairs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.brand-line {
  display: flex;
  align-items: baseline;
  max-width: 100%;
  overflow: hidden;
}

.brand-word {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--blue);
  animation: step-color 7s ease-in-out infinite;
}

.word-1 { animation-delay: 0s; }
.word-2 { animation-delay: 1.6s; }
.word-3 { margin-left: 0.32em; animation-delay: 3.2s; }

@keyframes step-color {
  0%, 100% { color: var(--blue); }
  50% { color: var(--yellow); }
}

.brand-sub {
  display: block;
  margin-left: 52px;
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .brand-word { animation: none; color: var(--blue); }
}

.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* account widget — appears next to the language switcher once logged in */
.account-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 49, 146, 0.18);
  color: var(--text);
  border: 1px solid var(--blue);
  padding: 5px 12px 5px 6px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.account-bust {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background: var(--blue);
  display: grid;
  place-items: end center;
  overflow: hidden;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}

.account-bust.is-company {
  place-items: center;
}

.account-bust-svg {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: -1px;
}

.account-bust.is-company .account-bust-svg {
  width: 22px;
  height: 22px;
  margin-bottom: 0;
}

.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-widget:hover {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.account-widget:hover .account-bust {
  background: #0a0a0a;
}

.account-widget.hidden {
  display: none;
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-auth:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}
.nav-auth.hidden {
  display: none;
}

.tab-auth {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}
.tab-auth.hidden {
  display: none;
}

/* language dropdown — above header content, still below modals */
.lang-dropdown {
  position: relative;
  z-index: 5010;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
}

.lang-menu-caption {
  display: block;
  width: 100%;
  padding: 0 0 3px;
  margin: 0;
  background: transparent;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #8a8a8a;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.lang-toggle:hover { border-color: var(--yellow); color: var(--yellow); }

.lang-caret { color: var(--yellow); flex: 0 0 auto; }

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  width: max(100%, 11.5rem);
  margin: 4px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 5020;
}

.lang-menu[hidden] { display: none; }

.lang-menu-list {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 4px;
  background: var(--panel2);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border: 0;
  padding: 8px 10px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  direction: ltr;
}

.lang-option[data-lang="ar"] {
  unicode-bidi: isolate;
}

.lang-option:hover { background: rgba(255, 242, 0, 0.08); color: var(--yellow); }
.lang-option.active { color: var(--yellow); }

.status {
  margin: 0;
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tabs {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  max-width: 100%;
  box-sizing: border-box;
}

.tab {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 16px;
  min-height: 42px;
  height: auto;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  /* brand chamfer: cut top-left + bottom-right */
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  overflow: hidden;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

/* Hover only on real pointers — sticky :hover on phones paints over the modal */
@media (hover: hover) and (pointer: fine) {
  .tab:hover {
    background: var(--blue);
    color: var(--yellow);
    border-color: var(--blue);
    box-shadow: 0 0 14px rgba(46, 49, 146, 0.6);
  }
  .tab:hover .option-icon {
    opacity: 1;
  }
}

.tab.active {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
  box-shadow: 0 0 14px rgba(255, 242, 0, 0.55);
}

.tab-label-short { display: none !important; }
.tab-label-full { display: inline !important; }

/* Desktop: expanded main tabs; phone-only «Ще» duplicates stay hidden */
.tab-desk { display: inline-flex; }
.more-phone-only { display: none; }

/* Desktop: equal-size one-row tabs — nothing clipped */
@media (min-width: 769px) {
  .tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }
  .tabs > .tab,
  .tabs > .tab-business,
  .tabs > .tab-auth,
  .tabs > .tab-more {
    min-width: 0;
    width: auto;
    max-width: none;
  }
  .tab,
  .tabs .tab-more > .tab,
  .tab-business,
  .tab-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 6px 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    gap: 2px;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }
  .tabs > .tab-business {
    height: auto;
    min-height: 40px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  #tab-more > .more-toggle {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 6px 2px;
    font-size: 11px;
  }
  .more-caret { display: inline; }
  .tabs .tab-more {
    display: flex;
    overflow: visible;
    position: relative;
    min-width: 0;
  }
  .tabs .tab-more > .tab {
    width: 100%;
    flex: 1 1 auto;
  }
  .tabs .tab-more.open { z-index: 90; }
  .tabs .option-icon {
    width: 11px;
    height: 11px;
    margin-right: 2px;
    flex-shrink: 0;
  }
  .tab-desk { display: inline-flex !important; width: 100%; }
  .more-phone-only { display: none !important; }
  /* Short Auth / vCard; Business always full «Для Бізнесу» */
  .tab-auth .tab-label-full,
  #tab-vcard .tab-label-full { display: none !important; }
  .tab-auth .tab-label-short,
  #tab-vcard .tab-label-short { display: inline !important; }
  .tab-business .tab-label-full { display: inline !important; }
  .tab-business .tab-label-short { display: none !important; }
}

@media (min-width: 769px) {
  .tabs > .tab-business {
    /* slightly denser so «Для Бізнесу» fits equal cells */
    min-width: 0;
    padding-left: 3px;
    padding-right: 3px;
    font-size: 10px;
    letter-spacing: -0.01em;
  }
  .tab-business .option-icon {
    width: 10px;
    height: 10px;
    margin-right: 1px;
  }
}

@media (min-width: 1100px) {
  .tabs > .tab-business {
    font-size: 11px;
  }
  .tab-business .option-icon {
    width: 11px;
    height: 11px;
    margin-right: 2px;
  }
}

@media (min-width: 1400px) {
  .tabs { gap: 5px; padding: 9px 14px; }
  .tab,
  .tabs .tab-more > .tab,
  .tab-business,
  .tab-auth {
    min-height: 42px;
    height: 42px;
    font-size: 12px;
    padding: 7px 3px;
  }
  .tabs > .tab-business {
    font-size: 11px;
    height: auto;
    min-height: 42px;
  }
  #tab-more > .more-toggle {
    padding: 7px 3px;
    font-size: 12px;
  }
  .tabs .option-icon {
    width: 12px;
    height: 12px;
    margin-right: 3px;
  }
}

/* Very wide: room for full Auth / vCard labels (Business already full) */
@media (min-width: 1700px) {
  .tab-auth .tab-label-full,
  #tab-vcard .tab-label-full { display: inline !important; }
  .tab-auth .tab-label-short,
  #tab-vcard .tab-label-short { display: none !important; }
}

/* Same size as other tabs — only color differs */
.tab-business,
.tab-auth {
  text-decoration: none;
  font-weight: 600;
}

/* Always show full «Для Бізнесу» / For Business */
.tab-business .tab-label-full {
  display: inline !important;
}
.tab-business .tab-label-short {
  display: none !important;
}
.tab-business {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

.tab-auth {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .tab-business:hover,
  .tab-auth:hover {
    background: var(--yellow);
    color: #0a0a0a;
    border-color: var(--yellow);
    box-shadow: 0 0 14px rgba(255, 242, 0, 0.55);
  }
  .more-option:hover { background: rgba(255, 242, 0, 0.08); color: var(--yellow); }
  .more-option:hover .option-icon { color: var(--yellow); }
}

.tab-auth.hidden {
  display: none;
}

.tab-more {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.tab-more.open {
  z-index: 80;
}

.more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel2);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  list-style: none;
  margin: 0;
  padding: 4px;
  z-index: 200;
}

.tab-more.open > .more-menu {
  display: block;
}

.more-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 9px 10px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
}

.more-option.more-biz,
.more-option.more-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 2px 0;
  border: 1px solid transparent;
}
.more-option.more-biz {
  background: rgba(46, 49, 146, 0.55);
  border-color: var(--blue);
  color: #fff;
}
.more-option.more-biz:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}
.more-option.more-auth {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}
.more-option.more-auth:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}
.more-pill {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.55;
}
.more-sep {
  height: 1px;
  margin: 6px 4px;
  background: rgba(255, 255, 255, 0.12);
  list-style: none;
  pointer-events: none;
}
.more-phone-cta { display: none; }
.more-phone-cta.is-auth-hidden { display: none !important; }

.option-icon {
  flex: 0 0 auto;
  vertical-align: -3px;
  margin-right: 6px;
  color: currentColor;
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s;
}

.more-option .option-icon { color: var(--muted); opacity: 1; }
.tab.active .option-icon { opacity: 1; }

.layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
  grid-template-areas: "stack preview";
  align-items: start;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.layout-stack {
  grid-area: stack;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel-data,
.panel-params {
  /* stacked in .layout-stack on desktop — no empty grid gap */
}

.preview-col { grid-area: preview; }

.panel, .preview-col {
  padding: 24px;
  position: relative;
}

.panel {
  border-right: 1px solid var(--line);
}

h1, h2 {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

h2 { margin-top: 28px; }
.panel > h2:first-child,
.preview-col > h2:first-child {
  margin-top: 0;
}

.fields { display: grid; gap: 12px; margin-bottom: 8px; }
.hidden { display: none; }

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

textarea { resize: vertical; }

#payload {
  resize: none;
}

input:focus, select:focus, textarea:focus, button:focus {
  outline: 1px solid var(--focus);
}

.map-picker {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  background: #000;
  touch-action: none;
}

/* Keep Leaflet tiles/controls inside the map box (they default to z-index 400–1000). */
.map-picker .leaflet-pane,
.map-picker .leaflet-map-pane,
.map-picker .leaflet-tile {
  z-index: 0 !important;
}

.map-picker .leaflet-top,
.map-picker .leaflet-bottom,
.map-picker .leaflet-control,
.map-picker .leaflet-control-container {
  z-index: 1 !important;
}

.map-picker:fullscreen,
.map-picker:-webkit-full-screen,
.map-picker:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
}

.leaflet-control-fullscreen a {
  font-size: 18px;
  line-height: 26px;
  text-align: center;
}

.leaflet-control-layers,
.leaflet-bar {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
}

.leaflet-control-layers a,
.leaflet-control-layers label,
.leaflet-control-layers-toggle {
  color: var(--text);
}

.leaflet-control-layers-expanded {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
}

.leaflet-bar a {
  background: var(--panel2);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.leaflet-bar a:hover {
  background: var(--blue);
  color: var(--yellow);
}

.size-field {
  margin-bottom: 12px;
}

.size-field label {
  max-width: 200px;
}

.size-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  z-index: 4;
}

.cloud-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--blue);
  background: rgba(46, 49, 146, 0.15);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.cloud-note::before { content: "☁ "; }

p.hint[data-i] {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
  text-transform: none;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.span-2 { grid-column: 1 / -1; }

.modes label, .check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.check.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.check.toggle > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.toggle-ui {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 24px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #3a3a3a;
  clip-path: inherit;
  transition: transform 0.2s ease, background 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .check.toggle:hover {
    background: #fff;
    border-color: var(--yellow);
    color: #0a0a0a;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(46, 49, 146, 0.4);
  }

  .check.toggle:hover .toggle-ui {
    border-color: var(--blue);
  }
}

.check.toggle:has(input:checked) .toggle-ui {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(46, 49, 146, 0.55);
}

.check.toggle:has(input:checked) .toggle-ui::after {
  transform: translateX(22px);
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 242, 0, 0.7);
}

.panel .fields > label:not(.toggle),
.panel .grid > label:not(.toggle),
.style-modal-controls > label:not(.toggle) {
  padding: 8px 8px 10px;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

@media (hover: hover) and (pointer: fine) {
  .panel .fields > label:not(.toggle):hover,
  .panel .grid > label:not(.toggle):hover,
  .style-modal-controls > label:not(.toggle):hover {
    background: #fff;
    border-color: #fff;
    color: #0a0a0a;
    box-shadow: inset 3px 0 0 var(--yellow), 0 0 16px rgba(46, 49, 146, 0.35);
  }

  .panel .fields > label:not(.toggle):hover input,
  .panel .fields > label:not(.toggle):hover select,
  .panel .fields > label:not(.toggle):hover textarea,
  .panel .grid > label:not(.toggle):hover input,
  .panel .grid > label:not(.toggle):hover select,
  .panel .grid > label:not(.toggle):hover textarea,
  .style-modal-controls > label:not(.toggle):hover input,
  .style-modal-controls > label:not(.toggle):hover select,
  .style-modal-controls > label:not(.toggle):hover textarea {
    border-color: #0a0a0a;
    background: #fff;
    color: #0a0a0a;
  }

  .panel label:hover input[type="color"] {
    box-shadow: 0 0 0 1px #0a0a0a, 0 0 12px rgba(46, 49, 146, 0.35);
  }
}

.panel input[type="color"]:not(.qrg-color-native) {
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.type-chip {
  position: relative;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.type-chip > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .type-chip:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #0a0a0a;
    transform: translateY(-1px);
  }

  .type-chip:hover .chip-mark {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 8px rgba(46, 49, 146, 0.55);
  }

  .type-chip:hover .dynamic-note {
    color: var(--blue);
  }

  .type-chip:has(input:checked):hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #0a0a0a;
  }

  .type-chip:has(input:checked):hover .chip-mark {
    background: var(--blue);
    border-color: var(--blue);
  }

  .type-chip:has(input:checked):hover .dynamic-note {
    color: var(--blue);
  }

  .preview-col .actions button:hover {
    transform: scale(1.08);
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
  }

  .preview-col .actions #btn-png:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #0a0a0a;
  }

  .preview-col .actions #btn-svg:hover {
    background: var(--blue);
    border-color: var(--yellow);
    color: var(--yellow);
  }
}

.type-chip:has(input:checked) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.type-chip:has(input:checked) .chip-mark {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 242, 0, 0.7);
}

.type-chip:has(input:checked) .dynamic-note {
  color: var(--yellow);
  border-left-color: var(--yellow);
}

.preview-col .actions button {
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

input[type="file"] {
  width: 100%;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}

input[type="file"]::file-selector-button {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 6px 10px;
  margin-right: 10px;
  font: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover { background: var(--yellow); color: #0a0a0a; }

/* Custom file picker — labels follow site language (not browser locale) */
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  box-sizing: border-box;
}
.file-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}
.file-picker-btn {
  flex: 0 0 auto;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.file-picker-btn:hover {
  background: var(--yellow);
  color: #0a0a0a;
}
.file-picker-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}

input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
}

/* QR stage: camera-viewfinder corner brackets + a sweeping scan line, like a real scanner */
.stage {
  background:
    linear-gradient(to right, var(--yellow) 3px, transparent 3px) top left,
    linear-gradient(to bottom, var(--yellow) 3px, transparent 3px) top left,
    linear-gradient(to left, var(--yellow) 3px, transparent 3px) top right,
    linear-gradient(to bottom, var(--yellow) 3px, transparent 3px) top right,
    linear-gradient(to right, var(--yellow) 3px, transparent 3px) bottom left,
    linear-gradient(to top, var(--yellow) 3px, transparent 3px) bottom left,
    linear-gradient(to left, var(--yellow) 3px, transparent 3px) bottom right,
    linear-gradient(to top, var(--yellow) 3px, transparent 3px) bottom right,
    #000;
  background-repeat: no-repeat;
  background-size: 30px 30px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 24px;
  position: relative;
  overflow: visible;
}

.stage::after {
  content: "";
  position: absolute;
  left: var(--scan-left, 24px);
  right: var(--scan-right, 24px);
  top: var(--scan-top, 24px);
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 12px 2px rgba(255, 242, 0, 0.75);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  animation: none;
}

.stage.scanning::after,
.stage.scan-play::after {
  animation-name: scan-sweep;
  animation-duration: 2.8s;
  animation-timing-function: ease-in-out;
}

.stage.scanning::after {
  animation-iteration-count: infinite;
}

.stage.scan-play::after {
  animation-iteration-count: var(--scan-cycles, 1);
  animation-fill-mode: forwards;
}

/* Do NOT touch ::after scan-sweep here — changing duration restarts the laser. */
#qr.is-rewriting {
  animation: qr-live-rewrite 0.32s ease-out;
}

@keyframes qr-live-rewrite {
  0% { opacity: 0.62; filter: contrast(1.18) brightness(1.08); }
  100% { opacity: 1; filter: none; }
}

@keyframes scan-sweep {
  0%, 100% { top: var(--scan-top, 24px); opacity: 0.85; }
  50% { top: var(--scan-bottom, calc(100% - 26px)); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .qr-halo::before,
  .qr-halo::after { animation: none; opacity: 0.45; transform: none; }
  .stage.scanning::after,
  .stage.scan-play::after {
    animation: none;
    top: var(--scan-top, 24px);
    opacity: 0.85;
  }
  #qr.is-rewriting { animation: none; filter: none; }
  .style-modal-controls::before { opacity: 0 !important; }
  .check.toggle,
  .type-chip,
  .panel .fields > label:not(.toggle),
  .panel .grid > label:not(.toggle),
  .preview-col .actions button {
    transform: none !important;
    transition: none !important;
  }
}

.qr-halo {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
}

.qr-halo::before,
.qr-halo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: qr-white-halo 2.8s ease-in-out infinite;
}

.qr-halo::after {
  inset: -11px;
  opacity: 0.4;
  animation-delay: -1.4s;
}

@keyframes qr-white-halo {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.85; }
}

#qr {
  width: min(100%, 360px);
  height: auto;
  background: transparent;
  position: relative;
  z-index: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.actions.hidden {
  display: none;
}

.stage.is-dynamic-ready .qr-halo {
  box-shadow: 0 0 0 2px var(--yellow), 0 0 22px rgba(255, 242, 0, 0.18);
}

button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  border: 1px solid transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.actions button,
#btn-png,
#btn-svg,
#btn-copy,
#btn-make-dynamic,
#claim-btn {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  padding: 12px 18px;
  min-height: 48px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .actions button:hover,
  #btn-png:hover,
  #btn-svg:hover,
  #btn-copy:hover,
  #btn-make-dynamic:hover,
  #claim-btn:hover {
    border-color: var(--yellow);
    color: var(--yellow);
  }
}

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

.qr-type-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 4px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

/* Kept in the DOM for a possible future return; visitors always generate dynamic QR. */
.qr-type-toggle[hidden],
.qr-type-toggle.is-retired {
  display: none !important;
}

.generate-qr-cta {
  margin-top: 4px;
}
.generate-qr-cta.hidden {
  display: none !important;
}
.generate-qr-cta .btn-gen-another {
  margin-top: 0;
}

.generate-qr-heading {
  display: none;
}

#btn-make-dynamic {
  width: 100%;
}
#btn-make-dynamic.hidden {
  display: none !important;
}

.qr-type-toggle .check {
  flex-wrap: wrap;
  row-gap: 4px;
}

.qr-type-toggle .dynamic-note {
  flex-basis: 100%;
  display: block;
  margin: 6px 0 0;
  padding: 6px 0 0 10px;
  border-left: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.dynamic-stat-banner {
  margin: 0 0 12px;
  padding: 8px 0 8px 12px;
  border-left: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 15px;
  line-height: 1.45;
}

.dynamic-panel {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px dashed var(--blue);
  background: rgba(46, 49, 146, 0.12);
}

.dynamic-panel #dynamic-status {
  margin-top: 10px;
  border: none;
  padding: 0;
}

.dynamic-panel #dynamic-status.error {
  color: var(--yellow);
}

.dynamic-limit-cta {
  margin-top: 12px;
}

.dynamic-limit-cta.hidden {
  display: none;
}

.dynamic-create-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #0a0a0a;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dynamic-create-account:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.dynamic-result {
  margin-top: 14px;
  font-size: 14px;
  overflow-anchor: none;
}

.payload-hint,
.qr-fact-hint {
  display: block;
  margin: 6px 0 0;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.qr-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-fact {
  padding: 12px 14px;
  border: 1px solid var(--blue);
  background: rgba(46, 49, 146, 0.12);
}

.qr-fact-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.qr-fact-value {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  word-break: break-word;
  text-decoration: none;
}

a.qr-fact-value {
  color: #fff;
  display: inline-block;
}

a.qr-fact-value:hover {
  color: var(--yellow);
}

.qr-fact-expire {
  display: none !important;
}

.stats-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 12px 0 0;
  gap: 0;
}
.stats-cta.hidden {
  display: none !important;
}
.stats-cta-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
}
.stats-cta-arrow {
  font-size: 18px;
  line-height: 1;
  animation: stats-arrow-bob 1.1s ease-in-out infinite;
}
@keyframes stats-arrow-bob {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(5px); opacity: 1; }
}

.gen-another-wrap {
  margin-top: 16px;
}
.gen-another-wrap.hidden {
  display: none !important;
}
.btn-gen-another {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
  padding: 12px 18px;
  min-height: 48px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-gen-another:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}

.keep-stats-modal {
  z-index: 100010;
}
.keep-stats-card {
  max-width: min(460px, 100%);
}
.keep-stats-warn {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}
.keep-stats-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.keep-stats-open,
.keep-stats-saved {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.keep-stats-open {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}
.keep-stats-open:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.keep-stats-open.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
.keep-stats-saved {
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
}
.keep-stats-saved:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.btn-code-stats,
.btn-code-stats-inline,
.dash-card-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #0a0a0a;
  border: 1px solid var(--yellow);
  padding: 12px 18px;
  min-height: 48px;
  margin: 10px 0 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn-code-stats,
.btn-code-stats-inline {
  width: 100%;
  animation: stats-btn-pulse 1.45s ease-in-out infinite;
}

.dash-card-stats {
  background: #fff;
  color: #111;
  border-color: #fff;
  clip-path: polygon(
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%,
    0 7px
  );
  font-weight: 700;
}

.btn-code-stats:hover,
.btn-code-stats-inline:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
  filter: brightness(1.06);
}

.dash-card-stats:hover,
.dash-card-stats[aria-expanded="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

@keyframes stats-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 242, 0, 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(255, 242, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-code-stats,
  .btn-code-stats-inline,
  .stats-cta-arrow { animation: none; }
}

.btn-code-stats.hidden,
.btn-code-stats-inline.hidden {
  display: none;
}

/* Кнопки для залогінених після генерації динамічного QR */
.dynamic-logged-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 0;
}
.dynamic-logged-actions.hidden { display: none; }

.btn-cabinet-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #0a0a0a;
  border: 1px solid var(--yellow);
  padding: 12px 18px;
  min-height: 48px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn-cabinet-inline:hover { background: #fff; border-color: #fff; color: #0a0a0a; }

.btn-new-dynamic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 12px 18px;
  min-height: 48px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-new-dynamic:hover { border-color: #fff; color: #fff; }

.dash-qr-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.dash-card-stats {
  margin: 0;
  width: 100%;
}

.dash-page button.dash-card-stats:hover,
.dash-page button.dash-card-stats[aria-expanded="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.turnstile-holder {
  margin: 0 0 12px;
}
.turnstile-holder.hidden {
  display: none;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.captcha-box.hidden {
  display: none;
}
.captcha-question {
  font-weight: 600;
  white-space: nowrap;
}
.captcha-answer {
  width: 64px;
  padding: 6px 8px;
  text-align: center;
  font-size: 1rem;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 32px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-emblem {
  width: 15px;
  height: 21px;
  flex: 0 0 auto;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.footer-links a:hover {
  color: var(--yellow);
}

/* UK: long «Конфіденційність» — tighter so mobile does not clip the ending */
html[lang="uk"] .footer-links a {
  font-size: 12px;
  letter-spacing: 0.02em;
}
html[lang="uk"] .footer-links a[href*="privacy"] {
  font-size: 11px;
  letter-spacing: 0;
}

/* ---------- Business modal (announcement + login/register) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  /* Solid cover — hides button press glow/shadow underneath on touch */
  background: #070707;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100000;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  box-sizing: border-box;
  min-width: 0;
}

.modal-overlay.hidden {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .map-picker:not(:fullscreen) {
  visibility: hidden;
}

body.modal-open .modal-card .map-picker {
  visibility: visible;
}

body.modal-open .cookie-banner {
  z-index: 1;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: min(420px, 100%);
  min-width: 0;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--blue);
  box-shadow: 0 0 32px rgba(46, 49, 146, 0.45);
  padding: 28px 26px 24px;
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--text);
  border-left: 3px solid var(--yellow);
  padding-left: 10px;
}

.modal-pitch {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 10px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}
.modal-pitch + .auth-tabs { margin-top: 8px; }
.modal-business-copy + .auth-tabs { margin-top: 8px; }
.modal-business-copy.hidden {
  display: none !important;
}
#business-modal.is-cabinet .auth-tabs { margin-top: 4px; }
.auth-oauth-hint,
.stats-oauth-hint {
  margin: 0 0 12px;
  text-align: center;
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  display: block;
  white-space: normal;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}
.auth-oauth-hint span,
.stats-oauth-hint span {
  display: inline;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Keep the two hint sentences as two centered lines; each still wraps if it is too long. */
.oauth-hint-br { display: inline; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--yellow);
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1 1 0;
  min-width: 0;
  background: var(--bg);
  color: var(--muted);
  border: none;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: normal;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

@media (hover: hover) and (pointer: fine) {
  .auth-tab:hover:not(.active) {
    background: var(--blue);
    color: var(--yellow);
  }
}

.auth-tab.active {
  background: var(--yellow);
  color: #0a0a0a;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.auth-form.hidden {
  display: none;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  max-width: 100%;
}

.auth-form input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--yellow);
}

.btn-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  padding: 12px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

.btn-auth-submit:hover {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  height: auto;
  min-height: 48px;
  line-height: 1.25;
  text-align: center;
}

.btn-google:hover {
  border-color: #fff;
}

.btn-microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #2f2f2f;
  color: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  margin-top: 10px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  height: auto;
  min-height: 48px;
  line-height: 1.25;
  text-align: center;
}
.btn-google svg,
.btn-microsoft svg {
  flex-shrink: 0;
}
.btn-google span,
.btn-microsoft span {
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

.btn-microsoft:hover {
  border-color: #fff;
}

.owner-kind-overlay {
  z-index: 60001;
}

.owner-kind-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.owner-kind-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.owner-kind-btn:hover,
.owner-kind-btn:focus-visible {
  border-color: var(--yellow);
  background: rgba(46, 49, 146, 0.22);
  outline: none;
}

.owner-kind-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.owner-kind-icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  display: grid;
  place-items: end center;
  overflow: hidden;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
}

.owner-kind-icon.is-company {
  place-items: center;
}

.owner-kind-icon svg {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: -1px;
}

.owner-kind-icon.is-company svg {
  width: 34px;
  height: 34px;
  margin-bottom: 0;
}

.owner-kind-error {
  margin: 12px 0 0;
}

.modal-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.terms-gate-overlay {
  z-index: 60002;
  overflow: hidden;
}
.terms-gate-card .modal-pitch {
  margin-bottom: 14px;
}
.terms-gate-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.terms-gate-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--yellow);
}
.terms-gate-doc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--yellow);
  color: #0a0a0a;
  border: 1px solid var(--yellow);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.terms-gate-doc-title {
  color: inherit;
  font-weight: 700;
}
.terms-gate-read-hint {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  opacity: 0.85;
}
.terms-gate-doc:active,
.terms-gate-doc.is-open {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}
@media (hover: hover) and (pointer: fine) {
  .terms-gate-doc:hover,
  .terms-gate-doc:focus-visible {
    background: #fff;
    border-color: #fff;
    color: #0a0a0a;
  }
}
.terms-gate-card .btn-auth-submit {
  width: 100%;
}
.terms-gate-decline {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.terms-gate-decline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.terms-later-overlay {
  z-index: 60003;
}
.terms-later-card .modal-pitch {
  margin-bottom: 16px;
}
.terms-later-card .btn-auth-submit {
  width: 100%;
}
.terms-read-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(7, 7, 7, 0.78);
}
.terms-read-overlay.hidden {
  display: none;
}
.terms-read-card {
  width: min(440px, 100%);
  max-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border: 1px solid var(--blue);
  box-shadow: 0 0 32px rgba(46, 49, 146, 0.45);
  animation: terms-read-in 0.22s ease-out;
}
@keyframes terms-read-in {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.terms-read-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.terms-read-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}
.terms-read-close {
  flex: 0 0 auto;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.terms-read-close:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.terms-read-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 20px 12px;
  font-size: 13px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) #111;
}
.terms-read-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.terms-read-body::-webkit-scrollbar-track {
  background: #111;
}
.terms-read-body::-webkit-scrollbar-thumb {
  background: var(--yellow);
}
.terms-read-body::-webkit-scrollbar-thumb:hover {
  background: #fff;
}
.terms-read-body h1 {
  margin: 0 0 8px;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.terms-read-body h2 {
  margin: 18px 0 8px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--yellow);
}
.terms-read-body h2::before {
  display: none;
}
.terms-read-body p,
.terms-read-body li {
  margin: 0 0 8px;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.terms-read-body ul,
.terms-read-body ol {
  margin: 0 0 10px;
  padding-left: 1.1em;
  list-style: disc;
}
.terms-read-body a {
  color: var(--yellow);
}
.terms-read-body .legal-edition {
  margin: 0 0 12px;
  font-size: 12px;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}
.terms-read-menu {
  margin: 28px 0 8px;
  padding: 16px 2px 8px;
  border-top: 1px solid var(--line);
}
.terms-read-menu .btn-auth-submit {
  width: 100%;
}
@media (min-width: 640px) {
  .terms-read-overlay {
    align-items: center;
  }
}
.legal-edition {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hint.error {
  color: var(--yellow);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

/* ---------- Dashboard (account) page ---------- */

.dash-page {
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-layout {
  display: block;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.panel.dashboard-panel {
  border-right: 0;
  border: 1px solid var(--line);
  padding: 28px 32px 36px;
  position: relative;
  overflow: visible;
}

.dash-live .dashboard-panel::before {
  content: none;
}

.dashboard-panel h1 {
  margin: 0 0 22px;
  font-size: 15px;
}

.dash-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  padding: 10px 18px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dash-cta:hover {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.dash-cta.hidden {
  display: none;
}

.dash-logged-out-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.dash-logged-out-home {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.dash-logged-out-home:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}

.dash-account {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 0;
  border: 1px solid var(--blue);
  background:
    linear-gradient(90deg, rgba(255, 242, 0, 0.07) 0 3px, transparent 3px),
    linear-gradient(180deg, rgba(46, 49, 146, 0.22), rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  isolation: isolate;
}
.dash-account::before,
.dash-account::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--yellow);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}
.dash-account::before {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
}
.dash-account::after {
  right: 6px;
  bottom: 6px;
  border-width: 0 2px 2px 0;
}
.dash-account-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.dash-account-beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  height: 2px;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 22%,
    color-mix(in srgb, var(--blue) 28%, transparent) 38%,
    color-mix(in srgb, var(--yellow) 55%, transparent) 48%,
    var(--yellow) 50%,
    color-mix(in srgb, var(--yellow) 55%, transparent) 52%,
    color-mix(in srgb, var(--blue) 28%, transparent) 62%,
    transparent 78%,
    transparent 100%
  );
  box-shadow:
    0 0 18px color-mix(in srgb, var(--yellow) 22%, transparent),
    0 0 36px color-mix(in srgb, var(--blue) 14%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  will-change: left, top, opacity, transform;
  pointer-events: none;
  filter: blur(0.35px);
}
@media (prefers-reduced-motion: reduce) {
  .dash-account-beam { display: none; }
}
.dash-account-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.dash-account-id {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}
.dash-account-avatar {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid var(--blue);
  background: rgba(46, 49, 146, 0.35);
  color: #93c5fd;
}
.dash-account-avatar svg {
  width: 1.35rem;
  height: 1.35rem;
}
.dash-account-copy {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
  flex: 1;
}
.dash-account-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}
.dash-account-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.dash-account-email {
  margin: 0;
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--muted) 88%, #93c5fd);
  overflow-wrap: anywhere;
}
.dash-account-kind {
  margin: 0.15rem 0 0;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--yellow) 55%, transparent);
  background: color-mix(in srgb, var(--yellow) 12%, transparent);
  color: var(--yellow);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dash-account-kind:empty {
  display: none;
}
.dash-account-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
}
.dash-account-stat {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-height: 2.55rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(0, 0, 0, 0.42);
  color: #fff;
  overflow: hidden;
}
.dash-account-stat[hidden] {
  display: none !important;
}
.dash-account-stat-mark {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border: 2px solid #93c5fd;
  background:
    linear-gradient(#93c5fd, #93c5fd) center / 55% 55% no-repeat,
    rgba(46, 49, 146, 0.35);
  box-shadow:
    inset 0 0 0 2px #0a0a0a,
    0 0 0 1px rgba(147, 197, 253, 0.25);
}
.dash-account-stat-mark::before,
.dash-account-stat-mark::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--yellow);
  pointer-events: none;
}
.dash-account-stat-mark::before {
  top: -4px;
  left: -4px;
  border-width: 1.5px 0 0 1.5px;
}
.dash-account-stat-mark::after {
  right: -4px;
  bottom: -4px;
  border-width: 0 1.5px 1.5px 0;
}
.dash-account-stat.is-bal {
  grid-template-columns: 1fr;
  padding-left: 0.7rem;
  border-color: color-mix(in srgb, var(--yellow) 40%, rgba(255, 255, 255, 0.2));
  background:
    linear-gradient(90deg, var(--yellow) 0 3px, transparent 3px),
    linear-gradient(180deg, rgba(255, 242, 0, 0.08), transparent 60%),
    rgba(46, 49, 146, 0.28);
}
.dash-account-stat-body {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  line-height: 1.1;
}
.dash-account-stat-k {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 55%, #93c5fd);
}
.dash-account-stat.is-bal .dash-account-stat-k {
  color: var(--yellow);
  letter-spacing: 0.08em;
}
.dash-account-stat strong {
  font-family: "JetBrains Mono", var(--font-display), monospace;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dash-account-stat-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.dash-account-stat-line em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--muted) 70%, #fff);
}
.dash-account-stat-line em:empty {
  display: none;
}
.dash-account-stat.has-credits {
  border-color: var(--yellow);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--yellow) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--yellow) 12%, transparent);
}
.dash-account-stat.has-credits strong {
  color: var(--yellow);
  text-shadow: 0 0 12px color-mix(in srgb, var(--yellow) 35%, transparent);
}
.dash-account-stat.has-credits .dash-account-stat-line em {
  color: #fde68a;
}
.dash-account-stat.is-codes::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background: repeating-linear-gradient(
    -38deg,
    transparent,
    transparent 3px,
    color-mix(in srgb, #60a5fa 14%, transparent) 3px,
    color-mix(in srgb, #60a5fa 14%, transparent) 4px
  );
  opacity: 0.7;
  pointer-events: none;
}
.dash-account-aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  min-width: min(100%, 12.5rem);
}
.dash-toolbar-actions {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-width: 0;
}
.dash-create {
  white-space: nowrap;
}
.dash-credit-dial {
  display: none !important;
}

@media (max-width: 720px) {
  .dash-account {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .dash-account-aside {
    min-width: 0;
  }
  .dash-account-topline {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-toolbar-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dash-account-metrics {
    width: 100%;
  }
  .dash-account-stat {
    width: 100%;
  }
}
.dash-logout {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.dash-logout:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.dash-claim-dock {
  margin-bottom: 8px;
}

.dash-claim-toggle {
  background: #fff;
  border: 1px solid #fff;
  color: #0a0a0a;
  padding: 10px 16px;
  margin-bottom: 14px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dash-claim-toggle:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}

.dash-claim-toggle:active,
.dash-claim-toggle[aria-expanded="true"],
.dash-claim-toggle[aria-expanded="true"]:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.dash-claim-slot {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.dash-claim-slot.is-open {
  grid-template-rows: 1fr;
  margin-bottom: 22px;
}

.dash-claim-slot-inner {
  min-height: 0;
  overflow: hidden;
}

.dash-claim {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-bottom: 0;
  padding: 18px;
  border: 1px dashed var(--blue);
  background: rgba(46, 49, 146, 0.08);
}

.dash-claim label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 260px;
  font-size: 14px;
  color: var(--muted);
}

.dash-claim input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}

.dash-claim button {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.dash-claim button:hover {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.dash-anon-line {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-anon-line strong {
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.dash-claim-hint {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  color: #bdbdbd;
}

.dash-claim #claim-status {
  flex-basis: 100%;
  margin: 8px 0 0;
}

.dash-main-tabs {
  --dash-tab-gap: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dash-tab-gap);
  margin: 0 0 22px;
  padding: 6px;
  position: relative;
  border: 1px solid rgba(46, 49, 146, 0.85);
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.28), rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(
      90deg,
      transparent 0 11px,
      rgba(255, 242, 0, 0.035) 11px 12px
    );
  isolation: isolate;
}
.dash-main-tabs::before {
  content: none;
  display: none;
}
.dash-main-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.dash-main-tab:hover,
.dash-main-tab:focus-visible {
  color: #fff;
  border-color: rgba(255, 242, 0, 0.45);
  outline: none;
}
.dash-main-tab.is-on {
  color: #0a0a0a;
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 242, 0, 0.35);
}
.dash-tab-label-short { display: none; }
.dash-tab-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  color: #fff;
  display: block;
}
.dash-main-tab.is-on .dash-tab-ico {
  color: #0a0a0a;
}
.dash-tab-qr-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  background-color: #fff;
  -webkit-mask-image: url("/assets/tab-qr-off.png?v=9");
  mask-image: url("/assets/tab-qr-off.png?v=9");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  box-shadow: none;
  filter: none;
}
.dash-main-tab.is-on .dash-tab-qr-mark {
  background-color: #0a0a0a;
}

.dash-qr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px 18px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
}

.dash-qr-head[hidden] {
  display: none !important;
}

.dash-qr-head-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dash-qr-head-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  image-rendering: pixelated;
  background: #fff;
  border: 1px solid #111;
}

.dash-qr-head-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.dash-qr-head-lead {
  margin: 4px 0 0;
  font-size: 13px;
  color: #bdbdbd;
  max-width: 42ch;
}

.dash-qr-head-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
}

.dash-qr-head-cell {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.dash-qr-head-cell span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.dash-qr-head-cell strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dash-qr-stage.is-solid {
  --gutter: 10px;
  width: calc(132px + 2 * var(--gutter));
  background: #fff;
  border: 1px solid #111;
  box-shadow: none;
}

.dash-qr-stage.is-solid .dash-qr-trace {
  display: none;
}

.dash-qr-stage.is-solid canvas {
  display: block;
  width: 132px;
  height: 132px;
  background: #fff;
}

.dash-stat-heat .dash-heat {
  margin-top: 4px;
}
.dash-tab-ico-uah,
.dash-tab-ico-crystal,
.dash-tab-ico-ingot {
  display: block;
  width: 28px;
  height: 28px;
  color: #fff200;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(255, 242, 0, 0.35));
}
.dash-main-tab.is-on .dash-tab-ico-uah,
.dash-main-tab.is-on .dash-tab-ico-crystal,
.dash-main-tab.is-on .dash-tab-ico-ingot {
  color: #0a0a0a;
  filter: none;
}
.dash-tab-ico-an {
  overflow: visible;
}
.dash-tab-ico-an::before,
.dash-tab-ico-an::after {
  content: none;
  display: none;
}
.dash-tab-bal-chip {
  margin-left: 2px;
  min-width: 1.4em;
  padding: 1px 6px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.dash-main-tab:not(.is-on) .dash-tab-bal-chip {
  border-color: var(--yellow);
  background: rgba(255, 242, 0, 0.12);
  color: var(--yellow);
}
.dash-pane {
  position: relative;
  animation: none;
}
.dash-pane.hidden { display: none !important; }
.dash-pane.is-enter {
  animation: none;
}
@keyframes dash-pane-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
body[data-dash-tab="qr"] .dash-main-tabs {
  box-shadow: inset 0 -2px 0 rgba(255, 242, 0, 0.35);
}
body[data-dash-tab="balance"] .dash-main-tabs {
  box-shadow: inset 0 -2px 0 rgba(46, 49, 146, 0.9);
}
body[data-dash-tab="analytics"] .dash-main-tabs {
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.45);
}
body[data-dash-tab="balance"] .dash-wallet {
  border-color: rgba(255, 242, 0, 0.55);
}
body[data-dash-tab="analytics"] .dash-hq {
  border-color: rgba(255, 255, 255, 0.35);
}

.dash-wallet {
  position: relative;
  margin: 0 0 20px;
}

.dash-wallet-bar,
.dash-wallet-bar[hidden],
.dash-wallet-bar.is-packs-only {
  display: none !important;
}

.dash-wallet-bar.is-packs-only .dash-wallet-toggle {
  width: 100%;
  min-height: 92px;
}

.dash-credit-dial {
  position: relative;
  overflow: hidden;
  min-width: 148px;
  max-width: 180px;
  padding: 10px 14px 12px;
  border: 1px solid var(--blue);
  background: rgba(46, 49, 146, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.dash-credit-label {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9da4ff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.dash-credit-dial strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.dash-credit-dial > span:not(.dash-credit-label):not(.dash-credit-ring) {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: #cfd2ff;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.dash-credit-ring {
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(100, 120, 255, 0.55);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* 0 на балансі — червона «тривога» */
.dash-credit-dial:not(.has-credits) {
  border-color: #ff4d4d;
  background: rgba(120, 18, 18, 0.35);
  animation: dash-bal-alert 1.6s ease-in-out infinite;
}

.dash-credit-dial:not(.has-credits) .dash-credit-label,
.dash-credit-dial:not(.has-credits) > span:not(.dash-credit-ring) {
  color: #ffb3b3;
}

.dash-credit-dial:not(.has-credits) strong {
  color: #ff6b6b;
  text-shadow: 0 0 12px rgba(255, 70, 70, 0.55);
}

.dash-credit-dial:not(.has-credits) .dash-credit-ring {
  border-color: rgba(255, 90, 90, 0.7);
  animation: dash-bal-spin-alert 3.2s linear infinite;
}

/* Є продовження — синій «здоровий» стан */
.dash-credit-dial.has-credits {
  border-color: var(--blue);
  background: linear-gradient(145deg, rgba(46, 49, 146, 0.55), rgba(20, 24, 90, 0.72));
  box-shadow: 0 0 0 1px rgba(100, 120, 255, 0.25), 0 0 18px rgba(46, 49, 146, 0.45);
  animation: dash-bal-ok 2.8s ease-in-out infinite;
}

.dash-credit-dial.has-credits .dash-credit-label {
  color: #b8bfff;
}

.dash-credit-dial.has-credits strong {
  color: #e8eaff;
  text-shadow: 0 0 14px rgba(100, 130, 255, 0.55);
}

.dash-credit-dial.has-credits > span:not(.dash-credit-label):not(.dash-credit-ring) {
  color: #aeb6ff;
}

.dash-credit-dial.has-credits .dash-credit-ring {
  border-color: rgba(120, 140, 255, 0.75);
  animation: dash-bal-spin-ok 5.5s linear infinite;
}

@keyframes dash-bal-ok {
  0%, 100% { box-shadow: 0 0 0 1px rgba(100, 120, 255, 0.25), 0 0 14px rgba(46, 49, 146, 0.4); }
  50% { box-shadow: 0 0 0 1px rgba(140, 160, 255, 0.55), 0 0 28px rgba(70, 90, 255, 0.7); }
}

@keyframes dash-bal-alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.15); }
  50% { box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.28), 0 0 22px rgba(255, 40, 40, 0.45); }
}

@keyframes dash-bal-spin-ok {
  to { transform: rotate(360deg); }
}

@keyframes dash-bal-spin-alert {
  0% { transform: rotate(0deg); opacity: 0.45; }
  50% { opacity: 1; }
  100% { transform: rotate(-360deg); opacity: 0.45; }
}

button.dash-wallet-toggle {
  flex: 1 1 220px;
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: #0a0a0a;
  padding: 12px 0 12px 16px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  min-height: 88px;
}

.dash-wallet-hook {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding-right: 14px;
}

.dash-wallet-stamp {
  display: inline-block;
  background: #0a0a0a;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  box-shadow: 0 0 0 2px var(--blue);
  animation: dash-hook-stamp 2.4s ease-in-out infinite;
}

.dash-wallet-toggle strong {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #0a0a0a;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  box-shadow: inset 0 -3px 0 var(--blue);
  padding-bottom: 3px;
}

.dash-wallet-toggle strong i {
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
  animation: dash-hook-br 2.2s ease-in-out infinite;
}

.dash-wallet-toggle small {
  color: #0a0a0a;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
}

.dash-wallet-pct {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 1px 7px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
  animation: dash-hook-pct 2.6s ease-in-out infinite;
}

.dash-wallet-pct.is-max {
  box-shadow: 0 0 0 1px #8b92ff, 0 0 10px rgba(46, 49, 146, 0.55);
}

.dash-wallet-pct-gap {
  display: inline-block;
  margin: 0 4px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.dash-wallet-toggle.is-fx .dash-wallet-stamp {
  animation: dash-hook-stamp-hit 0.7s ease;
}

.dash-wallet-toggle.is-fx .dash-wallet-pct {
  animation: dash-hook-pct-hit 0.7s ease;
}

.dash-wallet-toggle.is-fx strong {
  box-shadow: inset 0 -3px 0 #6b73ff, 0 6px 0 rgba(46, 49, 146, 0.18);
}

@keyframes dash-hook-stamp {
  0%, 100% { box-shadow: 0 0 0 2px var(--blue); }
  50% { box-shadow: 0 0 0 2px #6b73ff, 0 0 12px var(--blue); }
}

@keyframes dash-hook-stamp-hit {
  0%, 100% { box-shadow: 0 0 0 2px var(--blue); }
  40% { box-shadow: 0 0 0 4px #6b73ff, 0 0 18px var(--blue); }
}

@keyframes dash-hook-br {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.7; transform: translateX(-1px); }
}

@keyframes dash-hook-pct {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.18); }
}

@keyframes dash-hook-pct-hit {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.dash-wallet-toggle em {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -12px 0;
  padding: 0 16px 0 20px;
  min-width: 132px;
  background: #0a0a0a;
  color: var(--yellow);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 4px 0 0 var(--blue);
}

.dash-wallet-toggle em::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  border-left: 2px dashed var(--yellow);
}

button.dash-wallet-toggle:hover,
button.dash-wallet-toggle:focus-visible,
button.dash-wallet-toggle[aria-expanded="true"] {
  background: #fff;
  border-color: var(--blue);
  color: #0a0a0a;
}

.dash-wallet-toggle:hover strong,
.dash-wallet-toggle:hover small,
.dash-wallet-toggle:focus-visible strong,
.dash-wallet-toggle:focus-visible small,
.dash-wallet-toggle[aria-expanded="true"] strong,
.dash-wallet-toggle[aria-expanded="true"] small {
  color: #0a0a0a;
}

.dash-wallet-toggle:hover strong i,
.dash-wallet-toggle:focus-visible strong i,
.dash-wallet-toggle[aria-expanded="true"] strong i,
.dash-wallet-toggle:hover .dash-wallet-pct-gap,
.dash-wallet-toggle:focus-visible .dash-wallet-pct-gap,
.dash-wallet-toggle[aria-expanded="true"] .dash-wallet-pct-gap {
  color: #8b92ff;
}

.dash-wallet-toggle:hover .dash-wallet-pct,
.dash-wallet-toggle:focus-visible .dash-wallet-pct,
.dash-wallet-toggle[aria-expanded="true"] .dash-wallet-pct {
  color: #fff;
  background: var(--blue);
}

.dash-wallet-toggle:hover .dash-wallet-stamp,
.dash-wallet-toggle:focus-visible .dash-wallet-stamp,
.dash-wallet-toggle[aria-expanded="true"] .dash-wallet-stamp {
  background: var(--yellow);
  color: #0a0a0a;
}

.dash-wallet-toggle:hover em,
.dash-wallet-toggle:focus-visible em,
.dash-wallet-toggle[aria-expanded="true"] em {
  background: var(--yellow);
  color: #0a0a0a;
}

.dash-wallet-toggle:hover em::before,
.dash-wallet-toggle:focus-visible em::before,
.dash-wallet-toggle[aria-expanded="true"] em::before {
  border-left-color: #0a0a0a;
}

@media (max-width: 640px) {
  .dash-wallet-bar { flex-direction: column; }
  button.dash-wallet-toggle {
    min-height: 0;
    flex-direction: column;
    padding: 12px 14px 0;
  }
  button.dash-wallet-toggle em {
    margin: 12px -14px 0;
    min-height: 44px;
    width: auto;
  }
}

.dash-wallet-slot {
  display: none;
  overflow: hidden;
}

.dash-wallet-slot.is-open {
  display: block;
  margin-top: 10px;
  overflow: visible;
}

.dash-wallet-inner {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 14px 14px 12px;
  border: 1px solid var(--blue);
  background:
    radial-gradient(180px 120px at var(--mx, 80%) var(--my, 0), rgba(255, 242, 0, 0.1), transparent 70%),
    rgba(46, 49, 146, 0.12);
}

.dash-tariff-nosub {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #fff;
  color: #111;
  border: 2px solid #fff200;
  box-shadow: 0 0 0 1px #0a0a0a;
}
.dash-tariff-nosub-mark {
  flex: none;
  align-self: flex-start;
  background: #fff200;
  color: #0a0a0a;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 9px 12px;
  border: 2px solid #0a0a0a;
  cursor: default;
  white-space: nowrap;
  pointer-events: none;
  max-width: 11.5em;
  white-space: normal;
  text-align: center;
}
.dash-tariff-nosub-text {
  min-width: 0;
  display: block;
}
.dash-tariff-nosub-copy,
.dash-tariff-nosub-thanks {
  display: inline;
  margin: 0;
  min-width: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  text-align: start;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.dash-tariff-nosub-copy::after {
  content: " ";
}
.dash-tariff-nosub-out {
  margin: 0;
  color: #111;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}
@media (max-width: 700px) {
  .dash-tariff-nosub {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  .dash-tariff-nosub-mark {
    width: fit-content;
  }
  .dash-tariff-nosub-copy,
  .dash-tariff-nosub-thanks {
    font-size: 13px;
  }
  .dash-tariff-nosub-out {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .dash-tariff-nosub-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .dash-tariff-nosub-copy,
  .dash-tariff-nosub-thanks {
    display: block;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }
  .dash-tariff-nosub-copy::after {
    content: none;
  }
}
.dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-copy,
.dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-thanks {
  display: block;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-copy::after {
  content: none;
}
@media (max-width: 760px) {
  html[lang="zh"] .dash-tariff-nosub-copy,
  html[lang="zh"] .dash-tariff-nosub-thanks,
  html[lang="ja"] .dash-tariff-nosub-copy,
  html[lang="ja"] .dash-tariff-nosub-thanks,
  html[lang="ko"] .dash-tariff-nosub-copy,
  html[lang="ko"] .dash-tariff-nosub-thanks {
    text-justify: inter-ideograph;
  }
}
html[lang="zh"] .dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-copy,
html[lang="zh"] .dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-thanks,
html[lang="ja"] .dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-copy,
html[lang="ja"] .dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-thanks,
html[lang="ko"] .dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-copy,
html[lang="ko"] .dash-tariff-nosub.is-hook-spread .dash-tariff-nosub-thanks {
  text-justify: inter-ideograph;
}

.dash-wallet-lead {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
}
.dash-wallet-lead[hidden] {
  display: none !important;
  margin: 0;
}

.dash-pack-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 10px 6px;
  overflow: hidden;
}

.dash-wallet-slot.is-open .dash-wallet-inner {
  overflow: visible;
}

.dash-wallet-slot.is-open .dash-pack-list {
  overflow: visible;
}

button.dash-pack-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 128px;
  background: #fff;
  color: #111;
  border: 1px solid #fff;
  padding: 12px 14px 10px;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  text-align: left;
  transform-origin: center center;
  transition: none;
  z-index: 1;
}

.dash-pack-btn strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.dash-pack-btn span {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #222;
}

.dash-pack-btn small {
  font-size: 13px;
  letter-spacing: 0;
  color: #111;
}

.dash-pack-pct {
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: #0a0a0a;
}

.dash-pack-tag {
  margin-top: auto;
  background: #111;
  color: var(--yellow);
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-pack-tag span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

button.dash-pack-btn:hover,
button.dash-pack-btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #111;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  button.dash-pack-btn:hover,
  button.dash-pack-btn:focus-visible {
    transform: scale(1.15);
  }
}

.dash-pack-btn:hover span,
.dash-pack-btn:hover small,
.dash-pack-btn:hover .dash-pack-pct,
.dash-pack-btn:focus-visible span,
.dash-pack-btn:focus-visible small,
.dash-pack-btn:focus-visible .dash-pack-pct {
  color: #111;
}

.dash-pack-btn:hover .dash-pack-tag,
.dash-pack-btn:hover .dash-pack-tag span,
.dash-pack-btn:focus-visible .dash-pack-tag,
.dash-pack-btn:focus-visible .dash-pack-tag span {
  background: #111;
  color: var(--yellow);
}

button.dash-pack-btn.is-on,
button.dash-pack-btn.is-on:hover,
button.dash-pack-btn.is-on:focus-visible,
button.dash-pack-btn.is-on:active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  button.dash-pack-btn.is-on:hover,
  button.dash-pack-btn.is-on:focus-visible {
    transform: scale(1.15);
  }
}

.dash-pack-btn.is-on span,
.dash-pack-btn.is-on small,
.dash-pack-btn.is-on .dash-pack-pct { color: #0a0a0a; }

.dash-pack-btn.is-on .dash-pack-tag {
  background: #111;
  color: var(--yellow);
}

.dash-pack-btn.is-boot::before,
.dash-wallet-inner.is-boot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
  z-index: 4;
  pointer-events: none;
  animation: dash-boot-scan 0.55s ease-out forwards;
}

.dash-pack-btn.is-boot::after,
.dash-wallet-inner.is-boot::before {
  content: attr(data-boot);
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 8px 10px;
  text-align: right;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(46, 49, 146, 0.16) 0 2px,
      transparent 2px 5px
    );
  animation: dash-boot-grid 0.55s ease-out forwards;
}

@keyframes dash-boot-scan {
  from { top: 0; opacity: 1; }
  to { top: calc(100% - 3px); opacity: 0; }
}

@keyframes dash-boot-grid {
  0% { opacity: 0.95; }
  70% { opacity: 0.45; }
  100% { opacity: 0; }
}

.dash-pack-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 14px;
}

.dash-pack-detail p {
  margin: 0;
  flex: 1 1 240px;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}

.dash-pack-detail p span {
  display: block;
  margin-top: 4px;
  color: #d8d8d8;
  font-size: 14px;
}

.dash-pack-pay {
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: #0a0a0a;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.dash-pack-pay:hover,
.dash-pack-pay:focus-visible {
  background: #111;
  border-color: var(--yellow);
  color: var(--yellow);
}

.dash-soon {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--yellow);
  background: rgba(255, 242, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.dash-soon.hidden { display: none; }

.dash-soon strong {
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.dash-list-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 18px;
}

.dash-list-tools .dash-search {
  flex: 0 1 50%;
  max-width: 50%;
  min-width: 0;
  margin: 0;
}

.dash-list-tools .dash-claim-dock {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: none;
}

.dash-list-tools .dash-claim-toggle {
  width: max-content;
  max-width: none;
  margin-bottom: 0;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
}

.dash-list-tools .dash-claim-slot {
  width: min(100vw - 48px, 520px);
  max-width: calc(100vw - 48px);
}

.dash-list-tools .dash-claim-slot.is-open {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .dash-list-tools {
    flex-wrap: wrap;
  }
  .dash-list-tools .dash-search {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
  .dash-list-tools .dash-claim-dock {
    width: 100%;
    max-width: none;
    align-items: stretch;
  }
  .dash-list-tools .dash-claim-toggle {
    width: 100%;
    white-space: normal;
  }
  .dash-list-tools .dash-claim-slot {
    width: 100%;
    max-width: none;
  }
}

.dash-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-search.hidden { display: none; }

.dash-search input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.dash-card-pay {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.dash-card-pay:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.dash-org {
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Shared analytics surface (calendar / explore / map / compare) */
.dash-analytics-card {
  margin: 0 0 18px;
  padding: 18px 18px 20px;
  border: 1px solid #2f2f36;
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.18) 0%, transparent 48%),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255, 255, 255, 0.025) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(255, 255, 255, 0.02) 19px 20px),
    #0c0c10;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  box-shadow:
    inset 3px 0 0 var(--blue),
    inset 0 1px 0 rgba(255, 242, 0, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.28);
}
.dash-analytics-stage {
  padding: 14px;
  border: 1px solid rgba(255, 242, 0, 0.32);
  background: rgba(0, 0, 0, 0.55);
  clip-path: polygon(
    6px 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 6px) 100%,
    6px 100%,
    0 calc(100% - 6px),
    0 6px
  );
}
.dash-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.dash-analytics-kpi {
  padding: 12px 14px;
  border: 1px solid #2f2f36;
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.22) 0%, transparent 70%),
    #101018;
  min-width: 0;
  clip-path: polygon(
    7px 0,
    calc(100% - 7px) 0,
    100% 7px,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    7px 100%,
    0 calc(100% - 7px),
    0 7px
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dash-analytics-kpi.is-accent {
  border-color: rgba(255, 242, 0, 0.55);
  box-shadow:
    inset 2px 0 0 var(--yellow),
    inset 0 1px 0 rgba(255, 242, 0, 0.2);
}
.dash-analytics-kpi span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d0d0d0;
  font-weight: 700;
}
.dash-analytics-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow: hidden;
}
.dash-analytics-kpi.is-accent strong {
  color: var(--yellow);
}
.dash-analytics-kpi em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--yellow);
}

.dash-cal-panel {
  margin-bottom: 18px;
}

.dash-org-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-org-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-org-title {
  margin: 0;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.02em;
}

.dash-org-lead {
  margin: 8px 0 0;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 52em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-pulse-head p,
.dash-matrix-head p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42em;
}

.dash-org-range {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  overflow: visible;
}

.dash-range-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-range-chip {
  background: #0a0a0a;
  border: 1px solid var(--line);
  color: #fff;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.dash-range-chip:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.dash-range-chip.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}

.dash-range-date {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.dash-cal-trigger {
  min-width: 132px;
  background: #0a0a0a;
  border: 1px solid var(--blue);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  text-align: left;
  cursor: pointer;
}

.dash-cal-trigger:hover,
.dash-cal-trigger[aria-expanded="true"] {
  border-color: var(--yellow);
  color: var(--yellow);
  background: #0a0a0a;
}

.dash-cal-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 268px;
  background: #0a0a12;
  border: 1px solid var(--yellow);
  box-shadow: 0 0 0 1px var(--blue), 0 0 32px rgba(255, 242, 0, 0.18);
  padding: 12px 12px 14px;
  transform-origin: top center;
}

.dash-cal-pop.hidden {
  display: none;
}

.dash-cal-pop.is-open {
  display: block;
  animation: dash-cal-unfold 0.42s cubic-bezier(0.18, 0.9, 0.22, 1);
}

.dash-cal-pop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--blue), var(--yellow));
}

.dash-cal-scan {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.dash-cal-pop.is-month-anim .dash-cal-scan {
  opacity: 1;
  animation: dash-cal-laser 0.75s ease-out;
}

.dash-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dash-cal-month {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-cal-nav {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  width: 32px;
  height: 28px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.dash-cal-nav:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}

.dash-cal-wd,
.dash-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dash-cal-wd {
  margin-bottom: 6px;
}

.dash-cal-wd span {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.dash-cal-day {
  height: 30px;
  background: rgba(46, 49, 146, 0.42);
  border: 1px solid var(--blue);
  color: #fff;
  font: inherit;
  font-size: 12px;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.dash-cal-grid.is-month-anim .dash-cal-day:not(.is-empty) {
  animation: dash-cal-bit 0.32s ease both;
  animation-delay: calc(var(--i, 0) * 14ms);
}

.dash-cal-day:hover:not(:disabled) {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.dash-cal-day.is-today {
  box-shadow: inset 0 0 0 1px var(--yellow);
}

.dash-cal-day.is-inrange {
  background: rgba(255, 242, 0, 0.18);
  border-color: #8a8200;
}

.dash-cal-day.is-picked,
.dash-cal-day.is-picked:hover {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.dash-cal-day:disabled,
.dash-cal-day.is-empty {
  opacity: 0.28;
  background: transparent;
  cursor: default;
}

.dash-heat-cell {
  cursor: pointer;
}

.dash-heat-cell:hover {
  outline: 1px solid var(--yellow);
}

.dash-heat-cell.is-focus {
  outline: 1px solid #fff;
}

@keyframes dash-cal-unfold {
  from {
    opacity: 0;
    transform: perspective(420px) rotateX(-22deg) translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dash-cal-laser {
  from { top: 10px; opacity: 1; }
  to { top: calc(100% - 8px); opacity: 0; }
}

@keyframes dash-cal-bit {
  from {
    opacity: 0;
    transform: scale(0.35);
    background: var(--yellow);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Generator datetime picker (reuses dash-cal look) */
.qrg-cal-wrap {
  position: relative;
  width: 100%;
  margin-top: 4px;
  z-index: 2;
}
.qrg-cal-wrap .qrg-cal-trigger,
.qrg-cal-wrap .dash-cal-trigger {
  width: 100%;
  min-width: 0;
  display: block;
  min-height: 44px;
  touch-action: manipulation;
}
/* Anchored to field wrap — scrolls with the page */
.qrg-cal-pop.dash-cal-pop {
  position: absolute;
  z-index: 7000;
  max-width: calc(100vw - 16px);
}
.qrg-cal-wrap.is-cal-open {
  z-index: 7000;
}
/* Parent label must sit above following fields (ТЕКСТ etc.), or the pop is covered */
.panel .fields > label:has(.qrg-cal-wrap.is-cal-open),
.panel .grid > label:has(.qrg-cal-wrap.is-cal-open),
.style-modal-controls > label:has(.qrg-cal-wrap.is-cal-open),
label:has(.qrg-cal-wrap.is-cal-open) {
  position: relative;
  z-index: 7000;
}
.panel .fields,
.panel .grid,
.style-modal-controls {
  overflow: visible;
}
.panel .fields > label:has(.qrg-cal-wrap),
.panel .grid > label:has(.qrg-cal-wrap),
.style-modal-controls > label:has(.qrg-cal-wrap) {
  clip-path: none;
  overflow: visible;
}
.qrg-cal-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 0 2px;
}
.qrg-cal-time label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.qrg-cal-time select {
  background: #0a0a0a;
  border: 1px solid var(--blue);
  color: #fff;
  padding: 7px 8px;
  font: inherit;
  font-size: 13px;
}
.qrg-cal-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 0 2px 2px;
}
.qrg-cal-clear,
.qrg-cal-apply {
  flex: 1;
  border: 1px solid var(--blue);
  background: #0a0a0a;
  color: #fff;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.qrg-cal-apply {
  border-color: var(--yellow);
  color: #0a0a0a;
  background: var(--yellow);
  font-weight: 800;
}
.qrg-cal-clear:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.dash-insights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  min-height: 0;
}

.dash-insight {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #2f2f36;
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.22) 0%, transparent 70%),
    #101018;
  clip-path: polygon(
    7px 0,
    calc(100% - 7px) 0,
    100% 7px,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    7px 100%,
    0 calc(100% - 7px),
    0 7px
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dash-insight.is-index {
  border-color: rgba(255, 242, 0, 0.55);
  box-shadow:
    inset 2px 0 0 var(--yellow),
    inset 0 1px 0 rgba(255, 242, 0, 0.2);
}

.dash-insight span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d0d0d0;
  font-weight: 700;
  margin-bottom: 6px;
}

.dash-insight strong {
  display: block;
  font-size: 20px;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.dash-insight.is-index strong {
  color: var(--yellow);
}

.dash-pulse-block,
.dash-matrix-block {
  margin: 0 0 14px;
}
.dash-pulse-head,
.dash-matrix-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 10px;
}
.dash-pulse-head h3,
.dash-matrix-head h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.dash-pulse-head p,
.dash-matrix-head p {
  margin: 0;
  font-size: 12px;
  color: #bdbdbd;
}
.dash-pulse-meta,
.dash-matrix-meta {
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.dash-pulse {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
}
.dash-pulse-seg {
  flex: 1 1 0;
  min-width: 2px;
  height: var(--h, 8%);
  max-height: 100%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.dash-pulse-seg.lv1 { background: rgba(46, 49, 146, 0.7); }
.dash-pulse-seg.lv2 { background: var(--blue); }
.dash-pulse-seg.lv3 { background: #c9be00; }
.dash-pulse-seg.lv4 { background: var(--yellow); box-shadow: 0 0 10px rgba(255, 242, 0, 0.35); }
.dash-pulse-seg.is-on {
  outline: 2px solid #fff;
  outline-offset: 1px;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.dash-pulse-seg:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}
.dash-pulse-empty {
  margin: 0;
  padding: 14px;
  color: #9a9a9a;
  font-size: 13px;
}
.dash-matrix-wrap {
  overflow-x: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.dash-matrix {
  display: grid;
  grid-template-columns: 36px repeat(24, minmax(10px, 1fr));
  gap: 2px;
  min-width: 520px;
}
.dash-matrix.is-empty {
  display: block;
  min-width: 0;
}
.dash-matrix-corner,
.dash-matrix-h,
.dash-matrix-wd {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8a;
  text-align: center;
  line-height: 18px;
}
.dash-matrix-wd {
  text-align: left;
  padding-left: 2px;
  color: #cfcfcf;
}
.dash-matrix-cell {
  aspect-ratio: 1;
  min-height: 10px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  cursor: default;
}
.dash-matrix-cell.lv1 { background: rgba(46, 49, 146, 0.55); }
.dash-matrix-cell.lv2 { background: var(--blue); }
.dash-matrix-cell.lv3 { background: #c9be00; }
.dash-matrix-cell.lv4 { background: var(--yellow); }
.dash-matrix-cell.is-peak {
  outline: 1px solid #fff;
  box-shadow: 0 0 0 1px var(--yellow), 0 0 12px rgba(255, 242, 0, 0.45);
}

.dash-heat-wrap {
  margin: 0 0 0;
  padding: 14px;
  border: 1px solid rgba(255, 242, 0, 0.28);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: none;
}

.dash-explore {
  margin: 0 0 18px;
}
.dash-explore-head { margin: 0 0 14px; }
.dash-explore-toolbar {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
}
.dash-explore-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
}
.dash-explore-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-left: auto;
}
.dash-explore-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0;
}
.dash-explore-field {
  display: grid;
  gap: 4px;
  min-width: min(100%, 220px);
  flex: 1 1 200px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.dash-explore-field select {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #0a0a0a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.dash-explore-field select:focus {
  outline: none;
  border-color: var(--yellow);
}
.dash-explore-stage {
  padding: 14px;
  border: 1px solid rgba(255, 242, 0, 0.28);
  background: rgba(0, 0, 0, 0.42);
}
.dash-explore-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.dash-explore-kpi {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(46, 49, 146, 0.2);
}
.dash-explore-kpi span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.dash-explore-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dash-explore-kpi em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--yellow);
}
.dash-explore-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 10px;
  font-size: 12px;
  color: #fff;
}
.dash-explore-legend span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 242, 0, 0.45);
}
.dash-explore-legend .is-b::before {
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.45);
}
.dash-explore-chart {
  min-height: 220px;
}
.dash-explore-plot {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    #07070c;
}
.dash-explore-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
}
.dash-explore-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
.dash-explore-axis {
  fill: #9a9a9a;
  font-size: 11px;
}
.dash-explore-area {
  fill: url(#dash-explore-fill);
}
.dash-explore-line {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-explore-line.is-a { stroke: var(--yellow); }
.dash-explore-line.is-b {
  stroke: #60a5fa;
  stroke-width: 2.2;
  stroke-dasharray: 6 5;
}
.dash-explore-point {
  cursor: default;
}
.dash-explore-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}
.dash-explore-dot.is-a {
  fill: var(--yellow);
  stroke: #0a0a0a;
  stroke-width: 1.5;
  pointer-events: none;
}
.dash-explore-dot.is-b {
  fill: #60a5fa;
  stroke: #0a0a0a;
  stroke-width: 1.5;
  pointer-events: none;
}
.dash-explore-dot.is-peak {
  fill: #fff;
  stroke: var(--yellow);
  stroke-width: 2;
}
.dash-explore-val {
  fill: #9a9a9a;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.dash-explore-val.is-b {
  fill: #8a9bb0;
}
.dash-explore-hint {
  margin: 10px 0 0;
}

@media (max-width: 900px) {
  .dash-explore-kpis,
  .dash-analytics-kpis,
  .dash-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-explore-dates { margin-left: 0; width: 100%; }
}

.dash-map-wrap {
  margin: 0 0 18px;
}
.dash-map-head { margin: 0 0 12px; }
.dash-explore-head,
.dash-map-head,
.dash-compare-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dash-explore-head > div,
.dash-map-head > div,
.dash-compare-head > div {
  min-width: 0;
  flex: 1 1 auto;
}
.dash-feature-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dash-feature-tools.is-end {
  width: 100%;
  margin: 0 0 8px;
}
.dash-insights-head {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}
.dash-heat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.dash-heat-head .dash-heat-label { margin: 0; }
.dash-dl-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 242, 0, 0.35);
  background: transparent;
  color: var(--yellow);
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dash-dl-btn:hover {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}
.dash-dl-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
html.is-chart-capturing .dash-dl-btn,
html.is-chart-capturing [data-dl-chart],
html.is-chart-capturing .dash-insight-dl,
html.is-chart-capturing .dash-dl-theme,
html.is-chart-capturing .dash-code-deck-slot,
html.is-chart-capturing .dash-cal-pop,
html.is-chart-capturing .leaflet-control-container {
  display: none !important;
}
html.is-chart-capturing-calendar .dash-insights-head,
html.is-chart-capturing-calendar #dash-insights {
  display: none !important;
}
html.is-chart-capturing,
html.is-chart-capturing * {
  animation: none !important;
  transition: none !important;
}

/* Light PNG export: white paper, dark ink */
html.is-chart-capturing-light .dash-analytics-card,
html.is-chart-capturing-light .dash-cal-panel,
html.is-chart-capturing-light .dash-chart-capture,
html.is-chart-capturing-light .dash-stats-drawer,
html.is-chart-capturing-light .dash-stats-grid,
html.is-chart-capturing-light .dash-stat-block,
html.is-chart-capturing-light .dash-code-deck,
html.is-chart-capturing-light .dash-code-selected,
html.is-chart-capturing-light .dash-code-deck-toggle,
html.is-chart-capturing-light .dash-analytics-stage,
html.is-chart-capturing-light .dash-map-frame,
html.is-chart-capturing-light .dash-map-signal,
html.is-chart-capturing-light .dash-compare-board,
html.is-chart-capturing-light .dash-explore-stage,
html.is-chart-capturing-light .dash-explore-toolbar,
html.is-chart-capturing-light .dash-pulse-block,
html.is-chart-capturing-light .dash-matrix-block,
html.is-chart-capturing-light .dash-heat-wrap,
html.is-chart-capturing-light .dash-insights,
html.is-chart-capturing-light .dash-insight,
html.is-chart-capturing-light .dash-analytics-kpi,
html.is-chart-capturing-light .dash-org-head,
html.is-chart-capturing-light .dash-map-head,
html.is-chart-capturing-light .dash-compare-head,
html.is-chart-capturing-light .dash-explore-head {
  background: #ffffff !important;
  background-image: none !important;
  color: #111111 !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  box-shadow: none !important;
}
html.is-chart-capturing-light,
html.is-chart-capturing-light body {
  background: #ffffff !important;
}
html.is-chart-capturing-light h1,
html.is-chart-capturing-light h2,
html.is-chart-capturing-light h3,
html.is-chart-capturing-light h4,
html.is-chart-capturing-light strong,
html.is-chart-capturing-light b,
html.is-chart-capturing-light em,
html.is-chart-capturing-light .dash-org-title,
html.is-chart-capturing-light .dash-code-deck-label strong,
html.is-chart-capturing-light .dash-code-copy strong,
html.is-chart-capturing-light .dash-insight strong,
html.is-chart-capturing-light .dash-analytics-kpi strong,
html.is-chart-capturing-light .dash-matrix-h,
html.is-chart-capturing-light .dash-matrix-wd,
html.is-chart-capturing-light .dash-matrix-corner,
html.is-chart-capturing-light .dash-heat-label,
html.is-chart-capturing-light .dash-pulse-meta,
html.is-chart-capturing-light .dash-matrix-meta {
  color: #0a0a0a !important;
}
html.is-chart-capturing-light p,
html.is-chart-capturing-light span,
html.is-chart-capturing-light label,
html.is-chart-capturing-light .hint,
html.is-chart-capturing-light .dash-org-kicker,
html.is-chart-capturing-light .dash-org-lead,
html.is-chart-capturing-light .dash-code-deck-label span,
html.is-chart-capturing-light .dash-code-sub,
html.is-chart-capturing-light .dash-code-selected-label,
html.is-chart-capturing-light .dash-insight span,
html.is-chart-capturing-light .dash-analytics-kpi span,
html.is-chart-capturing-light .dash-pulse-head p,
html.is-chart-capturing-light .dash-matrix-head p,
html.is-chart-capturing-light .dash-explore-hint,
html.is-chart-capturing-light #dash-map-meta {
  color: #333333 !important;
}
html.is-chart-capturing-light .dash-code-selected-label,
html.is-chart-capturing-light .dash-org-kicker {
  color: #2e3192 !important;
}
html.is-chart-capturing-light .dash-code-tag,
html.is-chart-capturing-light .dash-range-chip,
html.is-chart-capturing-light .dash-cal-trigger {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border-color: rgba(0, 0, 0, 0.28) !important;
}
html.is-chart-capturing-light .dash-code-tag b {
  color: #2e3192 !important;
}
html.is-chart-capturing-light .dash-code-deck-badge {
  background: #fff !important;
  color: #0a0a0a !important;
  box-shadow: 3px 3px 0 rgba(46, 49, 146, 0.35) !important;
}
html.is-chart-capturing-light .dash-code-deck-chevron {
  border-color: rgba(0, 0, 0, 0.28) !important;
}
html.is-chart-capturing-light .dash-code-deck-chevron::before {
  border-color: #0a0a0a !important;
}
html.is-chart-capturing-light .dash-explore-svg text,
html.is-chart-capturing-light .dash-explore-val {
  fill: #0a0a0a !important;
  color: #0a0a0a !important;
}
html.is-chart-capturing-light .dash-explore-svg .dash-explore-axis,
html.is-chart-capturing-light .dash-explore-svg line,
html.is-chart-capturing-light .dash-explore-svg .tick {
  stroke: rgba(0, 0, 0, 0.18) !important;
}
html.is-chart-capturing-light .dash-explore-legend,
html.is-chart-capturing-light .dash-explore-legend span {
  color: #0a0a0a !important;
}
html.is-chart-capturing-light .dash-explore-field span,
html.is-chart-capturing-light .dash-explore-field select,
html.is-chart-capturing-light .dash-cal-value {
  color: #0a0a0a !important;
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}
html.is-chart-capturing-light .dash-pulse-seg.lv1,
html.is-chart-capturing-light .dash-matrix-cell.lv1 {
  background: rgba(46, 49, 146, 0.45) !important;
}
html.is-chart-capturing-light .dash-analytics-kpi.is-accent,
html.is-chart-capturing-light .dash-insight.is-index {
  border-color: rgba(46, 49, 146, 0.35) !important;
}
html.is-chart-capturing-light .dash-heat-cell {
  color: #0a0a0a !important;
}

/* Code stats: recent scans table + bars stay white by default */
html.is-chart-capturing-light .dash-stats-drawer-inner,
html.is-chart-capturing-light .dash-stats-recent,
html.is-chart-capturing-light .dash-recent-table,
html.is-chart-capturing-light .dash-bar-row,
html.is-chart-capturing-light .dash-eq-wrap {
  background: #ffffff !important;
  color: #0a0a0a !important;
}
html.is-chart-capturing-light .dash-recent-table th,
html.is-chart-capturing-light .dash-recent-table td,
html.is-chart-capturing-light .dash-stat-empty,
html.is-chart-capturing-light .dash-bar-n,
html.is-chart-capturing-light .dash-bar-name,
html.is-chart-capturing-light .dash-bar-label,
html.is-chart-capturing-light .dash-eq-axis,
html.is-chart-capturing-light .dash-eq-axis span,
html.is-chart-capturing-light .dash-line-label,
html.is-chart-capturing-light .dash-line-val,
html.is-chart-capturing-light .dash-line-axis,
html.is-chart-capturing-light .dash-line-axis span,
html.is-chart-capturing-light .dash-stats-grid h3 {
  color: #0a0a0a !important;
  fill: #0a0a0a !important;
}
html.is-chart-capturing-light .dash-recent-table th {
  border-bottom-color: rgba(0, 0, 0, 0.18) !important;
}
html.is-chart-capturing-light .dash-recent-table td {
  border-bottom-color: rgba(0, 0, 0, 0.12) !important;
}
html.is-chart-capturing-light .dash-stats-grid {
  border-top-color: rgba(0, 0, 0, 0.14) !important;
}
html.is-chart-capturing-light .dash-line-wrap svg text {
  fill: #0a0a0a !important;
}

.dash-dl-theme {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  justify-content: flex-end;
}
.dash-dl-theme-btn {
  flex: 1 1 auto;
  min-width: 118px;
  border: 1px solid transparent;
  padding: 8px 10px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.25;
}
.dash-dl-theme-btn.is-dark {
  background: #0a0a0a;
  color: #fff200;
  border-color: rgba(255, 242, 0, 0.55);
}
.dash-dl-theme-btn.is-dark:hover {
  background: #141414;
}
.dash-dl-theme-btn.is-light {
  background: #ffffff;
  color: #0a0a0a;
  border-color: rgba(0, 0, 0, 0.35);
}
.dash-dl-theme-btn.is-light:hover {
  background: #f3f3f3;
}
.dash-dl-theme-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.dash-card-dl-chart + .dash-dl-theme {
  width: 100%;
  min-height: 52px;
}
.dash-card-dl-chart + .dash-dl-theme .dash-dl-theme-btn {
  min-height: 52px;
}
.dash-chart-capture {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  background: #0a0a0a;
  padding: 8px 4px;
}
.dash-card-dl-chart {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.dash-insight-dl {
  display: flex;
  align-items: stretch;
  padding: 6px;
  border-color: rgba(255, 242, 0, 0.35);
  background: transparent;
}
.dash-insight-how {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #9a9a9a;
  font-weight: 500;
}
.dash-insight.is-scans,
.dash-insight.is-last {
  border-color: rgba(255, 242, 0, 0.35);
}
.dash-line-val {
  fill: #fff;
  font: 700 11px "JetBrains Mono", Consolas, monospace;
  paint-order: stroke fill;
  stroke: #0a0a0a;
  stroke-width: 3px;
  pointer-events: none;
}
.dash-line-val.is-peak {
  fill: #fff200;
}
.dash-scan-map:fullscreen,
.dash-scan-map:-webkit-full-screen,
.dash-scan-map:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  background: #0a0a0a;
}
.dash-map-picks,
.dash-compare-picks {
  display: block;
  margin: 0 0 12px;
}
.dash-map-frame {
  border: 1px solid rgba(255, 242, 0, 0.28);
  background: rgba(0, 0, 0, 0.42);
  padding: 0;
}
.dash-scan-map {
  width: 100%;
  height: min(560px, 68vh);
  min-height: 380px;
}
.leaflet-tooltip.dash-map-city-label {
  background: #111;
  color: #fff200;
  border: 1px solid #fff200;
  border-radius: 2px;
  padding: 2px 6px;
  font: 700 11px/1.2 var(--font);
  letter-spacing: 0.02em;
  box-shadow: none;
  white-space: nowrap;
}
.leaflet-tooltip.dash-map-city-label::before {
  border-top-color: #fff200;
}
.dash-map-pop {
  font: 12px/1.45 var(--font);
  color: #111;
}
.dash-map-pop strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.dash-map-pop-note {
  margin-top: 6px;
  color: #666;
  font-size: 11px;
}

.dash-heat-label {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
  color: #fff;
}

.dash-heat {
  display: block;
  margin-top: 4px;
}

.dash-heat .dash-stat-empty {
  margin: 6px 0 0;
}

.dash-density {
  display: grid;
  gap: 16px;
}

.dash-density-kicker {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.dash-density-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.dash-density-wd {
  position: relative;
  min-width: 0;
  padding: 10px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.dash-density-wd-name {
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dash-density-wd-bar {
  display: block;
  width: 100%;
  height: 6px;
  background: #161616;
  overflow: hidden;
}

.dash-density-wd-bar i {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transition: width 0.6s ease;
}

.dash-density-wd-pct {
  font-size: 18px;
  line-height: 1;
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dash-density-wd.is-hot .dash-density-wd-pct {
  color: var(--yellow);
}

.dash-density-wd-n {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
}

.dash-density-cal-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-density-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.dash-density-day {
  position: relative;
  min-height: 64px;
  padding: 8px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0c0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  overflow: hidden;
  animation: dash-density-in 0.45s ease both;
  animation-delay: calc(var(--d, 0) * 18ms);
}

.dash-density-day.is-pad {
  border-color: transparent;
  background: transparent;
  min-height: 64px;
  animation: none;
}

.dash-density-day.is-tail {
  opacity: 0.42;
}

.dash-density-day.is-tail.is-life {
  opacity: 0.72;
}

.dash-density-life {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  opacity: 0.95;
}

.dash-density-day.is-life {
  border-color: rgba(255, 221, 0, 0.42);
  background: linear-gradient(180deg, rgba(255, 221, 0, 0.14), rgba(255, 221, 0, 0.03) 42%, #0c0c0c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 221, 0, 0.12);
}

.dash-density-day.is-life .dash-density-life {
  display: block;
}

.dash-density-day.is-birth {
  border-color: var(--yellow);
  background: linear-gradient(180deg, rgba(255, 221, 0, 0.34), rgba(255, 221, 0, 0.08) 50%, #0c0c0c 100%);
  box-shadow: 0 0 0 1px var(--yellow), inset 0 0 18px rgba(255, 221, 0, 0.18);
}

.dash-density-day.is-birth .dash-density-dom {
  color: var(--yellow);
}

.dash-density-day.is-hot::before {
  content: "";
  position: absolute;
  inset: 0 auto 3px 0;
  width: calc(var(--p) * 1%);
  max-width: 100%;
  background: rgba(46, 49, 146, 0.45);
  pointer-events: none;
}

.dash-density-dom {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.dash-density-pct {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.dash-density-day.is-hot .dash-density-pct {
  color: var(--yellow);
}

.dash-density-day.is-today {
  outline: 1px dashed rgba(255, 255, 255, 0.35);
  outline-offset: -3px;
}

.dash-density-legend,
.dash-density-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.dash-density-legend strong {
  color: var(--yellow);
  font-weight: 700;
}

.dash-density-life-mark {
  display: inline-block;
  width: 18px;
  height: 8px;
  margin-right: 6px;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(255, 221, 0, 0.25), var(--yellow));
  border: 1px solid var(--yellow);
}

.dash-density-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.dash-density.is-empty .dash-stat-empty {
  margin-bottom: 8px;
}

@keyframes dash-density-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .dash-density-week {
    gap: 4px;
  }
  .dash-density-wd {
    padding: 8px 4px 6px;
  }
  .dash-density-wd-pct {
    font-size: 14px;
  }
  .dash-density-day {
    min-height: 56px;
    padding: 6px 2px 8px;
  }
  .dash-density-pct {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-density-day {
    animation: none;
  }
  .dash-density-wd-bar i {
    transition: none;
  }
}

.dash-hq {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.dash-hq.hidden {
  display: none;
}

.dash-hq-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #2f2f36;
  border-left: none;
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.16) 0%, transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255, 255, 255, 0.025) 19px 20px),
    #0c0c10;
  padding: 16px 18px 18px;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  box-shadow:
    inset 3px 0 0 var(--blue),
    inset 0 1px 0 rgba(255, 242, 0, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.dash-hq-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
  color: #ececec;
}

.dash-hq-cell strong,
.dash-hq-cell .dash-countdown {
  font-size: 22px;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.2;
}

.dash-hq-sub {
  margin-top: -4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c8c8c8;
}
.dash-hq-sub.is-urgent {
  color: #ff8a8a;
}
.dash-hq-cell.is-pay {
  box-shadow:
    inset 3px 0 0 var(--yellow),
    inset 0 1px 0 rgba(255, 242, 0, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 242, 0, 0.1) 0%, transparent 55%),
    #0c0c10;
}
.dash-hq-cell.is-ssl {
  box-shadow:
    inset 3px 0 0 #6e7fff,
    inset 0 1px 0 rgba(110, 127, 255, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.28) 0%, transparent 55%),
    #0c0c10;
}
.dash-account-stat.is-owner-pay,
.dash-account-stat.is-owner-ssl {
  grid-template-columns: 1fr;
  padding-left: 0.7rem;
}
.dash-account-stat.is-owner-pay {
  border-color: color-mix(in srgb, var(--yellow) 40%, rgba(255, 255, 255, 0.2));
  background:
    linear-gradient(90deg, var(--yellow) 0 3px, transparent 3px),
    linear-gradient(180deg, rgba(255, 242, 0, 0.08), transparent 60%),
    rgba(46, 49, 146, 0.28);
}
.dash-account-stat.is-owner-ssl {
  border-color: color-mix(in srgb, #93c5fd 45%, rgba(255, 255, 255, 0.2));
  background:
    linear-gradient(90deg, #93c5fd 0 3px, transparent 3px),
    linear-gradient(180deg, rgba(147, 197, 253, 0.1), transparent 60%),
    rgba(46, 49, 146, 0.28);
}
.dash-account-stat.is-owner-ssl.is-urgent strong {
  color: #fca5a5;
}

.dash-hq-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  animation: dash-led 1.4s ease-in-out infinite;
  flex: 0 0 auto;
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dash-card {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #2f2f36;
  border-left: none;
  padding: 26px 26px 26px 28px;
  /* lattice lives on .dash-card-weave so filaments share the same box */
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.14) 0%, transparent 42%),
    linear-gradient(90deg, rgba(255, 242, 0, 0.04) 0%, transparent 28%),
    #0c0c10;
  color: var(--text);
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  box-shadow:
    inset 3px 0 0 var(--blue),
    inset 0 1px 0 rgba(255, 242, 0, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.35);
  animation: dash-card-in 0.55s ease both;
  animation-delay: var(--stagger, 0ms);
}

.dash-card::before,
.dash-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 1;
  border: 2px solid var(--yellow);
  opacity: 0.85;
}

.dash-card::before {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.dash-card::after {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

/* Lattice current — random bursts on 20px grid inside each QR tile only */
.dash-card-weave {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.34;
  contain: layout style paint;
  container-type: size;
  /* Graph-paper lattice in the SAME box as the filaments (20×20, origin 0,0) */
  background-color: transparent;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 20px, 20px 100%;
  background-position: 0 0, 0 0;
}

.dash-card > :not(.dash-card-weave),
.style-modal-card > :not(.dash-card-weave) {
  position: relative;
  z-index: 2;
}

/* While Edit QR is open — cabinet tile weaves fully idle */
body.edit-modal-open #dash-list .dash-card-weave .dash-card-weave-line {
  animation: none !important;
  opacity: 0 !important;
}

.dash-card-weave-line {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  opacity: 0;
  backface-visibility: hidden;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.dash-card-weave-line.is-h {
  height: 1px;
  width: 80px;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  /* locked to lattice row: N × 20px from weave top */
  top: calc(var(--rail, 2) * 20px) !important;
  transform: translateX(0);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 14%,
    rgba(255, 255, 255, 0.58) 50%,
    rgba(255, 255, 255, 0.12) 86%,
    transparent 100%
  );
}

.dash-card-weave-line.is-v {
  width: 1px;
  height: 80px;
  top: 0 !important;
  bottom: auto !important;
  right: auto !important;
  /* locked to lattice column: N × 20px from weave left */
  left: calc(var(--rail, 2) * 20px) !important;
  transform: translateY(0);
  transform-origin: center top;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 14%,
    rgba(255, 255, 255, 0.52) 50%,
    rgba(255, 255, 255, 0.12) 86%,
    transparent 100%
  );
}

.dash-card-weave-line.is-h.pulse-a { animation-name: dash-amp-h; }
.dash-card-weave-line.is-h.pulse-b { animation-name: dash-amp-h-r; }
.dash-card-weave-line.is-h.pulse-c { animation-name: dash-amp-h-b; }
.dash-card-weave-line.is-v.pulse-a { animation-name: dash-amp-v; }
.dash-card-weave-line.is-v.pulse-b { animation-name: dash-amp-v-r; }
.dash-card-weave-line.is-v.pulse-c { animation-name: dash-amp-v-b; }

/* Only slide along the rail axis — never change the cross-axis */
@keyframes dash-amp-h {
  0%, 8% { transform: translateX(-8cqw); opacity: 0; }
  9% { transform: translateX(4cqw); opacity: 0.7; }
  18% { transform: translateX(22cqw); opacity: 0.62; }
  22% { transform: translateX(30cqw); opacity: 0; }
  22.01%, 38% { transform: translateX(30cqw); opacity: 0; }
  39% { transform: translateX(42cqw); opacity: 0.65; }
  48% { transform: translateX(68cqw); opacity: 0.58; }
  51% { transform: translateX(78cqw); opacity: 0; }
  51.01%, 72% { transform: translateX(10cqw); opacity: 0; }
  73% { transform: translateX(18cqw); opacity: 0.6; }
  82% { transform: translateX(55cqw); opacity: 0.55; }
  84%, 100% { transform: translateX(62cqw); opacity: 0; }
}

@keyframes dash-amp-h-r {
  0%, 12% { transform: translateX(102cqw); opacity: 0; }
  13% { transform: translateX(88cqw); opacity: 0.68; }
  24% { transform: translateX(58cqw); opacity: 0.6; }
  27% { transform: translateX(48cqw); opacity: 0; }
  27.01%, 44% { transform: translateX(80cqw); opacity: 0; }
  45% { transform: translateX(70cqw); opacity: 0.64; }
  55% { transform: translateX(28cqw); opacity: 0.55; }
  57% { transform: translateX(14cqw); opacity: 0; }
  57.01%, 78% { opacity: 0; }
  79% { transform: translateX(60cqw); opacity: 0.58; }
  88% { transform: translateX(12cqw); opacity: 0.52; }
  90%, 100% { transform: translateX(-4cqw); opacity: 0; }
}

@keyframes dash-amp-h-b {
  0%, 5% { transform: translateX(-4cqw); opacity: 0; }
  6% { transform: translateX(18cqw); opacity: 0.66; }
  14% { transform: translateX(36cqw); opacity: 0; }
  14.01%, 31% { opacity: 0; }
  32% { transform: translateX(50cqw); opacity: 0.62; }
  42% { transform: translateX(82cqw); opacity: 0.58; }
  45% { transform: translateX(92cqw); opacity: 0; }
  45.01%, 63% { opacity: 0; }
  64% { transform: translateX(28cqw); opacity: 0.6; }
  74% { transform: translateX(74cqw); opacity: 0.5; }
  76%, 100% { transform: translateX(86cqw); opacity: 0; }
}

@keyframes dash-amp-v {
  0%, 10% { transform: translateY(-8cqh); opacity: 0; }
  11% { transform: translateY(6cqh); opacity: 0.68; }
  20% { transform: translateY(24cqh); opacity: 0.6; }
  23% { transform: translateY(32cqh); opacity: 0; }
  23.01%, 40% { opacity: 0; }
  41% { transform: translateY(48cqh); opacity: 0.64; }
  52% { transform: translateY(72cqh); opacity: 0.55; }
  55% { transform: translateY(82cqh); opacity: 0; }
  55.01%, 76% { opacity: 0; }
  77% { transform: translateY(18cqh); opacity: 0.58; }
  86% { transform: translateY(55cqh); opacity: 0.5; }
  88%, 100% { transform: translateY(62cqh); opacity: 0; }
}

@keyframes dash-amp-v-r {
  0%, 7% { transform: translateY(105cqh); opacity: 0; }
  8% { transform: translateY(88cqh); opacity: 0.66; }
  18% { transform: translateY(58cqh); opacity: 0.58; }
  21% { transform: translateY(46cqh); opacity: 0; }
  21.01%, 36% { opacity: 0; }
  37% { transform: translateY(70cqh); opacity: 0.62; }
  48% { transform: translateY(28cqh); opacity: 0.52; }
  50% { transform: translateY(16cqh); opacity: 0; }
  50.01%, 70% { opacity: 0; }
  71% { transform: translateY(64cqh); opacity: 0.6; }
  82% { transform: translateY(14cqh); opacity: 0.5; }
  84%, 100% { transform: translateY(-4cqh); opacity: 0; }
}

@keyframes dash-amp-v-b {
  0%, 15% { transform: translateY(-4cqh); opacity: 0; }
  16% { transform: translateY(22cqh); opacity: 0.64; }
  24% { transform: translateY(40cqh); opacity: 0; }
  24.01%, 42% { opacity: 0; }
  43% { transform: translateY(8cqh); opacity: 0.6; }
  54% { transform: translateY(58cqh); opacity: 0.55; }
  57% { transform: translateY(70cqh); opacity: 0; }
  57.01%, 80% { opacity: 0; }
  81% { transform: translateY(34cqh); opacity: 0.58; }
  90% { transform: translateY(78cqh); opacity: 0.48; }
  92%, 100% { transform: translateY(88cqh); opacity: 0; }
}

/* Pause / deletion: keep lattice grid visible, only freeze filament motion */
.dash-card-weave.is-paused .dash-card-weave-line {
  animation: none !important;
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .dash-card-weave-line {
    animation: none !important;
    opacity: 0;
  }
}
.dash-card.just-scanned {
  box-shadow:
    inset 3px 0 0 var(--yellow),
    inset 0 1px 0 rgba(255, 242, 0, 0.45),
    0 0 0 1px rgba(255, 242, 0, 0.25),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.dash-card.is-paused {
  box-shadow:
    inset 3px 0 0 #e10600,
    inset 0 1px 0 rgba(255, 90, 90, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.dash-card.is-paused::before,
.dash-card.is-paused::after {
  border-color: #ff5a5a;
}

.dash-card.is-expired {
  opacity: 0.92;
  box-shadow:
    inset 3px 0 0 #4a4a4a,
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.dash-card.is-expired::before,
.dash-card.is-expired::after {
  border-color: #666;
  opacity: 0.55;
}

.dash-card.is-expired .dash-qr-trace-ring,
.dash-card.is-expired .dash-qr-trace-core,
.dash-card.is-expired .dash-qr-packet,
.dash-card.is-expired .dash-qr-bit,
.dash-qr-stage.is-frozen .dash-qr-trace-ring,
.dash-qr-stage.is-frozen .dash-qr-trace-core,
.dash-qr-stage.is-frozen .dash-qr-packet,
.dash-qr-stage.is-frozen .dash-qr-bit {
  animation: none !important;
  filter: none;
}

.dash-card.is-expired .dash-qr-packet,
.dash-qr-stage.is-frozen .dash-qr-packet {
  opacity: 0.25;
  offset-distance: 0%;
}

.dash-card.is-expired .dash-qr-bit,
.dash-qr-stage.is-frozen .dash-qr-bit {
  opacity: 0.55;
  box-shadow: none;
}

.dash-card.is-expired .dash-qr-num {
  border-color: #e10600;
  color: #ff5a5a;
  animation: dash-expired-num-blink 1.35s ease-in-out infinite;
}

@keyframes dash-expired-num-blink {
  0%,
  100% {
    background: #1a0808;
    border-color: #a01010;
    color: #ff6b6b;
    box-shadow: none;
  }
  50% {
    background: rgba(225, 6, 0, 0.42);
    border-color: #ff3b3b;
    color: #fff;
    box-shadow: 0 0 12px rgba(225, 6, 0, 0.5);
  }
}

.dash-pause-stamp-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 8px;
  align-self: start;
}
.dash-pause-stamp-row.hidden,
#edit-modal-stamp.hidden,
#edit-modal-stamp[hidden] {
  display: none !important;
}
.dash-pause-stamp:empty {
  display: none !important;
}

.dash-pause-stamp {
  display: inline-block;
  margin: 0;
  padding: 3px 9px;
  border: 1px solid #ff3b3b;
  color: #fff;
  background: #e10600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  animation: dash-pause-burn 1.15s ease-in-out infinite;
}

@keyframes dash-pause-burn {
  0%, 100% { box-shadow: 0 0 0 1px #e10600; }
  50% { box-shadow: 0 0 0 1px #fff; }
}

.dash-card-dest {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-card-dest input {
  width: 100%;
  background: #0a0a0a;
  color: #f2f2f2;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.dash-card-dest textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  background: #0a0a0a;
  color: #f2f2f2;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}

.dash-card-dest textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.dash-card-encoded {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-card-encoded code {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  color: #f2f2f2;
  word-break: break-all;
}

.dash-copy-enc,
.dash-payload-save {
  align-self: start;
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-copy-enc {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}

.dash-copy-enc:hover,
.dash-payload-save:hover {
  background: var(--yellow);
  color: #0a0a0a;
}

.dash-card-dest .qr-fact-hint.is-saved {
  color: var(--yellow);
}

.dash-card.is-payload-flash {
  border-left-color: var(--yellow);
  box-shadow: 0 0 22px rgba(255, 242, 0, 0.2);
  animation: dash-payload-flash 1.4s ease;
}

@keyframes dash-payload-flash {
  0% { box-shadow: 0 0 0 rgba(255, 242, 0, 0); }
  40% { box-shadow: 0 0 28px rgba(255, 242, 0, 0.35); }
  100% { box-shadow: 0 0 22px rgba(255, 242, 0, 0.2); }
}

.dash-card-dest .qr-fact-hint {
  text-transform: none;
  letter-spacing: 0;
  color: #c4c4c4;
  font-size: 13px;
  margin: 0;
  line-height: 1.45;
}

@keyframes dash-resume-glow {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(46, 49, 146, 0.55),
      -10px 0 12px 2px rgba(46, 49, 146, 0.7),
      10px 0 12px 2px rgba(46, 49, 146, 0.7),
      0 -10px 12px 2px rgba(46, 49, 146, 0.7),
      0 10px 12px 2px rgba(46, 49, 146, 0.7);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(46, 49, 146, 0.9),
      -16px 0 18px 4px rgba(46, 49, 146, 0.95),
      16px 0 18px 4px rgba(46, 49, 146, 0.95),
      0 -16px 18px 4px rgba(46, 49, 146, 0.95),
      0 16px 18px 4px rgba(46, 49, 146, 0.95);
  }
}

.dash-pause-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.dash-pause-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  max-width: none;
  padding: 7px 10px;
  color: #fff;
  background: #e10600;
  border: 1px solid #ff3b3b;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.dash-pause-tip.is-resume {
  color: #0a0a0a;
  background: var(--yellow);
  border-color: var(--yellow);
}

.dash-pause-wrap:hover .dash-pause-tip,
.dash-pause-wrap:focus-within .dash-pause-tip {
  opacity: 1;
}

.dash-pause-stopped {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  line-height: 1.2;
}

.dash-export-wrap.hidden { display: none; }

.dash-export-dock {
  margin: 0 0 18px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, #60a5fa 30%);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.dash-export-dock.hidden {
  display: none;
}
.dash-export-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.dash-export-toggle:hover,
.dash-export-toggle[aria-expanded="true"] {
  background: rgba(46, 49, 146, 0.18);
}
.dash-export-toggle-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dash-export-toggle-copy .dash-org-kicker {
  margin: 0;
}
.dash-export-toggle-copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.dash-export-caret {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 14px;
  color: var(--yellow);
  transition: transform 0.2s ease;
}
.dash-export-dock.is-open .dash-export-caret {
  transform: rotate(180deg);
}
.dash-export-slot {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.dash-export-slot.is-open {
  grid-template-rows: 1fr;
}
.dash-export-slot-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 0 14px;
  border-top: 0 solid transparent;
}
.dash-export-slot.is-open .dash-export-slot-inner {
  padding: 4px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.dash-export-copy .dash-org-lead {
  margin: 0;
  max-width: none;
}
.dash-export-cols {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dash-export-cols li {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: #e5e7eb;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.dash-export-copy .hint {
  margin: 10px 0 0;
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.45;
}
.dash-export-cta {
  justify-self: start;
}

.dash-export {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-export:hover {
  background: var(--yellow);
  color: #0a0a0a;
}

.dash-soon-bulk {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: dash-soon-bulk 2.2s ease-in-out infinite;
}

.dash-soon-bulk:hover {
  background: var(--yellow);
  color: #0a0a0a;
}

@keyframes dash-soon-bulk {
  0%, 100% { box-shadow: 0 0 0 rgba(46, 49, 146, 0); }
  50% { box-shadow: 0 0 14px rgba(46, 49, 146, 0.55); }
}

.dash-insight.is-spike strong {
  color: var(--yellow);
}

.dash-card-qr-row {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dash-qr-stage {
  --gutter: 18px;
  position: relative;
  width: calc(160px + 2 * var(--gutter));
  padding: var(--gutter);
  box-sizing: border-box;
  isolation: isolate;
}

.dash-qr-stage.is-preview {
  width: calc(220px + 2 * var(--gutter));
}

.dash-qr-stage.is-edit-fx {
  overflow: hidden; /* keep yellow brackets/orbits inside the stage */
}

.dash-qr-stage.is-edit-fx .edit-fx-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dash-qr-stage.is-edit-fx .edit-orbit {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 242, 0, 0.28);
  animation: edit-orbit-spin 22s linear infinite;
}

.dash-qr-stage.is-edit-fx .edit-orbit-b {
  inset: 0;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(46, 49, 146, 0.4);
  animation-duration: 34s;
  animation-direction: reverse;
}

/* Calm mathematical field — soft ticks around the preview */
.dash-qr-stage.is-edit-fx .edit-math {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dash-qr-stage.is-edit-fx .edit-tick {
  position: absolute;
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.4;
  animation: edit-tick-slide 12s linear infinite;
}

.dash-qr-stage.is-edit-fx .edit-tick.t1 {
  top: 6%;
  left: 20%;
}
.dash-qr-stage.is-edit-fx .edit-tick.t2 {
  bottom: 7%;
  right: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 242, 0, 0.7), transparent);
  animation-delay: -4s;
  animation-duration: 15s;
}
.dash-qr-stage.is-edit-fx .edit-tick.t3 {
  top: 48%;
  left: 4%;
  width: 1px;
  height: 12px;
  background: linear-gradient(180deg, transparent, rgba(46, 49, 146, 0.85), transparent);
  animation-name: edit-tick-slide-y;
  animation-delay: -2s;
  animation-duration: 17s;
}

.dash-qr-stage.is-edit-fx .edit-bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #fff200;
  animation: edit-bracket-breathe 2.4s ease-in-out infinite;
}

.dash-qr-stage.is-edit-fx .edit-bracket.tl {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.dash-qr-stage.is-edit-fx .edit-bracket.tr {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
  animation-delay: 0.2s;
}

.dash-qr-stage.is-edit-fx .edit-bracket.bl {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
  animation-delay: 0.4s;
}

.dash-qr-stage.is-edit-fx .edit-bracket.br {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
  animation-delay: 0.6s;
}

@keyframes edit-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes edit-bracket-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes edit-tick-slide {
  0% { opacity: 0; transform: translateX(-8px); }
  20% { opacity: 0.55; }
  80% { opacity: 0.55; }
  100% { opacity: 0; transform: translateX(28px); }
}

@keyframes edit-tick-slide-y {
  0% { opacity: 0; transform: translateY(-8px); }
  20% { opacity: 0.55; }
  80% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(28px); }
}

.dash-qr-trace {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.dash-qr-trace-outer {
  inset: 3px;
}

.dash-qr-trace-kiss {
  inset: calc(var(--gutter) - 1px);
}

.dash-qr-trace rect {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.dash-qr-trace-ring {
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-dasharray: 9 7;
  stroke-linecap: square;
  filter: drop-shadow(0 0 4px rgba(255, 242, 0, 0.9));
  animation: dash-ants 8s linear infinite;
}

.dash-qr-trace-core {
  stroke: var(--yellow);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
  stroke-opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(255, 242, 0, 0.65));
  animation: dash-ants 5.2s linear infinite reverse;
}

.dash-qr-packet {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  box-shadow: 0 0 8px 2px rgba(255, 242, 0, 0.85);
  offset-path: inset(5px);
  offset-rotate: 0deg;
  animation: dash-packet 6.4s linear infinite;
  z-index: 4;
  pointer-events: none;
}

.dash-qr-bit {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--yellow);
  box-shadow: 0 0 6px var(--yellow);
  z-index: 4;
  pointer-events: none;
  animation: dash-bit 1.4s steps(2, end) infinite;
}
.dash-qr-bit.tl { top: 2px; left: 2px; }
.dash-qr-bit.tr { top: 2px; right: 2px; animation-delay: 0.2s; }
.dash-qr-bit.bl { bottom: 2px; left: 2px; animation-delay: 0.35s; }
.dash-qr-bit.br { bottom: 2px; right: 2px; animation-delay: 0.5s; }

.dash-qr-stage:hover .dash-qr-packet {
  box-shadow: 0 0 12px 3px rgba(255, 242, 0, 1);
}

.dash-card-canvas,
#style-preview-canvas {
  display: block;
  width: 160px;
  height: auto;
  position: relative;
  z-index: 1;
  background: transparent;
}

#style-preview-canvas {
  width: 220px;
  z-index: 2;
}

.dash-card-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-card-info .qr-facts {
  gap: 10px;
}

.dash-card-scans {
  margin: 0;
  color: #bdbdbd;
  font-size: 14px;
}

.dash-expire-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
  margin: 6px 0 4px;
}

.dash-expire-label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bdbdbd;
  margin-bottom: 6px;
}

.dash-countdown {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.dash-countdown.is-urgent { animation: dash-urgent 1s steps(2) infinite; }
.dash-expire-label-delete {
  color: #ffffff !important;
}
.dash-countdown.is-delete,
.dash-countdown.is-delete.is-expired {
  color: #ff3333 !important;
  font-size: 20px !important;
  font-weight: 800;
  letter-spacing: 0.05em;
  animation: none;
}
.dash-countdown.is-expired:not(.is-delete) {
  color: #ff5555;
  font-size: 14px;
  animation: none;
}

.dash-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-card-renew,
.dash-card-style,
.dash-card-extend,
.dash-card-download,
.dash-card-pause,
.dash-card-delete {
  position: relative;
  min-height: 42px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%,
    0 7px
  );
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.dash-card-renew,
.dash-card-style {
  background: var(--blue);
  color: #fff;
  border: 1px solid #4a4ec0;
}

.dash-card-renew:hover,
.dash-card-renew:focus-visible {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.dash-card-style:hover,
.dash-card-style:focus-visible {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.dash-card-extend {
  background: #f2f2f2;
  color: #0a0a0a;
  border: 1px solid #fff;
  transform-origin: center center;
  z-index: 1;
}

.dash-card-extend:hover,
.dash-card-extend:focus-visible {
  background: #111;
  color: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.04);
  z-index: 2;
}

.dash-card-download {
  background: var(--yellow);
  color: #0a0a0a;
  border: 1px solid var(--yellow);
}

.dash-card-download:hover,
.dash-card-download:focus-visible {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.dash-card-pause {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

.dash-card-pause:hover,
.dash-card-pause:focus-visible {
  background: var(--yellow);
  color: #0a0a0a;
}

.dash-card-pause.is-hot {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
  animation: dash-resume-glow 1.4s ease-in-out infinite;
}

.dash-card-pause.is-hot:hover,
.dash-card-pause.is-hot:focus-visible {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.dash-card-delete {
  background: #161616;
  color: #d0d0d0;
  border: 1px solid #3a3a3a;
  font-weight: 600;
}

.dash-card-delete:hover,
.dash-card-delete:focus-visible {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
}

.dash-renew-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.dash-renew-hint {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.dash-delete-text {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.dash-delete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.dash-delete-no,
.dash-delete-yes {
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.dash-delete-no {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.dash-delete-no:hover,
.dash-delete-no:focus-visible {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.dash-delete-yes {
  background: #e53935;
  color: #0a0a0a;
  border: 1px solid #e53935;
}

.dash-delete-yes:hover,
.dash-delete-yes:focus-visible {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #0a0a0a;
}

.solo-confirm-card {
  max-width: min(360px, 100%);
  padding: 22px 20px 18px;
}

#solo-confirm-text {
  font-size: 15px;
  line-height: 1.5;
}

.solo-confirm-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #fff200;
  color: #0a0a0a;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  border: 2px solid #0a0a0a;
}

#solo-confirm-yes.dash-delete-yes {
  background: #fff200;
  border-color: #fff200;
  color: #0a0a0a;
}

#solo-confirm-yes.dash-delete-yes:hover,
#solo-confirm-yes.dash-delete-yes:focus-visible {
  background: #ffe44d;
  border-color: #ffe44d;
  color: #0a0a0a;
}

.dash-renew-out {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #fff200;
}

.dash-delete-yes:disabled,
.dash-delete-no:disabled {
  opacity: 0.5;
  cursor: wait;
}

.dash-stats-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}

.dash-stats-drawer.is-open {
  grid-template-rows: 1fr;
  margin-top: 18px;
}

.dash-stats-drawer-inner {
  min-height: 0;
  overflow: hidden;
}

.dash-card-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-card-name-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  width: 100%;
}

.dash-card-name-head > span {
  flex: none;
}

.dash-card-id {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  word-break: break-all;
  line-height: 1.35;
}

.dash-card-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dash-qr-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 2px 8px 2px 4px;
  background: #111;
  border: 1px solid #fff200;
  color: #fff200;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
}
.dash-qr-num .dash-code-qr {
  width: 18px;
  height: 18px;
  gap: 1px;
  padding: 1px;
}
.dash-qr-num[hidden] { display: none !important; }
.dash-code-n {
  font-style: normal;
  font-weight: 800;
  color: #fff200;
  min-width: 1.1em;
}

.dash-card-name-text {
  flex: 1 1 120px;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: none;
  word-break: break-word;
}

.dash-card-name input {
  flex: 1 1 120px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.dash-card-name-row.is-editing input {
  border-color: var(--yellow);
}

.dash-card-name input:focus {
  outline: none;
  border-color: var(--yellow);
}

.dash-card-name input.hidden,
.dash-card-name-text.hidden {
  display: none;
}

.dash-card-name-action {
  flex: 0 0 auto;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.dash-card-name-action:hover {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.dash-card-name-action.is-save {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.dash-card-name-action.is-save:hover {
  background: #fff;
  border-color: #fff;
}

@media (min-width: 901px) {
  .dash-card-name-head {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    width: 100%;
  }
  .dash-card-name-row {
    display: contents;
  }
  .dash-card-name-text,
  .dash-card-name input {
    min-width: 0;
    width: auto;
    flex: none;
  }
  .dash-card-name-action {
    justify-self: end;
    white-space: nowrap;
  }
}

.dash-name-policy-error {
  margin: 6px 0 0;
  color: #ff4d4d;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.content-policy-error {
  margin: 8px 0 0;
  color: #ff4d4d;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}
.content-policy-error.hidden,
.content-policy-error[hidden] {
  display: none !important;
}

.dash-org-codes,
.dash-code-deck {
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 242, 0, 0.08), transparent 28%),
    rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.dash-code-deck-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}
.dash-code-deck-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}
.dash-code-deck-toggle.is-open {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(46, 49, 146, 0.18);
}
.dash-code-selected {
  display: grid;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 242, 0, 0.1), transparent 70%),
    rgba(0, 0, 0, 0.22);
}
.dash-code-selected.is-empty {
  padding: 8px 14px 10px;
  background: rgba(0, 0, 0, 0.18);
}
.dash-code-selected-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}
.dash-code-selected.is-empty .dash-code-selected-label {
  color: #9a9a9a;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
}
.dash-code-deck-badge {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0a0a0a;
  box-shadow: 3px 3px 0 rgba(255, 242, 0, 0.85);
}
.dash-code-deck-stack {
  position: absolute;
  inset: auto -4px -4px auto;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background:
    linear-gradient(#0a0a0a, #0a0a0a) 2px 2px / 3px 3px no-repeat,
    linear-gradient(#0a0a0a, #0a0a0a) 8px 2px / 3px 3px no-repeat,
    linear-gradient(#0a0a0a, #0a0a0a) 2px 8px / 3px 3px no-repeat,
    #fff;
}
.dash-code-deck-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dash-code-deck-label strong {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dash-code-deck-label span {
  font-size: 12px;
  color: #bdbdbd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-code-deck-chevron {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  transition: transform 0.28s ease, border-color 0.15s, background 0.15s;
}
.dash-code-deck-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-2px) rotate(45deg);
}
.dash-code-deck-toggle.is-open .dash-code-deck-chevron {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: rotate(180deg);
}
.dash-code-deck-toggle.is-open .dash-code-deck-chevron::before {
  border-color: #0a0a0a;
}
.dash-code-deck-slot {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.22s ease, transform 0.28s ease;
  pointer-events: none;
}
.dash-code-deck-slot.is-open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dash-code-deck-panel {
  padding: 12px;
  min-height: 0;
}
.dash-code-deck-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.dash-code-tool {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.dash-code-tool:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.dash-code-deck-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(46, 49, 146, 0.9);
  background: #07070c;
  color: #fff;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
}
.dash-code-deck-search input:focus {
  outline: 1px solid var(--yellow);
  border-color: var(--yellow);
}
.dash-code-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.dash-code-deck-panel .dash-code-tags {
  margin: 10px 0 0;
}
.dash-code-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  border: 1px solid rgba(255, 242, 0, 0.45);
  background: rgba(255, 242, 0, 0.12);
  color: #fff;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.dash-code-tag .dash-code-qr {
  width: 14px;
  height: 14px;
  gap: 1px;
}
.dash-code-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-code-tag b {
  color: var(--yellow);
  font-weight: 700;
}
.dash-code-tag.is-more {
  border-style: dashed;
  color: #bdbdbd;
  cursor: default;
}
.dash-code-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 242, 0, 0.03) 10px 11px),
    rgba(0, 0, 0, 0.4);
}
.dash-code-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
  animation: dash-pane-rise 0.35s ease both;
  animation-delay: calc(var(--i, 0) * 18ms);
}
.dash-code-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(46, 49, 146, 0.35);
}
.dash-code-row.is-on {
  border-color: rgba(255, 242, 0, 0.55);
  background: rgba(255, 242, 0, 0.1);
}
.dash-code-qr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.5px;
  width: 22px;
  height: 22px;
  padding: 2px;
  background: #fff;
  box-sizing: border-box;
}
.dash-code-qr i {
  display: block;
  background: #0a0a0a;
}
.dash-code-qr i:nth-child(5) {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #0a0a0a;
}
.dash-code-row.is-on .dash-code-qr {
  box-shadow: 0 0 0 1px var(--yellow);
}
.dash-code-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dash-code-row strong {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-code-sub {
  font-size: 11px;
  color: #9a9a9a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-code-row.is-on .dash-code-sub {
  color: var(--yellow);
}
.dash-code-row em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: #9a9a9a;
}
.dash-code-row.is-on em { color: var(--yellow); }
.dash-code-empty {
  margin: 0;
  padding: 14px;
  color: #9a9a9a;
  font-size: 13px;
}

.dash-map-signal {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(255, 242, 0, 0.28);
  background: rgba(0, 0, 0, 0.42);
}
.dash-map-signal-head {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.dash-map-signal-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.dash-map-bars {
  display: grid;
  gap: 6px;
}
.dash-map-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(48px, 2fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cfcfcf;
}
.dash-map-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-map-bar i {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  justify-self: stretch;
}
.dash-map-bar b {
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.dash-org-codes-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.dash-org-codes-toggle {
  background: #fff;
  border: 1px solid #fff;
  color: #0a0a0a;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-org-codes-toggle em {
  font-style: normal;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
}

.dash-org-codes-toggle:hover,
.dash-org-codes-toggle[aria-expanded="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}

.dash-org-codes-toggle:hover em,
.dash-org-codes-toggle[aria-expanded="true"] em {
  color: #0a0a0a;
  background: rgba(0, 0, 0, 0.1);
}

.dash-org-all {
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.dash-org-codes .check.toggle {
  padding: 6px 10px;
}

.dash-org-codes-slot {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.dash-org-codes-slot.is-open {
  grid-template-rows: 1fr;
  margin-top: 10px;
}

.dash-org-codes-inner {
  min-height: 0;
  overflow: hidden;
}

.dash-org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 4px;
}

.dash-org-cell {
  position: relative;
  min-height: 64px;
  padding: 8px 10px 8px 28px;
  background: transparent;
  border: 1px dashed var(--line);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.dash-org-tick {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  border: 1px solid #666;
  background: transparent;
  color: #0a0a0a;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
  font-weight: 700;
}

.dash-org-cell strong {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-org-cell span {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

.dash-org-cell:hover:not(.is-on) {
  border-color: var(--yellow);
  color: #fff;
  opacity: 1;
}

.dash-org-cell.is-on {
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: #0a0a0a;
  opacity: 1;
}

.dash-org-cell.is-on .dash-org-tick {
  background: #111;
  border-color: #111;
  color: var(--yellow);
}

.dash-org-cell.is-on span { color: #0a0a0a; }

.dash-extra-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dash-stats-drawer .dash-stats-grid {
  margin-top: 0;
  padding-top: 4px;
  border-top: 0;
}

.dash-stat-block {
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid #2f2f36;
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.14) 0%, transparent 50%),
    #0c0c10;
  clip-path: polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );
  box-shadow:
    inset 2px 0 0 var(--blue),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dash-stat-block.dash-stat-heat {
  border-color: rgba(46, 49, 146, 0.9);
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.28) 0%, transparent 55%),
    #0c0c10;
  box-shadow:
    inset 2px 0 0 var(--yellow),
    inset 0 1px 0 rgba(255, 242, 0, 0.14);
}

.dash-stat-hours,
.dash-stat-days,
.dash-stat-heat {
  grid-column: 1 / -1;
}

.dash-stats-grid h3 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 800;
}

.dash-stats-recent { grid-column: 1 / -1; }

.owner-days-block,
.owner-recent-block { grid-column: 1 / -1; }

.owner-day-list {
  max-height: 420px;
  overflow: auto;
}

.dash-eq-wrap { padding: 4px 0 0; }
.dash-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 72px;
}
.dash-eq-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--yellow), var(--blue));
  min-height: 4px;
}
.dash-eq-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
}

.dash-line-wrap {
  padding: 2px 0 0;
}

.dash-line {
  display: block;
  width: 100%;
  height: 148px;
  overflow: visible;
}

.dash-line-grid {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.dash-line-fill {
  fill: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.dash-line-path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.28));
}

.dash-line-dot {
  fill: #fff;
  stroke: #111;
  stroke-width: 1.2;
  opacity: 1;
  transform-box: fill-box;
  transform-origin: center;
}

.dash-line-dot.is-peak {
  fill: var(--yellow);
  stroke: #fff;
}

.dash-stats-drawer.is-open .dash-line-wrap.is-anim .dash-line-fill {
  animation: dash-line-fill-in 0.7s ease 0.08s both;
}

.dash-stats-drawer.is-open .dash-line-wrap.is-anim .dash-line-path {
  animation: dash-line-path-in 0.55s ease both;
}

.dash-stats-drawer.is-open .dash-line-wrap.is-anim .dash-line-dot {
  animation: dash-dot-pulse-in 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) both;
  animation-delay: calc(0.08s + var(--i, 0) * 55ms);
}

.dash-stats-drawer.is-open .dash-line-wrap.is-anim .dash-line-dot.is-peak {
  animation-name: dash-dot-pulse-peak;
}

@keyframes dash-line-path-in {
  from { opacity: 0; filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  to { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)); }
}
@keyframes dash-line-fill-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dash-dot-pulse-in {
  0% { opacity: 0; transform: scale(0.2); }
  55% { opacity: 1; transform: scale(1.45); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes dash-dot-pulse-peak {
  0% { opacity: 0; transform: scale(0.2); }
  50% { opacity: 1; transform: scale(1.7); }
  100% { opacity: 1; transform: scale(1); }
}

.dash-line-plot {
  position: relative;
}

.dash-line-hits {
  position: absolute;
  inset: 0;
}

.dash-line-hit {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.dash-line-hit::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #fff;
  color: #111;
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.dash-line-hit:hover::after {
  opacity: 1;
}

.dash-compare {
  margin: 0 0 18px;
}
.dash-compare-head {
  margin: 0 0 14px;
}
.dash-compare-picks {
  margin: 0 0 14px;
}
.dash-compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.dash-compare-chip.is-on {
  border-color: #fff;
  background: #fff;
  color: #0a0a0a;
}
.dash-compare-chip.dash-compare-tool {
  border-style: dashed;
  color: var(--yellow);
  border-color: color-mix(in srgb, var(--yellow) 55%, #fff);
}
.dash-compare-chip.dash-compare-tool.is-on {
  border-style: solid;
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}
.dash-compare-chip b {
  font-size: 11px;
  opacity: 0.75;
}
.dash-compare-board {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.dash-compare-clash {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(46, 49, 146, 0.22);
}
.dash-compare-clash-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.dash-compare-clash-head strong {
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 0;
}
.dash-compare-clash-names {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}
.dash-compare-clash-bar {
  height: 8px;
  background: rgba(96, 165, 250, 0.35);
  overflow: hidden;
}
.dash-compare-clash-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #fff);
}
.dash-compare-mom {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.dash-compare-mom strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.dash-compare-mom.is-up strong { color: var(--yellow); }
.dash-compare-mom.is-down strong { color: #60a5fa; }
.dash-compare-mom.is-flat strong { color: #cfcfcf; }
.dash-compare-need {
  margin: 0;
  color: #bdbdbd;
  font-size: 13px;
}
.dash-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}
.dash-compare-card {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  animation: dash-pane-rise 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.dash-compare-card.is-winner {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 22px rgba(255, 255, 255, 0.08);
}
.dash-compare-win {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border: 1px solid #fff;
  color: #0a0a0a;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dash-compare-name {
  margin: 0 28px 10px 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  word-break: break-word;
}
.dash-compare-score {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.dash-compare-score strong {
  display: block;
  margin-top: 2px;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dash-compare-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dash-compare-metric span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.dash-compare-metric strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dash-compare-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 12px;
}
.dash-compare-spark i {
  flex: 1;
  min-width: 3px;
  background: #fff;
  opacity: 0.35;
  transform-origin: bottom;
  animation: dash-spark-pop 0.45s ease forwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.dash-compare-spark i.is-hot {
  opacity: 1;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}
@keyframes dash-spark-pop {
  from { transform: scaleY(0.15); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
.dash-compare-verdict {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #fff;
}
.dash-compare-verdict em {
  font-style: normal;
  color: var(--yellow);
}

.dash-bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(48px, 90px) 32px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.dash-bar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.dash-bar-track {
  height: 8px;
  background: #1a1a1a;
  overflow: hidden;
}

.dash-bar-track i {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.dash-bar-n { color: #fff; text-align: right; }

.dash-stat-empty {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.dash-recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-recent-table th {
  text-align: left;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.dash-recent-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px dashed #2a2a2a;
  color: #fff;
  vertical-align: top;
}

#dash-pay-note {
  color: var(--yellow);
  margin: 0 0 20px;
  font-size: 14px;
}

.style-modal-card {
  position: relative;
  max-width: min(1240px, calc(100vw - 48px));
  width: calc(100% - 32px);
  max-height: min(94vh, 980px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  padding: 0;
  border: 1px solid #2f2f36;
  border-left: none;
  /* lattice on .dash-card-weave — same box as filaments */
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.16) 0%, transparent 42%),
    linear-gradient(90deg, rgba(255, 242, 0, 0.05) 0%, transparent 30%),
    #0c0c10;
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  box-shadow:
    inset 3px 0 0 var(--blue),
    inset 0 1px 0 rgba(255, 242, 0, 0.22),
    0 18px 40px rgba(0, 0, 0, 0.45);
}
.style-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 28px 26px 24px;
}
#style-modal .style-modal-scroll,
#style-modal .style-modal-scroll .dash-edit-pane,
#style-modal .style-modal-scroll .dash-egen-tabs,
#style-modal .style-modal-scroll .dash-egen-fields {
  touch-action: pan-y;
}
/* Close stays fixed in the card corner while content scrolls */
#style-modal .style-modal-x {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 40;
  color: var(--yellow);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  background: rgba(12, 12, 16, 0.72);
}
#style-modal .style-modal-x:hover {
  color: #fff;
  background: var(--blue);
}
/* Remove top-right yellow corner bracket (conflicts with ×) */
.style-modal-card::before {
  display: none !important;
  content: none !important;
}
.style-modal-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 3;
  border: 2px solid var(--yellow);
  opacity: 0.85;
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
}

/* Edit modal mirrors card alert: pause / deletion countdown */
.style-modal-card.is-paused,
.style-modal-card.is-expired {
  box-shadow:
    inset 3px 0 0 #e10600,
    inset 0 1px 0 rgba(255, 90, 90, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(180deg, rgba(225, 6, 0, 0.14) 0%, transparent 42%),
    linear-gradient(90deg, rgba(255, 90, 90, 0.08) 0%, transparent 30%),
    #0c0c10;
}
.style-modal-card.is-paused::after,
.style-modal-card.is-expired::after {
  border-color: #ff5a5a;
}
.style-modal-card.is-paused .edit-fx-back,
.style-modal-card.is-expired .edit-fx-back {
  display: none;
}
.style-modal-card.is-paused .dash-qr-stage.is-edit-fx .edit-orbit,
.style-modal-card.is-paused .dash-qr-stage.is-edit-fx .edit-math,
.style-modal-card.is-paused .dash-qr-stage.is-edit-fx .edit-bracket,
.style-modal-card.is-expired .dash-qr-stage.is-edit-fx .edit-orbit,
.style-modal-card.is-expired .dash-qr-stage.is-edit-fx .edit-math,
.style-modal-card.is-expired .dash-qr-stage.is-edit-fx .edit-bracket {
  animation: none !important;
  opacity: 0.35;
}
#style-modal #edit-modal-stamp {
  margin: 0 0 12px;
  gap: 10px 14px;
}
#style-modal #edit-modal-countdown {
  font-size: 18px;
  letter-spacing: 0.04em;
}
#style-modal .style-modal-card.is-paused .style-modal-x,
#style-modal .style-modal-card.is-expired .style-modal-x {
  color: #ff5a5a;
}
#style-modal .style-modal-card.is-paused .style-modal-x:hover,
#style-modal .style-modal-card.is-expired .style-modal-x:hover {
  color: #fff;
  background: #e10600;
}

.dash-edit-peek {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.dash-peek-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
}
.dash-peek-link-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.dash-peek-id {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  word-break: break-all;
  align-self: center;
}
.dash-peek-id.hidden {
  display: none !important;
}
.dash-peek-toggle {
  flex: 0 0 auto;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}
.dash-peek-toggle:hover,
.dash-peek-toggle:focus-visible,
.dash-peek-toggle.is-open {
  /* stay white — no color flip on open/press */
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}
.dash-peek-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 12px 14px;
  border: 1px solid #2f2f36;
  background: rgba(0, 0, 0, 0.28);
}
.dash-peek-panel.hidden {
  display: none !important;
}
.dash-peek-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dash-peek-actions .dash-copy-enc {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 9px 14px;
}
.dash-peek-actions .dash-copy-enc:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}
.dash-go-enc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  padding: 9px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
.dash-go-enc:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}
.dash-go-enc.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
#edit-style-studio.style-studio {
  margin-top: 0;
  min-width: 0;
}
#edit-style-studio .style-studio-pane {
  max-height: min(52vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
  padding-bottom: 8px;
}
#edit-style-studio .qrg-shape-pick {
  max-height: min(320px, 42vh);
  overflow-y: auto;
}
#edit-pane-content.dash-edit-pane {
  /* one scroller only — nested max-height trapped touch scroll in the center */
  max-height: none;
  overflow: visible;
  min-width: 0;
  padding-right: 0;
}
.style-modal-controls.style-studio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-template-columns: none;
  min-width: 0;
}
.style-modal-controls.style-studio::before { display: none; }
.dash-edit-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 12px;
}
.dash-edit-tab {
  flex: 1;
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--line);
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dash-edit-tab.is-on,
.dash-edit-tab:hover,
.dash-edit-tab:focus-visible {
  border-color: var(--yellow);
  background: rgba(255, 242, 0, 0.08);
  color: var(--yellow);
}
.dash-edit-tab.is-on {
  background: var(--yellow);
  border-color: var(--blue);
  color: #0a0a0a;
  box-shadow: 3px 3px 0 var(--blue);
}
.dash-edit-pane.hidden,
.style-modal-actions.hidden { display: none; }
.dash-edit-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.dash-edit-kicker em {
  font-style: normal;
  color: #fff;
}
.dash-edit-encoded {
  margin: 0 0 8px;
  word-break: break-all;
  color: #f2f2f2;
  font-size: 13px;
}
.dash-egen-label {
  margin: 14px 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-egen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 4px;
  background: transparent;
  border: none;
  position: relative;
  z-index: 5;
}

/* Edit modal type chips: size to label — never equal-grid / ellipsis clip */
#edit-gen-tabs.tabs,
#edit-gen-tabs.dash-egen-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: none !important;
  grid-auto-flow: unset !important;
  grid-auto-columns: unset !important;
  width: 100%;
  max-width: 100%;
}
#edit-gen-tabs.tabs > .tab,
#edit-gen-tabs.tabs > .tab-more,
#edit-gen-tabs .tab,
#edit-gen-tabs .tab-more > .tab {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 36px;
  padding: 8px 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: nowrap !important;
}
#edit-gen-tabs .tab-more {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
}
#edit-gen-tabs .more-menu {
  min-width: max-content;
  width: max-content;
  max-width: min(90vw, 320px);
}
#edit-gen-tabs .more-option {
  width: auto !important;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

.dash-egen-tabs .tab {
  padding: 7px 11px;
  font-size: 12px;
}

/* Tablet + phone: edit modal chrome must not clip labels */
@media (max-width: 1024px) {
  #style-modal .style-modal-card {
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
    max-height: min(94vh, 980px);
  }
  #style-modal .dash-edit-tab {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    white-space: normal;
    line-height: 1.25;
    padding: 10px 8px;
    overflow: visible;
    text-overflow: unset;
  }
  #style-modal .dash-peek-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  #style-modal .dash-peek-toggle {
    white-space: normal;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
  }
  #style-modal .dash-peek-hint,
  #style-modal .dash-peek-id {
    flex: 1 1 auto;
    max-width: none;
  }
  #style-modal .dash-peek-actions {
    width: 100%;
  }
  #style-modal .dash-peek-actions .dash-copy-enc,
  #style-modal .dash-go-enc {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  #edit-gen-tabs.tabs > .tab,
  #edit-gen-tabs.tabs > .tab-more,
  #edit-gen-tabs .tab,
  #edit-gen-tabs .tab-more > .tab {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
}

.dash-egen-tabs .more-menu {
  z-index: 40;
}

.dash-egen-chips {
  display: none;
}

.dash-egen-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.dash-egen-fields.hidden { display: none; }

.dash-egen-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-egen-fields input,
.dash-egen-fields textarea,
.dash-egen-fields select {
  background: #0a0a0a;
  color: #f2f2f2;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.dash-egen-fields .cloud-note,
.dash-egen-fields .hint {
  margin: 0;
  color: #9a9a9a;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}
.dash-card-payload-sum {
  margin: 0;
  color: #bdbdbd;
  font-size: 14px;
  word-break: break-word;
}
#edit-payload-status.is-saved { color: var(--yellow); }
.style-modal-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  margin: 18px 0 20px;
  align-items: start;
  overflow: visible;
}
.style-modal-preview {
  overflow: hidden;
  padding: 0;
  margin: 0;
  min-width: 0;
  justify-self: start;
}
.style-modal-preview .dash-qr-stage.is-edit-fx {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.style-modal-preview .dash-qr-stage.is-edit-fx > canvas {
  position: relative;
  z-index: 2;
}
.style-modal-controls {
  position: relative;
  isolation: isolate;
  --mx: 50%;
  --my: 18%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.style-modal-controls::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(180px circle at var(--mx) var(--my), rgba(46, 49, 146, 0.28), transparent 62%),
    radial-gradient(80px circle at var(--mx) var(--my), rgba(255, 242, 0, 0.08), transparent 55%);
  transition: opacity 0.25s ease;
}
.style-modal-controls:hover::before { opacity: 1; }
.style-modal-controls > * { position: relative; z-index: 1; }
.style-modal-controls .span-2 { grid-column: 1 / -1; }
.style-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@keyframes dash-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes dash-ants {
  to { stroke-dashoffset: -280; }
}
@keyframes dash-packet {
  to { offset-distance: 100%; }
}
@keyframes dash-bit {
  50% { opacity: 0.15; }
}
@keyframes dash-led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes dash-urgent {
  50% { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-pack-btn.is-boot::before, .dash-pack-btn.is-boot::after,
  .dash-wallet-inner.is-boot::before, .dash-wallet-inner.is-boot::after {
    animation: none;
    content: none !important;
    display: none !important;
  }
  .dash-wallet-stamp, .dash-wallet-toggle strong i, .dash-wallet-pct { animation: none; }
  .dash-main-tabs::before, .dash-pane.is-enter, .dash-line-path, .dash-line-fill, .dash-line-dot, .dash-compare-spark i, .dash-compare-card { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .dash-pause-stamp, .dash-soon-bulk, .dash-card.is-payload-flash,
  .dash-card-pause.is-hot,
  .dash-credit-dial, .dash-credit-dial .dash-credit-ring { animation: none; }
  .dash-qr-trace-ring, .dash-qr-trace-core, .dash-qr-packet, .dash-qr-bit, .dash-hq-led, .dash-card, .dash-countdown.is-urgent,
  .dash-cal-pop.is-open, .dash-cal-scan, .dash-cal-day,
  .dash-qr-stage.is-edit-fx .edit-orbit,
  .dash-qr-stage.is-edit-fx .edit-math,
  .dash-qr-stage.is-edit-fx .edit-bracket {
    animation: none;
  }
  .dash-qr-stage.is-edit-fx .edit-tick {
    animation: none;
    opacity: 0.4;
  }
}

@media (max-width: 900px) {
  .dash-hq { grid-template-columns: 1fr 1fr; }
  .dash-insights { grid-template-columns: 1fr 1fr; }
  .dash-extra-stats { grid-template-columns: 1fr 1fr; }
  .dash-card-qr-row { grid-template-columns: 1fr; justify-items: start; }
  .dash-stats-grid { grid-template-columns: 1fr; }
  .style-modal-body { grid-template-columns: 1fr; }
  .dash-explore-field { flex: 1 1 100%; min-width: 0; }
  .dash-map-signal-kpis { grid-template-columns: 1fr; }
  .dash-code-list { max-height: 180px; }
}

@media (max-width: 720px) {
  .dash-org-lead,
  .dash-pulse-head p,
  .dash-matrix-head p {
    white-space: normal;
  }
  .dash-main-tabs {
    gap: 4px;
    padding: 4px;
    overflow-x: hidden;
  }
  .dash-main-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 10px 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    gap: 6px;
  }
  #dash-tab-sets.dash-main-tab {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 4px;
    column-gap: 6px;
    align-content: center;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  #dash-tab-sets .dash-tab-bal-chip {
    flex: 1 0 100%;
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .dash-tab-label-full { display: none; }
  .dash-tab-label-short { display: inline; }
  .dash-org-lead { display: none; }
  .dash-org-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .dash-expire-row { flex-direction: column; align-items: stretch; }
  .dash-card-actions { flex-direction: column; align-items: stretch; }
  .dash-card-actions button { width: 100%; }
  .dash-pause-wrap { width: 100%; }
  .dash-soon { flex-direction: column; align-items: stretch; }
  .dash-soon-bulk { margin-left: 0; }
  .dash-list-tools { align-items: flex-end; }
  .dash-export { width: 100%; }
  .dash-hq { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-insights { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .dash-card { padding: 18px; }
  .dash-recent-table { display: block; overflow-x: auto; }
  .dash-hq { grid-template-columns: 1fr; }
}

/* ---------- SEO benefits section ---------- */

.seo-section {
  border-top: 1px solid var(--line);
  padding: 28px 24px 36px;
  overflow: visible;
  scroll-margin-top: 8px;
}

.seo-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.seo-intro {
  display: none;
}

.seo-brand {
  display: flex;
  justify-content: center;
  margin: 0 auto 0;
  max-width: 42rem;
  padding: 0 8px;
}

.seo-brand-lead {
  margin: 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.seo-brand-line {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  margin-right: 0.15em;
}

.seo-brand-line .brand-word {
  font-size: 1.15em;
}

.seo-brand-rest {
  color: var(--muted);
}

.seo-brand-more {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.seo-benefits-mark {
  position: relative;
  width: min(100%, 560px);
  height: 72px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: visible;
}

.seo-icon-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  transform: translateZ(0);
}

.seo-orbit-slot {
  --dur: 26s;
  --delay: 0s;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  /* no scale here — it was squashing the icons */
}

.seo-orbit-slot:nth-child(1)  { --dur: 28s; --delay: -2s; }
.seo-orbit-slot:nth-child(2)  { --dur: 33s; --delay: -7s; }
.seo-orbit-slot:nth-child(3)  { --dur: 24s; --delay: -13s; }
.seo-orbit-slot:nth-child(4)  { --dur: 31s; --delay: -4s; }
.seo-orbit-slot:nth-child(5)  { --dur: 36s; --delay: -18s; }
.seo-orbit-slot:nth-child(6)  { --dur: 27s; --delay: -9s; }
.seo-orbit-slot:nth-child(7)  { --dur: 29s; --delay: -15s; }
.seo-orbit-slot:nth-child(8)  { --dur: 38s; --delay: -1s; }
.seo-orbit-slot:nth-child(9)  { --dur: 25s; --delay: -20s; }
.seo-orbit-slot:nth-child(10) { --dur: 34s; --delay: -6s; }
.seo-orbit-slot:nth-child(11) { --dur: 30s; --delay: -12s; }
.seo-orbit-slot:nth-child(12) { --dur: 32s; --delay: -22s; }

.seo-orbit-path {
  display: contents;
}

.seo-orbit-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 0;
  background: transparent;
  color: var(--blue);
  transform: translateZ(0);
  /* Wide horizontal ellipse, short vertical — icons keep normal proportions */
  animation:
    seo-fly-wide var(--dur) cubic-bezier(0.4, 0.05, 0.6, 0.95) infinite,
    step-color 7s ease-in-out infinite;
  animation-delay: var(--delay), calc(var(--i) * 0.45s);
  filter: drop-shadow(0 0 6px rgba(46, 49, 146, 0.35));
  will-change: transform;
}

.seo-orbit-slot:nth-child(even) .seo-orbit-ico {
  animation-name: seo-fly-wide-rev, step-color;
}

.seo-orbit-slot:nth-child(3n) .seo-orbit-ico {
  animation-name: seo-fly-wide-tilt, step-color;
}

.seo-orbit-slot:nth-child(even):nth-child(3n) .seo-orbit-ico {
  animation-name: seo-fly-wide-rev, step-color;
}

.seo-orbit-ico svg {
  display: block;
  width: 22px;
  height: 22px;
}

.seo-benefits-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 2px 6px;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
}

.seo-ben-w {
  display: inline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}

.seo-ben-w.word-1,
.seo-ben-w.word-2 {
  animation: none;
  color: #fff;
}

/* Wide ±220px, flat ±20px — icons NOT scaled */
@keyframes seo-fly-wide {
  0%   { transform: translate3d(220px, 0, 0); }
  12.5% { transform: translate3d(156px, -14px, 0); }
  25%  { transform: translate3d(0, -20px, 0); }
  37.5% { transform: translate3d(-156px, -14px, 0); }
  50%  { transform: translate3d(-220px, 0, 0); }
  62.5% { transform: translate3d(-156px, 14px, 0); }
  75%  { transform: translate3d(0, 20px, 0); }
  87.5% { transform: translate3d(156px, 14px, 0); }
  100% { transform: translate3d(220px, 0, 0); }
}

@keyframes seo-fly-wide-rev {
  0%   { transform: translate3d(220px, 0, 0); }
  12.5% { transform: translate3d(156px, 14px, 0); }
  25%  { transform: translate3d(0, 20px, 0); }
  37.5% { transform: translate3d(-156px, 14px, 0); }
  50%  { transform: translate3d(-220px, 0, 0); }
  62.5% { transform: translate3d(-156px, -14px, 0); }
  75%  { transform: translate3d(0, -20px, 0); }
  87.5% { transform: translate3d(156px, -14px, 0); }
  100% { transform: translate3d(220px, 0, 0); }
}

@keyframes seo-fly-wide-tilt {
  0%   { transform: translate3d(200px, -6px, 0); }
  16%  { transform: translate3d(90px, -18px, 0); }
  33%  { transform: translate3d(-100px, -16px, 0); }
  50%  { transform: translate3d(-210px, 4px, 0); }
  66%  { transform: translate3d(-70px, 18px, 0); }
  83%  { transform: translate3d(120px, 12px, 0); }
  100% { transform: translate3d(200px, -6px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .seo-orbit-ico {
    animation: none !important;
    color: var(--yellow);
    transform: rotate(calc(var(--i) * 30deg)) translate3d(120px, 0, 0) rotate(calc(var(--i) * -30deg));
  }
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
  position: relative;
}

.seo-card {
  --seo-dur: 11s;
  --seo-dir: normal;
  --seo-delay: 0s;
  --seo-from: 0deg;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px 18px;
  transition:
    border-color 2.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 2.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s,
    background 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  isolation: isolate;
}

.seo-card:nth-child(1)  { --seo-dur: 8.5s;  --seo-dir: normal;  --seo-from: 12deg;  --seo-delay: -1.2s; }
.seo-card:nth-child(2)  { --seo-dur: 12.5s; --seo-dir: reverse; --seo-from: 95deg;  --seo-delay: -3.4s; }
.seo-card:nth-child(3)  { --seo-dur: 10s;   --seo-dir: normal;  --seo-from: 210deg; --seo-delay: -0.6s; }
.seo-card:nth-child(4)  { --seo-dur: 14s;   --seo-dir: reverse; --seo-from: 40deg;  --seo-delay: -5.1s; }
.seo-card:nth-child(5)  { --seo-dur: 9.2s;  --seo-dir: normal;  --seo-from: 160deg; --seo-delay: -2.0s; }
.seo-card:nth-child(6)  { --seo-dur: 11.8s; --seo-dir: reverse; --seo-from: 300deg; --seo-delay: -4.2s; }
.seo-card:nth-child(7)  { --seo-dur: 7.8s;  --seo-dir: normal;  --seo-from: 75deg;  --seo-delay: -1.8s; }
.seo-card:nth-child(8)  { --seo-dur: 13.2s; --seo-dir: reverse; --seo-from: 250deg; --seo-delay: -6.0s; }
.seo-card:nth-child(9)  { --seo-dur: 10.6s; --seo-dir: normal;  --seo-from: 25deg;  --seo-delay: -0.3s; }
.seo-card:nth-child(10) { --seo-dur: 15s;   --seo-dir: reverse; --seo-from: 180deg; --seo-delay: -2.7s; }
.seo-card:nth-child(11) { --seo-dur: 8.8s;  --seo-dir: normal;  --seo-from: 330deg; --seo-delay: -4.8s; }
.seo-card:nth-child(12) { --seo-dur: 12s;   --seo-dir: reverse; --seo-from: 110deg; --seo-delay: -1.5s; }

@property --seo-orbit {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --seo-orbit-b {
  syntax: "<angle>";
  inherits: false;
  initial-value: 180deg;
}

.seo-card::before,
.seo-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 2.6s cubic-bezier(0.45, 0.05, 0.2, 1);
  pointer-events: none;
  z-index: 3;
  will-change: opacity;
}

/* Single traveling highlight */
.seo-card::before {
  background: conic-gradient(
    from calc(var(--seo-from) + var(--seo-orbit)),
    transparent 0deg,
    transparent 220deg,
    rgba(255, 242, 0, 0.1) 255deg,
    rgba(255, 242, 0, 0.52) 285deg,
    rgba(255, 242, 0, 0.18) 310deg,
    transparent 335deg,
    transparent 360deg
  );
  /* Always spinning — visibility only via opacity, so fade in/out stays smooth */
  animation: seo-orbit-spin var(--seo-dur) linear infinite var(--seo-dir);
  animation-delay: var(--seo-delay);
}

/* Counter accent on opposite side */
.seo-card::after {
  inset: -2px;
  padding: 1px;
  background: conic-gradient(
    from calc(var(--seo-from) + var(--seo-orbit-b)),
    transparent 0deg,
    transparent 300deg,
    rgba(255, 242, 0, 0.08) 315deg,
    rgba(255, 242, 0, 0.38) 330deg,
    transparent 348deg,
    transparent 360deg
  );
  z-index: 2;
  animation: seo-orbit-spin-b calc(var(--seo-dur) * 1.35) linear infinite reverse;
  animation-delay: calc(var(--seo-delay) * -0.5);
}

/* Dual opposite arcs */
.seo-card[data-trace="dual"]::before {
  background: conic-gradient(
    from calc(var(--seo-from) + var(--seo-orbit)),
    transparent 0deg,
    rgba(255, 242, 0, 0.14) 8deg,
    rgba(255, 242, 0, 0.55) 22deg,
    rgba(255, 242, 0, 0.12) 36deg,
    transparent 50deg,
    transparent 180deg,
    rgba(255, 242, 0, 0.12) 188deg,
    rgba(255, 242, 0, 0.48) 202deg,
    rgba(255, 242, 0, 0.1) 216deg,
    transparent 230deg,
    transparent 360deg
  );
}

/* Triple tick / scanner dashes */
.seo-card[data-trace="ticks"]::before {
  background: conic-gradient(
    from calc(var(--seo-from) + var(--seo-orbit)),
    transparent 0deg,
    rgba(255, 242, 0, 0.5) 0deg 10deg,
    transparent 10deg 40deg,
    rgba(255, 242, 0, 0.42) 40deg 48deg,
    transparent 48deg 90deg,
    rgba(255, 242, 0, 0.46) 90deg 98deg,
    transparent 98deg 360deg
  );
}

/* Wide soft sweep */
.seo-card[data-trace="sweep"]::before {
  background: conic-gradient(
    from calc(var(--seo-from) + var(--seo-orbit)),
    transparent 0deg,
    transparent 160deg,
    rgba(255, 242, 0, 0.08) 190deg,
    rgba(255, 242, 0, 0.4) 230deg,
    rgba(255, 242, 0, 0.55) 255deg,
    rgba(255, 242, 0, 0.22) 285deg,
    transparent 320deg,
    transparent 360deg
  );
}

/* Corner-ish short pulse */
.seo-card[data-trace="corner"]::before {
  background: conic-gradient(
    from calc(var(--seo-from) + var(--seo-orbit)),
    transparent 0deg,
    transparent 270deg,
    rgba(255, 242, 0, 0.2) 288deg,
    rgba(255, 242, 0, 0.58) 300deg,
    rgba(255, 242, 0, 0.2) 312deg,
    transparent 328deg,
    transparent 360deg
  );
}

.seo-card.is-traced::before {
  opacity: 1;
}

.seo-card.is-traced::after {
  opacity: 0.9;
}

.seo-card.is-traced {
  border-color: rgba(255, 242, 0, 0.32);
  box-shadow: 0 0 14px rgba(255, 242, 0, 0.08);
}

.seo-grid.is-trace-all .seo-card::before {
  opacity: 1;
}

.seo-grid.is-trace-all .seo-card::after {
  opacity: 0.75;
}

.seo-grid.is-trace-all .seo-card {
  border-color: rgba(255, 242, 0, 0.26);
}

.seo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  margin: 36px auto 12px;
  max-width: 36rem;
  padding: 20px 16px 12px;
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.seo-cta-hint {
  margin: 0;
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.seo-cta-hint-kicker {
  display: block;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--yellow);
  text-wrap: balance;
  animation: seo-cta-kicker 2.8s ease-in-out infinite;
}

.seo-cta-hint-sub {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #e8e8e8;
  text-wrap: pretty;
  animation: seo-cta-sub-drift 3.6s ease-in-out infinite;
}

.seo-cta-btn,
a.seo-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: min(100%, 280px);
  min-height: 48px;
  padding: 14px 24px;
  background: var(--yellow);
  color: #0a0a0a;
  border: 1px solid var(--yellow);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  animation: seo-cta-bait 1.7s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 242, 0, 0.55);
  position: relative;
  z-index: 1;
}

.seo-cta-btn.hidden,
a.seo-cta-btn.hidden {
  display: none;
}

.seo-cta-btn:hover,
a.seo-cta-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
  animation: none;
}

.seo-cta-btn:active,
a.seo-cta-btn:active {
  transform: scale(0.98);
  animation: none;
}

@keyframes seo-cta-bait {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 242, 0, 0.15); }
  50% { transform: scale(1.08); box-shadow: 0 0 22px 6px rgba(255, 242, 0, 0.55); }
}

@keyframes seo-cta-kicker {
  0%, 100% { opacity: 0.88; text-shadow: 0 0 0 rgba(255, 242, 0, 0); transform: translateY(0); }
  50% { opacity: 1; text-shadow: 0 0 18px rgba(255, 242, 0, 0.35); transform: translateY(-1px); }
}

@keyframes seo-cta-sub-drift {
  0%, 100% { opacity: 0.78; letter-spacing: 0.01em; }
  50% { opacity: 1; letter-spacing: 0.03em; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-cta-hint-kicker,
  .seo-cta-hint-sub,
  .seo-cta-btn,
  a.seo-cta-btn {
    animation: none;
    box-shadow: none;
  }
}

@keyframes seo-orbit-spin {
  to { --seo-orbit: 360deg; }
}

@keyframes seo-orbit-spin-b {
  to { --seo-orbit-b: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-card::before,
  .seo-card::after,
  .seo-card.is-traced::before,
  .seo-card.is-traced::after,
  .seo-grid.is-trace-all .seo-card::before,
  .seo-grid.is-trace-all .seo-card::after {
    animation: none !important;
    opacity: 0 !important;
  }
  .seo-card.is-traced,
  .seo-grid.is-trace-all .seo-card {
    border-color: var(--line);
    box-shadow: none;
  }
}

.seo-card:hover {
  border-color: var(--yellow);
  background: rgba(255, 242, 0, 0.05);
  box-shadow: 0 0 22px rgba(255, 242, 0, 0.35);
  transform: translateY(-4px) scale(1.04);
  z-index: 1;
}

.seo-card-icon {
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.seo-card:hover .seo-card-icon {
  color: var(--yellow);
}

.seo-guides {
  margin: 40px 0 8px;
  padding: 8px 0 22px;
  border: 0;
  background: transparent;
  position: relative;
}

.seo-guides-mark {
  position: relative;
  width: min(100%, 420px);
  height: 36px;
  margin: 0 auto 14px;
  overflow: hidden;
}

.seo-guides-scan {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 28%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  box-shadow: 0 0 12px rgba(255, 242, 0, 0.55);
  animation: seo-guides-scan 3.4s ease-in-out infinite;
}

.seo-guides-dot {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(46, 49, 146, 0.7);
  animation: seo-guides-dot 2.8s ease-in-out infinite;
}
.seo-guides-dot.d1 { left: 8%; animation-delay: 0s; }
.seo-guides-dot.d2 { left: 20%; animation-delay: 0.2s; }
.seo-guides-dot.d3 { left: 32%; animation-delay: 0.4s; }
.seo-guides-dot.d4 { left: 44%; animation-delay: 0.1s; }
.seo-guides-dot.d5 { left: 56%; animation-delay: 0.35s; }
.seo-guides-dot.d6 { left: 68%; animation-delay: 0.15s; }
.seo-guides-dot.d7 { left: 80%; animation-delay: 0.45s; }
.seo-guides-dot.d8 { left: 92%; animation-delay: 0.25s; }

.seo-guides-eyebrow {
  margin: 4px 0 12px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa0e8;
}

.seo-guides-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--blue, #2e3192);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-align: center;
  animation: seo-guides-title-pulse 3.2s ease-in-out infinite;
}

.seo-guides-lead,
.seo-guides-more {
  margin: 0 0 12px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  color: #d8d8d8;
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  animation: seo-guides-lead-shimmer 4.2s ease-in-out infinite;
}

.seo-guides-more {
  margin-bottom: 18px;
  color: #bdbdbd;
  animation-delay: 0.6s;
}

html[lang="zh"] .seo-guides-lead,
html[lang="zh"] .seo-guides-more {
  text-justify: inter-character;
  text-align-last: justify;
}

.seo-guides-track {
  position: relative;
  overflow: hidden;
  padding: 6px 0 4px;
}

.seo-guides-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.seo-guides-list a {
  display: inline-block;
  color: var(--text, #f2f2f2);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  padding: 2px 0 3px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    text-shadow 0.22s ease,
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.seo-guides-list a:hover,
.seo-guides-list a:focus-visible {
  color: var(--yellow, #fff200);
  border-bottom-color: rgba(255, 242, 0, 0.55);
  text-shadow: 0 0 10px rgba(255, 242, 0, 0.22);
  transform: translateX(3px);
  background: linear-gradient(90deg, rgba(46, 49, 146, 0.28), transparent 85%);
  box-shadow: inset 2px 0 0 var(--blue, #2e3192);
  outline: none;
}

.seo-guides-snake {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 10px;
  margin-top: -5px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 0 6px rgba(255, 242, 0, 0.55));
}

.seo-guides-snake.is-flip {
  transform: scaleX(-1);
}

.seo-guides-snake .snake-body {
  display: block;
  flex: 1 1 auto;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff200 25%, #2e3192 70%, #fff200);
}

.seo-guides-snake .snake-head {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 242, 0, 0.8);
  flex: 0 0 auto;
}

@keyframes seo-guides-scan {
  0% { left: -25%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes seo-guides-dot {
  0%, 100% { transform: translateY(0) scale(0.85); opacity: 0.45; background: var(--blue); }
  50% { transform: translateY(-3px) scale(1.15); opacity: 1; background: var(--yellow); }
}

@keyframes seo-guides-title-pulse {
  0%, 100% { opacity: 0.92; text-shadow: 0 0 0 rgba(46, 49, 146, 0); }
  50% { opacity: 1; text-shadow: 0 0 14px rgba(46, 49, 146, 0.45); }
}

@keyframes seo-guides-lead-shimmer {
  0%, 100% { opacity: 0.84; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-guides-title,
  .seo-guides-lead,
  .seo-guides-more,
  .seo-guides-scan,
  .seo-guides-dot { animation: none; }
  .seo-guides-snake { display: none !important; }
}

@media (max-width: 640px) {
  .seo-guides { padding: 8px 0 14px; }
  .seo-guides-list { grid-template-columns: 1fr; gap: 12px; }
}

.seo-card:hover h3 {
  color: var(--yellow);
}

.seo-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  transition: color 0.2s;
}

.seo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border-top: 1px solid var(--blue);
  padding: 16px 24px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 320px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions a {
  color: var(--yellow);
  font-size: 13px;
  text-decoration: none;
}

.cookie-actions a:hover {
  text-decoration: underline;
}

.cookie-actions button {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

#cookie-accept {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

#cookie-accept:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}

#cookie-decline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- Legal pages (terms / privacy) ---------- */

.legal-layout {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.legal-panel {
  position: relative;
  border: 1px solid var(--line);
  padding: 32px 32px 28px;
}

.legal-panel h1 {
  text-transform: none;
  letter-spacing: normal;
  font-size: 26px;
  color: var(--text);
  margin: 0 0 24px;
}

.legal-panel h2 {
  position: relative;
  text-transform: none;
  letter-spacing: normal;
  font-size: 18px;
  color: var(--yellow);
  margin: 30px 0 12px;
  padding-top: 22px;
}

.legal-panel h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), transparent);
  clip-path: polygon(0 0, 100% 45%, 0 100%);
}

.legal-panel h1 + h2 {
  margin-top: 6px;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Justify body copy on terms/privacy only (not materials guides). */
.legal-layout:not(.materials-layout) .legal-panel p,
.legal-layout:not(.materials-layout) .legal-panel li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.legal-layout:not(.materials-layout) .legal-panel .legal-edition {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}

.legal-panel ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-panel a {
  color: var(--yellow);
}

.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  color: #7c81e0;
  font-size: 14px;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--yellow);
}

/* Materials / SEO guides */
.materials-layout .legal-panel,
.materials-layout .guide-panel {
  animation: materials-fade 0.45s ease both;
}

@keyframes materials-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.guide-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}

.guide-lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #c8c8d8;
  max-width: none;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.materials-panel > [data-lang-block] > .guide-lead,
.materials-panel .guide-lead {
  max-width: none;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.materials-card {
  display: grid;
  gap: 8px;
  padding: 16px 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.materials-card:hover {
  border-color: rgba(255, 242, 0, 0.55);
  background: rgba(46, 49, 146, 0.22);
  transform: translateY(-2px);
  color: #fff;
}

.materials-card b {
  font-size: 15px;
  line-height: 1.3;
  color: var(--yellow);
}

.materials-card span {
  font-size: 13px;
  line-height: 1.45;
  color: #a7a7b8;
}

.materials-group {
  margin: 28px 0 10px;
}

.materials-group:first-of-type {
  margin-top: 18px;
}

.materials-group-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9ab0;
  font-weight: 700;
}

.materials-card {
  grid-template-columns: 40px 1fr;
  align-items: start;
  column-gap: 12px;
}

.materials-card.is-reveal {
  opacity: 1;
  transform: none;
}

.materials-card.is-reveal.is-pending {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: var(--d, 0s);
}

.materials-card.is-reveal.is-in {
  opacity: 1;
  transform: none;
}

.materials-card-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.materials-card-ico svg {
  width: 20px;
  height: 20px;
}

.materials-card:hover .materials-card-ico {
  border-color: var(--yellow);
  background: rgba(255, 242, 0, 0.08);
  color: var(--yellow);
}

.materials-card-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

@keyframes materials-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.guide-panel h1 {
  max-width: 28ch;
}

.guide-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff;
}

.guide-panel h2::before {
  display: none;
}

.guide-panel p {
  color: #cfd0dc;
  line-height: 1.6;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.guide-toc a {
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.guide-toc a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(46, 49, 146, 0.28);
  transform: translateY(-1px);
}

.guide-section,
.guide-step,
.guide-use,
.guide-compare-card,
.guide-num,
.guide-flow,
.guide-chip,
.guide-cta,
.guide-ready {
  opacity: 1;
  transform: none;
}

.guide-section.is-pending,
.guide-step.is-pending,
.guide-use.is-pending,
.guide-compare-card.is-pending,
.guide-num.is-pending,
.guide-flow.is-pending,
.guide-chip.is-pending,
.guide-cta.is-pending,
.guide-ready.is-pending {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: var(--d, 0s);
}

.guide-section.is-in,
.guide-step.is-in,
.guide-use.is-in,
.guide-compare-card.is-in,
.guide-num.is-in,
.guide-flow.is-in,
.guide-chip.is-in,
.guide-cta.is-in,
.guide-ready.is-in {
  opacity: 1;
  transform: none;
}

.guide-section {
  margin: 0 0 28px;
  padding-top: 4px;
}

.guide-chip-row {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.guide-ico svg {
  width: 18px;
  height: 18px;
}

.guide-flow {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  counter-reset: flow;
}

.guide-flow li {
  position: relative;
  padding: 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(160deg, rgba(46, 49, 146, 0.28), rgba(255, 255, 255, 0.02));
  display: grid;
  gap: 4px;
}

.guide-flow strong {
  color: var(--yellow);
  font-size: 15px;
}

.guide-flow span {
  color: #b7b8c8;
  font-size: 13px;
}

.guide-use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.guide-use {
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.guide-use:hover {
  border-color: rgba(255, 242, 0, 0.55);
  background: rgba(46, 49, 146, 0.22);
  transform: translateY(-2px);
}

.guide-use b {
  color: #fff;
  font-size: 14px;
}

.guide-use span {
  color: #a7a7b8;
  font-size: 12px;
  line-height: 1.4;
}

.guide-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.guide-compare-card {
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.guide-compare-card.is-accent {
  border-color: rgba(255, 242, 0, 0.5);
  background: linear-gradient(145deg, rgba(46, 49, 146, 0.35), rgba(255, 242, 0, 0.08));
}

.guide-compare-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--yellow);
}

.guide-compare-card p {
  margin: 0;
  font-size: 14px;
}

.guide-steps {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: steps;
}

.guide-step {
  position: relative;
  padding: 16px 16px 16px 58px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.guide-step::before {
  content: attr(data-step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.guide-step h2 {
  font-size: 17px;
}

.guide-callout {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 242, 0, 0.06);
  color: #fff !important;
  font-weight: 600;
}

.guide-check-list {
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.guide-check-list li {
  position: relative;
  padding-left: 28px;
  color: #d5d6e2;
}

.guide-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border: 1px solid #fff;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  background:
    linear-gradient(#fff, #fff) center / 8px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 8px no-repeat;
}

.guide-dialog {
  margin: 14px 0;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  display: grid;
  gap: 8px;
}

.guide-dialog p {
  margin: 0;
  color: #fff;
  font-style: italic;
}

.guide-story {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(46, 49, 146, 0.8);
  background: rgba(46, 49, 146, 0.22);
}

.guide-num-grid {
  display: grid;
  gap: 8px;
  margin: 16px 0 24px;
}

.guide-num {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.guide-num summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  font-weight: 700;
}

.guide-num summary::-webkit-details-marker {
  display: none;
}

.guide-num summary span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.guide-num[open] summary span {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #0a0a0a;
}

.guide-num p {
  margin: 0;
  padding: 0 14px 14px 60px;
  color: #bdbecb;
}

.guide-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: #9a9ab0;
}

.guide-crumbs a {
  color: #7c81e0;
  text-decoration: none;
}

.guide-crumbs a:hover {
  color: var(--yellow);
}

.guide-crumbs span[aria-current="page"] {
  color: #d4d4e2;
}

.guide-ready {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guide-ready h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.guide-ready-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.guide-ready-link {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.guide-ready-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(46, 49, 146, 0.25);
}

.materials-ready {
  margin: 22px 0 8px;
  padding: 16px 0 4px;
  border-top: none;
  border-bottom: 1px solid var(--line);
}

.guide-ready-grid.is-rich {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.guide-ready-grid.is-rich .guide-ready-link {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 14px;
  min-height: 88px;
  background: rgba(255, 255, 255, 0.02);
}

.guide-ready-grid.is-rich .guide-ready-link b {
  color: var(--yellow);
  font-size: 14px;
  line-height: 1.3;
}

.guide-ready-grid.is-rich .guide-ready-link span {
  color: #a7a7b8;
  font-size: 12px;
  line-height: 1.45;
}

.guide-ready-grid.is-rich .guide-ready-link:hover span {
  color: #d0d0dc;
}

.guide-related {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guide-related-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9ab0;
  font-weight: 700;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.guide-related-link {
  text-decoration: none;
  color: #fff;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.guide-related-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(46, 49, 146, 0.25);
}

.guide-cta {
  margin-top: 28px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 242, 0, 0.45);
  background:
    linear-gradient(135deg, rgba(46, 49, 146, 0.35), rgba(255, 242, 0, 0.08));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.guide-cta-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}

.guide-cta h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #fff;
}

.guide-cta h2::before {
  display: none;
}

.guide-cta p {
  margin: 0 0 16px;
  color: #d4d4e2;
}

.guide-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--yellow);
  color: #0a0a0a !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: filter 0.18s, transform 0.18s;
}

.guide-cta-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .guide-flow {
    grid-template-columns: 1fr;
  }
  .guide-step {
    padding-left: 16px;
    padding-top: 54px;
  }
  .guide-step::before {
    left: 14px;
    top: 14px;
  }
  .guide-num p {
    padding-left: 14px;
  }
  .guide-panel h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .materials-layout .legal-panel,
  .materials-layout .guide-panel,
  .materials-card.is-reveal,
  .guide-section,
  .guide-step,
  .guide-use,
  .guide-compare-card,
  .guide-num,
  .guide-flow,
  .guide-chip,
  .guide-cta,
  .guide-ready,
  .guide-section.is-pending,
  .guide-step.is-pending,
  .guide-use.is-pending,
  .guide-compare-card.is-pending,
  .guide-num.is-pending,
  .guide-flow.is-pending,
  .guide-chip.is-pending,
  .guide-cta.is-pending,
  .guide-ready.is-pending {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Legal page body text exists in two full copies (uk/en) instead of going
   through the i18n dictionary — this just shows the one matching <html lang>. */
[data-lang-block] {
  display: none;
}
html[lang="uk"] [data-lang-block="uk"],
html[lang="en"] [data-lang-block="en"],
html[lang="zh"] [data-lang-block="zh"],
html[lang="fr"] [data-lang-block="fr"],
html[lang="ar"] [data-lang-block="ar"],
html[lang="es"] [data-lang-block="es"],
html[lang="ja"] [data-lang-block="ja"],
html[lang="de"] [data-lang-block="de"],
html[lang="pt"] [data-lang-block="pt"],
html[lang="it"] [data-lang-block="it"],
html[lang="ko"] [data-lang-block="ko"],
html[lang="tr"] [data-lang-block="tr"],
html[lang="sv"] [data-lang-block="sv"],
html[lang="no"] [data-lang-block="no"],
html[lang="nl"] [data-lang-block="nl"],
html[lang="cs"] [data-lang-block="cs"],
html[lang="pl"] [data-lang-block="pl"] {
  display: block;
}
/* seo-page.php leaves exactly one block in the document, so show it whatever the
   UI language ends up being — the copy can never end up hidden. */
html[data-lang-served] [data-lang-block] {
  display: block;
}
/* Mandarin / French UI: until a page has its own block, show the English copy. */
html[lang="zh"] body:not(:has([data-lang-block="zh"])) [data-lang-block="en"] {
  display: block;
}
html[lang="fr"] body:not(:has([data-lang-block="fr"])) [data-lang-block="en"] {
  display: block;
}
html[lang="ar"] body:not(:has([data-lang-block="ar"])) [data-lang-block="en"] {
  display: block;
}
html[lang="es"] body:not(:has([data-lang-block="es"])) [data-lang-block="en"] {
  display: block;
}
html[lang="ja"] body:not(:has([data-lang-block="ja"])) [data-lang-block="en"] {
  display: block;
}
html[lang="de"] body:not(:has([data-lang-block="de"])) [data-lang-block="en"] {
  display: block;
}
html[lang="pt"] body:not(:has([data-lang-block="pt"])) [data-lang-block="en"] {
  display: block;
}
html[lang="it"] body:not(:has([data-lang-block="it"])) [data-lang-block="en"] {
  display: block;
}
html[lang="ko"] body:not(:has([data-lang-block="ko"])) [data-lang-block="en"] {
  display: block;
}
html[lang="tr"] body:not(:has([data-lang-block="tr"])) [data-lang-block="en"] {
  display: block;
}
html[lang="sv"] body:not(:has([data-lang-block="sv"])) [data-lang-block="en"] {
  display: block;
}
html[lang="no"] body:not(:has([data-lang-block="no"])) [data-lang-block="en"] {
  display: block;
}
html[lang="nl"] body:not(:has([data-lang-block="nl"])) [data-lang-block="en"] {
  display: block;
}
html[lang="cs"] body:not(:has([data-lang-block="cs"])) [data-lang-block="en"] {
  display: block;
}
html[lang="pl"] body:not(:has([data-lang-block="pl"])) [data-lang-block="en"] {
  display: block;
}

/* Arabic: native right-to-left reading without mirroring QR graphics or
   machine-readable values. Logical properties continue to handle responsive
   layout; directional controls are kept explicitly left-to-right. */
html[lang="ar"] body {
  direction: rtl;
  text-align: right;
  font-family: Tahoma, Arial, sans-serif;
}

html[lang="ar"] [data-i],
html[lang="ar"] [data-lang-block="ar"],
html[lang="ar"] [data-lang-block="ar"] *,
html[lang="ar"] .lang-option[data-lang="ar"],
html[lang="ar"] #lang-current {
  letter-spacing: normal;
}

html[lang="ar"] input[type="url"],
html[lang="ar"] input[type="email"],
html[lang="ar"] input[type="tel"],
html[lang="ar"] input[type="number"],
html[lang="ar"] .captcha-question,
html[lang="ar"] .captcha-answer,
html[lang="ar"] .mono,
html[lang="ar"] code,
html[lang="ar"] pre,
html[lang="ar"] canvas,
html[lang="ar"] svg {
  direction: ltr;
}

html[lang="ar"] .lang-menu {
  right: auto;
  left: 0;
  direction: ltr;
}

html[lang="ar"] .lang-menu-caption,
html[lang="zh"] .lang-menu-caption,
html[lang="ja"] .lang-menu-caption {
  letter-spacing: normal;
}
html[lang="zh"] .lang-toggle,
html[lang="ja"] .lang-toggle {
  letter-spacing: normal;
}

html[lang="ar"] .legal-back,
html[lang="ar"] .guide-crumbs,
html[lang="ar"] .guide-related,
html[lang="ar"] .footer-links {
  direction: rtl;
}

/* The brand is a registered left-to-right lockup. Arabic page direction must
   never reorder QR + code + Global or swap its emblem/text sequence. */
html[lang="ar"] .brand,
html[lang="ar"] .brand-stairs,
html[lang="ar"] .brand-line,
html[lang="ar"] .seo-brand-line {
  direction: ltr;
  unicode-bidi: isolate;
}

/* =====================================================================
   ADAPTIVE / RESPONSIVE DESIGN
   Tiers: TV/large screens → laptop (default) → tablet → phone → small phone.
   Kept at the end of the file so these rules win the cascade over the
   component styles above without needing extra selector specificity.
   ===================================================================== */

/* ---------- Large screens & TVs (viewed from a distance) ---------- */
@media (min-width: 1600px) {
  html, body { font-size: 20px; }
  .layout { max-width: 1500px; }
  .seo-inner, .dashboard-layout, .legal-layout { max-width: 1500px; }
  .brand img { width: 3cm; height: 3cm; }
  .brand-word { font-size: 28px; }
  .brand-sub { font-size: 16px; }
  #qr { width: min(100%, 420px); }
  .stage { min-height: 380px; }
}

/* ---------- Tablets + phones: data → QR/form → params ---------- */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "data"
      "preview"
      "params";
    align-items: stretch;
  }
  .layout-stack {
    display: contents; /* children take data/preview/params areas */
  }
  .panel-data { grid-area: data; }
  .panel-params { grid-area: params; }
  .panel, .preview-col { padding: 20px; }
  .panel {
    border-right: 0;
  }
  .panel-data {
    border-bottom: 1px solid var(--line);
  }
  .preview-col {
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .panel-params {
    border-top: 0;
  }
  .tabs { padding: 10px 20px; gap: 5px; }
  .seo-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* Extra compact chrome under ~880px (header/brand), layout already stacked above */
@media (max-width: 880px) {
  .top {
    padding: 10px 14px;
    flex-wrap: nowrap;
    gap: 8px 10px;
    align-items: center;
  }
  /* Same row rules whether brand is wrapped (.top-brand) or direct (.top > .brand) */
  .top-brand,
  .top > .brand {
    gap: 10px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: flex-start;
  }
  .brand { min-width: 0; max-width: 100%; }
  .brand img { width: 2.8cm; height: 2.8cm; }
  .brand-sub {
    font-size: 11px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  html[lang="uk"] .brand-sub {
    font-size: 10px;
    letter-spacing: 0;
  }
  .nav-advantages { font-size: 12px; padding: 8px 12px 8px 10px; flex: 0 0 auto; }
  .top-right {
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
    align-self: center;
    min-width: 0;
  }
  .account-widget { max-width: 160px; }
  .tabs { padding: 10px 16px; }
  .brand-word { font-size: 18px; }
  .brand-sub { margin-left: 24px; }
  .dashboard-panel, .legal-panel { padding: 22px; }
}

/* ---------- Phones + small tablets only: compact 2-row tabs ---------- */
@media (max-width: 768px) {
  .tab-desk { display: none !important; }
  .more-phone-only { display: list-item !important; }
  .tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    padding: 8px 6px;
    overflow: visible;
  }
  .tabs > .tab,
  .tabs > .tab-business,
  .tabs > .tab-auth,
  .tabs > .tab-more {
    grid-column: span 1;
    min-width: 0;
    max-width: none;
    width: auto;
  }
  .tabs:has(> .tab-auth.hidden) > .tab-business {
    grid-column: span 2;
  }
  .tab,
  .tabs .tab-more > .tab,
  .tab-business,
  .tab-auth {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    height: 42px;
    padding: 0 1px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    clip-path: polygon(2px 0, 100% 0, 100% calc(100% - 2px), calc(100% - 2px) 100%, 0 100%, 0 2px);
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
    gap: 1px;
  }
  .tabs .tab-more {
    overflow: visible;
    display: flex;
  }
  .tabs .tab-more > .tab {
    width: 100%;
    flex: 1 1 auto;
  }
  /* Full names everywhere on phone */
  .tab-label-short { display: none !important; }
  .tab-label-full { display: inline !important; }
  .tabs > .tab-business,
  .tabs > .tab-auth {
    font-size: 8px;
    letter-spacing: -0.04em;
    padding: 0 1px;
    white-space: nowrap;
  }
  .tabs .option-icon {
    width: 10px;
    height: 10px;
    margin-right: 0;
    flex-shrink: 0;
  }
  .tab-business .option-icon,
  .tab-auth .option-icon {
    display: inline;
    width: 9px;
    height: 9px;
  }
  .more-caret { display: inline !important; }
  #tab-more { max-width: none; }
  #tab-more > .more-toggle {
    max-width: none;
    padding: 0 1px;
    font-size: 9px;
  }
  #tab-more .more-menu {
    left: 0;
    right: auto;
    min-width: min(240px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: min(65vh, 440px);
  }
  #tab-vcard .more-menu {
    left: 0;
    right: auto;
    min-width: min(200px, calc(100vw - 28px));
  }
}

/* ---------- Phones (≤600px) ---------- */
@media (max-width: 600px) {
  html, body { font-size: 16px; }

  .top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
  }
  .top-brand,
  .top > .brand {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  .brand {
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    overflow: visible;
    justify-content: flex-start;
  }
  .brand img { width: 2.4cm; height: 2.4cm; flex: 0 0 auto; }
  .brand-word { font-size: 16px; }
  .brand-stairs { gap: 2px; min-width: 0; overflow: visible; }
  .brand-line {
    white-space: nowrap;
    overflow: visible;
  }
  .brand-sub {
    margin-left: 0;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  html[lang="uk"] .brand-sub {
    font-size: 10px;
    letter-spacing: 0;
  }
  /* Logged-in: keep brand on the left, slightly tighter so name + bell fit */
  .top:has(.account-widget:not(.hidden)) .brand img {
    width: 2cm;
    height: 2cm;
  }
  .top:has(.account-widget:not(.hidden)) .brand-word {
    font-size: 15px;
  }
  /* Mobile: hide header bait — advantages section is reachable by scroll */
  .nav-advantages {
    display: none !important;
  }
  /* Language sits above the account chip only — nothing over the bell. */
  .top-right {
    display: grid;
    grid-template-columns: auto;
    align-items: stretch;
    justify-items: end;
    column-gap: 6px;
    row-gap: 5px;
    flex: 0 0 auto;
    width: max-content;
    max-width: min(58vw, 15rem);
    margin-left: 0;
  }
  .top-right:has(.account-widget:not(.hidden)) {
    grid-template-columns: auto auto;
  }
  .top-right .lang-dropdown {
    grid-column: 1;
    grid-row: 1;
    order: 1;
    width: max-content;
    max-width: 100%;
    margin-inline-start: 0;
  }
  .top-right:has(.account-widget:not(.hidden)) .lang-dropdown {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  .top-right .notif-bell-wrap {
    grid-column: 1;
    grid-row: 2;
    order: 2;
    display: inline-flex;
    align-items: stretch;
  }
  .top-right .account-widget {
    grid-column: 1;
    grid-row: 2;
    order: 3;
    width: auto;
    max-width: 140px;
    height: 40px;
    min-height: 40px;
    min-width: 0;
    padding: 4px 8px 4px 4px;
    font-size: 11px;
    gap: 8px;
    box-sizing: border-box;
    justify-content: flex-start;
  }
  .top-right:has(.account-widget:not(.hidden)) .account-widget {
    grid-column: 2;
    grid-row: 2;
  }
  .top-right .account-name {
    display: inline;
    min-width: 0;
  }
  .top-right .notif-bell {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
  }
  .lang-dropdown { width: max-content; max-width: 100%; }
  .lang-menu-caption { display: block; text-align: center; font-size: 8px; padding-bottom: 2px; }
  .top-right .lang-toggle {
    width: auto;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 0 8px;
  }
  .top-right:has(.account-widget:not(.hidden)) .lang-toggle {
    width: 100%;
    font-size: 9px;
    letter-spacing: 0.03em;
    padding: 0 6px;
  }

  .panel, .preview-col { padding: 14px 16px; }
  .panel-params { padding-top: 8px; }
  .preview-col { padding-bottom: 10px; }
  .stage { min-height: 200px; padding: 12px; }
  h1, h2 { font-size: 13px; }
  .panel-params > h2 { margin-bottom: 10px; }
  .style-studio { gap: 8px; margin-top: 0; }
  .style-studio-pane { min-height: 0; }
  .style-studio-hint { margin-bottom: 8px; font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .size-field label { max-width: none; }

  .qr-type-toggle { padding: 10px 12px; gap: 12px; }
  .dynamic-panel { padding: 12px; }

  .map-picker { height: 200px; }

  #qr { width: min(100%, 260px); }

  .actions { gap: 8px; }
  .actions button,
  #btn-png,
  #btn-svg,
  #btn-copy,
  #btn-make-dynamic,
  #claim-btn,
  .btn-code-stats,
  .btn-code-stats-inline,
  .btn-cabinet-inline,
  .btn-new-dynamic,
  .loc-search-btn {
    padding: 12px 16px;
    min-height: 48px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  /* business modal */
  .modal-card { padding: 22px 18px; max-width: none; width: 100%; min-width: 0; overflow-x: hidden; }
  .modal-card h2 { font-size: 19px; }
  .auth-tabs { margin-bottom: 14px; }

  /* seo section */
  .seo-section { padding: 24px 16px 28px; }
  .seo-brand-lead { font-size: 15px; }
  .seo-brand-line .brand-word { font-size: 1.1em; }
  .seo-benefits-mark {
    width: min(100%, 100%);
    height: 64px;
    margin: 0 auto;
  }
  .seo-orbit-ico { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .seo-orbit-ico svg { width: 18px; height: 18px; }
  @keyframes seo-fly-wide {
    0%   { transform: translate3d(148px, 0, 0); }
    12.5% { transform: translate3d(105px, -12px, 0); }
    25%  { transform: translate3d(0, -16px, 0); }
    37.5% { transform: translate3d(-105px, -12px, 0); }
    50%  { transform: translate3d(-148px, 0, 0); }
    62.5% { transform: translate3d(-105px, 12px, 0); }
    75%  { transform: translate3d(0, 16px, 0); }
    87.5% { transform: translate3d(105px, 12px, 0); }
    100% { transform: translate3d(148px, 0, 0); }
  }
  @keyframes seo-fly-wide-rev {
    0%   { transform: translate3d(148px, 0, 0); }
    12.5% { transform: translate3d(105px, 12px, 0); }
    25%  { transform: translate3d(0, 16px, 0); }
    37.5% { transform: translate3d(-105px, 12px, 0); }
    50%  { transform: translate3d(-148px, 0, 0); }
    62.5% { transform: translate3d(-105px, -12px, 0); }
    75%  { transform: translate3d(0, -16px, 0); }
    87.5% { transform: translate3d(105px, -12px, 0); }
    100% { transform: translate3d(148px, 0, 0); }
  }
  @keyframes seo-fly-wide-tilt {
    0%   { transform: translate3d(135px, -4px, 0); }
    16%  { transform: translate3d(60px, -14px, 0); }
    33%  { transform: translate3d(-70px, -12px, 0); }
    50%  { transform: translate3d(-140px, 3px, 0); }
    66%  { transform: translate3d(-50px, 14px, 0); }
    83%  { transform: translate3d(80px, 10px, 0); }
    100% { transform: translate3d(135px, -4px, 0); }
  }
  .seo-ben-w { font-size: 13px; }
  .seo-benefits-title { padding: 2px 4px; max-width: none; }
  .seo-grid { grid-template-columns: 1fr; }
  .seo-cta { margin-top: 22px; padding: 16px 8px 10px; }
  .seo-cta-hint-kicker { font-size: 16px; }
  .seo-cta-hint-sub { font-size: 13px; }
  .seo-cta-btn { width: 100%; min-width: 0; }

  /* cookie banner */
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button, .cookie-actions a { flex: 1 1 auto; text-align: center; }

  /* dashboard */
  .dashboard-layout { padding: 20px 14px; }
  .dashboard-panel { padding: 18px; }
  .dash-account { grid-template-columns: 1fr; }
  .dash-toolbar-actions { grid-template-columns: 1fr; }
  .dash-cta, .dash-logout { text-align: center; }
  .dash-claim { flex-direction: column; align-items: stretch; }
  .dash-hq { grid-template-columns: 1fr; }
  .dash-insights { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-insight { padding: 12px; }
  .dash-insight span { font-size: 12px; margin-bottom: 6px; }
  .dash-insight strong { font-size: 15px; }
  .dash-extra-stats { grid-template-columns: 1fr; }
  .dash-org-range { width: 100%; }
  .dash-explore { padding: 12px; }
  .dash-explore-controls { flex-direction: column; gap: 10px; }
  .dash-explore-field { min-width: 0; flex: none; width: 100%; }
  .dash-scan-map { min-height: 300px; height: min(440px, 58vh); }
  .dash-cal-pop { left: 0; right: 0; width: auto; max-width: none; }

  /* legal pages */
  .legal-layout { padding: 20px 14px 48px; }
  .legal-panel { padding: 18px; }
  .legal-panel h1 { font-size: 21px; }

  .site-footer { flex-wrap: wrap; padding: 16px 16px 24px; }
  .footer-links {
    margin-left: 0;
    flex-basis: 100%;
    gap: 12px;
    flex-wrap: wrap;
  }
  html[lang="uk"] .footer-links a {
    font-size: 11px;
    letter-spacing: 0;
  }
  html[lang="uk"] .footer-links a[href*="privacy"] {
    font-size: 10px;
  }
}

/* ---------- Small phones (≤400px) ---------- */
@media (max-width: 400px) {
  .brand-word { font-size: 15px; }
  .tabs { gap: 3px; padding: 6px; }
  .tab,
  .tabs .tab-more > .tab,
  .tab-business,
  .tab-auth {
    height: 40px;
    min-height: 40px;
    font-size: 9px;
    padding: 0 2px;
  }
  .tabs > .tab-business,
  .tabs > .tab-auth {
    font-size: 8px;
    letter-spacing: -0.05em;
  }
  .tabs .option-icon {
    width: 10px;
    height: 10px;
  }
  #qr { width: min(100%, 220px); }
  .stage { min-height: 210px; }
  .modal-card { padding: 18px 14px; }
}

/* ---------- Touch devices: no hover, make sure taps feel responsive ---------- */
@media (hover: none) and (pointer: coarse) {
  .lang-toggle, .account-widget, .dash-cta, .dash-logout, .nav-advantages {
    min-height: 44px;
  }
}
@media (hover: none) and (pointer: coarse) and (max-width: 768px) {
  .tab,
  .tabs .tab-more > .tab,
  .tab-business,
  .tab-auth,
  .more-toggle {
    min-height: 44px;
  }
}

/* —— Dashboard first-run tour —— */
.dash-tour {
  position: fixed;
  inset: 0;
  z-index: 50000;
  pointer-events: none;
}
.dash-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  pointer-events: auto;
}
.dash-tour-spots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.dash-tour-spot,
.dash-tour-spot.is-primary,
.dash-tour-spot.is-extra,
.dash-tour-spot.is-btn,
.dash-tour-spot.is-hero {
  position: fixed;
  border-radius: 10px;
  border: 2px solid var(--yellow, #fff200);
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  pointer-events: none;
  transition: top 0.28s ease, left 0.28s ease, width 0.28s ease, height 0.28s ease;
  animation: dash-tour-outline 1.25s ease-in-out infinite;
}
.dash-tour-spot.is-btn {
  border-radius: 8px;
}
@keyframes dash-tour-outline {
  0%, 100% {
    border-color: rgba(255, 242, 0, 0.55);
    outline: 2px solid rgba(255, 242, 0, 0);
    outline-offset: 0;
  }
  50% {
    border-color: #fff200;
    outline: 2px solid rgba(255, 242, 0, 0.85);
    outline-offset: 4px;
  }
}
.dash-dl-theme.is-tour {
  outline: 2px solid var(--yellow, #fff200);
  outline-offset: 3px;
}
.is-tour-focus {
  scroll-margin-bottom: 42vh;
  scroll-margin-top: 16px;
}
.dash-tour-demo-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid var(--yellow, #fff200);
  color: var(--yellow, #fff200);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: max-content;
}
.dash-tour-card {
  position: fixed;
  z-index: 2;
  pointer-events: auto;
  max-width: 400px;
  padding: 16px 16px 14px;
  background: #0c0c0c;
  border: 1px solid rgba(255, 242, 0, 0.45);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(46, 49, 146, 0.55);
}
.dash-tour-explain {
  margin: 0 0 14px;
  padding: 10px 10px 8px;
  border: 1px solid rgba(255, 242, 0, 0.28);
  background: rgba(255, 242, 0, 0.05);
  overflow: hidden;
}
.dash-tour-explain[hidden] { display: none; }
.dash-tour-explain-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: dash-tour-marquee 16s linear infinite;
}
.dash-tour-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 4px 8px 4px 4px;
  background: #fff;
  color: #111;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.dash-tour-chip .qrg-gem { width: 28px; height: 28px; }
.dash-tour-explain-line,
.dash-tour-explain-solo {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #f4f4f5;
}
.dash-tour-explain-solo {
  color: var(--yellow, #fff200);
  font-weight: 700;
}
@keyframes dash-tour-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.dash-tour-progress {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow, #fff200);
}
.dash-tour-title {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #fff;
}
.dash-tour-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #d4d4d4;
}
.dash-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  position: relative;
  z-index: 3;
}
.dash-tour-skip,
.dash-tour-next {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff !important;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  pointer-events: auto;
  filter: none !important;
}
.dash-tour-skip:hover,
.dash-tour-skip:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}
.dash-tour-next,
.dash-tour-next:hover,
.dash-tour-next:focus-visible,
.dash-tour-next:active {
  background: var(--yellow, #fff200) !important;
  border-color: var(--yellow, #fff200) !important;
  color: #0a0a0a !important;
  font-weight: 700;
  filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .dash-tour-spot,
  .dash-tour-spot.is-extra,
  .dash-tour-spot.is-hero,
  .dash-tour-spot.is-btn,
  .dash-tour-explain-track {
    transition: none !important;
    animation: none !important;
  }
}

/* Location search + color palette (phone-friendly) */
.loc-search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.loc-search-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.loc-search-btn {
  flex: 0 0 auto;
  min-height: 48px;
  min-width: 96px;
  padding: 12px 18px;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.loc-search-btn:hover,
.loc-search-btn:focus-visible {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

.dash-egen-fields .map-picker {
  height: 220px;
  width: 100%;
}
.dash-egen-fields .loc-search-btn {
  background: var(--blue);
  color: #fff;
}

.qrg-color-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 8px 10px;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
@media (hover: hover) and (pointer: fine) {
  .panel .grid > .qrg-color-field:hover,
  .style-modal-controls > .qrg-color-field:hover {
    background: #fff;
    border-color: #fff;
    color: #0a0a0a;
    box-shadow: inset 3px 0 0 var(--yellow), 0 0 16px rgba(46, 49, 146, 0.35);
  }
  .panel .grid > .qrg-color-field:hover .qrg-color-hex,
  .style-modal-controls > .qrg-color-field:hover .qrg-color-hex {
    border-color: #0a0a0a;
    background: #fff;
    color: #0a0a0a;
  }
}

.qrg-color {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  position: relative;
}
input[type="color"].qrg-color-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.qrg-color-chip {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #000;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 3px #0a0a0a;
}
.qrg-color-chip:hover,
.qrg-color-chip:focus-visible,
.qrg-color-chip[aria-expanded="true"] {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 3px #0a0a0a, 0 0 0 1px var(--yellow);
}
.qrg-color-hex {
  width: 100%;
  min-width: 0;
  height: 48px;
  box-sizing: border-box;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}
.qrg-color-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(0, 0, 0, 0.55);
}
.qrg-color-backdrop[hidden],
.qrg-color-pop[hidden] {
  display: none !important;
}
.qrg-color-pop {
  position: fixed;
  z-index: 100002;
  padding: 14px;
  background: #0c0c0c;
  border: 1px solid var(--yellow);
  box-shadow: 8px 8px 0 rgba(46, 49, 146, 0.55);
  color: #fff;
  box-sizing: border-box;
}
.qrg-color-pop-title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}
.qrg-color-sv-wrap,
.qrg-color-hue-wrap {
  position: relative;
  width: 100%;
  touch-action: none;
  margin-bottom: 10px;
}
.qrg-color-sv,
.qrg-color-hue {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  cursor: crosshair;
  touch-action: none;
}
.qrg-color-sv-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #000;
  pointer-events: none;
}
.qrg-color-hue-thumb {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 24px;
  margin: -12px 0 0 -5px;
  border: 2px solid #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #000;
  pointer-events: none;
  background: transparent;
}
.qrg-color-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.qrg-color-preview {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.qrg-color-preview-label {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.qrg-color-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.qrg-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  min-height: 28px;
  padding: 0 !important;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  box-sizing: border-box;
}
.qrg-color-swatch.is-on {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-color: var(--yellow);
}
.qrg-color-done {
  display: block;
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--yellow);
  color: #0a0a0a;
  border: 1px solid var(--yellow);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
}
.qrg-color-done:hover,
.qrg-color-done:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
body.qrg-color-open {
  overflow: hidden;
}
.qrg-color-pop.is-sheet {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  padding: 16px 16px 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.qrg-color-pop.is-sheet .qrg-color-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.qrg-color-pop.is-sheet .qrg-color-done {
  display: block;
  flex: 0 0 auto;
  margin-top: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -10px 18px rgba(12, 12, 12, 0.95);
}

@media (max-width: 600px) {
  .dash-egen-fields .map-picker {
    height: 200px;
  }
  .qrg-color-chip,
  .qrg-color-hex {
    height: 44px;
    min-height: 44px;
  }
  .qrg-color-chip {
    width: 44px;
    min-width: 44px;
  }
  .qrg-color-sv-wrap {
    margin-bottom: 12px;
  }
  .qrg-color-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .qrg-color-swatch {
    min-height: 36px;
  }
}

.dash-payload-save:disabled {
  opacity: 0.55;
  cursor: wait;
}

.dash-toast {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}
#style-modal.hidden,
#style-modal[hidden] {
  display: none !important;
}
.dash-toast.hidden,
.dash-toast[hidden] {
  display: none !important;
}
.dash-toast-card {
  width: min(440px, 100%);
  padding: 20px 22px;
  background: #0c0c0c;
  border: 1px solid var(--yellow);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(46, 49, 146, 0.55);
}
.dash-toast-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  word-break: break-word;
}

.qrg-shape-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
}
label:has(> .qrg-shape-pick),
.qrg-shape-field,
.style-studio-field {
  position: relative;
  overflow: visible;
}
.panel .fields > label:not(.toggle):has(> .qrg-shape-pick),
.panel .grid > label:not(.toggle):has(> .qrg-shape-pick),
.style-modal-controls > label:not(.toggle):has(> .qrg-shape-pick),
.style-studio-field:has(> .qrg-shape-pick) {
  clip-path: none;
  overflow: visible;
}
.panel .fields > label:not(.toggle):has(> .qrg-shape-pick):hover,
.panel .grid > label:not(.toggle):has(> .qrg-shape-pick):hover,
.style-modal-controls > label:not(.toggle):has(> .qrg-shape-pick):hover,
.style-studio-field:has(> .qrg-shape-pick):hover {
  background: transparent;
  border-color: transparent;
  color: inherit;
  box-shadow: none;
}

/* ---------- Style studio (params panel) ---------- */
.style-studio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.style-studio-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: #07070f;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.style-studio-tab {
  appearance: none;
  margin: 0;
  padding: 10px 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #cfcfcf;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.style-studio-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.style-studio-tab.is-on {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--blue);
  box-shadow: 3px 3px 0 var(--blue);
}
.style-studio-pane[hidden] { display: none !important; }
.style-studio-pane {
  display: block;
  min-height: 180px;
  animation: style-studio-in 0.22s ease-out;
}
@keyframes style-studio-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.style-studio-hint {
  margin: 0 0 12px;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.45;
}
.style-studio-field > span,
.style-studio-colors > .qrg-color-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa0e8;
}
.style-studio .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.style-studio .span-2 { grid-column: 1 / -1; }
.style-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.style-preset {
  appearance: none;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.style-preset:hover {
  border-color: var(--yellow);
  box-shadow: 2px 2px 0 var(--blue);
  transform: translate(-1px, -1px);
}
.style-preset-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(135deg, var(--p1, #000) 0 50%, var(--p2, #2e3192) 50% 100%);
  flex: 0 0 auto;
}
.qrg-shape-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 6px;
  padding: 8px;
  max-height: min(420px, 52vh);
  overflow: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}
.qrg-shape-opt {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 74px;
  height: auto;
  margin: 0;
  padding: 8px 4px 6px;
  background: #000;
  color: #111;
  border: 2px solid #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
@keyframes qrg-shape-on {
  0% {
    transform: translate(0, 0) scale(0.92);
    box-shadow: none;
  }
  55% {
    transform: translate(-2px, -2px) scale(1.07);
    box-shadow: 0 0 0 2px var(--yellow), 6px 6px 0 var(--blue);
  }
  100% {
    transform: translate(-1px, -1px) scale(1);
    box-shadow: 0 0 0 2px var(--yellow), 4px 4px 0 var(--blue);
  }
}
.qrg-shape-stamp {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: #fff;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: background 0.18s ease;
}
.qrg-shape-opt svg {
  width: 22px;
  height: 22px;
  display: block;
  color: #111;
  transition: color 0.18s ease;
}
.qrg-shape-name {
  max-width: 100%;
  text-align: center;
  line-height: 1.1;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}
.qrg-shape-opt.is-on,
button.qrg-shape-opt.is-on:hover,
button.qrg-shape-opt.is-on:focus-visible {
  background: var(--yellow);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 2px var(--yellow), 4px 4px 0 var(--blue);
  transform: translate(-1px, -1px);
  z-index: 2;
  animation: qrg-shape-on 0.32s ease-out;
}
.qrg-shape-opt.is-on .qrg-shape-stamp {
  background: var(--blue);
}
.qrg-shape-opt.is-on svg {
  color: var(--yellow);
}
.qrg-shape-opt.is-on .qrg-shape-name {
  color: #0a0a0a;
}
.qrg-shape-opt.is-on::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  background: var(--blue);
  clip-path: polygon(0 52%, 38% 82%, 100% 18%, 100% 38%, 38% 100%, 0 70%);
  pointer-events: none;
}
.qrg-shape-opt:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.qrg-shape-opt.is-on:focus-visible {
  outline-color: var(--yellow);
}
@media (hover: hover) and (pointer: fine) {
  .qrg-shape-opt:hover:not(.is-on),
  button.qrg-shape-opt:hover:not(.is-on) {
    background: #000;
    border-color: #fff;
    color: #111;
    box-shadow: 2px 2px 0 #fff;
  }
  .qrg-shape-opt:hover:not(.is-on) .qrg-shape-stamp {
    background: #fff;
  }
  .qrg-shape-opt:hover:not(.is-on) svg {
    color: #111;
  }
  .qrg-shape-opt:hover:not(.is-on) .qrg-shape-name {
    color: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qrg-shape-opt.is-on,
  button.qrg-shape-opt.is-on:hover,
  button.qrg-shape-opt.is-on:focus-visible,
  .style-studio-pane {
    animation: none;
  }
}
@media (max-width: 600px) {
  .style-studio-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qrg-shape-pick { gap: 6px; padding: 6px; max-height: 46vh; }
  .qrg-shape-opt { min-height: 66px; padding: 5px 3px 4px; font-size: 10px; }
  .qrg-shape-stamp { width: 24px; height: 24px; }
  .qrg-shape-opt svg { width: 18px; height: 18px; }
}


/* --- requested: notifications + monobank embed --- */
.notif-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notif-bell-wrap.hidden {
  display: none;
}
.notif-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--blue);
  background: rgba(46, 49, 146, 0.18);
  color: var(--text);
  cursor: pointer;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
.notif-bell:hover {
  background: rgba(46, 49, 146, 0.32);
}
.notif-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #c62828;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}
.notif-bell-badge.hidden {
  display: none;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: min(280px, 88vw);
  max-height: 300px;
  overflow: auto;
  z-index: 80;
  background: #101018;
  border: 1px solid rgba(120, 130, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.notif-panel.hidden {
  display: none;
}
.notif-panel.is-mobile-sheet {
  z-index: 90;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.notif-panel-list {
  display: flex;
  flex-direction: column;
}
.notif-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.notif-item-title {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}
.notif-item-body {
  font-size: 11px;
  opacity: 0.72;
  line-height: 1.35;
}
.notif-empty {
  margin: 0;
  padding: 16px;
  font-size: 13px;
  opacity: 0.6;
  text-align: center;
}

.pay-success-overlay {
  z-index: 120000;
}
.pay-success-card {
  max-width: 420px;
  text-align: center;
}
.pay-success-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff200;
}
.pay-success-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}
.pay-success-body {
  margin: 0 0 16px;
  opacity: 0.8;
  line-height: 1.45;
}
.pay-success-body[hidden] {
  display: none;
}
.pay-success-meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  background: rgba(46, 49, 146, 0.16);
  border: 1px solid rgba(120, 130, 255, 0.28);
}
.pay-success-meter-label {
  font-size: 11px;
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff200;
}
.pay-success-meter-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.pay-success-meter.is-tariff .pay-success-meter-val {
  font-variant-numeric: normal;
}
.pay-success-tariff-name {
  line-height: 1.15;
}
.pay-success-ok {
  min-width: 140px;
}

.pay-embed-overlay {
  z-index: 110000;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: max(8px, env(safe-area-inset-top)) 0 max(8px, env(safe-area-inset-bottom));
}
.pay-embed-card.modal-card,
.modal-card.pay-embed-card {
  width: min(1240px, 98vw);
  max-width: min(1240px, 98vw);
  height: min(96dvh, 960px);
  max-height: min(96dvh, 960px);
  display: flex;
  flex-direction: column;
  padding: 10px 12px 8px;
  overflow: hidden;
  margin: auto;
  isolation: isolate;
  border-color: rgba(120, 180, 255, 0.35);
  background:
    radial-gradient(42% 55% at 12% 40%, rgba(255, 242, 0, 0.14), transparent 70%),
    radial-gradient(38% 50% at 92% 58%, rgba(70, 150, 255, 0.18), transparent 68%),
    radial-gradient(60% 40% at 50% 100%, rgba(255, 242, 0, 0.05), transparent 55%),
    linear-gradient(165deg, #070c18 0%, #0d1528 45%, #0a1222 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%, 100% 100%;
  background-position: 0% 40%, 100% 60%, 50% 100%, 0 0;
  animation: pay-aurora-drift 14s ease-in-out infinite alternate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 80px rgba(0, 0, 0, 0.55);
}
.pay-embed-card.modal-card::before,
.modal-card.pay-embed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  animation: pay-grid-breathe 8s ease-in-out infinite alternate;
}
.pay-embed-card.modal-card::after,
.modal-card.pay-embed-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 35%, rgba(255, 242, 0, 0.14), transparent 18%),
    radial-gradient(circle at 78% 62%, rgba(90, 170, 255, 0.16), transparent 20%),
    radial-gradient(circle at 55% 18%, rgba(255, 255, 255, 0.05), transparent 14%);
  animation: pay-orbs-float 11s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.pay-embed-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.pay-embed-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.pay-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  padding-right: 40px;
}
.pay-embed-card.modal-card > .pay-embed-head .modal-close,
.modal-card.pay-embed-card > .pay-embed-head .modal-close {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 6;
  padding: 2px 6px;
  margin: 0;
  line-height: 1;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
}
.pay-embed-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  background: linear-gradient(
    100deg,
    #fff 0%,
    #fff200 28%,
    #fff 52%,
    #9ec8ff 78%,
    #fff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pay-title-sheen 7s linear infinite;
}
.pay-embed-hint {
  margin: 0 0 10px;
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.4;
  flex: 0 0 auto;
}
.pay-embed-hint[hidden] {
  display: none !important;
  margin: 0;
}
.pay-fx-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
  padding: 2px;
  border-radius: 14px;
  background: conic-gradient(
    from var(--pay-gold-angle, 0deg),
    #fff200,
    #ffe566,
    #8a7a00,
    #fff8b0,
    #fff200,
    #ffe566,
    #fff200
  );
  box-shadow:
    0 0 0 1px rgba(255, 242, 0, 0.22),
    0 0 28px rgba(255, 242, 0, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.3);
  animation:
    pay-gold-spin 8s linear infinite,
    pay-gold-breathe 4.5s ease-in-out infinite,
    pay-fx-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.pay-fx-note[hidden],
.pay-fx-note.hidden {
  display: none !important;
}
.pay-fx-body {
  margin: 0 0 12px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  color: #fff;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
  flex: 0 0 auto;
  white-space: normal;
  overflow: visible;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 0 28px rgba(255, 255, 255, 0.1);
  animation: pay-fx-body-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pay-fx-body[hidden],
.pay-fx-body.hidden {
  display: none !important;
}
.pay-fx-google {
  min-width: 0;
  padding: 8px 10px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  color: #202124;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(0, 0, 0, 0.14);
}
.pay-fx-google::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 45%;
  height: 180%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 242, 0, 0.1) 48%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 242, 0, 0.08) 52%,
    transparent 65%
  );
  transform: skewX(-18deg);
  animation: pay-card-sheen 5.5s ease-in-out infinite;
  z-index: 1;
}
.pay-fx-gquote {
  margin: 0 0 2px;
  color: #000;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.pay-fx-gsep {
  color: #000;
  font-size: 28px;
  font-weight: 900;
  margin: 0 6px;
}
.pay-fx-gnum {
  font-size: 14px;
  font-weight: 900;
  color: #000;
  font-variant-numeric: tabular-nums;
}
.pay-fx-gname {
  font-size: 10px;
  font-weight: 800;
  color: #000;
}
.pay-fx-geq {
  color: #000;
  font-size: 13px;
  font-weight: 900;
  margin: 0 4px;
  vertical-align: baseline;
}
.pay-fx-gtabs {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.pay-fx-tab {
  min-height: 26px;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: #3c4043;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 16px;
}
.pay-fx-tab.is-on {
  background: #e8f0fe;
  color: #1967d2;
}
.pay-fx-chart {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
  line-height: 0;
}
.pay-fx-gchart {
  display: block;
  width: 100%;
  height: 100px;
  overflow: hidden;
  margin: 0;
}
.pay-fx-gguide {
  stroke: #e8eaed;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  fill: none;
}
.pay-fx-gfill {
  fill: rgba(19, 115, 51, 0.16);
  stroke: none;
}
.pay-fx-gline {
  fill: none;
  stroke: #0d652d;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pay-fx-gdot {
  fill: #0d652d;
  stroke: #fff;
  stroke-width: 1.5;
}
.pay-fx-go {
  display: block;
  flex: 0 0 auto;
  margin: 4px 0 0;
  padding: 0 2px;
  color: #000;
  font-size: 11.25px; /* 9px + 25% */
  font-weight: 700;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* UK tariff panel — black site backdrop + soft yellow glow (same gold shell) */
.pay-uk-tariff {
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 14px 14px 12px;
  border-radius: 12px;
  color: #f2f2f2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 242, 0, 0.14), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(46, 49, 146, 0.22), transparent 50%),
    #070707;
  box-shadow:
    inset 0 0 0 1px rgba(255, 242, 0, 0.18),
    inset 0 0 28px rgba(255, 242, 0, 0.05),
    0 0 24px rgba(255, 242, 0, 0.12);
  animation:
    pay-uk-panel-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both,
    pay-uk-glow 4.8s ease-in-out infinite 0.65s;
}
.pay-uk-tariff::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 242, 0, 0.07) 50%,
    transparent 60%
  );
  animation: pay-uk-sheen 5.5s ease-in-out infinite;
}
.pay-uk-tariff > * {
  position: relative;
  z-index: 1;
}
.pay-uk-tariff[hidden],
.pay-uk-tariff.hidden {
  display: none !important;
}
.pay-embed-overlay.is-uk-pay .pay-fx-google {
  display: none !important;
}
.pay-embed-overlay.is-uk-pay .pay-uk-tariff {
  display: flex;
}
.pay-embed-overlay.is-uk-pay .pay-fx-body {
  display: none !important;
}
.pay-uk-noterm {
  margin: 0;
  color: var(--yellow, #fff200);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  animation: pay-uk-line-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.pay-uk-name {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 242, 0, 0.28);
  animation: pay-uk-line-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}
.pay-uk-pitch {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 242, 0, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #f2f2f2;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
  box-shadow: 0 0 16px rgba(255, 242, 0, 0.08);
}
.pay-uk-pitch.is-anim {
  animation: pay-uk-pitch-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pay-uk-duo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  align-items: stretch;
  padding-top: 4px;
  animation: pay-uk-line-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}
.pay-uk-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid #fff200;
  background: transparent;
  color: #fff200;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  cursor: pointer;
  position: relative;
}
.pay-uk-btn.is-month:hover,
.pay-uk-btn.is-month:focus-visible {
  background: rgba(255, 242, 0, 0.12);
}
.pay-uk-btn.is-year {
  padding-top: 16px;
  padding-bottom: 12px;
  background: #fff200;
  color: #111;
  box-shadow: 0 0 0 1px #fff inset, 0 8px 22px rgba(255, 242, 0, 0.18);
}
.pay-uk-btn.is-year:hover,
.pay-uk-btn.is-year:focus-visible {
  background: #ffe44a;
}
.pay-uk-btn.is-on {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.pay-uk-off {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 7px;
  background: #2e3192;
  color: #fff200;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}
@keyframes pay-uk-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes pay-uk-line-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pay-uk-pitch-in {
  from {
    opacity: 0;
    transform: translateY(6px);
    box-shadow: 0 0 0 rgba(255, 242, 0, 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 16px rgba(255, 242, 0, 0.08);
  }
}
@keyframes pay-uk-glow {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 242, 0, 0.16),
      inset 0 0 24px rgba(255, 242, 0, 0.04),
      0 0 18px rgba(255, 242, 0, 0.08);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 242, 0, 0.32),
      inset 0 0 36px rgba(255, 242, 0, 0.1),
      0 0 36px rgba(255, 242, 0, 0.22);
  }
}
@keyframes pay-uk-sheen {
  0%,
  100% {
    transform: translateX(-18%) rotate(8deg);
    opacity: 0.35;
  }
  50% {
    transform: translateX(18%) rotate(8deg);
    opacity: 0.7;
  }
}
@media (min-width: 1101px) {
  .pay-embed-overlay.is-uk-pay .pay-uk-tariff {
    padding: 18px 16px 14px;
    gap: 12px;
  }
  .pay-embed-overlay.is-uk-pay .pay-uk-pitch {
    font-size: 14px;
  }
}
@media (max-width: 1100px) {
  .pay-embed-overlay.is-uk-pay .pay-uk-tariff {
    padding: 10px 10px 8px;
    gap: 8px;
  }
  .pay-uk-name {
    font-size: 1.1rem;
  }
  .pay-uk-pitch {
    font-size: 12px;
    padding: 8px 10px;
  }
  .pay-uk-duo {
    gap: 6px;
  }
  .pay-uk-btn {
    min-height: 40px;
    font-size: 12px;
    padding: 8px 10px;
  }
}

.pay-mono-scroll {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.pay-embed-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  max-height: none;
  border: 1px solid rgba(120, 180, 255, 0.4);
  border-radius: 14px;
  background:
    radial-gradient(100% 70% at 50% -5%, rgba(120, 190, 255, 0.3), transparent 55%),
    radial-gradient(80% 60% at 100% 100%, rgba(20, 70, 200, 0.16), transparent 55%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 30%, #ffffff 100%);
  overflow: auto;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(180, 210, 255, 0.18) inset,
    0 0 0 2px rgba(30, 70, 160, 0.18),
    0 0 40px rgba(40, 110, 255, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.35);
  animation: pay-fx-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both, pay-cobalt-breathe 5s ease-in-out infinite;
}
.pay-embed-frame-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 35%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(120, 190, 255, 0.16),
    transparent
  );
  animation: pay-cobalt-scan 4.5s ease-in-out infinite;
}
.pay-embed-frame-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 0 36px rgba(60, 130, 255, 0.07);
}
.pay-embed-overlay.is-en-fx .pay-embed-frame-wrap {
  min-height: 0;
}

/* Desktop FX pay: layout locked — Gold Signal × Cobalt Vault (atmosphere from base) */
@media (min-width: 1101px) {
  .pay-embed-overlay.is-en-fx .pay-embed-card.modal-card,
  .pay-embed-overlay.is-en-fx .modal-card.pay-embed-card {
    width: min(1280px, 98vw);
    max-width: min(1280px, 98vw);
    height: min(96dvh, 960px);
    max-height: min(96dvh, 960px);
    padding: 8px 12px 6px;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-head {
    margin-bottom: 2px;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-head h2 {
    letter-spacing: 0.08em;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-main {
    display: grid;
    grid-template-columns: minmax(460px, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    min-height: 0;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-side {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    gap: 0;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 32px;
    position: relative;
  }
  .pay-embed-overlay.is-en-fx .pay-fx-body {
    margin: 0 auto 18px;
    padding: 0 12px;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(1.28rem, 1.95vw, 1.72rem);
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: 0.015em;
    white-space: normal;
    text-align: center !important;
    text-wrap: balance;
  }
  /* Gold Signal stage — chart */
  .pay-embed-overlay.is-en-fx .pay-fx-note {
    width: 100%;
    max-width: none;
    margin: 0;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 18px;
    box-shadow:
      0 0 0 1px rgba(255, 242, 0, 0.25),
      0 0 36px rgba(255, 242, 0, 0.32),
      0 0 72px rgba(255, 242, 0, 0.12),
      0 24px 50px rgba(0, 0, 0, 0.4);
  }
  .pay-embed-overlay.is-en-fx .pay-fx-note::before,
  .pay-embed-overlay.is-en-fx .pay-fx-note::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 2;
    pointer-events: none;
    border-color: #fff200;
    border-style: solid;
    opacity: 0.95;
    filter: drop-shadow(0 0 6px rgba(255, 242, 0, 0.7));
    animation: pay-corner-pulse 2.8s ease-in-out infinite;
  }
  .pay-embed-overlay.is-en-fx .pay-fx-note::before {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
  }
  .pay-embed-overlay.is-en-fx .pay-fx-note::after {
    right: 10px;
    bottom: 10px;
    border-width: 0 2px 2px 0;
    animation-delay: 1.4s;
  }
  .pay-embed-overlay.is-en-fx .pay-fx-google {
    padding: 18px 18px 14px;
    border-radius: 15px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 14px 32px rgba(0, 0, 0, 0.18);
  }
  .pay-embed-overlay.is-en-fx .pay-fx-gquote {
    white-space: normal;
    line-height: 1.12;
    margin: 0 0 8px;
    overflow: visible;
    text-overflow: unset;
    background: linear-gradient(180deg, #111 0%, #2a2a2a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgba(255, 242, 0, 0.15));
  }
  .pay-embed-overlay.is-en-fx .pay-fx-gnum,
  .pay-embed-overlay.is-en-fx .pay-fx-gname,
  .pay-embed-overlay.is-en-fx .pay-fx-geq {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .pay-embed-overlay.is-en-fx .pay-fx-gnum {
    font-size: 54px;
  }
  .pay-embed-overlay.is-en-fx .pay-fx-gname {
    font-size: 36px;
  }
  .pay-embed-overlay.is-en-fx .pay-fx-geq {
    font-size: 48px;
    margin: 0 10px;
  }
  .pay-embed-overlay.is-en-fx .pay-fx-gchart {
    height: 188px;
    filter: drop-shadow(0 8px 16px rgba(13, 101, 45, 0.18));
  }
  .pay-embed-overlay.is-en-fx .pay-fx-tab.is-on {
    background: linear-gradient(180deg, #fff8b0, #fff200);
    color: #1a1a1a;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(255, 242, 0, 0.35);
  }
  .pay-embed-overlay.is-en-fx .pay-fx-go {
    color: #111;
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
    white-space: normal;
    text-decoration-color: rgba(255, 242, 0, 0.85);
    text-underline-offset: 3px;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
    justify-content: center;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-back {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.72rem;
    font-weight: 500;
    min-height: 22px;
    padding: 2px 6px;
    letter-spacing: 0.04em;
    opacity: 1;
    border: 0;
    background: transparent;
    text-decoration: none !important;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-back:hover {
    color: #fff !important;
    letter-spacing: 0.08em;
    text-decoration: none !important;
  }
  /* Cobalt Vault — payment */
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap {
    width: 100%;
    height: 100%;
    min-height: 0;
    align-self: stretch;
    overflow-x: hidden;
    overflow-y: scroll;
    border-radius: 16px;
    border: 1px solid rgba(120, 180, 255, 0.4);
    box-shadow:
      0 0 0 1px rgba(180, 210, 255, 0.2) inset,
      0 0 0 3px rgba(30, 70, 160, 0.25),
      0 0 56px rgba(40, 110, 255, 0.38),
      0 28px 56px rgba(0, 0, 0, 0.45);
    background:
      radial-gradient(100% 70% at 50% -5%, rgba(120, 190, 255, 0.35), transparent 55%),
      radial-gradient(80% 60% at 100% 100%, rgba(20, 70, 200, 0.22), transparent 55%),
      linear-gradient(180deg, #f5f9ff 0%, #ffffff 30%, #ffffff 100%);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 24, 32, 0.22) transparent;
    animation: pay-fx-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both, pay-cobalt-breathe-lg 5s ease-in-out infinite;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -40%;
    height: 35%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(120, 190, 255, 0.14),
      transparent
    );
    animation: pay-cobalt-scan 4.5s ease-in-out infinite;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.45),
      inset 0 0 40px rgba(60, 130, 255, 0.08);
  }
  /* Quiet ink filament — almost invisible until hover */
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::-webkit-scrollbar {
    width: 5px;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::-webkit-scrollbar-track {
    background: transparent;
    margin: 14px 0;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::-webkit-scrollbar-thumb {
    background: rgba(18, 22, 30, 0.18);
    border-radius: 99px;
    border: 0;
    box-shadow: none;
    transition: background 0.2s ease;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 22, 30, 0.38);
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::-webkit-scrollbar-corner {
    background: transparent;
  }
  .pay-embed-overlay.is-en-fx .pay-mono-scroll {
    width: 128%;
    margin-left: -14%;
    min-height: 1180px;
    height: 1180px;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap iframe {
    position: static;
    left: auto;
    top: auto;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 1180px;
    border: 0;
    transform: none;
  }
}

@property --pay-gold-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes pay-gold-spin {
  to {
    --pay-gold-angle: 360deg;
  }
}
@keyframes pay-aurora-drift {
  0% {
    background-position: 0% 40%, 100% 60%, 50% 100%, 0 0;
  }
  50% {
    background-position: 30% 55%, 70% 35%, 50% 100%, 0 0;
  }
  100% {
    background-position: 18% 28%, 82% 72%, 50% 100%, 0 0;
  }
}
@keyframes pay-grid-breathe {
  from {
    opacity: 0.28;
  }
  to {
    opacity: 0.48;
  }
}
@keyframes pay-orbs-float {
  from {
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -3%, 0) scale(1.06);
  }
}
@keyframes pay-title-sheen {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
@keyframes pay-line-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
@keyframes pay-gold-breathe {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(255, 242, 0, 0.22),
      0 0 28px rgba(255, 242, 0, 0.22),
      0 12px 28px rgba(0, 0, 0, 0.3);
  }
  50% {
    filter: brightness(1.08);
    box-shadow:
      0 0 0 1px rgba(255, 242, 0, 0.4),
      0 0 48px rgba(255, 242, 0, 0.4),
      0 16px 36px rgba(0, 0, 0, 0.32);
  }
}
@keyframes pay-corner-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes pay-card-sheen {
  0%,
  55% {
    transform: skewX(-18deg) translateX(-140%);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  75% {
    transform: skewX(-18deg) translateX(280%);
    opacity: 0;
  }
  100% {
    transform: skewX(-18deg) translateX(280%);
    opacity: 0;
  }
}
@keyframes pay-cobalt-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(180, 210, 255, 0.18) inset,
      0 0 0 2px rgba(30, 70, 160, 0.18),
      0 0 40px rgba(40, 110, 255, 0.28),
      0 18px 40px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(180, 210, 255, 0.28) inset,
      0 0 0 2px rgba(30, 70, 160, 0.28),
      0 0 58px rgba(40, 110, 255, 0.42),
      0 18px 40px rgba(0, 0, 0, 0.35);
  }
}
@keyframes pay-cobalt-breathe-lg {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(180, 210, 255, 0.2) inset,
      0 0 0 3px rgba(30, 70, 160, 0.25),
      0 0 56px rgba(40, 110, 255, 0.38),
      0 28px 56px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(180, 210, 255, 0.32) inset,
      0 0 0 3px rgba(30, 70, 160, 0.35),
      0 0 72px rgba(40, 110, 255, 0.52),
      0 28px 56px rgba(0, 0, 0, 0.45);
  }
}
@keyframes pay-cobalt-scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(280%);
    opacity: 0.7;
  }
}
@keyframes pay-fx-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes pay-fx-body-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes pay-fx-rule-draw {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: min(220px, 42%);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pay-embed-card.modal-card,
  .modal-card.pay-embed-card,
  .pay-embed-card.modal-card::before,
  .modal-card.pay-embed-card::before,
  .pay-embed-card.modal-card::after,
  .modal-card.pay-embed-card::after,
  .pay-embed-head h2,
  .pay-fx-note,
  .pay-fx-body,
  .pay-fx-google::after,
  .pay-embed-frame-wrap,
  .pay-embed-frame-wrap::before {
    animation: none !important;
  }
}
.pay-embed-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
.pay-embed-actions {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 0;
  min-height: 40px;
  background: transparent;
  position: relative;
  z-index: 3;
}
.pay-embed-back {
  width: auto;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  transition: none;
  transform: none;
  filter: none;
  outline: none;
}
.pay-embed-back:hover,
.pay-embed-back:focus,
.pay-embed-back:active {
  background: transparent;
  color: #fff;
  filter: none;
  transform: none;
  opacity: 1;
  box-shadow: none;
}
/* Phone + tablet: full viewport width */
@media (max-width: 1100px) {
  .pay-embed-overlay {
    justify-content: stretch;
    padding: 0;
    align-items: stretch;
    overflow: hidden;
    height: 100dvh;
    max-height: 100dvh;
  }
  .pay-embed-card.modal-card,
  .modal-card.pay-embed-card {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding: max(4px, env(safe-area-inset-top)) 10px 0;
    margin: 0;
  }
  .pay-embed-head {
    padding-right: 36px;
    margin-bottom: 2px;
  }
  .pay-embed-card.modal-card > .pay-embed-head .modal-close,
  .modal-card.pay-embed-card > .pay-embed-head .modal-close {
    top: 0;
    right: 0;
    padding: 0 2px;
    font-size: 20px;
    line-height: 1;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
  }
  .pay-embed-head h2 {
    padding-right: 4px;
    max-width: 100%;
  }
  .pay-embed-frame-wrap,
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    width: 100%;
    overflow: hidden;
  }
  .pay-embed-frame-wrap iframe {
    min-height: 0;
    width: 100%;
    height: 100%;
  }
  .pay-fx-body {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 0.95rem;
    line-height: 1.35;
    text-align: center !important;
    color: #fff;
  }
  .pay-fx-google {
    padding: 6px 8px 4px;
    gap: 0;
  }
  .pay-fx-gquote {
    font-size: inherit;
  }
  .pay-fx-gnum {
    font-size: 17px;
  }
  .pay-fx-gname {
    font-size: 12px;
  }
  .pay-fx-geq {
    font-size: 15px;
    margin: 0 4px;
  }
  .pay-fx-gtabs {
    margin: 0;
    min-height: 0;
  }
  .pay-fx-tab {
    min-height: 22px;
    padding: 1px 7px;
    font-size: 11px;
  }
  .pay-fx-gchart {
    height: 88px;
    margin-top: -8px;
  }
  .pay-fx-chart {
    gap: 1px;
  }
  .pay-fx-go {
    color: #111;
    font-size: 10.6px;
    white-space: normal;
    overflow: visible;
    text-align: center;
    text-decoration-color: rgba(255, 242, 0, 0.85);
  }
  .pay-embed-side {
    display: contents;
  }
  /* Atmosphere comes from base pay-embed styles — keep mobile composition */
  .pay-fx-body {
    order: 1;
    flex: 0 0 auto;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 0 4px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center !important;
    color: #fff;
    background: none;
    border: 0;
  }
  .pay-fx-note {
    order: 2;
    flex: 0 0 auto;
  }
  .pay-embed-frame-wrap,
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap {
    order: 3;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    width: 100%;
    overflow: auto;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap {
    border-radius: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 24, 32, 0.22) transparent;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::-webkit-scrollbar {
    width: 5px;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::-webkit-scrollbar-track {
    background: transparent;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap::-webkit-scrollbar-thumb {
    background: rgba(18, 22, 30, 0.18);
    border-radius: 99px;
  }
  .pay-embed-overlay.is-en-fx .pay-mono-scroll {
    width: 100% !important;
    margin-left: 0 !important;
    min-height: 100% !important;
    height: 100% !important;
  }
  .pay-embed-overlay.is-en-fx .pay-embed-frame-wrap iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    transform: none !important;
    position: static !important;
    left: auto !important;
  }
  .pay-embed-actions {
    order: 4;
    position: relative;
    bottom: auto;
    margin-top: 0;
    background: transparent;
    padding: 8px 0 max(10px, env(safe-area-inset-bottom));
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
  }
  .pay-embed-back {
    font-size: 0.72rem;
  }
}

/* ——— Mineral tariffs ——— */
.dash-account-stat.is-tariff {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem 0.55rem;
  min-width: 9.5rem;
}
.dash-account-stat.is-tariff:not([data-tariff]),
.dash-account-stat.is-tariff[data-tariff=""] {
  grid-template-columns: 1fr;
}
.dash-tariff-gem {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
}
.dash-tariff-gem[hidden],
.dash-tariff-gem:empty,
.dash-tab-bal-chip[hidden],
.dash-tab-ico-ingot,
.qrg-ingot {
  display: none !important;
}
.dash-account-stat.is-tariff.is-due {
  border-color: #f59e0b;
  animation: qrg-tariff-due-pulse 1.8s ease-in-out infinite;
}
.dash-account-stat.is-tariff .dash-account-stat-line strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.dash-account-stat.is-tariff .dash-account-stat-line em {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-tab-bal-chip.is-due {
  background: #f59e0b;
  color: #111;
}

@keyframes qrg-tariff-due-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.dash-tariff-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 0 !important;
}
@media (min-width: 1180px) {
  .dash-tariff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dash-tariff-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px;
  }
}

.dash-tariff-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: stretch;
  height: 100%;
}
.dash-tariff-cell.is-on {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  height: auto;
}
@media (min-width: 700px) {
  .dash-tariff-cell.is-on {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .dash-tariff-cell.is-on .dash-tariff-paydock {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.dash-tariff-paydock {
  margin-top: 6px;
}
.dash-tariff-paydock[hidden] { display: none !important; }
.dash-expire-noterm .dash-expire-label {
  color: var(--yellow, #fff200);
  margin-bottom: 0;
  font-weight: 700;
}
.dash-tariff-noterm {
  margin: 0 0 8px;
  color: var(--yellow, #fff200);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.dash-tariff-pitch {
  margin: 0 0 8px;
  padding: 9px 11px;
  background: #fff;
  color: #111;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  border: 1px solid #fff200;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dash-tariff-paydock .dash-pack-pay {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #fff200;
  border: 2px solid #fff200;
  color: #111 !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: none;
}
.dash-tariff-paydock .dash-pack-pay:hover,
.dash-tariff-paydock .dash-pack-pay:focus-visible {
  background: #ffe44a;
  border-color: #fff;
  color: #111 !important;
}
.dash-tariff-yearchip {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  background: #fff200;
  color: #111;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.dash-tariff-duo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  align-items: stretch;
  padding-top: 10px;
}
.dash-tariff-paydock .dash-pack-pay.is-month {
  background: transparent;
  border: 2px solid #fff200;
  color: #fff200 !important;
  position: relative;
}
.dash-tariff-paydock .dash-pack-pay.is-month:hover,
.dash-tariff-paydock .dash-pack-pay.is-month:focus-visible {
  background: rgba(255, 242, 0, 0.12);
  color: #fff200 !important;
}
.dash-tariff-paydock .dash-pack-pay.is-year {
  position: relative;
  padding-top: 16px;
  padding-bottom: 12px;
  box-shadow: 0 0 0 1px #fff inset, 0 8px 22px rgba(255, 242, 0, 0.18);
}
.dash-tariff-off {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 7px;
  background: #2e3192;
  color: #fff200;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dash-tariff-paydock .dash-pack-pay.is-year s {
  display: block;
  margin-top: 2px;
  color: #111;
  opacity: 0.55;
  font-size: 11px;
  font-weight: 700;
}
.dash-tariff-due-alt {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid #fff200;
  background: transparent;
  color: #fff200;
  cursor: pointer;
  font-weight: 800;
}
.dash-tariff-due-alt[hidden] { display: none !important; }
.dash-tariff-grid button.dash-tariff-card .dash-tariff-price b.dash-tariff-yearchip {
  font-size: 9px;
}
.dash-tariff-fold {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  color: #c8c8c8;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-align: center;
  cursor: pointer;
}
.dash-tariff-fold:hover,
.dash-tariff-fold:focus-visible {
  color: #fff200;
}

.dash-tariff-detail,
.dash-tariff-detail.is-inline-hidden {
  display: none !important;
}

.dash-tariff-grid button.dash-pack-btn,
.dash-tariff-grid button.dash-tariff-card {
  --tint-a: rgba(255, 242, 0, 0.08);
  --tint-b: rgba(46, 49, 146, 0.16);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 3px 10px;
  align-items: center;
  text-align: left;
  padding: 12px 12px 13px;
  min-height: 92px;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  color: #fff;
  border: 1px solid rgba(255, 242, 0, 0.22);
  transform: none !important;
  background:
    radial-gradient(120% 80% at 8% 0%, var(--tint-a), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, var(--tint-b), transparent 52%),
    #101018;
}
.dash-tariff-grid button.dash-tariff-card.is-quartz {
  --tint-a: rgba(196, 181, 253, 0.16);
  --tint-b: rgba(124, 58, 237, 0.1);
}
.dash-tariff-grid button.dash-tariff-card.is-silver {
  --tint-a: rgba(226, 232, 240, 0.12);
  --tint-b: rgba(148, 163, 184, 0.1);
}
.dash-tariff-grid button.dash-tariff-card.is-gold {
  --tint-a: rgba(255, 242, 0, 0.16);
  --tint-b: rgba(251, 191, 36, 0.1);
}
.dash-tariff-grid button.dash-tariff-card.is-ruby {
  --tint-a: rgba(251, 113, 133, 0.16);
  --tint-b: rgba(225, 29, 72, 0.1);
}
.dash-tariff-grid button.dash-tariff-card.is-platinum {
  --tint-a: rgba(241, 245, 249, 0.12);
  --tint-b: rgba(148, 163, 184, 0.12);
}
.dash-tariff-grid button.dash-tariff-card.is-emerald {
  --tint-a: rgba(52, 211, 153, 0.14);
  --tint-b: rgba(16, 185, 129, 0.1);
}
.dash-tariff-grid button.dash-tariff-card.is-diamond {
  --tint-a: rgba(125, 211, 252, 0.16);
  --tint-b: rgba(56, 189, 248, 0.1);
}
.dash-tariff-grid button.dash-tariff-card.is-aether {
  --tint-a: rgba(196, 181, 253, 0.22);
  --tint-b: rgba(56, 189, 248, 0.16);
}
.dash-tariff-grid button.dash-tariff-card .qrg-gem {
  grid-row: 1 / span 3;
  align-self: center;
}
.dash-tariff-grid button.dash-tariff-card strong,
.dash-tariff-grid button.dash-tariff-card span,
.dash-tariff-grid button.dash-tariff-card small,
.dash-tariff-grid button.dash-tariff-card em,
.dash-tariff-grid button.dash-tariff-card .dash-tariff-price,
.dash-tariff-grid button.dash-tariff-card .dash-tariff-price i,
.dash-tariff-grid button.dash-tariff-card .dash-tariff-slots {
  color: #fff !important;
  background: transparent !important;
}
.dash-tariff-grid button.dash-tariff-card strong {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.dash-tariff-grid button.dash-tariff-card .dash-tariff-price {
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
  color: #fff200 !important;
}
.dash-tariff-grid button.dash-tariff-card .dash-tariff-price i {
  font-style: normal;
  font-size: 0.72rem;
  margin-left: 3px;
  color: #fff200 !important;
  opacity: 1;
}
.dash-tariff-grid button.dash-tariff-card .dash-tariff-slots {
  grid-column: 2;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: #fff !important;
}
.dash-tariff-grid button.dash-tariff-card.is-on,
.dash-tariff-grid button.dash-pack-btn.is-on,
.dash-tariff-grid button.dash-pack-btn.is-on:hover {
  background:
    radial-gradient(120% 80% at 8% 0%, var(--tint-a), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, var(--tint-b), transparent 52%),
    #101018 !important;
  color: #fff !important;
  border-color: #fff200;
  box-shadow: 0 0 0 1px #fff200, 8px 8px 0 rgba(46, 49, 146, 0.55);
}
.dash-tariff-grid button.dash-tariff-card.is-mine {
  outline: 0;
}
.dash-tariff-grid button.dash-tariff-card:hover,
.dash-tariff-grid button.dash-tariff-card:focus-visible {
  transform: none !important;
  border-color: #fff200;
}
.dash-tariff-inf {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Phone: one tariff per row, cheapest on top, price rising downward. */
@media (max-width: 760px) {
  .dash-tariff-grid button.dash-pack-btn,
  .dash-tariff-grid button.dash-tariff-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 58px;
    padding: 8px 10px;
    gap: 1px 10px;
  }
  .dash-tariff-grid button.dash-tariff-card .qrg-gem {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
  }
  .dash-tariff-grid button.dash-tariff-card strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .dash-tariff-grid button.dash-tariff-card .dash-tariff-slots {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
    line-height: 1.25;
  }
  .dash-tariff-grid button.dash-tariff-card .dash-tariff-price {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    white-space: nowrap;
    font-size: 0.95rem;
    text-align: right;
  }
  .dash-tariff-grid button.dash-tariff-card .dash-tariff-price i {
    display: block;
    margin-left: 0;
    font-size: 0.68rem;
  }
  .dash-tariff-grid button.dash-tariff-card .dash-tariff-price b.dash-tariff-yearchip {
    display: block;
    margin: 4px 0 0 auto;
    width: max-content;
    font-size: 9px;
  }
  .dash-tariff-duo {
    grid-template-columns: 1fr 1.15fr;
    gap: 8px;
  }
  .dash-tariff-cell.is-on {
    grid-column: 1 / -1;
  }
}

.qrg-gem {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
}
.qrg-gem--chip { width: 36px; height: 36px; }
.qrg-gem--card { width: 48px; height: 48px; }
.qrg-gem--hero { width: 86px; height: 86px; }
.qrg-gem-stone,
.qrg-gem-facet,
.qrg-gem-spark,
.qrg-gem-halo,
.qrg-gem-cut {
  position: absolute;
  inset: 12%;
}
.qrg-gem-halo {
  inset: 0;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}
.qrg-gem-stone {
  clip-path: polygon(50% 0, 100% 28%, 82% 100%, 18% 100%, 0 28%);
  background: linear-gradient(145deg, #fff, #aaa);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4);
  animation: qrg-gem-breathe 3.6s ease-in-out infinite;
}
.qrg-gem-facet {
  clip-path: polygon(50% 8%, 78% 32%, 50% 52%, 22% 32%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
  mix-blend-mode: screen;
  animation: qrg-gem-facet 2.8s linear infinite;
}
.qrg-gem-facet-b {
  clip-path: polygon(50% 48%, 78% 72%, 50% 96%, 22% 72%);
  animation-duration: 3.6s;
  animation-direction: reverse;
}
.qrg-gem-cut {
  inset: 22%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, rgba(255,255,255,0.55), transparent 60%);
  mix-blend-mode: overlay;
  animation: qrg-gem-cut 4s ease-in-out infinite;
}
.qrg-gem-spark {
  width: 7px;
  height: 7px;
  inset: auto;
  top: 8%;
  right: 18%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.8);
  animation: qrg-gem-spark 1.8s ease-in-out infinite;
}
.qrg-gem-spark-b {
  top: auto;
  right: auto;
  bottom: 14%;
  left: 16%;
  animation-delay: 0.7s;
}
.qrg-gem-spark-c { top: 42%; right: 6%; animation-delay: 0.3s; }
.qrg-gem-spark-d { top: 70%; right: 28%; animation-delay: 1.1s; }
.qrg-gem-spark-e { top: 18%; left: 10%; right: auto; animation-delay: 0.15s; }
.qrg-gem-flare {
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle, rgba(255, 242, 0, 0.35), transparent 62%);
  animation: qrg-gem-flare 1.6s ease-in-out infinite;
  pointer-events: none;
}
.qrg-gem-prism {
  position: absolute;
  inset: 8%;
  background: conic-gradient(from 0deg, #fff, #7dd3fc, #c4b5fd, #fff200, #fff);
  mix-blend-mode: overlay;
  opacity: 0.35;
  clip-path: polygon(50% 0, 100% 38%, 76% 100%, 24% 100%, 0 38%);
  animation: qrg-gem-prism 2.2s linear infinite;
}
@keyframes qrg-gem-flare {
  0%, 100% { opacity: 0.2; transform: scale(0.92); }
  50% { opacity: 0.7; transform: scale(1.08); }
}
@keyframes qrg-gem-prism {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.qrg-gem--rank-1 .qrg-gem-stone { animation-duration: 5.4s; }
.qrg-gem--rank-2 .qrg-gem-stone { animation-duration: 4.2s; }
.qrg-gem--rank-3 .qrg-gem-stone { animation-duration: 3.2s; }
.qrg-gem--rank-4 .qrg-gem-stone { animation-duration: 2.4s; }
.qrg-gem--rank-5 .qrg-gem-stone { animation-duration: 1.8s; }
.qrg-gem--rank-6 .qrg-gem-stone { animation-duration: 1.5s; }
.qrg-gem--rank-7 .qrg-gem-stone { animation-duration: 1.2s; }
.qrg-gem--rank-8 .qrg-gem-stone,
.qrg-gem--rank-8 .qrg-inf { animation-duration: 1s; }
.qrg-gem--rank-5 .qrg-gem-halo,
.qrg-gem--rank-6 .qrg-gem-halo,
.qrg-gem--rank-7 .qrg-gem-halo { opacity: 0.7; }
.qrg-gem--rank-6,
.qrg-gem--rank-7,
.qrg-gem--rank-8 { filter: drop-shadow(0 0 8px rgba(255, 242, 0, 0.35)); }

.qrg-ingot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 28px;
  flex: none;
}
.qrg-ingot--chip { width: 28px; height: 22px; }
.qrg-ingot--card { width: 44px; height: 32px; }
.qrg-ingot--hero { width: 78px; height: 56px; }
.qrg-ingot-plate,
.qrg-ingot-bar,
.qrg-ingot-top,
.qrg-ingot-ridge,
.qrg-ingot-shine {
  position: absolute;
}
.qrg-ingot-plate {
  inset: 8% 4% 4%;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px #2e3192;
}
.qrg-ingot-bar {
  left: 8%;
  right: 8%;
  top: 40%;
  bottom: 14%;
  background: #0a0a0a;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  box-shadow: inset 0 0 0 1px #fff200;
}
.qrg-ingot-top {
  left: 14%;
  right: 14%;
  top: 18%;
  height: 30%;
  background: #111;
  clip-path: polygon(10% 100%, 90% 100%, 76% 0, 24% 0);
  box-shadow: inset 0 0 0 1px #fff200;
}
.qrg-ingot-ridge {
  left: 36%;
  right: 36%;
  top: 50%;
  height: 16%;
  border: 1.5px solid #fff200;
  background: #0a0a0a;
}
.qrg-ingot-shine {
  left: 20%;
  top: 22%;
  width: 16%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 242, 0, 0.55), transparent);
  transform: skewX(-16deg);
  animation: qrg-ingot-shine 2.8s ease-in-out infinite;
}
@keyframes qrg-ingot-shine {
  0%, 100% { opacity: 0.2; transform: skewX(-16deg) translateX(0); }
  50% { opacity: 0.85; transform: skewX(-16deg) translateX(7px); }
}
.dash-tab-bal-chip.is-ingot {
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  min-width: 0;
  display: inline-grid;
  place-items: center;
}
.dash-tab-bal-chip.is-due:not(.is-ingot) {
  background: #3a2a0a;
  color: #fff200;
  border-color: #fff200;
}

.qrg-gem--quartz .qrg-gem-halo {
  background: radial-gradient(ellipse at 50% 20%, rgba(196, 181, 253, 0.4), transparent 68%);
  animation: qrg-q-halo 6s ease-in-out infinite;
}
.qrg-gem--quartz .qrg-gem-stone {
  clip-path: polygon(50% 0, 78% 16%, 90% 52%, 76% 100%, 24% 100%, 10% 52%, 22% 16%);
  background: linear-gradient(180deg, #f5f3ff 0%, #c4b5fd 38%, #6d28d9 100%);
  animation: qrg-q-rock 5.6s ease-in-out infinite;
}
.qrg-gem--quartz .qrg-gem-qvein,
.qrg-gem--quartz .qrg-gem-qtip {
  position: absolute;
  pointer-events: none;
}
.qrg-gem--quartz .qrg-gem-qvein {
  left: 46%;
  width: 8%;
  top: 8%;
  bottom: 18%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent);
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
  animation: qrg-q-vein 3.8s linear infinite;
}
.qrg-gem--quartz .qrg-gem-qtip {
  left: 28%;
  right: 28%;
  top: 0;
  height: 22%;
  background: rgba(255, 255, 255, 0.35);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
@keyframes qrg-q-rock {
  0%, 100% { transform: rotate(-4deg) translateX(0); }
  50% { transform: rotate(4deg) translateX(1px); }
}
@keyframes qrg-q-vein {
  0% { transform: translateY(-40%); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: translateY(50%); opacity: 0; }
}
@keyframes qrg-q-halo {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.5; }
}

.qrg-gem--silver .qrg-gem-halo {
  background: radial-gradient(circle, rgba(226, 232, 240, 0.28), transparent 72%);
  animation: qrg-s-halo 3.2s ease-in-out infinite;
}
.qrg-gem--silver .qrg-gem-stone {
  clip-path: polygon(50% 0, 61% 28%, 98% 28%, 68% 50%, 82% 92%, 50% 68%, 18% 92%, 32% 50%, 2% 28%, 39% 28%);
  background: linear-gradient(135deg, #e2e8f0, #94a3b8 40%, #334155);
  animation: qrg-s-mercury 2.8s ease-in-out infinite;
}
.qrg-gem--silver .qrg-gem-sripple,
.qrg-gem--silver .qrg-gem-sglint {
  position: absolute;
  pointer-events: none;
}
.qrg-gem--silver .qrg-gem-sripple {
  inset: 18%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  animation: qrg-s-ripple 2.2s ease-out infinite;
}
.qrg-gem--silver .qrg-gem-sglint {
  width: 10px;
  height: 10px;
  left: 50%;
  top: 50%;
  margin: -5px 0 0 -5px;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.85);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: qrg-s-glint 2.8s linear infinite;
}
@keyframes qrg-s-mercury {
  0%, 100% { transform: rotate(0deg) scale(1, 1); filter: brightness(1); }
  30% { transform: rotate(-8deg) scale(1.08, 0.9); filter: brightness(1.25); }
  62% { transform: rotate(10deg) scale(0.9, 1.1); filter: brightness(1.4); }
}
@keyframes qrg-s-ripple {
  0% { transform: scale(0.35); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes qrg-s-glint {
  0% { transform: rotate(0deg) translateX(14px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(14px) rotate(-360deg); }
}
@keyframes qrg-s-halo {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.45; }
}

.qrg-gem--gold .qrg-gem-halo {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 72%);
  animation: qrg-g-halo 2.8s linear infinite;
}
.qrg-gem--gold .qrg-gem-stone {
  clip-path: polygon(50% 4%, 94% 28%, 94% 72%, 50% 96%, 6% 72%, 6% 28%);
  background: linear-gradient(160deg, #fff7cc 0%, #f59e0b 42%, #92400e 100%);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
  animation: none;
}
.qrg-gem--gold .qrg-gem-gdrop,
.qrg-gem--gold .qrg-gem-gring {
  position: absolute;
  pointer-events: none;
}
.qrg-gem--gold .qrg-gem-gring {
  inset: 18%;
  border: 1.5px solid rgba(255, 242, 0, 0.75);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: qrg-g-ring 3.2s linear infinite;
}
.qrg-gem--gold .qrg-gem-gdrop {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff8dc;
  box-shadow: 0 0 7px #fbbf24;
  animation: qrg-g-drip 2.8s linear infinite;
}
@keyframes qrg-g-drip {
  0% { top: 6%; left: 46%; opacity: 0; transform: scale(0.4); }
  10% { opacity: 1; transform: scale(1); }
  45% { top: 48%; left: 74%; }
  78% { top: 82%; left: 48%; opacity: 1; }
  100% { top: 90%; left: 48%; opacity: 0; transform: scale(0.35); }
}
@keyframes qrg-g-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes qrg-g-halo {
  0% { opacity: 0.2; transform: scale(0.94); }
  50% { opacity: 0.45; transform: scale(1.06); }
  100% { opacity: 0.2; transform: scale(0.94); }
}

.qrg-gem--ruby .qrg-gem-halo {
  background: radial-gradient(circle, rgba(225, 29, 72, 0.45), transparent 68%);
  animation: qrg-r-halo 1.6s ease-in-out infinite;
}
.qrg-gem--ruby .qrg-gem-stone {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(225deg, #fecaca, #e11d48 48%, #4c0519);
  animation: qrg-r-beat 1.55s ease-in-out infinite;
}
.qrg-gem--ruby .qrg-gem-rcore {
  position: absolute;
  inset: 28%;
  background: radial-gradient(circle, #fff 0%, #fb7185 40%, transparent 70%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: qrg-r-core 1.55s ease-in-out infinite;
  pointer-events: none;
}
@keyframes qrg-r-beat {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.12); }
  32% { transform: scale(0.96); }
  48% { transform: scale(1.08); }
}
@keyframes qrg-r-core {
  0%, 100% { opacity: 0.15; }
  18% { opacity: 0.85; }
  48% { opacity: 0.4; }
}
@keyframes qrg-r-halo {
  0%, 100% { opacity: 0.2; }
  18% { opacity: 0.7; }
}

.qrg-gem--platinum .qrg-gem-halo {
  background: conic-gradient(from 0deg, transparent 0 40%, rgba(186, 230, 253, 0.45), transparent 70%);
  animation: qrg-p-aurora 4s linear infinite;
}
.qrg-gem--platinum .qrg-gem-stone {
  clip-path: polygon(50% 0, 75% 7%, 93% 25%, 100% 50%, 93% 75%, 75% 93%, 50% 100%, 25% 93%, 7% 75%, 0 50%, 7% 25%, 25% 7%);
  background: linear-gradient(200deg, #f8fafc, #cbd5e1 50%, #64748b);
  animation: qrg-p-spin 6.5s linear infinite;
}
.qrg-gem--platinum .qrg-gem-pring,
.qrg-gem--platinum .qrg-gem-pbeam {
  position: absolute;
  pointer-events: none;
}
.qrg-gem--platinum .qrg-gem-pring {
  inset: 16%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: rgba(125, 211, 252, 0.85);
  animation: qrg-p-gimbal 2.4s linear infinite;
}
.qrg-gem--platinum .qrg-gem-pring-b {
  inset: 26%;
  border-top-color: transparent;
  border-right-color: rgba(255, 255, 255, 0.9);
  animation: qrg-p-gimbal 3.6s linear infinite reverse;
}
.qrg-gem--platinum .qrg-gem-pbeam {
  left: 48%;
  top: 6%;
  width: 4%;
  height: 88%;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  animation: qrg-p-beam 2s ease-in-out infinite;
}
@keyframes qrg-p-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes qrg-p-gimbal {
  from { transform: rotate(0deg) scaleX(1); }
  50% { transform: rotate(180deg) scaleX(0.55); }
  to { transform: rotate(360deg) scaleX(1); }
}
@keyframes qrg-p-beam {
  0%, 100% { transform: rotate(-18deg); opacity: 0.15; }
  50% { transform: rotate(18deg); opacity: 0.85; }
}
@keyframes qrg-p-aurora {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.qrg-gem--emerald .qrg-gem-halo {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent 70%);
  animation: qrg-e-halo 2s ease-in-out infinite;
}
.qrg-gem--emerald .qrg-gem-stone {
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  background: linear-gradient(180deg, #bbf7d0 0%, #059669 40%, #022c22 100%);
  animation: qrg-e-rise 2.8s ease-in-out infinite;
}
.qrg-gem--emerald .qrg-gem-etable,
.qrg-gem--emerald .qrg-gem-estep,
.qrg-gem--emerald .qrg-gem-eleaf,
.qrg-gem--emerald .qrg-gem-eglint {
  position: absolute;
  pointer-events: none;
}
.qrg-gem--emerald .qrg-gem-etable {
  left: 26%;
  right: 26%;
  top: 10%;
  height: 22%;
  background: rgba(255, 255, 255, 0.75);
  animation: qrg-e-table 1.4s ease-in-out infinite;
}
.qrg-gem--emerald .qrg-gem-estep {
  inset: 34% 10% 18%;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: qrg-e-step 2s linear infinite;
}
.qrg-gem--emerald .qrg-gem-eleaf {
  inset: 20%;
  background: conic-gradient(from 80deg, transparent 0 55%, rgba(190, 242, 100, 0.55), transparent 80%);
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  animation: qrg-e-leaf 3.2s linear infinite;
}
.qrg-gem--emerald .qrg-gem-eglint {
  width: 7px;
  height: 7px;
  background: #fff;
  box-shadow: 0 0 8px #86efac;
  animation: qrg-e-glint 1.8s ease-in-out infinite;
}
@keyframes qrg-e-rise {
  0%, 100% { transform: translateY(2px) rotate(-3deg); filter: hue-rotate(0deg); }
  50% { transform: translateY(-4px) rotate(4deg); filter: hue-rotate(22deg); }
}
@keyframes qrg-e-table {
  0%, 100% { opacity: 0.12; }
  35% { opacity: 0.95; }
}
@keyframes qrg-e-step {
  0% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 0.9; }
  100% { transform: translateY(0); opacity: 0.4; }
}
@keyframes qrg-e-leaf {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes qrg-e-glint {
  0%, 100% { top: 18%; left: 22%; opacity: 0.2; transform: scale(0.6); }
  40% { top: 42%; left: 70%; opacity: 1; transform: scale(1.2); }
  75% { top: 68%; left: 30%; opacity: 0.4; transform: scale(0.7); }
}
@keyframes qrg-e-halo {
  0%, 100% { opacity: 0.25; transform: scale(0.94); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.qrg-gem--diamond .qrg-gem-stone {
  clip-path: polygon(50% 0, 100% 38%, 76% 100%, 24% 100%, 0 38%);
  background: linear-gradient(145deg, #fff, #e0f2fe 35%, #7dd3fc);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
  animation-name: qrg-gem-diamond;
}

@keyframes qrg-gem-breathe {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-2px) scale(1.04); filter: brightness(1.15); }
}
@keyframes qrg-gem-facet {
  0% { opacity: 0.35; transform: translateX(-8%); }
  50% { opacity: 0.9; transform: translateX(8%); }
  100% { opacity: 0.35; transform: translateX(-8%); }
}
@keyframes qrg-gem-cut {
  0%, 100% { opacity: 0.25; transform: rotate(0deg); }
  50% { opacity: 0.7; transform: rotate(12deg); }
}
@keyframes qrg-gem-spark {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  40% { opacity: 1; transform: scale(1.2); }
}
@keyframes qrg-gem-quartz {
  0%, 100% { transform: rotate(-2deg) translateY(0) scale(1); filter: brightness(1); }
  50% { transform: rotate(2deg) translateY(-2px) scale(1.03); filter: brightness(1.1); }
}
@keyframes qrg-gem-quartz-halo {
  0%, 100% { opacity: 0.22; transform: scale(0.96); }
  50% { opacity: 0.42; transform: scale(1.04); }
}
@keyframes qrg-gem-halo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes qrg-gem-metal {
  0%, 100% { filter: brightness(1) contrast(1); transform: translateX(0); }
  50% { filter: brightness(1.35) contrast(1.15); transform: translateX(2px); }
}
@keyframes qrg-gem-sheen {
  0% { transform: translateX(-20%) rotate(-8deg); opacity: 0.15; }
  50% { transform: translateX(20%) rotate(8deg); opacity: 0.8; }
  100% { transform: translateX(-20%) rotate(-8deg); opacity: 0.15; }
}
@keyframes qrg-gem-gold {
  0%, 100% { transform: rotate(0deg) scale(1); box-shadow: 0 0 10px rgba(251, 191, 36, 0.35); }
  50% { transform: rotate(-6deg) scale(1.07); box-shadow: 0 0 22px rgba(251, 191, 36, 0.8); }
}
@keyframes qrg-gem-pulse-red {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(225, 29, 72, 0.4); }
  25% { transform: scale(1.08); box-shadow: 0 0 20px rgba(225, 29, 72, 0.85); }
  40% { transform: scale(0.98); }
  55% { transform: scale(1.06); }
}
@keyframes qrg-gem-frost {
  0%, 100% { filter: brightness(1) saturate(0.6); transform: scale(1); }
  50% { filter: brightness(1.35) saturate(0.9); transform: scale(1.03) rotate(3deg); }
}
@keyframes qrg-gem-leaf {
  0%, 100% { transform: translateY(0) rotate(0deg); filter: hue-rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-5deg); filter: hue-rotate(18deg); }
}
@keyframes qrg-gem-diamond {
  0%, 100% { filter: hue-rotate(0deg) brightness(1.1); transform: rotate(0deg); }
  33% { filter: hue-rotate(50deg) brightness(1.35); transform: rotate(8deg); }
  66% { filter: hue-rotate(-40deg) brightness(1.25); transform: rotate(-6deg); }
}

.qrg-gem--aether {
  width: 58px;
  height: 30px;
}
.qrg-gem--aether.qrg-gem--hero {
  width: 110px;
  height: 56px;
}
.qrg-inf-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.qrg-inf-draw,
.qrg-inf-orbit {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qrg-inf-draw {
  stroke: #fff;
  stroke-width: 2.15;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: qrg-inf-draw 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.85));
}
.qrg-inf-orbit {
  stroke-width: 1.05;
  stroke-dasharray: 14 18;
  animation: qrg-inf-dash 8s linear infinite;
}
.qrg-inf-orbit-a { stroke: #fff200; animation-duration: 7s; }
.qrg-inf-orbit-b { stroke: #7dd3fc; animation-duration: 9s; animation-direction: reverse; }
.qrg-inf-orbit-c { stroke: #c4b5fd; animation-duration: 11s; }
.qrg-inf-orbit-d { stroke: #2e3192; stroke-width: 1.4; animation-duration: 6s; animation-direction: reverse; }
@keyframes qrg-inf-draw {
  0% { stroke-dashoffset: 180; opacity: 0.35; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  70% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -180; opacity: 0.4; }
}
@keyframes qrg-inf-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -120; }
}
.qrg-inf {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #c4b5fd;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
  animation: qrg-inf-spin 4s linear infinite;
}
.qrg-gem--hero .qrg-inf { width: 40px; height: 40px; border-width: 4px; }
.qrg-inf-l { left: 4px; top: 50%; margin-top: -11px; }
.qrg-inf-r { right: 4px; top: 50%; margin-top: -11px; animation-direction: reverse; }
.qrg-gem--hero .qrg-inf-l,
.qrg-gem--hero .qrg-inf-r { margin-top: -20px; }
.qrg-inf-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.35), transparent 65%);
  animation: qrg-inf-glow 2.4s ease-in-out infinite;
}
.qrg-inf-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(196, 181, 253, 0.9);
  animation: qrg-inf-orbit 2.2s linear infinite;
}
.qrg-inf-ring {
  position: absolute;
  inset: -6px;
  border: 2px dashed #c4b5fd;
  border-radius: 50%;
  animation: qrg-inf-spin 9s linear infinite reverse;
  opacity: 0.55;
}
@keyframes qrg-inf-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes qrg-inf-glow {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes qrg-inf-orbit {
  0% { left: 8%; top: 50%; }
  25% { left: 50%; top: 8%; }
  50% { left: 82%; top: 50%; }
  75% { left: 50%; top: 78%; }
  100% { left: 8%; top: 50%; }
}

.dash-tariff-due {
  position: fixed;
  inset: 0;
  z-index: 55000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}
.dash-tariff-due.hidden,
.dash-tariff-due[hidden] { display: none; }
.dash-tariff-due-card {
  width: min(420px, 100%);
  padding: 22px 20px 18px;
  border: 1px solid var(--yellow);
  background: #0c0c10;
  color: #f5f5f5;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.dash-tariff-due-card h2 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.dash-tariff-due-kicker {
  margin: 8px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}
.dash-tariff-due-kicker.is-white {
  color: #fff;
}
.dash-tariff-due-body {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.45;
}
.dash-tariff-due-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.dash-tariff-due-pay,
.dash-tariff-due-later {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}
.dash-tariff-due-pay {
  background: var(--yellow);
  color: #111;
}
.dash-tariff-due-later {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.dash-tariff-due-later:hover,
.dash-tariff-due-later:focus-visible {
  background: #fff;
  color: #0a0a0a;
}

@media (prefers-reduced-motion: reduce) {
  .qrg-gem-stone,
  .qrg-gem-facet,
  .qrg-gem-spark,
  .qrg-gem-halo,
  .qrg-gem-cut,
  .qrg-gem-flare,
  .qrg-gem-prism,
  .qrg-ingot-glow,
  .qrg-ingot-shine,
  .qrg-inf,
  .qrg-inf-spark,
  .qrg-inf-glow,
  .qrg-inf-ring,
  .qrg-inf-draw,
  .qrg-inf-orbit,
  .dash-account-stat.is-tariff.is-due {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .dash-tour-card {
    max-width: none;
    width: auto !important;
    left: 12px !important;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    top: auto !important;
    box-sizing: border-box;
  }
}




/* gap4-desktop: kill empty band between DATA and PARAMETERS */
@media (min-width: 1025px) {
  .layout {
    align-items: start;
  }
  .layout-stack {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    height: max-content;
    gap: 0;
  }
  .panel-data,
  .panel-params {
    flex: 0 0 auto;
    min-height: 0 !important;
    height: auto !important;
  }
  .panel-data {
    padding-bottom: 4px;
  }
  .panel-params {
    padding-top: 4px;
  }
  .panel-params > h2,
  .panel-params h2:first-of-type {
    margin-top: 0 !important;
  }
  .fields.hidden {
    display: none !important;
  }
}

/* gap4-pins: restore location map pins above tiles (do not flatten marker z-index) */
.map-picker .leaflet-marker-pane,
.map-picker .leaflet-shadow-pane,
.map-picker .leaflet-overlay-pane {
  z-index: 6 !important;
}
.map-picker img.leaflet-marker-icon,
.map-picker .leaflet-marker-icon,
.map-picker .leaflet-marker-shadow {
  z-index: 7 !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: content-box !important;
}
.map-picker .leaflet-top,
.map-picker .leaflet-bottom,
.map-picker .leaflet-control,
.map-picker .leaflet-control-container {
  z-index: 8 !important;
}
.map-picker,
.map-picker .leaflet-container {
  cursor: grab;
}
.map-picker .leaflet-marker-icon {
  cursor: pointer;
}

/* ——— Currency picker (solo + tariffs) ——— */
.ccy-picker-overlay {
  z-index: 100050;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  /* Solid black — tariffs / page must not show through */
  background: #070707;
}
body.ccy-picking #dash-pack-list,
body.ccy-picking .dash-ccy-bar,
body.ccy-picking .dash-wallet-inner {
  visibility: hidden;
}
.ccy-picker-card {
  width: min(560px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(18, 18, 22, 0.98), rgba(8, 8, 10, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  position: relative;
}
.ccy-picker-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.ccy-picker-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}
.ccy-picker-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 42em;
}
.ccy-picker-preview {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(46, 49, 146, 0.85);
  background:
    linear-gradient(120deg, rgba(46, 49, 146, 0.22), rgba(255, 242, 0, 0.06));
}
.ccy-picker-preview-amt {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -0.03em;
}
.ccy-picker-preview-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}
.ccy-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.ccy-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 6px;
  align-items: start;
  min-height: 64px;
  padding: 10px 10px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.ccy-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ccy-accent, var(--blue));
  opacity: 0.85;
}
.ccy-tile:nth-child(4n + 2) {
  transform: translateY(4px);
}
.ccy-tile:nth-child(4n + 3) {
  transform: translateY(-2px);
}
.ccy-tile:hover {
  border-color: rgba(255, 242, 0, 0.45);
  background: rgba(255, 242, 0, 0.06);
}
.ccy-tile.is-on {
  border-color: var(--yellow);
  background: rgba(255, 242, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 242, 0, 0.25);
}
.ccy-tile-code {
  grid-column: 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.ccy-tile-sym {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
}
.ccy-tile-name {
  grid-column: 1;
  font-size: 10px;
  line-height: 1.25;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.ccy-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ccy-picker-go {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #0a0a0a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.ccy-picker-go:hover {
  background: #fff;
  border-color: #fff;
}
.ccy-picker-cancel {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ccy-picker-cancel:hover {
  border-color: #fff;
}
.dash-ccy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
}
.dash-ccy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(46, 49, 146, 0.2);
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.dash-ccy-chip:hover,
.dash-ccy-chip:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}
.dash-ccy-chip b {
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.1em;
}
.dash-ccy-chip-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.dash-card-pay {
  letter-spacing: 0.04em;
}
@media (max-width: 560px) {
  .ccy-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ccy-tile:nth-child(4n + 2),
  .ccy-tile:nth-child(4n + 3) {
    transform: none;
  }
  .ccy-tile:nth-child(3n + 2) {
    transform: translateY(3px);
  }
}
@media (max-width: 400px) {
  .ccy-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ccy-tile:nth-child(3n + 2) {
    transform: none;
  }
}

/* ——— Pay pause notice (non-UK) — remove with PAY_PAUSE_NON_UK flag ——— */
.pay-pause-overlay {
  z-index: 100060;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  background: rgba(0, 0, 0, 0.72);
}
.pay-pause-card {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(18, 18, 22, 0.98), rgba(8, 8, 10, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.pay-pause-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.25;
  color: #fff;
}
.pay-pause-body {
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.5;
}
.pay-pause-body p {
  margin: 0 0 12px;
}
.pay-pause-body a {
  color: var(--yellow, #fff200);
  text-decoration: underline;
}
.pay-pause-ok {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow, #fff200);
  color: #111;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.pay-pause-ok:hover {
  filter: brightness(1.05);
}
