: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 */
.top {
  position: relative;
  z-index: 40;
  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;
}

/* 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: 4cm;
  height: 4cm;
  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;
}

.brand-line {
  display: flex;
  align-items: baseline;
}

.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 */
.lang-dropdown {
  position: relative;
  z-index: 60;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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;
}

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

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

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 180px;
  max-width: min(220px, calc(100vw - 28px));
  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: 70;
}

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

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

.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);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.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; }

.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,
.map-picker .leaflet-marker-icon,
.map-picker .leaflet-marker-shadow {
  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: 14px;
  right: 14px;
  top: 10%;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 10px 2px rgba(255, 242, 0, 0.65);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

.stage.scanning::after {
  opacity: 0.85;
  animation: scan-sweep 3.2s ease-in-out infinite;
}

@keyframes scan-sweep {
  0%, 100% { top: 10%; opacity: 0.85; }
  50% { top: 88%; opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .qr-halo::before,
  .qr-halo::after { animation: none; opacity: 0.45; transform: none; }
  .stage.scanning::after { animation: none; top: 10%; opacity: 0.85; }
  .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;
}

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);
}

.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;
}

.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 {
  margin: 12px 0 0;
  color: var(--muted);
}

.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;
}

.dash-card-stats {
  background: #fff;
  color: #111;
  border-color: #fff;
}

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

.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);
}

/* ---------- 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);
}

.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: 420px;
  max-height: 90vh;
  overflow-y: auto;
  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;
}
.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 {
  margin: 0 0 12px;
  text-align: center;
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  display: block;
}
/* Desktop: always one line (modal is narrow, so block natural wrap). Phone: break after dash. */
.oauth-hint-br { display: none; }
@media (min-width: 601px) {
  .auth-oauth-hint,
  .stats-oauth-hint {
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .oauth-hint-br { display: inline; }
  .auth-oauth-hint,
  .stats-oauth-hint {
    white-space: normal;
  }
}

.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;
  background: var(--bg);
  color: var(--muted);
  border: none;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  -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;
}

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

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

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

.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;
}

.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: 11px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.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: 11px;
  margin-top: 10px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s;
}

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

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

.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: 10002;
  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: 10003;
}
.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);
}

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

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

.dashboard-layout {
  display: block;
  max-width: 1080px;
  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.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 {
  display: block;
  width: 28px;
  height: 28px;
  border: 0;
  background-color: currentColor;
  color: #fff;
  -webkit-mask-image: url("/assets/tab-uah.png");
  mask-image: url("/assets/tab-uah.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.dash-main-tab.is-on .dash-tab-ico-uah {
  background-color: currentColor;
  color: #0a0a0a;
}
.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 {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.dash-wallet-bar.is-packs-only {
  display: block;
}

.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-wallet-lead {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 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: 1 1 auto;
  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: min(100%, 340px);
}

.dash-list-tools .dash-claim-toggle {
  width: auto;
  max-width: 100%;
  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%;
  }
  .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: 16px 16px 18px;
  border: 1px solid rgba(46, 49, 146, 0.95);
  background:
    linear-gradient(180deg, rgba(46, 49, 146, 0.22), rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255, 242, 0, 0.03) 11px 12px);
}
.dash-analytics-stage {
  padding: 14px;
  border: 1px solid rgba(255, 242, 0, 0.28);
  background: rgba(0, 0, 0, 0.42);
}
.dash-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.dash-analytics-kpi {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(46, 49, 146, 0.2);
  min-width: 0;
}
.dash-analytics-kpi.is-accent {
  border-color: rgba(255, 242, 0, 0.55);
}
.dash-analytics-kpi span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.dash-analytics-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: #fff;
  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: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(46, 49, 146, 0.2);
}

.dash-insight.is-index {
  border-color: rgba(255, 242, 0, 0.55);
}

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

.dash-insight strong {
  display: block;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  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 {
  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(420px, 58vh);
  min-height: 280px;
}
.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: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: start;
}

.dash-heat .dash-stat-empty {
  grid-column: 1 / -1;
  margin: 6px 0 0;
}

.dash-heat-wd {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  gap: 3px;
  font-size: 11px;
  line-height: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dash-heat-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dash-heat-cell {
  width: 12px;
  height: 12px;
  background: #161616;
}

.dash-heat-cell.lv1 { background: rgba(46, 49, 146, 0.45); }
.dash-heat-cell.lv2 { background: var(--blue); }
.dash-heat-cell.lv3 { background: #c9be00; }
.dash-heat-cell.lv4 { background: var(--yellow); }

.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 var(--line);
  background: rgba(46, 49, 146, 0.1);
  padding: 16px 18px 18px;
}

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

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

.dash-hq-sub {
  margin-top: -4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--muted) 70%, #93c5fd);
}
.dash-hq-sub.is-urgent {
  color: #fca5a5;
}
.dash-hq-cell.is-pay {
  border-color: color-mix(in srgb, var(--yellow) 45%, var(--line));
  background:
    linear-gradient(90deg, var(--yellow) 0 3px, transparent 3px),
    rgba(46, 49, 146, 0.16);
}
.dash-hq-cell.is-ssl {
  border-color: color-mix(in srgb, #93c5fd 50%, var(--line));
  background:
    linear-gradient(90deg, #93c5fd 0 3px, transparent 3px),
    rgba(46, 49, 146, 0.14);
}
.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 {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  animation: dash-card-in 0.55s ease both;
  animation-delay: var(--stagger, 0ms);
}

.dash-card.just-scanned {
  border-left-color: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 242, 0, 0.12);
}

.dash-card.is-paused {
  border-left-style: solid;
  border-left-color: #e10600;
}

.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 {
  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: #9a9a9a;
  font-size: 12px;
  margin: 0;
}

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

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

.dash-card-pause.is-hot {
  background: #fff;
  border-color: #fff;
  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: var(--blue);
  border-color: var(--blue);
}

@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-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: visible;
}

