@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

/* ═══ THEME TOKENS ═══ */
body.neon {
  --bg: #0c0e1a;
  --bg-surface: #131626;
  --card-bg: rgba(19, 22, 38, 0.92);
  --card-border: rgba(130, 90, 200, 0.18);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(0, 0, 0, 0.15);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --card-hover-border: rgba(160, 120, 240, 0.4);
  --text: #e8e9f0;
  --text-muted: rgba(200, 200, 230, 0.6);
  --text-faint: rgba(180, 180, 210, 0.4);
  --text-label: rgba(190, 180, 220, 0.75);
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --accent-glow: rgba(167, 139, 250, 0.2);
  --accent-solid: #7c3aed;
  --btn-bg: linear-gradient(135deg, #7c3aed, #9333ea);
  --btn-hover: linear-gradient(135deg, #8b5cf6, #a855f7);
  --btn-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
  --btn-hover-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(130, 90, 200, 0.2);
  --input-focus-border: rgba(167, 139, 250, 0.6);
  --input-focus-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12);
  --input-focus-bg: rgba(255, 255, 255, 0.07);
  --input-text: #f0eeff;
  --input-placeholder: rgba(200, 190, 230, 0.3);
  --dot-bg: rgba(255, 255, 255, 0.1);
  --dot-glow: 0 0 6px rgba(167, 139, 250, 0.5);
  --divider-line: rgba(130, 90, 200, 0.12);
  --divider-text: rgba(200, 190, 230, 0.3);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.08);
  --error-border: rgba(248, 113, 113, 0.2);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.08);
  --success-border: rgba(52, 211, 153, 0.2);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.08);
  --warning-border: rgba(251, 191, 36, 0.2);
  --glow1: rgba(124, 58, 237, 0.06);
  --glow2: rgba(80, 40, 180, 0.04);
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-hover: rgba(255, 255, 255, 0.14);
  --patient-name: #f0eeff;
}

body.neon[data-theme="light"] {
  --bg: #f5f3fa;
  --bg-surface: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(124, 58, 237, 0.12);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(124, 58, 237, 0.06);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --card-hover-border: rgba(124, 58, 237, 0.3);
  --text: #1e1b2e;
  --text-muted: #5b5580;
  --text-faint: #8c85a8;
  --text-label: #4a4070;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.1);
  --accent-solid: #7c3aed;
  --btn-bg: linear-gradient(135deg, #7c3aed, #9333ea);
  --btn-hover: linear-gradient(135deg, #8b5cf6, #a855f7);
  --btn-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
  --btn-hover-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
  --input-bg: rgba(124, 58, 237, 0.03);
  --input-border: rgba(124, 58, 237, 0.15);
  --input-focus-border: rgba(124, 58, 237, 0.45);
  --input-focus-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
  --input-focus-bg: #fff;
  --input-text: #1e1b2e;
  --input-placeholder: #b0a8c8;
  --dot-bg: rgba(124, 58, 237, 0.1);
  --dot-glow: 0 0 4px rgba(124, 58, 237, 0.25);
  --divider-line: rgba(124, 58, 237, 0.1);
  --divider-text: #b0a8c8;
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.05);
  --error-border: rgba(220, 38, 38, 0.12);
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.05);
  --success-border: rgba(5, 150, 105, 0.12);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.05);
  --warning-border: rgba(217, 119, 6, 0.12);
  --glow1: rgba(124, 58, 237, 0.04);
  --glow2: rgba(80, 40, 180, 0.02);
  --toggle-bg: rgba(124, 58, 237, 0.06);
  --toggle-hover: rgba(124, 58, 237, 0.12);
  --patient-name: #1e1b2e;
}

/* ═══ BASE ═══ */
body.neon {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  transition: background 0.3s ease, color 0.25s ease;
}

.neon .neon-card {
  max-width: 560px;
  margin: 60px auto 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow), var(--card-inset);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.neon .card-header {
  background: var(--btn-bg);
  padding: 20px 24px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.neon .card-body {
  padding: 32px 28px 28px;
  text-align: center;
}

/* ═══ THEME TOGGLE ═══ */
.neon .theme-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--toggle-bg);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  padding: 0;
}
.neon .theme-toggle:hover {
  background: var(--toggle-hover);
}

/* ═══ STEP DOTS ═══ */
.neon .step-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
}
.neon .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-bg);
  transition: all 0.3s ease;
}
.neon .dot.active {
  background: var(--accent);
  box-shadow: var(--dot-glow);
}

