/* Hospital Management System — design system (blue theme) */
:root {
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --ink: #36325f;          /* navy-purple headings */
  --text: #4b5070;         /* body copy */
  --ink-2: #5d6283;
  --ink-3: #8e93ae;
  --line: #e1e9f6;
  --brand: #0a80ff;
  --brand-ink: #ffffff;
  --brand-soft: #e5f1ff;
  --brand-strong: #0067d6;
  --navy: #3a3668;
  --teal: #19b5c8;
  --accent: #19b5c8;
  --band: #0a80ff;
  --band-grad: linear-gradient(120deg, #0a80ff 0%, #2b6fff 55%, #3a56e8 100%);
  --ok: #12945a; --ok-soft: #e2f6ec;
  --warn: #b26b00; --warn-soft: #fff2d9;
  --bad: #d93a30; --bad-soft: #fde8e6;
  --info: #0a80ff; --info-soft: #e5f1ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 50, 110, .04), 0 10px 30px -14px rgba(30, 60, 140, .18);
  --shadow-lg: 0 30px 60px -24px rgba(20, 50, 130, .35);
  --shadow-blue: 0 18px 40px -16px rgba(10, 128, 255, .55);
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1222; --surface: #111a2e; --surface-2: #17223a; --ink: #e8edfb; --text: #c3cbe2; --ink-2: #a3acc8; --ink-3: #7480a3;
  --line: #24304b; --brand: #3d9bff; --brand-ink: #ffffff; --brand-soft: #142a4d; --brand-strong: #7db8ff; --navy: #c9cff0;
  --ok: #4fd18b; --ok-soft: #10301f; --warn: #f2b84b; --warn-soft: #33270e; --bad: #ff7b70; --bad-soft: #3a1714; --info: #7db8ff; --info-soft: #142a4d;
  --band: #1c5fcf; --band-grad: linear-gradient(120deg, #1556c4, #2a49b8);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; color: var(--ink); font-weight: 900; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ico { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, color .2s, box-shadow .2s; white-space: nowrap; text-decoration: none; letter-spacing: .01em; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-ink); box-shadow: var(--shadow-blue); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--navy); color: #fff; }
.btn-soft { background: var(--brand-soft); color: var(--brand-strong); }
.btn-soft:hover { background: var(--brand); color: #fff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-caps { text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--bad-soft); color: var(--bad); }
.icon-btn .ico { width: 18px; height: 18px; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand-strong); }

/* ---------- logo: "Hospital Management" two-tone */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 24px; color: var(--navy); letter-spacing: -.01em; line-height: 1; }
.logo:hover { color: var(--navy); }
.logo b { color: var(--brand); font-weight: 900; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; color: #fff; flex: none; box-shadow: var(--shadow-blue); }
.logo-mark svg { width: 20px; height: 20px; }
.logo small { display: block; font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 480px) { .logo { font-size: 19px; } .logo-mark { width: 34px; height: 34px; } }

/* ---------- toast */
.toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: toastIn .3s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="dark"] .toast { background: #2a3658; }
.toast.bad { background: var(--bad); color: #fff; }
.toast .ico { width: 18px; height: 18px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* =====================================================================
   LANDING
   ===================================================================== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--teal); z-index: 100; transition: width .1s linear; }

.topbar { background: var(--brand); color: #fff; font-size: 14px; }
.topbar .container { display: flex; gap: 26px; align-items: center; height: 44px; }
.topbar a { color: #fff; }
.topbar .socials { display: flex; gap: 6px; }
.topbar .socials a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, transform .2s; }
.topbar .socials a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.topbar .socials .ico { width: 15px; height: 15px; }
.topbar .info { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar .info .ico { width: 16px; height: 16px; }
.topbar .push { margin-left: auto; }
@media (max-width: 860px) { .topbar .hide-md { display: none; } }
@media (max-width: 560px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: space-between; } .topbar .push { margin-left: 0; } }

.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: box-shadow .3s, background .3s; }
.nav.scrolled { box-shadow: 0 8px 30px -12px rgba(20, 50, 130, .25); background: rgba(255,255,255,.95); }
.nav .container { display: flex; align-items: center; height: 84px; gap: 24px; transition: height .3s; }
.nav.scrolled .container { height: 70px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; color: var(--navy); font-weight: 700; font-size: 15px; padding: 8px 14px; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: 18px; }
.nav-tools .icon-btn { width: 42px; height: 42px; color: var(--navy); border-radius: 50%; }
.nav-tools .icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.nav-tools .icon-btn .ico { width: 22px; height: 22px; }
.nav-tools .btn { margin-left: 6px; }
@media (max-width: 1080px) { .nav-links { display: none; } .nav-tools { margin-left: auto; } }
@media (max-width: 560px) { .nav-tools .btn { display: none; } .nav .container { height: 70px; } }

/* off-canvas menu */
.oc-bg { position: fixed; inset: 0; background: rgba(15, 25, 60, .45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.oc { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--surface); z-index: 95; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); padding: 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.oc.open { transform: none; }
.oc-bg.open { opacity: 1; pointer-events: auto; }
.oc-top { display: flex; align-items: center; justify-content: space-between; }
.oc-links { display: grid; }
.oc-links a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.oc-links a:hover { color: var(--brand); padding-left: 6px; transition: padding .2s; }
.oc h4 { font-size: 17px; }
.oc .oc-info { display: grid; gap: 12px; font-size: 14px; }
.oc .oc-info div { display: flex; gap: 10px; align-items: flex-start; }
.oc .oc-info .ico { color: var(--brand); margin-top: 2px; }

/* search overlay */
.search-ov { position: fixed; inset: 0; z-index: 99; background: rgba(15, 25, 60, .6); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
.search-ov.open { display: flex; animation: fadeIn .25s; }
.search-box { width: 100%; max-width: 680px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: dropIn .35s cubic-bezier(.2,.8,.2,1); }
.search-box .sb-in { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; height: 64px; border: 0; background: transparent; font-size: 18px; outline: none; color: var(--ink); }
.search-box .ico { color: var(--brand); width: 22px; height: 22px; }
.sb-res { max-height: 50vh; overflow-y: auto; padding: 8px; }
.sb-res a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); }
.sb-res a:hover, .sb-res a.hl { background: var(--brand-soft); }
.sb-res .t { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: 10px 12px 4px; }
.sb-res small { display: block; color: var(--ink-3); font-size: 13px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-16px) scale(.98); } }

