/* ============================================================
   OneMedical Design System — onemedical.css
   Primary: #14b8a6 (teal-500) | CTA/Hover: #f4771d (orange)
   Fonts: DM Sans (body) + Playfair Display (headings)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Noto+Sans+Lao+Looped:wdth,wght@100,100..900&family=Playfair+Display:wght@400;600;700&family=Poppins:wght@500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --teal:        #14b8a6;
  --teal-dark:   #0d9488;
  --teal-pale:   #e6faf8;
  --teal-light:  #5eead4;
  --orange:      #f4771d;
  --orange-dark: #e0660f;
  --orange-pale: #fff4ec;
  --ink:         #111827;
  --ink-60:      #4b5563;
  --ink-30:      #9ca3af;
  --border:      #e5e7eb;
  --bg:          #f9fafb;
  --dark:        #0f172a;
  --dark-2:      #1e293b;
  --white:       #ffffff;
  --radius:      10px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07);
  --shadow:      0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --transition:  0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans Lao Looped', 'Poppins', 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea, button { font-family: inherit; }

/* ── Lao language: Noto Sans Lao Looped on every element ── */
:lang(lo),
:lang(lo) *,
:lang(lo) input,
:lang(lo) select,
:lang(lo) textarea,
:lang(lo) button {
  font-family: 'Noto Sans Lao Looped', sans-serif !important;
}
/* Preserve monospace for code/SKU/barcode elements in Lao mode */
:lang(lo) code,
:lang(lo) pre,
:lang(lo) kbd,
:lang(lo) samp {
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace !important;
}
ul { list-style: none; }
::selection { background: var(--teal-pale); }

/* ── Typography ─────────────────────────────────────────── */
.font-serif { font-family: 'Playfair Display', serif; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--ink); }
p { line-height: 1.7; color: var(--ink-60); }

.section-label {
  display: inline-block;
  font-size: 11.5px; font-family: 'DM Sans', sans-serif;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.section-label--white { color: var(--teal-light); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--ink); line-height: 1.15;
}
.section-title--white { color: white; }
.lead { font-size: 15.5px; color: var(--ink-60); line-height: 1.75; }

/* ── Container ──────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--dark); }
.section-bg   { background: var(--bg); }
.section-white { background: var(--white); }
.section-teal  { background: var(--teal); }

/* ── Section header ─────────────────────────────────────── */
.section-head           { margin-bottom: 48px; }
.section-head--center   { text-align: center; }
.section-head--split    { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: none;
  transition: all var(--transition); white-space: nowrap; cursor: pointer;
}
.btn-primary {
  background: var(--teal); color: white;
  box-shadow: 0 2px 8px rgba(20,184,166,0.25);
}
.btn-primary:hover {
  background: var(--orange); color: white;
  box-shadow: 0 4px 16px rgba(244,119,29,0.35);
  transform: translateY(-1px);
}
.btn-orange {
  background: var(--orange); color: white;
  box-shadow: 0 2px 8px rgba(244,119,29,0.28);
}
.btn-orange:hover {
  background: var(--orange-dark); color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244,119,29,0.38);
}
.btn-outline {
  background: transparent; color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: white; }
