/* ============================================================
   Samfoma Medical Laboratories — Design System
   Palette: Medical Blue #1273E6 · Navy #0D2B52 · Coral #FF6B4A · Gold #FFB020 · Cyan #5BD3FF
   ============================================================ */
:root {
  --teal: #1273E6;
  --teal-2: #3B96F5;
  --teal-dark: #0A5AC4;
  --teal-soft: #E3F0FE;
  --navy: #0D2B52;
  --ink: #122A4E;
  --coral: #FF6B4A;
  --coral-soft: #FFEDE8;
  --gold: #FFB020;
  --bg: #F4F8FE;
  --surface: #FFFFFF;
  --muted: #5C7386;
  --line: #E2ECEF;
  --success: #1B9E63;
  --warning: #E8930C;
  --danger: #E23D3D;
  --info: #2178C4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(13, 43, 82, .08);
  --shadow-lg: 0 18px 50px rgba(13, 43, 82, .16);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); font-weight: 800; }
p { color: #33475C; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 72px 0; }
.section.tight { padding: 44px 0; }
.section-head { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head .kicker,
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-soft); color: var(--teal-dark);
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 14px;
}
.kicker.coral { background: var(--coral-soft); color: #C93F17; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(18, 115, 230, .35); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 74, .35); }
.btn-coral:hover { background: #E8501F; color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #16345C; color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-white { background: #FFFFFF; color: var(--navy); box-shadow: 0 8px 20px rgba(13, 43, 82, .22); }
.btn-white:hover { background: #EEF5FE; color: var(--navy); transform: translateY(-2px); }
.btn-white svg { color: #25D366; }
.btn-danger:hover { background: #B92B2B; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------------- Badges / alerts ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.success { background: #DDF3E7; color: #11724A; }
.badge.info    { background: #DFEDFB; color: #1A5E9E; }
.badge.warning { background: #FFF1D6; color: #A96A05; }
.badge.danger  { background: #FBDDDD; color: #A31F1F; }
.badge.muted   { background: #E9EEF2; color: #51677A; }

.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: .93rem; font-weight: 600; border: 1px solid transparent;
}
.alert.success { background: #E9F8F0; color: #0E6B45; border-color: #BFE9D2; }
.alert.error   { background: #FDECEC; color: #93221F; border-color: #F3C6C6; }
.alert.info    { background: #E9F3FC; color: #14568F; border-color: #C4DDF4; }
.alert.warning { background: #FFF6E3; color: #8A5A04; border-color: #F2DCAC; }
.alert .close { margin-left: auto; background: none; border: 0; cursor: pointer; font-size: 1rem; color: inherit; opacity: .6; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 4px; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=time], input[type=url],
input[type=file], select, textarea {
  width: 100%; font-family: var(--font); font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; transition: border .15s, box-shadow .15s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18, 115, 230, .14);
}
textarea { min-height: 110px; resize: vertical; }
.input-error { color: var(--danger); font-size: .8rem; margin-top: 5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); margin-top: 3px; flex: none; }

/* ---------------- Cards ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 26px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   PUBLIC SITE — NAVBAR
   ============================================================ */
.topbar { background: var(--navy); color: #B8C9DA; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 14px; }
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.topbar .group { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar svg { width: 14px; height: 14px; }
.topbar .socials { display: flex; gap: 10px; }
.topbar .socials a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); align-items: center; justify-content: center; display: inline-flex; transition: background .2s; }
.topbar .socials a:hover { background: var(--teal); }
.topbar .socials svg { width: 13px; height: 13px; }

header.site-header {
  position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 44px; width: auto; }
.brand .brand-text strong { display: block; font-size: 1.02rem; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
.brand .brand-text span { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: .93rem;
}
.nav-links a:hover, .nav-links a.active { background: var(--teal-soft); color: var(--teal-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #0D2B52 0%, #10457E 45%, #0A5AC4 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(18, 115, 230, .35), transparent 60%),
    radial-gradient(500px 260px at 10% 90%, rgba(255, 107, 74, .18), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 0 92px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); color: #DFF7F3; font-size: .8rem; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #5BD3FF; position: relative; }
.hero p.lead { color: #C9DCE8; font-size: 1.06rem; max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust .item strong { display: block; font-size: 1.35rem; color: #5BD3FF; }
.hero-trust .item span { font-size: .82rem; color: #AFC6D6; font-weight: 600; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; height: 480px; object-fit: cover; }
.hero-chip {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: center; padding: 13px 17px; color: var(--ink);
  animation: float 5s ease-in-out infinite;
}
.hero-chip svg { width: 34px; height: 34px; padding: 7px; background: var(--teal-soft); border-radius: 10px; color: var(--teal-dark); flex: none; }
.hero-chip strong { display: block; font-size: .86rem; color: var(--navy); line-height: 1.2; }
.hero-chip span { font-size: .74rem; color: var(--muted); }
.hero-chip.chip-1 { bottom: 34px; left: -28px; }
.hero-chip.chip-2 { top: 34px; right: -18px; animation-delay: 2.5s; }
.hero-chip.chip-2 svg { background: var(--coral-soft); color: #D14A1E; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Quick booking strip */
.quick-strip { margin-top: -34px; position: relative; z-index: 5; }
.quick-strip .card { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: end; padding: 22px 26px; }
.quick-strip label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: 6px; }

/* ---------------- Service cards ---------------- */
.service-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft);
  color: var(--teal-dark); display: flex; align-items: center; justify-content: center; flex: none;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.06rem; }
.service-card p { font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.service-card .meta span { font-size: .74rem; font-weight: 700; color: #51677A; background: #EEF4F6; padding: 4px 10px; border-radius: 999px; }
.service-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.service-card .price { font-size: 1.22rem; font-weight: 800; color: var(--teal-dark); }
.service-card .price small { font-size: .7rem; color: var(--muted); display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cat-pill { position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 5px 11px; }

/* Feature / steps */
.feature-card { padding: 26px; text-align: left; }
.feature-card .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #5BD3FF;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; font-size: 1.05rem;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--muted); }

/* Branch cards */
.branch-card { overflow: hidden; display: flex; flex-direction: column; }
.branch-card .map-thumb { height: 170px; position: relative; background: var(--navy); }
.branch-card .map-thumb iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.branch-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.branch-card h3 { font-size: 1.02rem; }
.branch-card .line { display: flex; gap: 10px; font-size: .86rem; color: var(--muted); align-items: flex-start; }
.branch-card .line svg { width: 16px; height: 16px; color: var(--teal); flex: none; margin-top: 3px; }
.branch-card .actions { margin-top: auto; display: flex; gap: 10px; padding-top: 8px; }
.hq-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--gold); color: #5B3A00; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }

/* Testimonials */
.testi-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.testi-card .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.testi-card p { font-size: .92rem; font-style: italic; color: #33475C; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.testi-card .who strong { display: block; font-size: .9rem; color: var(--navy); }
.testi-card .who span { font-size: .76rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--navy), #10457E 60%, var(--teal-dark)); border-radius: 24px; color: #fff; padding: 54px 46px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(91, 211, 255, .12); top: -120px; right: -60px; pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: #BFD9E4; max-width: 560px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------------- Footer ---------------- */
footer.site-footer { background: var(--navy); color: #A9BDD0; margin-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.footer-top h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .04em; }
.footer-top ul { list-style: none; display: grid; gap: 10px; }
.footer-top ul a { color: #A9BDD0; font-size: .9rem; }
.footer-top ul a:hover { color: #5BD3FF; }
.footer-brand img { height: 46px; margin-bottom: 14px; background: #fff; border-radius: 10px; padding: 6px; }
.footer-brand p { color: #A9BDD0; font-size: .88rem; max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; font-size: .88rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: #5BD3FF; flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all .2s; }
.socials a:hover { background: var(--teal); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200;
  display: flex; align-items: center; gap: 0;
}
.wa-float a {
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; font-weight: 800; font-size: .92rem;
  padding: 13px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float a:hover { transform: translateY(-4px) scale(1.03); color: #fff; }
.wa-float svg { width: 22px; height: 22px; }
.wa-float .pulse { position: absolute; inset: 0; border-radius: 999px; border: 2px solid #25D366; animation: wa-pulse 2s infinite; pointer-events: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* Breadcrumb / page hero */
.page-hero { background: linear-gradient(120deg, var(--navy), #10457E 55%, var(--teal-dark)); color: #fff; padding: 52px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 8px; }
.page-hero p { color: #C9DCE8; max-width: 640px; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: #9FBACB; margin-bottom: 12px; flex-wrap: wrap; }
.crumbs a { color: #5BD3FF; font-weight: 700; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); background: #F2F7F8; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid #EDF3F4; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #F8FCFC; }
.table .money { font-weight: 800; color: var(--navy); white-space: nowrap; }
.table .cell-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .88rem; padding: 0 12px;
}
.pagination .current { background: var(--teal); border-color: var(--teal); color: #fff; }
.pagination .disabled { opacity: .45; }
.pagination a:hover { border-color: var(--teal); }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
/* Bright cream side panel — makes the logo & text pop */
/* Whitish side panel with mild design — logo projected on a bright card, content centred */
.auth-side {
  background:
    radial-gradient(430px 260px at 88% 10%, rgba(18, 115, 230, .07), transparent 62%),
    radial-gradient(380px 250px at 8% 92%, rgba(91, 211, 255, .09), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 55%, #EEF5FE 100%);
  color: var(--navy);
  padding: 46px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center; text-align: center;
  position: relative; overflow: hidden;
  border-right: 1px solid #E8EFFA;
}
/* mild dotted texture, fading out downward */
.auth-side::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18, 115, 230, .10) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 42%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 42%);
}
.auth-side::after {
  content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(18, 115, 230, .05); bottom: -160px; right: -120px; pointer-events: none;
}
/* Logo zone — the brightest element on the panel */
.auth-side .brand {
  position: relative; z-index: 2;
  display: inline-flex; justify-content: center;
  background: #FFFFFF;
  border: 1px solid #EAF1FC;
  border-radius: 20px;
  padding: 24px 38px;
  box-shadow: 0 14px 38px rgba(13, 43, 82, .12), 0 3px 10px rgba(13, 43, 82, .06);
  margin-bottom: 6px;
}
.auth-side .brand img { height: 78px; width: auto; margin: 0 auto; }
.auth-side .quote { position: relative; z-index: 2; max-width: 460px; margin-inline: auto; }
.auth-side h2 { color: var(--navy); font-size: 1.7rem; margin-bottom: 14px; }
.auth-side p { color: #5B6C86; font-size: .95rem; }
.auth-side .points { display: grid; gap: 13px; margin-top: 26px; position: relative; z-index: 2; justify-items: center; }
.auth-side .points li { list-style: none; display: flex; gap: 10px; font-size: .9rem; color: #34455F; font-weight: 600; align-items: center; justify-content: center; }
.auth-side .points svg { width: 19px; height: 19px; color: var(--teal); background: rgba(18,115,230,.14); border-radius: 50%; padding: 3px; flex: none; }
.auth-side .panel-foot { position: relative; z-index: 2; color: #93A5C0; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: min(430px, 100%); }
.auth-card .card { padding: 34px; }
.auth-card h1 { font-size: 1.55rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* ============================================================
   DASHBOARD (admin / staff / account)
   ============================================================ */
.dash { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy); color: #B8C9DA; padding: 22px 16px; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; z-index: 1000;
}
.sidebar .brand img { height: 40px; background: #fff; border-radius: 9px; padding: 4px; }
.sidebar .brand { margin-bottom: 20px; padding: 0 8px; }
.sidebar .brand strong { color: #fff; font-size: .95rem; display: block; line-height: 1.2; }
.sidebar .brand span { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #5BD3FF; font-weight: 800; }
.side-label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #6E8598; font-weight: 800; padding: 14px 12px 6px; }
.sidebar a.side-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: #B8C9DA; font-weight: 600; font-size: .92rem; transition: all .15s;
}
.sidebar a.side-link svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.sidebar a.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar a.side-link.active { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(18,115,230,.4); }
.sidebar a.side-link .count { margin-left: auto; background: var(--coral); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 800; padding: 2px 8px; }
.sidebar .side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }

.main { min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
  background: #fff; border-bottom: 1px solid var(--line); padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; position: sticky; top: 0; z-index: 800;
}
.dash-topbar h1 { font-size: 1.15rem; }
.dash-topbar .tools { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal-soft); }
.user-chip .meta { line-height: 1.15; }
.user-chip .meta strong { display: block; font-size: .86rem; color: var(--navy); }
.user-chip .meta span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.dash-content { padding: 28px; max-width: 1280px; width: 100%; }

/* Stat cards */
.stat-card { padding: 22px; display: flex; gap: 16px; align-items: center; }
.stat-card .icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.stat-card .icon svg { width: 24px; height: 24px; }
.stat-card .icon.teal { background: var(--teal-soft); color: var(--teal-dark); }
.stat-card .icon.coral { background: var(--coral-soft); color: #D14A1E; }
.stat-card .icon.navy { background: #E4EAF2; color: var(--navy); }
.stat-card .icon.gold { background: #FFF1D6; color: #A96A05; }
.stat-card .val { font-size: 1.35rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-card .lbl { font-size: .78rem; color: var(--muted); font-weight: 700; }

/* Chart (CSS bars) */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 10px; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 54px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--teal-2), var(--teal-dark)); min-height: 5px; transition: height .4s; }
.chart .lbl { font-size: .72rem; font-weight: 700; color: var(--muted); }
.chart .val-lbl { font-size: .66rem; color: var(--teal-dark); font-weight: 800; }

/* Timeline (CRM) */
.timeline { display: grid; gap: 0; position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); pointer-events: none; }
.timeline .t-item { position: relative; padding: 0 0 22px; }
.timeline .t-item::before {
  content: ''; position: absolute; left: -24px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--teal-soft);
}
.timeline .t-item .t-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.timeline .t-item .t-body { font-size: .9rem; color: #33475C; background: #F7FBFB; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--muted); }
.tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs a .n { background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 8px; font-size: .72rem; margin-left: 5px; }
.tabs a:not(.active) .n { background: var(--teal-soft); color: var(--teal-dark); }

/* Invoice print styles */
.invoice-doc { max-width: 860px; margin-inline: auto; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 3px solid var(--teal); margin-bottom: 24px; }
.invoice-head img { height: 54px; }
.totals { margin-left: auto; width: min(340px, 100%); }
.totals .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .93rem; }
.totals .row.total { border-top: 2px solid var(--navy); font-weight: 800; font-size: 1.1rem; color: var(--navy); margin-top: 6px; padding-top: 12px; }

@media print {
  .no-print, header, footer, .sidebar, .dash-topbar, .wa-float, .topbar { display: none !important; }
  body { background: #fff; }
  .dash { display: block; }
  .dash-content { padding: 0; }
  .card { box-shadow: none; border-color: #ddd; }
  .page-hero { display: none; }
}

/* Sidebar drawer on tablets/mobiles */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(13,43,82,.5); z-index: 990; }
body.sidebar-open .sidebar-overlay { display: block; }
@media (max-width: 1024px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -290px; width: 272px; transition: left .25s ease; }
  body.sidebar-open .sidebar { left: 0; box-shadow: var(--shadow-lg); }
  .sidebar-toggle { display: inline-flex !important; }
}
.sidebar-toggle { display: none; background: var(--teal-soft); border: 0; border-radius: 10px; padding: 9px; cursor: pointer; color: var(--teal-dark); }
.sidebar-toggle svg { width: 21px; height: 21px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
  .hero-wrap { grid-template-columns: 1fr; padding: 60px 0 80px; }
  .hero-media img { height: 380px; }
  .hero-chip.chip-1 { left: 8px; }
  .hero-chip.chip-2 { right: 8px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .quick-strip .card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 14px 5%; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-outline { display: none; }
  .section { padding: 52px 0; }
  .cta-band { padding: 40px 28px; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar .group .hide-sm { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-media img { height: 300px; }
  .quick-strip .card { grid-template-columns: 1fr; }
  .dash-content { padding: 18px; }
  .dash-topbar { padding: 12px 16px; }
  .dash-topbar h1 { font-size: 1rem; }
  .user-chip .meta { display: none; }
  .hero-actions .btn { width: 100%; }
  .cta-band .actions { flex-direction: column; align-items: stretch; }
  .cta-band .actions .btn { width: 100%; justify-content: center; }
  .table-card-filter { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .wa-float a span { display: none; }
  .wa-float a { padding: 15px; }
}

/* Utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 12px; }
.w-full { width: 100%; }
.skeleton { background: linear-gradient(90deg, #EEF4F6 25%, #F7FBFB 50%, #EEF4F6 75%); background-size: 200% 100%; animation: shine 1.4s infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state svg { width: 54px; height: 54px; margin: 0 auto 14px; color: #B9CCD6; }
.empty-state h3 { color: var(--navy); margin-bottom: 6px; }
