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

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #f43f5e;
  --surface: #ffffff;
  --surface-secondary: #f8fafc;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background: #161748;
  position: relative;
  overflow-x: hidden;
}

/* Animated background effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Floating orbs */
body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 30px) scale(1.1);
  }
}

/* Logo - FIXED position top left */
#page-logo {
  position: fixed !important;
  top: 28px !important;
  left: 28px !important;
  height: 36px !important;
  width: auto !important;
  z-index: 1000 !important;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

#page-logo:hover {
  opacity: 1;
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* When showing physician dashboard, remove card background */
.card:has(.physician-dashboard) {
  max-width: 520px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* When showing dashboard grid, expand to full width */
.card:has(.dashboard-grid) {
  max-width: 1150px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* When showing sections, remove card styling so sections become the cards */
.card.has-sections {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 1150px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 32px;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* BOOST Branding Header Styles */
#form-title {
  color: #009FDF !important;
  font-weight: 700;
}

#form-subtitle {
  color: #ffffff !important;
}

/* Make email label white for dark background */
.card .label-text {
  color: #ffffff;
}

/* Form Stack */
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Labels */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.input-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Input Row */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Inputs */
input,
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--surface-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

input::placeholder {
  color: var(--text-muted);
}

input:hover,
select:hover {
  border-color: #cbd5e1;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

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

/* Microsoft Button */
.btn-microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-family);
  color: #ffffff;
  background: #1f1f1f;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-microsoft:hover:not(:disabled) {
  background: #2d2d2d;
  transform: translateY(-1px);
}

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

/* Status */
.status {
  min-height: 20px;
  font-size: 0.875rem;
  color: var(--primary);
  text-align: center;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  color: var(--primary);
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

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

/* Hidden */
.hidden {
  display: none !important;
}

/* reCAPTCHA */
.recaptcha {
  min-height: 78px;
}

/* Welcome Banner */
.welcome-banner {
  text-align: center;
  padding: 28px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ede9fe 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.welcome-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.welcome-banner h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.welcome-banner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 70px 16px 24px;
  }

  #page-logo {
    top: 20px !important;
    left: 20px !important;
    height: 28px !important;
  }

  .card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
  }

  h1 {
    font-size: 1.5rem;
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}

.no-access-container {
  margin-top: 24px;
  text-align: center;
  color: #CCD1DF;
  font-size: 0.9rem;
}

.link-btn {
  background: none;
  border: none;
  color: #009FDF;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.link-btn:hover {
  color: #00c4ff;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1e1e3f;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.close-btn:hover {
  color: #f8fafc;
}

/* Sales Rep List */
.sales-rep-list {
  padding: 16px 24px 24px;
}

.loading-text {
  text-align: center;
  color: #94a3b8;
  padding: 24px;
}

.sales-rep-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.sales-rep-card:last-child {
  margin-bottom: 0;
}

.sales-rep-name {
  font-weight: 600;
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 4px;
}

.sales-rep-role {
  color: #009FDF;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.sales-rep-email {
  color: #94a3b8;
  font-size: 0.9rem;
}

.sales-rep-email a {
  color: #009FDF;
  text-decoration: none;
}

.sales-rep-email a:hover {
  text-decoration: underline;
}

.no-reps-message {
  text-align: center;
  color: #94a3b8;
  padding: 24px;
}

/* Radio Button Group */
.radio-group {
  border: none;
  padding: 0;
  margin: 0;
}

.radio-group legend {
  margin-bottom: 12px;
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.2s ease;
}

.radio-option:hover {
  border-color: var(--primary);
  background: var(--surface);
}

.radio-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

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

/* Modal Body */
.modal-body {
  padding: 24px;
}

