/* ============================================================
   HEALTH POINT — Global Stylesheet
   Medical Luxury Aesthetic | Navy · Teal · Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* Bauhaus 93 — place Bauhaus93.ttf in /fonts/ folder */
@font-face {
  font-family: 'Bauhaus93';
  src: url('/fonts/Bauhaus93.ttf') format('truetype'),
       url('/fonts/BAUHS93.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:       #0A1628;
  --navy-mid:   #132240;
  --navy-light: #1E3A5F;
  --teal:       #0D7B8F;
  --teal-light: #12A3BB;
  --teal-pale:  #E8F7FA;
  --gold:       #C9A227;
  --gold-light: #E8C547;
  --gold-pale:  #FBF5E0;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --gray-100:   #F1F4F8;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #64748B;
  --gray-800:   #1E293B;
  --danger:     #DC2626;
  --success:    #16A34A;
  --warning:    #D97706;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --shadow-sm:  0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.04);
  --shadow-md:  0 4px 12px rgba(10,22,40,0.12), 0 2px 6px rgba(10,22,40,0.06);
  --shadow-lg:  0 16px 40px rgba(10,22,40,0.16), 0 4px 12px rgba(10,22,40,0.08);
  --shadow-xl:  0 32px 64px rgba(10,22,40,0.24);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--gray-600); }

a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal-light); }