.btn-outline-white {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn-ghost { background: var(--bg); color: var(--ink-60); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--teal-pale); color: var(--teal); border-color: var(--teal); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-60); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--ink); background: var(--white, white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
}
.form-control.is-invalid { border-color: #ef4444; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.form-error  { font-size: 12px; color: #ef4444; margin-top: 5px; }
.form-hint   { font-size: 12px; color: var(--ink-30); margin-top: 5px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 110px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.form-check input[type=checkbox], .form-check input[type=radio] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--teal); cursor: pointer; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white, white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body  { padding: 22px; }
.card-img   { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: var(--teal-pale); display: flex; align-items: center;
  justify-content: center; color: var(--teal); font-size: 13px; font-weight: 500;
}

/* ── Service card ─────────────────────────────────────── */
.service-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.28s ease; cursor: pointer;
  display: flex; flex-direction: column;
}
.service-card:hover {
  background: var(--teal); border-color: var(--teal);
  transform: translateY(-4px); box-shadow: 0 12px 36px rgba(20,184,166,0.22);
}
.service-card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-card__img-ph {
  width: 100%; aspect-ratio: 16/10; background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--teal); font-weight: 500;
  transition: background 0.28s;
}
.service-card:hover .service-card__img-ph { background: #0d9488; color: white; }
.service-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.service-card__title { font-family: 'DM Sans', sans-serif; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: color 0.28s; line-height: 1.3; }
.service-card:hover .service-card__title { color: white; }
.service-card__desc  { font-size: 12.5px; line-height: 1.65; color: var(--ink-60); transition: color 0.28s; flex: 1; }
.service-card:hover .service-card__desc { color: rgba(255,255,255,0.82); }
.service-card__link  { font-size: 13px; font-weight: 600; color: var(--teal); transition: color 0.28s; margin-top: 4px; display: inline-block; }
.service-card:hover .service-card__link { color: #fcd34d; }

/* ── Doctor card ──────────────────────────────────────── */
.doctor-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
}
.doctor-card:hover { box-shadow: 0 8px 28px rgba(20,184,166,0.14); transform: translateY(-3px); }
.doctor-card__img  { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.doctor-card__img-ph {
  width: 100%; aspect-ratio: 3/4; background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 12px;
}
.doctor-card__body  { padding: 16px 18px; }
.doctor-card__exp   { font-size: 11px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; }
.doctor-card__name  { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px; line-height: 1.3; }
.doctor-card__role  { font-size: 12.5px; color: var(--ink-60); line-height: 1.5; }

/* ── Community card (dark bg) ─────────────────────────── */
.community-card {
  border-radius: var(--radius-lg); padding: 26px 22px;
  border: 1px solid rgba(255,255,255,0.07); background: var(--dark-2);
  transition: all var(--transition); cursor: pointer;
}
.community-card:hover { border-color: var(--teal); background: #134e4a; }
.community-card__icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(20,184,166,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.community-card__title { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: white; margin-bottom: 10px; line-height: 1.3; }
.community-card__desc  { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.community-card__link  { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--teal-light); transition: color var(--transition); }
.community-card__link:hover { color: var(--orange); }

/* ── Testimonial card ─────────────────────────────────── */
.testimonial-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.testimonial-card__stars { display: flex; gap: 2px; margin-bottom: 14px; }
.testimonial-card__text  { font-size: 13.5px; line-height: 1.75; color: var(--ink-60); font-style: italic; margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-pale); color: var(--teal); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.testimonial-card__name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.testimonial-card__role { font-size: 12px; color: var(--ink-30); }

/* ── Badge ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; font-size: 11.5px; font-weight: 500;
}
.badge-teal   { background: var(--teal-pale); color: var(--teal-dark); border: 1px solid rgba(20,184,166,0.2); }
.badge-orange { background: var(--orange-pale); color: var(--orange-dark); border: 1px solid rgba(244,119,29,0.2); }
.badge-gray   { background: var(--bg); color: var(--ink-60); border: 1px solid var(--border); }

/* ── Alert ────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info    { background: var(--teal-pale); border: 1px solid rgba(20,184,166,0.3); color: var(--teal-dark); }

/* ── Tables ───────────────────────────────────────────── */
.om-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.om-table th { background: var(--teal); color: white; padding: 12px 16px; text-align: left; font-weight: 600; font-size: 13px; }
.om-table th:first-child { border-radius: 8px 0 0 0; }
.om-table th:last-child  { border-radius: 0 8px 0 0; }
.om-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.om-table tr:last-child td { border-bottom: none; }
.om-table tr:hover td { background: var(--teal-pale); }
.om-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }

/* ── Tabs ─────────────────────────────────────────────── */
.om-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.om-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--ink-60);
  border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none; transition: all var(--transition);
}
.om-tab:hover  { color: var(--teal); }
.om-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ── Modal ────────────────────────────────────────────── */
.om-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 500;
  align-items: center; justify-content: center; padding: 20px;
}
.om-modal-overlay.open { display: flex; }
.om-modal {
  background: var(--white, white); border-radius: var(--radius-lg); width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: fadeUp 0.25s ease;
}
.om-modal__header {
  position: sticky; top: 0; background: var(--white, white); border-bottom: 1px solid var(--border);
  padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; z-index: 1;
}
.om-modal__title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); }
.om-modal__close { background: none; border: none; font-size: 24px; color: var(--ink-30); cursor: pointer; line-height: 1; padding: 4px; }
.om-modal__close:hover { color: var(--ink); }
.om-modal__body { padding: 24px; }

/* ── Page hero ────────────────────────────────────────── */
.page-hero {
  background: var(--dark); padding: 60px 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(20,184,166,0.18) 0%, transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(white 1px,transparent 1px), linear-gradient(90deg, white 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__label   { color: #5eead4 !important; margin-bottom: 10px; }
.page-hero__title   { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: white; line-height: 1.15; }
.page-hero__sub     { font-size: 15.5px; color: rgba(255,255,255,0.68); line-height: 1.75; margin-top: 14px; max-width: 560px; }

/* ── Stats strip ──────────────────────────────────────── */
.stats-strip { background: rgba(20,184,166,0.9); }
.stats-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-strip__item { padding: 20px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,0.14); }
.stats-strip__item:last-child { border-right: none; }
.stats-strip__value { font-family: 'Playfair Display', serif; font-size: 27px; font-weight: 700; color: white; }
.stats-strip__label { font-size: 12px; color: rgba(255,255,255,0.82); margin-top: 3px; }

/* ── CTA strip ────────────────────────────────────────── */
.cta-strip { background: var(--teal); padding: 60px 0; }
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip__title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; color: white; line-height: 1.2; }
.cta-strip__sub   { color: rgba(255,255,255,0.78); font-size: 15px; margin-top: 8px; }

/* ── Topbar ───────────────────────────────────────────── */
.om-topbar { background: var(--teal); color: white; font-size: 12px; padding: 6px 0; }
.om-topbar a { color: white; opacity: 0.88; }
.om-topbar a:hover { opacity: 1; color: white; }

/* ── Navbar ───────────────────────────────────────────── */
.om-nav {
  position: sticky; top: 0; z-index: 50; background: white;
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s, backdrop-filter 0.3s;
}
.om-nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); backdrop-filter: blur(12px); background: rgba(255,255,255,0.97); }
.om-nav__inner   { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.om-logo { display: flex; align-items: center; gap: 10px; }
.om-logo__icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.om-logo__name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.1; }
.om-logo__sub  { font-size: 9.5px; color: var(--ink-30); letter-spacing: 0.07em; text-transform: uppercase; }
.om-navlinks   { display: flex; align-items: center; gap: 1px; flex: 1; justify-content: center; }
.om-navlink {
  display: flex; align-items: center; gap: 3px; padding: 6px 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-60); border-radius: 6px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.om-navlink:hover,
