/* ==========================================================
   نبض — Nabd Medical Academy by SHARE IN
   3D Medical Glassmorphism Design System (Mobile-First, RTL)
   Brand Palette: #FF7A00 | #E8590C | #FFC400 | #111111 | #B8BCC2 | #FFFFFF
   ========================================================== */
:root {
  --orange: #FF7A00;
  --orange-d: #E8590C;
  --yellow: #FFC400;
  --ink: #111111;
  --ink-soft: #2B2F36;
  --muted: #5C626B;
  --silver: #B8BCC2;
  --silver-l: #E6E8EC;
  --white: #FFFFFF;
  --bg-base: #F6F7F9;
  --success: #16A34A;
  --success-d: #15803D;
  --danger: #DC2626;
  --shadow: 0 24px 52px -20px rgba(17, 17, 17, 0.20), 0 10px 24px -14px rgba(232, 89, 12, 0.16);
  --shadow-lg: 0 32px 64px -22px rgba(17, 17, 17, 0.28), 0 14px 32px -12px rgba(255, 122, 0, 0.24);
  --r: 24px;
  --font-ar: 'GE SS Two', 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-en: Arial, 'Helvetica Neue', 'Outfit', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.75;
  font-size: 16px;
}
html[dir="ltr"] body {
  font-family: var(--font-en);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.ltr { direction: ltr; text-align: start; font-family: var(--font-en); unicode-bidi: plaintext; }
.en { font-family: var(--font-en); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Animated 3D Medical Glass Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 122, 0, 0.14), transparent 44%),
    radial-gradient(circle at 12% 88%, rgba(232, 89, 12, 0.12), transparent 46%),
    linear-gradient(155deg, #FFFFFF 0%, #F4F6F9 48%, #ECEFF4 100%);
  overflow: hidden;
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(184, 188, 194, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 188, 194, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 35%, transparent 80%);
}
.bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.48;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg i:nth-child(1) { width: 44vmax; height: 44vmax; background: rgba(255, 122, 0, 0.26); top: -14vmax; right: -10vmax; }
.bg i:nth-child(2) { width: 38vmax; height: 38vmax; background: rgba(184, 188, 194, 0.45); bottom: -14vmax; left: -10vmax; animation-delay: -7s; }
.bg i:nth-child(3) { width: 26vmax; height: 26vmax; background: rgba(255, 196, 0, 0.18); top: 42%; left: 34%; animation-delay: -13s; }
@keyframes drift { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.12); } }

/* ---------- Glassmorphism Surfaces ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(184, 188, 194, 0.28);
  border-radius: var(--r);
}
.glass-dark {
  background: linear-gradient(145deg, rgba(17, 17, 17, 0.92), rgba(35, 38, 44, 0.86));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px -18px rgba(17, 17, 17, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-radius: var(--r);
  color: var(--white);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
  .glass-dark { background: #16181D; }
}

/* ---------- 3D Pressable Buttons ---------- */
.btn {
  --edge: #B54105;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: 18px;
  padding: 13px 32px;
  min-width: 155px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
  box-shadow: 0 6px 0 var(--edge), 0 18px 30px -10px rgba(232, 89, 12, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--edge), 0 8px 14px -8px rgba(232, 89, 12, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.4); transform: none; }
