/* Medicares core styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #06b6d4;
  --background: #f8fafc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --border: rgba(148, 163, 184, 0.18);
  --text: #0f172a;
  --muted: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1200px;
}

:root[data-theme='dark'] {
  --background: #07111f;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: #0f172a;
  --border: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.42);
  --shadow-soft: 0 10px 25px rgba(2, 6, 23, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.10), transparent 24%),
    linear-gradient(180deg, var(--background) 0%, color-mix(in srgb, var(--background) 88%, white) 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 70%);
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, white);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
}

.eyebrow::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.glass-panel,
.card,
.metric-card,
.feature-card,
.story-card,
.testimonial-card,
.service-card,
.doctor-card,
.pricing-card,
.auth-card,
.dashboard-shell,
.stat-card,
.table-shell,
.reminder-card,
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: 1rem;
}

.flex {
  display: flex;
  gap: 1rem;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.button--primary,
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.button--ghost,
.btn-ghost {
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  border: 1px solid var(--border);
}

.button--dark,
.btn-dark {
  background: var(--secondary);
  color: white;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge--success { background: rgba(16, 185, 129, 0.14); color: var(--success); }
.badge--warning { background: rgba(245, 158, 11, 0.14); color: var(--warning); }
.badge--danger { background: rgba(239, 68, 68, 0.14); color: var(--danger); }
.badge--info { background: rgba(37, 99, 235, 0.14); color: var(--primary); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  background: color-mix(in srgb, var(--background) 55%, transparent);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(100% - 2rem, var(--container));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 1rem 0 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-stat,
.counter-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-stat strong,
.counter-card strong {
  display: block;
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
}

.hero-stat span,
.counter-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.hero-card {
  position: relative;
  width: min(100%, 480px);
  padding: 1.5rem;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-card svg {
  width: 100%;
  height: auto;
}

.floating-pill {
  position: absolute;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 85%, white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  animation: float 7s ease-in-out infinite;
}

.floating-pill.one { top: 12%; left: 2%; }
.floating-pill.two { bottom: 18%; left: -4%; animation-delay: 1.5s; }
.floating-pill.three { top: 18%; right: 0; animation-delay: 2.6s; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.feature-card,
.service-card,
.story-card,
.testimonial-card,
.doctor-card,
.reminder-card,
.timeline-card {
  padding: 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.service-card:hover,
.story-card:hover,
.testimonial-card:hover,
.doctor-card:hover,
.reminder-card:hover,
.timeline-card:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon,
.service-icon,
.reminder-icon,
.doctor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.16));
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3,
.service-card h3,
.story-card h3,
.testimonial-card h3,
.doctor-card h3,
.reminder-card h3,
.timeline-card h3 {
  margin: 0 0 0.6rem;
  font-family: 'Poppins', sans-serif;
}

.feature-card p,
.service-card p,
.story-card p,
.testimonial-card p,
.doctor-card p,
.reminder-card p,
.timeline-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem;
}

.stat-value {
  margin: 0.4rem 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

.stat-label {
  margin: 0;
  color: var(--muted);
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.20));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary-dark);
}

.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 92%, white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 1.5rem;
}

.footer h4 {
  margin: 0 0 1rem;
  font-family: 'Poppins', sans-serif;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.footer a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label {
  font-size: 0.92rem;
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 92%, white);
  color: var(--text);
  min-height: 50px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.alert--success {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
}

.alert--error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
}

.alert--info {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.18);
}

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 140;
  display: grid;
  gap: 0.75rem;
  width: min(92vw, 360px);
}

.toast {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 90%, white);
  box-shadow: var(--shadow);
  animation: toastIn 220ms ease;
}

.toast strong {
  display: block;
  margin-bottom: 0.2rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.5);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(100%, 720px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 30px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-links.open {
  display: flex;
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 1.2rem 1.4rem;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-bottom: 0;
  border-top: 1px solid var(--border);
}

.loading-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  min-height: 1rem;
}

.loading-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: shimmer 1.5s infinite;
}

.fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.3);
}

.timeline {
  display: grid;
  gap: 0.95rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-day,
.calendar-head {
  min-height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  color: var(--muted);
}

.calendar-day.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.16));
  color: var(--text);
  font-weight: 700;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.home-hero {
  padding-top: 5.5rem;
}

.brand-copy {
  display: grid;
  gap: 0.2rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

[hidden] {
  display: none !important;
}

.hero-grid-landing {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.hero-kicker span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-copy-landing h1 {
  margin-bottom: 1rem;
  max-width: 10ch;
}

.hero-copy-landing p {
  font-size: 1.04rem;
  max-width: 64ch;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.proof-chip::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.home-visual {
  position: relative;
  min-height: 620px;
}

.home-dashboard {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
}

.home-dashboard::before,
.home-dashboard::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.home-dashboard::before {
  inset: auto -4rem -4rem auto;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 70%);
}

.home-dashboard::after {
  inset: -3rem auto auto -3rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
}

.dashboard-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.mini-card {
  padding: 1rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-strong) 88%, white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.mini-card strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-stack {
  display: grid;
  gap: 0.85rem;
}

.dashboard-block {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-strong) 90%, white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.dashboard-block h3,
.dashboard-block p {
  margin: 0;
}

.dashboard-block p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.35rem;
}

.dashboard-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-row:first-child {
  padding-top: 0;
}

.dashboard-row .time {
  font-weight: 800;
  color: var(--primary-dark);
}

.dashboard-row .meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-chart {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.chart-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.16));
  overflow: hidden;
}

.chart-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stats-section {
  padding-top: 1.5rem;
}

.metric-card {
  padding: 1.35rem;
  display: grid;
  gap: 0.75rem;
  min-height: 100%;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.18));
  color: var(--primary-dark);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-card ul,
.contact-aside ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
}

.browse-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.doctor-card {
  display: grid;
  gap: 0.8rem;
  min-height: 100%;
}

.doctor-card .doctor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doctor-card .rating {
  color: var(--primary-dark);
  font-weight: 800;
}

.doctor-card .specialty {
  color: var(--muted);
}

.doctor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  font-size: 1.05rem;
}

.doctor-browse {
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.hospital-panel,
.testimonial-panel,
.contact-panel {
  padding: 1.35rem;
}

.hospital-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.hospital-figure {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--border);
}

.hospital-figure strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
}

.hospital-figure span {
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-field {
  position: relative;
}

.floating-field input,
.floating-field textarea {
  padding: 1.35rem 1rem 0.9rem;
}

.floating-field label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease, font-size 160ms ease, top 160ms ease;
  pointer-events: none;
  background: transparent;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:focus + label,
.floating-field textarea:not(:placeholder-shown) + label {
  top: 0.55rem;
  font-size: 0.75rem;
  color: var(--primary-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .hero-grid-landing,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .home-visual {
    min-height: 0;
  }

  .dashboard-grid-mini,
  .hospital-figures {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-actions {
    justify-content: flex-start;
  }

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

  .dashboard-row .meta {
    margin-top: -0.35rem;
  }
}

/* ── Slot Picker ───────────────────────────── */

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-strong) 92%, white);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

