@charset "UTF-8";

/* ─── DESIGN TOKENS ─────────────────────── */
:root {
  --c-ink:        #0a0f1e;
  --c-ink-2:      #1e2d4a;
  --c-ink-3:      #334872;
  --c-body:       #4a5568;
  --c-muted:      #64748b;
  --c-faint:      #a0aec0;
  --c-bg:         #f7f9fc;
  --c-surface:    #ffffff;
  --c-raised:     #f0f4f8;
  --c-border:     #e2e8f0;
  --c-border-2:   #cbd5e0;
  --c-blue:       #2563eb;
  --c-blue-dark:  #1d4ed8;
  --c-blue-deep:  #1e3a8a;
  --c-blue-xdeep: #0f172a;
  --c-blue-light: #eff6ff;
  --c-blue-mid:   #dbeafe;
  --c-blue-glow:  rgba(37, 99, 235, 0.22);
  --c-green:      #047857;
  --c-green-l:    #ecfdf5;
  --c-amber:      #92400e;
  --c-amber-l:    #fffbeb;
  --c-red:        #b91c1c;
  --c-red-l:      #fef2f2;
  --c-teal:       #0d9488;
  --sh-xs: 0 1px 3px rgba(10,15,30,.06);
  --sh-sm: 0 2px 8px rgba(10,15,30,.07), 0 1px 2px rgba(10,15,30,.05);
  --sh-md: 0 6px 20px rgba(10,15,30,.08), 0 2px 6px rgba(10,15,30,.04);
  --sh-lg: 0 16px 40px rgba(10,15,30,.10), 0 4px 12px rgba(10,15,30,.05);
  --sh-xl: 0 28px 64px rgba(10,15,30,.14), 0 8px 20px rgba(10,15,30,.07);
  --sh-2xl: 0 40px 80px rgba(10,15,30,.18);
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;
  font-family: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); min-height: 100vh; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; color: var(--c-ink); line-height: 1.25; }