.btn.dark {
  --edge: #000000;
  background: linear-gradient(135deg, #27292E 0%, #111111 100%);
  box-shadow: 0 6px 0 var(--edge), 0 18px 28px -12px rgba(17, 17, 17, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.22);
}
.btn.ghost {
  --edge: rgba(184, 188, 194, 0.85);
  color: var(--ink);
  text-shadow: none;
  background: linear-gradient(180deg, #FFFFFF, #F1F3F6);
  border: 1px solid rgba(184, 188, 194, 0.65);
  box-shadow: 0 5px 0 var(--edge), 0 14px 24px -12px rgba(17, 17, 17, 0.18), inset 0 2px 0 #FFFFFF;
}
.btn.ghost:hover { border-color: var(--orange); color: var(--orange-d); }
.btn.whatsapp {
  --edge: #15803D;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  box-shadow: 0 6px 0 var(--edge), 0 16px 26px -10px rgba(22, 163, 74, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.btn.big { font-size: 1.18rem; padding: 16px 42px; }
.btn.sm {
  font-size: 0.9rem;
  padding: 9px 18px;
  min-width: 0;
  border-radius: 13px;
  box-shadow: 0 4px 0 var(--edge), 0 10px 16px -10px rgba(232, 89, 12, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.4);
}
.btn.sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.loading { pointer-events: none; }
.btn.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Top Navigation Bar (App & Public) ---------- */
.topbar-wrap {
  position: sticky;
  top: 12px;
  z-index: 60;
  padding: 0 14px;
  margin-top: 12px;
}
.topbar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(232, 89, 12, 0.28));
}
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand b { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.brand small { font-size: 0.72rem; color: var(--orange-d); font-weight: 700; font-family: var(--font-en); letter-spacing: 0.04em; }
.top-actions { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.top-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.top-actions + .top-tools { margin-inline-start: 0; }
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: 0.2s;
  border: 1px solid transparent;
}
.nav-pill:hover { background: rgba(255, 255, 255, 0.85); color: var(--orange-d); }
.nav-pill.on {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  box-shadow: 0 8px 16px -8px rgba(232, 89, 12, 0.65);
}
.nav-pill svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3D Logo Stage & Floating Medical Orbs ---------- */
.logo-stage {
  perspective: 1100px;
  width: clamp(160px, 32vw, 240px);
  margin: 0 auto 14px;
  position: relative;
}
.logo-stage img {
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  animation: sway 8s ease-in-out infinite;
  filter: drop-shadow(0 22px 24px rgba(232, 89, 12, 0.24));
}
.logo-stage::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -10px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(17, 17, 17, 0.22), transparent 72%);
  animation: shadowSway 8s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: translateX(-14px) rotateY(-15deg) rotateZ(-1.2deg); }
  50% { transform: translateX(14px) rotateY(15deg) rotateZ(1.2deg); }
}
@keyframes shadowSway {
  0%, 100% { transform: translateX(-14px) scaleX(0.92); }
  50% { transform: translateX(14px) scaleX(0.92); }
}

/* 3D Medical Glass Orbs & Capsules */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.92;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0.3) 18%, transparent 20%),
    radial-gradient(circle at 50% 50%, var(--o1), var(--o2));
  box-shadow: inset -10px -12px 22px rgba(17, 17, 17, 0.14), 0 22px 34px -12px var(--o2);
  animation: bob 9s ease-in-out infinite;
}
.med-badge-3d {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.36));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 32px -14px rgba(17, 17, 17, 0.25), inset 0 1px 0 #FFFFFF;
  animation: bob 10s ease-in-out infinite;
}
.med-badge-3d svg { width: 30px; height: 30px; stroke: var(--orange); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 50% { transform: translateY(-20px) rotate(7deg); } }

/* Animated ECG Pulse Line */
.ecg-strip {
  position: relative;
  max-width: 680px;
  height: 54px;
  margin: 4px auto 16px;
  overflow: hidden;
  opacity: 0.9;
}
.ecg-strip svg { width: 100%; height: 100%; }
.ecg-path {
  fill: none;
  stroke: url(#ecgGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: ecgDraw 3.4s ease-in-out infinite;
}
@keyframes ecgDraw {
  0% { stroke-dashoffset: 900; opacity: 0.25; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: 0; opacity: 0.95; }
  100% { stroke-dashoffset: -900; opacity: 0.25; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 28px 18px 64px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.22);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.22); }
  50% { box-shadow: 0 0 0 8px rgba(255, 122, 0, 0.04); }
}

