/* ================================================================
   AD PHARMA — Electro-Homeopathic Navigator
   Theme: Clean White Professional Pharma
   ================================================================ */

:root {
  /* Core palette */
  --white:       #ffffff;
  --bg:          #f5f7fa;
  --bg2:         #eef1f6;
  --surface:     #ffffff;
  --surface2:    #f8f9fc;

  /* Borders */
  --border:      #e2e6ed;
  --border2:     #c8d0dc;
  --border3:     #b0bbc9;

  /* Brand — deep navy + teal accent */
  --navy:        #0d2444;
  --navy2:       #1a3a6b;
  --teal:        #0ea5a0;
  --teal2:       #12c5bf;
  --teal-light:  #e6f8f7;
  --teal-muted:  #b2e8e6;

  /* Text */
  --text:        #1a2236;
  --text2:       #4a5568;
  --text3:       #8899aa;
  --text4:       #b8c6d4;

  /* Status */
  --success:     #16a34a;
  --success-bg:  #f0fdf4;
  --warn:        #d97706;
  --warn-bg:     #fffbeb;
  --danger:      #dc2626;
  --danger-bg:   #fef2f2;
  --info:        #2563eb;
  --info-bg:     #eff6ff;

  /* Sizing */
  --radius:      6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);

  /* Fonts */
  --font-head:   'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body:   'Inter', 'Segoe UI', system-ui, sans-serif;

  --trans: all 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 900;
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.nav-brand a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 55px; height: 34px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.nav-brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  display: block; white-space: nowrap;
  padding: 5px 10px;
  border-radius: var(--radius);
  color: var(--text2);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--trans);
}

.nav-links a:hover { color: var(--navy); background: var(--bg); }
.nav-links a.active { color: var(--teal); background: var(--teal-light); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text2); border-radius: 2px; transition: var(--trans); }

/* ===== PAGE LAYOUT ===== */
.page-wrap { max-width: 1160px; margin: 0 auto; padding: 2rem 1.5rem; }

.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-header p { color: var(--text2); font-size: 0.88rem; }

h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* ===== FORMS ===== */
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 5px;
}

input[type=text], input[type=email], input[type=number], input[type=tel],
textarea, select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--trans);
  outline: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,160,0.1);
}

input::placeholder, textarea::placeholder { color: var(--text4); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238899aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

textarea { resize: vertical; min-height: 90px; }
.form-group { margin-bottom: 1.1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--trans);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy2); border-color: var(--navy2); box-shadow: var(--shadow-sm); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal2); border-color: var(--teal2); box-shadow: var(--shadow-sm); }

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border2);
}
.btn-outline:hover { border-color: var(--navy); background: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg2); color: var(--navy); }

.btn-danger-outline {
  background: var(--white);
  color: var(--danger);
  border-color: #fca5a5;
}
.btn-danger-outline:hover { background: var(--danger-bg); }

.btn-sm { padding: 6px 14px; font-size: 0.78rem; border-radius: var(--radius); }
.btn-lg { padding: 12px 28px; font-size: 0.95rem; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ===== TABLES ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.data-table thead th {
  background: var(--bg);
  color: var(--text2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--trans); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface2); }
.data-table td { padding: 11px 14px; color: var(--text2); vertical-align: middle; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-teal   { background: var(--teal-light); color: #0a7a76; }
.badge-navy   { background: #e8edf5; color: var(--navy); }
.badge-green  { background: var(--success-bg); color: var(--success); }
.badge-amber  { background: var(--warn-bg); color: var(--warn); }
.badge-red    { background: var(--danger-bg); color: var(--danger); }
.badge-gray   { background: var(--bg2); color: var(--text2); }
.badge-blue   { background: var(--info-bg); color: var(--info); }

/* Dose type badges */
.dose-ST  { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.dose-LT  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.dose-EXT { background: #fdf4ff; color: #9333ea; border: 1px solid #f3e8ff; }

/* ===== STATUS ===== */
.status-pending   { background: var(--warn-bg);    color: var(--warn);    }
.status-confirmed { background: var(--info-bg);    color: var(--info);    }
.status-shipped   { background: #f0f9ff;            color: #0284c7;        }
.status-delivered { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg);  color: var(--danger);  }

/* ===== ALERTS ===== */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 10px;
  border-left: 3px solid;
}
.alert-success { background: var(--success-bg); color: #15803d; border-color: var(--success); }
.alert-error   { background: var(--danger-bg);  color: var(--danger); border-color: var(--danger); }
.alert-info    { background: var(--info-bg);    color: var(--info);   border-color: var(--info);   }
.alert-warning { background: var(--warn-bg);    color: var(--warn);   border-color: var(--warn);   }

/* ===== SEARCH ===== */
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.search-input {
  width: 100%;
  padding: 11px 16px 11px 40px !important;
  border-radius: 40px !important;
  border: 1.5px solid var(--border2) !important;
  font-size: 0.95rem !important;
  box-shadow: var(--shadow-sm);
}

.search-input:focus { border-color: var(--teal) !important; }

.search-icon-wrap {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text3); pointer-events: none;
}

.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 400;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.open { display: block; }

.search-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
  font-size: 0.88rem;
}

.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--teal-light); color: var(--teal); }
.search-item .cat { font-size: 0.74rem; color: var(--text3); }

/* ===== OPTION PILLS ===== */
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  padding: 7px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  color: var(--text2);
  cursor: pointer;
  font-size: 0.84rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: var(--trans);
}
.pill:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.pill.selected { border-color: var(--teal); background: var(--teal-light); color: #0a7a76; font-weight: 600; }

/* ===== RESULT BOX ===== */
.result-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.result-box h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.25rem; }

