/* =============================================
   OCTOR — Main Stylesheet
   Brand Teal: #0095B5 | Brand Orange: #F47B20 | Dark Navy: #2D3A4A
   Synced with Octor logo color palette
   ============================================= */

/* ---- CSS VARIABLES ---- */
:root {
  /* Brand Teal — main brand color (logo circle/teal) */
  --primary: #0095B5;
  --primary-dark: #007A98;
  --primary-light: #e0f6fb;

  /* Brand Orange — CTA & highlight color (logo orange arc) */
  --accent: #F47B20;
  --accent-dark: #D96510;
  --accent-light: #FEF0E6;

  /* Dark Navy — from logo text color */
  --dark: #2D3A4A;
  --dark-2: #3A4A5C;

  --text: #2D3A4A;
  --text-muted: #6B7A8D;
  --bg: #F7FBFD;
  --bg-light: #EFF7FA;
  --white: #ffffff;
  --border: #D9EFF6;
  --shadow: 0 4px 24px rgba(0, 149, 181, 0.10);
  --shadow-lg: 0 12px 48px rgba(0, 149, 181, 0.16);
  --shadow-orange: 0 4px 16px rgba(244, 123, 32, 0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- UTILITIES ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 96px 0; }
.bg-light { background: var(--bg-light); }
.bg-dark-gradient { background: linear-gradient(135deg, #1a2535 0%, #0e3248 100%); }
.mt-4 { margin-top: 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }
/* Primary CTA — Brand Orange (attention-grabbing, logo colour) */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e06a10 0%, #c05508 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244,123,32,0.45);
}

/* Ghost — Teal outline */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Teal — Solid brand teal */
.btn-teal {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,149,181,0.30);
}
.btn-teal:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #006480 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,149,181,0.45);
}

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,149,181,0.18);
}
.section-tag.light {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}
.section-tag.orange {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(244,123,32,0.2);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-title.white { color: var(--white); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.text-light-muted { color: rgba(255,255,255,0.72); line-height: 1.7; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding: 0;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(10,110,189,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Actual logo image (used in nav on light bg) */
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* White logo for dark backgrounds (footer, hero) */
.logo-img-white {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
/* Fallback inline SVG logo */
.logo-icon { width: 36px; height: 36px; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  border-radius: 8px;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links a.active { background: var(--primary-light); color: var(--primary); border-radius: 8px; }
.nav-cta { margin-left: 12px; padding: 10px 22px; font-size: 0.92rem; }
.nav-toggle {
  display: none;
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--dark);
  padding: 8px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(145deg, #1a2535 0%, #1e3040 40%, #0e3a52 100%);
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--accent);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: var(--primary); opacity: 0.08; }
.shape-3 { width: 250px; height: 250px; top: 50%; left: 40%; background: #fff; opacity: 0.03; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244,123,32,0.15);
  color: #FFAA6E;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(244,123,32,0.30);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.70);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 500px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
}
.hero-pills span i { color: #6FDDE8; font-size: 0.75rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Dashboard Mockup */
.hero-visual { position: relative; }
.dashboard-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.mockup-bar {
  background: #f0f0f0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.mockup-url {
  margin-left: 12px;
  background: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #666;
  flex: 1;
  max-width: 240px;
}
.mockup-body { display: flex; }
.mockup-sidebar {
  width: 52px;
  background: var(--dark);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sidebar-item {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-item.active, .sidebar-item:hover {
  background: var(--accent);
  color: white;
}
.mockup-main { flex: 1; padding: 16px; background: #f8fbff; }
.mockup-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mockup-greeting { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.mockup-date { font-size: 0.72rem; color: var(--text-muted); }
.mockup-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mstat {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}
.mstat.blue { background: #e8f3fc; }
.mstat.teal { background: #e0f9f5; }
.mstat.purple { background: #ede9ff; }
.mstat-num { font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.mstat.blue .mstat-num { color: var(--primary); }
.mstat.teal .mstat-num { color: var(--accent-dark); }
.mstat.purple .mstat-num { color: #7C3AED; }
.mstat-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; line-height: 1.2; }
.mockup-appts { display: flex; flex-direction: column; gap: 6px; }
.appt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.appt-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.appt-avatar.teal { background: var(--accent); }
.appt-avatar.orange { background: #f59e0b; }
.appt-info { flex: 1; }
.appt-info strong { display: block; font-size: 0.75rem; color: var(--dark); }
.appt-info span { font-size: 0.65rem; color: var(--text-muted); }
.appt-badge {
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.appt-badge.confirmed { background: #d1fae5; color: #065f46; }
.appt-badge.video { background: #dbeafe; color: #1e40af; }

/* Floating cards */
.hero-float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  white-space: nowrap;
}
.hero-float-card i {
  font-size: 1.3rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-float-card strong { display: block; font-weight: 600; color: var(--dark); }
.hero-float-card span { color: var(--text-muted); font-size: 0.72rem; }
.card-1 { bottom: -20px; left: -20px; }
.card-2 { top: -20px; right: -10px; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
}
.hero-wave svg { width: 100%; height: 100%; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 16px 48px; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-icon.blue { background: var(--primary-light); color: var(--primary); }
.feature-icon.teal { background: var(--primary-light); color: var(--primary-dark); }
.feature-icon.purple { background: #ede9ff; color: #7C3AED; }
.feature-icon.orange { background: var(--accent-light); color: var(--accent); }
.feature-icon.indigo { background: #e0e7ff; color: #4338ca; }
.feature-icon.green { background: #d1fae5; color: #059669; }
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   MODULES
   ============================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  transition: var(--transition);
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.module-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.module-icon-wrap.pharma { background: var(--accent-light); color: var(--accent); }
.module-icon-wrap.lab { background: var(--primary-light); color: var(--primary); }
.module-icon-wrap.body { background: #ede9ff; color: #7C3AED; }
.module-icon-wrap.tele { background: var(--primary-light); color: var(--primary-dark); }
.module-icon-wrap.app { background: #d1fae5; color: #059669; }
.module-icon-wrap.pay { background: var(--accent-light); color: var(--accent-dark); }
.module-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.module-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.module-features { display: flex; flex-direction: column; gap: 6px; }
.module-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
}
.module-features li i { color: var(--accent); font-size: 0.72rem; flex-shrink: 0; }

/* ============================================
   CLINIC WEBSITE
   ============================================ */
.clinic-web-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.clinic-web-content .section-title { text-align: left; }
.clinic-web-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.check-list li i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }

/* Browser Mockup */
.browser-mockup {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.browser-bar {
  background: #f5f5f5;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e0e0e0;
}
.browser-url {
  margin-left: 10px;
  background: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: #555;
  border: 1px solid #ddd;
  flex: 1;
  max-width: 200px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-url i { color: #22c55e; font-size: 0.7rem; }
.browser-body { background: #fff; padding: 0; }
.site-hero-mock {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 28px 24px;
  text-align: center;
  color: white;
}
.site-logo-mock { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.site-tagline-mock { font-size: 0.75rem; opacity: 0.8; margin-bottom: 14px; }
.site-btn-mock {
  display: inline-block;
  background: var(--accent);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.site-doctors-mock { padding: 16px; display: flex; gap: 12px; flex-direction: column; }
.doctor-card-mock {
  display: flex;
  gap: 12px;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--border);
}
.doc-avatar-mock {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.doc-avatar-mock.teal { background: var(--accent); }
.doc-info-mock strong { display: block; font-size: 0.78rem; font-weight: 700; color: var(--dark); }
.doc-info-mock span { display: block; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; }
.doc-slots { display: flex; gap: 4px; flex-wrap: wrap; }
.slot {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.slot.available { background: #d1fae5; color: #065f46; }
.slot.taken { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }

/* ============================================
   MOBILE APP
   ============================================ */
.mobile-app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.phone-mockup-wrap { position: relative; width: 240px; margin: 0 auto; }
.phone-mockup {
  width: 240px;
  height: 480px;
  background: var(--dark);
  border-radius: 36px;
  padding: 16px 14px 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  border: 3px solid #333;
  position: relative;
  overflow: hidden;
}
.phone-notch {
  width: 80px; height: 22px;
  background: var(--dark);
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
}
.phone-screen {
  background: #f0f5fb;
  border-radius: 22px;
  height: calc(100% - 32px);
  overflow: hidden;
  padding: 14px 12px;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.app-logo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
}
.app-logo-dot {
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 5px;
}
.app-notif { color: var(--text-muted); font-size: 0.9rem; }
.app-greeting {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.app-next-appt { margin-bottom: 14px; }
.appt-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.appt-card-app {
  background: var(--primary);
  border-radius: 10px;
  padding: 10px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
}
.appt-card-app i { font-size: 1.1rem; opacity: 0.8; }
.appt-card-app strong { display: block; font-size: 0.75rem; font-weight: 700; }
.appt-card-app span { opacity: 0.8; font-size: 0.65rem; }
.app-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.app-action {
  background: white;
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border);
}
.app-action i {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.phone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%; transform: translateX(-50%);
  width: 80px; height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}
.phone-shadow {
  position: absolute;
  bottom: -30px;
  left: 50%; transform: translateX(-50%);
  width: 160px; height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.4), transparent 70%);
}
.phone-float-badge {
  position: absolute;
  background: white;
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.phone-float-badge i { font-size: 1rem; }
.badge-ios { top: 30px; right: -30px; }
.badge-ios i { color: var(--dark); }
.badge-android { bottom: 60px; right: -30px; }
.badge-android i { color: #3ddc84; }

.mobile-app-content { padding: 20px 0; }
.app-features-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.app-feat { display: flex; gap: 16px; }
.app-feat-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.app-feat strong { display: block; color: white; font-size: 0.92rem; margin-bottom: 4px; }
.app-feat p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  min-width: 240px;
  max-width: 340px;
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.step-card:hover .step-number { color: var(--primary); }
.step-icon {
  width: 60px; height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.step-card:hover .step-icon { background: var(--primary); color: white; }
.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.step-connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  margin-top: 80px;
  align-self: flex-start;
}

/* ============================================
   WHY OCTOR
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange);
  border-color: var(--accent);
}
.why-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(244,123,32,0.15);
}
.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.why-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #c05508 100%);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 12px 48px rgba(244,123,32,0.35);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -100px; right: 100px;
  pointer-events: none;
}
.cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1rem; }
.cta-banner .btn-primary {
  background: white;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-banner .btn-primary:hover {
  background: var(--dark);
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--dark); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   FAQ
   ============================================ */
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--dark);
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-question.active { color: var(--primary); background: var(--primary-light); }
.faq-question i {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-question.active i { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.faq-answer.open {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-answer p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================
   CONTACT / LEAD FORM
   ============================================ */
.contact {
  background: linear-gradient(145deg, #0a1628 0%, #0d2a4a 60%, #072040 100%);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-info { padding-top: 16px; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }
.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-detail > i {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail strong { display: block; color: white; font-size: 0.88rem; margin-bottom: 4px; }
.contact-detail span, .contact-detail a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}
.contact-detail a:hover { color: var(--accent); }
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
}
.trust-badge i { color: var(--accent); }

/* Form Card */
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-card > p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.required { color: #ef4444; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,110,189,0.1);
}
.form-group input.error,
.form-group select.error { border-color: #ef4444; }
.field-error { font-size: 0.78rem; color: #ef4444; margin-top: 4px; min-height: 16px; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
}
.checkbox-item:hover { border-color: var(--primary); background: var(--primary-light); }
.checkbox-item input[type="checkbox"] { display: none; }
.checkmark {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}
.checkbox-item input:checked ~ .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-item input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}
.checkbox-item input:checked ~ .checkmark + span { color: var(--primary); }

.form-submit-row { margin-top: 8px; }
.btn-submit { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; border-radius: var(--radius-sm); }

.form-success {
  text-align: center;
  padding: 32px;
  background: #d1fae5;
  border-radius: var(--radius);
  border: 1px solid #6ee7b7;
  margin-top: 16px;
}
.form-success i { font-size: 2.5rem; color: #059669; margin-bottom: 12px; }
.form-success h4 { font-family: var(--font-heading); color: #065f46; margin-bottom: 6px; }
.form-success p { font-size: 0.88rem; color: #047857; }
.form-error-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #fee2e2;
  border-radius: var(--radius-sm);
  border: 1px solid #fca5a5;
  margin-top: 12px;
}
.form-error-msg i { color: #ef4444; margin-top: 2px; }
.form-error-msg p { font-size: 0.85rem; color: #b91c1c; margin: 0; }
.form-error-msg a { color: var(--primary); text-decoration: underline; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 72px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text { color: white; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 14px 0 20px;
  max-width: 320px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-col i { font-size: 0.75rem; color: var(--accent); }
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.40); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.40); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }
  .hero-inner { gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .clinic-web-inner { gap: 48px; }
  .mobile-app-inner { gap: 48px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 36px 40px; }
}

@media (max-width: 900px) {
  .modules-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
  .hero { padding: 110px 0 64px; min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { max-width: 100%; }
  .hero-pills { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .dashboard-mockup { max-width: 500px; margin: 0 auto; }
  .card-1, .card-2 { display: none; }
  .shape-1, .shape-2, .shape-3 { display: none; }
  .badge-ios, .badge-android { display: none; }

  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 16px 24px; }
  .stat-divider { display: none; }
  .stats-inner { gap: 0; }

  .clinic-web-inner { grid-template-columns: 1fr; }
  .mobile-app-inner { grid-template-columns: 1fr; }
  .phone-mockup-wrap { margin-bottom: 40px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps-container { flex-direction: column; align-items: center; }
  .step-connector { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .form-card { padding: 24px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .stat-item { padding: 12px 16px; }
  .stat-num { font-size: 2.2rem; }
}

/* ============================================
   FIX: iOS Safari horizontal overflow
   AOS fade-left/fade-right use translateX which
   can cause horizontal scroll on iOS even with
   overflow-x: hidden on html/body.
   Solution: clamp sections + override AOS on mobile.
   ============================================ */

/* All sections clip their own horizontal overflow */
.hero, .stats-bar, .features, .modules, .clinic-web,
.mobile-app, .how-it-works, .why-octor, .testimonials,
.faq, .contact, .footer, .clinic-workflow, .roles-section {
  overflow-x: hidden;
  max-width: 100%;
}

/* Override AOS horizontal slide animations on mobile —
   convert fade-left / fade-right to vertical (fade-up style)
   so no content is ever translated outside the viewport. */
@media (max-width: 1024px) {
  [data-aos="fade-left"]:not(.aos-animate) {
    transform: translate3d(0, 60px, 0) !important;
    opacity: 0;
  }
  [data-aos="fade-right"]:not(.aos-animate) {
    transform: translate3d(0, 60px, 0) !important;
    opacity: 0;
  }
  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
  }
}

/* ============================================
   CLINIC WORKFLOW SECTION
   ============================================ */
.clinic-workflow {}

.wf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 40px;
}

.wf-step {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: var(--transition);
}
.wf-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.wf-step--accent { border-color: rgba(244,123,32,0.3); background: #fffaf6; }
.wf-step--accent:hover { border-color: var(--accent); box-shadow: var(--shadow-orange); }

.wf-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.wf-num {
  width: 34px; height: 34px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
}
.wf-num--accent { background: var(--accent-light); color: var(--accent); }

.wf-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.admin-pill  { background: var(--accent-light);     color: var(--accent); }
.patient-pill{ background: #e6f9f2;                 color: #0d8c59; }
.recep-pill  { background: #f0eeff;                 color: #6d4bcc; }
.doctor-pill { background: var(--primary-light);    color: var(--primary-dark); }
.pharma-pill { background: #fef3e2;                 color: #b45309; }

.wf-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.wf-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.wf-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wf-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.5;
}
.wf-list li i {
  color: var(--primary);
  font-size: 0.7rem;
  margin-top: 4px;
  flex-shrink: 0;
}
.wf-step--accent .wf-list li i { color: var(--accent); }

/* Outcome banner */
.wf-outcome {
  background: linear-gradient(135deg, #1a2535 0%, #0e3a52 100%);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
}
.wf-outcome-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.wf-outcome-icon {
  width: 52px; height: 52px;
  background: rgba(244,123,32,0.18);
  color: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.wf-outcome-text { flex: 1; min-width: 200px; }
.wf-outcome-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: white;
  margin-bottom: 5px;
}
.wf-outcome-text p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ============================================
   ROLES SECTION
   ============================================ */
.roles-section {}

/* Tab bar */
.role-tabs-wrapper { margin-bottom: 40px; }
.role-tabs {
  display: inline-flex;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 5px;
  gap: 4px;
  flex-wrap: wrap;
}
.role-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.role-tab i { font-size: 0.85rem; }
.role-tab:hover { color: var(--primary); background: var(--primary-light); }
.role-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(0,149,181,0.35);
}

/* Panels */
.role-panel { display: none; }
.role-panel.active { display: block; }

.role-panel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Role badge */
.role-badge {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.role-badge--admin  { background: var(--accent-light); color: var(--accent); }
.role-badge--doctor { background: var(--primary-light); color: var(--primary); }
.role-badge--recep  { background: #f0eeff; color: #6d4bcc; }
.role-badge--patient{ background: #e6f9f2; color: #0d8c59; }

.role-panel-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.role-panel-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.role-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.role-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.role-features li > i {
  font-size: 1rem;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}
.role-badge--admin  ~ ul .role-features li > i,
.role-features .admin-check  { color: var(--accent); }
.role-features li > div strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
}
.role-features li > div span {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mockup */
.role-panel-visual { position: sticky; top: 90px; }
.role-mockup {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Mockup header */
.rm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #1e2d3d;
}
.rm-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rm-dot--admin   { background: var(--accent); }
.rm-dot--doctor  { background: var(--primary); }
.rm-dot--recep   { background: #8b5cf6; }
.rm-dot--patient { background: #10b981; }
.rm-header-title {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.9);
}
.rm-badge {
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
}
.rm-badge--teal   { background: rgba(0,149,181,0.25);  color: #0095B5; }
.rm-badge--purple { background: rgba(139,92,246,0.25); color: #8b5cf6; }
.rm-badge--green  { background: rgba(16,185,129,0.2);  color: #10b981; }

/* Mockup body */
.rm-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rm-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Admin: clinic cards */
.rm-clinic-cards { display: flex; flex-direction: column; gap: 6px; }
.rm-clinic-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.rm-cc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rm-cc-dot--on   { background: #10b981; }
.rm-cc-dot--away { background: #f59e0b; }
.rm-clinic-card strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.rm-clinic-card span   { font-size: 0.74rem; color: var(--text-muted); }

/* Stats row */
.rm-stats-row {
  display: flex; gap: 8px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}
.rm-stat { flex: 1; text-align: center; }
.rm-stat-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 2px;
}
.rm-orange { color: var(--accent); }
.rm-teal   { color: var(--primary); }
.rm-navy   { color: var(--dark); }
.rm-stat-lbl { font-size: 0.68rem; color: var(--text-muted); }

/* Doctor list */
.rm-doc-list { display: flex; flex-direction: column; gap: 5px; }
.rm-doc-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
}
.rm-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  color: white; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rm-doc-name { flex: 1; font-size: 0.81rem; font-weight: 500; color: var(--dark); }
.rm-status { font-size: 0.65rem; font-weight: 600; padding: 2px 8px; border-radius: 50px; }
.rm-s-green  { background: #dcfce7; color: #15803d; }
.rm-s-orange { background: #fef3c7; color: #92400e; }

/* Doctor: patient bar */
.rm-patient-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,149,181,0.2);
}
.rm-patient-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white; font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rm-patient-info { flex: 1; }
.rm-patient-info strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.rm-patient-info span   { font-size: 0.73rem; color: var(--text-muted); }
.rm-hist-btn {
  font-size: 0.7rem; font-weight: 600; color: var(--primary);
  padding: 4px 10px; border-radius: 50px;
  background: white; border: 1px solid var(--border); cursor: pointer;
}

/* Encounter blocks */
.rm-enc-blocks { display: flex; flex-direction: column; gap: 7px; }
.rm-enc-block {
  padding: 9px 11px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.rm-enc-lbl { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.rm-enc-val { font-size: 0.81rem; color: var(--dark); font-weight: 500; }
.rm-vitals { display: flex; gap: 12px; flex-wrap: wrap; }
.rm-vitals span { font-size: 0.76rem; color: var(--text-muted); }
.rm-vitals strong { color: var(--dark); }

/* Prescription box */
.rm-rx-box {
  background: #fff8f0;
  border: 1px solid rgba(244,123,32,0.2);
  border-radius: var(--radius-sm);
  padding: 11px;
}
.rm-rx-box-title {
  font-size: 0.73rem; font-weight: 700; color: var(--accent);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.rm-rx-drug {
  font-size: 0.79rem; color: var(--dark);
  padding: 5px 0;
  border-bottom: 1px solid rgba(244,123,32,0.1);
}
.rm-rx-drug:last-child { border: none; padding-bottom: 0; }

/* Receptionist: mini form */
.rm-mini-form {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.rm-mf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rm-mf-row label { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 3px; }
.rm-mf-val {
  font-size: 0.8rem; color: var(--dark);
  background: white; padding: 7px 9px;
  border: 1px solid var(--border); border-radius: 5px;
}
.rm-mf-sel { color: var(--text-muted); }

/* Queue */
.rm-queue { display: flex; flex-direction: column; gap: 4px; }
.rm-q-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
}
.rm-q-active { background: var(--primary-light); }
.rm-q-n {
  width: 20px; height: 20px;
  background: var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem; font-weight: 700; color: var(--text-muted);
  flex-shrink: 0;
}
.rm-q-nm { flex: 1; font-size: 0.8rem; font-weight: 500; color: var(--dark); }
.rm-q-t  { font-size: 0.73rem; color: var(--text-muted); }
.rm-qs { font-size: 0.64rem; font-weight: 600; padding: 2px 7px; border-radius: 50px; }
.rm-qs--in   { background: #dcfce7; color: #15803d; }
.rm-qs--doc  { background: var(--primary-light); color: var(--primary-dark); }
.rm-qs--wait { background: #fef9c3; color: #854d0e; }

/* Patient portal */
.rm-appt-block {}
.rm-appt-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px;
  background: var(--primary-light);
  border: 1px solid rgba(0,149,181,0.2);
  border-radius: var(--radius-sm);
}
.rm-appt-icon {
  width: 32px; height: 32px;
  background: var(--primary); color: white;
  border-radius: 8px; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rm-appt-info { flex: 1; }
.rm-appt-info strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.rm-appt-info span   { font-size: 0.73rem; color: var(--text-muted); }
.rm-join-pill {
  font-size: 0.7rem; font-weight: 700;
  padding: 5px 10px; border-radius: 50px;
  background: var(--primary); color: white;
  flex-shrink: 0;
}

.rm-rx-list { display: flex; flex-direction: column; gap: 5px; }
.rm-rx-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  background: var(--bg-light); border-radius: var(--radius-sm);
  font-size: 0.79rem;
}
.rm-rx-row i { color: var(--accent); font-size: 0.78rem; flex-shrink: 0; }
.rm-rx-row > span:nth-child(2) { flex: 1; color: var(--dark); }
.rm-view-lnk { font-size: 0.7rem; font-weight: 600; color: var(--primary); }

.rm-lab-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.rm-lab-ico { color: var(--primary); flex-shrink: 0; }
.rm-lab-row > div { flex: 1; }
.rm-lab-row strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.rm-lab-row span   { font-size: 0.73rem; color: var(--text-muted); }
.rm-ready { font-size: 0.72rem; font-weight: 700; color: #10b981; flex-shrink: 0; }

/* Action row */
.rm-action-row { display: flex; gap: 8px; }
.rm-btn {
  flex: 1; text-align: center;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.77rem; font-weight: 600;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  color: var(--text); cursor: pointer;
}
.rm-btn--primary { background: var(--accent); border-color: var(--accent); color: white; }

/* Integration row */
.role-integrations {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}
.ri-header {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.ri-header i { color: var(--primary); }

.ri-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ri-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; gap: 20px;
}
.ri-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ri-pharma { background: var(--accent-light); color: var(--accent); }
.ri-lab    { background: var(--primary-light); color: var(--primary); }
.ri-body { flex: 1; }
.ri-body h4 {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 8px;
}
.ri-body p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.ri-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.ri-tag {
  font-size: 0.73rem; font-weight: 500;
  padding: 4px 11px; border-radius: 50px;
  background: var(--bg-light); border: 1px solid var(--border);
  color: var(--text-muted);
}
.ri-tag--active {
  background: var(--primary-light);
  border-color: rgba(0,149,181,0.3);
  color: var(--primary); font-weight: 700;
}
.ri-flow i { color: var(--text-muted); font-size: 0.7rem; }

/* ============================================
   RESPONSIVE — WORKFLOW & ROLES
   ============================================ */
@media (max-width: 1024px) {
  .wf-grid { grid-template-columns: repeat(2, 1fr); }
  .role-panel-content { grid-template-columns: 1fr; gap: 40px; }
  .role-panel-visual { position: static; }
  .ri-card { flex-direction: column; gap: 14px; }
}
@media (max-width: 767px) {
  .wf-grid { grid-template-columns: 1fr; }
  .role-tabs { border-radius: var(--radius); }
  .role-tab { padding: 9px 16px; font-size: 0.82rem; }
  .ri-cards { grid-template-columns: 1fr; }
  .wf-outcome { padding: 24px; }
  .wf-outcome-inner { gap: 16px; }
}
