/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ============================================================
   LUMINAR CLINIC — GLOBAL STYLESHEET
   Design system: Stripe/Linear-inspired SaaS dashboard
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-light:  #EFF6FF;
  --primary-muted:  #BFDBFE;

  /* Surfaces */
  --bg:             #F8FAFC;
  --surface:        #FFFFFF;
  --surface-2:      #F1F5F9;
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;

  /* Typography */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;

  /* Status colours */
  --success:        #10B981;
  --success-bg:     #ECFDF5;
  --success-text:   #065F46;
  --warning:        #F59E0B;
  --warning-bg:     #FFFBEB;
  --warning-text:   #92400E;
  --danger:         #EF4444;
  --danger-bg:      #FEF2F2;
  --danger-text:    #991B1B;
  --info:           #6366F1;
  --info-bg:        #EEF2FF;
  --info-text:      #3730A3;

  /* Layout */
  --sidebar-width:  240px;
  --header-height:  64px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);

  /* Radii */
  --r-sm:  4px;
  --r:     8px;
  --r-md:  10px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;

  /* Font */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: 2rem;   font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
h3 { font-size: 1.25rem;font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem;   font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.6; }

/* ── App Layout ─────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  left: 0; top: 0; bottom: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-logo-icon {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo-icon svg { color: #fff; }

.sidebar-logo-text {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.sidebar-logo-text span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
}

.nav-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px 4px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.nav-item:hover svg,
.nav-item.active svg { opacity: 1; }

.nav-item.active svg { color: var(--primary); }

.nav-item-logout {
  color: var(--danger);
}
.nav-item-logout:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-light);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ── Main Wrapper ───────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 50;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.header-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.header-right { display: flex; align-items: center; gap: 12px; }

.header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--primary-light);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

/* ── Main Content ───────────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
}

.page-header {
  margin-bottom: 28px;
}
.page-header h2 {
  margin-bottom: 4px;
}
.page-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

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

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue   { background: var(--primary-light); color: var(--primary); }
.stat-icon.amber  { background: var(--warning-bg);    color: var(--warning); }
.stat-icon.indigo { background: var(--info-bg);       color: var(--info); }
.stat-icon.green  { background: var(--success-bg);    color: var(--success); }

.stat-body { flex: 1; min-width: 0; }
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}
.stat-trend {
  font-size: 0.75rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.table-header-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.table-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background: var(--bg); }

.td-primary {
  font-weight: 600;
  color: var(--text-primary) !important;
}

.td-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--text-muted) !important;
}

.table-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.table-empty svg {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  opacity: 0.3;
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-text);  }
.badge-info    { background: var(--info-bg);    color: var(--info-text);    }
.badge-default { background: var(--surface-2);  color: var(--text-secondary); }

.badge-role {
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-role::before { display: none; }
.badge-doctor      { background: #EFF6FF; color: #1D4ED8; }
.badge-nurse       { background: #F5F3FF; color: #6D28D9; }
.badge-receptionist{ background: #F0FDF4; color: #15803D; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(37,99,235,.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #FECACA;
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #A7F3D0;
}
.btn-success:hover {
  background: var(--success);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--r);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  background: var(--bg);
  color: var(--primary);
}
.btn-icon svg { width: 16px; height: 16px; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.input, input[type="text"], input[type="email"],
input[type="password"], input[type="tel"],
input[type="time"], select, textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.input:focus, input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, input[type="tel"]:focus,
input[type="time"]:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

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

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
}

textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
  margin-top: 8px;
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.97) translateY(8px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-close {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.modal-body { padding: 24px; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ── Toast Notifications ────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--r-lg);
  background: var(--text-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  min-width: 280px;
  pointer-events: all;
  animation: toastIn 0.25s ease-out;
}

.toast.success { background: #064E3B; border-left: 3px solid var(--success); }
.toast.error   { background: #7F1D1D; border-left: 3px solid var(--danger); }
.toast.info    { background: #1E1B4B; border-left: 3px solid var(--info); }

.toast-icon { width: 18px; height: 18px; flex-shrink: 0; }

.toast.fade-out { animation: toastOut 0.25s ease-in forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }

/* ── Search Input ───────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.search-wrapper svg {
  position: absolute;
  left: 10px;
  width: 15px; height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  padding-left: 34px !important;
  width: 220px;
}

/* ── Status Select ──────────────────────────────────────────── */
.status-select {
  padding: 4px 28px 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background-color: var(--surface);
  cursor: pointer;
  width: auto;
}
.status-select.waiting      { border-color: #FCD34D; background: var(--warning-bg); color: var(--warning-text); }
.status-select.in-consult   { border-color: #A5B4FC; background: var(--info-bg);    color: var(--info-text);    }
.status-select.completed    { border-color: #6EE7B7; background: var(--success-bg); color: var(--success-text); }

/* ── Landing Page ───────────────────────────────────────────── */
.landing-body {
  background: linear-gradient(135deg, #F0F7FF 0%, #EFF6FF 40%, #F8FAFC 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  position: sticky;
  top: 0;
  z-index: 50;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.landing-logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.landing-logo-name {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.landing-nav-actions { display: flex; gap: 10px; }

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary-muted);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.landing-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.1;
}

.landing-hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-landing-primary {
  background: var(--primary);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-landing-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn-landing-secondary {
  background: var(--surface);
  color: var(--text-primary);
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-landing-secondary:hover {
  background: var(--bg);
  border-color: var(--text-muted);
  text-decoration: none;
  color: var(--text-primary);
}

.landing-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0 64px 80px;
}

.landing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.landing-feature svg { color: var(--success); width: 16px; height: 16px; }

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #F0F7FF 0%, #EFF6FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  padding: 40px;
}

.auth-card.auth-card-wide {
  max-width: 600px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.auth-logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.auth-heading { margin-bottom: 6px; }
.auth-subheading {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.auth-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-footer-text a {
  color: var(--primary);
  font-weight: 600;
}

.input-with-icon {
  position: relative;
}
.input-with-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-with-icon input {
  padding-left: 38px !important;
}

/* ── Reports / Charts ───────────────────────────────────────── */
.chart-container {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.chart-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.chart-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding: 0 8px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--primary-muted);
  transition: background 0.2s;
  position: relative;
  min-height: 4px;
}
.bar:hover { background: var(--primary); }
.bar-value {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
}
.bar-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* ── Reports Grid ───────────────────────────────────────────── */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.report-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.report-stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.report-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.report-stat-bar-wrap {
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.report-stat-bar {
  height: 100%;
  border-radius: 999px;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ── Utility ────────────────────────────────────────────────── */
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-2          { gap: 8px; }
.gap-3          { gap: 12px; }
.gap-4          { gap: 16px; }
.mt-1           { margin-top: 4px; }
.mt-2           { margin-top: 8px; }
.mt-3           { margin-top: 12px; }
.mb-4           { margin-bottom: 16px; }
.mb-6           { margin-bottom: 24px; }
.w-full         { width: 100%; }
.text-muted     { color: var(--text-muted); font-size: 0.875rem; }
.text-sm        { font-size: 0.875rem; }
.text-xs        { font-size: 0.75rem; }
.font-semibold  { font-weight: 600; }
.text-right     { text-align: right; }
.text-center    { text-align: center; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-content { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main-wrapper { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .landing-nav { padding: 16px 24px; }
  .landing-features { padding: 0 24px 48px; }
}

/* ============================================================
   LANDING PAGE REDESIGN — lp- namespace
   Scope: index.html only. All new classes prefixed with lp-.
   Architecture: Open/Closed — extends styles.css without
   modifying existing dashboard/auth rules.
   ============================================================ */

/* ── LP Body ─────────────────────────────────────────────── */
.lp-body {
  background: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── LP Navbar ───────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  height: 66px;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}

.lp-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lp-nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.lp-nav-logo-name {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.lp-nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lp-nav-link {
  padding: 7px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.lp-nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-2);
  text-decoration: none;
}

.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── LP Buttons ──────────────────────────────────────────── */
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.lp-btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.lp-btn-primary.lp-btn-lg { padding: 14px 28px; font-size: 1rem; }

.lp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.lp-btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-muted);
  text-decoration: none;
  color: var(--text-primary);
}

.lp-btn-secondary.lp-btn-lg { padding: 13px 28px; font-size: 1rem; }

/* ── LP Hero ─────────────────────────────────────────────── */
.lp-hero-outer {
  background: linear-gradient(160deg, #EFF6FF 0%, #F5F8FF 40%, #FAFCFF 75%, #fff 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.lp-hero-outer::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 65%);
  pointer-events: none;
}

.lp-hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 44px 72px 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.lp-hero-text { display: flex; flex-direction: column; justify-content: center; }

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 8px;
  background: var(--primary-light);
  border: 1px solid var(--primary-muted);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 22px;
  width: fit-content;
  text-decoration: none;
}

.lp-pill:hover { text-decoration: none; }

.lp-pill-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: lp-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37,99,235,.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(37,99,235,0); }
}

.lp-hero-h1 {
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.lp-gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}

.lp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.lp-hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
}

.lp-trust-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.lp-trust-chip svg { color: var(--success); flex-shrink: 0; }

/* ── Dashboard Mockup ────────────────────────────────────── */
.lp-hero-visual { position: relative; z-index: 1; }

.lp-hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 60% 50%, rgba(37,99,235,.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.lp-mockup-wrap { position: relative; z-index: 1; }

.lp-mockup {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow:
    0 2px 4px rgba(0,0,0,.04),
    0 12px 32px rgba(0,0,0,.08),
    0 40px 80px rgba(37,99,235,.14);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(.23,1,.32,1);
  will-change: transform;
}

.lp-mockup:hover {
  transform: perspective(1100px) rotateY(-1deg) rotateX(0.5deg) translateY(-4px);
}

.lp-mock-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.lp-mock-chrome-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.lp-mock-chrome-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}

.lp-mock-chrome-dot:nth-child(1) { background: #FF5F57; }
.lp-mock-chrome-dot:nth-child(2) { background: #FEBC2E; }
.lp-mock-chrome-dot:nth-child(3) { background: #28C840; }

.lp-mock-chrome-url {
  flex: 1;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  font-family: monospace;
}

.lp-mock-body {
  display: flex;
  height: 330px;
}

.lp-mock-sidebar {
  width: 46px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 7px;
  flex-shrink: 0;
}

.lp-mock-logo {
  width: 24px; height: 24px;
  background: var(--primary);
  border-radius: 5px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.lp-mock-nav-item {
  width: 26px; height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.lp-mock-nav-item.active { background: var(--primary-muted); }

.lp-mock-main {
  flex: 1;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.lp-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.lp-mock-page-title {
  height: 9px; width: 70px;
  background: var(--text-primary);
  border-radius: 3px;
  opacity: 0.8;
}

.lp-mock-hdr-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lp-mock-hdr-badge {
  height: 18px; width: 72px;
  background: var(--primary-light);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--primary);
}

.lp-mock-hdr-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.lp-mock-content {
  flex: 1;
  padding: 10px 12px;
  overflow: hidden;
}

.lp-mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

.lp-mock-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lp-mock-stat-icon {
  width: 20px; height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.lp-mock-stat.blue   .lp-mock-stat-icon { background: var(--primary-light); }
.lp-mock-stat.amber  .lp-mock-stat-icon { background: var(--warning-bg); }
.lp-mock-stat.indigo .lp-mock-stat-icon { background: var(--info-bg); }
.lp-mock-stat.green  .lp-mock-stat-icon { background: var(--success-bg); }

.lp-mock-stat-val {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1px;
}

.lp-mock-stat-lbl {
  font-size: 0.45rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.lp-mock-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.lp-mock-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 9px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.lp-mock-table-ttl { font-size: 0.5625rem; font-weight: 700; color: var(--text-primary); }
.lp-mock-table-cnt { font-size: 0.5rem; color: var(--text-muted); }

.lp-mock-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--border-light);
}

.lp-mock-row:last-child { border-bottom: none; }
.lp-mock-row:hover { background: var(--bg); }

.lp-mock-row-ava {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
}

.lp-mock-row-info { flex: 1; min-width: 0; }

.lp-mock-row-name {
  font-size: 0.525rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lp-mock-row-sub { font-size: 0.45rem; color: var(--text-muted); }

.lp-mock-row-time { font-size: 0.5rem; color: var(--text-muted); flex-shrink: 0; }

.lp-mock-row-doc {
  font-size: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.lp-mock-status {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-mock-status::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.lp-mock-status.completed { background: var(--success-bg); color: var(--success-text); }
.lp-mock-status.active    { background: var(--info-bg);    color: var(--info-text);    }
.lp-mock-status.waiting   { background: var(--warning-bg); color: var(--warning-text); }

/* ── Floating Cards ──────────────────────────────────────── */
.lp-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 11px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  animation: lp-float-in 0.5s ease-out forwards;
}

.lp-float-1 { top: -16px;  right: -28px; animation-delay: 0.5s; }
.lp-float-2 { bottom: 24px; left: -28px; animation-delay: 0.8s; }
.lp-float-3 { top: 44%;    right: -24px; transform: translateY(-50%); animation-delay: 1.1s; }

@keyframes lp-float-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-float-3 { animation-name: lp-float-in-right; }

@keyframes lp-float-in-right {
  from { opacity: 0; transform: translateY(-50%) translateX(10px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.lp-float-icon {
  width: 30px; height: 30px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.lp-float-icon.amber  { background: var(--warning-bg);  color: var(--warning);  }
.lp-float-icon.green  { background: var(--success-bg);  color: var(--success);  }
.lp-float-icon.indigo { background: var(--info-bg);     color: var(--info);     }

.lp-float-body { display: flex; flex-direction: column; gap: 1px; }
.lp-float-label { font-size: 0.6875rem; color: var(--text-muted); font-weight: 500; }
.lp-float-value { font-size: 0.875rem;  color: var(--text-primary); font-weight: 700; }

/* ── Trust Numbers Strip ─────────────────────────────────── */
.lp-trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 72px;
}

.lp-trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lp-trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border-radius: var(--r-lg);
  transition: background 0.2s, opacity 0.55s ease, transform 0.55s ease;
  opacity: 0;
  transform: translateY(22px);
}

.lp-trust-stat.lp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered delays driven by nth-child */
.lp-trust-stat:nth-child(1) { transition-delay: 0s;     }
.lp-trust-stat:nth-child(2) { transition-delay: 0.1s;   }
.lp-trust-stat:nth-child(3) { transition-delay: 0.2s;   }
.lp-trust-stat:nth-child(4) { transition-delay: 0.3s;   }

.lp-trust-stat:hover { background: var(--bg); }

.lp-trust-stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  transform: scale(0.75);
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
  transition-delay: inherit;
}

.lp-trust-stat.lp-visible .lp-trust-stat-icon {
  transform: scale(1);
}

@keyframes lp-num-pop {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1);    opacity: 1; }
}

.lp-trust-stat.lp-visible .lp-trust-num {
  animation: lp-num-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: inherit;
}

.lp-trust-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 6px;
}

.lp-trust-txt {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Section Shared ──────────────────────────────────────── */
.lp-section { padding: 96px 72px; }
.lp-section-inner { max-width: 1200px; margin: 0 auto; }

.lp-section-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.lp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--primary-light);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.lp-section-h2 {
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.lp-section-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Features Grid ───────────────────────────────────────── */
.lp-features-outer {
  background: #FAFCFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.lp-feature-card {
  background: var(--surface);
  padding: 32px;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
}

.lp-feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 32px; right: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.lp-feature-card:hover { background: #F8FAFF; }
.lp-feature-card:hover::after { transform: scaleX(1); }

.lp-feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.lp-feature-icon.blue   { background: var(--primary-light); color: var(--primary); }
.lp-feature-icon.green  { background: var(--success-bg);    color: var(--success); }
.lp-feature-icon.indigo { background: var(--info-bg);       color: var(--info);    }
.lp-feature-icon.amber  { background: var(--warning-bg);    color: var(--warning); }
.lp-feature-icon.purple { background: #F5F3FF;              color: #7C3AED;        }
.lp-feature-icon.teal   { background: #F0FDFA;              color: #0D9488;        }

.lp-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.lp-feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Showcase Section ────────────────────────────────────── */
.lp-showcase-outer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.lp-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.lp-showcase-mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 24px 56px rgba(37,99,235,.13);
  overflow: hidden;
  position: relative;
}

.lp-showcase-mockup::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(37,99,235,.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.lp-showcase-kpi-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.lp-showcase-kpi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.2s;
  cursor: default;
}

.lp-showcase-kpi:hover {
  border-color: var(--primary-muted);
  box-shadow: 0 4px 14px rgba(37,99,235,.1);
  transform: translateX(6px);
}

.lp-showcase-kpi-icon {
  width: 38px; height: 38px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.lp-showcase-kpi-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.lp-showcase-kpi-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Workflow Section ────────────────────────────────────── */
.lp-workflow-outer {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lp-workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.lp-workflow-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary-muted) 0px,
    var(--primary-muted) 5px,
    transparent 5px,
    transparent 13px
  );
  pointer-events: none;
}

.lp-workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lp-step-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--primary-muted);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}

.lp-workflow-step:hover .lp-step-circle {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}

.lp-workflow-step:hover .lp-step-circle svg { color: #fff; }
.lp-workflow-step:hover .lp-step-circle .lp-step-num { color: #fff; }

.lp-step-circle svg { color: var(--primary); transition: color 0.2s; }

.lp-step-num {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--primary);
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5625rem;
}

.lp-step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.lp-step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Analytics Section ───────────────────────────────────── */
.lp-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.lp-analytics-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.lp-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.lp-metric:hover {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.lp-metric-icon {
  width: 36px; height: 36px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.lp-metric-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.lp-metric-desc { font-size: 0.8125rem; color: var(--text-muted); }

.lp-analytics-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.lp-chart-title  { font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.lp-chart-sub    { font-size: 0.8125rem;  color: var(--text-muted); margin-bottom: 24px; }

.lp-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
}

.lp-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  justify-content: flex-end;
}

.lp-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--primary-muted);
  transition: background 0.2s;
  min-height: 4px;
}

.lp-bar:hover,
.lp-bar.today { background: var(--primary); }

.lp-bar-lbl {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lp-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.lp-chart-stat { text-align: center; }

.lp-chart-stat-val {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 3px;
}

.lp-chart-stat-lbl {
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

/* ── CTA Section ─────────────────────────────────────────── */
.lp-cta-outer {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 45%, #4F46E5 100%);
  position: relative;
  overflow: hidden;
}

.lp-cta-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,.1) 0%, transparent 50%);
  pointer-events: none;
}

.lp-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 72px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lp-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.lp-cta-h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.lp-cta-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.72);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.lp-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.lp-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: all 0.2s;
  line-height: 1;
}

.lp-btn-white:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 28px rgba(0,0,0,.26);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--primary-dark);
}

.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.25);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1;
}

.lp-btn-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  text-decoration: none;
  color: #fff;
}

.lp-cta-note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.45);
}