.modal-body input,
.modal-body select {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-body input::placeholder {
  color: #64748b;
}

.modal-body input:focus {
  border-color: #009FDF;
  outline: none;
}

.modal-body .label-text {
  color: #f8fafc;
}

.email-update-hint {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.approved-by-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(92, 80, 161, 0.15);
  border: 1px solid rgba(92, 80, 161, 0.4);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.approved-label {
  color: #8b7fd9;
  font-size: 0.9rem;
  font-weight: 500;
}

.approved-name {
  color: #a89fe8;
  font-size: 0.9rem;
}

.modal-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-secondary {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Email change request link */
.email-change-link {
  color: #009FDF;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
}

.email-change-link:hover {
  color: #00c4ff;
}

/* Site Footer */
.site-footer {
  padding: 24px 16px;
  text-align: center;
  margin-top: 24px;
}

.site-footer p {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
}

/* Form Sections - styled as independent cards */
.form-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
  margin-bottom: 0;
}

.card-header {
  margin-bottom: 0;
}

.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 16px 0;
}

.section-title {
  color: #5c50a1;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.section-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.section-divider {
  display: none;
}

/* Info section spacing */
.info-section label,
.verify-section label {
  display: block;
  margin-bottom: 12px;
}

.info-section label:last-of-type,
.verify-section label:last-of-type {
  margin-bottom: 0;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1000px;
  align-items: start;
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Make form sections compact */
.dashboard-grid .form-section {
  padding: 18px;
  margin-bottom: 0;
}

.dashboard-grid .section-subtitle {
  font-size: 0.85rem;
}

.dashboard-grid .card-divider {
  margin: 12px 0;
}

.dashboard-grid label {
  margin-bottom: 8px;
}

.dashboard-grid input,
.dashboard-grid select {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.dashboard-grid .input-row {
  gap: 12px;
}

.dashboard-grid .recaptcha {
  min-height: 65px;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Panels (legacy, kept for compatibility) */
.dashboard-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: #5c50a1;
  margin: 0 0 14px 0;
}

/* Inline Dashboard Sections */
.dashboard-inline-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.inline-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #5c50a1;
  margin-bottom: 12px;
}

/* Progress Bar Inline */
.progress-inline-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.progress-bar-inline-wrap {
  flex: 1;
  height: 10px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.progress-bar-inline {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 8px;
  transition: width 0.5s ease;
}

.progress-text-inline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6366f1;
  min-width: 80px;
}

/* Education Events Grid */
.events-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.event-inline-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.2s;
}

.event-inline-card.completed {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.event-inline-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.event-inline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-inline-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 8px;
}

.event-inline-badge.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.event-inline-badge.pending {
  background: rgba(251, 191, 36, 0.2);
  color: #d97706;
}

/* Certificates Inline Grid */
.certificates-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.cert-inline-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
}

.cert-inline-card.earned {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.cert-inline-card.locked {
  opacity: 0.6;
}

.cert-inline-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.cert-inline-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cert-inline-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  margin: 2px;
}

.cert-inline-btn.download {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
}

.cert-inline-btn.email {
  background: transparent;
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

/* Treatments Inline Grid */
.treatments-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.treatment-inline-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.2s;
}

.treatment-inline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 4px;
}

.treatment-inline-type {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.treatment-inline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Empty State */
.inline-empty-state {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  grid-column: 1 / -1;
}

@media (max-width: 480px) {

  .events-inline-grid,
  .certificates-inline-grid,
  .treatments-inline-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================
   PHYSICIAN DASHBOARD - Mobile-first stacked cards
   ================================================= */

.physician-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.dashboard-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, rgba(92, 80, 161, 0.25) 0%, rgba(92, 80, 161, 0.12) 100%);
  border: 1px solid rgba(92, 80, 161, 0.4);
}

/* Ensure all text in welcome card is white/light for contrast */
.welcome-card,
.welcome-card h2,
.welcome-card h3,
.welcome-card h4,
.welcome-card p,
.welcome-card span,
.welcome-card label {
  color: #ffffff;
}

.welcome-card .label-text-small {
  color: rgba(255, 255, 255, 0.7) !important;
}

.welcome-card input,
.welcome-card select {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.welcome-card select option {
  background: #1a1a2e;
  color: #fff;
}

.welcome-card input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.welcome-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.welcome-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #22c55e;
}

.check-icon {
  font-size: 0.9rem;
  color: #22c55e;
}

.welcome-email {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 8px 0;
}

/* Info Divider */
.info-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 12px 0;
}

