/* =========================================================
   Barangay e-Services Portal — Design system
   Type: Plus Jakarta Sans (UI) · Instrument Serif (display)
   ========================================================= */

:root {
  --accent: #2347F5;
  --accent-600: color-mix(in srgb, var(--accent) 86%, #000);
  --accent-50: color-mix(in srgb, var(--accent) 8%, #fff);
  --accent-100: color-mix(in srgb, var(--accent) 15%, #fff);
  --sun: #FFC83D;
  --ink: #0B1020;
  --ink-2: #353D51;
  --ink-3: #596276;
  --line: #E4E7EF;
  --line-2: #D3D8E3;
  --bg: #F5F6FA;
  --card: #FFFFFF;
  --night: #0B1020;
  --night-2: #141B31;
  --night-line: rgba(255,255,255,.09);

  --ok: #0B7A4B;   --ok-bg: #E2F5EB;
  --warn: #8A5300; --warn-bg: #FFF1D3;
  --bad: #B42318;  --bad-bg: #FDE9E7;
  --info: #1E46C8; --info-bg: #E6EDFF;
  --mute: #4A5263; --mute-bg: #ECEEF3;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(11,16,32,.05), 0 1px 1px rgba(11,16,32,.03);
  --sh-2: 0 1px 2px rgba(11,16,32,.04), 0 8px 24px -8px rgba(11,16,32,.12);
  --sh-3: 0 2px 6px rgba(11,16,32,.06), 0 24px 60px -20px rgba(11,16,32,.28);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.022em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ---------------- Buttons ---------------- */
.btn {
  --b-bg: var(--card); --b-fg: var(--ink); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-weight: 600; font-size: 14.5px; white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  box-shadow: var(--sh-1); text-decoration: none;
}
.btn:hover { color: var(--b-fg); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { --b-bg: var(--accent); --b-fg: #fff; --b-bd: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { --b-bg: var(--accent-600); border-color: transparent; color: #fff; }
.btn-dark { --b-bg: var(--ink); --b-fg: #fff; --b-bd: transparent; }
.btn-dark:hover { --b-bg: #000; color: #fff; border-color: transparent; }
.btn-sun { --b-bg: var(--sun); --b-fg: var(--ink); --b-bd: transparent; }
.btn-sun:hover { --b-bg: #FFBA0F; border-color: transparent; }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; }
.btn-ghost:hover { --b-bg: var(--mute-bg); border-color: transparent; }
.btn-danger { --b-bg: #fff; --b-fg: var(--bad); --b-bd: color-mix(in srgb, var(--bad) 45%, #fff); }
.btn-danger:hover { --b-bg: var(--bad-bg); border-color: var(--bad); }
.btn-glass { --b-bg: rgba(255,255,255,.08); --b-fg: #fff; --b-bd: rgba(255,255,255,.18); box-shadow: none; backdrop-filter: blur(8px); }
.btn-glass:hover { --b-bg: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn-dark { background: transparent; border-color: var(--night-line); color: #C9CFDD; width: 38px; height: 38px; }
.icon-btn-dark:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------------- Badges ---------------- */
.badge {
  --c: var(--mute); --bgc: var(--mute-bg);
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--bgc); color: var(--c);
  font-size: 12.5px; font-weight: 650; white-space: nowrap; letter-spacing: 0;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { --c: var(--ok); --bgc: var(--ok-bg); }
.badge-warn { --c: var(--warn); --bgc: var(--warn-bg); }
.badge-danger { --c: var(--bad); --bgc: var(--bad-bg); }
.badge-info { --c: var(--info); --bgc: var(--info-bg); }
.badge-muted, .badge-neutral { --c: var(--mute); --bgc: var(--mute-bg); }
.badge-soft { background: transparent; border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.badge-success i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }

/* ---------------- Forms ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.label small { font-weight: 500; color: var(--ink-3); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23596276' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #AEB5C4; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.input::placeholder, .textarea::placeholder { color: #8A92A3; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }

/* Choice cards (radio as card) */
.choices { display: grid; gap: 10px; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .2s, background .2s;
}
.choice:hover { border-color: #AEB5C4; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); font-weight: 800; font-size: 13px; }
.choice-txt { display: flex; flex-direction: column; min-width: 0; }
.choice-txt b { font-size: 14.5px; font-weight: 650; }
.choice-txt small { font-size: 12.5px; color: var(--ink-3); }
.choice-dot { margin-left: auto; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: .15s; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.choice:has(input:checked) .choice-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.ic-gcash { background: #E8F0FF; color: #0057E4; }
.ic-maya { background: #E3FBEF; color: #047A43; }
.ic-cash { background: #FFF4D6; color: #8A5300; }
@media (max-width: 420px) { .choices-2 { grid-template-columns: minmax(0, 1fr); } }

/* Dropzone */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 140px; padding: 20px; border-radius: 16px; border: 1.5px dashed #AEB5C4; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-50); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-100); color: var(--accent); }
.drop b { font-size: 14.5px; }
.drop small { color: var(--ink-3); font-size: 12.5px; }
.drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.drop.has-file .drop-ic { background: #fff; color: var(--ok); }
.drop-preview { max-height: 120px; border-radius: 10px; box-shadow: var(--sh-2); }

/* ---------------- Cards & surfaces ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 16px; font-weight: 700; }
.card-body { padding: 20px 22px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-title h2 { font-size: 18px; font-weight: 750; }
.section-title a { font-size: 13.5px; font-weight: 600; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv dt.kv-total { margin-right: -16px; }
.kv-total { border-top: 1px dashed var(--line-2); padding-top: 14px; margin-top: 2px; font-size: 16px; font-weight: 800; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 24px; }
.info-grid div small { display: block; color: var(--ink-3); font-size: 12.5px; margin-bottom: 2px; }
.info-grid div b { font-weight: 650; font-size: 14.5px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.note svg { flex: none; margin-top: 1px; }
.note-info { background: var(--info-bg); color: #19337F; }
.note-warn { background: var(--warn-bg); color: #6B4100; }
.note-bad { background: var(--bad-bg); color: #8C1C13; }
.note-ok { background: var(--ok-bg); color: #075C38; }

/* Avatar & seal & brand */
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.avatar:hover { color: #fff; }
.avatar-dark { background: var(--accent); }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.seal { border-radius: 50%; flex: none; object-fit: cover; }
.seal-mark { display: inline-block; color: var(--accent); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand b { font-size: 15px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-dark, .brand-dark:hover { color: #fff; }
.brand-dark small { color: #9AA3B8; }

/* ---------------- Toasts ---------------- */
.toasts { position: fixed; z-index: 100; top: 16px; right: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 440px; padding: 12px 10px 12px 14px;
  border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--sh-3); font-size: 14px; font-weight: 500;
  animation: toastIn .45s var(--ease) both;
}
.toast-success svg:first-child { color: #5BE3A3; }
.toast-error svg:first-child { color: #FF8A80; }
.toast-info svg:first-child { color: var(--sun); }
.toast-x { margin-left: 6px; background: none; border: 0; color: #9AA3B8; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.toast-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------------- Empty ---------------- */
.empty { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); margin-bottom: 6px; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--ink-3); font-size: 14px; max-width: 340px; margin-bottom: 8px; }

/* =========================================================
   RESIDENT APP
   ========================================================= */
.r-body { background: var(--bg); }
.r-app { min-height: 100vh; display: flex; flex-direction: column; }
.r-top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.r-top-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; min-height: 68px; }
.r-top-title { display: none; flex-direction: column; line-height: 1.2; min-width: 0; }
.r-top-title b { font-size: 16px; font-weight: 750; }
.r-top-title small { font-size: 12.5px; color: var(--ink-3); }
.r-back { border: 0; background: transparent; margin-left: -8px; }
.r-nav { display: flex; gap: 4px; margin-left: auto; }
.r-nav a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.r-nav a:hover { background: var(--bg); color: var(--ink); }
.r-nav a.is-active { background: var(--ink); color: #fff; }
.r-top-actions { display: flex; align-items: center; gap: 10px; }
.r-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 20px 120px; }
.r-tabbar { display: none; }

@media (max-width: 860px) {
  .r-nav { display: none; }
  .r-top-actions { margin-left: auto; }
  .r-top-in { padding: 10px 16px; min-height: 62px; }
  .brand-hide-sm { display: none; }
  .r-back + .brand-hide-sm + .r-top-title { display: flex; }
  .r-top-title { display: flex; }
  .r-main { padding: 20px 16px 120px; }
  .r-tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .r-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--ink-3); font-size: 11px; font-weight: 600; }
  .r-tabbar a.is-active { color: var(--accent); }
  .r-fab { width: 56px; height: 56px; margin: -22px auto 0; border-radius: 18px; background: var(--accent); color: #fff !important; display: grid !important; place-items: center; padding: 0 !important; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 0 5px #fff; }
}
@media (min-width: 861px) { .r-top-title { display: none !important; } .r-back { display: none; } .brand-hide-sm { display: flex; } }

/* Resident home */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hello small { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.hello h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.hello h1 .serif { font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--accent); }
.r-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.r-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 960px) { .r-grid { grid-template-columns: minmax(0, 1fr); } }

.spotlight {
  position: relative; overflow: hidden; display: block; color: #fff; padding: 22px; border-radius: var(--r-xl);
  background: var(--night); box-shadow: var(--sh-3); isolation: isolate;
}
.spotlight:hover { color: #fff; }
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 70%, transparent) 0%, transparent 55%); opacity: .9; }
.spotlight::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to left, #000, transparent 70%); }
.spot-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spot-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #AEB6CC; }
.spotlight h3 { font-size: 22px; font-weight: 750; margin-top: 14px; }
.spot-ref { font-family: var(--mono); font-size: 13px; color: #AEB6CC; margin-top: 4px; }
.spot-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 20px; }
.spot-track span { height: 5px; border-radius: 99px; background: rgba(255,255,255,.16); }
.spot-track span.on { background: var(--sun); }
.spot-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; font-size: 11.5px; color: #AEB6CC; font-weight: 600; }
.spot-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13.5px; color: #D6DBE8; gap: 10px; }
.spot-foot b { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.spotlight .badge { background: rgba(255,255,255,.12); color: #fff; }
.spotlight .badge-success { background: #22C17A; color: #04231A; }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 132px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.svc:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.svc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); margin-bottom: auto; }
.svc b { font-size: 14.5px; font-weight: 700; line-height: 1.3; margin-top: 12px; }
.svc small { color: var(--ink-3); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.svc small i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ink); transition: background .15s; }
.list-item:first-child { border-top: 0; }
a.list-item:hover { background: #FAFBFD; color: var(--ink); }
.list-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); }
.list-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.list-txt b { font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-txt small { font-size: 12.5px; color: var(--ink-3); }
.list-end { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }

.news { padding: 16px 18px; border-top: 1px solid var(--line); }
.news:first-child { border-top: 0; }
.news-tag { display: inline-flex; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; gap: 6px; align-items: center; }
.news-alert .news-tag { color: var(--bad); }
.news-event .news-tag { color: var(--ok); }
.news b { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.news p { font-size: 13.5px; color: var(--ink-2); }
.office { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.office div { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.office svg { color: var(--ink-3); flex: none; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink-3); white-space: nowrap; }
.step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-size: 12px; background: #fff; }
.step.is-done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-on { color: var(--ink); }
.step.is-on span { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-100); }
.step-line { flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 16px; }
.step-line.is-done { background: var(--ok); }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.flow-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.flow-form { display: flex; flex-direction: column; gap: 20px; }
.sticky-cta { display: none; }
@media (max-width: 960px) {
  .flow-aside .desk-cta { display: none; }
  .sticky-cta { display: flex; align-items: center; gap: 14px; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .sticky-cta .btn { flex: 1; }
  .sticky-cta div small { display: block; font-size: 12px; color: var(--ink-3); }
  .sticky-cta div b { font-size: 18px; font-weight: 800; }
  .r-body.has-sticky .r-tabbar { display: none; }
  .r-body.has-sticky .r-main { padding-bottom: 110px; }
}
.svc-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .svc-pick { grid-template-columns: minmax(0, 1fr); } }

.pay-box { border-radius: 16px; padding: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.pay-box small { color: var(--ink-3); font-size: 12.5px; }
.pay-box b { font-size: 18px; font-weight: 800; letter-spacing: 0; }
.copy-btn { grid-row: span 2; }

/* Track */
.track-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 640px) { .track-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
.qr-frame { position: relative; width: 196px; height: 196px; padding: 14px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); display: grid; place-items: center; }
.qr-frame [data-qr], .qr-frame svg { display: block; width: 168px; height: 168px; }
.qr-frame::before, .qr-frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--accent); }
.qr-frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.qr-frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.qr-dim { opacity: .18; filter: blur(2px); }
.qr-lock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 12.5px; font-weight: 650; color: var(--ink-2); padding: 20px; }
.ref-big { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .02em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.is-done::before { background: var(--ok); }
.tl-dot { position: relative; z-index: 1; width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: #fff; }
.is-done .tl-dot { background: var(--ok); border-color: var(--ok); }
.is-now .tl-dot { border-color: var(--accent); background: #fff; }
.is-now .tl-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.is-bad .tl-dot { background: var(--bad); border-color: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tl-txt b { display: block; font-size: 14.5px; font-weight: 650; }
.tl-txt small { color: var(--ink-3); font-size: 12.5px; }
.timeline li:not(.is-done):not(.is-now):not(.is-bad) .tl-txt b { color: var(--ink-3); font-weight: 550; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.chip:hover { color: var(--ink); border-color: #AEB5C4; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip em { font-style: normal; font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--mute-bg); color: var(--ink-2); display: inline-grid; place-items: center; }
.chip.is-on em { background: rgba(255,255,255,.18); color: #fff; }

/* =========================================================
   AUTH
   ========================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.auth-art { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.auth-art::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(50% 45% at 80% 15%, color-mix(in srgb, var(--accent) 75%, transparent), transparent 70%), radial-gradient(35% 35% at 10% 95%, rgba(255,200,61,.22), transparent 70%); }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); }
.auth-art h2 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.035em; max-width: 520px; }
.auth-art h2 .serif { font-style: italic; font-weight: 400; color: var(--sun); font-size: 1.1em; }
.auth-art p { color: #B8C0D4; font-size: 16px; max-width: 440px; margin-top: 16px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.auth-points div { display: flex; gap: 12px; align-items: center; color: #DCE1EC; font-size: 14.5px; }
.auth-points span { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; color: var(--sun); flex: none; }
.auth-foot { font-size: 12.5px; color: #8790A6; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-box-wide { max-width: 560px; }
.auth-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.auth-box > p { color: var(--ink-3); margin-top: -8px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--ink-3); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--ink-3); }
.auth-tabs a.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 44px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: var(--bg); }
.auth-mobile-brand { display: none; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-mobile-brand { display: flex; margin-bottom: 8px; }
}

/* =========================================================
   STAFF PORTAL
   ========================================================= */
.s-body { background: var(--bg); }
.s-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.s-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--night); color: #C9CFDD; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.s-side .brand { padding: 4px 8px; }
.s-nav { display: flex; flex-direction: column; gap: 2px; }
.s-nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 11px; color: #B4BCCF; font-size: 14.5px; font-weight: 550; transition: background .15s, color .15s; }
.s-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.s-nav a.is-active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.s-nav a.is-active svg { color: var(--sun); }
.s-nav em { margin-left: auto; font-style: normal; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.s-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); }
.s-me-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.s-me-txt b { color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-me-txt small { font-size: 12px; color: #8F98AE; }
.s-me form { margin: 0; }
.s-main { min-width: 0; display: flex; flex-direction: column; }
.s-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 32px; background: rgba(245,246,250,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.s-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.s-search { position: relative; margin-left: auto; display: flex; align-items: center; width: min(360px, 100%); }
.s-search svg { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.s-search input { width: 100%; height: 44px; padding: 0 44px 0 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; }
.s-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.s-search kbd { position: absolute; right: 10px; font: 600 11px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; background: var(--bg); }
.s-top-actions { display: flex; gap: 10px; }
.s-top-actions:empty { display: none; }
.s-content { padding: 28px 32px 60px; display: flex; flex-direction: column; gap: 24px; max-width: 1440px; width: 100%; }
.s-menu { display: none; }
.s-scrim { display: none; }
@media (max-width: 1080px) {
  .s-app { grid-template-columns: minmax(0, 1fr); }
  .s-side { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .s-app.nav-open .s-side { transform: none; box-shadow: var(--sh-3); }
  .s-app.nav-open .s-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(11,16,32,.45); }
  .s-menu { display: inline-grid; }
  .s-top { padding: 12px 16px; gap: 10px; }
  .s-title { font-size: 19px; }
  .s-search { order: 5; width: 100%; margin-left: 0; }
  .s-search kbd { display: none; }
  .s-content { padding: 20px 16px 48px; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
a.stat:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-2); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); }
.stat b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--ink-3); }
.stat-hero { background: var(--night); color: #fff; border-color: transparent; }
.stat-hero .stat-top, .stat-hero small { color: #AEB6CC; }
.stat-hero .stat-ic { background: rgba(255,255,255,.1); color: var(--sun); }
a.stat-hero:hover { color: #fff; }
.stat-warn .stat-ic { background: var(--warn-bg); color: var(--warn); }
.stat-ok .stat-ic { background: var(--ok-bg); color: var(--ok); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1200px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 8px; height: 180px; padding-top: 10px; }
.bar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar span { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--accent) 22%, #fff); min-height: 4px; transition: background .2s; }
.bar.is-today span { background: var(--accent); }
.bar:hover span { background: var(--accent); }
.bar small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.bar b { position: absolute; top: -4px; font-size: 11px; font-weight: 700; opacity: 0; transition: opacity .2s; transform: translateY(-100%); background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 6px; }
.bar:hover b { opacity: 1; }
.split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg); gap: 2px; }
.split span { height: 100%; }
.legend { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 13.5px; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 12px 18px; background: #FAFBFD; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FAFBFD; }
.table .who { display: flex; align-items: center; gap: 12px; }
.table .who .avatar { width: 34px; height: 34px; font-size: 12px; background: var(--accent-100); color: var(--accent); }
.table .who b { display: block; font-weight: 650; }
.table .who small { color: var(--ink-3); font-size: 12.5px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .mono { white-space: nowrap; }
.table-compact { min-width: 660px; }
.table-compact th, .table-compact td { padding-left: 14px; padding-right: 14px; }
.row-link { position: relative; }
.row-link a.stretch::after { content: ""; position: absolute; inset: 0; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.pager { display: flex; gap: 6px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .filters { margin: 0; padding: 0; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1200px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.detail-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.detail-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.detail-head .avatar { background: var(--accent-100); color: var(--accent); }
.detail-head h2 { font-size: 22px; font-weight: 800; }
.detail-head p { color: var(--ink-3); font-size: 13.5px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; }
.id-view { display: grid; place-items: center; min-height: 240px; border-radius: 14px; background: repeating-conic-gradient(#F1F3F7 0% 25%, #fff 0% 50%) 50% / 20px 20px; border: 1px solid var(--line); overflow: hidden; }
.id-view img { max-height: 420px; width: auto; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions form { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.act-sep { height: 1px; background: var(--line); margin: 6px 0; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 13.5px; align-items: baseline; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log li i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.log small { color: var(--ink-3); white-space: nowrap; font-size: 12.5px; }
.log em { display: block; font-style: normal; color: var(--ink-3); font-size: 12.5px; }

.svc-table input.input { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

.scan-box { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--night); display: grid; place-items: center; color: #AEB6CC; text-align: center; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box::after { content: ""; position: absolute; inset: 18%; border: 3px solid var(--sun); border-radius: 18px; box-shadow: 0 0 0 999px rgba(11,16,32,.35); pointer-events: none; }

/* =========================================================
   PUBLIC SITE (landing, verify)
   ========================================================= */
.site { background: #fff; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.site-nav .wrap { display: flex; align-items: center; gap: 24px; height: 84px; }
.site-nav .links { display: flex; gap: 28px; margin-left: auto; }
.site-nav .links a { color: #C3CADA; font-size: 14.5px; font-weight: 550; }
.site-nav .links a:hover { color: #fff; }
.site-nav .cta { display: flex; gap: 10px; }
@media (max-width: 900px) { .site-nav .links { display: none; } .site-nav .cta { margin-left: auto; } }
@media (max-width: 520px) { .site-nav .cta .btn-glass { display: none; } }

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; padding: 150px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(48% 55% at 78% 30%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%), radial-gradient(30% 35% at 8% 85%, rgba(255,200,61,.16), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 80%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 120px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; color: #DCE1EC; }
.eyebrow b { background: var(--sun); color: var(--ink); border-radius: 99px; padding: 3px 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin-top: 22px; }
.hero h1 .serif { font-style: italic; font-weight: 400; color: var(--sun); letter-spacing: -.02em; font-size: 1.08em; }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: #B8C0D4; max-width: 560px; margin-top: 22px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; color: #AEB6CC; font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: #5BE3A3; }

.stage { position: relative; height: 620px; }
@media (max-width: 960px) { .stage { height: 560px; margin-top: 10px; } }
.phone {
  position: absolute; left: 50%; bottom: -60px; transform: translateX(-62%) rotate(-3deg); width: 300px; height: 620px;
  border-radius: 46px; padding: 12px; background: #1B2238; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -20px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.05);
}
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; }
.phone-notch { width: 96px; height: 26px; border-radius: 99px; background: #000; margin: 10px auto 0; flex: none; }
.ph-head { padding: 14px 18px 10px; display: flex; align-items: center; gap: 10px; }
.ph-head b { font-size: 13px; }
.ph-head small { display: block; font-size: 10.5px; color: var(--ink-3); }
.ph-body { padding: 4px 14px; display: flex; flex-direction: column; gap: 10px; }
.ph-card { border-radius: 18px; padding: 14px; background: var(--night); color: #fff; position: relative; overflow: hidden; }
.ph-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(100% 80% at 100% 0%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%); }
.ph-card > * { position: relative; }
.ph-card small { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #AEB6CC; font-weight: 700; }
.ph-card b { display: block; font-size: 15px; margin: 6px 0 2px; }
.ph-card .ph-ref { font: 500 10.5px var(--mono); color: #AEB6CC; }
.ph-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; }
.ph-bars i { height: 4px; border-radius: 4px; background: var(--sun); }
.ph-bars i:last-child { background: rgba(255,255,255,.18); }
.ph-svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-svc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; font-size: 11px; font-weight: 700; display: flex; flex-direction: column; gap: 14px; }
.ph-svc span { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; }
.ph-svc small { display: block; color: var(--ink-3); font-weight: 500; font-size: 10px; }
.ph-qr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; font-size: 11px; }
.ph-qr i { width: 46px; height: 46px; flex: none; border-radius: 6px; background:
  conic-gradient(from 90deg at 30% 30%, var(--ink) 25%, transparent 0) 0 0 / 12px 12px,
  repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px); opacity: .9; }
.ph-qr b { display: block; font-size: 11.5px; }

.floater { position: absolute; z-index: 2; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: var(--sh-3); display: flex; align-items: center; gap: 12px; font-size: 13px; animation: float 6s ease-in-out infinite; }
.floater b { display: block; font-size: 13.5px; }
.floater small { color: var(--ink-3); font-size: 12px; }
.floater-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.f1 { top: 70px; right: 0; }
.f1 .floater-ic { background: var(--ok-bg); color: var(--ok); }
.f2 { bottom: 140px; left: 0; animation-delay: -3s; }
.f2 .floater-ic { background: #E8F0FF; color: #0057E4; }
.f3 { bottom: 40px; right: 10px; animation-delay: -1.5s; }
.f3 .floater-ic { background: var(--warn-bg); color: var(--warn); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .f1 { right: -6px; top: 30px; } .f2 { left: -6px; } .f3 { display: none; } .phone { transform: translateX(-50%) rotate(-2deg); width: 270px; height: 560px; } }

.band { padding: 110px 0; }
.band-tint { background: var(--bg); }
.band-head { max-width: 720px; margin-bottom: 56px; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.band-head h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.04em; margin-top: 14px; }
.band-head h2 .serif { font-style: italic; font-weight: 400; color: var(--accent); }
.band-head p { font-size: 17px; color: var(--ink-3); margin-top: 16px; line-height: 1.6; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { grid-column: span 2; position: relative; overflow: hidden; border-radius: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.tile-wide { grid-column: span 3; }
.tile-dark { background: var(--night); color: #fff; border-color: transparent; }
.tile-dark p { color: #B8C0D4 !important; }
.tile-accent { background: var(--accent); color: #fff; border-color: transparent; }
.tile-accent p { color: rgba(255,255,255,.82) !important; }
.tile-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); margin-bottom: auto; }
.tile-dark .tile-ic, .tile-accent .tile-ic { background: rgba(255,255,255,.1); color: var(--sun); }
.tile h3 { font-size: 20px; font-weight: 750; margin-top: 18px; }
.tile p { color: var(--ink-3); font-size: 15px; line-height: 1.55; }
@media (max-width: 960px) { .tile, .tile-wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile, .tile-wide { grid-column: auto; min-height: 0; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.stp { position: relative; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.stp::before { counter-increment: s; content: "0" counter(s); font: 400 44px/1 var(--serif); font-style: italic; color: var(--accent); }
.stp h3 { font-size: 18px; font-weight: 750; margin-top: 18px; }
.stp p { color: var(--ink-3); font-size: 14.5px; margin-top: 8px; }

.preview { position: relative; border-radius: 26px; padding: 14px; background: var(--night); box-shadow: var(--sh-3); }
.preview-bar { display: flex; gap: 7px; padding: 6px 8px 14px; }
.preview-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.preview-in { border-radius: 16px; overflow: hidden; background: var(--bg); display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 420px; }
.pv-side { background: #11182C; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.pv-side span { height: 34px; border-radius: 9px; display: flex; align-items: center; padding: 0 12px; gap: 10px; font-size: 12.5px; color: #9AA3B8; font-weight: 550; }
.pv-side span.on { background: rgba(255,255,255,.1); color: #fff; }
.pv-side span.on svg { color: var(--sun); }
.pv-main { padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pv-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pv-stat b { display: block; font-size: 22px; color: var(--ink); font-weight: 800; margin-top: 4px; }
.pv-stat.dark { background: var(--night); border-color: transparent; color: #AEB6CC; }
.pv-stat.dark b { color: #fff; }
.pv-table { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pv-row { display: grid; grid-template-columns: 1.2fr 1.5fr 1.4fr .9fr; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 12px; align-items: center; }
.pv-row:first-child { border-top: 0; background: #FAFBFD; color: var(--ink-3); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.pv-row .badge { height: 22px; font-size: 11px; padding: 0 8px; }
@media (max-width: 760px) { .preview-in { grid-template-columns: minmax(0, 1fr); } .pv-side { display: none; } .pv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-row { grid-template-columns: 1fr 1fr; } .pv-row > :nth-child(2), .pv-row > :nth-child(3) { display: none; } }

.split-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .split-feature { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.ticks li span { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }

.verify-band { background: var(--night); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.verify-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.verify-band h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.verify-band p { color: #B8C0D4; font-size: 16.5px; margin-top: 14px; }
.verify-form { display: flex; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 8px; }
.verify-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 0 12px; font-size: 15px; }
.verify-form input::placeholder { color: #8790A6; }
.verify-form input:focus { outline: none; }
@media (max-width: 860px) { .verify-band { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; } }

.final { text-align: center; padding: 120px 0; }
.final h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.045em; max-width: 840px; margin: 0 auto; }
.final h2 .serif { font-style: italic; font-weight: 400; color: var(--accent); }
.final p { color: var(--ink-3); font-size: 17px; margin: 18px auto 0; max-width: 560px; }
.final .hero-cta { justify-content: center; }

.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13.5px; color: var(--ink-3); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: var(--ink-2); font-weight: 550; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .floater { animation: none; } * { scroll-behavior: auto !important; } }

/* Verify page */
.verify-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
.vcard { width: 100%; max-width: 520px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; }
.vcard-top { padding: 32px 28px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vcard-ok { background: var(--ok-bg); }
.vcard-bad { background: var(--bad-bg); }
.vcard-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.vcard-ok .vcard-mark { background: var(--ok); box-shadow: 0 0 0 8px rgba(11,122,75,.14); }
.vcard-bad .vcard-mark { background: var(--bad); box-shadow: 0 0 0 8px rgba(180,35,24,.14); }
.vcard-top h1 { font-size: 22px; font-weight: 800; }
.vcard-body { padding: 24px 28px 28px; }

/* =========================================================
   CERTIFICATE (print)
   ========================================================= */
.cert-body { background: #E9ECF2; }
.cert-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; justify-content: center; padding: 14px; background: rgba(233,236,242,.9); backdrop-filter: blur(10px); flex-wrap: wrap; }
.cert { width: 210mm; min-height: 297mm; margin: 10px auto 40px; background: #fff; box-shadow: var(--sh-3); padding: 18mm 20mm; position: relative; color: #111; font-size: 12pt; display: flex; flex-direction: column; overflow: hidden; }
.cert::before { content: ""; position: absolute; inset: 8mm; border: 1.5px solid #1F2A44; outline: 4px double #C8A13A; outline-offset: 3mm; pointer-events: none; }
.cert-head { display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; align-items: center; text-align: center; gap: 10px; }
.cert-head .seal, .cert-head .seal-mark svg { width: 78px; height: 78px; }
.cert-head p { font-size: 10.5pt; line-height: 1.35; }
.cert-head h2 { font-size: 15pt; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin-top: 2px; }
.cert-office { text-align: center; margin-top: 10mm; font-size: 11pt; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; color: #1F2A44; }
.cert-title { text-align: center; font-family: var(--serif); font-size: 34pt; margin: 6mm 0 10mm; letter-spacing: .01em; color: #0B1020; }
.cert-text { font-family: Georgia, "Times New Roman", serif; line-height: 1.9; text-align: justify; font-size: 12.5pt; }
.cert-text p + p { margin-top: 5mm; }
.cert-text .ind { text-indent: 12mm; }
.cert-text b { text-transform: uppercase; }
.cert-sign { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 20mm; padding-top: 16mm; }
.cert-sig { text-align: center; }
.cert-sig .line { border-top: 1px solid #111; padding-top: 2mm; font-weight: 800; text-transform: uppercase; font-size: 11.5pt; }
.cert-sig small { font-size: 10pt; color: #333; }
.cert-qr { display: flex; gap: 4mm; align-items: center; font-size: 8.5pt; color: #333; line-height: 1.45; }
.cert-qr [data-qr], .cert-qr svg { display: block; flex: none; width: 26mm; height: 26mm; }
.cert-meta { margin-top: 6mm; font-size: 9pt; color: #444; display: flex; justify-content: space-between; gap: 6mm; flex-wrap: wrap; border-top: 1px dashed #999; padding-top: 3mm; }
.cert-watermark { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); opacity: .05; pointer-events: none; }
.cert-watermark svg, .cert-watermark img { width: 120mm; height: 120mm; }
@media (max-width: 860px) { .cert { width: 100%; min-height: 0; padding: 24px 22px; } .cert::before { inset: 8px; outline-offset: 4px; } .cert-head { grid-template-columns: 56px minmax(0, 1fr) 56px; } .cert-head .seal, .cert-head .seal-mark svg { width: 54px; height: 54px; } .cert-title { font-size: 26pt; } .cert-sign { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  .cert-bar, .toasts { display: none !important; }
  .cert { margin: 0; box-shadow: none; width: 210mm; min-height: 297mm; padding: 18mm 20mm; }
  .cert::before { inset: 8mm; outline-offset: 3mm; }
  .cert-head { grid-template-columns: 80px minmax(0, 1fr) 80px; }
  .cert-sign { grid-template-columns: 1fr 1fr; }
}

/* Install */
.install { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
.install .card { width: 100%; max-width: 640px; }
