:root {
  --single-bg: #eef2f6;
  --single-card: #ffffff;
  --single-ink: #0f172a;
  --single-muted: #64748b;
  --single-line: rgba(15, 23, 42, 0.10);
  --single-soft: #f8fafc;
  --single-primary: #111827;
  --single-gold: #d9a441;
  --single-shadow: 0 20px 55px rgba(15, 23, 42, 0.10);
  --single-radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body.single-event-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 164, 65, 0.18), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.12), transparent 30%),
    var(--single-bg);
  color: var(--single-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.single-wrap {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.single-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.single-site-header-inner {
  max-width: 1180px;
  min-height: 70px;
  padding: 10px 16px !important;
  gap: 16px;
}

.single-site-brand {
  min-width: 0;
  gap: 12px;
}

.single-site-brand .hub-wordmark-img {
  height: 42px;
}

.single-site-brand-text {
  display: inline-flex;
  padding-left: 12px;
  border-left: 1px solid rgba(15, 23, 42, 0.12);
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.single-header-nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-header-nav a,
.single-header-nav button {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.single-header-nav a:hover,
.single-header-nav button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.single-site-header .runxera-menu-button {
  display: none;
  color: #0f172a !important;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.single-hero {
  padding: 34px 0 10px;
}

.single-hero-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 0;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92) 54%, rgba(15, 23, 42, 0.98)),
    #111827;
  color: #ffffff;
  box-shadow: 0 34px 95px rgba(15, 23, 42, 0.22);
}

.single-hero-shell::before {
  content: "";
  position: absolute;
  inset: -25% auto auto -12%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.18);
  filter: blur(4px);
}

.single-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.single-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fef3c7;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.single-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.single-hero h1 {
  margin: 20px 0 14px;
  max-width: 740px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.93;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.single-tagline {
  max-width: 640px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.single-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.single-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.single-btn:hover {
  transform: translateY(-1px);
}

.single-btn-primary {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20);
}

.single-btn-ghost,
.single-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.single-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.single-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
}

.single-trust-row span::before {
  content: "✓";
  color: #fde68a;
  font-weight: 950;
}

.single-banner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  margin: 0;
  background: #0f172a;
}

.single-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.35), transparent 40%);
  pointer-events: none;
}

.single-banner img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
}

.single-overview {
  position: relative;
  z-index: 3;
  margin-top: -44px;
  padding-bottom: 10px;
}

.single-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.single-meta article {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--single-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.single-meta small {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-meta strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.single-section {
  padding: 24px 0 56px;
}

.single-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.single-card {
  min-width: 0;
  border: 1px solid var(--single-line);
  border-radius: var(--single-radius);
  background: var(--single-card);
  box-shadow: var(--single-shadow);
}

.single-info-card {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.single-form-card {
  padding: clamp(18px, 3vw, 28px);
}

.single-card-head {
  margin-bottom: 18px;
}

.single-card-head span {
  display: block;
  margin-bottom: 7px;
  color: #b45309;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-card h2,
.single-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.single-card-head p,
.single-card > p {
  margin: 12px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.single-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.single-list h3 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.single-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px 13px;
  background: #f8fafc;
}

.single-list-row strong {
  min-width: 0;
  color: #0f172a;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.single-list-row span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.single-price {
  flex: 0 0 auto;
  color: #0f172a !important;
  font-weight: 950 !important;
  white-space: nowrap;
}

.reg-form {
  display: grid;
  gap: 16px;
}

.form-section {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
}

.form-section h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reg-form label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.reg-form input,
.reg-form select,
.reg-form textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  padding: 12px 13px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.reg-form textarea {
  min-height: 92px;
  resize: vertical;
}

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
  border-color: rgba(217, 164, 65, 0.85);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.16);
}

.form-note {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

.summary-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: #f8fafc;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 14px;
}

.summary-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-row strong {
  color: #0f172a;
  white-space: nowrap;
}

.summary-row.total {
  margin-top: 5px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  padding-top: 12px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.form-status {
  margin: 0;
  border-radius: 16px;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.form-status[data-status="error"] {
  border: 1px solid rgba(185, 28, 28, 0.15);
  background: #fef2f2;
  color: #991b1b;
}

.form-status[data-status="success"] {
  border: 1px solid rgba(5, 150, 105, 0.15);
  background: #ecfdf5;
  color: #065f46;
}

.form-status[data-status="loading"] {
  border: 1px solid rgba(29, 78, 216, 0.15);
  background: #eff6ff;
  color: #1d4ed8;
}

.single-btn-submit {
  width: 100%;
  min-height: 54px;
  background: linear-gradient(135deg, #111827, #263241);
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.20);
}

.success-card {
  max-width: 760px;
  margin: 30px auto;
  text-align: center;
}

.success-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 950;
  background: #fef3c7;
  color: #92400e;
}

.success-status.paid {
  background: #dcfce7;
  color: #166534;
}

.success-status.failed {
  background: #fee2e2;
  color: #991b1b;
}

.qr-canvas {
  margin: 16px auto 6px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
}

html[data-theme="dark"] body.single-event-page,
html[data-theme="dark"] .single-event-page {
  --single-bg: #0b0f17;
  --single-card: #111827;
  --single-ink: #f9fafb;
  --single-muted: #cbd5e1;
  --single-line: rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 164, 65, 0.14), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.10), transparent 30%),
    #0b0f17;
  color: #f9fafb;
}