/* ═══ FORM FIELDS ═══ */
.neon .field-group {
  margin-bottom: 20px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.neon .field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-label);
  margin-bottom: 8px;
  text-align: center;
}
.neon .field-label .req {
  color: var(--error);
  margin-left: 2px;
}
.neon .field-input {
  width: 100%;
  padding: 12px 16px;
  text-align: center;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--input-text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s ease;
}
.neon .field-input::placeholder {
  color: var(--input-placeholder);
}
.neon .field-input:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
  background: var(--input-focus-bg);
}
.neon .field-input.code-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 10px;
  font-weight: 700;
  font-family: 'Outfit', monospace;
}
.neon .field-hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
  text-align: center;
}

.neon form {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══ BUTTONS ═══ */
.neon .btn-neon {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--btn-bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--btn-shadow);
  margin-top: 6px;
}
.neon .btn-neon:hover {
  background: var(--btn-hover);
  box-shadow: var(--btn-hover-shadow);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.neon .btn-neon i {
  margin-right: 6px;
}

/* ═══ DIVIDER ═══ */
.neon .divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--divider-text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.neon .divider::before,
.neon .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--divider-line);
}
.neon .divider span {
  padding: 0 16px;
}

/* ═══ LINKS ═══ */
.neon .toggle-link {
  display: block;
  text-align: center;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 6px 0;
}
.neon .toggle-link:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
.neon .toggle-link i {
  margin-right: 5px;
}

.neon .back-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
}
.neon .back-link:hover {
  color: var(--accent);
}

/* ═══ MESSAGES ═══ */
.neon .msg-error {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
}
.neon .msg-success {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
}
.neon .error-inline {
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* ═══ IDENTITY / GREETING ═══ */
.neon .greeting {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 8px 0 6px;
}
.neon .greeting strong {
  color: var(--accent);
}
.neon .phone-masked {
  text-align: center;
  font-family: 'Outfit', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0 20px;
  letter-spacing: 2px;
}
.neon .subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.neon .subtitle small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-faint);
}
.neon .subtitle strong {
  color: var(--accent);
}

/* ═══ SUCCESS / MRN ═══ */
.neon .success-icon {
  text-align: center;
  font-size: 48px;
  color: var(--success);
  margin: 8px 0;
}
.neon .mrn-display {
  text-align: center;
  font-family: 'Outfit', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0 16px;
}
.neon .patient-name {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--patient-name);
  margin: 6px 0;
}

/* ═══ RESEND ═══ */
.neon .resend-row {
  text-align: center;
  margin-top: 14px;
}
.neon .resend-row span {
  font-size: 13px;
  color: var(--text-faint);
}
.neon .resend-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
}
.neon .resend-btn:hover {
  color: var(--accent-hover);
}

/* ═══ NAVBAR OVERRIDE ═══ */
.neon #nav.navbar,
.neon .navbar {
  background: rgba(12, 14, 26, 0.85) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  padding: 8px 20px;
}
.neon #nav .navbar-brand img,
.neon .navbar-brand img {
  filter: brightness(1.1);
}
.neon #nav .nav-link,
.neon .navbar .nav-link {
  color: var(--text) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
  padding: 8px 14px !important;
  border-radius: 8px;
}
.neon #nav .nav-link:hover,
.neon .navbar .nav-link:hover {
  color: var(--accent) !important;
  background: rgba(167, 139, 250, 0.06);
}
.neon #nav .navbar-toggler,
.neon .navbar-toggler {
  border-color: var(--card-border);
}
.neon #nav .navbar-toggler-icon,
.neon .navbar-toggler-icon {
  filter: invert(0.8);
}
.neon[data-theme="light"] #nav.navbar,
.neon[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 8px rgba(124, 58, 237, 0.06);
}
.neon[data-theme="light"] #nav .navbar-toggler-icon,
.neon[data-theme="light"] .navbar-toggler-icon {
  filter: none;
}
.neon[data-theme="light"] #nav .nav-link:hover,
.neon[data-theme="light"] .navbar .nav-link:hover {
  background: rgba(124, 58, 237, 0.04);
}

/* ═══ DASHBOARD ═══ */
.neon .dash-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 30px;
}
.neon .dash-greeting {
  text-align: center;
  margin-bottom: 40px;
}
.neon .dash-welcome {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
}
.neon .dash-name {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  margin: 6px 0 8px;
}
.neon .dash-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

.neon .dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 540px) {
  .neon .dash-grid {
    grid-template-columns: 1fr;
  }
  .neon .dash-container {
    padding: 28px 16px 20px;
  }
  .neon .dash-name {
    font-size: 30px;
  }
}

