/* Shared by the public purchase screens only. Dark is the default. */
:root:not([data-public-theme="light"]) {
  --bg-primary:#101410;
  --bg-secondary:#1a211b;
  --bg-card:#1a211b;
  --bg-card-hover:#242e25;
  --bg-input:#131a14;
  --accent-primary:#a3df48;
  --accent-secondary:#b8eb70;
  --accent-glow:rgba(163,223,72,.15);
  --border-focus:#a3df48;
  --text-primary:#f1f4ed;
  --text-secondary:#c3ccbf;
  --text-muted:#a7b1a3;
  --border-color:#354034;
  --danger:#ff9aab;
  --warning:#f4c76c;
  --success:#82ddb0;
  --gradient-accent:linear-gradient(110deg,#a3df48,#8fc937);
  --gradient-success:linear-gradient(135deg,#203e2e,#1b3024);
  --shadow-lg:0 16px 50px -20px #0009;
  color-scheme:dark;
}
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; flex-shrink:0; padding:0 8px; border:1px solid var(--border-color); border-radius:24px; background:var(--bg-card); color:var(--text-primary); cursor:pointer; font-size:16px; }
.theme-toggle-track { display:block; width:30px; height:18px; padding:3px; background:var(--border-color); border-radius:20px; }
.theme-toggle-track span { display:block; width:12px; height:12px; border-radius:50%; background:var(--accent-primary); transition:transform .2s; }
.theme-toggle[aria-checked="true"] .theme-toggle-track span { transform:translateX(12px); }
:root:not([data-public-theme="light"]) body.public-page { color-scheme:dark; }
:root:not([data-public-theme="light"]) :is(.event-card,.featured-slide .event-card,.date-badge,.event-date-badge,.carousel-controls button,.modal-box,.legal-content,.modal-btn,.legal-close,.state-card,.form-input,.form-select,.qr-card,.skip-link,.public-page .card-header,.public-page .success-header) { background:var(--bg-card); color:var(--text-primary); border-color:var(--border-color); }
:root:not([data-public-theme="light"]) :is(.card-image,.event-image,.support-strip,.order-summary,.qr-section,.modal-header,.group-banner,.group-success-banner,.tier-card.sold-out) { background:var(--bg-secondary); border-color:var(--border-color); }
:root:not([data-public-theme="light"]) :is(.card-footer,.featured-slide .card-footer,.orbit,.empty-events,.brand-header .nav-support,.purchase-steps li span,.detail-value.code) { border-color:var(--border-color); }
:root:not([data-public-theme="light"]) :is(.brand-button,.btn-buy,.modal-btn-confirm,.submit-btn,.btn-primary,.btn-confirm,.btn-copy,.purchase-steps [aria-current] span) { background:var(--accent-primary); color:#17230d; }
:root:not([data-public-theme="light"]) :is(.brand-button,.btn-buy,.modal-btn-confirm):hover { background:var(--accent-secondary); }
:root:not([data-public-theme="light"]) :is(.btn-buy:disabled,.btn-sold-out) { background:#293127; color:#bdc7b7; opacity:1; }
:root:not([data-public-theme="light"]) :is(.section-pill,.tier-card.selected,.tier-card.tier-group.selected,.public-page .success-icon,.qr-card-actions a,.purchase-steps .is-complete span) { background:#273a21; color:var(--accent-primary); border-color:#4b623d; }
:root:not([data-public-theme="light"]) :is(.section-pill.sold-out,.section-pill.section-sold-out,.section-pill.agotado) { background:#282e28; color:#a7b1a3; border-color:#3b4539; }
:root:not([data-public-theme="light"]) .step-number { background:var(--accent-primary); color:#17230d; }
:root:not([data-public-theme="light"]) .brand-ticket { box-shadow:14px 24px 0 #25311f; }
:root:not([data-public-theme="light"]) .footer { background:#090d09; }
:root:not([data-public-theme="light"]) .urgency-badge { background:#1a211b; color:#a3df48; }
:root:not([data-public-theme="light"]) :is(.tier-group-info,.order-row.group-info) { color:var(--warning); }
:root:not([data-public-theme="light"]) :is(.order-row.discount .value,.attendee-free-note) { color:var(--success); }
@media(max-width:700px) {
  .brand-header nav { gap:8px; }
  .theme-toggle { padding:0 6px; gap:4px; }
  .brand-header-inner { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { .theme-toggle-track span { transition:none; } }