/* Available slot hover handled by .slot-btn--available:hover above */

.slot-btn--selected {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
  transform: translateY(-2px);
}

.slot-btn--available {
  background: color-mix(in srgb, var(--surface-strong) 92%, white);
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.22);
}

.slot-btn--available:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
  background: rgba(37, 99, 235, 0.08);
}

.slot-btn--available:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.slot-btn--booked {
  background: rgba(239, 68, 68, 0.08);
  color: var(--muted);
  border-color: rgba(239, 68, 68, 0.18);
  cursor: not-allowed;
  opacity: 0.65;
  text-decoration: line-through;
}

.slot-btn--booked:hover {
  transform: none;
  cursor: not-allowed;
}

.slot-btn--past {
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.18);
  cursor: not-allowed;
  opacity: 0.5;
}

.slot-btn--past:hover {
  transform: none;
  cursor: not-allowed;
}

.slot-status-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  animation: toastIn 220ms ease;
}

.slot-status-msg--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #dc2626;
}

.slot-status-msg--info {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--primary);
}

.slot-status-msg--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #059669;
}

.slot-grid-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.slot-grid-loading .slot-skeleton {
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.12);
  position: relative;
  overflow: hidden;
}

.slot-grid-loading .slot-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmer 1.5s infinite;
}

@media (max-width: 640px) {
  .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
