/* ============================================================
   Cure2Pure – Shared Design System
   No Tailwind. Pure Vanilla CSS.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Brand */
  --clr-primary: #1392ec;
  --clr-primary-hover: #0e7fd4;
  --clr-primary-shadow: rgba(19, 146, 236, 0.25);
  --clr-green: #10b981;
  --clr-red: #ef4444;
  --clr-amber: #f59e0b;

  /* Backgrounds */
  --clr-bg: #f6f7f8;
  --clr-surface: #ffffff;
  --clr-surface-2: #f1f5f9;

  /* Borders */
  --clr-border: #e2e8f0;

  /* Text */
  --clr-text: #0f172a;
  --clr-text-muted: #64748b;
  --clr-text-faint: #94a3b8;

  /* Sidebar */
  --clr-sidebar: #f8fafc;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --shadow-primary: 0 8px 24px rgba(19,146,236,.25);

  /* Transitions */
  --transition: 0.2s ease;

  /* Typography */
  --font: 'Manrope', sans-serif;

  /* Nav height */
  --nav-h: 68px;
}

/* Dark mode overrides */
[data-theme="dark"] {
  --clr-bg: #101a22;
  --clr-surface: #192833;
  --clr-surface-2: #1e3040;
  --clr-border: #233948;
  --clr-text: #f1f5f9;
  --clr-text-muted: #94a3b8;
  --clr-text-faint: #64748b;
  --clr-sidebar: #131f2b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.25);
  --shadow: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.45);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  user-select: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--sm { max-width: 640px; }
.container--md { max-width: 960px; }
.container--lg { max-width: 1080px; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] .nav { background: rgba(16,26,34,.85); }
.nav__inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--clr-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo .material-symbols-outlined { color: var(--clr-primary); font-size: 2rem; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: color var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--clr-primary); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav__avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid rgba(19,146,236,.2);
  flex-shrink: 0;
}
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--clr-surface-2); }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--clr-primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover { background: var(--clr-primary-hover); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border-color: var(--clr-border);
  color: var(--clr-text-muted);
}
.btn--outline:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.btn--ghost {
  background: var(--clr-surface-2);
  color: var(--clr-text);
}
.btn--ghost:hover { background: var(--clr-border); }
.btn--danger {
  background: #fef2f2;
  color: var(--clr-red);
}
[data-theme="dark"] .btn--danger { background: rgba(239,68,68,.15); }
.btn--danger:hover { background: #fee2e2; }
.btn--lg { height: 52px; padding: 0 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn--sm { height: 32px; padding: 0 0.75rem; font-size: 0.78rem; }
.btn--full { width: 100%; }
.btn--icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--radius);
  background: var(--clr-surface-2);
  color: var(--clr-text-muted);
}
.btn--icon:hover { background: rgba(19,146,236,.1); color: var(--clr-primary); }
.btn--icon-round { border-radius: var(--radius-full); }

/* ── Cards ── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.card--hover:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(19,146,236,.35);
}
.card--sm { border-radius: var(--radius-lg); }
.card__body { padding: 1.5rem; }
.card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--clr-border);
}

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--clr-text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(19,146,236,.15);
  background: var(--clr-surface);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }
.input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
}
.input-wrapper .material-symbols-outlined {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-faint);
  font-size: 1.2rem;
  pointer-events: none;
}
.input-wrapper .form-input { padding-left: 2.5rem; }
.input-icon-right {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-faint);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition);
}
.input-icon-right:hover { color: var(--clr-text-muted); }

/* ── Badges / Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge--primary { background: rgba(19,146,236,.12); color: var(--clr-primary); }
.badge--green { background: rgba(16,185,129,.12); color: var(--clr-green); }
.badge--amber { background: rgba(245,158,11,.12); color: var(--clr-amber); }
.badge--red { background: rgba(239,68,68,.12); color: var(--clr-red); }
.badge--gray { background: var(--clr-surface-2); color: var(--clr-text-muted); }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(19,146,236,.1);
  color: var(--clr-primary);
  transition: background var(--transition), color var(--transition);
}
.tag--outline {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
}
.tag--outline:hover, .tag--outline.active {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

/* ── Avatar ── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-surface-2);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm  { width: 32px; height: 32px; }
.avatar--md  { width: 40px; height: 40px; }
.avatar--lg  { width: 56px; height: 56px; }
.avatar--xl  { width: 96px; height: 96px; }

/* ── Icon Box ── */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(19,146,236,.1);
  color: var(--clr-primary);
  flex-shrink: 0;
}
.icon-box--sm  { width: 36px; height: 36px; font-size: 1rem; }
.icon-box--md  { width: 48px; height: 48px; font-size: 1.5rem; }
.icon-box--lg  { width: 64px; height: 64px; font-size: 2rem; }
.icon-box--red     { background: rgba(239,68,68,.1); color: var(--clr-red); }
.icon-box--green   { background: rgba(16,185,129,.1); color: var(--clr-green); }
.icon-box--amber   { background: rgba(245,158,11,.1); color: var(--clr-amber); }
.icon-box--purple  { background: rgba(139,92,246,.1); color: #8b5cf6; }

/* ── Section Header ── */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; }
.section-header p { color: var(--clr-text-muted); margin-top: 0.375rem; font-weight: 500; }
.section-title { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; }
.section-title + .section-sub { color: var(--clr-text-muted); margin-top: 0.4rem; font-weight: 500; }