.dash-qr-stage.is-edit-fx .edit-fx-back {
  position: absolute;
  inset: -22px;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(
    evenodd,
    0% 0%, 100% 0%, 100% 100%, 0% 100%,
    13.4% 13.4%, 86.6% 13.4%, 86.6% 86.6%, 13.4% 86.6%
  );
}

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

.dash-qr-stage.is-edit-fx .edit-orbit-b {
  inset: 0;
  border-style: solid;
  border-color: rgba(46, 49, 146, 0.75);
  border-top-color: transparent;
  border-left-color: transparent;
  animation-duration: 5.5s;
  animation-direction: reverse;
}

.dash-qr-stage.is-edit-fx .edit-radar {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 242, 0, 0.35) 42deg, transparent 70deg);
  animation: edit-orbit-spin 2.8s linear infinite;
  mask-image: radial-gradient(circle, transparent 62%, #000 63%, #000 78%, transparent 79%);
  -webkit-mask-image: radial-gradient(circle, transparent 62%, #000 63%, #000 78%, transparent 79%);
}

.dash-qr-stage.is-edit-fx .edit-scanline {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff200, #2e3192, #fff200, transparent);
  box-shadow: 0 0 10px rgba(255, 242, 0, 0.8);
  animation: edit-scan-y 2.4s ease-in-out infinite;
}

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

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

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

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

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

.dash-qr-stage.is-edit-fx .edit-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff200;
  animation: edit-spark 2.2s ease-in-out infinite;
}

.dash-qr-stage.is-edit-fx .edit-spark.s1 { top: 10px; left: 14px; }
.dash-qr-stage.is-edit-fx .edit-spark.s2 { top: 10px; right: 14px; animation-delay: 0.7s; background: #2e3192; box-shadow: 0 0 8px #2e3192; }
.dash-qr-stage.is-edit-fx .edit-spark.s3 { bottom: 10px; left: 50%; animation-delay: 1.2s; }

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

@keyframes edit-scan-y {
  0%, 100% { top: 8px; opacity: 0.35; }
  50% { top: calc(100% - 10px); opacity: 1; }
}

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

@keyframes edit-spark {
  0%, 100% { transform: scale(0.5); opacity: 0.2; }
  50% { transform: scale(1.4); opacity: 1; }
}

.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-countdown.is-expired {
  color: #ff5555;
  font-size: 14px;
  animation: none;
}

.dash-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

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

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

.dash-card-extend {
  position: relative;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.22s ease;
  z-index: 1;
}

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

.dash-card-download {
  background: var(--yellow);
  color: #0a0a0a;
  border: 1px solid var(--yellow);
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.dash-card-delete {
  background: transparent;
  color: #8a8a8a;
  border: 0;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

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

.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;
}

.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;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.dash-card-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dash-card-name-text {
  flex: 1 1 120px;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.3;
  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;
}

.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: 14px 16px 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.dash-stat-block.dash-stat-heat {
  border-color: var(--blue);
  background: rgba(46, 49, 146, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dash-stat-hours,
.dash-stat-days {
  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);
}

.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 { max-width: 920px; width: calc(100% - 32px); }
.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(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 16px rgba(46, 49, 146, 0.45);
}
.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;
}

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

.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: 256px minmax(0, 1fr);
  gap: 28px;
  margin: 18px 0 20px;
  align-items: start;
}
.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-radar,
  .dash-qr-stage.is-edit-fx .edit-scanline,
  .dash-qr-stage.is-edit-fx .edit-bracket,
  .dash-qr-stage.is-edit-fx .edit-spark {
    animation: none;
  }
}

@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: 14px;
  margin: 36px auto 8px;
  max-width: 32rem;
  padding: 20px 16px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-cta-hint {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #fff;
  text-wrap: pretty;
  white-space: pre-line;
}

.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);
}

.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); }
}

@media (prefers-reduced-motion: reduce) {
  .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-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"] {
  display: block;
}
/* Mandarin UI: until a page has its own zh block, show the English copy. */
html[lang="zh"] body:not(:has([data-lang-block="zh"])) [data-lang-block="en"] {
  display: block;
}