p { line-height: 1.65; }
small { font-size: 12px; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: transparent; font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-blue); outline-offset: 2px;
}
svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ─── LAYOUT ─────────────────────────────── */
.container { max-width: 1280px; margin: auto; padding: 0 40px; }
.skip-link { position: fixed; top: -100px; left: 12px; background: var(--c-blue); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); z-index: 999; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ─── SITE HEADER ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: 70px; display: flex; align-items: center;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.8);
  transition: box-shadow .2s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 28px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.45), inset 0 1px 0 rgba(255,255,255,.15);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 60%);
}
.brand-mark svg { width: 22px; height: 22px; stroke: #fff; position: relative; z-index: 1; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.04em; color: var(--c-ink); line-height: 1.1; }
.brand-sub { display: block; font-size: 12px; font-weight: 600; color: var(--c-muted); letter-spacing: .07em; text-transform: uppercase; margin-top: 2px; }

/* Nav */
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13.5px; font-weight: 500; color: var(--c-body); }
.nav-links a { transition: color .15s; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--c-blue); border-radius: 2px; transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover { color: var(--c-blue); }
.nav-links a:hover::after { transform: scaleX(1); }
.script-toggle {
  background: var(--c-raised); border: 1px solid var(--c-border);
  color: var(--c-ink-3); font-size: 12px; font-weight: 700; padding: 6px 13px;
  border-radius: var(--r-full); cursor: pointer; transition: all .15s; letter-spacing: .03em;
}
.script-toggle:hover { background: var(--c-blue-light); color: var(--c-blue); border-color: var(--c-blue-mid); }

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-weight: 600; font-size: 13.5px;
  border-radius: var(--r-md); min-height: 44px;
  background: var(--c-blue); color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.3), inset 0 1px 0 rgba(255,255,255,.15);
  transition: all .18s cubic-bezier(.22,1,.36,1);
  white-space: nowrap; letter-spacing: .01em;
}
.btn:hover { background: var(--c-blue-dark); transform: translateY(-1.5px); box-shadow: 0 6px 20px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.15); }
.btn:active { transform: translateY(.5px); box-shadow: 0 1px 4px rgba(37,99,235,.2); }
.btn.lime { background: linear-gradient(135deg, var(--c-blue-dark) 0%, var(--c-blue) 100%); }
.btn.outline { color: var(--c-ink-2); border: 1.5px solid var(--c-border-2); background: #fff; box-shadow: var(--sh-xs); }
.btn.outline:hover { background: var(--c-raised); color: var(--c-blue); border-color: #93c5fd; transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn.soft { background: var(--c-blue-light); color: var(--c-blue); font-weight: 700; }
.btn.soft:hover { background: var(--c-blue-mid); }
.btn.small { padding: 7px 15px; font-size: 12px; min-height: 34px; border-radius: var(--r-sm); gap: 6px; }
.btn.danger { background: var(--c-red-l); color: var(--c-red); border: 1.5px solid #fecaca; box-shadow: none; }
.btn.danger:hover { background: #fee2e2; }
.text-btn { background: none; color: var(--c-blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 13px; transition: all .15s; }
.text-btn:hover { color: var(--c-blue-dark); gap: 10px; }
.icon-btn { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--c-raised); color: var(--c-muted); display: inline-grid; place-items: center; flex-shrink: 0; transition: all .15s; }
.icon-btn:hover { background: var(--c-border); color: var(--c-ink); }

/* ─── DEMO STRIP ──────────────────────────── */
.demo-strip { font-size: 12px; padding: 8px 16px; margin: 16px 0 0; border-radius: var(--r-full); background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tiny-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ─── HERO ───────────────────────────────── */
.hero {
  padding: 60px 0 70px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px;
  align-items: center; position: relative;
}
.hero::before {
  content: ""; position: absolute; top: -20px; left: -40px; right: -40px; bottom: -20px;
  background: radial-gradient(ellipse 65% 55% at 15% 45%, rgba(37,99,235,.09) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 85% 70%, rgba(99,102,241,.07) 0%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--c-blue);
  background: var(--c-blue-light); border: 1px solid var(--c-blue-mid);
  padding: 6px 14px; border-radius: var(--r-full); margin-bottom: 20px;
}
.hero h1 { font-size: 54px; font-weight: 800; line-height: 1.12; letter-spacing: -0.04em; margin-bottom: 20px; color: var(--c-ink); }
.hero h1 em { font-style: normal; background: linear-gradient(130deg, #1d4ed8 0%, #2563eb 45%, #0284c7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-copy > p { font-size: 16px; color: var(--c-body); max-width: 520px; line-height: 1.68; }

.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.glow-btn {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff; padding: 14px 26px; font-size: 14px; font-weight: 700;
  border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(37,99,235,.35);
  transition: all .2s cubic-bezier(.22,1,.36,1);
}
.glow-btn:hover {
  transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,99,235,.45);
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 60%, #2563eb 100%);
}
.hero-track-btn { padding: 13px 22px; font-size: 13.5px; }

.hero-features { display: flex; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.hf-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--c-ink-2); background: rgba(255,255,255,.8); border: 1px solid var(--c-border); padding: 5px 12px; border-radius: var(--r-full); box-shadow: var(--sh-xs); }
.hf-item svg { width: 14px; height: 14px; color: var(--c-blue); }

/* Hero Showcase & Image Visual */
.hero-showcase { position: relative; }
.hero-image-wrapper {
  position: relative; border-radius: var(--r-2xl); overflow: visible;
  background: #fff; padding: 10px; border: 1px solid var(--c-border);
  box-shadow: 0 25px 60px -15px rgba(15,23,42,.14), 0 8px 20px -6px rgba(15,23,42,.06);
}
.hero-main-img {
  width: 100%; height: 380px; object-fit: cover; border-radius: calc(var(--r-2xl) - 8px);
  display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.hero-floating-card {
  position: absolute; background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.8); box-shadow: 0 16px 36px rgba(15,23,42,.12), 0 4px 10px rgba(15,23,42,.05);
  border-radius: var(--r-lg); padding: 12px 18px; display: flex; align-items: center; gap: 12px;
  z-index: 2; transition: transform .25s ease;
}
.hero-floating-card:hover { transform: translateY(-3px) scale(1.02); }
.top-right-card { top: 24px; right: -24px; }
.bottom-left-card { bottom: -20px; left: -20px; }

.hfc-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--c-blue-light);
  color: var(--c-blue); display: grid; place-items: center; flex-shrink: 0;
}
.hfc-icon svg { width: 18px; height: 18px; }
.hfc-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.status-pulse-dot {
  position: absolute; top: 10px; left: 10px; width: 9px; height: 9px;
  border-radius: 50%; background: #10b981; border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(16,185,129,.3); animation: pulse 2s infinite;
}
.hero-floating-card b { display: block; font-size: 12.5px; font-weight: 700; color: var(--c-ink); line-height: 1.3; }
.hero-floating-card span { font-size: 12px; color: var(--c-muted); }

.hero-quick-flow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 36px; background: rgba(255,255,255,.9); border: 1px solid var(--c-border);
  padding: 10px 18px; border-radius: var(--r-full); box-shadow: var(--sh-xs);
}
.flow-pill-item { font-size: 12px; font-weight: 600; color: var(--c-ink-2); display: flex; align-items: center; gap: 6px; }
.flow-pill-item.active { color: var(--c-blue); font-weight: 700; }
.flow-step-num { width: 19px; height: 19px; border-radius: 50%; background: var(--c-raised); color: var(--c-muted); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.flow-pill-item.active .flow-step-num { background: var(--c-blue); color: #fff; }
.flow-pill-arrow svg { width: 12px; height: 12px; color: var(--c-faint); }

/* ─── METRICS BAR ─────────────────────────── */
.metrics-bar {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 28px 36px; margin: 32px 0 56px;
  box-shadow: var(--sh-md);
}
.metric-card { text-align: center; padding: 0 16px; }
.metric-num { font-size: 34px; font-weight: 800; color: var(--c-ink); letter-spacing: -0.04em; line-height: 1.1; }
.metric-num small { font-size: 16px; font-weight: 700; color: var(--c-blue); margin-left: 2px; }
.metric-label { font-size: 13px; font-weight: 700; color: var(--c-ink-2); margin-top: 4px; }
.metric-sub { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.metric-divider { width: 1px; height: 42px; background: var(--c-border); }

/* ─── SECTIONS ────────────────────────────── */
.section { padding: 60px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-heading h2 { font-size: 34px; margin-top: 8px; font-weight: 800; letter-spacing: -0.03em; }
.section-heading p { font-size: 14.5px; color: var(--c-body); max-width: 440px; line-height: 1.6; }

/* ─── SERVICE GRID ────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-tile {
  display: flex; align-items: center; text-align: left; padding: 18px 20px; background: #fff;
  border: 1.5px solid var(--c-border); border-radius: var(--r-lg); color: var(--c-ink);
  gap: 14px; min-height: 84px; transition: all .22s cubic-bezier(.22,1,.36,1);
  box-shadow: var(--sh-xs); position: relative; overflow: hidden;
}
.service-tile:hover {
  border-color: #93c5fd; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(37,99,235,.10);
}
.tile-icon-wrap {
  width: 42px; height: 42px; border-radius: 12px; background: var(--c-blue-light);
  display: grid; place-items: center; color: var(--c-blue); flex-shrink: 0;
  transition: all .2s ease;
}
.service-tile:hover .tile-icon-wrap { background: var(--c-blue); color: #fff; transform: scale(1.05); }
.tile-info { flex: 1; min-width: 0; }
.tile-title { display: block; font-size: 13.5px; font-weight: 700; color: var(--c-ink); line-height: 1.3; }
.tile-sub { display: block; font-size: 12px; color: var(--c-muted); margin-top: 3px; }
.service-tile .arrow { width: 14px; height: 14px; color: var(--c-faint); transition: all .2s; }
.service-tile:hover .arrow { color: var(--c-blue); transform: translateX(4px); }

.service-tile.other {
  grid-column: span 2;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(30,58,138,.35);
}
.service-tile.other:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(30,58,138,.5); }
.service-tile.other .tile-icon-wrap { background: rgba(255,255,255,.18); color: #fff; }
.service-tile.other .tile-title { color: #fff; }
.service-tile.other .tile-sub { color: #94a3b8; }
.service-tile.other .arrow { color: rgba(255,255,255,.6); }
.service-tile.other:hover .arrow { color: #fff; transform: translateX(5px); }

/* ─── CONCIERGE BANNER WITH SERVICES.JPG ───── */
.unknown-banner {
  background: linear-gradient(135deg, #0a0f1e 0%, #172554 50%, #1e3a8a 100%);
  color: #fff; border-radius: var(--r-2xl); padding: 40px 48px;
  display: grid; grid-template-columns: 1.3fr 1fr;
  align-items: center; gap: 40px; margin-top: 40px;
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
  border: 1px solid rgba(255,255,255,.12); position: relative; overflow: hidden;
}
.unknown-banner::before {
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.25), transparent 70%);
  right: -50px; top: -50px; pointer-events: none;
}
.unknown-content { position: relative; z-index: 1; }
.unknown-content .pill { margin-bottom: 14px; }
.unknown-content h3 { font-size: 26px; font-weight: 800; line-height: 1.3; color: #fff; margin-bottom: 12px; }
.unknown-content p { font-size: 14px; color: #94a3b8; line-height: 1.68; max-width: 580px; }
.unknown-action-row { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.prominent-help-btn {
  background: #fff; color: var(--c-blue); font-size: 12.5px; font-weight: 800;
  padding: 16px 28px; border-radius: var(--r-md); box-shadow: 0 10px 28px rgba(0,0,0,.25);
  letter-spacing: .02em; transition: all .2s; white-space: nowrap; flex-shrink: 0;
}
.prominent-help-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.35); background: #f0fdf4; color: #047857; }
.prominent-help-btn svg { color: inherit; }
.unknown-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #93c5fd; }
.unknown-hint svg { width: 14px; height: 14px; color: #60a5fa; }
.unknown-media { position: relative; z-index: 1; text-align: center; }
.unknown-img {
  width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transition: transform .3s ease;
}
.unknown-img:hover { transform: scale(1.02); }

/* ─── HOW IT WORKS (SPLIT WITH HOW.JPG) ───── */
.how-section { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.how-split-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; margin-top: 36px; }

.how-media-panel { position: relative; }
.how-img-container {
  position: relative; border-radius: var(--r-2xl); overflow: visible;
  background: #fff; padding: 10px; border: 1px solid var(--c-border);
  box-shadow: 0 20px 50px rgba(15,23,42,.10);
}
.how-main-img {
  width: 100%; height: 420px; object-fit: cover; border-radius: calc(var(--r-2xl) - 8px);
  display: block;
}
.how-glass-badge {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(15,23,42,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 16px 20px;
  color: #fff; display: flex; align-items: center; gap: 14px;
}
.hgb-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(59,130,246,.25);
  color: #60a5fa; display: grid; place-items: center; flex-shrink: 0;
}
.hgb-icon svg { width: 18px; height: 18px; }
.how-glass-badge b { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.how-glass-badge p { font-size: 12px; color: #94a3b8; margin: 0; }

.steps-timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline-step {
  display: flex; gap: 20px; align-items: flex-start; background: var(--c-bg);
  border: 1.5px solid var(--c-border); border-radius: var(--r-lg); padding: 22px 24px;
  transition: all .22s cubic-bezier(.22,1,.36,1); position: relative;
}
.timeline-step:hover {
  background: #fff; border-color: #93c5fd; box-shadow: var(--sh-md); transform: translateX(6px);
}
.step-no {
  font-size: 14px; font-weight: 800; color: var(--c-blue); background: var(--c-blue-light);
  border: 1.5px solid var(--c-blue-mid); width: 44px; height: 44px; line-height: 41px;
  text-align: center; border-radius: 12px; display: inline-block; flex-shrink: 0;
}
.step-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--c-ink); }
.step-body p { font-size: 13px; color: var(--c-body); line-height: 1.6; }

/* ─── FAMILY / PACKAGES ───────────────────── */
.family-section { display: grid; grid-template-columns: .85fr 1.7fr; gap: 52px; align-items: center; }
.family-section h2 { font-size: 34px; margin: 10px 0 16px; font-weight: 800; letter-spacing: -0.03em; }
.family-section > div > p { font-size: 14.5px; color: var(--c-body); line-height: 1.65; }
.package-cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--c-border); border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--sh-sm); }
.package-card { padding: 32px 24px; border-right: 1.5px solid var(--c-border); display: flex; flex-direction: column; position: relative; }
.package-card:last-child { border: 0; }
.package-card.featured { background: #fcfdfe; border-top: 3.5px solid var(--c-blue); box-shadow: 0 8px 30px rgba(37,99,235,.08); }
.popular-tag {
  position: absolute; top: 12px; right: 14px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; background: var(--c-blue-light); color: var(--c-blue);
  border: 1px solid var(--c-blue-mid); padding: 3px 8px; border-radius: var(--r-full);
}
.package-card .label { font-size: 12px; font-weight: 700; color: var(--c-blue); text-transform: uppercase; letter-spacing: .09em; }
.package-card h3 { font-size: 24px; margin: 12px 0 8px; font-weight: 800; }
.package-card p { font-size: 13px; color: var(--c-body); min-height: 52px; line-height: 1.55; }
.package-card .package-line { height: 1px; background: var(--c-border); margin: 20px 0; }
.package-card small { font-size: 12px; color: var(--c-muted); line-height: 1.6; display: block; margin-top: auto; }
.package-card .text-btn { font-size: 13px; margin-top: 16px; }

/* ─── CTA BAND ────────────────────────────── */
.contact-band {
  background: linear-gradient(135deg, #090d16 0%, #1e3a8a 55%, #1d4ed8 100%);
  color: #fff; border-radius: var(--r-2xl); padding: 44px 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; margin-bottom: 68px; box-shadow: 0 20px 50px rgba(15,23,42,.22);
  border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden;
}
.contact-band::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; border-radius: 50%; background: rgba(59,130,246,.25); pointer-events: none; }
.contact-band h2 { font-size: 30px; margin-bottom: 8px; color: #fff; font-weight: 800; }
.contact-band p { font-size: 14.5px; color: #94a3b8; }
.prominent-contact-btn {
  background: #fff; color: var(--c-blue); padding: 14px 30px; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); flex-shrink: 0; border-radius: var(--r-md);
  transition: all .2s cubic-bezier(.22,1,.36,1);
}
.prominent-contact-btn:hover { background: #f0fdf4; color: #047857; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.35); }

/* ─── FOOTER ──────────────────────────────── */
.site-footer { padding: 40px 0; border-top: 1px solid var(--c-border); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; gap: 28px; font-size: 12.5px; color: var(--c-muted); font-weight: 600; }
.footer-links button { background: none; padding: 0; color: inherit; font-size: inherit; font-weight: inherit; transition: color .15s; }
.footer-links button:hover { color: var(--c-blue); }
.footer-bottom { margin-top: 22px; color: var(--c-muted); font-size: 12px; line-height: 1.7; }

/* ─── PILLS ───────────────────────────────── */
.pill { display: inline-flex; align-items: center; padding: 3.5px 10px; gap: 5px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; background: var(--c-raised); color: var(--c-ink-3); border: 1px solid var(--c-border); white-space: nowrap; }
.pill.green { background: var(--c-green-l); color: var(--c-green); border-color: #a7f3d0; }
.pill.amber { background: var(--c-amber-l); color: var(--c-amber); border-color: #fde68a; }
.pill.red { background: var(--c-red-l); color: var(--c-red); border-color: #fecaca; }
.pill.blue { background: var(--c-blue-light); color: var(--c-blue); border-color: var(--c-blue-mid); }
.muted { color: var(--c-muted); }

/* ─── NOTICES ─────────────────────────────── */
.error-box { padding: 13px 16px; background: var(--c-red-l); color: var(--c-red); border: 1px solid #fecaca; border-radius: var(--r-md); font-size: 13px; line-height: 1.55; margin: 14px 0; font-weight: 500; }
.notice { padding: 14px 18px; background: var(--c-blue-light); border: 1px solid var(--c-blue-mid); border-radius: var(--r-md); font-size: 13px; line-height: 1.6; color: var(--c-blue-deep); margin: 16px 0; }
.notice.warning { background: var(--c-amber-l); color: #92400e; border-color: #fde68a; }
.empty { padding: 56px 24px; text-align: center; color: var(--c-muted); font-size: 13px; line-height: 1.7; }
.empty > svg { display: block; margin: 0 auto 18px; width: 38px; height: 38px; color: var(--c-faint); }
.empty > :is(h2,h3) { font-size: 18px; color: var(--c-ink); margin-bottom: 6px; }
.empty > p { max-width: 560px; margin: 0 auto; }
.empty > .btn { margin-top: 20px; }
.empty .btn { max-width: 100%; min-height: 46px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.empty > .form-actions { max-width: 560px; margin: 20px auto 0; justify-content: center; align-items: stretch; flex-wrap: wrap; }

/* ─── DIALOG / MODAL ──────────────────────── */
dialog { border: 1px solid var(--c-border); border-radius: var(--r-xl); max-width: 700px; width: calc(100% - 32px); padding: 0; color: var(--c-ink); background: #fff; box-shadow: var(--sh-2xl); max-height: 90dvh; overflow-y: auto; }
dialog::backdrop { background: rgba(10,15,30,.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-head { padding: 24px 30px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; background: #fff; z-index: 5; }
.modal-head h2 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.modal-head p { font-size: 12.5px; color: var(--c-muted); margin-top: 5px; max-width: 520px; line-height: 1.5; }
.modal-body { padding: 26px 30px 30px; }

/* ─── FORMS ───────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--c-ink-2); font-size: 12.5px; }
.field label small { font-weight: 400; color: var(--c-muted); }
input, select, textarea { border: 1.5px solid var(--c-border-2); border-radius: var(--r-sm); background: #fff; padding: 10px 14px; min-height: 44px; width: 100%; font-size: 13.5px; transition: all .15s; color: var(--c-ink); }
input:hover:not(:focus), select:hover:not(:focus) { border-color: #93c5fd; }
input:focus, select:focus, textarea:focus { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); outline: none; background: #fff; }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--c-faint); }
input[type=checkbox] { width: 16px; min-height: 16px; accent-color: var(--c-blue); flex-shrink: 0; cursor: pointer; }
input[type=file] { font-size: 12px; background: var(--c-raised); padding: 10px; }
input[type=file]::file-selector-button { background: #fff; border: 1px solid var(--c-border-2); border-radius: var(--r-xs); font: inherit; font-weight: 600; padding: 6px 12px; margin-right: 10px; color: var(--c-blue); cursor: pointer; }
.field-help { font-size: 12px; line-height: 1.5; color: var(--c-muted); }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.6; margin: 20px 0; color: var(--c-body); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; align-items: center; }
.form-actions .muted { font-size: 12px; margin-right: auto; }
.record-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.record-row span { font-size: 12px; color: var(--c-muted); font-weight: 600; }
.form-error { min-height: 0; }

/* ─── SUCCESS ─────────────────────────────── */
.success { text-align: center; padding: 12px 0; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--c-green-l); color: var(--c-green); display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 6px 18px rgba(5,150,105,.22); }
.success-icon svg { width: 30px; height: 30px; stroke-width: 2.4; }
.success :is(h2,h3) { font-size: 23px; font-weight: 800; }
.success > p { font-size: 13.5px; color: var(--c-muted); margin: 8px 0 22px; }
.token-box { background: var(--c-raised); border: 1.5px solid var(--c-border); padding: 18px; border-radius: var(--r-md); margin-bottom: 14px; text-align: left; }
.token-box label { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; display: block; margin-bottom: 8px; }
.token-box strong { font-size: 22px; letter-spacing: .04em; color: var(--c-blue); font-weight: 800; }
.token-box code { word-break: break-all; font-size: 12.5px; line-height: 1.65; display: block; color: var(--c-ink-2); font-weight: 600; }
.token-box .btn { margin-top: 14px; }
.auth-switch { font-size: 12.5px; color: var(--c-muted); text-align: center; margin-top: 22px; }
.auth-switch .text-btn { font-size: 12.5px; }
.demo-accounts { border-top: 1px solid var(--c-border); margin-top: 24px; padding-top: 20px; }
.demo-accounts p { font-size: 12px; color: var(--c-muted); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.demo-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--c-border); margin: 26px 0; }

/* ─── PREMIUM AUTH DIALOG ────────────────── */
.auth-modal-body { padding: 0 !important; }
dialog:has(.auth-dialog-wrap) { max-width: 440px; border-radius: 24px; overflow-x: hidden; overflow-y: auto; }
.auth-dialog-wrap { background: #0f172a; padding: 28px 24px 24px; color: #e2e8f0; position: relative; }
.auth-dialog-wrap::before { content:''; position:absolute; top:0;left:0;right:0;height:3px; background:linear-gradient(90deg,#2563eb,#7c3aed,#0d9488); }
.auth-close { position: absolute; top: 10px; right: 10px; color: #f8fafc; background: #334155; }
.auth-close:hover { color: #fff; background: #475569; }
.auth-tab:not(.active) { color: #cbd5e1; }

/* Brand row */
.auth-brand-row { display:flex; align-items:center; gap:14px; margin-bottom:22px; padding-right:24px; }
.auth-logo-icon { width:44px;height:44px;background:linear-gradient(135deg,#2563eb,#7c3aed);border-radius:12px;display:grid;place-items:center;font-size:20px;box-shadow:0 6px 18px rgba(37,99,235,.4);flex-shrink:0; }
.auth-logo-name { font-size:18px;font-weight:800;letter-spacing:.04em;color:#f8fafc; }
.auth-logo-sub { font-size:12px;color:#cbd5e1;margin-top:1px;font-weight:500; }

/* Tabs */
.auth-tabs { position:relative;display:grid;grid-template-columns:1fr 1fr;background:rgba(255,255,255,.05);border-radius:12px;padding:4px;margin-bottom:22px;border:1px solid rgba(255,255,255,.08); }
.auth-tab { position:relative;z-index:1;background:none;border:none;padding:10px 4px;font-family:inherit;font-size:13.5px;font-weight:600;line-height:1.4;color:#cbd5e1;cursor:pointer;border-radius:9px;transition:color .2s; }
.auth-tab.active { color:#f8fafc; }
.auth-tab-slider { position:absolute;top:4px;left:4px;width:calc(50% - 4px);height:calc(100% - 8px);background:linear-gradient(135deg,#2563eb,#7c3aed);border-radius:9px;transition:transform .25s cubic-bezier(.22,1,.36,1);box-shadow:0 4px 14px rgba(37,99,235,.35); }

/* Fields */
.auth-form { display:flex;flex-direction:column;gap:14px; }
.auth-form > .form-error:empty { display:none; }
.auth-field { display:flex;flex-direction:column;gap:7px; }
.auth-field label { font-size:13px;font-weight:700;color:#e2e8f0;letter-spacing:.02em; }
.auth-label-note { font-weight:400;color:#cbd5e1;font-size:12px; }
.auth-input-wrap { position:relative;display:flex;align-items:center; }
.auth-field-icon { position:absolute;left:14px;width:16px;height:16px;stroke:#cbd5e1;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;flex-shrink:0; }
.auth-input-wrap input { background:#1e293b;border:1.5px solid #64748b;border-radius:12px;padding:13px 44px 13px 42px;font-size:14px;color:#f8fafc;caret-color:#f8fafc;width:100%;min-height:48px;transition:all .2s;-webkit-appearance:none; }
.auth-input-wrap input::placeholder { color:#b8c4d6;opacity:1; }
.auth-input-wrap input:focus { outline:none;border-color:#93c5fd;background:#1e293b;box-shadow:0 0 0 3px rgba(147,197,253,.2); }
.auth-input-wrap input:autofill { -webkit-text-fill-color:#f8fafc;box-shadow:0 0 0 1000px #1e293b inset; }
.auth-input-wrap input:hover:not(:focus) { border-color:rgba(255,255,255,.2); }

/* Eye button */
.auth-eye { position:absolute;right:8px;background:none;border:none;padding:8px;cursor:pointer;color:#cbd5e1;display:grid;place-items:center;border-radius:6px; }
.auth-eye svg { width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round; }
.auth-eye:hover { color:#94a3b8; }

/* Strength bar */
.auth-strength-bar { height:3px;background:rgba(255,255,255,.08);border-radius:4px;overflow:hidden;margin-top:6px; }
.auth-strength-fill { height:100%;width:0%;border-radius:4px;transition:width .35s,background .35s; }
.auth-strength-label { font-size:12px;color:#cbd5e1;font-weight:600;min-height:14px;display:block;margin-top:2px; }

/* Consent */
.auth-consent { display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;color:#e2e8f0;cursor:pointer;margin-top:2px; }
.auth-consent input { width:16px;min-height:16px;flex-shrink:0;accent-color:#2563eb;cursor:pointer;margin-top:2px; }
.auth-consent span { flex:1; }

/* Submit */
.auth-submit-btn { display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border:none;border-radius:12px;padding:14px 24px;font-size:15px;font-weight:700;cursor:pointer;width:100%;margin-top:6px;min-height:52px;transition:all .2s;box-shadow:0 6px 22px rgba(37,99,235,.35); }
.auth-submit-btn:hover { transform:translateY(-1px);box-shadow:0 10px 28px rgba(37,99,235,.45); }
.auth-submit-btn:active { transform:translateY(0); }
.auth-submit-btn svg { width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round; }

/* Trust row */
.auth-trust-row { display:flex;gap:0;margin-top:24px;border-top:1px solid rgba(255,255,255,.07);padding-top:18px; }
.auth-trust-item { flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;font-size: 12px;color:#cbd5e1;font-weight:600;text-align:center; }
.auth-trust-item svg { width:18px;height:18px;stroke:#cbd5e1;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }

/* Error inside dark modal */
.auth-dialog-wrap .error-box { background:rgba(220,38,38,.12);border-color:rgba(220,38,38,.3);color:#fca5a5; }

/* Mobile tweaks */
@media (max-width:500px) {
 dialog:has(.auth-dialog-wrap) { max-width:100%;width:100%;border-radius:20px 20px 0 0;position:fixed;bottom:0;top:auto;margin:0;animation:sheetSlideUp .3s cubic-bezier(.22,1,.36,1); }
 .auth-dialog-wrap { padding:24px 20px 36px; border-radius:20px 20px 0 0; }
}

/* ─── CASE DETAIL ─────────────────────────── */
.detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.detail-heading :is(h2,h3) { font-size: 21px; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.detail-grid dt { font-size: 12px; font-weight: 700; color: var(--c-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.detail-grid dd { font-size: 13.5px; margin: 0; word-break: break-word; color: var(--c-ink); font-weight: 500; }
.description { background: var(--c-raised); border: 1.5px solid var(--c-border); border-radius: var(--r-md); padding: 18px; font-size: 13.5px; white-space: pre-wrap; line-height: 1.65; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline li::before { content: ""; width: 8px; height: 8px; background: var(--c-blue); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.timeline li:not(:last-child)::after { content: ""; width: 1.5px; background: var(--c-border); position: absolute; left: 3px; top: 18px; bottom: 0; }
.timeline p { font-size: 12.5px; line-height: 1.5; color: var(--c-ink); font-weight: 600; }
.timeline small { color: var(--c-muted); font-size: 12px; }
.detail-section { margin-top: 26px; border-top: 1px solid var(--c-border); padding-top: 22px; }
.detail-section :is(h2,h3) { font-size: 15.5px; margin-bottom: 14px; font-weight: 700; }
.service-row { padding: 14px 18px; background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--r-md); margin-bottom: 10px; transition: border-color .15s; }
.service-row:hover { border-color: #93c5fd; }
.service-row-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.service-row b { font-size: 13.5px; color: var(--c-ink); }
.service-row p { font-size: 12px; color: var(--c-muted); }
.service-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.service-actions select { min-height: 36px; padding: 6px 10px; font-size: 12px; }

/* ─── STARS ───────────────────────────────── */
.stars { display: flex; gap: 8px; }
.stars label { display: grid; place-items: center; width: 46px; height: 46px; background: #fff; border: 1.5px solid var(--c-border-2); border-radius: var(--r-md); cursor: pointer; font-size: 17px; font-weight: 700; transition: all .15s; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label:has(input:checked) { background: var(--c-blue); color: #fff; border-color: var(--c-blue); box-shadow: 0 3px 10px var(--c-blue-glow); transform: scale(1.08); }

/* ─── TOAST ───────────────────────────────── */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0a0f1e;
  color: #f8fafc;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sh-xl);
  z-index: 100;
  max-width: calc(100% - 32px);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  white-space: normal;
  border: 1px solid rgba(255,255,255,.08);
  inset: auto;
  margin: 0;
  width: max-content;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  line-height: 1.5;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}
#toast.visible { transform: translateX(-50%) translateY(0); }

#toast::backdrop { background:transparent; pointer-events:none; }

/* ─── WORKSPACE ───────────────────────────── */
.workspace { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* Sidebar */
.sidebar { background: #0a0f1e; color: #94a3b8; padding: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; border-right: 1px solid rgba(255,255,255,.05); }
.sidebar-top { padding: 28px 20px 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar .brand { padding: 0; }
.sidebar .brand-mark { background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%); box-shadow: 0 4px 14px rgba(37,99,235,.5); }
.sidebar .brand-name { color: #f1f5f9; font-size: 17px; }
.sidebar .brand-sub { color: #475569; font-size: 12px; }
.sidebar-nav { padding: 16px 12px; flex: 1; overflow-y: auto; }
.sidebar-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin: 0 8px 10px; color: #374151; font-weight: 700; display: block; }
.side-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 24px; }
.side-nav a { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); color: #64748b; transition: all .15s; position: relative; }
.side-nav a svg { width: 17px; height: 17px; opacity: .8; }
.side-nav a:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
.side-nav a:hover svg { opacity: 1; }
.side-nav a.active { background: linear-gradient(135deg, rgba(37,99,235,.9), rgba(29,78,216,.9)); color: #fff; font-weight: 600; box-shadow: 0 4px 16px rgba(37,99,235,.35); }
.side-nav a.active svg { opacity: 1; }
.side-nav a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: #60a5fa; border-radius: 0 3px 3px 0; }
.sidebar-bottom { padding: 16px 12px 24px; border-top: 1px solid rgba(255,255,255,.06); margin-top: auto; }
.sidebar-bottom a { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; color: #475569; margin-bottom: 4px; padding: 9px 12px; border-radius: var(--r-sm); transition: all .15s; }
.sidebar-bottom a svg { opacity: .7; }
.sidebar-bottom a:hover { color: #94a3b8; background: rgba(255,255,255,.04); }
.sidebar-demo { font-size: 12px; color: #374151; padding: 0 8px; margin-top: 12px; line-height: 1.5; }

/* Workspace main */
.workspace-main { min-width: 0; background: var(--c-bg); display: flex; flex-direction: column; }
.workspace-top { height: 72px; border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; padding: 0 40px; gap: 24px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.workspace-top .crumb { font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.account { display: flex; align-items: center; gap: 14px; }
.account-avatar { width: 38px; height: 38px; background: linear-gradient(135deg, var(--c-blue-light), var(--c-blue-mid)); color: var(--c-blue); display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; border: 2px solid var(--c-blue-mid); box-shadow: 0 2px 8px var(--c-blue-glow); }
.account-name { font-size: 13px; font-weight: 700; color: var(--c-ink); }
.account-role { font-size: 12px; font-weight: 600; color: var(--c-muted); margin-top: 1px; }
.workspace-content { padding: 36px 40px; max-width: 1400px; margin: auto; width: 100%; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.page-heading p { font-size: 13.5px; color: var(--c-body); margin-top: 6px; }
.page-heading > div:has(> .btn) { flex-wrap: wrap; }
.workspace-top-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.workspace-top-brand .brand-logo { width:32px; height:32px; }
.workspace-brand-title { font-size:14px; font-weight:600; }

/* ─── STATS ───────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat { min-width: 0; overflow-wrap: anywhere; padding: 24px; background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-xs); transition: all .2s cubic-bezier(.22,1,.36,1); }
.stat:hover { box-shadow: var(--sh-md); border-color: var(--c-border-2); transform: translateY(-2px); }
.stat-label { font-size: 12px; font-weight: 700; color: var(--c-muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; text-transform: uppercase; letter-spacing: .05em; }
.stat-label svg { width: 18px; height: 18px; color: var(--c-blue); }
.stat-value { font-size: 34px; margin-top: 12px; font-weight: 800; letter-spacing: -0.045em; color: var(--c-ink); }
.stat-foot { font-size: 12px; color: var(--c-muted); margin-top: 4px; font-weight: 500; }
.stat.emphasis { background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 100%); border-color: transparent; color: #fff; box-shadow: 0 6px 24px rgba(37,99,235,.35); }
.stat.emphasis .stat-label { color: #93c5fd; }
.stat.emphasis .stat-foot { color: #93c5fd; }
.stat.emphasis .stat-value { color: #fff; }
.stat.emphasis .stat-label svg { color: #fff; }

/* ─── PANELS & TABLES ─────────────────────── */
.panel { border: 1.5px solid var(--c-border); background: #fff; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 24px; box-shadow: var(--sh-xs); }
.panel-head { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--c-border); gap: 16px; background: #fff; }
.panel-head h2 { font-size: 15.5px; font-weight: 700; }
.panel-head p { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.panel-body { padding: 24px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.table-scroll { overflow-x: auto; width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12.5px; }
th { padding: 12px 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--c-muted); font-weight: 700; background: var(--c-raised); border-bottom: 1px solid var(--c-border); white-space: nowrap; }
td { padding: 16px 20px; border-top: 1px solid var(--c-border); vertical-align: middle; }
td strong { display: block; font-weight: 700; font-size: 12.5px; margin-bottom: 3px; color: var(--c-ink); }
td small { font-size: 12px; color: var(--c-muted); }
tr.clickable { cursor: pointer; transition: background .15s; }
tr.clickable:hover { background: #f7f9fc; }
.row-link { font-size: 12.5px; font-weight: 700; color: var(--c-blue); background: transparent; padding: 0; }
.row-link:hover { text-decoration: underline; }

/* ─── CASE TABS & FILTERS ──────────────────── */
.case-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #fff; padding: 6px; border: 1.5px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-xs); margin-bottom: 20px; }
.case-tab { background: transparent; border: 0; padding: 8px 16px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--c-muted); display: inline-flex; align-items: center; gap: 8px; transition: all .15s; }
.case-tab:hover { background: var(--c-raised); color: var(--c-ink); }
.case-tab.active { background: var(--c-blue); color: #fff; box-shadow: 0 2px 10px var(--c-blue-glow); }
.tab-badge { background: var(--c-raised); color: var(--c-ink-2); font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: var(--r-full); }
.case-tab.active .tab-badge { background: rgba(255,255,255,.25); color: #fff; }
.tab-badge.warn { background: var(--c-red-l); color: var(--c-red); }
.case-tab.active .tab-badge.warn { background: rgba(254,202,202,.25); color: #fca5a5; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.filters input { flex: 1; min-width: 180px; }
.filters select { width: auto; max-width: 200px; font-size: 12.5px; }
.filters .check-label { margin: 0; padding: 0 8px; align-items: center; white-space: nowrap; font-weight: 600; }

/* ─── BAR CHARTS ──────────────────────────── */
.bar-row { margin-bottom: 18px; }
.bar-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 7px; color: var(--c-ink-2); }
.bar-track { height: 7px; background: var(--c-raised); border-radius: var(--r-full); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #1d4ed8); border-radius: var(--r-full); transition: width .6s cubic-bezier(.22,1,.36,1); }

/* ─── TASK CARDS ──────────────────────────── */
.task-card { padding: 16px 22px; border-bottom: 1px solid var(--c-border); display: flex; gap: 14px; align-items: center; transition: background .15s; }
.task-card:last-child { border: 0; }
.task-card:hover { background: #f7f9fc; }
.task-card h3 { font-size: 13px; font-weight: 700; color: var(--c-ink); }
.task-card p { font-size: 12px; color: var(--c-muted); margin-top: 3px; }
.task-card .pill { margin-left: auto; }
.member-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.member-tags span { font-size: 12px; font-weight: 600; background: var(--c-blue-light); color: var(--c-blue); padding: 3px 9px; border-radius: var(--r-xs); }

/* ─── PACKAGES ────────────────────────────── */
.package-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.owned-package { background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-xs); transition: all .2s; }
.owned-package:hover { box-shadow: var(--sh-md); border-color: var(--c-border-2); }
.owned-package h3 { font-size: 21px; font-weight: 800; }
.owned-package > p { font-size: 12.5px; margin-top: 6px; color: var(--c-muted); }
.owned-package .balance { font-size: 28px; font-weight: 800; margin: 20px 0 8px; color: var(--c-blue); }
.owned-package .balance small { font-size: 12.5px; font-weight: 500; color: var(--c-muted); }
.owned-package .form-actions { justify-content: flex-start; }

/* ─── TELEGRAM ────────────────────────────── */
.telegram-msg-bubble { background: var(--c-blue-light); border-left: 3px solid var(--c-blue); padding: 9px 13px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 12px; line-height: 1.55; color: #1e3a8a; white-space: pre-wrap; }
.tel-link { display: inline-flex; align-items: center; gap: 6px; color: var(--c-blue); font-weight: 700; background: var(--c-blue-light); padding: 5px 11px; border-radius: var(--r-sm); transition: all .15s; }
.tel-link:hover { background: var(--c-blue-mid); }

/* ─── FILES ───────────────────────────────── */
.file-list { display: flex; gap: 8px; flex-wrap: wrap; }
.file-list a { font-size: 12px; font-weight: 600; border: 1.5px solid var(--c-border); background: var(--c-raised); padding: 7px 13px; border-radius: var(--r-sm); display: flex; gap: 7px; align-items: center; max-width: 100%; transition: all .15s; }
.file-list a:hover { background: var(--c-border); color: var(--c-blue); }

/* ─── MISC ────────────────────────────────── */
.loading { padding: 56px; text-align: center; color: var(--c-muted); font-size: 13.5px; font-weight: 600; }
.mobile-toggle { display: none; }
.startup { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 16px; color: var(--c-muted); font-size: 13px; }
.small-text { font-size: 12px; }
.case-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.client-case { padding: 24px; border: 1.5px solid var(--c-border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-xs); transition: all .2s; cursor: pointer; }
.client-case:hover { border-color: #93c5fd; box-shadow: var(--sh-md); transform: translateY(-2px); }
.client-case-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.client-case h3 { font-size: 17px; margin: 16px 0 8px; line-height: 1.4; }
.client-case > p { font-size: 12.5px; color: var(--c-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.client-case-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; border-top: 1px solid var(--c-border); padding-top: 14px; font-size: 12px; color: var(--c-muted); }
.case-progress { display: flex; gap: 4px; margin: 16px 0; }
.case-progress span { height: 4px; flex: 1; background: var(--c-raised); border-radius: var(--r-full); }
.case-progress span.done { background: var(--c-blue); }

/* ─── MOBILE BACKDROP & BOTTOM DOCK ──────── */
.workspace-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.workspace.menu-open .workspace-backdrop {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-bottom-bar {
  display: none;
}

/* ─── RESPONSIVE: TABLET & DESKTOP (<= 1100px) */
@media (max-width: 1100px) {
  .container { padding: 0 28px; }
  .hero { gap: 40px; grid-template-columns: 1.1fr 1fr; }
  .hero h1 { font-size: 46px; }
  .workspace { grid-template-columns: 220px 1fr; }
  .workspace-content { padding: 28px 32px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .family-section { gap: 36px; grid-template-columns: 1fr; }
  .package-cards { max-width: 800px; }
  .how-split-layout { gap: 36px; }
  .unknown-banner { grid-template-columns: 1fr; gap: 28px; }
}

/* ─── RESPONSIVE: MOBILE & TABLET (<= 820px) ── */
@media (max-width: 820px) {
  /* Public Header */
  .site-header { height: 60px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 16.5px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .nav-links > a { display: none; }
  .nav-inner { gap: 12px; }
  .nav-links { gap: 8px; }

  /* Hero Section */
  .hero { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 36px; gap: 32px; }
  .hero h1 { font-size: 34px; line-height: 1.16; }
  .hero-floating-card.top-right-card { right: 8px; top: 12px; }
  .hero-floating-card.bottom-left-card { left: 8px; bottom: -16px; }
  .hero-main-img { height: 280px; }

  /* Metrics Bar */
  .metrics-bar { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; padding: 18px 16px; margin: 20px 0 36px; border-radius: var(--r-lg); }
  .metric-divider { display: none; }
  .metric-num { font-size: 26px; }

  /* Services Grid */
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* How it works */
  .how-split-layout { grid-template-columns: 1fr; gap: 28px; }
  .how-main-img { height: 260px; }
  .how-glass-badge { bottom: 14px; left: 14px; right: 14px; padding: 12px 14px; }

  /* Packages */
  .package-cards { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .package-card { border-right: 0; border-bottom: 1.5px solid var(--c-border); padding: 22px 18px; }
  .package-card:last-child { border-bottom: 0; }
  .package-card p { min-height: auto; }

  /* Concierge Unknown Banner */
  .unknown-banner { padding: 26px 20px; border-radius: var(--r-xl); }
  .unknown-content h3 { font-size: 21px; }
  .prominent-help-btn { width: 100%; text-align: center; justify-content: center; }

  /* Contact Band */
  .contact-band { padding: 28px 20px; border-radius: var(--r-xl); flex-direction: column; align-items: stretch; gap: 18px; }
  .contact-band h2 { font-size: 22px; }
  .prominent-contact-btn { width: 100%; text-align: center; justify-content: center; }

  /* Workspace Dashboard */
  .workspace { display: block; }
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -300px;
    width: 290px;
    height: 100dvh;
    z-index: 55;
    transition: left .26s cubic-bezier(.22,1,.36,1);
    box-shadow: 20px 0 50px rgba(0,0,0,.5);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .workspace.menu-open .sidebar { left: 0; }
  .mobile-toggle { display: inline-grid; }
  .workspace-top { height: 58px; padding: 0 16px; gap: 12px; padding-top: env(safe-area-inset-top); }
  .workspace-top .crumb { display: none; }
  .workspace-content { padding: 20px 16px calc(76px + env(safe-area-inset-bottom)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .case-cards, .package-list { grid-template-columns: 1fr; }
  .case-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    margin-bottom: 16px;
  }
  .case-tabs::-webkit-scrollbar { display: none; }
  .case-tab { white-space: nowrap; flex-shrink: 0; padding: 7px 12px; font-size: 12px; }
  .filters { flex-direction: column; gap: 10px; }
  .filters input, .filters select { width: 100%; max-width: 100%; }

  /* Mobile Bottom Navigation Dock (Public & Workspace) */
  body:not(:has(.workspace)) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 -4px 24px rgba(10, 15, 30, 0.08);
    z-index: 45;
    align-items: center;
    justify-content: space-around;
  }
  .mb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    padding: 6px 0;
    color: var(--c-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .15s ease, transform .12s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mb-item svg { width: 19px; height: 19px; transition: transform .15s ease; }
  .mb-item:active { transform: scale(0.92); }
  .mb-item:hover, .mb-item:focus-visible, .mb-item.active { color: var(--c-blue); }
  .mb-item.active svg { stroke: var(--c-blue); stroke-width: 2.2; }
  .mb-item.mb-action { position: relative; top: 0; }
  .mb-action-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8 0%, #1758ca 60%, #2563eb 100%);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(23, 88, 202, 0.38);
    transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s ease;
    margin-bottom: 2px;
  }
  .mb-action-circle svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.2; }
  .mb-item.mb-action:active .mb-action-circle {
    transform: scale(0.90);
    box-shadow: 0 2px 8px rgba(23, 88, 202, 0.25);
  }
}

/* ─── RESPONSIVE: SMARTPHONES (<= 580px) ───── */
@media (max-width: 580px) {
  .container { padding: 0 16px; }

  /* Header adjustments */
  .header-login-btn { display: none; }
  .script-toggle { padding: 5px 10px; font-size: 12px; }
  .site-header { height: 58px; }

  /* Hero Section */
  .hero { padding: 18px 0 32px; gap: 24px; }
  .hero::before { left: 0; right: 0; }
  .hero h1 { font-size: clamp(28px, 7.8vw, 34px); line-height: 1.16; margin-bottom: 14px; }
  .hero-copy > p { font-size: 14.5px; line-height: 1.58; }
  .hero-actions { flex-direction: column; width: 100%; gap: 10px; margin-top: 20px; }
  .hero-actions .btn { width: 100%; justify-content: center; min-height: 48px; border-radius: 14px; }
  .hero-features { gap: 8px; margin-top: 20px; }
  .hf-item { font-size: 12px; padding: 5px 10px; }

  /* Hero Media & Floating Badges */
  .hero-showcase { width: 100%; margin-top: 4px; }
  .hero-image-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(10,15,30,0.12);
  }
  .hero-main-img { height: 220px; border-radius: 18px; object-fit: cover; }
  .hero-floating-card {
    position: static;
    margin-top: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: var(--sh-xs);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--c-border);
  }
  .hero-floating-card b { font-size: 12px; }
  .hero-floating-card span { font-size: 12px; }
  .hero-quick-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--r-full);
    width: 100%;
    margin-top: 14px;
  }
  .flow-pill-item { font-size: 12px; gap: 4px; white-space: nowrap; }
  .flow-step-num { width: 18px; height: 18px; font-size: 12px; }
  .flow-pill-arrow svg { width: 10px; height: 10px; }

  /* Metrics Bar */
  .metrics-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    margin: 20px 0 32px;
    border-radius: 18px;
  }
  .metric-card {
    padding: 12px 8px;
    background: var(--c-raised);
    border-radius: 14px;
    border: 1px solid rgba(226,232,240,0.85);
  }
  .metric-num { font-size: 24px; }
  .metric-label { font-size: 12px; }
  .metric-sub { font-size: 12px; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-heading { margin-bottom: 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-heading h2 { font-size: 24px; line-height: 1.22; }
  .section-heading p { font-size: 13.5px; line-height: 1.55; }

  /* 2-Column Mobile App Style Services Grid */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .service-tile {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 12px;
    min-height: 106px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid var(--c-border);
    position: relative;
    gap: 8px;
    box-shadow: var(--sh-xs);
  }
  .service-tile:active {
    transform: scale(0.97);
    border-color: #93c5fd;
  }
  .tile-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .tile-icon-wrap svg { width: 19px; height: 19px; }
  .tile-info { width: 100%; }
  .tile-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tile-sub { display: none; }
  .service-tile > svg.arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    opacity: 0.35;
  }
  .service-tile.other {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    min-height: 64px;
    padding: 12px 14px;
  }
  .service-tile.other .tile-sub {
    display: block;
    font-size: 12px;
    color: var(--c-muted);
  }
  .service-tile.other > svg.arrow {
    position: static;
    margin-left: auto;
    opacity: 0.6;
  }

  /* Concierge Unknown Banner */
  .unknown-banner {
    padding: 22px 18px;
    border-radius: 20px;
    gap: 18px;
    margin-top: 24px;
  }
  .unknown-content h3 { font-size: 18px; line-height: 1.3; }
  .unknown-content, .unknown-media { min-width: 0; }
  .unknown-content p { font-size: 13px; line-height: 1.55; }
  .prominent-help-btn {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 48px;
    font-size: 12px;
    border-radius: 14px;
    letter-spacing: .02em;
  }
  .unknown-img {
    max-height: 180px;
    border-radius: 14px;
    object-fit: cover;
    width: 100%;
  }

  /* How it works */
  .how-section { padding: 40px 0; }
  .how-split-layout { gap: 20px; }
  .how-main-img { height: 210px; border-radius: 18px; object-fit: cover; }
  .how-glass-badge {
    position: static;
    margin-top: 10px;
    border-radius: 14px;
    padding: 12px 14px;
  }
  .steps-timeline { gap: 10px; }
  .timeline-step {
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid var(--c-border);
    box-shadow: var(--sh-xs);
    gap: 12px;
  }
  .step-no {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
  }
  .step-body h3 { font-size: 14px; }
  .step-body p { font-size: 12px; line-height: 1.5; margin-top: 3px; }

  /* Family packages */
  .family-section { padding: 40px 0; }
  .package-cards { gap: 12px; border: 0; background: transparent; }
  .package-card {
    border: 1.5px solid var(--c-border);
    border-radius: 18px;
    padding: 20px 18px;
    background: #fff;
    box-shadow: var(--sh-xs);
  }
  .package-card.featured {
    border-color: var(--c-blue);
    box-shadow: 0 4px 20px var(--c-blue-glow);
  }
  .package-card h3 { font-size: 20px; }
  .package-card .text-btn { font-size: 13px; margin-top: 12px; }

  /* Contact Band */
  .contact-band { padding: 24px 18px; border-radius: 20px; gap: 16px; }
  .contact-band h2 { font-size: 20px; }
  .contact-band p { font-size: 13px; }
  .prominent-contact-btn { width: 100%; min-height: 48px; border-radius: 14px; }

  /* Workspace on Phones */
  .workspace-top { height: 56px; padding: 0 14px; }
  .workspace-content { padding: 18px 14px calc(76px + env(safe-area-inset-bottom)); }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { font-size: 12px; }
  .page-heading .btn { width: 100%; justify-content: center; }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat { padding: 14px 12px; border-radius: 16px; }
  .stat-value { font-size: 24px; margin-top: 8px; }
  .stat-label { font-size: 12px; }
  .stat-foot { font-size: 12px; }

  .case-cards { grid-template-columns: 1fr; gap: 12px; }
  .client-case {
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--sh-xs);
  }
  .client-case:active { transform: scale(0.985); }
  .client-case h3 { font-size: 15px; margin: 12px 0 6px; }
  .client-case > p { font-size: 12px; }

  /* Edge-to-edge table on phones */
  .table-scroll {
    margin: 0 -14px;
    padding: 0 14px;
    width: calc(100% + 28px);
    -webkit-overflow-scrolling: touch;
  }
  table { min-width: 520px; }
  th, td { padding: 12px 14px; }

  /* Detail Dialog on Phone */
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
  }
  .detail-grid dt { font-size: 12px; }
  .detail-grid dd { font-size: 12px; }

  /* Form & Native Mobile Bottom Sheet */
  dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0 0;
    border-radius: 24px 24px 0 0;
    max-height: 90dvh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -12px 40px rgba(10, 15, 30, 0.35);
    animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-head {
    padding: 16px 18px 12px;
    border-radius: 24px 24px 0 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
  }
  .modal-head::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--c-border-2);
  }
  .modal-head h2 { font-size: 18px; }
  .modal-body {
    padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent iOS Safari auto-zoom on field focus */
  input, select, textarea {
    font-size: 16px !important;
  }
  .field input, .field select {
    min-height: 46px;
    border-radius: 12px;
  }
  .field label { font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }

  /* Full-width touch buttons in forms */
  .form-actions {
    flex-direction: column-reverse;
    width: 100%;
    gap: 10px;
    margin-top: 20px;
  }
  .form-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 14px;
    font-size: 14px;
  }
  .form-actions .muted {
    text-align: center;
    margin-right: 0;
    font-size: 12px;
  }
  .empty > .form-actions { flex-direction: column; }
  .empty > .btn { width: 100%; }

  /* Footer on mobile */
  .site-footer { padding: 28px 0 calc(76px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-direction: column; gap: 10px; }
}

/* ─── ACCESSIBILITY: REDUCED MOTION ──────── */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ─── SITE MOBILE MENU DRAWER ────────────── */
.site-mobile-menu {
  display: none;
}

.site-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--c-raised);
  border: 1.5px solid var(--c-border);
  color: var(--c-ink);
  text-decoration: none;
  font-size: 13.5px;
  transition: all .18s ease;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}
.site-menu-item:hover, .site-menu-item:active {
  background: var(--c-blue-light);
  border-color: var(--c-blue-mid);
  color: var(--c-blue);
  transform: translateX(4px);
}
.site-menu-item svg {
  width: 22px;
  height: 22px;
  color: var(--c-blue);
  flex-shrink: 0;
}
.site-menu-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}
.site-menu-item small {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 3px;
}
.site-menu-item > svg:last-child {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--c-faint);
}
.site-menu-divider {
  height: 1px;
  background: var(--c-border);
  margin: 8px 0;
}
.site-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── AUDIO ATTACHMENT CARD ──────────────── */
.audio-attachment-card {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}
.audio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
}
.audio-badge svg {
  width: 15px;
  height: 15px;
  color: #16a34a;
}
.audio-card-head small {
  font-size: 12px;
  color: var(--c-muted);
}
.audio-attachment-card audio {
  width: 100%;
  height: 38px;
  border-radius: 20px;
}
.audio-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
}
.audio-dl-btn:hover {
  text-decoration: underline;
}

/* Clear reading and touch interaction for family and older audiences. */
:root { --c-faint: #64748b; }
.btn, .icon-btn, .script-toggle, .text-btn, .footer-links button { min-height:44px; }
.icon-btn { min-width:44px; }
.faq-section { border-top:1px solid var(--c-border); }
.faq-list { max-width:880px; }
.faq-list details { border-bottom:1px solid var(--c-border-2); padding:18px 0; }
.faq-list summary { cursor:pointer; font-size:18px; font-weight:600; min-height:44px; display:list-item; padding:8px 0; color:var(--c-ink-2); }
.faq-list p { color:var(--c-body); line-height:1.75; max-width:760px; margin:8px 0; }
.attachment-item { max-width:100%; }
.attachment-item .btn { white-space:normal; overflow-wrap:anywhere; text-align:left; }
.attachment-item audio { display:block; width:100%; max-width:440px; margin-top:12px; }
.auth-trust-item { line-height:1.5; }
@media(max-width:640px){ .faq-list summary{font-size:16px;} .hero-floating-card{max-width:calc(100% - 24px);} .metric-label{font-size:14px;} }

/* Contrast and mobile bounds verified against the public page audit. */
.metric-sub { color: #475569; }
.how-glass-badge p { color: #e2e8f0; font-size:12px; }
@media(max-width:640px){
 .hero-quick-flow { flex-wrap:wrap; }
 .hero-copy, .hero-showcase, .metric-card, .how-media-panel, .step-body, .family-section > div { min-width:0; }
 .flow-pill-item { white-space:normal; }
 .hero-floating-card, .how-glass-badge { overflow-wrap:anywhere; }
}

@media(max-width:1100px){ .hero::before { left:0; right:0; } }

.auth-recovery { width:100%; justify-content:center; margin-top:12px; color:var(--c-blue-dark); }
#password-form .field + .field, #recovery-confirm-form .field + .field { margin-top:18px; }
#case-results[aria-busy="true"] { min-height:140px; }
.account .icon-btn { flex-shrink:0; }
@media(max-width:580px){ .account { gap:8px; } .account > div { max-width:110px; } .account-name { overflow-wrap:anywhere; } }

/* Table headers remain clearly readable on the raised background. */
th { color:#334155; }

/* Accessible secondary navigation on the cabinet's dark sidebar. */
.workspace .sidebar .brand-sub,
.workspace .sidebar .sidebar-label,
.workspace .sidebar .sidebar-demo { color:#94a3b8; }
.workspace .sidebar .side-nav a:not(.active),
.workspace .sidebar .sidebar-bottom a { color:#cbd5e1; }
.workspace .sidebar .side-nav a:not(.active):hover,
.workspace .sidebar .sidebar-bottom a:hover { color:#f1f5f9; }
.workspace .sidebar .script-toggle { color:#cbd5e1; border-color:#64748b; }

.workspace .sidebar .script-toggle,
.workspace .sidebar .script-toggle:hover { color:#334155; background:var(--c-raised); }
.account-settings-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:20px 0; border-bottom:1px solid var(--c-border); }
.account-settings-row :is(h2,h3) { font-size:16px; margin-bottom:6px; }
.account-settings-row p { color:var(--c-body); line-height:1.6; margin:0; }
.account-settings-row .btn { flex-shrink:0; }
.account-settings-row:last-child { border-bottom:0; }
@media(max-width:580px){ .account-settings-row{flex-direction:column;gap:12px;} }
/* Mobile application pages share the existing business forms and API. */
.mobile-page-header{display:none}
.mobile-home-shortcuts{display:none}
.dedicated-section{padding-top:36px;padding-bottom:64px;min-height:65vh}
.dedicated-section>.section{padding-top:0}
.app-menu-list{display:flex;flex-direction:column;gap:0;margin:20px 0 24px;border:1px solid #dce5ef;border-radius:18px;overflow:hidden;background:#fff}
.app-menu-list>a{display:flex;align-items:center;gap:16px;min-height:76px;padding:18px 20px;color:#172b4d;border-bottom:1px solid #e6edf5;text-decoration:none}
.app-menu-list>a:last-child{border-bottom:0}
.app-menu-list>a>svg:first-child{color:#2563eb;width:23px;height:23px;flex-shrink:0}
.app-menu-list>a>svg:last-child{width:18px;height:18px;margin-left:auto;color:#64748b}
.app-menu-list small{display:block;font-size:12px;font-weight:400;color:#52647b;margin-top:4px}
.app-menu-list a:focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
.service-detail-icon{display:grid;place-items:center;width:72px;height:72px;background:#edf4ff;border-radius:20px;color:#2563eb;margin-bottom:24px}
.service-detail-icon svg{width:32px;height:32px}
/* Qarshi launch: verified contacts and clear family package comparisons. */
.public-contacts { display:flex; flex-direction:column; gap:10px; margin:20px 0; color:var(--c-navy); font-size:15px; line-height:1.5; }
.public-contacts a,.public-contacts span { display:flex; align-items:center; gap:10px; overflow-wrap:anywhere; }
.public-contacts a { font-size:21px; font-weight:800; }
.public-contacts svg { width:20px; height:20px; flex-shrink:0; }
.image-caption { font-size:12px; color:var(--c-body); margin:12px 0; }
.real-photos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0; }
.real-photos figure { margin:0; min-width:0; }
.real-photos.single-photo { grid-template-columns:1fr; }
.real-photos .center-brand-photo img { width:100%; height:auto; aspect-ratio:1; object-fit:contain; background:#17202b; }
.real-photos img { display:block; width:100%; height:180px; object-fit:cover; border-radius:var(--r-lg); }
.real-photos figcaption { display:flex; flex-direction:column; gap:4px; font-size:13px; padding-top:8px; }
.family-section { grid-template-columns:1fr; gap:28px; align-items:start; }
.family-section > div:first-child { max-width:760px; }
.family-section h3 { margin:24px 0 10px; }
.package-card h3 { margin:12px 0 8px; }
.package-card h4 { margin:0 0 12px; font-size:15px; line-height:1.5; }
.package-price { margin:18px 0 12px; color:var(--c-navy); line-height:1.25; }
.package-price strong { font-size:clamp(27px,3vw,36px); font-weight:800; white-space:nowrap; font-variant-numeric:tabular-nums; }
.package-price span { font-size:14px; white-space:nowrap; }
.package-members { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; }
.package-members svg { width:20px; height:20px; flex-shrink:0; }
.package-standard .package-price,.package-standard .label { color:#087b4b; }
.package-premium .package-price,.package-premium .label { color:#7922a5; }
.package-card .package-services { padding-left:0; list-style:none; }
.package-services li { display:flex; align-items:start; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--c-border); }
.package-services li b { flex-shrink:0; font-size:12px; color:var(--c-navy); text-align:right; }
.package-services { padding-left:19px; margin:14px 0 24px; color:var(--c-body); font-size:14px; line-height:1.6; }
.package-services li { padding-left:3px; margin-bottom:10px; }
.package-includes { font-size:14px; line-height:1.5; color:var(--c-blue); }
.package-card .text-btn { margin-top:auto; }
.package-fees { margin-top:20px; font-size:14px; line-height:1.65; }
.payment-section { margin-bottom:28px; }
.payment-section h2 { font-size:21px; }
.payment-history { margin:20px 0; display:grid; gap:12px; }
.payment-row { display:flex; justify-content:space-between; align-items:start; gap:12px; padding:18px; background:#fff; border:1px solid var(--c-border); border-radius:var(--r-lg); }
.payment-row p { font-size:13px; margin:6px 0; }
.payment-row small { font-size:11px; color:var(--c-muted); overflow-wrap:anywhere; }
.payment-row > div:last-child { display:flex; flex-direction:column; gap:8px; align-items:end; }
@media(max-width:540px) { .payment-row { flex-direction:column; } .payment-row > div:last-child { align-items:start; } }
.service-tile .tile-sub { display:block; line-height:1.5; }
.payment-note { color:var(--c-navy); font-size:13px; font-weight:600; max-width:280px; }
@media (max-width:820px) {
 .hero-showcase.has-real-photos { display:block; }
 .hero-showcase.has-real-photos .hero-image-wrapper,.hero-showcase.has-real-photos .image-caption,.hero-showcase.has-real-photos .hero-quick-flow { display:none; }
 .real-photos img { height:150px; }
 .payment-note { max-width:none; }
}
.contact-band .public-contacts { color:#fff; }
.contact-band .public-contacts a { color:#fff; }
@media (min-width:821px) {
 .hero { align-items:start; }
 .hero-showcase.has-real-photos .hero-image-wrapper { height:260px; }
 .hero-showcase.has-real-photos .hero-main-img { height:100%; object-fit:cover; }
 .hero-showcase.has-real-photos .bottom-left-card { bottom:12px; }
 .hero-showcase.has-real-photos .real-photos.single-photo { max-width:300px; margin:18px auto; }
}
.availability-notice { margin-top:20px; }
.hero-showcase.center-showcase { width:100%; max-width:480px; justify-self:end; }
.center-card { margin:0; overflow:hidden; background:#fff; border:1px solid #dce5ef; border-radius:22px; box-shadow:0 16px 48px rgba(7,27,59,.1); }
.center-card > img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; background:#17202b; }
.center-card figcaption { padding:22px 26px 24px; border-top:3px solid #d9a73a; }
.center-card h2 { margin:0 0 12px; font-size:23px; line-height:1.25; letter-spacing:.025em; color:#071b3b; }
.center-phone { display:flex; align-items:center; gap:12px; min-height:48px; width:fit-content; max-width:100%; font-size:22px; line-height:1.4; font-weight:800; color:#1d4ed8; text-decoration:none; }
.center-phone:hover { color:#071b3b; text-decoration:underline; }
.center-phone:focus-visible { outline:3px solid #2563eb; outline-offset:4px; border-radius:4px; }
.center-address { display:flex; align-items:center; gap:12px; margin:8px 0 0; min-height:32px; font-size:15px; line-height:1.5; color:#42536a; }
.center-phone svg,.center-address svg { width:21px; height:21px; flex-shrink:0; }

/* Team groups use the same clear account cards at every screen size. */
.team-account-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:16px; padding:16px; }
.team-account-list .team-record { min-width:0; padding:16px; border:1px solid var(--c-border,#e0e3e7); border-radius:12px; overflow-wrap:anywhere; background:#fff; }
.team-account-list header { display:flex; align-items:flex-start; gap:10px; }
.team-account-list header>div { flex:1; min-width:0; }
.team-account-list h3 { font-size:16px; margin:0; }
.team-account-list header p,.team-account-list .record-note { margin:6px 0; font-size:13px; color:#475569; line-height:1.6; }
.team-account-list .record-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#edf3ff; color:#1758ca; flex-shrink:0; }
.team-account-list .record-icon svg { width:18px; height:18px; }
.team-account-list dl { margin:16px 0; }
.team-account-list dt { font-size:12px; color:#475569; }
.team-account-list dd { margin:4px 0 12px; }
.team-account-list .record-contact { display:block; padding:10px; background:#f0f4fb; border-radius:10px; color:#124ba9; }
.team-account-list .record-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.section-help { margin-bottom:20px; }
.menu-description { display:block; margin-top:5px; font-size:12px; font-weight:400; color:#475569; line-height:1.6; }
.status-guide { margin:16px 0; font-size:14px; line-height:1.6; }
.status-guide summary { cursor:pointer; color:#124ba9; font-weight:600; }
.status-guide dt { font-weight:600; margin-top:12px; }
.status-guide dd { margin:2px 0 10px; color:#475569; }
.case-description-title { font-size:15px; margin:18px 0 8px; }
.case-extra { margin:16px 0; }
.case-extra>summary { cursor:pointer; color:#124ba9; font-size:14px; font-weight:600; line-height:1.6; padding:10px 0; }
.case-extra[open]>summary { margin-bottom:12px; }
.coordinator-flow ol { padding-left:24px; margin:16px 0; }
.coordinator-flow li { padding:8px 0 16px; }
.coordinator-flow li::marker { font-weight:700; color:#1758ca; }
@media(max-width:820px) {
 .hero-showcase.center-showcase { margin:8px auto 0; }
 .center-card figcaption { padding:18px 20px 20px; }
 .center-card h2 { font-size:21px; }
 .center-phone { font-size:20px; }
}
.compact-site-menu { display:none; }
@media (min-width:821px) and (max-width:1100px) {
 .sidebar .brand-sub { display:none; }
 .workspace-content .page-heading { flex-direction:column; align-items:flex-start; gap:16px; }
 .nav-links > a { display:none; }
 .nav-links { gap:12px; }
 .compact-site-menu { display:inline-flex; }
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