html[data-theme="dark"] .single-site-header {
  background: rgba(15, 23, 42, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] .single-site-brand-text,
html[data-theme="dark"] .single-header-nav a,
html[data-theme="dark"] .single-header-nav button {
  color: #e2e8f0;
}

html[data-theme="dark"] .single-site-header .runxera-menu-button,
html[data-theme="dark"] .single-header-nav a:hover,
html[data-theme="dark"] .single-header-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb !important;
  border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .single-meta article,
html[data-theme="dark"] .single-card,
html[data-theme="dark"] .form-section {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .single-meta strong,
html[data-theme="dark"] .single-card h2,
html[data-theme="dark"] .single-card-head h2,
html[data-theme="dark"] .single-list h3,
html[data-theme="dark"] .single-list-row strong,
html[data-theme="dark"] .form-section h3,
html[data-theme="dark"] .summary-row strong,
html[data-theme="dark"] .summary-row.total {
  color: #f9fafb;
}

html[data-theme="dark"] .single-meta small,
html[data-theme="dark"] .single-card-head p,
html[data-theme="dark"] .single-card > p,
html[data-theme="dark"] .reg-form label,
html[data-theme="dark"] .summary-row,
html[data-theme="dark"] .form-note {
  color: #cbd5e1;
}

html[data-theme="dark"] .single-list-row,
html[data-theme="dark"] .summary-box {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .reg-form input,
html[data-theme="dark"] .reg-form select,
html[data-theme="dark"] .reg-form textarea {
  background: #0b1220;
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .single-header-nav {
    display: none;
  }

  .single-site-header .runxera-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .single-hero-shell,
  .single-grid {
    grid-template-columns: 1fr;
  }

  .single-banner {
    order: -1;
  }

  .single-banner::after {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.48), transparent 50%);
  }

  .single-banner img {
    min-height: 310px;
    max-height: 430px;
  }

  .single-info-card {
    position: static;
  }

  .single-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .single-wrap {
    width: min(100% - 24px, 1180px);
  }

  .single-site-header-inner {
    min-height: 62px;
    padding: 8px 12px !important;
  }

  .single-site-brand .hub-wordmark-img {
    height: 36px;
    max-width: 152px;
  }

  .single-site-brand-text {
    display: none;
  }

  .single-hero {
    padding-top: 18px;
  }

  .single-hero-shell {
    min-height: 0;
    border-radius: 26px;
  }

  .single-banner img {
    min-height: 240px;
  }

  .single-hero-copy {
    padding: 24px 18px 22px;
  }

  .single-hero h1 {
    font-size: clamp(36px, 12vw, 54px);
    letter-spacing: -0.06em;
  }

  .single-cta-row,
  .single-trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .single-btn {
    width: 100%;
  }

  .single-overview {
    margin-top: 12px;
  }

  .single-meta,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .single-section {
    padding-top: 14px;
  }

  .single-card,
  .form-section {
    border-radius: 22px;
  }

  .single-info-card,
  .single-form-card {
    padding: 16px;
  }

  .single-list-row,
  .summary-row {
    align-items: flex-start;
  }

  .single-list-row {
    flex-direction: column;
    gap: 4px;
  }

  .single-list-row span {
    text-align: left;
  }
}