/* ── Stats Row ── */
.stats-bar {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--clr-border);
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--clr-border); }
.divider--text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--clr-text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider--text::before, .divider--text::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--clr-border);
}

/* ── Tabs ── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--clr-border);
  gap: 0;
}
.tab-btn {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.tab-btn.active { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }
.tab-btn:hover:not(.active) { color: var(--clr-text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Sidebar Layout ── */
.layout-with-sidebar { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--clr-sidebar);
  border-right: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  transition: background var(--transition), border-color var(--transition);
}
.sidebar__header { padding: 1.25rem 1rem; display: flex; align-items: center; gap: 0.75rem; }
.sidebar__logo { font-size: 1.1rem; font-weight: 800; }
.sidebar__logo span { font-size: 0.7rem; font-weight: 600; color: var(--clr-text-muted); display: block; }
.sidebar__nav { flex: 1; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: all var(--transition);
}
.sidebar__nav a:hover { background: var(--clr-surface); color: var(--clr-text); }
.sidebar__nav a.active { background: rgba(19,146,236,.1); color: var(--clr-primary); }
.sidebar__nav a .badge { margin-left: auto; }
.sidebar__footer { padding: 1rem; border-top: 1px solid var(--clr-border); }
.main-content { flex: 1; overflow: auto; }

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 280px;
  animation: toast-in 0.3s ease;
  transition: background var(--transition);
}
.toast--success { border-left: 4px solid var(--clr-green); }
.toast--error   { border-left: 4px solid var(--clr-red); }
.toast--info    { border-left: 4px solid var(--clr-primary); }
@keyframes toast-in { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: none; } }
@keyframes fade-out { to { opacity:0; transform: translateY(12px); } }

/* ── Animations ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-slide-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
.animate-pulse-dot { animation: pulse-dot 1.5s ease infinite; }
.animate-fade-in   { animation: fade-slide-in 0.4s ease both; }

/* ── Online / Status Dot ── */
.status-dot {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-bg);
}
.status-dot--green  { background: #22c55e; }
.status-dot--gray   { background: var(--clr-text-faint); }
.status-dot--amber  { background: var(--clr-amber); }
.status-dot--pulse { animation: pulse-dot 1.5s ease infinite; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--clr-surface-2) 25%, var(--clr-border) 50%, var(--clr-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Search Bar ── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 40px;
  min-width: 220px;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--clr-primary); }
.search-bar .material-symbols-outlined { padding: 0 0.5rem 0 0.75rem; color: var(--clr-text-faint); font-size: 1.1rem; }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--clr-text);
  padding-right: 0.75rem;
}

/* ── Hero Section ── */
.hero { padding: 4rem 0 5rem; }
.hero--lg { padding: 6rem 0 7rem; }

/* ── Footer ── */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 4rem 0 2rem;
  transition: background var(--transition), border-color var(--transition);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer__logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }
.footer__logo .material-symbols-outlined { color: var(--clr-primary); }
.footer__desc { color: var(--clr-text-muted); font-size: 0.875rem; line-height: 1.7; }
.footer__social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--clr-surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-muted);
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--clr-primary); color: #fff; }
.footer__col h4 { font-weight: 700; margin-bottom: 1.25rem; font-size: 0.9rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col ul a { font-size: 0.875rem; color: var(--clr-text-muted); transition: color var(--transition); }
.footer__col ul a:hover { color: var(--clr-primary); }
.footer__bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--clr-text-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer__bottom a:hover { color: var(--clr-primary); }
.footer__newsletter { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer__newsletter input {
  flex: 1;
  padding: 0.5rem 0.875rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--transition);
}
.footer__newsletter input:focus { border-color: var(--clr-primary); }
.footer__newsletter .btn { flex-shrink: 0; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--clr-text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb .material-symbols-outlined { font-size: 1rem; color: var(--clr-text-faint); }
.breadcrumb > span:last-child { color: var(--clr-primary); }

/* ── Rating Stars ── */
.stars { display: inline-flex; color: #f59e0b; font-size: 1rem; }
.stars .material-symbols-outlined { font-size: 1rem; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: rgba(245,158,11,.1); color: var(--clr-amber);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 700;
}

/* ── Overlay gradient ── */
.overlay-gradient { background: linear-gradient(to top, rgba(16,26,34,.85) 0%, rgba(16,26,34,0) 60%); }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 1.25rem; padding-left: 1rem; border-left: 2px solid var(--clr-border); }
.timeline__item { padding-left: 1rem; }
.timeline__item h4 { font-weight: 700; font-size: 0.9rem; }
.timeline__item p { font-size: 0.82rem; color: var(--clr-text-muted); }

/* ── Video Room specific ── */
.video-gradient { background: linear-gradient(to top, rgba(16,26,34,.85) 0%, rgba(16,26,34,0) 45%); }

/* ── Drag & Drop Upload ── */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem;
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-xl);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--clr-primary);
  background: rgba(19,146,236,.04);
}
.upload-zone .material-symbols-outlined { font-size: 2.5rem; color: var(--clr-primary); margin-bottom: 0.25rem; }
.upload-zone p { font-size: 0.9rem; color: var(--clr-text-muted); }

