:root {
  --bg: #070707;
  --panel: #101010;
  --panel2: #151515;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #ffffff;
  --blue: #2e3192;
  --yellow: #fff200;
  --focus: #fff200;
}

* { box-sizing: border-box; }

/* 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 {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.5 Consolas, "Cascadia Mono", "Courier New", monospace;
  position: relative;
}

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

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

.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: "JetBrains Mono", Consolas, "Cascadia Mono", "Courier New", monospace;
  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: 6px;
  background: rgba(46, 49, 146, 0.18);
  color: var(--text);
  border: 1px solid var(--blue);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

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

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

/* language dropdown */
.lang-dropdown {
  position: relative;
}

.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;
  min-width: 180px;
  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: 50;
}

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

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

.tab {
  flex: 0 0 auto;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.tab:hover {
  background: var(--blue);
  color: var(--yellow);
  border-color: var(--blue);
  box-shadow: 0 0 14px rgba(46, 49, 146, 0.6);
}

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

.tab-business {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

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

.tab-more {
  position: relative;
  flex: 0 0 auto;
}

.more-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  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,
.tab-more:hover > .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:hover { background: rgba(255, 242, 0, 0.08); color: var(--yellow); }

.option-icon {
  vertical-align: -3px;
  margin-right: 6px;
  color: var(--muted);
  transition: color 0.15s;
}

.more-option:hover .option-icon { color: var(--yellow); }

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

.map-picker {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  background: #000;
}

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

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

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: hidden;
}

.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;
  animation: none;
}

.stage.scanning::after {
  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) {
  .stage.scanning::after { animation: none; top: 10%; opacity: 0.85; }
}

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

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

button {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 14px;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

button: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%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-left: 22px;
}

.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-result {
  margin-top: 10px;
  font-size: 14px;
}

.dynamic-result p {
  margin: 4px 0;
}

.dynamic-result a {
  color: var(--yellow);
  word-break: break-all;
}

.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;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

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

body.modal-open {
  overflow: hidden;
}

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

.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;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

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

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

.hint.error {
  color: var(--yellow);
}

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

.dashboard-layout {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px;
}

.dashboard-panel {
  border: 1px solid var(--line);
  padding: 28px;
}

.dashboard-panel h1 {
  margin: 0 0 18px;
}

.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-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dash-greeting {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.dash-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.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 {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px dashed var(--blue);
  background: rgba(46, 49, 146, 0.08);
}

.dash-claim label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 260px;
  font-size: 13px;
  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-claim #claim-status {
  flex-basis: 100%;
  margin: 0;
}

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

.dash-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.dash-card-target {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  word-break: break-all;
}

.dash-card-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.dash-card-links a {
  color: var(--yellow);
  font-size: 13px;
  text-decoration: none;
  word-break: break-all;
}

.dash-card-links a:hover {
  text-decoration: underline;
}

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

.seo-section {
  border-top: 1px solid var(--line);
  padding: 48px 24px;
}

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

.seo-inner h2 {
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  color: var(--yellow);
  margin: 0 0 12px;
}

.seo-intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.seo-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px 18px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

/* ---------- Cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  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;
}

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

/* 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"] {
  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; }
  .tab { padding: 11px 20px; font-size: 15px; }
  #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; }
  .brand img { width: 2.6cm; height: 2.6cm; }
  .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 (≤600px) ---------- */
@media (max-width: 600px) {
  html, body { font-size: 16px; }

  .top { padding: 10px 14px; gap: 10px; }
  .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; }
  .top-right { gap: 8px; width: 100%; justify-content: space-between; }
  .account-widget { max-width: 140px; font-size: 12px; padding: 7px 10px; }
  .lang-toggle { font-size: 12px; padding: 7px 10px; }

  .tabs { gap: 5px; padding: 8px 14px; }
  .tab { padding: 7px 11px; font-size: 12px; }
  .tab-business { order: 99; flex-basis: 100%; justify-content: center; }
  .more-menu { min-width: 200px; }

  .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: 6px; }
  button { padding: 10px 12px; font-size: 13px; }

  /* 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: 32px 16px; }
  .seo-inner h2 { font-size: 20px; }
  .seo-grid { grid-template-columns: 1fr; }

  /* 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-toolbar { flex-direction: column; align-items: stretch; }
  .dash-toolbar-actions { flex-direction: column; align-items: stretch; }
  .dash-cta, .dash-logout { text-align: center; }
  .dash-claim { flex-direction: column; align-items: stretch; }

  /* 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; }
  .tab { padding: 6px 9px; font-size: 11px; }
  #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) {
  .tab, button, .lang-toggle, .account-widget, .more-toggle, .dash-cta, .dash-logout {
    min-height: 44px;
  }
}