/* ── Layout Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold) !important; }
.text-teal   { color: var(--teal) !important; }
.text-navy   { color: var(--navy) !important; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media(max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width: 600px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ── Section Header ── */
.section-header { margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(201,162,39,0.25);
}
.section-divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
  margin: 18px auto 0;
}
.section-divider.left { margin-left: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,123,143,0.35);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
}
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-header { margin-bottom: 20px; border-bottom: 1px solid var(--gray-200); padding-bottom: 16px; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,123,143,0.12);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-text { font-size: 0.78rem; color: var(--gray-400); margin-top: 5px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 5px; display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-teal    { background: var(--teal-pale); color: var(--teal); }
.badge-gold    { background: var(--gold-pale); color: var(--gold); border: 1px solid rgba(201,162,39,0.3); }
.badge-navy    { background: var(--navy); color: var(--white); }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-danger  { background: #fee2e2; color: var(--danger); }
.badge-warning { background: #fef3c7; color: var(--warning); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ── Alert / Toast ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #dcfce7; color: #15803d; border-left: 4px solid var(--success); }
.alert-error   { background: #fee2e2; color: #b91c1c; border-left: 4px solid var(--danger); }
.alert-info    { background: var(--teal-pale); color: var(--teal); border-left: 4px solid var(--teal); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }

/* Toast notification */
#toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.toast-success { background: var(--navy); color: var(--white); border-left: 4px solid var(--gold); }
#toast.toast-error   { background: var(--danger); color: var(--white); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  transition: var(--transition);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 32px;
  max-width: 1280px; margin: 0 auto;
}
.navbar-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.navbar-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.navbar-logo-placeholder {
  width: 44px; height: 44px;
  background: var(--teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; color: var(--white); font-size: 1.1rem;
}
.navbar-name { font-family: 'Bauhaus93', var(--font-display); font-weight: normal; font-size: 1.25rem; color: var(--white); line-height: 1.1; letter-spacing: 0.04em; }
.navbar-tagline { font-size: 0.62rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.navbar-menu { display: flex; align-items: center; gap: 6px; }
.navbar-menu a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-menu a:hover, .navbar-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.navbar-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 1px; transition: var(--transition); }
/* Burger → X animation when open */
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width: 900px) {
  .navbar-toggle { display: flex; }
  .navbar-menu, .navbar-actions {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: column; padding: 16px 24px; gap: 4px;
  }
  .navbar-menu.open, .navbar-actions.open { display: flex; }
  .navbar-menu a { padding: 12px 16px; width: 100%; }
  .navbar-actions { flex-direction: row; padding: 12px 24px 20px; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(13,123,143,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(201,162,39,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #0A1628 0%, #0f2140 50%, #0A1628 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: linear-gradient(var(--teal) 1px, transparent 1px),
                    linear-gradient(90deg, var(--teal) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold);
  padding: 7px 18px;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-label span { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero h1 { color: var(--white); margin-bottom: 22px; max-width: 700px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.hero-cross {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px; opacity: 0.06;
}
@media(max-width: 900px) { .hero-cross { display: none; } .hero-stats { gap: 24px; flex-wrap: wrap; } }

/* ── Services ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal-pale); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--teal-pale); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--teal); color: var(--white); }
.service-card h4 { color: var(--navy); margin-bottom: 10px; }
.service-card p  { font-size: 0.88rem; }

/* ── Specialty Tags ── */
.specialty-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.specialty-tag {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 40px;
  font-weight: 500; font-size: 0.9rem; color: var(--navy);
  transition: var(--transition);
  cursor: default;
}
.specialty-tag:hover { border-color: var(--teal); background: var(--teal-pale); color: var(--teal); }
.specialty-tag svg { width: 18px; height: 18px; color: var(--teal); }

/* ── Doctors ── */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.doctor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.doctor-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gray-400);
}
.doctor-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-light), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: rgba(255,255,255,0.4);
}
.doctor-info { padding: 20px; }
.doctor-info h4 { color: var(--navy); margin-bottom: 4px; }
.doctor-specialty { color: var(--teal); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.doctor-qual { font-size: 0.82rem; color: var(--gray-400); }
.doctor-exp { 
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--gold); font-weight: 600;
  margin-top: 10px;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 12px; right: 22px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1;
  color: var(--teal-pale); font-weight: 700; pointer-events: none;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.testimonial-date { font-size: 0.78rem; color: var(--gray-400); }

/* ── Map ── */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.map-wrapper iframe { display: block; }

/* ── CTA Strip ── */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal) 100%);
  padding: 70px 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(201,162,39,0.12) 0%, transparent 50%);
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
@media(max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media(max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight: 700; margin-bottom: 6px; }
.footer-brand-tag { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 { color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 10px; font-size: 0.88rem; margin-bottom: 12px; }
.footer-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── Application Module / Dashboard ── */
.app-wrapper {
  min-height: 100vh;
  background: var(--gray-100);
  padding-top: 72px;
}
.app-sidebar {
  position: fixed; top: 72px; left: 0;
  width: 260px; height: calc(100vh - 72px);
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto; padding: 24px 0;
  transition: var(--transition);
  z-index: 100;
}
.sidebar-section-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); padding: 16px 24px 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem; font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.sidebar-link.active {
  background: rgba(13,123,143,0.2);
  color: var(--teal-light);
  border-right: 3px solid var(--teal-light);
}
.sidebar-link .icon { width: 18px; text-align: center; }
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--danger); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}
.sidebar-user {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.sidebar-user-name { color: var(--white); font-weight: 600; font-size: 0.9rem; }
.sidebar-user-role { color: var(--gold); font-size: 0.75rem; }

.app-main {
  margin-left: 260px;
  padding: 32px;
  min-height: calc(100vh - 72px);
}
@media(max-width: 900px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
}
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.app-header h2 { font-size: 1.6rem; }
.page-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--navy); }

/* ── Stats Cards ── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 18px;
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.teal  { background: var(--teal-pale); color: var(--teal); }
.stat-icon.gold  { background: var(--gold-pale); color: var(--gold); }
.stat-icon.navy  { background: rgba(10,22,40,0.08); color: var(--navy); }
.stat-icon.green { background: #dcfce7; color: var(--success); }
.stat-num  { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.stat-label{ font-size: 0.82rem; color: var(--gray-400); }

/* ── Tables ── */
.table-wrapper { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-200); overflow: hidden; }
.table-toolbar {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-bottom: 1px solid var(--gray-200);
}
table { width: 100%; border-collapse: collapse; }
thead { background: var(--gray-100); }
th {
  padding: 12px 18px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray-600); text-align: left;
}
td { padding: 14px 18px; font-size: 0.88rem; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }
.table-actions { display: flex; gap: 8px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-header h3 { font-size: 1.2rem; }
.modal-close {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gray-600);
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 20px 28px 24px; border-top: 1px solid var(--gray-200); display: flex; gap: 10px; justify-content: flex-end; }

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative; overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(13,123,143,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(201,162,39,0.12) 0%, transparent 50%);
}
.login-card {
  position: relative; z-index: 2;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-xl);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-mark {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--teal); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight: 700;
}
.login-title { font-size: 1.6rem; text-align: center; margin-bottom: 8px; }
.login-sub   { font-size: 0.88rem; color: var(--gray-400); text-align: center; margin-bottom: 32px; }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center; cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--teal); background: var(--teal-pale);
}
.upload-zone input[type=file] { display: none; }
.upload-icon { font-size: 2rem; color: var(--gray-400); margin-bottom: 10px; }
.upload-zone p { font-size: 0.88rem; color: var(--gray-400); }
.upload-zone strong { color: var(--teal); }

/* ── Loading / Spinner ── */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

/* ── Tab ── */
.tabs { display: flex; gap: 4px; background: var(--gray-100); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.tab-btn {
  flex: 1; padding: 9px 16px;
  background: transparent; border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  color: var(--gray-600); cursor: pointer; transition: var(--transition);
}
.tab-btn.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Animate on scroll ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Misc ── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.text-sm { font-size: 0.85rem; }
.fw-600 { font-weight: 600; }
.mt-auto { margin-top: auto; }
.gap-8 { gap: 8px; }
.flex { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.w-full { width: 100%; }
img { max-width: 100%; }