/* Sales Rep Section */
.sales-rep-section h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-source {
  font-weight: 400;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rep-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.rep-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.rep-email {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.rep-email:hover {
  color: #fff;
  text-decoration: underline;
}

.sales-rep-row {
  display: flex;
  gap: 20px;
}

.sales-rep {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Team + Verify Row */
.team-verify-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.phone-verify-compact h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-verify-inline {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.phone-verify-inline input {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  letter-spacing: 0.5px;
}

.phone-verify-inline input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Override for phone-verify-inline inside white-background sections (like SMS verify popup) */
.form-section .phone-verify-inline input {
  background: var(--surface-secondary);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}

.form-section .phone-verify-inline input::placeholder {
  color: var(--text-muted);
}

.form-section .phone-verify-inline input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-verify-compact {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--purple);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-verify-compact:hover {
  background: #6b5fa0;
}

/* Ensure button is visible in white-background form sections */
.form-section .btn-verify-compact {
  background: #5c50a1;
  color: #ffffff;
  border: none;
}

.form-section .btn-verify-compact:hover {
  background: #6b5fa0;
}

/* BOOST Hub Nested Card */
.boost-hub-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.boost-hub-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.boost-hub-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.link-btn-small {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  margin-top: 12px;
}

.link-btn-small:hover {
  color: #fff;
}

/* Card Header Row */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-header-row h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
}

.count-badge {
  background: rgba(92, 80, 161, 0.2);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Events List */
.events-list,
.certificates-list,
.treatments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--purple);
}

.event-item-content {
  flex: 1;
}

.event-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.event-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-item-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* Certificate Item */
.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.cert-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-icon {
  font-size: 1.2rem;
}

.cert-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.cert-actions {
  display: flex;
  gap: 6px;
}

.cert-btn {
  background: rgba(92, 80, 161, 0.15);
  color: var(--purple);
  border: none;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.cert-btn:hover {
  background: rgba(92, 80, 161, 0.25);
}

.cert-locked {
  opacity: 0.5;
}

/* Treatment Row (Detailed) */
.treatment-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.treatment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.treatment-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.treatment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.treatment-account {
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 4px;
}

/* Treatment Summary */
.treatment-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Treatment Pills (all gray) */
.treatment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.treatment-pill {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  background: rgba(92, 80, 161, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(92, 80, 161, 0.6);
}

/* Verify Card */
.verify-card {
  border: 1px dashed rgba(92, 80, 161, 0.4);
  background: rgba(92, 80, 161, 0.05);
}

.verify-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.skip-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Loading & Empty States */
.loading-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}

.empty-state {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

/* Compact Form Styles */
.form-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-row-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label-text-small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.input-compact input,
.input-compact select {
  padding: 8px 10px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.input-compact input:focus,
.input-compact select:focus {
  outline: none;
  border-color: var(--purple);
}

/* Collapsible Sections */
.collapsible {
  cursor: pointer;
}

.collapsible summary {
  list-style: none;
  cursor: pointer;
}

.collapsible summary::-webkit-details-marker {
  display: none;
}

.collapsible summary::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 8px;
  transition: transform 0.2s;
}

.collapsible[open] summary::after {
  transform: rotate(180deg);
}

/* Table-like Event Rows */
.events-table {
  display: flex;
  flex-direction: column;
}

.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.event-row-content {
  flex: 1;
  min-width: 0;
}

.event-row-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: normal;
  word-wrap: break-word;
}

.event-row-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.event-row-source {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 10px;
}

@media (max-width: 480px) {
  .input-row-compact {
    grid-template-columns: 1fr;
  }
}

/* Verification Choice UI */
.verification-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.btn-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(92, 80, 161, 0.2) 0%, rgba(92, 80, 161, 0.1) 100%);
  border: 1px solid rgba(92, 80, 161, 0.4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-choice:hover {
  background: linear-gradient(135deg, rgba(92, 80, 161, 0.35) 0%, rgba(92, 80, 161, 0.2) 100%);
  border-color: rgba(92, 80, 161, 0.6);
  transform: translateY(-2px);
}

.choice-icon {
  font-size: 1.5rem;
}

.choice-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--heading);
}

.choice-email {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

/* Resend Row */
.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.resend-row .link-btn-small {
  margin-top: 0;
}

/* Error Alert Styling - White text with icon instead of red */
.status.error,
.status-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status.error::before,
.status-error::before {
  content: '⚠️';
  font-size: 1.1rem;
}

.status.error,
.status-error,
#email-result.error {
  color: #ffffff !important;
}