.neon .dash-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  overflow: hidden;
}
.neon .dash-tile:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.neon .dash-tile .tile-icon {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.neon .dash-tile:hover .tile-icon {
  color: var(--accent-hover);
}
.neon .dash-tile .tile-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.neon .dash-tile .tile-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}
.neon .dash-tile .tile-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 14px;
  color: var(--text-faint);
  transition: all 0.2s ease;
}
.neon .dash-tile:hover .tile-arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.neon .dash-tile .tile-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--btn-shadow);
}
.neon .dash-tile.tile-logout {
  border-color: rgba(248, 113, 113, 0.12);
}
.neon .dash-tile.tile-logout .tile-icon {
  color: var(--error);
}
.neon .dash-tile.tile-logout:hover {
  border-color: rgba(248, 113, 113, 0.3);
  box-shadow: 0 4px 20px rgba(248, 113, 113, 0.1);
}
.neon .dash-tile.tile-logout:hover .tile-arrow {
  color: var(--error);
}

.neon .dash-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ═══ BOOKING SELECTION ═══ */
.neon .book-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 720px) {
  .neon .book-choices {
    grid-template-columns: 1fr;
  }
}
.neon .book-choice-tile {
  min-height: 160px;
}
.neon .book-badge-new {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--btn-bg);
  border-radius: 20px;
  box-shadow: var(--btn-shadow);
}
.neon .book-badge-request {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.neon .book-choice-dermvan .tile-icon { color: #38bdf8; }
.neon .office-logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 12px;
}
.neon[data-theme="light"] .office-logo { filter: none; }
.neon .book-choice-melanoscan .tile-icon { display: flex; align-items: center; justify-content: center; }
.neon .tile-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
}
.neon[data-theme="light"] .tile-logo { filter: none; }
.neon .appt-pending-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-radius: 12px;
  margin-left: 8px;
}
.neon .appt-confirmed-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 12px;
  margin-left: 8px;
}
.neon .book-info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.neon .book-info-box > i {
  font-size: 18px;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.neon .book-info-box strong {
  color: var(--text);
}
.neon .book-contact {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.neon .book-contact i {
  margin-right: 4px;
  color: var(--accent);
}
.neon .book-contact strong {
  color: var(--text);
}

/* ═══ DOCTOR VISIT BOOKING ═══ */
.neon .book-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 30px;
}
.neon .visit-reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 540px) {
  .neon .visit-reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.neon .reason-chip {
  display: block;
  text-align: center;
  padding: 12px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.neon .reason-chip:hover,
.neon .reason-chip.selected {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.06);
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
  text-decoration: none;
}

.neon .cal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.neon .cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.neon .cal-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.neon .cal-month-label {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  min-width: 180px;
  text-align: center;
}

.neon .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}
.neon .cal-header-cell {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  padding: 8px 0;
}
.neon .cal-day {
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.neon .cal-day.cal-bookable {
  cursor: pointer;
  border-color: var(--card-border);
}
.neon .cal-day.cal-bookable:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.neon .cal-day.cal-today {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.08);
  font-weight: 700;
}
.neon .cal-day.cal-empty {
  background: transparent;
  color: var(--text-faint);
  opacity: 0.3;
}
.neon .cal-day.cal-closed {
  color: var(--text-faint);
  opacity: 0.4;
}
.neon .cal-day.cal-past {
  color: var(--text-faint);
  opacity: 0.3;
}
.neon .cal-day.cal-selected {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.neon .cal-day-num {
  display: block;
}
.neon .cal-day-label {
  display: block;
  font-size: 9px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.neon .cal-day.cal-full {
  color: var(--text-faint);
  opacity: 0.35;
  cursor: default;
}
.neon .cal-avail-count {
  display: block;
  font-size: 9px;
  margin-top: 1px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
.neon .cal-day.cal-full .cal-avail-count {
  color: var(--text-faint);
  font-weight: 500;
}
.neon .cal-day.cal-holiday {
  color: var(--text-faint);
  opacity: 0.4;
  cursor: default;
}
.neon .cal-holiday-label {
  display: block;
  font-size: 8px;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.neon .slots-section {
  margin-bottom: 24px;
}
.neon .slots-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
}
.neon .slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 640px) {
  .neon .slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 420px) {
  .neon .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.neon .slot-btn {
  display: block;
  text-align: center;
  padding: 10px 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}
.neon .slot-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.neon .slot-btn.slot-taken {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}
.neon .slot-btn.slot-lunch {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
  font-size: 11px;
  border-style: dashed;
}
.neon .slot-lunch-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* ═══ APPOINTMENTS PAGE ═══ */
.neon .appts-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 30px;
}
.neon .appts-back {
  display: inline-block;
  color: var(--text-faint);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}
.neon .appts-back:hover {
  color: var(--accent);
  text-decoration: none;
}
.neon .appts-back i { margin-right: 5px; }

.neon .appts-header {
  text-align: center;
  margin-bottom: 32px;
}
.neon .appts-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.neon .appts-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.neon .appts-section {
  margin-bottom: 32px;
}
.neon .appts-section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.neon .appts-section-label.appts-section-past {
  color: var(--text-muted);
}
.neon .appts-count {
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.neon .appts-count-past {
  background: var(--text-faint);
}

.neon .appts-empty {
  text-align: center;
  padding: 32px 20px;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: 14px;
  color: var(--text-faint);
  font-size: 14px;
}
.neon .appts-empty i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.neon .appts-book-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.neon .appts-book-link:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.neon .appt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  margin-bottom: 10px;
  transition: all 0.2s ease;
}
.neon .appt-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.neon .appt-card.appt-past {
  opacity: 0.7;
}
.neon .appt-card.appt-past:hover {
  opacity: 1;
}

.neon .appt-date-badge {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.15);
}
.neon .appt-date-badge.appt-date-past {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}
.neon .appt-date-month {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}
.neon .appt-date-past .appt-date-month {
  color: var(--text-muted);
}
.neon .appt-date-day {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.neon .appt-date-year {
  font-size: 10px;
  color: var(--text-faint);
}

.neon .appt-details {
  flex: 1;
  min-width: 0;
}
.neon .appt-type {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.neon .appt-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.neon .appt-meta i {
  margin-right: 4px;
  font-size: 12px;
}

.neon .appt-actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.neon .appt-cancel-btn {
  display: inline-block;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.neon .appt-cancel-btn:hover {
  background: rgba(248, 113, 113, 0.12);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.1);
  text-decoration: none;
  color: var(--error);
}

.neon .appt-card.appt-checkin-ready {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.1);
}
.neon .appt-date-badge.appt-date-checkin {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}
.neon .appt-date-checkin .appt-date-month {
  color: #10b981;
}
.neon .appt-checkin-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 12px;
  margin-left: 8px;
  animation: checkinPulse 2s ease-in-out infinite;
}
@keyframes checkinPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 8px 3px rgba(16, 185, 129, 0.2); }
}
.neon .appt-checkin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.neon .appt-checkin-btn:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.neon .appt-locked-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  padding: 6px 10px;
}