/* ── Calendar ── */
.calendar { background: var(--clr-surface); border-radius: var(--radius-lg); }
.calendar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.calendar__header h4 { font-weight: 700; }
.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  margin-bottom: 4px;
}
.calendar__days .day-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--clr-text-faint); padding: 4px 0; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none; background: none;
}
.cal-day:hover:not(:disabled) { background: var(--clr-surface-2); }
.cal-day.active { background: var(--clr-primary); color: #fff; font-weight: 700; box-shadow: 0 0 0 2px rgba(19,146,236,.3); }
.cal-day:disabled { color: var(--clr-text-faint); cursor: not-allowed; }
.time-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.time-slot {
  padding: 0.6rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
}
.time-slot:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.time-slot.active { border-color: var(--clr-primary); color: var(--clr-primary); background: rgba(19,146,236,.08); }

/* ── Admin Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--clr-border); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--clr-surface-2); }
th {
  padding: 0.875rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
  text-align: left;
  white-space: nowrap;
}
td {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--clr-surface-2); }

/* ── Metric Card ── */
.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  transition: background var(--transition), border-color var(--transition);
}
.metric-card__header { display: flex; align-items: center; justify-content: space-between; }
.metric-card__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-text-muted); }
.metric-card__value { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; color: var(--clr-text); }
.metric-card__trend { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 700; }
.metric-card__trend--up { color: var(--clr-green); }
.metric-card__trend--down { color: var(--clr-red); }
.metric-card__trend--neutral { color: var(--clr-text-faint); }

/* ── Log Entry ── */
.log-entry {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: background var(--transition);
}
.log-entry__icon { flex-shrink: 0; }
.log-entry__title { font-size: 0.875rem; font-weight: 700; }
.log-entry__sub { font-size: 0.8rem; color: var(--clr-text-muted); margin-top: 0.1rem; }
.log-entry__time { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-text-faint); margin-top: 0.35rem; }

/* ── Filter chips ── */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Prescription item ── */
.rx-item {
  padding: 1rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: background var(--transition);
}
.rx-item__name { font-weight: 700; font-size: 0.875rem; }
.rx-item__detail { font-size: 0.78rem; color: var(--clr-text-muted); margin-top: 0.2rem; }

/* ── Doctor Card (list view) ── */
.doctor-card-h {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.doctor-card-h:hover { border-color: rgba(19,146,236,.4); box-shadow: var(--shadow); }

/* ── Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.78rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.text-6xl  { font-size: 3.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.text-primary { color: var(--clr-primary); }
.text-muted  { color: var(--clr-text-muted); }
.text-faint  { color: var(--clr-text-faint); }
.text-green  { color: var(--clr-green); }
.text-red    { color: var(--clr-red); }
.text-amber  { color: var(--clr-amber); }
.leading-tight { line-height: 1.2; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wide { letter-spacing: 0.06em; }
.uppercase { text-transform: uppercase; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; top: 0; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.object-top { object-position: top; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.border { border: 1px solid var(--clr-border); }
.border-t { border-top: 1px solid var(--clr-border); }
.border-b { border-bottom: 1px solid var(--clr-border); }
.border-r { border-right: 1px solid var(--clr-border); }
.py-2 { padding-block: 0.5rem; } .py-3 { padding-block: 0.75rem; } .py-4 { padding-block: 1rem; }
.px-4 { padding-inline: 1rem; } .px-8 { padding-inline: 2rem; }
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.ml-auto { margin-left: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.opacity-0 { opacity: 0; }
.bg-primary { background: var(--clr-primary); }
.bg-surface { background: var(--clr-surface); }
.bg-surface-2 { background: var(--clr-surface-2); }
.text-white { color: #fff; }
.shrink-0 { flex-shrink: 0; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1; }
/* Neon glow */
.neon { text-shadow: 0 0 8px rgba(19,146,236,.45); }

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 2.5rem 0 3rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header h2 { font-size: 1.5rem; }
  .sidebar { display: none; }
  .layout-with-sidebar.sidebar-open .sidebar { display: flex; position: fixed; z-index: 200; height: 100vh; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .text-5xl { font-size: 2.25rem; }
  .text-6xl { font-size: 2.5rem; }
  .hero--lg { padding: 2rem 0 2.5rem; }
}