.title {
  font-weight: 800;
  font-size: clamp(2.1rem, 6.2vw, 3.8rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.title .accent {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-d) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-en {
  direction: ltr;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  color: var(--orange-d);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}
.blurb {
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--muted);
  max-width: 650px;
  margin: 14px auto 0;
  line-height: 1.9;
}
.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- 3D Glass Feature Cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 38px auto 0;
  max-width: 1040px;
  perspective: 1000px;
}
.feat {
  padding: 22px 16px 20px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feat .ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  box-shadow: 0 12px 20px -6px rgba(232, 89, 12, 0.48), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transform: translateZ(30px);
}
.feat .ico svg { width: 28px; height: 28px; stroke: #FFFFFF; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 1rem; font-weight: 800; line-height: 1.5; transform: translateZ(18px); color: var(--ink); }
.feat p { font-size: 0.87rem; color: var(--muted); line-height: 1.65; margin-top: 4px; transform: translateZ(10px); }

/* ---------- Sections & Program Card ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.sec { padding: 36px 0 18px; }
.sec-title {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.4rem, 3.8vw, 1.95rem);
  margin-bottom: 24px;
  color: var(--ink);
}
.sec-title::after {
  content: "";
  display: block;
  width: 78px;
  height: 5px;
  border-radius: 5px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.program-spotlight {
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.program-spotlight::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 7px;
  background: linear-gradient(180deg, var(--orange), var(--yellow));
}
.prog-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 99px;
  background: rgba(255, 122, 0, 0.12);
  color: var(--orange-d);
  font-weight: 800;
  font-size: 0.84rem;
  margin-bottom: 10px;
}
.prog-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--orange); }
.program-spotlight h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; margin-bottom: 6px; }
.program-spotlight p { color: var(--muted); font-size: 0.98rem; line-height: 1.85; }
.prog-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prog-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 188, 194, 0.45);
  text-align: center;
}
.prog-stat b { display: block; font-size: 1.25rem; font-weight: 800; color: var(--orange-d); }
.prog-stat small { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* ---------- Auth / Form Cards ---------- */
.auth-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}
.box { width: 100%; max-width: 620px; padding: clamp(22px, 4.5vw, 38px); }
.box.narrow { max-width: 470px; }
.box h1 { font-size: clamp(1.35rem, 3.6vw, 1.85rem); font-weight: 800; text-align: center; line-height: 1.4; }
.box .lead { text-align: center; color: var(--muted); font-size: 0.96rem; margin-top: 6px; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--danger); margin-inline-start: 3px; }
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-d);
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 10px;
  padding: 7px 11px;
  line-height: 1.5;
}
.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1.8px solid rgba(184, 188, 194, 0.72);
  border-radius: 14px;
  padding: 12px 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(17, 17, 17, 0.05);
}
.input::placeholder, .textarea::placeholder { color: #8A9099; font-weight: 400; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--orange);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.16);
}
.input[readonly] { background: rgba(230, 232, 236, 0.65); color: var(--muted); cursor: not-allowed; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(184, 188, 194, 0.55);
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
  margin-top: 3px;
  flex: none;
  cursor: pointer;
}
.check-row a { color: var(--orange-d); text-decoration: underline; }

.flash {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.94rem;
  line-height: 1.6;
}
.flash.ok { background: #ECFDF3; border: 1px solid #86EFAC; color: #166534; }
.flash.err { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.flash.warn { background: #FFF7ED; border: 1px solid rgba(255, 122, 0, 0.45); color: #9A3412; }

/* ---------- Doctor Dashboard ---------- */
.dash-wrap { max-width: 1120px; margin: 22px auto 40px; padding: 0 16px; }
.welcome-banner {
  padding: clamp(20px, 3.5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.welcome-banner::after {
  content: "";
  position: absolute;
  left: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.16), transparent 70%);
  pointer-events: none;
}
.welcome-meta h1 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 800; line-height: 1.3; }
.welcome-meta .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(17, 17, 17, 0.08);
  color: var(--ink);
}
.pill-badge.orange { background: rgba(255, 122, 0, 0.14); color: var(--orange-d); }
.pill-badge.gold-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--orange); }