.neon .appt-card.appt-attended {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.3);
}
.neon .appt-card.appt-noshow {
  opacity: 1;
  border-color: rgba(248, 113, 113, 0.3);
}
.neon .appt-date-badge.appt-date-attended {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.neon .appt-date-attended .appt-date-month { color: #10b981; }
.neon .appt-date-attended .appt-date-day { color: #10b981; }
.neon .appt-date-badge.appt-date-noshow {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}
.neon .appt-date-noshow .appt-date-month { color: var(--error); }
.neon .appt-date-noshow .appt-date-day { color: var(--error); }
.neon .appt-attended-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 12px;
  margin-left: 8px;
}
.neon .appt-noshow-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-radius: 12px;
  margin-left: 8px;
}

@media (max-width: 540px) {
  .neon .appt-card {
    flex-wrap: wrap;
    gap: 12px;
  }
  .neon .appt-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .neon .appts-container {
    padding: 16px 14px 20px;
  }
  .neon .appts-title {
    font-size: 24px;
  }
}

/* ═══ INVOICES ═══ */
.neon .invoice-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.neon .invoice-card:hover {
  border-color: var(--card-hover-border);
}
.neon .invoice-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
}
.neon .invoice-status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  color: #fff;
}
.neon .invoice-status.status-paid {
  background: linear-gradient(135deg, #059669, #10b981);
}
.neon .invoice-status.status-outstanding {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}
.neon .invoice-status.status-collections {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}
.neon .invoice-lines {
  border-top: 1px solid var(--card-border);
  padding: 16px;
}
.neon .invoice-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--divider-line);
}
.neon .invoice-line:last-child {
  border-bottom: none;
}
.neon .invoice-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  font-weight: 600;
  color: var(--text);
  border-top: 2px solid var(--card-border);
  margin-top: 8px;
}

/* ═══ AMBIENT GLOW ═══ */
.neon .glow-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.neon .glow-bg::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow1) 0%, transparent 70%);
  border-radius: 50%;
}
.neon .glow-bg::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--glow2) 0%, transparent 70%);
  border-radius: 50%;
}

/* ═══ MOBILE FONT BOOST (~17%) ═══ */
@media (max-width: 600px) {
  body.neon {
    font-size: 117%;
  }
  .neon .neon-card,
  .neon .reg-card,
  .reg-card {
    font-size: 117%;
  }
  .neon .card-header,
  .reg-header {
    font-size: 22px;
  }
  .neon .field-label {
    font-size: 13px;
  }
  .neon .field-input {
    font-size: 17px;
    padding: 14px 18px;
  }
  .neon .field-hint {
    font-size: 14px;
  }
  .neon .btn-neon {
    font-size: 16px;
    padding: 16px;
  }
  .neon .subtitle {
    font-size: 15px;
  }
  .neon .back-link {
    font-size: 14px;
  }
  .neon .msg-error,
  .neon .msg-success {
    font-size: 14px;
  }
}