.om-navlink.active { color: var(--teal); background: var(--teal-pale); }
.om-dropdown { position: relative; }
.om-dropdown__menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: white; border-radius: 10px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); min-width: 210px; padding: 6px 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s, transform 0.15s; z-index: 100;
}
.om-dropdown:hover .om-dropdown__menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.om-dropdown__item { display: block; padding: 9px 16px; font-size: 13.5px; color: var(--ink-60); transition: all 0.12s; }
.om-dropdown__item:hover { background: var(--teal-pale); color: var(--teal); }
.om-nav__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.om-burger { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; }
.om-drawer-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.45); }
.om-drawer-overlay.open { display: block; }
.om-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; background: white; overflow-y: auto; padding: 22px; }

/* ── Grids ────────────────────────────────────────────── */
.grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* ── Partner card ─────────────────────────────────────── */
.partner-card {
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px 20px;
  text-align: center; background: white; transition: all var(--transition); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.partner-card:hover { border-color: var(--teal); background: var(--teal-pale); box-shadow: var(--shadow); }
.partner-card__logo { width: 80px; height: 60px; object-fit: contain; }
.partner-card__logo-ph { width: 80px; height: 60px; background: var(--bg); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink-30); }
.partner-card__name { font-size: 13px; font-weight: 500; color: var(--ink-60); transition: color var(--transition); }
.partner-card:hover .partner-card__name { color: var(--teal-dark); }

/* ── Package table ────────────────────────────────────── */
.package-table-wrap { overflow-x: auto; }
.package-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.package-table th { background: var(--teal); color: white; padding: 12px 14px; text-align: center; font-weight: 600; font-size: 12.5px; position: sticky; top: 0; }
.package-table th.row-label { background: var(--teal-dark); text-align: left; }
.package-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.package-table td.row-label { text-align: left; font-weight: 500; color: var(--ink); background: var(--bg); }
.package-table tr:hover td { background: var(--teal-pale); }
.package-table tr:hover td.row-label { background: var(--teal-pale); }
.check { color: var(--teal); font-size: 16px; }
.cross { color: var(--ink-30); font-size: 16px; }