.progress-card {
  min-width: 260px;
  flex: 1;
  max-width: 380px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(184, 188, 194, 0.55);
}
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.progress-head b { font-size: 1.05rem; color: var(--ink); }
.progress-head span { font-weight: 800; color: var(--orange-d); font-family: var(--font-en); }
.progress-track {
  height: 12px;
  border-radius: 99px;
  background: var(--silver-l);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(17, 17, 17, 0.08);
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.45);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress-sub { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* Fixed Notice + Quick Actions */
.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.realname-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #111111, #262930);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 24px -12px rgba(17, 17, 17, 0.45);
}
.realname-notice i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.22);
  flex: none;
}
.quick-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Lecture Cards Grid */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  perspective: 1000px;
}
.session-card {
  padding: 20px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.session-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* 4 Lecture Card States */
.session-card.state-upcoming {
  background: linear-gradient(135deg, rgba(244, 246, 248, 0.85), rgba(230, 232, 236, 0.52));
  border-color: rgba(184, 188, 194, 0.65);
}
.session-card.state-live {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 230, 0.85));
  border: 2px solid var(--orange);
  box-shadow: 0 24px 50px -16px rgba(255, 122, 0, 0.45), inset 0 1px 0 #FFFFFF;
}
.session-card.state-ended {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(241, 243, 246, 0.55));
  border-color: rgba(184, 188, 194, 0.7);
}
.session-card.state-recorded {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.6));
  border-color: rgba(255, 255, 255, 0.95);
}

