* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #d9d9d9;
  color: #222;
}

.success-box {
  padding: 15px;
  background: #e9f8ee;
  border: 1px solid #34a853;
  border-radius: 10px;
}

.error-box {
  padding: 15px;
  background: #fdeaea;
  border: 1px solid #d93025;
  color: #b00020;
  border-radius: 10px;
  font-weight: 600;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ================================
   RUNXERA PUBLIC THEME MENU
================================ */

:root {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

/* Header hamburger button */
.hub-header-inner,
.event-header-inner {
  justify-content: space-between;
}

.runxera-menu-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}

.runxera-menu-button span,
.runxera-menu-button span::before,
.runxera-menu-button span::after {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  content: "";
  position: relative;
}

.runxera-menu-button span::before {
  position: absolute;
  top: -7px;
}

.runxera-menu-button span::after {
  position: absolute;
  top: 7px;
}

.runxera-menu-button:active {
  transform: scale(0.96);
}

html[data-theme="dark"] .runxera-menu-button {
  color: #f7d36b;
}

.runxera-side-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.runxera-side-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10030;
  width: min(360px, 88vw);
  height: 100dvh;
  max-height: 100dvh;
  padding: 22px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  background: #ffffff;
  color: #111827;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.22);
  transform: translateX(105%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.runxera-side-panel::-webkit-scrollbar {
  width: 8px;
}

.runxera-side-panel::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

html[data-theme="dark"] .runxera-side-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
}

html.runxera-menu-open .runxera-side-backdrop {
  opacity: 1;
  pointer-events: auto;
}

html.runxera-menu-open .runxera-side-panel {
  transform: translateX(0);
}

.runxera-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.runxera-side-head strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.runxera-side-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.runxera-side-section {
  display: grid;
  gap: 12px;
}

.runxera-side-section small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.runxera-theme-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.runxera-theme-option {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.runxera-theme-option span {
  display: none;
}

.runxera-theme-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.runxera-theme-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.runxera-theme-option.is-active {
  background: rgba(0, 0, 0, 0.08);
}

.runxera-side-links {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.runxera-side-links a,
.runxera-side-links button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  color: inherit;
  text-decoration: none;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: transparent;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.runxera-follow-section {
  margin-top: 8px;
  padding-top: 8px;
}

.runxera-follow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}

.runxera-follow-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

html[data-theme="dark"] .runxera-follow-link {
  color: #f9fafb;
}

html[data-theme="dark"] body {
  background: #070b12;
  color: #e5e7eb;
}

/* ================================
   RUNXERA DARK MODE - GREY CARDS
================================ */

html[data-theme="dark"] body,
html[data-theme="dark"] body.event-page,
html[data-theme="dark"] .landing-page {
  background: #0b0f17;
  color: #e5e7eb;
}

html[data-theme="dark"] .events-section,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .event-info-section,
html[data-theme="dark"] .registration-section {
  background: #0b0f17;
}

html[data-theme="dark"] .event-type {
  color: #bfdbfe;
}

/* Main cards */
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .carousel-event-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .terms-card,
html[data-theme="dark"] .event-info-card,
html[data-theme="dark"] .registration-card,
html[data-theme="dark"] .additional-participant-card,
html[data-theme="dark"] .event-terms-dialog {
  background: #1f2937;
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .about-card h1,
html[data-theme="dark"] .about-card h2,
html[data-theme="dark"] .about-card h3,
html[data-theme="dark"] .terms-card h1,
html[data-theme="dark"] .terms-card h2,
html[data-theme="dark"] .terms-card h3,
html[data-theme="dark"] .event-info-card h1,
html[data-theme="dark"] .event-info-card h2,
html[data-theme="dark"] .event-info-card h3,
html[data-theme="dark"] .registration-card h1,
html[data-theme="dark"] .registration-card h2,
html[data-theme="dark"] .registration-card h3 {
  color: #f9fafb;
}

/* Inner boxes */
html[data-theme="dark"] .event-info-grid div,
html[data-theme="dark"] .event-detail-item,
html[data-theme="dark"] .racepack-card,
html[data-theme="dark"] .promo-code-box,
html[data-theme="dark"] .registration-form-summary,
html[data-theme="dark"] .review-participant-card,
html[data-theme="dark"] .event-consent-box,
html[data-theme="dark"] .checkout-summary-box .order-summary-card {
  background: transparent;
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Headings / strong text inside cards */
html[data-theme="dark"] .section-head-left h2,
html[data-theme="dark"] .event-card h3,
html[data-theme="dark"] .event-info-grid strong,
html[data-theme="dark"] .event-info-grid span,
html[data-theme="dark"] .event-detail-item strong,
html[data-theme="dark"] .racepack-public-cell strong,
html[data-theme="dark"] .event-info-head h2,
html[data-theme="dark"] .registration-head h2,
html[data-theme="dark"] .additional-participant-head h3,
html[data-theme="dark"] .order-summary-head p,
html[data-theme="dark"] .order-summary-row strong,
html[data-theme="dark"] .order-summary-row.total span,
html[data-theme="dark"] .order-summary-row.total strong,
html[data-theme="dark"] .promo-code-area label,
html[data-theme="dark"] .review-participant-card h4,
html[data-theme="dark"] .review-item strong,
html[data-theme="dark"] .event-terms-dialog h2,
html[data-theme="dark"] .event-terms-content h3,
html[data-theme="dark"] .hub-footer strong,
html[data-theme="dark"] .contact-row a,
html[data-theme="dark"] .contact-row span {
  color: #f9fafb;
}

/* Secondary text */
html[data-theme="dark"] .event-description-text,
html[data-theme="dark"] .event-long-description,
html[data-theme="dark"] .about-card p,
html[data-theme="dark"] .terms-card p,
html[data-theme="dark"] .event-info-grid small,
html[data-theme="dark"] .event-detail-item small,
html[data-theme="dark"] .racepack-public-cell small,
html[data-theme="dark"] .review-item small,
html[data-theme="dark"] .field-hint,
html[data-theme="dark"] .order-summary-row span,
html[data-theme="dark"] .event-consent-label,
html[data-theme="dark"] .event-terms-content p,
html[data-theme="dark"] .event-terms-content li,
html[data-theme="dark"] .contact-row small {
  color: #cbd5e1;
}

/* Inputs */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #0b1120;
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: #d9a441;
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.18);
}

/* Primary buttons - gold */
html[data-theme="dark"] .open-registration-btn,
html[data-theme="dark"] .register-btn,
html[data-theme="dark"] #applyPromoBtn,
html[data-theme="dark"] .event-terms-close {
  background: linear-gradient(135deg, #f7d36b, #d9a441);
  color: #111827;
  border: 0;
  box-shadow: 0 12px 28px rgba(217, 164, 65, 0.22);
}

html[data-theme="dark"] .access-code-modal-backdrop {
  background: rgba(2, 6, 23, 0.78);
}

html[data-theme="dark"] .access-code-modal-card {
  background: #1f2937;
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .access-code-modal-card h2 {
  color: #f9fafb;
}

html[data-theme="dark"] .access-code-modal-card p {
  color: #cbd5e1;
}

html[data-theme="dark"] .access-code-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .access-code-input-row input {
  background: #0b1120;
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .access-code-input-row input::placeholder {
  color: #cbd5e1;
}

html[data-theme="dark"] .access-code-input-row input:focus {
  border-color: #d9a441;
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.18);
}

html[data-theme="dark"] .access-code-input-row button {
  background: linear-gradient(135deg, #f7d36b, #d9a441);
  color: #111827;
  box-shadow: 0 12px 28px rgba(217, 164, 65, 0.22);
}

html[data-theme="dark"] .access-code-input-row button:disabled {
  background: #374151;
  color: #9ca3af;
  box-shadow: none;
}

html[data-theme="dark"] .access-code-message.is-error {
  color: #fca5a5;
}

html[data-theme="dark"] .access-code-message.is-success {
  color: #86efac;
}

/* Secondary buttons */
html[data-theme="dark"] .cancel-registration-btn {
  background: #111827;
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .add-participant-btn {
  background: rgba(217, 164, 65, 0.12);
  color: #f7d36b;
  border-color: rgba(217, 164, 65, 0.55);
}

html[data-theme="dark"] .remove-participant-btn {
  background: rgba(220, 38, 38, 0.16);
  color: #fecaca;
}

/* Disabled buttons */
html[data-theme="dark"] .open-registration-btn:disabled,
html[data-theme="dark"] .register-btn:disabled,
html[data-theme="dark"] button:disabled {
  background: #374151;
  color: #9ca3af;
  box-shadow: none;
}

/* Borders */
html[data-theme="dark"] .racepack-collection-public-row,
html[data-theme="dark"] .contact-row,
html[data-theme="dark"] .checkout-summary-box .order-summary-card,
html[data-theme="dark"] .order-summary-row.total,
html[data-theme="dark"] .event-long-description {
  border-color: rgba(255, 255, 255, 0.10);
}

/* Links */
html[data-theme="dark"] a,
html[data-theme="dark"] .event-detail-link {
  color: #f7d36b;
}

html[data-theme="dark"] .registration-divider {
  background: linear-gradient(
    90deg,
    transparent,
    #cbd5e1,
    transparent
  );
}

html[data-theme="dark"] .footer-links a {
  color: #cbd5e1;
}

html[data-theme="dark"] .footer-links a:hover {
  color: #f7d36b;
}

/* ================================
   RUNXERA FOOTER RESERVE
================================ */

.hub-footer[data-runxera-footer] {
  min-height: 214px;
  contain-intrinsic-size: auto 214px;
}

.hub-footer[data-runxera-footer][data-runxera-footer-social="1"] {
  min-height: 244px;
  contain-intrinsic-size: auto 244px;
}

@media (max-width: 640px) {
  .hub-footer[data-runxera-footer] {
    min-height: 230px;
    contain-intrinsic-size: auto 230px;
  }

  .hub-footer[data-runxera-footer][data-runxera-footer-social="1"] {
    min-height: 260px;
    contain-intrinsic-size: auto 260px;
  }
}

/* Footer */
html[data-theme="dark"] .hub-footer {
  background: #0b0f17;
  color: #cbd5e1;
}

html[data-theme="dark"] .hub-footer strong {
  color: #f7d36b;
}

html[data-theme="dark"] .hub-footer span {
  color: #cbd5e1;
}

html[data-theme="dark"] .footer-social {
  color: #cbd5e1;
}

html[data-theme="dark"] .footer-facebook-btn {
  color: #fff !important;
}

/* Header remains bright for logo visibility */
html[data-theme="dark"] .hub-header,
html[data-theme="dark"] .event-header {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.98) 0%,
    rgba(255,255,255,0.92) 32%,
    rgba(255,255,255,0.45) 58%,
    rgba(255,255,255,0) 100%
  );
  border-bottom-color: rgba(255,255,255,0.12);
}

html[data-theme="dark"] .runxera-side-panel {
  background: #0f172a;
  color: #f9fafb;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .runxera-side-close {
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

html[data-theme="dark"] .runxera-side-section small {
  color: #94a3b8;
}

html[data-theme="dark"] .runxera-theme-option {
  background: rgba(255, 255, 255, 0.06);
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .runxera-theme-option.is-active {
  background: linear-gradient(135deg, #f7d36b, #d9a441);
  color: #111827;
  border-color: #d9a441;
}

html[data-theme="dark"] .runxera-side-links a,
html[data-theme="dark"] .runxera-side-links button {
  color: #f9fafb;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .event-terms-link {
  color: #e5e7eb;
}

/* Dark mode form label + placeholder fix */
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .promo-code-area label,
html[data-theme="dark"] .event-consent-label {
  color: #e5e7eb;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #cbd5e1;
  opacity: 1;
}

/* Chrome / Edge extra safety */
html[data-theme="dark"] input::-webkit-input-placeholder,
html[data-theme="dark"] textarea::-webkit-input-placeholder {
  color: #cbd5e1;
  opacity: 1;
}

/* Select default text, contoh "Select category" */
html[data-theme="dark"] select:invalid,
html[data-theme="dark"] select option[value=""] {
  color: #cbd5e1;
}

/* Normal input/select text */
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
  color: #f9fafb;
}

html[data-theme="dark"] .input-error {
  background: #fff1f2 !important;
  color: #111827 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

html[data-theme="dark"] .input-error::placeholder {
  color: #7f1d1d !important;
  opacity: 1;
}

html[data-theme="dark"] .input-error::-webkit-input-placeholder {
  color: #7f1d1d !important;
  opacity: 1;
}

/* SIDE PANEL ICON */

.runxera-theme-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(15, 23, 42, 0.08);
  color: currentColor;
}

.runxera-theme-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.runxera-theme-option.is-active .runxera-theme-icon {
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .runxera-theme-icon {
  background: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .runxera-theme-option.is-active .runxera-theme-icon {
  background: rgba(17, 24, 39, 0.16);
}

.runxera-organizer-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.runxera-organizer-form label {
  display: grid;
  gap: 6px;
}

.runxera-organizer-form label span {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.runxera-organizer-form input,
.runxera-organizer-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.runxera-organizer-form textarea {
  resize: vertical;
  min-height: 88px;
}

.runxera-organizer-form input:focus,
.runxera-organizer-form textarea:focus {
  border-color: rgba(180, 133, 32, 0.72);
  box-shadow: 0 0 0 3px rgba(180, 133, 32, 0.14);
}

.runxera-organizer-form input[type="file"] {
  padding: 10px;
  background: rgba(248, 250, 252, 0.9);
  cursor: pointer;
}

.runxera-organizer-form em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.45;
  color: #6b7280;
}

.runxera-organizer-status {
  margin: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.runxera-organizer-status[data-status="info"],
.runxera-organizer-status[data-status="loading"] {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.runxera-organizer-status[data-status="success"] {
  background: rgba(22, 163, 74, 0.11);
  color: #15803d;
}

.runxera-organizer-status[data-status="error"] {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.runxera-organizer-submit {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #b88721, #e1b85b);
  color: #1f1300;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(184, 135, 33, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.runxera-organizer-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(184, 135, 33, 0.28);
}

.runxera-organizer-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

html[data-theme="dark"] .runxera-organizer-modal {
  background: rgba(2, 6, 23, 0.78);
}

html[data-theme="dark"] .runxera-organizer-modal-card {
  --card-bg: #1f2937;
  --text: #f9fafb;
  --muted: #cbd5e1;

  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .runxera-organizer-modal-head {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .runxera-organizer-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

html[data-theme="dark"] .runxera-policy-check a {
  color: #f7d36b;
}

html[data-theme="dark"] .runxera-organizer-form label span,
html[data-theme="dark"] .runxera-organizer-form em {
  color: #cbd5e1;
}

html[data-theme="dark"] .runxera-organizer-form input,
html[data-theme="dark"] .runxera-organizer-form textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

html[data-theme="dark"] .runxera-organizer-form input::placeholder,
html[data-theme="dark"] .runxera-organizer-form textarea::placeholder {
  color: #94a3b8;
}

html[data-theme="dark"] .runxera-organizer-form input[type="file"] {
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .runxera-organizer-status[data-status="info"],
html[data-theme="dark"] .runxera-organizer-status[data-status="loading"] {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

html[data-theme="dark"] .runxera-organizer-status[data-status="success"] {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

html[data-theme="dark"] .runxera-organizer-status[data-status="error"] {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.runxera-organizer-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.runxera-organizer-modal[hidden] {
  display: none;
}

.runxera-organizer-modal-card {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px;
  background: var(--card-bg, #fff);
  color: var(--text, #0f172a);
  padding: 18px;
  box-shadow: 0 24px 90px rgba(0,0,0,0.28);
}

.runxera-organizer-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.runxera-organizer-modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.runxera-organizer-modal-head p {
  margin: 5px 0 0;
  color: var(--muted, #64748b);
  font-size: 13px;
}

.runxera-organizer-modal-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}

.runxera-policy-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 12px;
  font-size: 12px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.runxera-policy-check input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.runxera-policy-check a {
  color: #2563eb;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.runxera-organizer-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .runxera-organizer-modal {
    align-items: center;
    padding: 8px;
  }

  .runxera-organizer-modal-card {
    max-height: 92vh;
    border-radius: 22px;
    padding: 15px;
  }

  .runxera-organizer-modal-head h2 {
    font-size: 18px;
  }
}

/* ================================
   RUNXERA CHECK STATUS MODAL
================================ */

.runxera-check-status-modal {
  position: fixed;
  inset: 0;
  z-index: 10055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.runxera-check-status-modal[hidden] {
  display: none;
}

.runxera-check-status-modal-card {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px;
  background: var(--card-bg, #fff);
  color: var(--text, #0f172a);
  padding: 18px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.runxera-check-status-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.runxera-check-status-modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.runxera-check-status-modal-head p {
  margin: 5px 0 0;
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1.45;
}

.runxera-check-status-modal-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}

.runxera-check-status-form {
  display: grid;
  gap: 12px;
  padding: 4px 0 10px;
}

.runxera-check-status-form label {
  display: grid;
  gap: 7px;
}

.runxera-check-status-form label span {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.runxera-check-status-form input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  padding: 12px;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.runxera-check-status-form input:focus {
  border-color: rgba(180, 133, 32, 0.72);
  box-shadow: 0 0 0 3px rgba(180, 133, 32, 0.14);
}

.runxera-check-status-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #b88721, #e1b85b);
  color: #1f1300;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(184, 135, 33, 0.22);
}

.runxera-check-status-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.runxera-check-status-message {
  margin: 0 0 12px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.runxera-check-status-message[data-status="loading"] {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.runxera-check-status-message[data-status="success"] {
  background: rgba(22, 163, 74, 0.11);
  color: #15803d;
}

.runxera-check-status-message[data-status="error"] {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.runxera-check-status-result {
  display: grid;
  gap: 12px;
}

.runxera-check-status-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.runxera-check-status-list-head strong {
  font-size: 13px;
  color: #111827;
}

.runxera-check-status-list-head span {
  font-size: 11px;
  font-weight: 900;
  color: #6b7280;
  text-transform: uppercase;
}

.runxera-check-status-events {
  display: grid;
  gap: 8px;
}

.runxera-check-status-event-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.runxera-check-status-event-btn.is-active {
  border-color: #b88721;
  background: rgba(184, 135, 33, 0.1);
}

.runxera-check-status-event-btn span {
  font-size: 13px;
  font-weight: 900;
}

.runxera-check-status-event-btn small {
  font-size: 10px;
  font-weight: 900;
  color: #6b7280;
  white-space: nowrap;
}

.runxera-check-status-detail {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 12px;
}

.runxera-check-status-qr-wrap {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  background: #f8fafc;
  text-align: center;
}

.runxera-check-status-qr {
  width: 168px;
  height: 168px;
  border-radius: 12px;
  display: block;
  background: #fff;
}

.runxera-check-status-qr-wrap strong {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #111827;
}

.runxera-check-status-qr-wrap span {
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.runxera-check-status-participants {
  display: grid;
  gap: 8px;
}

.runxera-check-status-participant {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.runxera-check-status-participant small,
.runxera-check-status-address small {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  color: #6b7280;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.runxera-check-status-participant strong,
.runxera-check-status-address strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #111827;
}

.runxera-check-status-address {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.runxera-check-status-actions {
  display: grid;
  gap: 8px;
}

.runxera-check-status-download {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  min-height: 46px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.runxera-check-status-download:disabled {
  cursor: wait;
  opacity: 0.7;
}

.runxera-check-status-modal-open {
  overflow: hidden;
}

.runxera-check-status-form[hidden],
.runxera-check-status-result[hidden],
.runxera-check-status-detail[hidden] {
  display: none !important;
}

html[data-theme="dark"] .runxera-check-status-modal {
  background: rgba(2, 6, 23, 0.78);
}

html[data-theme="dark"] .runxera-check-status-modal-card {
  --card-bg: #1f2937;
  --text: #f9fafb;
  --muted: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .runxera-check-status-modal-head,
html[data-theme="dark"] .runxera-check-status-detail {
  border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .runxera-check-status-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

html[data-theme="dark"] .runxera-check-status-form label span,
html[data-theme="dark"] .runxera-check-status-list-head span,
html[data-theme="dark"] .runxera-check-status-event-btn small,
html[data-theme="dark"] .runxera-check-status-qr-wrap span,
html[data-theme="dark"] .runxera-check-status-participant small,
html[data-theme="dark"] .runxera-check-status-address small {
  color: #cbd5e1;
}

html[data-theme="dark"] .runxera-check-status-form input,
html[data-theme="dark"] .runxera-check-status-event-btn,
html[data-theme="dark"] .runxera-check-status-qr-wrap,
html[data-theme="dark"] .runxera-check-status-participant,
html[data-theme="dark"] .runxera-check-status-address {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

html[data-theme="dark"] .runxera-check-status-form input::placeholder {
  color: #94a3b8;
}

html[data-theme="dark"] .runxera-check-status-download {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
}

html[data-theme="dark"] .runxera-check-status-list-head strong,
html[data-theme="dark"] .runxera-check-status-qr-wrap strong,
html[data-theme="dark"] .runxera-check-status-participant strong,
html[data-theme="dark"] .runxera-check-status-address strong {
  color: #f9fafb;
}

html[data-theme="dark"] .runxera-check-status-event-btn.is-active {
  border-color: #f7d36b;
  background: rgba(247, 211, 107, 0.12);
}

html[data-theme="dark"] .runxera-check-status-message[data-status="loading"] {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

html[data-theme="dark"] .runxera-check-status-message[data-status="success"] {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

html[data-theme="dark"] .runxera-check-status-message[data-status="error"] {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

@media (max-width: 640px) {
  .runxera-check-status-modal {
    align-items: center;
    padding: 8px;
  }

  .runxera-check-status-modal-card {
    max-height: 92vh;
    border-radius: 22px;
    padding: 15px;
  }

  .runxera-check-status-modal-head h2 {
    font-size: 18px;
  }

  .runxera-check-status-participant {
    grid-template-columns: 1fr;
  }
}

/* D.O.B date input dark mode fix */
html[data-theme="dark"] input[type="date"] {
  background: #0b1120 !important;
  color: #f9fafb !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color-scheme: dark;
}

html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-fields-wrapper,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-text,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-month-field,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-day-field,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-year-field {
  color: #f9fafb;
}

html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.35);
  opacity: 0.9;
}

html[data-theme="dark"] input[type="date"]:disabled,
html[data-theme="dark"] input[type="date"][readonly] {
  background: #111827 !important;
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1;
  opacity: 1;
}

html[data-theme="dark"] input[type="date"]:focus {
  border-color: #d9a441 !important;
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.18) !important;
}
/* ================================
   SINGLE EVENT MENU + STATUS POLISH
================================ */

.runxera-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(15, 23, 42, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

html.runxera-menu-open .runxera-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.runxera-side-head > div {
  min-width: 0;
}

.runxera-side-head span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.runxera-theme-option {
  width: auto !important;
  min-width: 64px;
  height: 38px;
  padding: 0 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.runxera-theme-option.is-active {
  background: #111827 !important;
  color: #ffffff !important;
}

.runxera-check-status-detail-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 14px;
  background: #f8fafc;
}

.runxera-check-status-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.runxera-check-status-detail-top strong {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.runxera-check-status-detail-top span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 10px;
  font-weight: 950;
}

.runxera-check-status-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.runxera-check-status-kv div {
  min-width: 0;
}

.runxera-check-status-kv dt {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.runxera-check-status-kv dd {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.runxera-check-status-empty {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="dark"] .runxera-side-head span {
  color: #94a3b8;
}

html[data-theme="dark"] .runxera-theme-option.is-active {
  background: linear-gradient(135deg, #f7d36b, #d9a441) !important;
  color: #111827 !important;
}

html[data-theme="dark"] .runxera-check-status-detail-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .runxera-check-status-detail-top strong,
html[data-theme="dark"] .runxera-check-status-kv dd {
  color: #f9fafb;
}

@media (max-width: 560px) {
  .runxera-check-status-kv {
    grid-template-columns: 1fr;
  }
}
