/* =============================================================================
   Aruba International Baseball Tournament — Registration Styles
   Brand Colors: Navy #1B2A4A, Red #C41E3A, Teal #2AAFBF, Gold #D4A017
   ============================================================================= */

:root {
  --navy: #1B2A4A;
  --navy-light: #2a3d66;
  --red: #C41E3A;
  --red-dark: #a11830;
  --teal: #2AAFBF;
  --teal-dark: #1f8a97;
  --gold: #D4A017;
  --white: #ffffff;
  --light-bg: #F0F7FA;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --green: #059669;
  --green-light: #d1fae5;
  --red-light: #fee2e2;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 36px;
}

.header-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.header-subtitle {
  font-size: 16px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-details {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.header-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.header-detail svg { flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   Main Container
   --------------------------------------------------------------------------- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---------------------------------------------------------------------------
   Form Sections
   --------------------------------------------------------------------------- */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-bg);
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon.player { background: #dbeafe; color: #2563eb; }
.section-icon.guardian { background: #d1fae5; color: #059669; }
.section-icon.emergency { background: #fee2e2; color: #dc2626; }
.section-icon.medical { background: #fef3c7; color: #d97706; }
.section-icon.payment { background: #ede9fe; color: #7c3aed; }

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------------------------------------------------------------------------
   Form Fields
   --------------------------------------------------------------------------- */
.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.two-col { grid-template-columns: 1fr 1fr; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-800);
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 175, 191, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.age-division-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: var(--navy);
  color: var(--white);
}

.age-division-badge.error {
  background: var(--red-light);
  color: var(--red);
}

.field-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ---------------------------------------------------------------------------
   Payment Plans
   --------------------------------------------------------------------------- */
.payment-plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-option {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.plan-option:hover {
  border-color: var(--teal);
  background: var(--light-bg);
}

.plan-option.selected {
  border-color: var(--teal);
  background: rgba(42, 175, 191, 0.06);
  box-shadow: 0 0 0 2px rgba(42, 175, 191, 0.2);
}

.plan-option.unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.plan-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.plan-info { flex: 1; }

.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--teal-dark);
}

.plan-price .per-month {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
}

.plan-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-unavailable-msg {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   Submit Button
   --------------------------------------------------------------------------- */
.submit-section {
  margin-top: 8px;
}

.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.3px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(0);
}

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

.submit-btn .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.submit-note {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

.submit-note svg {
  vertical-align: middle;
  margin-right: 4px;
}

/* ---------------------------------------------------------------------------
   Error Messages
   --------------------------------------------------------------------------- */
.form-errors {
  background: var(--red-light);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.form-errors h4 {
  color: var(--red);
  font-size: 14px;
  margin-bottom: 8px;
}

.form-errors ul {
  list-style: none;
  padding: 0;
}

.form-errors li {
  font-size: 13px;
  color: var(--red-dark);
  padding: 2px 0;
}

.form-errors li::before {
  content: '\2022';
  margin-right: 8px;
  color: var(--red);
}

/* ---------------------------------------------------------------------------
   Closed Registration Banner
   --------------------------------------------------------------------------- */
.registration-closed {
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.registration-closed h2 {
  color: var(--navy);
  font-size: 24px;
  margin-bottom: 8px;
}

.registration-closed p {
  color: var(--gray-500);
  font-size: 16px;
}

/* ---------------------------------------------------------------------------
   Success Page
   --------------------------------------------------------------------------- */
.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--green);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-card h1 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 8px;
}

.success-card .subtitle {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.success-details {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  margin: 0 auto;
  max-width: 400px;
}

.success-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}

.success-detail-row:last-child { border-bottom: none; }

.success-detail-row .label {
  color: var(--gray-500);
  font-weight: 500;
}

.success-detail-row .value {
  color: var(--navy);
  font-weight: 600;
}

.success-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
}

/* ---------------------------------------------------------------------------
   Cancel Page
   --------------------------------------------------------------------------- */
.cancel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
}

.cancel-card h1 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.cancel-card p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

.back-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.back-btn:hover {
  background: var(--navy-light);
}

/* ---------------------------------------------------------------------------
   Admin Dashboard
   --------------------------------------------------------------------------- */
.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.admin-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  font-size: 20px;
  font-weight: 700;
}

.admin-logout {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.admin-logout:hover { background: rgba(255,255,255,0.25); }

/* Admin Login */
.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 400px;
  margin: 80px auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-login-card h2 {
  color: var(--navy);
  margin-bottom: 4px;
}

.admin-login-card .sub {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 24px;
}

.admin-login-card input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 16px;
  text-align: center;
}

.admin-login-card input:focus {
  outline: none;
  border-color: var(--navy);
}

.admin-login-btn {
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-login-btn:hover { background: var(--navy-light); }

.admin-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 12px;
}

/* Admin Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gray-300);
}

.stat-card.total { border-left-color: var(--navy); }
.stat-card.completed { border-left-color: var(--green); }
.stat-card.active { border-left-color: var(--teal); }
.stat-card.pending { border-left-color: var(--gold); }
.stat-card.failed { border-left-color: var(--red); }
.stat-card.revenue { border-left-color: var(--gold); }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin Controls */
.admin-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-controls input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
}

.admin-controls select {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
}

.export-btn {
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.export-btn:hover { opacity: 0.9; }

/* Admin Table */
.registrations-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-collapse: collapse;
}

.registrations-table th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}

.registrations-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.registrations-table tr:hover td {
  background: var(--gray-50);
}

.registrations-table .player-name {
  font-weight: 600;
  color: var(--navy);
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.completed { background: var(--green-light); color: var(--green); }
.status-badge.active { background: #dbeafe; color: #2563eb; }
.status-badge.pending { background: #fef3c7; color: #d97706; }
.status-badge.failed, .status-badge.payment_failed { background: var(--red-light); color: var(--red); }
.status-badge.cancelled { background: var(--gray-100); color: var(--gray-500); }

.view-btn {
  padding: 6px 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.view-btn:hover { background: var(--navy-light); }

/* Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  color: var(--navy);
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
}

.modal-close:hover { color: var(--gray-700); }

.detail-section {
  margin-bottom: 20px;
}

.detail-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-item .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.detail-item .value {
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
}

.payment-progress {
  background: var(--gray-100);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.payment-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 0.3s;
}

.transaction-list {
  list-style: none;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}

.transaction-item:last-child { border-bottom: none; }

.transaction-amount {
  font-weight: 700;
  color: var(--green);
}

.transaction-amount.failed {
  color: var(--red);
}

/* ---------------------------------------------------------------------------
   Admin Tabs
   --------------------------------------------------------------------------- */
.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
}

.admin-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tab:hover { color: var(--navy); }

.admin-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.tab-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Waitlist Settings
   --------------------------------------------------------------------------- */
.waitlist-settings-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.waitlist-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.waitlist-toggle-row:last-child { border-bottom: none; }

.waitlist-division-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-right: 12px;
}

.waitlist-toggle-status {
  font-size: 13px;
  color: var(--gray-500);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gray-300);
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider { background: var(--teal); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ---------------------------------------------------------------------------
   Waitlist Queue
   --------------------------------------------------------------------------- */
.waitlist-group {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.waitlist-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.waitlist-group-count {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

/* Waitlist Action Buttons */
.promote-btn {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.promote-btn:hover { opacity: 0.9; }

.expire-btn {
  width: 100%;
  padding: 10px;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.expire-btn:hover { background: var(--red); color: var(--white); }

.promote-btn-sm {
  padding: 5px 12px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.expire-btn-sm {
  padding: 5px 10px;
  background: none;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.expire-btn-sm:hover { background: var(--red); color: var(--white); }

.revert-btn-sm {
  padding: 5px 12px;
  background: none;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.revert-btn-sm:hover { background: var(--navy); color: var(--white); }

/* Waitlist Status Badges */
.status-badge.waitlisted { background: #fef3c7; color: #d97706; }
.status-badge.promoted { background: #dbeafe; color: #7c3aed; }
.status-badge.expired { background: var(--gray-100); color: var(--gray-500); }

/* Waitlist Notice (registration form) */
.waitlist-notice {
  background: #fffbeb;
  border: 1.5px solid var(--gold);
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--gray-400);
  font-size: 12px;
}

.footer-logos {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}

.footer-logos img {
  height: 30px;
  opacity: 0.5;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .header-title { font-size: 22px; }
  .header-details { flex-direction: column; gap: 8px; }
  .form-row.two-col, .form-row.three-col { grid-template-columns: 1fr; }
  .container { padding: 20px 16px 48px; }
  .form-section { padding: 20px 18px 18px; }
  .plan-option { padding: 14px 16px; }
  .plan-price { font-size: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-container { padding: 16px; }
  .modal-content { padding: 20px; }
  .detail-grid { grid-template-columns: 1fr; }
}
