/* Motor theme overrides — purple + cyan laser, high-contrast text */
:root {
  --bg: #0a0614 !important;
  --bg-elev: #1a1228 !important;
  --panel: #160f24 !important;
  --panel2: #1e1630 !important;
  --line: #5b4a7a !important;
  --text: #faf8ff !important;
  --muted: #e9e2ff !important;
  --accent: #c084fc !important;
  --accent2: #22d3ee !important;
  --yellow: #e879f9 !important;
  --focus: #22d3ee !important;
  --signal: #e879f9 !important;
}

/* Labels / hints: bright, never muddy gray */
label,
.studio-label,
.payload-hint,
.dynamic-stat-banner,
.hint,
.qr-fact-kicker,
.qr-fact-hint,
.press__label,
.section__kicker {
  color: #e9e2ff !important;
}

.hero__lead,
.hero__lead-line,
.article-lead,
.article p,
.sitemap-lead,
.top .brand__tag,
.guide-rail__meta,
.foot-nav a {
  color: #ddd6fe !important;
}

.hero__title,
.section__title,
.article h1,
.sitemap-page h1,
.guide-rail__name,
.top .brand__name {
  color: #ffffff !important;
}

/* Preview column — purple field */
.preview-col {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168, 85, 247, 0.22), transparent 60%),
    linear-gradient(165deg, rgba(34, 211, 238, 0.06), transparent 45%) !important;
}

