/* ============================================================
   TYP JAIPUR — DESIGN SYSTEM
   Gradient red brand, glassmorphism surfaces, motion
   ============================================================ */
:root {
  --red-50: #fff1f2;
  --red-100: #ffe4e6;
  --red-500: #f43f5e;
  --red-600: #e11d48;
  --red-700: #be123c;
  --red-800: #9f1239;
  --maroon: #7b111a;
  --maroon-900: #4c0519;
  --gold: #f59e0b;

  --grad-red: linear-gradient(135deg, #ff5a6e 0%, #e11d48 45%, #9f1239 100%);
  --grad-red-h: linear-gradient(90deg, #f43f5e, #be123c);
  --grad-maroon: linear-gradient(135deg, #9f1239 0%, #7b111a 55%, #4c0519 100%);
  --grad-gold: linear-gradient(135deg, #fcd34d 0%, #f59e0b 55%, #d97706 100%);
  --grad-plum: linear-gradient(135deg, #f472b6 0%, #db2777 50%, #9d174d 100%);
  --grad-green: linear-gradient(135deg, #34d399 0%, #10b981 50%, #047857 100%);
  --grad-text: linear-gradient(100deg, #f43f5e 0%, #be123c 60%, #7b111a 100%);

  --ink: #1c0f14;
  --ink-2: #3f2a31;
  --muted: #6b5a60;
  --line: rgba(159, 18, 57, 0.12);
  --bg: #fff8f8;
  --surface: #ffffff;

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);

  --shadow-sm: 0 1px 2px rgba(76, 5, 25, 0.06), 0 2px 8px rgba(76, 5, 25, 0.05);
  --shadow: 0 10px 30px -8px rgba(76, 5, 25, 0.18);
  --shadow-lg: 0 24px 60px -16px rgba(76, 5, 25, 0.3);
  --shadow-red: 0 10px 24px -8px rgba(225, 29, 72, 0.55);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Noto Sans Devanagari', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --header-h: 76px;
  --sb-w: 268px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(244, 63, 94, 0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(245, 158, 11, 0.07), transparent 60%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(225, 29, 72, 0.45); outline-offset: 2px; border-radius: 6px; }

.i { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.pt-0 { padding-top: 0 !important; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.grad-red { background: var(--grad-red); }
.grad-gold { background: var(--grad-gold); }
.grad-plum { background: var(--grad-plum); }
.grad-green { background: var(--grad-green); }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
}
.glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow);
}
.glass-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---------------- Buttons ---------------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn-sm { --pad-y: 8px; --pad-x: 14px; font-size: .86rem; }
.btn-lg { --pad-y: 15px; --pad-x: 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-grad { color: #fff; background: var(--grad-red); background-size: 160% 160%; background-position: 0% 50%; box-shadow: var(--shadow-red); }
.btn-grad::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 40%, transparent 60%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-grad:hover { background-position: 100% 50%; box-shadow: 0 16px 32px -10px rgba(225, 29, 72, .7); }
.btn-grad:hover::after { transform: translateX(120%); }

.btn-outline { color: var(--red-700); border-color: rgba(190, 18, 60, .35); background: rgba(255,255,255,.6); }
.btn-outline:hover { background: var(--red-50); border-color: var(--red-600); box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--ink-2); background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.8); border-color: rgba(190,18,60,.3); color: var(--red-700); }
.btn-glass { color: var(--ink); background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.btn-glass:hover { background: rgba(255,255,255,.85); }
.btn-white { background: #fff; color: var(--red-700); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.btn-white:hover { color: var(--red-800); }
.btn-glass-dark { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass-dark:hover { background: rgba(255,255,255,.22); }
.btn-danger { color: #fff; background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 8px 18px -8px rgba(220,38,38,.6); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center-row { justify-content: center; }
.end-row { justify-content: flex-end; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  color: var(--ink-2);
  transition: background .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: #fff; color: var(--red-700); transform: translateY(-1px); }
.icon-btn .i { width: 20px; height: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--red-700); font-weight: 700; font-size: .92rem; }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-700); background: rgba(255, 228, 230, .7); border: 1px solid rgba(244, 63, 94, .2);
  margin-bottom: 18px;
}
.tag { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tag-red { color: var(--red-700); background: var(--red-50); border: 1px solid rgba(244,63,94,.25); }
.tag-gold { color: #92400e; background: #fffbeb; border: 1px solid rgba(245,158,11,.3); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; position: relative; flex-shrink: 0; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------------- Top bar & header ---------------- */
.top-bar { background: var(--grad-maroon); color: rgba(255,255,255,.92); font-size: .84rem; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.top-bar-text { margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.top-bar-links a { white-space: nowrap; }
.top-bar-text strong { color: #fff; }
.top-bar-links { display: flex; gap: 18px; }
.top-bar-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; opacity: .9; transition: opacity .2s; }
.top-bar-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
/* Blur lives on a pseudo-element so the header doesn't become the containing block of the fixed mobile drawer */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 248, 248, .72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  transition: background .3s;
}
.site-chrome { display: contents; }
.site-header.scrolled::before { background: rgba(255,255,255,.85); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -14px rgba(76,5,25,.25); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 64px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 16px -6px rgba(225,29,72,.45), inset 0 0 0 1px rgba(225,29,72,.12);
  transition: transform .4s var(--ease);
}
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; letter-spacing: .02em; }
.brand-sub { font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-link {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .94rem; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 18px; height: 3px; border-radius: 3px;
  background: var(--grad-red-h); transform: translateX(-50%) scaleX(0); transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--red-700); background: rgba(255,228,230,.55); }
.nav-link.active { color: var(--red-700); }
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-mobile-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-ghost.active { color: var(--red-700); border-color: rgba(190,18,60,.35); }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-backdrop { display: none; }

/* ---------------- Pages & routing ---------------- */
.page, .admin-shell { display: none; }
.page.is-active { display: block; animation: pageIn .5s var(--ease) both; }
.admin-shell.is-active { display: flex; animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.is-admin .top-bar, body.is-admin .site-header, body.is-admin .site-footer, body.is-admin .to-top { display: none; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------- Sections ---------------- */
.section { padding: 88px 0; }
.section-tint { background: linear-gradient(180deg, rgba(255,228,230,.35), rgba(255,241,242,.15)); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2, .about-split h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* Hero */
.hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.hero-blobs span:nth-child(1) { width: 420px; height: 420px; background: #fda4af; top: -120px; right: -80px; }
.hero-blobs span:nth-child(2) { width: 340px; height: 340px; background: #fcd34d; bottom: -140px; left: -100px; opacity: .3; animation-delay: -4s; }
.hero-blobs span:nth-child(3) { width: 260px; height: 260px; background: #f9a8d4; top: 40%; left: 45%; opacity: .3; animation-delay: -8s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .i { color: #fff; background: var(--grad-red); border-radius: 50%; padding: 3px; width: 18px; height: 18px; stroke-width: 3; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.4));
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-4deg);
  transition: transform .8s var(--ease);
}
.hero-visual:hover .hero-frame { transform: perspective(1200px) rotateY(0); }
.hero-frame img { border-radius: calc(var(--r-xl) - 8px); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-frame::after { content: ""; position: absolute; inset: 8px; border-radius: calc(var(--r-xl) - 8px); background: linear-gradient(180deg, transparent 55%, rgba(76,5,25,.35)); pointer-events: none; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; animation: float 6s ease-in-out infinite; }
.float-chip strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }
.float-chip small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.chip-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.chip-a { left: -28px; bottom: 36px; }
.chip-b { right: -18px; top: 28px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Stats */
.stats-band { position: relative; margin-top: -32px; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--grad-maroon); border-radius: var(--r-lg); padding: 30px 12px; box-shadow: var(--shadow-lg);
  color: #fff; position: relative; overflow: hidden;
}
.stats-grid::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 80% 0%, rgba(255,255,255,.18), transparent 70%); }
.stat { text-align: center; padding: 6px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.2); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.stat span { font-size: .86rem; opacity: .85; }

/* Pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.pillar-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-red-h); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card h3 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 10px; }
.pillar-card h3 small { font-family: var(--font); font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pillar-card p { color: var(--muted); margin: 0; }
.pillar-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; box-shadow: 0 10px 20px -10px rgba(159,18,57,.6); transition: transform .4s var(--ease); flex-shrink: 0; }
.pillar-icon .i { width: 24px; height: 24px; }
.pillar-card:hover .pillar-icon { transform: rotate(-8deg) scale(1.08); }

/* Flagship */
.flagship { display: grid; grid-template-columns: 300px 1fr; gap: 44px; padding: 40px; border-radius: var(--r-xl); position: relative; overflow: hidden; }
.flagship::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(244,63,94,.22), transparent 70%); top: -140px; right: -100px; }
.flagship-media { position: relative; align-self: start; }
.flagship-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; transition: transform .6s var(--ease); }
.flagship:hover .flagship-media img { transform: scale(1.03) rotate(-1deg); }
.flagship-tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; padding: 7px 16px; border-radius: 999px; background: var(--grad-gold); color: #451a03; font-size: .78rem; font-weight: 800; box-shadow: var(--shadow); }
.flagship-body { position: relative; }
.flagship-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.flagship-tagline { font-weight: 700; color: var(--red-700); font-style: italic; }
.flagship-body p { color: var(--muted); }

.helpline-card {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 26px; padding: 14px 18px;
  border-radius: var(--r); background: var(--grad-maroon); color: #fff; box-shadow: var(--shadow-red);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.helpline-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(159,18,57,.7); }
.helpline-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); position: relative; flex-shrink: 0; }
.helpline-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.helpline-text { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.helpline-text small { opacity: .8; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.helpline-text strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .03em; }
.helpline-arrow { transition: transform .3s var(--ease); }
.helpline-card:hover .helpline-arrow { transform: translateX(5px); }
.helpline-compact { margin: 16px 0 0; }
.helpline-compact .helpline-text strong { font-size: 1.25rem; }

/* About split */
.about-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-split p { color: var(--muted); }
.leader-stack { display: grid; gap: 16px; }
.leader-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); transition: transform .35s var(--ease); }
.leader-card:hover { transform: translateX(6px); }
.leader-card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.leader-card span { color: var(--muted); font-size: .88rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 8px 18px -8px rgba(159,18,57,.6); }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 48px; border-radius: var(--r-xl); color: #fff; background: var(--grad-red); position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band::before { width: 300px; height: 300px; right: -80px; top: -120px; }
.cta-band::after { width: 200px; height: 200px; left: 30%; bottom: -120px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; opacity: .9; max-width: 520px; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 64px 0 56px; background: var(--grad-maroon); color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -260px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.page-hero p { opacity: .85; margin: 0; font-size: 1.08rem; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; margin-bottom: 14px; color: rgba(255,255,255,.75); flex-wrap: wrap; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs .i { width: 14px; height: 14px; }
.crumbs span { color: #fff; }
.prose h2 { font-size: 1.6rem; margin-top: 8px; }
.about-media { position: relative; }
.about-media > img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.about-media-badge { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font-weight: 800; color: var(--red-800); }
.about-media-badge img { width: 28px; height: 28px; }

/* Cabinet */
.cabinet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.member-card {
  text-align: center; padding: 30px 20px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s;
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member-card .avatar { width: 80px; height: 80px; font-size: 1.5rem; margin: 0 auto 16px; outline: 4px solid #fff; box-shadow: 0 0 0 6px rgba(244,63,94,.15), 0 12px 24px -10px rgba(159,18,57,.6); }
.member-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.member-card span { font-size: .8rem; font-weight: 700; color: var(--red-700); text-transform: uppercase; letter-spacing: .05em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); transition: transform .3s var(--ease), box-shadow .3s; }
.contact-card .pillar-icon { margin: 0; width: 48px; height: 48px; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-card strong { font-size: 1rem; line-height: 1.4; }

/* ---------------- Cards & Forms ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.form-card { padding: 32px; }
.form-card h2 { font-size: 1.5rem; margin-bottom: 4px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label, .field .label { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.req { color: var(--red-600); }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(159,18,57,.14); background: #fff;
  font-size: .95rem; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #a8979c; }
.input:hover { border-color: rgba(159,18,57,.28); }
.input:focus { outline: none; border-color: var(--red-500); box-shadow: 0 0 0 4px rgba(244,63,94,.14); }
.input[readonly] { background: #fff7f8; }
textarea.input { resize: vertical; min-height: 84px; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239f1239' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input-mono { font-family: ui-monospace, Consolas, monospace; font-weight: 800; color: var(--red-700); letter-spacing: .08em; font-size: 1.05rem; }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--red-600); }
.input-icon .input { padding-left: 42px; font-weight: 700; }
.err { display: none; color: var(--red-600); font-size: .8rem; font-weight: 600; }
.field.invalid .input { border-color: var(--red-600); background: #fff5f6; box-shadow: 0 0 0 4px rgba(225,29,72,.08); }
.field.invalid .err { display: block; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }

/* MBD page */
.mbd-hero { position: relative; overflow: hidden; background: var(--grad-maroon); color: #fff; padding: 56px 0 120px; }
.mbd-hero .hero-blobs span { opacity: .25; }
.mbd-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 200px; gap: 40px; align-items: center; }
.mbd-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.mbd-hero h1 .hi { opacity: .8; font-weight: 700; }
.mbd-hero p { opacity: .88; max-width: 620px; font-size: 1.05rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip-glass { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .85rem; font-weight: 600; }
.mbd-hero-logo img { border-radius: var(--r-lg); box-shadow: 0 24px 50px -16px rgba(0,0,0,.5); transform: rotate(3deg); transition: transform .6s var(--ease); border: 4px solid rgba(255,255,255,.3); }
.mbd-hero-logo:hover img { transform: rotate(0) scale(1.04); }

.mbd-form-wrap { position: relative; z-index: 2; margin-top: -80px; padding-bottom: 80px; }
.mbd-form { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.form-main { min-width: 0; }
.stepper { list-style: none; display: flex; gap: 8px; padding: 8px; margin: 0 0 20px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); position: sticky; top: 76px; z-index: 5; }
.stepper li { flex: 1; }
.stepper a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--muted); transition: background .3s, color .3s; }
.stepper a span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: var(--red-50); color: var(--red-700); transition: background .3s, color .3s; }
.stepper a:hover { color: var(--red-700); }
.stepper a.done span { background: var(--grad-green); color: #fff; }
.stepper a.current { background: #fff; color: var(--red-700); box-shadow: var(--shadow-sm); }
.stepper a.current span { background: var(--grad-red); color: #fff; }

.form-section { border: 1px solid var(--line); padding: 28px; margin: 0 0 20px; scroll-margin-top: 150px; transition: box-shadow .3s, border-color .3s; min-width: 0; }
.form-section:focus-within { border-color: rgba(244,63,94,.35); box-shadow: var(--shadow); }
.section-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; padding: 0; margin-bottom: 20px; float: left; width: 100%; }
.section-title + * { clear: both; }
.step-badge { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-red); color: #fff; font-size: .95rem; box-shadow: var(--shadow-red); }

.bg-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.bg-picker label { position: relative; cursor: pointer; }
.bg-picker input { position: absolute; opacity: 0; pointer-events: none; }
.bg-picker span {
  display: grid; place-items: center; height: 48px; border-radius: 12px;
  border: 1.5px solid rgba(159,18,57,.16); background: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--ink-2);
  transition: all .25s var(--ease);
}
.bg-picker label:hover span { border-color: var(--red-500); color: var(--red-700); transform: translateY(-2px); }
.bg-picker input:checked + span { background: var(--grad-red); color: #fff; border-color: transparent; box-shadow: var(--shadow-red); transform: translateY(-2px); }
.bg-picker input:focus-visible + span { outline: 3px solid rgba(225,29,72,.4); outline-offset: 2px; }

.qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(159,18,57,.16); background: #fff; color: var(--red-700); display: grid; place-items: center; transition: all .2s; flex-shrink: 0; }
.qty-btn:hover { background: var(--grad-red); color: #fff; border-color: transparent; }
.qty-input { width: 72px; text-align: center; font-weight: 800; font-size: 1.1rem; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-suffix { color: var(--muted); font-weight: 600; font-size: .9rem; }

.form-side { position: sticky; top: 90px; }
.summary-card { border-radius: var(--r-lg); padding: 22px; }
.summary-head { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.summary-head .mono { color: var(--red-700); }
.summary-blood { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, var(--red-50), #fff); border: 1px solid rgba(244,63,94,.15); margin-bottom: 16px; }
.summary-drop { position: relative; width: 64px; height: 64px; display: grid; place-items: center; flex-shrink: 0; }
.summary-drop .i { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--red-600); stroke: none; filter: drop-shadow(0 8px 12px rgba(225,29,72,.4)); }
.summary-drop b { position: relative; color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-top: 12px; }
.summary-blood strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.summary-blood small { color: var(--muted); }
.summary-list { margin: 0 0 16px; display: grid; gap: 10px; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.summary-list dt { color: var(--muted); font-weight: 600; }
.summary-list dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.progress { height: 8px; background: var(--red-50); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad-red-h); border-radius: 99px; transition: width .5s var(--ease); }
.summary-card .btn-lg { margin-top: 16px; }
.summary-card .btn-sm { margin-top: 10px; }

/* 404 */
.notfound { padding: 120px 0; }
.nf-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; }

/* ---------------- Footer ---------------- */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(160deg, #2a0710 0%, #4c0519 45%, #7b111a 100%); color: rgba(255,255,255,.78); padding-top: 72px; }
.footer-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(244,63,94,.35), transparent 65%); top: -300px; right: -150px; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.brand-light .brand-title { color: #fff; }
.brand-light .brand-sub { color: rgba(255,255,255,.7); }
.footer-brand p { margin: 18px 0; font-size: .92rem; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-row span { padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 700; font-size: .85rem; color: #fff; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-gold); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer-links a { display: inline-flex; transition: color .2s, transform .25s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { margin-top: 4px; color: #fda4af; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }
.footer-bottom .motto { color: #fcd34d; font-weight: 700; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; color: #fff; background: var(--grad-red); box-shadow: var(--shadow-red); display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .35s var(--ease); }
.to-top .i { transform: rotate(-90deg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-shell { min-height: 100vh; background: #f8f4f5; }
.admin-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 60;
  display: flex; flex-direction: column; padding: 20px 16px;
  background: linear-gradient(180deg, #2a0710 0%, #4c0519 55%, #7b111a 100%);
  color: rgba(255,255,255,.75);
  height: 100vh; height: 100dvh;
  transition: width .35s var(--ease), transform .35s var(--ease);
  overflow: hidden;
  overscroll-behavior: contain;
}
.admin-sidebar::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(244,63,94,.35), transparent 70%); bottom: -120px; left: -120px; pointer-events: none; }
.sb-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; white-space: nowrap; }
.sb-brand .brand-mark { width: 42px; height: 42px; }
.sb-brand .brand-mark img { width: 30px; height: 30px; }
.sb-brand-text strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.sb-brand-text small { font-size: .76rem; opacity: .7; }
.sb-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .5; padding: 14px 12px 8px; white-space: nowrap; }
.sb-nav { display: grid; gap: 4px; }
.sb-link {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background .25s, color .25s;
}
.sb-link .i { width: 20px; height: 20px; }
.sb-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sb-link.active { color: #fff; background: linear-gradient(90deg, rgba(244,63,94,.55), rgba(244,63,94,.12)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sb-link.active::before { content: ""; position: absolute; left: -16px; top: 20%; height: 60%; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad-gold); }
.sb-badge { margin-left: auto; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--grad-red); color: #fff; font-size: .72rem; text-align: center; }
.sb-footer { margin-top: auto; display: grid; gap: 10px; position: relative; }
.sb-help { display: block; padding: 14px; border-radius: 14px; white-space: nowrap; transition: background .25s; }
.sb-help:hover { background: rgba(255,255,255,.14); }
.sb-help small { display: block; opacity: .7; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.sb-help strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.sb-backdrop { display: none; }

.admin-main { flex: 1; min-width: 0; margin-left: var(--sb-w); transition: margin-left .35s var(--ease); padding: 0 28px 40px; }
.admin-shell.sb-collapsed { --sb-w: 84px; }
.admin-shell.sb-collapsed .sb-brand-text, .admin-shell.sb-collapsed .sb-link span, .admin-shell.sb-collapsed .sb-label, .admin-shell.sb-collapsed .sb-help, .admin-shell.sb-collapsed .sb-badge { display: none; }
.admin-shell.sb-collapsed .sb-link { justify-content: center; }
.admin-shell.sb-collapsed .sb-brand { justify-content: center; padding-left: 0; padding-right: 0; }

.admin-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  margin: 0 -28px 24px; padding: 14px 28px;
  background: rgba(248,244,245,.75); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.ah-title { min-width: 0; }
.ah-title h1 { font-size: 1.4rem; margin: 0; }
.crumbs-sm { margin-bottom: 0; font-size: .76rem; color: var(--muted); }
.crumbs-sm span { color: var(--red-700); }
.crumbs-sm a:hover { color: var(--red-700); }
.ah-search { position: relative; margin-left: auto; width: min(340px, 100%); }
.ah-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ah-search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, border-color .2s; }
.ah-search input:focus { outline: none; border-color: var(--red-500); box-shadow: 0 0 0 4px rgba(244,63,94,.12); }
.ah-actions { display: flex; align-items: center; gap: 10px; }
.ah-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-red); color: #fff; font-weight: 800; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(244,63,94,.3); }

.admin-view { display: none; }
.admin-view.is-active { display: block; animation: pageIn .4s var(--ease) both; }

.welcome-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 30px; border-radius: var(--r-lg); color: #fff; background: var(--grad-red); position: relative; overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow);
}
.welcome-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.1); right: -60px; top: -120px; }
.welcome-card > * { position: relative; z-index: 1; }
.welcome-card h2 { color: #fff; font-size: 1.6rem; margin-bottom: 4px; }
.welcome-card p { margin: 0; opacity: .9; }
.welcome-card .btn-glass { color: #fff; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpi { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kpi-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 10px 20px -10px rgba(0,0,0,.35); }
.kpi-icon .i { width: 24px; height: 24px; }
.kpi small { color: var(--muted); font-weight: 600; font-size: .82rem; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 1.08rem; }
.recent-list { padding: 8px 12px 12px; }
.recent-item { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; transition: background .2s; }
.recent-item:hover { background: var(--red-50); }
.recent-item .blood-chip { flex-shrink: 0; }
.recent-item .ri-main { flex: 1; min-width: 0; }
.recent-item .ri-main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item .ri-main small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-bars { padding: 18px 22px 22px; display: grid; gap: 12px; }
.bg-bar { display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 12px; font-weight: 700; font-size: .88rem; }
.bg-bar-track { height: 10px; border-radius: 99px; background: var(--red-50); overflow: hidden; }
.bg-bar-fill { height: 100%; border-radius: 99px; background: var(--grad-red-h); width: 0; transition: width 1s var(--ease); }
.bg-bar .num { text-align: right; color: var(--muted); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .empty-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--red-50); color: var(--red-600); }
.empty .empty-icon .i { width: 28px; height: 28px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; flex: 1 1 260px; }
.search-box .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box .input { padding-left: 40px; }
.toolbar .select { width: auto; flex: 0 1 190px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; padding: 12px 16px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fdf7f8; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: #fff6f7; }
.cell { min-width: 0; }
.data-table .sub { display: block; font-size: .78rem; color: var(--muted); }
.data-table .strong { font-weight: 700; }
.ta-r { text-align: right; }
.slip-no { font-family: ui-monospace, Consolas, monospace; font-weight: 800; color: var(--red-700); }
.blood-chip { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 8px; border-radius: 9px; background: var(--grad-red); color: #fff; font-weight: 800; font-size: .82rem; box-shadow: 0 6px 12px -6px rgba(225,29,72,.6); }
.status-select { border: 0; border-radius: 999px; padding: 6px 30px 6px 12px; font-size: .78rem; font-weight: 800; cursor: pointer; -webkit-appearance: none; appearance: none; background-repeat: no-repeat; background-position: right 10px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.status-ok { background-color: #dcfce7; color: #166534; }
.status-pending { background-color: #fef3c7; color: #92400e; }
.status-pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.act { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .2s; }
.act:hover { background: var(--grad-red); color: #fff; border-color: transparent; transform: translateY(-2px); }
.act.danger:hover { background: linear-gradient(135deg, #f87171, #dc2626); }
.act .i { width: 17px; height: 17px; }
.table-foot { padding: 12px 18px; font-size: .84rem; border-top: 1px solid var(--line); }

/* ---------------- Modals & toasts ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
  background: rgba(28, 6, 12, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: 100%; max-width: 820px; background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.98); transition: transform .4s var(--ease); margin: auto; }
.modal-overlay.active .modal-card { transform: none; }
.modal-paper { background: #fffcf4; }
.modal-sm { max-width: 420px; }
.modal-sm h3 { font-size: 1.25rem; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); display: grid; place-items: center; transition: background .2s, transform .3s; z-index: 2; }
.modal-close:hover { background: var(--grad-red); color: #fff; transform: rotate(90deg); }
.modal-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.toast-container { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; min-width: 260px; max-width: 380px; background: rgba(28,15,20,.92); color: #fff; box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: toastIn .4s var(--ease) both; font-size: .92rem; font-weight: 600; transition: opacity .3s, transform .3s; }
.toast .t-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); flex-shrink: 0; }
.toast-success .t-icon { background: var(--grad-green); }
.toast-error .t-icon { background: var(--grad-red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* Short screens: compact sidebar so it always fits without scrolling */
@media (max-height: 680px) {
  .admin-sidebar { padding: 14px 12px; }
  .sb-brand { padding-bottom: 12px; margin-bottom: 8px; }
  .sb-label { padding: 8px 12px 4px; }
  .sb-link { padding: 8px 12px; }
  .sb-help { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hide-md { display: none !important; }
  .main-nav .nav-link { padding: 10px 10px; font-size: .9rem; }
  .mbd-form { grid-template-columns: 1fr 300px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 70;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 90px 20px 24px;
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: -20px 0 50px -20px rgba(76,5,25,.35);
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; overflow-y: auto;
  }
  .main-nav .nav-link { padding: 14px 16px; font-size: 1.02rem; border-radius: 14px; }
  .main-nav .nav-link::after { left: 6px; top: 50%; bottom: auto; width: 4px; height: 20px; transform: translateY(-50%) scaleY(0); }
  .main-nav .nav-link.active { background: var(--red-50); }
  .main-nav .nav-link.active::after { transform: translateY(-50%) scaleY(1); }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  body.nav-open .nav-toggle { position: relative; z-index: 80; }
  body.nav-open .nav-toggle .i-open { display: none; }
  body.nav-open .nav-toggle .i-close { display: block; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(28,6,12,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .header-actions { margin-left: auto; }

  .hero-grid, .about-split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 620px; }
  .hero-frame { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stat:nth-child(3)::before { display: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .flagship { grid-template-columns: 1fr; padding: 28px; }
  .flagship-media { max-width: 240px; margin: 0 auto 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .mbd-form { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .mbd-hero-grid { grid-template-columns: 1fr 140px; }

  .admin-sidebar { transform: translateX(-100%); width: 280px; }
  .admin-main { margin-left: 0; }
  .admin-shell.sb-open .admin-sidebar { transform: none; }
  .admin-shell.sb-collapsed { --sb-w: 268px; }
  .admin-shell.sb-collapsed .sb-brand-text, .admin-shell.sb-collapsed .sb-link span, .admin-shell.sb-collapsed .sb-label, .admin-shell.sb-collapsed .sb-help, .admin-shell.sb-collapsed .sb-badge { display: revert; }
  .admin-shell.sb-collapsed .sb-link { justify-content: flex-start; }
  .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(28,6,12,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .admin-shell.sb-open .sb-backdrop { opacity: 1; pointer-events: auto; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .top-bar-inner { min-height: 36px; }
  .top-bar-text, .top-bar-links { font-size: .8rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark img { width: 30px; height: 30px; }
  .brand-title { font-size: 1.12rem; }
  .brand-sub { font-size: .68rem; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 72px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .chip-a { left: 8px; bottom: -22px; }
  .chip-b { right: 8px; top: -18px; }
  .float-chip { padding: 8px 12px 8px 8px; }
  .float-chip strong { font-size: 1.05rem; }
  .chip-icon { width: 34px; height: 34px; }
  .stats-grid { padding: 22px 6px; }
  .stat span { font-size: .78rem; }
  .cta-band { padding: 32px 22px; }
  .cta-band .btn-row, .cta-band .btn { width: 100%; }
  .flagship { padding: 22px 18px; }
  .flagship .btn-row .btn { width: 100%; }
  .helpline-text strong { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-card { padding: 22px 18px; }

  .mbd-hero { padding: 36px 0 100px; }
  .mbd-hero-grid { grid-template-columns: 1fr; }
  .mbd-hero-logo { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-section { padding: 20px 16px; }
  .bg-picker { grid-template-columns: repeat(4, 1fr); }
  .stepper { top: 64px; }
  .stepper a { font-size: .78rem; padding: 8px 4px; gap: 5px; }

  .admin-main { padding: 0 14px 30px; }
  .admin-header { margin: 0 -14px 18px; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .ah-title h1 { font-size: 1.15rem; }
  .ah-search { order: 3; width: 100%; margin-left: 0; }
  .ah-actions { margin-left: auto; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .kpi strong { font-size: 1.5rem; }
  .welcome-card { padding: 22px; }
  .toolbar .select { flex: 1 1 140px; }

  /* table → cards */
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  .data-table td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .data-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; padding-top: 3px; }
  .data-table td.empty-cell { display: block; text-align: center; }
  .data-table td.empty-cell::before { display: none; }
  .row-actions { justify-content: flex-end; }
  .data-table .cell { text-align: right; overflow-wrap: anywhere; }
  .data-table td[data-label="Status"] .cell, .data-table td[data-label="Actions"] .cell { flex: 0 0 auto; }

  .modal-overlay { padding: 12px 8px; }
  .modal-card { padding: 18px 12px; }
  .toast-container { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   OFFICIAL REQUISITION LETTERHEAD SLIP (EXACT PHOTO REPLICA)
   ============================================================ */
.requisition-paper-slip {
  background: #fbf7e8;
  border: 1px solid #d4c5a0;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  color: #2b1f14;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.req-header-banner {
  background: linear-gradient(90deg, #7b111a 0%, #9e1724 50%, #7b111a 100%);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-bottom: 2px solid #5a0c13;
}

.req-header-banner img {
  height: 48px;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}

.req-header-banner h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.req-body {
  padding: 28px 36px 20px;
  font-size: 0.98rem;
  line-height: 1.9;
}

.req-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.req-no-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.req-no-val {
  color: #c81e2b;
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 800;
  border-bottom: 1px solid #776e5e;
  min-width: 80px;
  display: inline-block;
  text-align: center;
}

.req-blood-bank-block {
  margin: 16px 0;
  font-weight: 700;
  text-transform: uppercase;
}

.req-underline-field {
  display: inline-block;
  border-bottom: 1px solid #554d3e;
  padding: 0 8px;
  color: #0f172a;
  font-weight: 700;
}

.req-subject-line {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 18px 0 12px;
  color: #111;
  text-transform: uppercase;
}

.req-subject-line span {
  color: #c81e2b;
}

.req-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 12px;
}

.req-field-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  min-width: 240px;
}

.req-field-item label {
  color: #33261a;
  font-weight: 600;
  white-space: nowrap;
}

.req-field-fill {
  flex-grow: 1;
  border-bottom: 1px solid #6b5e4a;
  padding: 0 6px;
  font-weight: 700;
  color: #0f172a;
  min-height: 24px;
}

.req-sign-block {
  margin-top: 24px;
}

.req-sign-org {
  font-weight: 800;
  color: #85101a;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.req-office-use-box {
  background: rgba(220, 205, 170, 0.25);
  border: 1px dashed #a8987b;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 20px 0 14px;
  font-size: 0.9rem;
}

.req-office-title {
  font-style: italic;
  font-weight: 700;
  color: #7b111a;
  margin-bottom: 6px;
}

.req-helpline-badge-wrap {
  text-align: center;
  margin: 18px 0;
}

.req-helpline-badge {
  display: inline-block;
  background: #7b111a;
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(123, 17, 26, 0.3);
}

.req-helpline-badge .hl-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
}

.req-helpline-badge .hl-num {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
}

/* Footer of the Physical Pad */
.req-footer-pad {
  border-top: 2px solid #85101a;
  background: #f7f1dd;
  padding: 14px 24px;
  font-size: 0.76rem;
  color: #4a3c2e;
  line-height: 1.5;
}

.req-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.req-footer-bottom-ribbon {
  background: #7b111a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.req-footer-pillars span {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
}

@media (max-width: 680px) {
  .req-body { padding: 18px 14px; font-size: .86rem; }
  .req-header-banner h2 { font-size: 1.1rem; }
  .req-header-banner img { height: 36px; }
  .req-field-item { min-width: 100%; }
  .req-blood-bank-block .req-underline-field, .req-sign-block .req-underline-field { min-width: 0 !important; }
  .req-footer-grid, .req-footer-bottom-ribbon { flex-direction: column; align-items: flex-start; gap: 6px; }
  .req-footer-grid > div:last-child { text-align: left !important; }
}

/* Slip preview: true A4 pad scaled to fit */
.pad-viewport { position: relative; width: 100%; max-width: 794px; margin: 0 auto; overflow: hidden; border-radius: 6px; box-shadow: 0 18px 40px -18px rgba(76,5,25,.45), 0 0 0 1px rgba(139,26,26,.15); }
.pad-scale { width: 794px; transform-origin: top left; transform: scale(var(--pad-scale, 1)); }
.modal-paper { background: linear-gradient(180deg, #fff, #fff6f6); max-width: 880px; }

/* Print: only the requisition letter, at true A4 size */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body::before { display: none; }
  body * { visibility: hidden; }
  #printableRequisitionModal, #printableRequisitionModal .pad-viewport, #printableRequisitionModal .pad-viewport * { visibility: visible; }
  #printableRequisitionModal { position: absolute; inset: 0 auto auto 0; width: 794px; padding: 0; margin: 0; background: transparent; overflow: visible; -webkit-backdrop-filter: none; backdrop-filter: none; display: block; }
  #printableRequisitionModal .modal-card { box-shadow: none; padding: 0; margin: 0; transform: none; background: none; max-width: none; }
  .pad-viewport { height: auto !important; box-shadow: none; border-radius: 0; overflow: visible; }
  .pad-scale { transform: none !important; }
  .pad-sheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .modal-close, .modal-actions, .toast-container { display: none !important; }
}
