:root {
  --red: #c8102e;
  --red-dark: #9e0b22;
  --red-soft: #fff1f3;
  --black: #111115;
  --charcoal: #1e1e24;
  --bg: #f6f6f8;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #18181b;
  --muted: #52525b;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 17, 21, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(200, 16, 46, 0.12);
}

a {
  color: inherit;
}

.topbar {
  background: linear-gradient(135deg, var(--black) 0%, #2a060d 65%, var(--red-dark) 100%);
  color: #fff;
  padding: 20px 24px;
  border-bottom: 4px solid var(--red);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fda4af;
  margin-bottom: 4px;
}

.brand-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-title span {
  color: #ff4d67;
}

.event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.container {
  max-width: 1180px;
  margin: 28px auto 48px;
  padding: 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.grid-2 > * {
  min-width: 0;
}

@media (max-width: 920px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
}

.card-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin-bottom: 7px;
}

.req {
  color: var(--red);
}

input[type="text"],
input[type="tel"],
input[type="password"],
input[type="search"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d4d4d8;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.phone-wrap {
  display: flex;
  align-items: stretch;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: #f4f4f5;
  border: 1.5px solid #d4d4d8;
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
}

.phone-wrap input {
  border-radius: 0 10px 10px 0;
}

.agree-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--red-soft);
  border: 1.5px solid #fecdd3;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.agree-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--red);
  flex-shrink: 0;
  cursor: pointer;
}

.agree-box span {
  font-size: 14px;
  font-weight: 600;
  color: #3f1d24;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--red-dark);
}

.btn-dark {
  background: var(--black);
  color: #fff;
}

.btn-dark:hover:not(:disabled) {
  background: #27272f;
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1.5px solid #d4d4d8;
}

.btn-outline:hover:not(:disabled) {
  background: #f4f4f5;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-success {
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  color: var(--success);
}

.hidden {
  display: none !important;
}

.highlight-card {
  background: linear-gradient(160deg, var(--black) 0%, #2b070e 100%);
  color: #fff;
  border: none;
}

.highlight-card .card-title {
  color: #fff;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  margin: 14px 0;
}

.price-amount {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.slot-badge {
  background: var(--red);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.benefit-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: #e4e4e7;
}

.benefit-list li {
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fafafa;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-pending {
  background: #f4f4f5;
  color: #3f3f46;
}

.badge-selected {
  background: var(--success-soft);
  color: var(--success);
}

.badge-waitlist {
  background: #fef2f2;
  color: #b91c1c;
}

.badge-draw {
  background: var(--warning-soft);
  color: var(--warning);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 820px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.kpi-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--black);
}

.kpi-value.red {
  color: var(--red);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar > * {
  flex: 1 1 170px;
}

.section-gap {
  margin-top: 24px;
}

.receipt-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 22px;
}

.receipt-id {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 21, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.draw-drum {
  background: linear-gradient(135deg, #111115 0%, #3a0812 100%);
  color: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  margin: 16px 0;
}

.draw-drum-name {
  font-size: 26px;
  font-weight: 800;
  margin: 8px 0 4px;
  color: #fff;
}

.chapter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.chip.inactive {
  opacity: 0.5;
  text-decoration: line-through;
}

.chip button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--red);
  font-weight: 800;
  padding: 0 2px;
}

.multi-select {
  position: relative;
}

.multi-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #d4d4d8;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.multi-trigger:focus,
.multi-select.open .multi-trigger {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.multi-trigger-placeholder {
  color: var(--muted);
}

.multi-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #d4d4d8;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(17, 17, 21, 0.14);
  z-index: 30;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}

.multi-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.multi-option:hover {
  background: #f4f4f5;
}

.multi-option.selected {
  background: var(--red-soft);
}

.multi-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.multi-option-left input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex-shrink: 0;
  cursor: pointer;
}

.multi-option-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
}

.multi-option-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-dark);
  white-space: nowrap;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.selected-tag button {
  border: none;
  background: none;
  color: #fda4af;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}

.selected-summary {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red-dark);
}

.rate-row-selected {
  background: var(--red-soft);
}

.multi-dropdown-footer {
  position: sticky;
  bottom: -6px;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 6px 4px;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.chapter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chapter-form input {
  flex: 1 1 200px;
}

@media (max-width: 720px) {
  .topbar {
    padding: 16px;
  }

  .topbar-inner {
    gap: 12px;
  }

  .brand-title {
    font-size: 22px;
  }

  .pill {
    font-size: 11px;
    padding: 3px 10px;
  }

  .nav-link {
    padding: 8px 13px;
    font-size: 13px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .nav-link,
  .admin-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .container {
    margin: 16px auto 32px;
    padding: 0 12px;
  }

  .card {
    padding: 16px;
    border-radius: 12px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  /* Prevent iOS Safari zoom on focus */
  input[type="text"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  select,
  .multi-trigger {
    font-size: 16px;
    min-height: 46px;
  }

  .multi-dropdown {
    max-height: 55vh;
  }

  .multi-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px;
  }

  .multi-option-meta {
    padding-left: 28px;
    font-size: 12px;
  }

  .selected-tag {
    max-width: 100%;
    white-space: normal;
  }

  .price-amount {
    font-size: 24px;
  }

  .kpi-grid {
    gap: 10px;
    margin-bottom: 16px;
  }

  .kpi-card {
    padding: 14px;
  }

  .kpi-value {
    font-size: 24px;
  }

  .toolbar > * {
    flex: 1 1 100%;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  .modal {
    padding: 18px 16px;
    max-height: 92dvh;
    border-radius: 16px;
  }

  .draw-drum {
    padding: 20px 14px;
  }

  .draw-drum-name {
    font-size: 21px;
  }

  /* Responsive card layout for Admin tables on mobile */
  .mobile-cards-table thead {
    display: none;
  }

  .mobile-cards-table,
  .mobile-cards-table tbody,
  .mobile-cards-table tr,
  .mobile-cards-table td {
    display: block;
    width: 100%;
  }

  .mobile-cards-table tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fff;
  }

  .mobile-cards-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #e4e4e7;
    text-align: right;
    font-size: 13px;
  }

  .mobile-cards-table td:last-child {
    border-bottom: none;
    padding-top: 10px;
  }

  .mobile-cards-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
  }

  .mobile-cards-table td[colspan]::before {
    display: none;
  }

  .mobile-cards-table td[colspan] {
    display: block;
    text-align: center;
  }
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0 20px;
}

.ascensify-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--black) 0%, #231018 100%);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
}

.ascensify-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ascensify-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red) 0%, #ff4d67 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

.ascensify-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fda4af;
  font-weight: 700;
}

.ascensify-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ascensify-tagline {
  font-size: 12px;
  color: #a1a1aa;
  font-weight: 500;
}

.pill-brand {
  background: rgba(255, 77, 103, 0.18);
  border-color: rgba(255, 77, 103, 0.45);
  color: #ffe4e6;
  text-decoration: none;
  transition: background 0.15s ease;
}

a.pill-brand:hover {
  background: rgba(255, 77, 103, 0.32);
}

.ascensify-link {
  color: #ffe4e6;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 228, 230, 0.55);
}

.ascensify-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

@media (max-width: 720px) {
  .site-footer {
    padding: 0 12px;
    margin-bottom: 24px;
  }

  .ascensify-bar {
    padding: 14px 16px;
  }
}