/* ===== MEDICINE CARD ===== */
.med-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
  display: flex; flex-direction: column;
  cursor: pointer;
}

.med-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.med-card.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,160,0.15); }

.med-card-img {
  width: 100%; height: 160px;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

.med-card-img img { width: 100%; height: 100%; object-fit: cover; }

.med-card-img-placeholder {
  font-size: 2.5rem; color: var(--border3);
}

.med-card-body { padding: 1rem; flex: 1; }
.med-card-name { font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 2px; }
.med-card-code { font-size: 0.72rem; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.med-card-desc { font-size: 0.8rem; color: var(--text2); line-height: 1.5; margin-bottom: 10px; }
.med-card-price { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.med-card-unit  { font-size: 0.74rem; color: var(--text3); margin-top: 1px; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.9rem; }

/* ===== SECTION BLOCK ===== */
.section-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.section-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.7rem;
}

/* ===== BODY DIAGRAM ===== */
.body-viewer {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.body-diagram-svg { max-width: 220px; width: 100%; }

.organ-node { cursor: pointer; }
.organ-node circle { fill: var(--white); stroke: var(--border3); stroke-width: 1.5; transition: var(--trans); }
.organ-node:hover circle { stroke: var(--teal); fill: var(--teal-light); r: 8; }
.organ-node.active circle { stroke: var(--teal); fill: var(--teal); }
.organ-node.active text { fill: var(--white); }
.organ-node text { font-size: 9px; fill: var(--text3); font-family: var(--font-body); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }

/* ===== VIEW TABS ===== */
.view-tabs { display: flex; gap: 4px; margin-bottom: 1rem; flex-wrap: wrap; }
.view-tab {
  padding: 5px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--white);
  color: var(--text2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  font-family: var(--font-body);
}
.view-tab:hover { border-color: var(--teal); color: var(--teal); }
.view-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== 5 ELEMENTS ===== */
.elements-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.element-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: var(--trans);
}

.element-card.active { border-width: 2px; box-shadow: var(--shadow); }
.element-card .elem-symbol { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.element-card .elem-name   { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); }
.element-card .elem-organ  { font-size: 0.66rem; color: var(--text3); margin-top: 2px; }
.element-card .elem-score  { font-size: 1.4rem; font-weight: 800; margin-top: 6px; }

.element-wood  { --ec: #16a34a; } .element-wood.active  { border-color: #16a34a; } .element-wood  .elem-score { color: #16a34a; }
.element-fire  { --ec: #dc2626; } .element-fire.active  { border-color: #dc2626; } .element-fire  .elem-score { color: #dc2626; }
.element-earth { --ec: #d97706; } .element-earth.active { border-color: #d97706; } .element-earth .elem-score { color: #d97706; }
.element-metal { --ec: #6b7280; } .element-metal.active { border-color: #6b7280; } .element-metal .elem-score { color: #6b7280; }
.element-water { --ec: #2563eb; } .element-water.active { border-color: #2563eb; } .element-water .elem-score { color: #2563eb; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg2);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,36,68,0.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 0.85rem;
  opacity: 0; transition: var(--trans);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: var(--white); font-size: 0.85rem; }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius-lg); display: block; }
.lightbox-close { position: absolute; top: -36px; right: 0; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ===== LOGIN ===== */
.login-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); }

.login-card {
  width: 100%; max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center; margin-bottom: 2rem;
}

.login-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--navy);
  border-radius: 14px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.login-card h2 { font-size: 1.4rem; color: var(--navy); text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--text3); font-size: 0.84rem; margin-bottom: 1.5rem; }

.otp-row { display: flex; gap: 8px; justify-content: center; margin: 1.1rem 0; }

.otp-row input {
  width: 44px; height: 50px;
  text-align: center; font-size: 1.3rem; font-weight: 700;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border2);
  padding: 0;
}

.otp-row input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,160,0.12); }

.text-link { color: var(--teal); cursor: pointer; background: none; border: none; font-family: var(--font-body); font-size: 0.84rem; text-decoration: underline; padding: 0; }
.text-link:disabled { color: var(--text3); text-decoration: none; cursor: default; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 2rem 1.5rem;
}