/* =====================================================================
   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: 4.6cm; height: 4.6cm; }
  .brand-word { font-size: 28px; }
  .brand-sub { font-size: 16px; }
  #qr { width: min(100%, 420px); }
  .stage { min-height: 380px; }
}

/* ---------- Tablets (portrait ~768–1024px) ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(300px, 1fr) minmax(260px, 360px); }
  .panel, .preview-col { padding: 20px; }
  .tabs { padding: 10px 20px; gap: 5px; }
  .seo-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* Below this, the two-column generator layout stops making sense — stack it. */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .preview-col { border-top: 1px solid var(--line); }
  .top { padding: 12px 16px; flex-wrap: wrap; }
  .top-brand { gap: 12px; flex-wrap: wrap; }
  .brand img { width: 2.6cm; height: 2.6cm; }
  .nav-advantages { font-size: 12px; padding: 8px 12px 8px 10px; }
  .top-right { flex-wrap: wrap; }
  .tabs { padding: 10px 16px; }
  .brand-word { font-size: 20px; }
  .brand-sub { margin-left: 30px; }
  .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 { padding: 10px 14px; gap: 10px; }
  .top-brand { width: 100%; gap: 10px; justify-content: space-between; }
  .brand { gap: 8px; }
  .brand img { width: 1.8cm; height: 1.8cm; }
  .brand-word { font-size: 17px; }
  .brand-sub { margin-left: 0; font-size: 12px; }
  .brand-stairs { gap: 1px; }
  .nav-advantages {
    font-size: 11px;
    padding: 7px 10px 7px 9px;
    gap: 6px;
  }
  .top-right {
    gap: 8px;
    width: 100%;
    justify-content: flex-end; /* мова завжди справа — меню не обрізається зліва */
  }
  .account-widget { max-width: 160px; font-size: 12px; padding: 4px 10px 4px 5px; }
  .lang-toggle { font-size: 12px; padding: 7px 10px; }

  .panel, .preview-col { padding: 16px; }
  h1, h2 { font-size: 13px; }
  .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; }

  .stage { min-height: 240px; padding: 16px; }
  #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%; }
  .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; }
  .seo-cta-hint { 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: 240px; height: min(360px, 50vh); }
  .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: 14px; }
}

/* ---------- 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 (3 tips) —— */
.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 {
  position: fixed;
  border-radius: 10px;
  border: 2px solid var(--yellow, #fff200);
  box-sizing: border-box;
  pointer-events: none;
  transition: top 0.28s ease, left 0.28s ease, width 0.28s ease, height 0.28s ease;
}
.dash-tour-spot.is-primary {
  box-shadow:
    0 0 0 2px rgba(255, 242, 0, 0.45),
    0 0 28px rgba(255, 242, 0, 0.35);
  background: rgba(255, 242, 0, 0.06);
}
.dash-tour-spot.is-extra {
  box-shadow:
    0 0 0 2px rgba(255, 242, 0, 0.55),
    0 0 22px rgba(255, 242, 0, 0.28);
  animation: dash-tour-pulse 1.4s ease-in-out infinite;
}
@keyframes dash-tour-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 242, 0, 0.45), 0 0 14px rgba(255, 242, 0, 0.2); }
  50% { box-shadow: 0 0 0 3px rgba(255, 242, 0, 0.8), 0 0 28px rgba(255, 242, 0, 0.4); }
}
.dash-tour-card {
  position: fixed;
  z-index: 2;
  pointer-events: auto;
  max-width: 360px;
  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-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 {
    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 {
  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) {
  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 {
  background: transparent;
  border-color: transparent;
  color: inherit;
  box-shadow: none;
}
.qrg-shape-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  padding: 0;
}
@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-opt {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 76px;
  height: 72px;
  margin: 0;
  padding: 6px 4px 5px;
  background: #000;
  color: #111;
  border: 2px solid #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  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;
}
.qrg-shape-stamp {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  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 {
    animation: none;
  }
}
@media (max-width: 600px) {
  .qrg-shape-pick { gap: 5px; padding: 0; }
  .qrg-shape-opt { width: 68px; height: 66px; padding: 5px 3px 4px; font-size: 11px; }
  .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: var(--blue);
}
.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-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: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pay-success-meter-val {
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}
.pay-success-ok {
  min-width: 140px;
}

.pay-embed-overlay {
  z-index: 110000;
}
.pay-embed-card.modal-card,
.modal-card.pay-embed-card {
  width: min(640px, 96vw);
  max-width: min(640px, 96vw);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  overflow: hidden;
}
.pay-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex: 0 0 auto;
}
.pay-embed-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.pay-embed-hint {
  margin: 0 0 10px;
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.4;
  flex: 0 0 auto;
}
.pay-embed-frame-wrap {
  flex: 1 1 auto;
  min-height: 520px;
  height: min(72vh, 680px);
  border: 1px solid rgba(120, 130, 255, 0.25);
  background: #0a0a12;
  overflow: hidden;
  border-radius: 0;
}
.pay-embed-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
}
@media (max-width: 720px) {
  .pay-embed-card.modal-card,
  .modal-card.pay-embed-card {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    padding: 10px 10px 8px;
  }
  .pay-embed-frame-wrap,
  .pay-embed-frame-wrap iframe {
    min-height: 0;
    height: 100%;
  }
}