/* ── Footer ──────────────────────────────────────────────── */
.lp-footer {
  background: #0B1120;
  color: #fff;
  padding: 72px 72px 36px;
}

.lp-footer-inner { max-width: 1200px; margin: 0 auto; }

.lp-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.lp-footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.lp-footer-brand-icon {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.lp-footer-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.lp-footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: 24px;
}

.lp-footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.lp-footer-links { display: flex; flex-direction: column; gap: 11px; }

.lp-footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color 0.15s;
}

.lp-footer-link:hover { color: #fff; text-decoration: none; }

.lp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,.3); }
.lp-footer-bottom-links { display: flex; gap: 20px; }

/* ── Demo Credentials Card (footer) ─────────────────────── */
.lp-demo-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 20px;
}

.lp-demo-title {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.lp-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lp-demo-role { font-size: 0.6875rem; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.lp-demo-cred { font-size: 0.625rem; color: rgba(255,255,255,.35); font-family: monospace; line-height: 1.5; }

/* ── LP Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .lp-nav       { padding: 0 40px; }
  .lp-hero      { grid-template-columns: 1fr; padding: 60px 40px 48px; gap: 0; }
  .lp-hero-visual { display: none; }
  .lp-section   { padding: 72px 40px; }
  .lp-trust-strip  { padding: 32px 40px; }
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-showcase-grid  { grid-template-columns: 1fr; }
  .lp-analytics-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-footer     { padding: 56px 40px 32px; }
  .lp-footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .lp-cta        { padding: 80px 40px; }
}

@media (max-width: 768px) {
  .lp-nav           { padding: 0 24px; }
  .lp-nav-center    { display: none; }
  .lp-trust-strip   { padding: 28px 24px; }
  .lp-trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lp-section       { padding: 56px 24px; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-workflow-steps { grid-template-columns: 1fr; max-width: 400px; }
  .lp-workflow-steps::before { display: none; }
  .lp-footer        { padding: 48px 24px 28px; }
  .lp-footer-top    { grid-template-columns: 1fr 1fr; gap: 28px; }
  .lp-footer-bottom { flex-direction: column; text-align: center; }
  .lp-cta           { padding: 64px 24px; }
}

@media (max-width: 480px) {
  .lp-trust-strip-inner { grid-template-columns: 1fr 1fr; }
  .lp-footer-top         { grid-template-columns: 1fr; }
  .lp-hero-actions       { flex-direction: column; }
  .lp-cta-actions        { flex-direction: column; align-items: center; }
  .lp-demo-grid          { grid-template-columns: 1fr; }
}

/* ── Logo Heartbeat Animation ────────────────────────────── */
@keyframes lp-heartbeat {
  0%   { transform: scale(1.0); }
  14%  { transform: scale(1.032); }
  28%  { transform: scale(1.0); }
  42%  { transform: scale(1.048); }
  56%  { transform: scale(1.0); }
  100% { transform: scale(1.0); }
}

.lp-logo-beat {
  display: block;
  transform-origin: center;
  animation: lp-heartbeat 1.6s ease-in-out infinite;
  will-change: transform;
}

/* ── Doctor Showcase Composition ────────────────────────── */
.lp-hero-showcase {
  position: relative;
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.lp-doctor-img {
  position: absolute;
  bottom: 0;
  left: -80px;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  mix-blend-mode: multiply;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(4px 8px 18px rgba(0,0,0,0.08));
  animation: lp-doctor-entry 0.9s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.4s;
}

@keyframes lp-doctor-entry {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.lp-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.lp-reveal.lp-in {
  opacity: 1;
  transform: translateY(0);
}