/* ── Auth pages ───────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 40px 20px; }
.auth-card { background: white; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.auth-card__logo { text-align: center; margin-bottom: 28px; }
.auth-card__title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 6px; }
.auth-card__sub   { font-size: 14px; color: var(--ink-60); text-align: center; margin-bottom: 28px; }

/* ── Account sidebar ──────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.account-sidebar { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 90px; }
.account-sidebar__header { background: var(--teal); padding: 24px; text-align: center; }
.account-sidebar__avatar { width: 64px; height: 64px; border-radius: 50%; background: white; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--teal); overflow: hidden; }
.account-sidebar__avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-sidebar__name  { font-weight: 600; font-size: 16px; color: white; }
.account-sidebar__email { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.account-nav__item {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px;
  font-size: 14px; font-weight: 500; color: var(--ink-60); border-bottom: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
}
.account-nav__item:last-child { border-bottom: none; }
.account-nav__item:hover  { background: var(--teal-pale); color: var(--teal); }
.account-nav__item.active { background: var(--teal-pale); color: var(--teal); font-weight: 600; }
.account-main { display: flex; flex-direction: column; gap: 24px; }
.account-section { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.account-section__header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.account-section__title  { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--ink); }
.account-section__body   { padding: 24px; }

/* ── Admin panel ──────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-shell  { display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; }

/* Sidebar */
.admin-sidebar {
  background: #0d9488; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 3px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 4px; }
.admin-sidebar__logo {
  padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.admin-sidebar__icon {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.admin-sidebar__logo-img {
  width: 38px; height: 38px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  mix-blend-mode: screen;
}
.admin-sidebar__brand {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 14px; color: #fff; line-height: 1.1; display: block;
}
.admin-sidebar__sub { font-size: 10px; color: rgba(255,255,255,0.65); display: block; }
.admin-nav__section {
  padding: 18px 22px 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.admin-nav__item {
  display: flex; align-items: center; gap: 10px; padding: 11px 22px;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.88);
  transition: all var(--transition); cursor: pointer;
  border-left: 3px solid transparent; text-decoration: none;
}
.admin-nav__item svg {
  width: 16px; height: 16px; flex-shrink: 0;
  opacity: 0.75; transition: opacity var(--transition);
}
.admin-nav__item:hover {
  background: rgba(0,0,0,0.10); color: #fff;
  border-left-color: rgba(255,255,255,0.5); text-decoration: none;
}
.admin-nav__item:hover svg { opacity: 1; }
.admin-nav__item.active {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-left-color: #fff;
  font-weight: 600;
}
.admin-nav__item.active svg { opacity: 1; }
.nav-badge {
  margin-left: auto; flex-shrink: 0; font-style: normal;
  background: #f97316; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.nav-badge--blue { background: #3b82f6; }
.nav-badge--teal { background: #0d9488; }
.nav-badge--red  { background: #ef4444; }
[data-theme="dark"] .nav-badge       { background: #ea6a0e; }
[data-theme="dark"] .nav-badge--blue { background: #2563eb; }
[data-theme="dark"] .nav-badge--teal { background: #0f766e; }
[data-theme="dark"] .nav-badge--red  { background: #dc2626; }
.admin-nav__signout {
  padding: 14px 22px 18px; border-top: 1px solid rgba(255,255,255,0.15); margin-top: auto;
}
.admin-nav__signout a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: rgba(255,255,255,0.75); font-weight: 500;
  transition: color var(--transition);
}
.admin-nav__signout a svg { width: 15px; height: 15px; }
.admin-nav__signout a:hover { color: #fff; }

/* Topbar */
.admin-topbar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 14px 28px; display: flex; justify-content: space-between;
  align-items: center; position: sticky; top: 0; z-index: 10; flex-shrink: 0;
}
.admin-topbar__title { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; color: var(--ink); }
.admin-topbar__date  { font-size: 12px; color: var(--ink-30); margin-top: 2px; }
.admin-topbar__right { display: flex; align-items: center; gap: 14px; }
.admin-topbar__viewsite {
  font-size: 13px; color: var(--teal); font-weight: 500;
  text-decoration: none; transition: color var(--transition);
}
.admin-topbar__viewsite:hover { color: var(--teal-dark); }
.admin-topbar__divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.admin-topbar__user { display: flex; align-items: center; gap: 9px; }
.admin-topbar__avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal);
  color: white; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.admin-topbar__username { font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* Topbar search */
.topbar-search {
  position: relative; display: flex; align-items: center;
}
.topbar-search__icon {
  position: absolute; left: 11px; color: var(--ink-30); pointer-events: none; flex-shrink: 0;
}
.topbar-search__input {
  height: 36px; padding: 0 14px 0 34px;
  border: 1px solid var(--border); border-radius: 9px;
  font-size: 13px; font-family: inherit; color: var(--ink);
  background: var(--bg); outline: none; width: 200px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.topbar-search__input:focus {
  border-color: var(--teal); background: white;
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}

/* Notification buttons */
.notif-btn {
  position: relative; width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-60); background: var(--bg); border: 1px solid var(--border);
  transition: all var(--transition); flex-shrink: 0; text-decoration: none;
}
.notif-btn:hover { background: var(--teal-pale); border-color: var(--teal); color: var(--teal); }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: #ef4444; color: white;
  border-radius: 100px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white; line-height: 1;
}
.notif-badge--orange { background: var(--orange); }

.topbar-logout-btn {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-60); background: var(--bg);
  border: 1px solid var(--border); transition: all var(--transition);
  text-decoration: none;
}
.topbar-logout-btn:hover { color: #ef4444; border-color: #fecaca; background: #fef2f2; }

/* Main content area */
.admin-main { background: var(--bg); padding: 32px; flex: 1; }

/* Page header row (title + actions) */
.admin-page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.admin-page-title  { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; color: var(--ink); }
.admin-page-count  { font-size: 15px; font-weight: 400; color: var(--ink-60); margin-left: 6px; }

/* Content panel */
.admin-panel { background: var(--white, white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.admin-panel__header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-panel__title  { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--ink); }
.admin-panel__body   { padding: 22px; }

/* ── Horizontal stats row ─────────────────────────────────── */
.om-stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.om-stats-row::-webkit-scrollbar { display: none; }
.om-stats-row > * { flex: 1; min-width: 140px; }

/* Stat cards */
.admin-stat-card {
  background: var(--white, white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow .18s, transform .18s;
  position: relative;
  overflow: hidden;
}
.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, #5eead4 100%);
  opacity: 0;
  transition: opacity .2s;
}
.admin-stat-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.admin-stat-card:hover::before { opacity: 1; }
.admin-stat-card__icon  { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-stat-card__icon svg { width: 22px; height: 22px; }
.admin-stat-card__value { font-size: 1.75rem; font-weight: 700; color: var(--ink); line-height: 1; }
.admin-stat-card__label { font-size: .75rem; color: var(--ink-60); margin-top: .25rem; font-weight: 500; letter-spacing: .01em; }

/* Stat mini (compact stat counter used across admin pages) */
.stat-mini {
  background: var(--white, white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: box-shadow .18s, transform .18s;
}
.stat-mini:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.stat-mini-label { font-size: .7rem; color: var(--ink-60); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .375rem; }
.stat-mini-value { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--ink); line-height: 1; margin: 0; }

/* Toolbar (search + filter row) */
.admin-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-toolbar .form-control { background: var(--white, white); }

/* Status pills */
.pill           { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 500; }
.pill-pending   { background: #fef9c3; color: #854d0e; }
.pill-confirmed { background: var(--teal-pale); color: var(--teal-dark); }
.pill-completed { background: #f0fdf4; color: #166534; }
.pill-cancelled { background: #fef2f2; color: #991b1b; }
.pill-active    { background: var(--teal-pale); color: var(--teal-dark); }
.pill-inactive  { background: var(--bg); color: var(--ink-30); border: 1px solid var(--border); }
.pill-open      { background: #f0fdf4; color: #166534; }
.pill-closed    { background: #fef2f2; color: #991b1b; }
.pill-new       { background: var(--orange-pale); color: var(--orange-dark); }
.pill-read      { background: var(--bg); color: var(--ink-30); }
.pill-published { background: var(--teal-pale); color: var(--teal-dark); }
.pill-draft     { background: #f5f3ff; color: #6d28d9; }

/* ── Badge colour variants (admin) ───────────────────── */
.badge-purple { background:#f5f3ff; color:#6d28d9; border:1px solid #ddd6fe; }
.badge-blue   { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.badge-green  { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.badge-red    { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.badge-yellow { background:#fffbeb; color:#92400e; border:1px solid #fde68a; }

/* ── Extra button variants ────────────────────────────── */
.btn-danger    { background:#ef4444; color:white; border:none; box-shadow:0 2px 8px rgba(239,68,68,.25); }
.btn-danger:hover { background:#dc2626; color:white; transform:translateY(-1px); }
.btn-secondary { background:var(--bg); color:var(--ink-60); border:1.5px solid var(--border); }
.btn-secondary:hover { background:var(--border); color:var(--ink); }

/* ── Modal panel (pharmacy, clinical-services, etc.) ─── */
.modal-panel { background:var(--white,white); border-radius:var(--radius-lg); box-shadow:0 20px 60px rgba(0,0,0,.18); animation:fadeUp .22s ease; overflow:hidden; max-height:90vh; overflow-y:auto; }
.modal-header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:18px 22px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--white,white); z-index:1; }
.modal-title-row { display:flex; align-items:flex-start; gap:12px; }
.modal-icon { width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:var(--teal-pale); color:var(--teal); }
.modal-icon svg { width:18px; height:18px; }
.modal-icon-teal { background:var(--teal-pale); color:var(--teal); }
.modal-title { font-family:'Poppins',sans-serif; font-size:16px; font-weight:700; color:var(--ink); margin:0; line-height:1.3; }

/* ── Language tabs ───────────────────────────────────── */
.lang-tab { padding:7px 14px; border:none; background:none; font-size:13px; font-weight:500; color:var(--ink-60); border-bottom:2px solid transparent; cursor:pointer; transition:color .15s,border-color .15s; }
.lang-tab:hover { color:var(--ink); }
.lang-tab.active { color:var(--teal); border-bottom-color:var(--teal); font-weight:600; }

/* ── Tab navigation ──────────────────────────────────── */
.tab-nav { display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:20px; }
.tab-link { padding:8px 16px; font-size:13.5px; font-weight:500; color:var(--ink-60); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; transition:color .15s,border-color .15s; }
.tab-link:hover { color:var(--ink); }
.tab-link.active { color:var(--teal); border-bottom-color:var(--teal); font-weight:600; }

/* ── Flash / alert banners ───────────────────────────── */
.flash { display:flex; align-items:flex-start; gap:10px; padding:12px 16px; border-radius:var(--radius); font-size:13.5px; border:1px solid; margin-bottom:16px; }
.flash-warning { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.flash-success { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.flash-error   { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.flash-info    { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }

/* ── Table row action buttons ────────────────────────── */
.admin-page-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }

/* ── Modal footer ─────────────────────────────────────── */
.om-modal__footer {
  padding:16px 24px; border-top:1px solid var(--border);
  display:flex; justify-content:flex-end; gap:10px;
  background:var(--bg); border-radius:0 0 var(--radius-lg) var(--radius-lg);
  flex-shrink:0;
}

/* ── Bulk action bar ──────────────────────────────────── */
.admin-bulk-bar, .bulkBar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  animation: bulkBarIn .18s ease;
}
@keyframes bulkBarIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Left: selection badge + label */
.bulk-info {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.bulk-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 9px;
  background: #0d9488; color: #fff;
  font-size: 13px; font-weight: 700; border-radius: 20px; line-height: 1;
  transition: transform .15s ease;
}
.bulk-label {
  font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap;
}

/* Divider */
.bulk-divider {
  width: 1px; height: 26px; background: #e5e7eb;
  margin: 0 14px; flex-shrink: 0;
}

/* Action buttons group */
.bulk-actions {
  display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap;
}
.bulk-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; font-size: 13px; font-weight: 600;
  border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
  white-space: nowrap; line-height: 1;
}
.bulk-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.bulk-btn--enable {
  background: #0d9488; color: #fff; border-color: #0d9488;
}
.bulk-btn--enable:hover {
  background: #0f766e; border-color: #0f766e;
  transform: translateY(-1px); box-shadow: 0 3px 10px rgba(13,148,136,.35);
}
.bulk-btn--disable {
  background: #f8fafc; color: #374151; border-color: #e2e8f0;
}
.bulk-btn--disable:hover {
  background: #f1f5f9; border-color: #cbd5e1;
  transform: translateY(-1px);
}
.bulk-btn--delete {
  background: #fef2f2; color: #dc2626; border-color: #fecaca;
}
.bulk-btn--delete:hover {
  background: #dc2626; color: #fff; border-color: #dc2626;
  transform: translateY(-1px); box-shadow: 0 3px 10px rgba(220,38,38,.3);
}

/* Close / clear button (right-aligned) */
.bulk-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-left: auto; flex-shrink: 0;
  border: none; background: transparent; color: #9ca3af;
  border-radius: 8px; cursor: pointer; transition: all .15s ease;
}
.bulk-close:hover { background: #f1f5f9; color: #374151; }
.bulk-close svg { width: 15px; height: 15px; }

/* ── Dark mode ──────────────────────────────────────────── */
[data-theme="dark"] .admin-bulk-bar,
[data-theme="dark"] .bulkBar {
  background: #1e293b; border-color: #334155;
  box-shadow: 0 4px 24px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.3);
}
[data-theme="dark"] .bulk-label   { color: #94a3b8; }
[data-theme="dark"] .bulk-divider { background: #334155; }
[data-theme="dark"] .bulk-btn--disable {
  background: #0f172a; color: #e2e8f0; border-color: #334155;
}
[data-theme="dark"] .bulk-btn--disable:hover {
  background: #1e293b; border-color: #475569;
}
[data-theme="dark"] .bulk-btn--delete {
  background: rgba(220,38,38,.12); color: #f87171; border-color: rgba(220,38,38,.25);
}
[data-theme="dark"] .bulk-btn--delete:hover {
  background: #dc2626; color: #fff; border-color: #dc2626;
}
[data-theme="dark"] .bulk-close:hover { background: #0f172a; color: #e2e8f0; }

/* ── Row avatar ───────────────────────────────────────── */
.admin-row-avatar {
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:white; font-weight:700; font-size:13px; flex-shrink:0;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.animate-up   { animation: fadeUp  0.5s ease both; }
.animate-in   { animation: fadeIn  0.4s ease both; }
.animate-side { animation: slideIn 0.5s ease both; }

/* ── Utilities ────────────────────────────────────────── */
.text-teal    { color: var(--teal); }
.text-orange  { color: var(--orange); }
.text-muted   { color: var(--ink-60); }
.text-white   { color: white; }
.text-center  { text-align: center; }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 11.5px; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.hidden { display: none !important; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .om-navlinks, .om-nav__actions { display: none; }
  .om-burger { display: flex; align-items: center; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
  .admin-topbar { padding: 12px 20px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-strip__grid { grid-template-columns: 1fr 1fr; }
  .cta-strip__inner  { text-align: center; justify-content: center; }
  .section   { padding: 56px 0; }
  .container { padding: 0 18px; }
  .form-row  { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ════════════════════════════════════════════════════════════ */
.lang-switcher {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
}
.lang-btn {
  padding: 4px 10px; font-size: 11.5px; font-weight: 600;
  color: var(--ink-60); background: var(--bg);
  text-decoration: none; transition: all var(--transition);
  letter-spacing: 0.02em; line-height: 1.6;
}
.lang-btn:hover { color: var(--teal); background: var(--teal-pale); text-decoration: none; }
.lang-btn.active {
  background: var(--teal); color: #fff;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--border); }

/* ════════════════════════════════════════════════════════════
   DARK MODE TOGGLE
   ════════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink-60);
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { background: var(--teal-pale); border-color: var(--teal); color: var(--teal); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

/* ════════════════════════════════════════════════════════════
   DARK MODE  [data-theme="dark"]
   ════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --ink:         #e2e8f0;
  --ink-60:      #94a3b8;
  --ink-30:      #64748b;
  --border:      #334155;
  --bg:          #0f172a;
  --white:       #1e293b;
  --teal-pale:   rgba(20,184,166,0.12);
  --orange-pale: rgba(244,119,29,0.12);
}

[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }

/* Sidebar - dark mode */
[data-theme="dark"] .admin-sidebar {
  background: #111827;
  border-right: 1px solid #1f2937;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
[data-theme="dark"] .admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .admin-sidebar__logo { border-bottom-color: #1f2937; }
[data-theme="dark"] .admin-sidebar__icon { background: rgba(20,184,166,0.15); }
[data-theme="dark"] .admin-sidebar__logo-img { mix-blend-mode: screen; }
[data-theme="dark"] .admin-sidebar__brand { color: #f1f5f9; }
[data-theme="dark"] .admin-sidebar__sub { color: #4b5563; }
[data-theme="dark"] .admin-nav__section { color: #374151; }
[data-theme="dark"] .admin-nav__item { color: #6b7280; border-left-color: transparent; }
[data-theme="dark"] .admin-nav__item svg { opacity: 0.55; }
[data-theme="dark"] .admin-nav__item:hover {
  background: rgba(255,255,255,0.05);
  color: #d1d5db;
  border-left-color: #374151;
}
[data-theme="dark"] .admin-nav__item:hover svg { opacity: 0.85; }
[data-theme="dark"] .admin-nav__item.active {
  background: rgba(20,184,166,0.14);
  color: #2dd4bf;
  border-left-color: #14b8a6;
  font-weight: 600;
}
[data-theme="dark"] .admin-nav__item.active svg { opacity: 1; }
[data-theme="dark"] .admin-nav__signout { border-top-color: #1f2937; }
[data-theme="dark"] .admin-nav__signout a { color: #4b5563; }
[data-theme="dark"] .admin-nav__signout a:hover { color: #d1d5db; }

/* Topbar */
[data-theme="dark"] .admin-topbar {
  background: #1e293b; border-color: #334155;
}
[data-theme="dark"] .admin-topbar__title { color: #f1f5f9; }
[data-theme="dark"] .admin-topbar__date  { color: #64748b; }
[data-theme="dark"] .admin-topbar__username { color: #f1f5f9; }
[data-theme="dark"] .topbar-search__input {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
[data-theme="dark"] .topbar-search__input::placeholder { color: #475569; }
[data-theme="dark"] .notif-btn {
  background: #0f172a; border-color: #334155; color: #94a3b8;
}
[data-theme="dark"] .notif-btn:hover { background: rgba(20,184,166,0.12); }
[data-theme="dark"] .topbar-logout-btn {
  background: #0f172a; border-color: #334155; color: #94a3b8;
}
[data-theme="dark"] .topbar-logout-btn:hover { background: rgba(239,68,68,0.12); border-color: #ef4444; }
[data-theme="dark"] .admin-topbar__divider { background: #334155; }
[data-theme="dark"] .lang-btn { background: #0f172a; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .lang-btn + .lang-btn { border-color: #334155; }
[data-theme="dark"] .lang-btn.active { background: var(--teal); color: #fff; }
[data-theme="dark"] .lang-switcher { border-color: #334155; }
[data-theme="dark"] .theme-toggle { background: #0f172a; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* Main content */
[data-theme="dark"] .admin-main { background: #0f172a; }
[data-theme="dark"] .admin-page-title { color: #f1f5f9; }

/* Panels */
[data-theme="dark"] .admin-panel {
  background: #1e293b; border-color: #334155;
}
[data-theme="dark"] .admin-panel__header {
  border-color: #334155;
}
[data-theme="dark"] .admin-panel__body { background: #1e293b; }

/* Tables */
[data-theme="dark"] .om-table th {
  background: #0f172a; color: #94a3b8; border-color: #334155;
}
[data-theme="dark"] .om-table td { border-color: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .om-table tr:hover td { background: #263348; }
[data-theme="dark"] .om-table-wrap { border-color: #334155; }

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"] {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
[data-theme="dark"] .form-label { color: #94a3b8; }

/* Generic card */
[data-theme="dark"] .card { background: #1e293b; border-color: #334155; }

/* Stat cards */
[data-theme="dark"] .admin-stat-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .admin-stat-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.4); }
[data-theme="dark"] .admin-stat-card__value { color: #f1f5f9; }
[data-theme="dark"] .admin-stat-card__label { color: #94a3b8; }

/* Misc */
[data-theme="dark"] .text-muted,
[data-theme="dark"] .c-muted { color: #64748b !important; }
[data-theme="dark"] .bg-white,
[data-theme="dark"] .admin-panel { background: #1e293b; }
[data-theme="dark"] hr,
[data-theme="dark"] .border-b { border-color: #334155; }

/* Modal panel */
[data-theme="dark"] .modal-panel { background: #1e293b; }
[data-theme="dark"] .modal-header { background: #1e293b; border-bottom-color: #334155; }
[data-theme="dark"] .modal-title { color: #f1f5f9; }
[data-theme="dark"] .modal-icon { background: rgba(20,184,166,0.15); color: #2dd4bf; }

/* Lang tabs & tab nav */
[data-theme="dark"] .lang-tab { color: #64748b; }
[data-theme="dark"] .lang-tab:hover { color: #94a3b8; }
[data-theme="dark"] .lang-tab.active { color: #2dd4bf; border-bottom-color: #14b8a6; }
[data-theme="dark"] .tab-nav { border-bottom-color: #334155; }
[data-theme="dark"] .tab-link { color: #64748b; }
[data-theme="dark"] .tab-link:hover { color: #94a3b8; }
[data-theme="dark"] .tab-link.active { color: #2dd4bf; border-bottom-color: #14b8a6; }

/* Flash banners */
[data-theme="dark"] .flash-warning { background:rgba(251,191,36,0.08); border-color:rgba(251,191,36,0.3); color:#fcd34d; }
[data-theme="dark"] .flash-success { background:rgba(34,197,94,0.08); border-color:rgba(34,197,94,0.3); color:#86efac; }
[data-theme="dark"] .flash-error   { background:rgba(239,68,68,0.08); border-color:rgba(239,68,68,0.3); color:#fca5a5; }
[data-theme="dark"] .flash-info    { background:rgba(59,130,246,0.08); border-color:rgba(59,130,246,0.3); color:#93c5fd; }

/* Stat mini */
[data-theme="dark"] .stat-mini { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .stat-mini:hover { box-shadow: 0 6px 24px rgba(0,0,0,.4); }
[data-theme="dark"] .stat-mini-label { color: #94a3b8; }
[data-theme="dark"] .stat-mini-value { color: #f1f5f9; }

/* Modals */
[data-theme="dark"] .om-modal { background: #1e293b; }
[data-theme="dark"] .om-modal__header { background: #1e293b; border-bottom-color: #334155; }
[data-theme="dark"] .om-modal__footer { background: #1e293b; border-top-color: #334155; }
[data-theme="dark"] .om-modal__title { color: #f1f5f9; }
[data-theme="dark"] .om-modal__close { color: #64748b; }
[data-theme="dark"] .om-modal__close:hover { color: #f1f5f9; }
[data-theme="dark"] .om-modal__body { color: #cbd5e1; }

/* Toolbar */
[data-theme="dark"] .admin-toolbar .form-control { background: #0f172a; }

/* Dashboard side panels */
[data-theme="dark"] .side-panel { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .side-panel__header { border-bottom-color: #334155; }
[data-theme="dark"] .side-panel__title { color: #f1f5f9; }

/* Dashboard bar chart */
[data-theme="dark"] .bar { background: rgba(20,184,166,0.15); }
[data-theme="dark"] .bar:hover { background: rgba(20,184,166,0.28); }
[data-theme="dark"] .bar.today { background: #14b8a6; }
[data-theme="dark"] .bar.today:hover { background: #0d9488; }
[data-theme="dark"] .bar-col span { color: #64748b; }
[data-theme="dark"] .bar-col.today span { color: #2dd4bf; }

/* Dashboard donut legend */
[data-theme="dark"] .legend-item { color: #94a3b8; }

/* Activity feed */
[data-theme="dark"] .activity-item { border-bottom-color: #334155; }
[data-theme="dark"] .activity-text { color: #94a3b8; }
[data-theme="dark"] .activity-text strong { color: #e2e8f0; }
[data-theme="dark"] .activity-time { color: #64748b; }

/* Tailwind utility overrides inside admin content area */
[data-theme="dark"] .admin-main .text-gray-900,
[data-theme="dark"] .admin-main .text-gray-800 { color: #f1f5f9 !important; }
[data-theme="dark"] .admin-main .text-gray-700,
[data-theme="dark"] .admin-main .text-gray-600 { color: #94a3b8 !important; }
[data-theme="dark"] .admin-main .text-gray-500,
[data-theme="dark"] .admin-main .text-gray-400 { color: #64748b !important; }
[data-theme="dark"] .admin-main .bg-gray-50,
[data-theme="dark"] .admin-main .bg-gray-100 { background: #0f172a !important; }
[data-theme="dark"] .admin-main .bg-white { background: #1e293b !important; }
[data-theme="dark"] .admin-main .border-gray-200,
[data-theme="dark"] .admin-main .border-gray-300 { border-color: #334155 !important; }
[data-theme="dark"] .admin-main .divide-gray-200 > * + * { border-color: #334155; }

/* Dropdown menus and popovers */
[data-theme="dark"] .admin-main .rounded-lg.bg-white,
[data-theme="dark"] .admin-main .rounded.bg-white { background: #1e293b !important; border-color: #334155 !important; }

/* Generic white surfaces */
[data-theme="dark"] .admin-shell .bg-white { background: #1e293b !important; }
[data-theme="dark"] .admin-shell .border-gray-200 { border-color: #334155 !important; }
[data-theme="dark"] .admin-shell .text-gray-900 { color: #f1f5f9 !important; }
[data-theme="dark"] .admin-shell .text-gray-700 { color: #cbd5e1 !important; }
[data-theme="dark"] .admin-shell .text-gray-600 { color: #94a3b8 !important; }
[data-theme="dark"] .admin-shell .text-gray-500 { color: #64748b !important; }