.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }

.footer-brand-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.footer-tagline { font-size: 0.8rem; color: var(--text3); margin-bottom: 0.75rem; }
.footer-disclaimer { font-size: 0.75rem; color: var(--text4); line-height: 1.5; }

.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 0.75rem; }
.footer-col a { display: block; color: var(--text2); text-decoration: none; font-size: 0.84rem; margin-bottom: 6px; transition: var(--trans); }
.footer-col a:hover { color: var(--teal); }

.footer-bottom { max-width: 1160px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text3); flex-wrap: wrap; gap: 0.5rem; }

/* ===== HOME HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  color: var(--white);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-kicker {
  display: inline-block;
  background: rgba(14,165,160,0.2);
  color: var(--teal2);
  border: 1px solid rgba(14,165,160,0.4);
  border-radius: 30px;
  padding: 4px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 em { color: var(--teal2); font-style: normal; }

.hero p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 500px; margin: 0 auto 2rem; line-height: 1.7; }

.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.btn-hero-primary { background: var(--teal); color: var(--white); border-color: var(--teal); padding: 11px 28px; }
.btn-hero-primary:hover { background: var(--teal2); }
.btn-hero-outline { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.3); padding: 11px 24px; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.18); }

/* ===== NAV CARDS HOME ===== */
.nav-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.5rem; }

.nav-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-decoration: none;
  display: block;
  transition: var(--trans);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s;
}

.nav-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.nav-card:hover::before { transform: scaleX(1); }

.nav-card-icon {
  width: 40px; height: 40px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.nav-card h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 5px; }
.nav-card p  { font-size: 0.8rem; color: var(--text2); line-height: 1.5; }

/* ===== LOADER ===== */
.loader { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 2.5rem; color: var(--text3); flex-direction: column; }
.loader-dots { display: flex; gap: 6px; }
.loader-dots span { display: inline-block; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: dotBounce 1.1s ease-in-out infinite; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce { 0%,80%,100%{transform:scale(0.5);opacity:0.4} 40%{transform:scale(1);opacity:1} }

/* ===== ADMIN LAYOUT ===== */
.admin-topbar {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}

.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand-badge { width: 32px; height: 32px; background: var(--navy); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 11px; }
.admin-brand-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.admin-brand-label { font-size: 0.68rem; color: var(--text3); font-weight: 400; margin-left: 6px; letter-spacing: 0.04em; }

.admin-layout { display: flex; min-height: calc(100vh - 60px); }

.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1rem 0.75rem;
  position: sticky; top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-section { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text4); padding: 0 8px; margin: 1.1rem 0 0.3rem; }

.sidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--text2);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--trans);
  margin-bottom: 1px;
}

.sidebar-link:hover { background: var(--bg2); color: var(--navy); }
.sidebar-link.active { background: var(--teal-light); color: #0a7a76; font-weight: 600; }

.admin-main { flex: 1; padding: 1.75rem; overflow-x: auto; min-width: 0; }

.admin-page-title { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.admin-page-sub { color: var(--text3); font-size: 0.84rem; margin-bottom: 1.5rem; }

/* ===== STAT CARDS ===== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1rem; margin-bottom: 1.75rem; }

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.74rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 5px; }
.stat-icon  { font-size: 1.1rem; margin-bottom: 6px; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9000;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.modal-head h3 { font-size: 1rem; color: var(--navy); }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text3); line-height: 1; padding: 2px; }
.modal-close:hover { color: var(--danger); }

.modal-body { padding: 1.5rem; }

.modal-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 0.75rem;
}

/* ===== IMG PREVIEW ===== */
.img-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); vertical-align: middle; }
.img-placeholder { width: 44px; height: 44px; background: var(--bg2); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; vertical-align: middle; border: 1px solid var(--border); }

.table-actions { display: flex; gap: 5px; flex-wrap: wrap; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid var(--border2); text-decoration: none; font-size: 0.82rem; color: var(--text2); transition: var(--trans); padding: 0 6px; }
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination .cur { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp 0.3s ease forwards; }

@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.fade-in { animation: fadeIn 0.25s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .elements-strip { grid-template-columns: repeat(3,1fr); }
  .admin-sidebar { width: 200px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 0.5rem; gap: 1px; z-index: 800; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; gap: 2px; padding: 0.5rem; }
  .sidebar-section { display: none; }
  .elements-strip { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem; }
  .otp-row input { width: 38px; height: 44px; font-size: 1.1rem; }
  .admin-main { padding: 1rem; }
}

/* ===== SOUND THERAPY ===== */
.sound-control { display: flex; gap: 8px; align-items: center; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 4px; background: var(--bg2); border-radius: 2px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: var(--teal); border-radius: 50%; cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; background: var(--teal); border-radius: 50%; cursor: pointer; border: none; }

/* ===== PRINT ===== */
@media print { .navbar, .site-footer, .btn { display: none !important; } .page-wrap { padding: 0; } }