/* ---------- hero slider */
.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, #e9f3ff 0%, #f6faff 45%, #dcecff 100%); }
:root[data-theme="dark"] .hero { background: linear-gradient(115deg, #0f1a33, #0d1630 50%, #142449); }
.hero::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #b9dbff; left: -160px; top: 46%; opacity: .75; animation: blob 12s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #a9d1ff; right: -150px; top: 70px; opacity: .8; animation: blob 14s ease-in-out infinite reverse; }
:root[data-theme="dark"] .hero::before, :root[data-theme="dark"] .hero::after { background: #1b3366; }
@keyframes blob { 50% { transform: translate(20px, -24px) scale(1.06); } }
.slides { position: relative; min-height: 620px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.active { opacity: 1; visibility: visible; position: relative; }
.slide .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; min-height: 620px; }
.slide-text { padding: 70px 0 110px; }
.slide-text > * { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.slide.active .slide-text > * { opacity: 1; transform: none; }
.slide.active .slide-text > :nth-child(2) { transition-delay: .12s; }
.slide.active .slide-text > :nth-child(3) { transition-delay: .24s; }
.slide.active .slide-text > :nth-child(4) { transition-delay: .36s; }
.slide.active .slide-text > :nth-child(5) { transition-delay: .48s; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: #fff; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow); }
:root[data-theme="dark"] .hero-tag { background: var(--surface); }
.hero-tag .ico { width: 16px; height: 16px; }
.hero h1, .hero .h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; color: var(--navy); margin: 20px 0 18px; letter-spacing: -.02em; line-height: 1.12; }
.hero h1 span, .hero .h1 span { color: var(--brand); }
.hero p.lead { font-size: 17px; color: var(--text); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.play { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 700; }
.play i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow); position: relative; }
.play i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand); opacity: .4; animation: ping 2s infinite; }
@keyframes ping { 70%, 100% { transform: scale(1.35); opacity: 0; } }
.hero-meta { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta div { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--navy); }
.hero-meta .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: var(--shadow); }