.sess-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sess-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--ink);
  color: #FFFFFF;
}
.state-live .sess-num { background: linear-gradient(135deg, var(--orange), var(--orange-d)); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 800;
}
.status-pill.st-upcoming { background: var(--silver-l); color: var(--muted); }
.status-pill.st-live { background: var(--orange); color: #FFFFFF; box-shadow: 0 6px 14px -4px rgba(255, 122, 0, 0.65); }
.status-pill.st-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulseDot 1.4s infinite;
}
.status-pill.st-ended { background: #E5E7EB; color: #374151; }
.status-pill.st-recorded { background: #111111; color: #FFFFFF; }

.sess-title { font-size: 1.08rem; font-weight: 800; line-height: 1.5; color: var(--ink); }
.sess-meta { display: grid; gap: 5px; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.sess-meta span { display: flex; align-items: center; gap: 7px; }
.sess-meta svg { width: 16px; height: 16px; stroke: var(--orange-d); fill: none; stroke-width: 2; flex: none; }

.live-steps {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 122, 0, 0.08);
  border: 1px dashed rgba(232, 89, 12, 0.4);
  font-size: 0.84rem;
}
.live-steps b { display: block; color: var(--orange-d); margin-bottom: 6px; }
.live-steps ol { padding-inline-start: 18px; display: grid; gap: 3px; color: var(--ink-soft); font-weight: 600; }
.zoom-creds {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.zoom-cred {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(184, 188, 194, 0.7);
  color: var(--ink);
}

.sess-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.att-chip {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}
.att-chip.yes { background: #DCFCE7; color: #166534; }
.att-chip.no { background: var(--silver-l); color: var(--muted); }

/* ---------- Pending / Status Screen ---------- */
.status-stage { text-align: center; padding: 12px 0; }
.status-orb {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  box-shadow: 0 18px 34px -12px rgba(232, 89, 12, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}
.status-orb svg { width: 42px; height: 42px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer (University + Sponsored by Pharco + SHARE IN) ---------- */
.foot {
  margin-top: 48px;
  padding: 0 18px 34px;
  text-align: center;
}
.foot-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-logos img { height: 46px; width: auto; object-fit: contain; }
.foot-share { display: flex; align-items: center; gap: 10px; }
.foot-share img { height: 34px; width: auto; object-fit: contain; }
.foot small.copy { display: block; margin-top: 12px; color: var(--muted); font-size: 0.84rem; font-weight: 600; }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(17, 17, 17, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-back.open { display: flex; }
.modal-card { width: 100%; max-width: 560px; padding: 26px; max-height: 85vh; overflow-y: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Topbar Hamburger & Mobile Drawer + Language Switch ---------- */
.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(17, 17, 17, 0.08);
  color: var(--ink);
  border: 1px solid rgba(184, 188, 194, 0.65);
  transition: 0.18s;
  flex: none;
}
.lang-pill:hover { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.burger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(184, 188, 194, 0.75);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 6px 14px -8px rgba(17, 17, 17, 0.35);
}
.burger-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }

.mobile-drawer-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: none;
}
.mobile-drawer-back.open { display: block; }
.mobile-drawer {
  position: fixed;
  top: 12px;
  left: 12px;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 16px;
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: rise 0.22s ease;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 188, 194, 0.45);
  margin-bottom: 4px;
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(184, 188, 194, 0.7);
  background: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}
.mobile-drawer a, .mobile-drawer button.drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 13px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(184, 188, 194, 0.4);
  cursor: pointer;
  text-align: start;
}
.mobile-drawer a.on {
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  color: #FFFFFF;
  border-color: transparent;
}
.mobile-drawer a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }

/* Doctor Home Overview Cards */
.home-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.home-kpi {
  padding: 18px;
  text-align: center;
}
.home-kpi b { display: block; font-size: 1.85rem; font-weight: 800; color: var(--orange-d); font-family: var(--font-en); line-height: 1.2; }
.home-kpi small { color: var(--muted); font-weight: 700; font-size: 0.84rem; }

/* ---------- Responsive (All Device Widths: 1024 / 768 / 640 / 480 / 360) ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .program-spotlight { grid-template-columns: 1fr; }
  .home-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .topbar-wrap { top: 8px; padding: 0 10px; margin-top: 8px; }
  .topbar { padding: 8px 12px; border-radius: 16px; justify-content: flex-start; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand b { font-size: 0.94rem; }
  .brand small { font-size: 0.65rem; }
  .desktop-only { display: none !important; }
  .top-tools { margin-inline-start: auto; }
  .burger-btn.doc-burger { display: inline-flex; }
  html[dir="ltr"] .burger-btn.doc-burger { order: -1; }
  html[dir="rtl"] .burger-btn.doc-burger { order: 3; }
  html[dir="rtl"] .top-tools { margin-inline-start: auto; }

  .sessions-grid { grid-template-columns: 1fr; gap: 14px; }
  .session-card { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .welcome-banner { padding: 16px; gap: 14px; }
  .progress-card { min-width: 100%; max-width: none; padding: 14px; }
  .foot-card { justify-content: center; text-align: center; padding: 14px 16px; }
  .btn { padding: 11px 22px; min-width: 120px; font-size: 0.95rem; }
  .btn.big { padding: 13px 26px; font-size: 1rem; }
  .orb.hide-m, .med-badge-3d.hide-m { display: none; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; gap: 12px; }
  .prog-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .home-kpi { padding: 13px 10px; }
  .home-kpi b { font-size: 1.45rem; }
  .hero { padding: 18px 12px 44px; }
  .logo-stage { width: 148px; }
  .box { padding: 18px 15px; border-radius: 20px; }
  .dash-wrap { margin: 14px auto 28px; padding: 0 12px; }
}
@media (max-width: 380px) {
  body { font-size: 14px; }
  .prog-stats, .home-kpis { grid-template-columns: 1fr; }
  .quick-btns { width: 100%; }
  .quick-btns .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