/* QR stage: purple/cyan laser corners + violet void */
.stage {
  background:
    linear-gradient(to right, #e879f9 3px, transparent 3px) top left,
    linear-gradient(to bottom, #e879f9 3px, transparent 3px) top left,
    linear-gradient(to left, #22d3ee 3px, transparent 3px) top right,
    linear-gradient(to bottom, #22d3ee 3px, transparent 3px) top right,
    linear-gradient(to right, #22d3ee 3px, transparent 3px) bottom left,
    linear-gradient(to top, #22d3ee 3px, transparent 3px) bottom left,
    linear-gradient(to left, #e879f9 3px, transparent 3px) bottom right,
    linear-gradient(to top, #e879f9 3px, transparent 3px) bottom right,
    radial-gradient(ellipse at center, #1a0b2e 0%, #05030a 100%) !important;
  background-repeat: no-repeat !important;
  background-size: 34px 34px, 34px 34px, 34px 34px, 34px 34px, 34px 34px, 34px 34px, 34px 34px, 34px 34px, auto !important;
  border: 1px solid rgba(168, 85, 247, 0.55) !important;
  box-shadow:
    inset 0 0 40px rgba(168, 85, 247, 0.18),
    0 0 28px rgba(34, 211, 238, 0.12) !important;
  border-radius: 16px;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(168, 85, 247, 0.05) 48%,
    rgba(34, 211, 238, 0.08) 50%,
    rgba(168, 85, 247, 0.05) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: stage-haze 5.5s ease-in-out infinite;
}

.stage::after {
  height: 3px !important;
  background: linear-gradient(90deg, transparent, #e879f9, #22d3ee, #e879f9, transparent) !important;
  box-shadow:
    0 0 16px 3px rgba(232, 121, 249, 0.85),
    0 0 28px 6px rgba(34, 211, 238, 0.45) !important;
  mix-blend-mode: screen !important;
}

.stage.scanning::after,
.stage.scan-play::after {
  opacity: 1 !important;
}

@keyframes stage-haze {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

/* Generator primary CTAs — unique soft hex cut (not generate clip) */
.generate-qr-cta #btn-make-dynamic,
.btn-gen-another,
.file-picker-btn,
.btn-code-stats,
.dynamic-create-account,
.qrg-color-done,
.keep-stats-open {
  clip-path: none !important;
  border-radius: 14px !important;
  background: linear-gradient(125deg, #a855f7 0%, #7c3aed 45%, #22d3ee 100%) !important;
  border: 0 !important;
  color: #0a0614 !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.35) !important;
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s !important;
}

.generate-qr-cta #btn-make-dynamic:hover,
.btn-gen-another:hover,
.file-picker-btn:hover,
.btn-code-stats:hover,
.dynamic-create-account:hover,
.qrg-color-done:hover,
.keep-stats-open:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  color: #0a0614 !important;
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.4) !important;
}

/* Export actions */
.actions button,
.preview-col .actions button {
  clip-path: none !important;
  border-radius: 12px !important;
  background: linear-gradient(120deg, #c084fc, #22d3ee) !important;
  border: 0 !important;
  color: #0a0614 !important;
  font-weight: 700 !important;
}

.actions button:hover,
.preview-col .actions button:hover {
  color: #0a0614 !important;
  filter: brightness(1.1);
}

/* Tabs / chips readable on purple */
.tab,
.type-chip,
.ecc-chip,
.style-studio-tab {
  color: #ffffff !important;
  border-color: #5b4a7a !important;
}

.tab:hover,
.type-chip:hover,
.ecc-chip:hover,
.style-studio-tab:hover,
.tab.is-on,
.type-chip.is-on,
.ecc-chip.is-on,
.style-studio-tab.is-on,
.style-studio-tab[aria-selected="true"],
.style-studio-tab.is-on:hover,
.style-studio-tab[aria-selected="true"]:hover,
.style-studio-tab:hover:not(.is-on):not([aria-selected="true"]),
.style-studio-tab:focus-visible,
.style-studio-tab:active {
  background: rgba(168, 85, 247, 0.45) !important;
  border-color: #22d3ee !important;
  color: #ffffff !important;
}

/* Kill lime-era “black text on bright fill” for the 4 studio tabs */
.style-studio-tabs .style-studio-tab,
.style-studio-tabs .style-studio-tab:hover,
.style-studio-tabs .style-studio-tab:focus-visible,
.style-studio-tabs .style-studio-tab:active,
.style-studio-tabs .style-studio-tab.is-on,
.style-studio-tabs .style-studio-tab[aria-selected="true"],
.style-studio-tabs .style-studio-tab.is-on:hover,
.style-studio-tabs .style-studio-tab[aria-selected="true"]:hover,
.style-studio-tabs .style-studio-tab:hover:not(.is-on):not([aria-selected="true"]) {
  color: #ffffff !important;
}

/* Make Create-account stay white for contrast pulse (override earlier) */
.dynamic-create-account,
.dynamic-create-account:hover,
.dynamic-create-account:focus-visible,
.dynamic-create-account:active {
  background: #ffffff !important;
  color: #1a0b2e !important;
  border: 2px solid #22d3ee !important;
  animation: create-account-pulse 2.4s ease-in-out infinite;
}

@keyframes create-account-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1.015); }
}

/* —— Event calendars (store): purple/cyan, soft radius, calm —— */
.qrg-cal--store .qrg-cal-trigger {
  background: #160f24 !important;
  border: 1px solid #5b4a7a !important;
  border-radius: 10px;
  color: #faf8ff !important;
}

.qrg-cal--store .qrg-cal-trigger:hover,
.qrg-cal--store.is-open .qrg-cal-trigger {
  border-color: #22d3ee !important;
}

.qrg-cal--store .qrg-cal-ico {
  border-color: #c084fc;
  border-radius: 5px;
  background:
    linear-gradient(#22d3ee, #22d3ee) 3px 0 / 3px 3px no-repeat,
    linear-gradient(#e879f9, #e879f9) 11px 0 / 3px 3px no-repeat,
    linear-gradient(#c084fc, #c084fc) 2px 8px / 14px 2px no-repeat;
}

.qrg-cal--store .qrg-cal-pop {
  background: #12081f;
  border: 1px solid rgba(192, 132, 252, 0.45);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(5, 3, 10, 0.65);
}

.qrg-cal--store .qrg-cal-month {
  font-family: "Fraunces", Georgia, serif;
  color: #e879f9;
  font-weight: 600;
}

.qrg-cal--store .qrg-cal-nav {
  border-radius: 8px;
  background: #1a1228;
  border-color: #5b4a7a;
}

.qrg-cal--store .qrg-cal-nav:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

.qrg-cal--store .qrg-cal-day {
  border-radius: 8px;
}

.qrg-cal--store .qrg-cal-day:hover {
  border-color: rgba(34, 211, 238, 0.5);
}

.qrg-cal--store .qrg-cal-day.is-today {
  color: #22d3ee;
}

.qrg-cal--store .qrg-cal-day.is-on {
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  color: #0a0614;
  border-color: transparent;
}

.qrg-cal-day.is-past,
.qrg-cal-day:disabled {
  opacity: 0.28 !important;
  color: rgba(255, 255, 255, 0.35) !important;
  cursor: not-allowed !important;
  border-color: transparent !important;
  pointer-events: none !important;
  background: transparent !important;
}

.qrg-cal--store .qrg-cal-time {
  border-top-color: rgba(91, 74, 122, 0.7);
}

.qrg-cal--store .qrg-cal-time input {
  background: #1a1228;
  border-color: #5b4a7a;
  border-radius: 8px;
  color: #faf8ff;
}

.qrg-cal--store .qrg-cal-done {
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  color: #0a0614;
  border-radius: 10px;
}

.qrg-cal--store .qrg-cal-done:hover {
  filter: brightness(1.06);
}

/* Base calendar shell (shared with generate styles if legacy not loaded alone) */
.qrg-cal {
  position: relative;
  width: 100%;
}

.qrg-cal-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.qrg-cal-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.qrg-cal-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
}

.qrg-cal-ph { color: rgba(233, 226, 255, 0.45); }
.qrg-cal-txt { font-size: 14px; font-variant-numeric: tabular-nums; }

.qrg-cal-pop {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 12px;
}

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

.qrg-cal-nav {
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}

.qrg-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 11px;
  color: rgba(233, 226, 255, 0.45);
}

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

.qrg-cal-empty { min-height: 34px; }

.qrg-cal-day {
  min-height: 34px;
  background: transparent;
  color: #fff;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.qrg-cal-time {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
  padding-top: 12px;
}

.qrg-cal-time label {
  display: grid;
  gap: 4px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: rgba(233, 226, 255, 0.55) !important;
}

.qrg-cal-done {
  border: none;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  height: 40px;
}