.slide-visual { position: relative; align-self: end; height: 560px; display: flex; justify-content: center; align-items: flex-end; }
.sv-shape { position: absolute; bottom: 0; left: 50%; width: 400px; height: 340px; margin-left: -230px; background: var(--navy); border-radius: 60px 60px 0 0; transform: translateY(40px); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1) .1s, opacity 1s .1s; }
.sv-frame { position: absolute; bottom: 40px; left: 50%; width: 320px; height: 300px; margin-left: -110px; border: 2px solid #8fd8e2; border-radius: 40px; opacity: 0; transition: opacity 1s .3s; }
.sv-img { position: relative; z-index: 2; width: 380px; height: 520px; object-fit: cover; object-position: top center; border-radius: 200px 200px 0 0; transform: translateY(40px) scale(.96); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .2s, opacity 1s .2s; box-shadow: 0 -20px 60px -30px rgba(20,40,120,.4); background: #cfe5ff; }
.slide.active .sv-shape, .slide.active .sv-img { transform: none; opacity: 1; }
.slide.active .sv-frame { opacity: 1; }
.plus { position: absolute; z-index: 3; color: var(--teal); font-weight: 900; font-size: 44px; line-height: 1; animation: floaty 5s ease-in-out infinite; user-select: none; }
.plus.navy { color: var(--navy); }
.plus.p1 { top: 70px; left: 40px; } .plus.p2 { top: 220px; right: 10px; animation-delay: -2s; } .plus.p3 { bottom: 140px; left: 0; animation-delay: -3.5s; font-size: 36px; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(90deg); } }
.float-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.float-card .fc-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.float-card.teal .fc-i { background: var(--teal); }
.float-card b { display: block; font-size: 18px; color: var(--navy); line-height: 1.1; }
.float-card span { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.float-card.f1 { left: -10px; bottom: 120px; } .float-card.f2 { right: -10px; top: 120px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.slider-ctrl { position: absolute; z-index: 5; left: 0; right: 0; bottom: 30px; }
.slider-ctrl .container { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 12px; height: 12px; border-radius: 99px; border: 0; background: #b6cdf0; cursor: pointer; padding: 0; transition: width .4s cubic-bezier(.2,.8,.2,1), background .3s; }
.dots button.on { width: 36px; background: var(--brand); }
.arrows { display: flex; gap: 8px; margin-left: 10px; }
.arrows button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s, color .2s; }
.arrows button:hover { background: var(--brand); color: #fff; }
.arrows .ico { width: 18px; height: 18px; }
.slide-num { margin-left: auto; font-weight: 900; color: var(--navy); font-size: 14px; letter-spacing: .1em; }
.slide-num b { font-size: 22px; color: var(--brand); }
@media (max-width: 960px) {
  .slides, .slide .container { min-height: 0; }
  .slide .container { grid-template-columns: 1fr; gap: 0; }
  .slide-text { padding: 50px 0 10px; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .slide-visual { height: 430px; }
  .sv-img { width: 300px; height: 410px; }
  .sv-shape { width: 320px; height: 260px; margin-left: -180px; }
  .sv-frame { width: 260px; height: 230px; margin-left: -90px; }
  .float-card.f1 { left: 0; bottom: 70px; } .float-card.f2 { right: 0; top: 60px; }
  .slider-ctrl { bottom: 14px; } .slide-num { display: none; } .slider-ctrl .container { justify-content: center; }
}
@media (max-width: 480px) {
  .slide-visual { height: 370px; } .sv-img { width: 250px; height: 350px; }
  .float-card { padding: 10px 12px; } .float-card .fc-i { width: 36px; height: 36px; } .float-card b { font-size: 15px; }
  .float-card.f1 { left: -6px; } .float-card.f2 { right: -6px; }
  .hero-meta { gap: 14px; }
}

/* ---------- sections */
.section { padding: 100px 0; position: relative; }
.section.tint { background: var(--surface-2); }
.section.white { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; color: var(--brand); text-transform: uppercase; letter-spacing: .12em; }
.kicker::before { content: "+"; font-size: 20px; line-height: 1; color: var(--teal); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; color: var(--navy); margin: 10px 0 14px; }
.section-head h2 span { color: var(--brand); }
.section-head p { color: var(--text); font-size: 17px; }
@media (max-width: 640px) { .section { padding: 70px 0; } .section-head { margin-bottom: 36px; } }

/* services (blue cards, white icon circle) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc { position: relative; overflow: hidden; display: flex; gap: 20px; align-items: center; padding: 26px 24px; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: var(--shadow-blue); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s; }
.svc::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); right: -70px; bottom: -90px; transition: transform .5s; }
.svc:hover { transform: translateY(-8px); background: var(--navy); box-shadow: 0 24px 40px -18px rgba(40, 40, 110, .6); }
.svc:hover::after { transform: scale(1.4); }
.svc .si { width: 90px; height: 90px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; flex: none; transition: transform .6s cubic-bezier(.2,.8,.2,1), color .3s; }
.svc:hover .si { transform: rotateY(360deg); color: var(--navy); }
.svc .si .ico { width: 40px; height: 40px; }
.svc h3 { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.svc p { font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.55; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } .svc .si { width: 72px; height: 72px; } .svc .si .ico { width: 32px; height: 32px; } }

/* counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 34px 10px; position: relative; z-index: 3; margin-top: 70px; }
.counter { text-align: center; padding: 6px 16px; border-right: 1px dashed var(--line); }
.counter:last-child { border-right: 0; }
.counter .ci { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.counter .ci .ico { width: 26px; height: 26px; }
.counter b { display: block; font-size: 40px; font-weight: 900; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.counter span { color: var(--ink-2); font-weight: 700; font-size: 14px; }
@media (max-width: 800px) { .counters { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } .counter:nth-child(2) { border-right: 0; } }

/* about */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-imgs { position: relative; padding: 0 60px 70px 0; }
.about-imgs .a1 { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-imgs .a2 { position: absolute; right: 0; bottom: 0; width: 55%; height: 250px; object-fit: cover; border-radius: 20px; border: 8px solid var(--surface); box-shadow: var(--shadow-lg); }
.exp-badge { position: absolute; left: -20px; bottom: 30px; background: var(--brand); color: #fff; border-radius: 20px; padding: 20px 24px; box-shadow: var(--shadow-blue); text-align: center; animation: bob 6s ease-in-out infinite; }
.exp-badge b { display: block; font-size: 40px; font-weight: 900; line-height: 1; }
.exp-badge span { font-size: 13px; font-weight: 700; opacity: .9; }
.about-text p { margin-bottom: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 24px 0 30px; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--navy); }
.checks li .ico { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--brand); color: #fff; }
.about-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.call-box { display: flex; align-items: center; gap: 12px; }
.call-box i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.call-box span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.call-box b { color: var(--navy); font-size: 18px; }
@media (max-width: 960px) { .about-wrap { grid-template-columns: 1fr; gap: 50px; } .about-imgs { padding: 0 30px 60px 0; } .about-imgs .a1 { height: 340px; } .exp-badge { left: 10px; } }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } .about-imgs .a2 { height: 170px; } }

/* departments */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dept { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; overflow: hidden; z-index: 0; }
.dept::before { content: ""; position: absolute; inset: 0; background: var(--band-grad); z-index: -1; transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.dept:hover { transform: translateY(-6px); box-shadow: var(--shadow-blue); border-color: transparent; }
.dept:hover::before { transform: none; }
.dept:hover h3, .dept:hover p, .dept:hover .meta { color: #fff; }
.dept .di { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; transition: background .35s, color .35s, transform .5s; }
.dept:hover .di { background: #fff; transform: rotate(-8deg) scale(1.05); }
.dept .di .ico { width: 30px; height: 30px; }
.dept h3 { font-size: 21px; margin-bottom: 8px; transition: color .3s; }
.dept p { color: var(--text); font-size: 15px; transition: color .3s; }
.dept .meta { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 6px; transition: color .3s; }
.dept .meta .ico { width: 16px; height: 16px; }
.dept .num { position: absolute; right: 22px; top: 18px; font-size: 54px; font-weight: 900; color: var(--surface-2); line-height: 1; z-index: -1; transition: color .3s; }
.dept:hover .num { color: rgba(255,255,255,.12); }
@media (max-width: 960px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .dept-grid { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.steps::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; border-top: 2px dashed #b8d4fb; }
.step { text-align: center; position: relative; }
.step .sn { width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-soft); display: grid; place-items: center; color: var(--brand); position: relative; box-shadow: var(--shadow); transition: background .3s, color .3s, transform .4s; }
.step:hover .sn { background: var(--brand); color: #fff; transform: translateY(-6px); }
.step .sn .ico { width: 36px; height: 36px; }
.step .sn em { position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* doctors */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.doc { background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; display: flex; flex-direction: column; }
.doc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doc-photo { position: relative; height: 290px; overflow: hidden; background: linear-gradient(160deg, #dcecff, #b9d8ff); }
.doc-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.doc:hover .doc-photo img { transform: scale(1.07); }
.doc-photo .ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 900; color: #fff; }
.doc-social { position: absolute; z-index: 2; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; }
.doc-social span { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; transform: translateX(70px); transition: transform .4s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow); }
.doc-social span:nth-child(2) { transition-delay: .06s; } .doc-social span:nth-child(3) { transition-delay: .12s; }
.doc:hover .doc-social span { transform: none; }
.doc-social .ico { width: 16px; height: 16px; }
.doc-dept { position: absolute; z-index: 2; left: 14px; bottom: 14px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.doc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc h3 { font-size: 20px; }
.doc .role-t { font-size: 14px; color: var(--brand); font-weight: 700; }
.doc .q { font-size: 14px; color: var(--ink-2); }
.doc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.doc-meta span { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--navy); font-weight: 700; }
.doc .btn { margin-top: auto; }
@media (max-width: 960px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .doc-grid { grid-template-columns: 1fr; } }

/* why choose us (blue band) */
.why { background: var(--band-grad); color: #fff; overflow: hidden; }
.why::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 90px solid rgba(255,255,255,.06); right: -200px; top: -200px; }
.why .section-head h2, .why .section-head p, .why .kicker { color: #fff; }
.why .kicker::before { color: #9ff0fa; }
.why-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.why-item { display: flex; gap: 14px; }
.why-item .wi { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; transition: background .3s, color .3s, transform .4s; }
.why-item:hover .wi { background: #fff; color: var(--brand); transform: rotate(-8deg); }
.why-item h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.why-item p { color: rgba(255,255,255,.85); font-size: 14px; }
.why-img { position: relative; }
.why-img img { width: 100%; height: 470px; object-fit: cover; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,40,.5); }
.bars-card { position: absolute; left: -40px; bottom: -30px; width: 280px; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.pbar span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pbar i { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pbar i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--brand); border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.2,.8,.2,1) .3s; }
.in .pbar i::after, .pbar.in i::after { transform: scaleX(1); }
@media (max-width: 960px) { .why-wrap { grid-template-columns: 1fr; } .why-img img { height: 360px; } .bars-card { left: 16px; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } .bars-card { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -40px; } }

/* roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role { background: var(--surface); border-radius: 18px; padding: 28px; border-top: 4px solid var(--brand); box-shadow: var(--shadow); transition: transform .3s; }
.role:hover { transform: translateY(-6px); }
.role .ri { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.role h3 { font-size: 20px; margin-bottom: 10px; }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.role li { display: flex; gap: 8px; align-items: flex-start; }
.role li .ico { width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }

/* testimonials */
.tst { position: relative; overflow: hidden; }
.tst-track { display: flex; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tst-card { flex: 0 0 calc(100% / 3); padding: 12px; }
.tst-in { background: var(--surface); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); height: 100%; position: relative; }
.tst-in .q { position: absolute; right: 24px; top: 14px; font-size: 90px; line-height: 1; color: var(--brand-soft); font-weight: 900; font-family: Georgia, serif; }
.stars { display: flex; gap: 3px; color: #ffb21d; margin-bottom: 14px; }
.stars .ico { width: 18px; height: 18px; }
.tst-in p { font-size: 15px; margin-bottom: 22px; position: relative; }
.tst-who { display: flex; gap: 12px; align-items: center; }
.tst-who .av { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; }
.tst-who b { display: block; color: var(--navy); }
.tst-who span { font-size: 13px; color: var(--ink-3); }
.tst-nav { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
@media (max-width: 960px) { .tst-card { flex-basis: 50%; } }
@media (max-width: 640px) { .tst-card { flex-basis: 100%; } }

/* cta band */
.cta-band { background: var(--band-grad); color: #fff; border-radius: 28px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); }
.cta-band::before { content: "+"; position: absolute; left: 46%; top: 10px; font-size: 80px; font-weight: 900; color: rgba(255,255,255,.12); animation: floaty 6s ease-in-out infinite; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 8px; max-width: 520px; }
.cta-band .acts { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 560px) { .cta-band { padding: 34px 24px; } }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-img { position: relative; height: 220px; overflow: hidden; background: var(--brand-soft); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.post:hover .post-img img { transform: scale(1.08); }
.post-date { position: absolute; left: 16px; bottom: -1px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 12px 12px 0 0; font-weight: 900; font-size: 13px; }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat { font-size: 13px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
.post h3 { font-size: 20px; transition: color .2s; }
.post:hover h3 { color: var(--brand); }
.post p { font-size: 15px; }
.post .more { margin-top: auto; padding-top: 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--brand); cursor: pointer; padding-left: 0; }
.post .more .ico { width: 16px; height: 16px; transition: transform .2s; }
.post .more:hover .ico { transform: translateX(4px); }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.article h2 { font-size: 26px; margin-bottom: 8px; }
.article img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; margin-bottom: 18px; }
.article p { margin-bottom: 14px; }
.article ul { padding-left: 20px; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.faq { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid transparent; transition: border-color .3s; }
.faq-item.open { border-color: var(--brand); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: none; border: 0; text-align: left; font-weight: 900; font-size: 17px; color: var(--navy); cursor: pointer; }
.faq-q i { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; transition: transform .35s, background .3s, color .3s; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; }
.faq-side img { width: 100%; height: 300px; object-fit: cover; border-radius: 22px; margin-top: 26px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 30px; } .faq-side img { display: none; } }

/* contact */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.ci { display: flex; gap: 16px; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: transform .3s; }
.ci:hover { transform: translateX(6px); }
.ci .ri { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.ci b { display: block; font-size: 16px; color: var(--navy); }
.ci span { font-size: 15px; color: var(--text); word-break: break-word; }
.card { background: var(--surface); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.card h3 { font-size: 24px; margin-bottom: 6px; }
.rating { display: flex; gap: 4px; }
.rating button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--line); transition: transform .15s; }
.rating button:hover { transform: scale(1.15); }
.rating button.on { color: #ffb21d; }
.rating .ico { width: 28px; height: 28px; }
.map { margin-top: 40px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); height: 360px; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 960px) { .contact-wrap { grid-template-columns: 1fr; } }

/* footer */
.footer { background: #23214a; color: #b9bbd8; padding: 80px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(10,128,255,.12); right: -120px; top: -160px; }
.footer .logo { color: #fff; }
.footer .logo small { color: #8e90b6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.footer h4 { font-size: 18px; margin-bottom: 20px; color: #fff; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--brand); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: #b9bbd8; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, transform .2s; }
.footer ul a:hover { color: #fff; transform: translateX(4px); }
.footer ul a .ico { width: 14px; height: 14px; color: var(--brand); }
.footer p { font-size: 15px; }
.footer .socials { display: flex; gap: 10px; margin-top: 22px; }
.footer .socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.footer .socials a:hover { background: var(--brand); transform: translateY(-3px); }
.footer .socials .ico { width: 17px; height: 17px; }
.hours { display: grid; gap: 10px; font-size: 15px; }
.hours div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(255,255,255,.12); padding-bottom: 8px; }
.hours b { color: #fff; font-weight: 700; }
.footer-bottom { margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #8e90b6; position: relative; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-blue); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy); }
.to-top .ico { transform: rotate(-90deg); }

/* scroll reveal */
[data-anim] { opacity: 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
[data-anim="up"] { transform: translateY(40px); }
[data-anim="left"] { transform: translateX(-50px); }
[data-anim="right"] { transform: translateX(50px); }
[data-anim="zoom"] { transform: scale(.88); }
[data-anim].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero::after, .plus, .float-card, .exp-badge, .play i::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   AUTH
   ===================================================================== */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: var(--band-grad); }
.auth-side .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; mix-blend-mode: luminosity; }
.auth-side > * { position: relative; }
.auth-side::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 80px solid rgba(255,255,255,.07); right: -200px; top: -160px; }
.auth-side .logo, .auth-side .logo b { color: #fff; }
.auth-side .logo small { color: rgba(255,255,255,.75); }
.auth-side .logo-mark { background: #fff; color: var(--brand); box-shadow: none; }
.auth-side h2 { color: #fff; font-size: clamp(30px, 3vw, 42px); max-width: 460px; }
.auth-side p { color: rgba(255,255,255,.88); margin-top: 14px; max-width: 430px; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.auth-side li .ico { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: rgba(255,255,255,.2); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; background: var(--surface); }
.auth-box { width: 100%; max-width: 430px; animation: dropIn .6s cubic-bezier(.2,.8,.2,1); }
.auth-box h1 { font-size: 34px; color: var(--navy); }
.auth-box > section > p { color: var(--ink-2); margin: 8px 0 26px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: 14px; background: var(--surface-2); margin-bottom: 22px; }
.seg button { height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--brand); color: #fff; box-shadow: var(--shadow-blue); }
.auth-form { display: grid; gap: 16px; }
.auth-alt { margin-top: 22px; text-align: center; color: var(--ink-2); font-size: 15px; }
.demo { margin-top: 26px; padding: 14px 16px; border-radius: 12px; border: 1px dashed #b8d4fb; background: var(--brand-soft); font-size: 13px; color: var(--ink-2); }
.demo b { color: var(--navy); }
.demo button { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; font-size: 13px; }
.err { color: var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; }
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* =====================================================================
   DASHBOARD
   ===================================================================== */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; z-index: 50; }
.side .logo { padding: 0 8px 22px; font-size: 17px; gap: 9px; }
.side .logo-mark { width: 34px; height: 34px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.side-nav .grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 16px 12px 6px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.side-nav a .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.side-user .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.side-user .who { min-width: 0; flex: 1; }
.side-user b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { font-size: 12px; color: var(--ink-3); text-transform: capitalize; }
.scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head h1 { font-size: 21px; font-weight: 900; color: var(--navy); }
.head .crumb { font-size: 13px; color: var(--ink-3); }
.head .push { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.menu-btn { display: none; }
.content { padding: 28px; flex: 1; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(5, 15, 18, .4); z-index: 45; }
  .menu-btn { display: inline-grid; }
  .head { padding: 0 16px; }
  .content { padding: 20px 16px; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.stat .si { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.stat .si.c2 { background: var(--info-soft); color: var(--info); }
.stat .si.c3 { background: var(--warn-soft); color: var(--warn); }
.stat .si.c4 { background: var(--ok-soft); color: var(--ok); }
.stat span { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; color: var(--ink-3); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { gap: 10px; } .stat { padding: 14px; flex-direction: column; gap: 10px; } .stat b { font-size: 22px; } }

.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h h3 { font-size: 16px; font-weight: 700; }
.panel-h .push { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.panel-b { padding: 20px; }
.panel + .panel, .grid-2 + .panel, .panel + .grid-2, .grid-2 + .grid-2 { margin-top: 16px; }
.grid-2 > .panel { margin-top: 0; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); }
.search input { height: 40px; padding-left: 38px; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.toolbar select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; font-size: 14px; }
.toolbar .push { margin-left: auto; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--surface-2); }
.t .actions { white-space: nowrap; text-align: right; width: 1%; }
.t .strong { font-weight: 600; }
.t .sub { display: block; font-size: 12px; color: var(--ink-3); }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; background: var(--brand-soft); color: var(--brand-strong); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.empty .ico { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--line); }
.pager { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* mobile: tables become cards */
@media (max-width: 720px) {
  .t thead { display: none; }
  .t, .t tbody, .t tr, .t td { display: block; width: 100%; }
  .t tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .t td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .t td::before { content: attr(data-l); font-size: 12px; color: var(--ink-3); font-weight: 600; text-align: left; flex: none; }
  .t td.actions { width: 100%; justify-content: flex-end; padding-top: 8px; }
  .t td.actions::before { content: none; }
  .t tbody tr:hover td { background: none; }
  .cell-user { justify-content: flex-end; }
}

.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 40px; border-radius: 8px 8px 4px 4px; background: var(--brand); min-height: 4px; transition: height .6s cubic-bezier(.2,.8,.2,1); position: relative; }
.bar i.zero { background: var(--surface-2); }
.bar em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.bar b { font-size: 12px; font-variant-numeric: tabular-nums; }
.hbar { display: grid; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 130px 1fr 32px; gap: 10px; align-items: center; font-size: 13px; }
.hbar-row .track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hbar-row .track i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.hbar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.ring div { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring b { font-size: 22px; display: block; line-height: 1; }
.ring span { font-size: 11px; color: var(--ink-3); }
.list { display: grid; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item span { font-size: 12px; color: var(--ink-3); }
.welcome { background: var(--band-grad); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 22px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); }
.welcome h2 { font-size: 22px; font-weight: 800; }
.welcome p { color: #c8ece7; margin-top: 4px; font-size: 14px; }
.welcome .btn { position: relative; z-index: 1; background: #fff; color: var(--band); }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(5, 15, 18, .45); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: 100%; max-width: 640px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop .25s cubic-bezier(.2,.8,.2,1); }
.modal.sm { max-width: 440px; }
.modal.lg { max-width: 820px; }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 18px; font-weight: 700; }
.modal-h .icon-btn { margin-left: auto; }
.modal-b { padding: 22px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 560px) { .modal-bg { padding: 0; align-items: end; } .modal { max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; } }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.kv div span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kv div b { font-weight: 500; word-break: break-word; }
.kv .full { grid-column: 1 / -1; }
.pre { white-space: pre-wrap; background: var(--surface-2); padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.items-table { width: 100%; border-collapse: collapse; }
.items-table td { padding: 4px 4px 4px 0; }
.items-table input { height: 40px; }
.totals { display: grid; gap: 6px; justify-content: end; text-align: right; margin-top: 12px; font-size: 14px; }
.totals b { font-size: 20px; }

/* invoice */
.invoice { font-size: 14px; }
.inv-h { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; flex-wrap: wrap; }
.inv-h h2 { font-size: 24px; }
.inv-t { width: 100%; border-collapse: collapse; margin: 16px 0; }
.inv-t th, .inv-t td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.inv-t th:last-child, .inv-t td:last-child, .inv-t th:nth-child(3), .inv-t td:nth-child(3) { text-align: right; }
.print-only { display: none; }
@media print {
  body * { visibility: hidden !important; }
  .printable, .printable * { visibility: visible !important; }
  .printable { position: absolute; left: 0; top: 0; width: 100%; padding: 24px; color: #000; }
  .modal-bg { position: static; background: none; }
  .modal { box-shadow: none; max-height: none; }
  .print-only { display: block; }
}

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.loading-screen { min-height: 100vh; display: grid; place-items: center; color: var(--ink-3); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand-strong); border-bottom-color: var(--brand); }
