/* =============================================================================
   iVisit — stylesheet
   Palette derived from the brochure; mono logo sits on ink.
   ============================================================================= */

:root {
  --ink:      #15103a;
  --ink-2:    #1d1750;
  --indigo:   #2e2a8c;
  --blue:     #3b49c4;
  --blue-600: #313fae;
  --teal:     #34b7c3;
  --teal-700: #1f8a94;
  --mist:     #eaf4f6;
  --paper:    #f7f8fb;
  --line:     #e4e7f1;
  --line-2:   #d3d8ea;
  --text:     #211d3d;
  --muted:    #6a6d86;
  --muted-2:  #9498ad;
  --white:    #ffffff;
  --ok:       #16a085;
  --warn:     #c0392b;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(21,16,58,.06), 0 2px 8px rgba(21,16,58,.05);
  --shadow:    0 8px 30px rgba(21,16,58,.10);
  --shadow-lg: 0 24px 70px rgba(21,16,58,.20);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.mono { font-family: var(--font-mono); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-700); font-weight: 600;
}
.hidden { display: none !important; }

/* ---- Buttons ---------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(59,73,196,.28); }
.btn-primary:hover { background: var(--blue-600); }
.btn-teal { background: var(--teal); color: #06363a; }
.btn-teal:hover { background: var(--teal-700); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.2); }

/* =============================================================================
   CORPORATE SITE
   ============================================================================= */

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,251,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); display: grid; place-items: center; flex: 0 0 auto;
}
.brand-mark img { width: 27px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand-name b { color: var(--blue); }
/* Real iVisit wordmark logo */
.brand-logo { height: 34px; width: auto; display: block; }
.brand-logo.foot-logo { height: 38px; margin-bottom: 4px; }
.brand-logo.auth-logo { height: 46px; margin: 0 auto; }
.brand-logo.rail-logo { height: 32px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 9px 15px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--mist); }
.nav a.active { color: var(--blue); background: #fff; box-shadow: var(--shadow-sm); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 460px at 78% -10%, rgba(52,183,195,.34), transparent 60%),
    radial-gradient(900px 520px at 6% 110%, rgba(59,73,196,.5), transparent 55%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding: 86px 28px 96px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 .grad { background: linear-gradient(96deg, var(--teal), #8ad6dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #c5c8e8; max-width: 30em; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta .m { font-family: var(--font-mono); font-size: 12.5px; color: #9fa3cf; letter-spacing: .04em; }
.hero-meta .m b { display: block; font-family: var(--font-display); font-size: 24px; color: #fff; letter-spacing: -.02em; margin-bottom: 2px; }

/* Hero credential card — the signature element */
.cred {
  position: relative; background: linear-gradient(168deg, #fff, #f2f5ff);
  border-radius: var(--r-xl); padding: 26px; color: var(--text);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
}
.cred-top { display: flex; align-items: center; justify-content: space-between; }
.cred-chip { display: flex; align-items: center; gap: 9px; }
.cred-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22,160,133,.16); }
.cred-chip span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); font-weight: 600; }
.cred-no { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.cred-body { display: flex; gap: 18px; align-items: center; margin: 22px 0 18px; }
.cred-avatar {
  width: 78px; height: 78px; border-radius: 18px; flex: 0 0 auto;
  background: linear-gradient(150deg, var(--indigo), var(--teal)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 28px;
}
.cred-who h3 { font-size: 21px; }
.cred-who p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.cred-grid .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.cred-grid .v { font-size: 14.5px; font-weight: 600; margin-top: 1px; }
.cred-qr { position: absolute; right: 26px; bottom: 26px; width: 56px; height: 56px; border-radius: 10px; padding: 5px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cred-qr i { display: block; width: 100%; height: 100%;
  background-image:
    linear-gradient(90deg, #15103a 0 100%), linear-gradient(90deg, #15103a 0 100%),
    linear-gradient(90deg, #15103a 0 100%), linear-gradient(90deg, #15103a 0 100%);
  background-repeat: no-repeat;
  background-size: 16px 16px, 16px 16px, 16px 16px, 8px 8px;
  background-position: 0 0, 100% 0, 0 100%, 60% 55%;
  position: relative;
}
.cred-qr i::before, .cred-qr i::after { content: ''; position: absolute; background: #fff; }
.cred-qr i::before { width: 8px; height: 8px; top: 4px; left: 4px; box-shadow: 30px 0 0 #fff, 0 30px 0 #fff; }
.cred-qr i::after {
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(#15103a 30%, transparent 32%);
  background-size: 6px 6px; background-position: 2px 24px; opacity: .55;
  -webkit-mask: linear-gradient(#000 0 100%); mask: linear-gradient(#000 0 100%);
}

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap { display: flex; align-items: center; gap: 30px; padding: 20px 28px; flex-wrap: wrap; }
.trust .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.trust ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.trust li { font-weight: 600; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.trust li svg { color: var(--teal); }

/* Generic section */
.section { padding: 92px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section.ink { background: var(--ink); color: #fff; }
.sec-head { max-width: 720px; margin-bottom: 50px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 14px 0 0; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.section.ink .sec-head p { color: #b9bce0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); font-size: 16.5px; margin: 0 0 16px; }
.about-grid .lead-p { color: var(--text); font-size: 19px; font-weight: 500; }
.pillars { display: grid; gap: 16px; }
.pillar { display: flex; gap: 16px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.pillar .pic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--mist); color: var(--teal-700); display: grid; place-items: center; }
.pillar h4 { font-size: 16.5px; }
.pillar p { margin: 5px 0 0; font-size: 14.5px; color: var(--muted); }

/* Events / Visitors feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-row.flip .visual { order: -1; }
.feature-copy h3 { font-size: clamp(24px, 3vw, 34px); }
.feature-copy > p { color: var(--muted); font-size: 17px; margin: 16px 0 24px; }
.section.ink .feature-copy > p { color: #b9bce0; }
.checklist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checklist li svg { flex: 0 0 auto; margin-top: 2px; color: var(--teal); }
.section.ink .checklist li svg { color: var(--teal); }

/* Visual: visitor journey rail (signature connector) */
.journey { background: linear-gradient(160deg, #fff, #eef1ff); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow); }
.section.ink .journey { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.journey-step { display: flex; gap: 18px; align-items: flex-start; position: relative; padding-bottom: 26px; }
.journey-step:last-child { padding-bottom: 0; }
.journey-step .node {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; z-index: 1;
  background: #fff; border: 2px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
}
.section.ink .journey-step .node { background: var(--ink); }
.journey-step:not(:last-child)::before {
  content: ''; position: absolute; left: 20px; top: 42px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(var(--teal) 0 6px, transparent 6px 12px);
}
.journey-step h5 { font-family: var(--font-display); font-size: 16px; margin: 6px 0 2px; }
.journey-step p { margin: 0; font-size: 14px; color: var(--muted); }
.section.ink .journey-step h5 { color: #fff; }
.section.ink .journey-step p { color: #b9bce0; }

/* Events stat cards */
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.section.ink .event-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.event-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--teal-700); display: grid; place-items: center; margin-bottom: 14px; }
.event-card h4 { font-size: 17px; }
.event-card p { margin: 7px 0 0; color: var(--muted); font-size: 14.5px; }
.section.ink .event-card p { color: #b9bce0; }

/* Audience grid */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .18s, box-shadow .2s; }
.aud:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.aud .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 13px; }
.aud h4 { font-size: 16px; }
.aud p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--indigo), var(--blue)); color: #fff; border-radius: var(--r-xl); padding: 56px; text-align: center; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 120%, rgba(52,183,195,.4), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); }
.cta-band p { color: #d4d7f5; font-size: 18px; max-width: 34em; margin: 16px auto 30px; }
.cta-band .hero-cta { justify-content: center; }

/* Contact section */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-intro h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 10px 0 16px; }
.contact-intro p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; }
.contact-list li svg { color: var(--teal-700); flex: 0 0 auto; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-lg); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.contact-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-field input, .contact-field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 15px; font-family: var(--font-body); background: var(--paper); transition: border .15s, box-shadow .15s; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,73,196,.1); background: #fff; }
.contact-submit { width: 100%; justify-content: center; padding: 14px; font-size: 15px; margin-top: 4px; }
.contact-done { text-align: center; padding: 30px 10px; }
.contact-done svg { color: var(--teal); }
.contact-done h3 { font-size: 22px; margin: 14px 0 8px; }
.contact-done p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-row { grid-template-columns: 1fr; }
}

/* Footer */
.site-foot { background: var(--ink); color: #c7cae6; padding: 64px 0 30px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand p { margin: 16px 0 0; font-size: 14.5px; color: #9b9fca; max-width: 26em; }
.foot-col h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: .04em; color: #fff; text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; padding: 6px 0; font-size: 14.5px; color: #b6b9e0; }
.foot-col a:hover { color: #fff; }
.foot-contact div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 6px 0; }
.foot-contact svg { color: var(--teal); flex: 0 0 auto; margin-top: 2px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #888cba; flex-wrap: wrap; gap: 12px; }

/* =============================================================================
   SECURED AREA — login + dashboard shell
   ============================================================================= */

.auth-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(52,183,195,.16), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(59,73,196,.14), transparent 60%),
    var(--ink);
}
.auth-card {
  width: 100%; max-width: 430px; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 40px; position: relative;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 8px; text-align: center; }
.auth-brand .brand-mark { width: 56px; height: 56px; border-radius: 16px; }
.auth-brand .brand-mark img { width: 40px; }
.auth-card h1 { font-size: 25px; text-align: center; margin-top: 18px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14.5px; margin: 8px 0 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.field .input-wrap { position: relative; }
.field input {
  width: 100%; padding: 13px 15px 13px 44px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  font-size: 15px; font-family: var(--font-body); transition: border .15s, box-shadow .15s; background: var(--paper);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,73,196,.12); background: #fff; }
.field .ic-left { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.field .toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted-2); padding: 6px; border-radius: 8px; }
.field .toggle-pw:hover { color: var(--text); background: var(--mist); }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px; }
.auth-row label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.auth-row a { font-size: 13.5px; color: var(--blue); font-weight: 600; }
.auth-card .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15.5px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted-2); }
.auth-foot a { color: var(--blue); font-weight: 600; }

/* Demo / live mode toggle on login panel */
.mode-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 20px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--paper); transition: border-color .2s, background .2s;
}
.mode-toggle.on { border-color: var(--teal); background: #e9f8f9; }
.mode-toggle-info { display: flex; align-items: center; gap: 11px; }
.mode-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(59,73,196,.14); transition: background .2s, box-shadow .2s; flex: 0 0 auto; }
.mode-toggle.on .mode-dot { background: var(--teal-700); box-shadow: 0 0 0 4px rgba(52,183,195,.18); }
.mode-title { font-weight: 700; font-size: 13.5px; font-family: var(--font-display); }
.mode-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.switch {
  width: 46px; height: 26px; border-radius: 999px; border: none; background: var(--line-2);
  position: relative; flex: 0 0 auto; cursor: pointer; transition: background .2s; padding: 0;
}
.switch[aria-checked="true"] { background: var(--teal); }
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s;
}
.switch[aria-checked="true"] .switch-knob { transform: translateX(20px); }

/* Auth switch link (login <-> register) */
.auth-switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 600; }

/* Registration wizard */
.reg-card {
  width: 100%; max-width: 560px; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 40px; position: relative;
}
.reg-card h1 { font-size: 23px; text-align: center; margin-top: 16px; }
.reg-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 24px; }
.reg-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.reg-step { display: flex; align-items: center; gap: 9px; opacity: .5; transition: opacity .2s; }
.reg-step.active, .reg-step.done { opacity: 1; }
.reg-step-no {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: var(--muted); font-size: 13px; font-weight: 700; font-family: var(--font-display);
}
.reg-step.active .reg-step-no { background: var(--blue); color: #fff; }
.reg-step.done .reg-step-no { background: var(--teal); color: #fff; }
.reg-step-lbl { font-size: 13px; font-weight: 600; color: var(--text); }
.reg-step-bar { width: 28px; height: 2px; background: var(--line); border-radius: 2px; }
.reg-next, .reg-card .btn { width: 100%; justify-content: center; }
.reg-actions { display: flex; gap: 12px; margin-top: 8px; }
.reg-actions .btn { flex: 1; }

/* Lookup dropdown for registry search */
.lookup {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; padding: 6px;
}
.lookup-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  padding: 10px 12px; border: none; background: none; border-radius: 9px; cursor: pointer;
}
.lookup-item:hover { background: var(--mist); }
.lookup-name { font-weight: 600; font-size: 14px; color: var(--text); }
.lookup-meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* Account-creation progress */
.reg-progress { display: grid; gap: 12px; margin: 10px 0 18px; }
.reg-prog-row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.reg-prog-row.muted { color: var(--muted-2); opacity: .65; }
.reg-prog-row.ok { border-color: #bfe9dd; background: #effaf6; }
.reg-prog-row.fail { border-color: #f5c6bf; background: #fdecea; color: #a13226; }
.reg-prog-ic { width: 22px; display: grid; place-items: center; color: var(--teal-700); flex: 0 0 auto; }
.reg-prog-row.fail .reg-prog-ic { color: var(--warn); }
.spinner.small { width: 15px; height: 15px; border-width: 2px; border-color: var(--line-2); border-top-color: var(--blue); }

@media (max-width: 560px) { .reg-card { padding: 28px 22px; } .reg-step-lbl { display: none; } }
.auth-back { position: absolute; top: 22px; left: 22px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.auth-back:hover { color: var(--blue); }

.alert { border-radius: var(--r); padding: 13px 15px; font-size: 14px; margin-bottom: 20px; display: flex; gap: 11px; align-items: flex-start; }
.alert svg { flex: 0 0 auto; margin-top: 1px; }
.alert-error { background: #fdecea; color: #a13226; border: 1px solid #f5c6bf; }
.alert-warn  { background: #fff6e6; color: #8a5a00; border: 1px solid #ffe2ad; }
.alert b { font-weight: 700; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Not-authorized full screen */
.gate { max-width: 480px; text-align: center; }
.gate .gate-ic { width: 72px; height: 72px; border-radius: 20px; background: #fdecea; color: var(--warn); display: grid; place-items: center; margin: 0 auto 22px; }
.gate h1 { font-size: 24px; }
.gate p { color: var(--muted); font-size: 15.5px; margin: 14px 0 8px; }
.gate .who { font-family: var(--font-mono); font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 18px 0 26px; color: var(--text); }
.gate .who b { color: var(--blue); }

/* ---- Dashboard shell -------------------------------------------------------*/
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--paper); }
.rail { background: var(--ink); color: #c9cce8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.rail-brand { display: flex; align-items: center; gap: 11px; padding: 22px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rail-brand .brand-mark { width: 36px; height: 36px; }
.rail-brand .brand-name { color: #fff; font-size: 19px; }
.rail-ent { padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rail-ent .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7d81b0; }
.rail-ent .name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 15px; margin-top: 4px; }
.rail-ent .code { font-family: var(--font-mono); font-size: 11px; color: #7d81b0; margin-top: 3px; }

/* Entity switcher combo (sidebar) */
.ent-combo { position: relative; margin-top: 6px; }
.ent-combo-btn { width: 100%; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 9px 12px; cursor: pointer; text-align: left; transition: background .15s, border .15s; }
.ent-combo-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.ent-combo-name { flex: 1; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-combo-caret { color: #9498c4; font-size: 11px; }
.ent-combo-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; max-height: 280px; overflow-y: auto; }
.ent-combo-item { width: 100%; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; background: none; border: none; border-radius: 8px; padding: 9px 11px; cursor: pointer; text-align: left; }
.ent-combo-item:hover { background: var(--paper); }
.ent-combo-item.on { background: #eaf0ff; }
.ent-combo-item > span:first-child { font-weight: 600; font-size: 13.5px; color: var(--text); }
.ent-combo-code { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }
.rail-nav { padding: 14px 14px; flex: 1; overflow-y: auto; }
.rail-nav .group-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6b6f9c; padding: 14px 10px 8px; }
.rail-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px;
  color: #c1c4e6; font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background .14s, color .14s; width: 100%; border: none; background: none; text-align: left;
}
.rail-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail-link.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(59,73,196,.4); }
.rail-link .ic { width: 20px; display: grid; place-items: center; flex: 0 0 auto; }
.rail-link .mod-code { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.4); }
.rail-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.rail-user { display: flex; align-items: center; gap: 11px; padding: 8px 10px; }
.rail-user .av { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(150deg, var(--indigo), var(--teal)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.rail-user .nm { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.2; }
.rail-user .em { font-size: 11.5px; color: #8488b8; font-family: var(--font-mono); }
.rail-logout { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.06); color: #c1c4e6; border: none; font-weight: 600; font-size: 13.5px; }
.rail-logout:hover { background: var(--warn); color: #fff; }

/* Main panel */
.panel { display: flex; flex-direction: column; min-width: 0; }
.panel-top { display: flex; align-items: center; gap: 18px; padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.panel-top h2 { font-size: 20px; }
.panel-top .crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.panel-top .spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.panel-body { padding: 32px; max-width: 1080px; width: 100%; margin: 0 auto; }

/* Dashboard widgets */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.kpi .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.kpi .num { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.kpi .lbl { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.kpi .delta { font-family: var(--font-mono); font-size: 11.5px; margin-top: 8px; }
.kpi .delta.up { color: var(--ok); }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { font-size: 17px; }
.card-head a { font-size: 13px; color: var(--blue); font-weight: 600; }

table.vtable { width: 100%; border-collapse: collapse; }
table.vtable th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
table.vtable td { padding: 13px 12px; border-bottom: 1px solid var(--paper); font-size: 14px; }
table.vtable tr:last-child td { border-bottom: none; }
.who-cell { display: flex; align-items: center; gap: 11px; }
.who-cell .av { width: 34px; height: 34px; border-radius: 9px; background: var(--mist); color: var(--teal-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.who-cell .nm { font-weight: 600; }
.who-cell .role { font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: var(--font-mono); }
.badge.in { background: #e6f7f1; color: var(--ok); }
.badge.out { background: var(--paper); color: var(--muted); }
.badge.sched { background: #eaf0ff; color: var(--blue); }
.badge.exp { background: #fff6e6; color: #8a5a00; }
.time-cell { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.side-card .mini { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--paper); }
.side-card .mini:last-child { border-bottom: none; }
.side-card .mini .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.side-card .mini .t { font-size: 13.5px; font-weight: 600; }
.side-card .mini .d { font-size: 12px; color: var(--muted); }
.side-card .mini .when { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.placeholder { text-align: center; padding: 70px 20px; }
.placeholder .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--mist); color: var(--teal-700); display: grid; place-items: center; margin: 0 auto 18px; }
.placeholder h3 { font-size: 20px; }
.placeholder p { color: var(--muted); max-width: 32em; margin: 12px auto 0; font-size: 15px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(21,16,58,.55); backdrop-filter: blur(4px); animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 640px; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); max-height: 90vh; display: flex; flex-direction: column;
  animation: rise .2s ease;
}
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 20px; }
.modal-head .icon-btn { font-size: 16px; color: var(--muted); }
.modal-body { padding: 24px 26px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 26px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field { margin: 0; }
.form-grid input, .form-grid select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  font-size: 14.5px; font-family: var(--font-body); background: var(--paper); transition: border .15s, box-shadow .15s;
}
.form-grid input:focus, .form-grid select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,73,196,.12); background: #fff; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Visitor quick-find + NIC scan */
.visitor-lookup { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 6px; }
.visitor-lookup .field { flex: 1; }
.scan-btn { white-space: nowrap; padding: 11px 16px; }
.lookup-hint { min-height: 20px; margin: 4px 0 10px; font-size: 12.5px; }
.lookup-hint .found { color: var(--teal-700); display: inline-flex; align-items: center; gap: 6px; }
.lookup-empty, .lookup-hint .lookup-empty { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.lookup-empty { padding: 14px; }

.nic-cam { position: relative; aspect-ratio: 16/10; background: #0d0a26; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; }
.nic-cam video { width: 100%; height: 100%; object-fit: cover; }
.nic-frame { position: absolute; inset: 16% 10%; border: 2px dashed rgba(255,255,255,.7); border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.25); }
.nic-nocam { color: #c7cae6; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px; text-align: center; font-size: 13.5px; }
.nic-help { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* Signature pad */
.sig-block { margin-top: 18px; }
.sig-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sig-head label { font-size: 12.5px; font-weight: 600; color: var(--text); font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.sig-clear { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sig-clear:hover { border-color: var(--blue); color: var(--blue); }
.sig-pad { width: 100%; height: 170px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background:
  repeating-linear-gradient(45deg, var(--paper), var(--paper) 10px, #fff 10px, #fff 20px); cursor: crosshair; touch-action: none; }
.sig-hint { font-size: 12px; color: var(--muted-2); margin: 6px 0 0; }

/* =============================================================================
   VISITORS POS — full-screen kiosk
   ============================================================================= */
.kiosk {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(52,183,195,.16), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(59,73,196,.16), transparent 60%),
    var(--ink);
  color: #fff; animation: fade .2s ease;
}
.kiosk-bar { display: flex; align-items: center; gap: 16px; padding: 20px 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.kiosk-logo { height: 32px; }
.kiosk-ent { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #c9cce8; }
.kiosk-exit { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); color: #c9cce8; border: none; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
.kiosk-exit:hover { background: rgba(255,255,255,.16); color: #fff; }
.kiosk-stage { flex: 1; display: grid; place-items: center; padding: 30px; overflow-y: auto; }

/* Welcome / result */
.kiosk-welcome { text-align: center; max-width: 640px; animation: rise .25s ease; }
.kiosk-badge { width: 110px; height: 110px; border-radius: 30px; background: linear-gradient(150deg, var(--indigo), var(--teal)); display: grid; place-items: center; margin: 0 auto 28px; color: #fff; box-shadow: var(--shadow-lg); }
.kiosk-badge.err { background: #3a1620; color: #ff8b7a; }
.kiosk-welcome h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; }
.kiosk-welcome h2 { font-size: clamp(26px, 4vw, 36px); }
.kiosk-welcome p { font-size: 19px; color: #c5c8e8; margin: 18px 0 0; }
.kiosk-cta {
  margin-top: 38px; display: inline-flex; align-items: center; gap: 12px;
  background: var(--teal); color: #06363a; border: none; border-radius: 999px;
  padding: 22px 44px; font-size: 21px; font-weight: 700; font-family: var(--font-display);
  cursor: pointer; box-shadow: 0 14px 40px rgba(52,183,195,.4); transition: transform .15s, box-shadow .2s;
}
.kiosk-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(52,183,195,.5); }
.kiosk-cta:active { transform: translateY(0); }
.kiosk-foot-note { margin-top: 30px; font-size: 13.5px; color: #8488b8; font-family: var(--font-mono); }
.kiosk-done .kiosk-check { color: var(--teal); display: grid; place-items: center; margin-bottom: 10px; animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.kiosk-spin { width: 54px; height: 54px; border: 5px solid rgba(255,255,255,.2); border-top-color: var(--teal); border-radius: 50%; margin: 0 auto 24px; animation: spin .8s linear infinite; }

/* Card screens */
.kiosk-card {
  width: 100%; max-width: 760px; background: rgba(255,255,255,.97); color: var(--text);
  border-radius: 28px; padding: 40px 44px; box-shadow: var(--shadow-lg); animation: rise .25s ease;
}
.kiosk-step { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-700); font-weight: 600; }
.kiosk-card h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 8px 0 22px; }
.kiosk-sub { color: var(--muted); font-size: 16px; margin: -12px 0 22px; }
.kiosk-find { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 6px; }
.kiosk-field { display: flex; flex-direction: column; gap: 8px; }
.kiosk-field.grow { flex: 1; }
.kiosk-field label { font-size: 13px; font-weight: 600; color: var(--text); font-family: var(--font-mono); letter-spacing: .03em; text-transform: uppercase; }
.kiosk-field label span { color: var(--muted-2); text-transform: none; letter-spacing: 0; }
.kiosk-find .kiosk-field { margin: 0; }
.kiosk input, .kiosk-field input {
  width: 100%; padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: 14px;
  font-size: 18px; font-family: var(--font-body); background: var(--paper); transition: border .15s, box-shadow .15s;
}
.kiosk input:focus, .kiosk-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,73,196,.12); background: #fff; }
.kiosk-scan { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: var(--ink); color: #fff; border: none; border-radius: 14px; padding: 12px 18px; font-size: 12px; font-weight: 600; cursor: pointer; min-width: 86px; }
.kiosk-scan:hover { background: var(--indigo); }
.kiosk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.kiosk-hint { min-height: 22px; margin: 8px 0; font-size: 14px; }
.kiosk-hint .found { color: var(--teal-700); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.kiosk-hint .warn { color: var(--warn); display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.kiosk-cat-label { display: block; margin: 24px 0 12px; font-size: 13px; font-weight: 600; font-family: var(--font-mono); letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.kiosk-cats { display: flex; flex-wrap: wrap; gap: 12px; }
.kiosk-cat { padding: 16px 24px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font-size: 17px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .15s; }
.kiosk-cat:hover { border-color: var(--blue); }
.kiosk-cat.on { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 20px rgba(59,73,196,.3); }
.kiosk-sig { width: 100%; height: 280px; border: 2px dashed var(--line-2); border-radius: 18px; background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 12px, #fff 12px, #fff 24px); cursor: crosshair; touch-action: none; }
.kiosk-sig-clear { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.kiosk-sig-clear:hover { border-color: var(--blue); color: var(--blue); }
.kiosk .lookup { top: calc(100% + 6px); }

/* Kiosk actions footer */
.kiosk-actions { display: flex; gap: 16px; justify-content: space-between; padding: 22px 30px; border-top: 1px solid rgba(255,255,255,.08); }
.kiosk-back, .kiosk-next { display: inline-flex; align-items: center; gap: 10px; border: none; border-radius: 999px; padding: 18px 34px; font-size: 18px; font-weight: 700; font-family: var(--font-display); cursor: pointer; }
.kiosk-back { background: rgba(255,255,255,.1); color: #c9cce8; }
.kiosk-back:hover { background: rgba(255,255,255,.18); color: #fff; }
.kiosk-next { background: var(--teal); color: #06363a; box-shadow: 0 10px 30px rgba(52,183,195,.35); margin-left: auto; }
.kiosk-next:hover { transform: translateY(-1px); }

/* Kiosk NIC overlay */
.kiosk-nic { position: absolute; inset: 0; background: rgba(10,8,24,.7); display: grid; place-items: center; padding: 24px; }
.kiosk-nic-box { width: 100%; max-width: 460px; background: #fff; color: var(--text); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); }
.kiosk-nic-box h3 { font-size: 20px; margin-bottom: 16px; }
.kiosk-nic-cam { position: relative; aspect-ratio: 16/10; background: #0d0a26; border-radius: 14px; overflow: hidden; display: grid; place-items: center; margin-bottom: 14px; }
.kiosk-nic-cam video { width: 100%; height: 100%; object-fit: cover; }
.kiosk-nic-box input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 16px; }
.kiosk-nic-act { display: flex; gap: 12px; margin-top: 16px; }
.kiosk-nic-act button { flex: 1; padding: 14px; border-radius: 12px; font-size: 16px; }
.kiosk-nic-act .kiosk-back { background: var(--paper); color: var(--text); border: 1px solid var(--line); }
.kiosk-nic-act .kiosk-next { background: var(--blue); color: #fff; box-shadow: none; }

.pos-btn { padding: 11px 18px; font-size: 14px; }

.btn-checkout { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line-2); color: var(--muted); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-checkout:hover { border-color: var(--warn); color: var(--warn); background: #fdecea; }
.act-none { color: var(--line-2); font-size: 14px; }

/* Visit Calendar */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav h3 { font-size: 19px; min-width: 170px; text-align: center; }
.cal-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-select { padding: 9px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; font-size: 13.5px; font-family: var(--font-body); background: #fff; cursor: pointer; }
.cal-select:focus { outline: none; border-color: var(--blue); }
.cal-grid-head { display: grid; grid-template-columns: repeat(7,1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.cal-grid-head div { padding: 12px 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); text-align: left; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-cell { min-height: 116px; border-right: 1px solid var(--paper); border-bottom: 1px solid var(--paper); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cal-cell.empty { background: #fcfcfe; }
.cal-cell.today { background: #f2f5ff; }
.cal-cell.today .cal-date { background: var(--blue); color: #fff; }
.cal-date { font-size: 13px; font-weight: 700; color: var(--muted); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-family: var(--font-display); }
.cal-events { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.cal-ev { font-size: 11.5px; padding: 4px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; cursor: default; }
.cal-ev-t { font-family: var(--font-mono); font-size: 10px; opacity: .85; margin-right: 2px; }
.cal-ev-cat { display: block; font-size: 10px; font-weight: 500; opacity: .75; }
.cal-ev.on { background: #e6f7f1; color: var(--ok); }
.cal-ev.out { background: var(--paper); color: var(--muted); }
.cal-ev.sched { background: #eaf0ff; color: var(--blue); }
.cal-more { font-size: 10.5px; color: var(--muted-2); font-weight: 600; padding-left: 4px; }
@media (max-width: 760px) {
  .cal-cell { min-height: 72px; }
  .cal-ev { font-size: 10px; }
}

/* POS welcome choice buttons */
.kiosk-choice { display: flex; gap: 22px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.kiosk-choice-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 220px; padding: 30px 24px; border: none; border-radius: 24px; cursor: pointer; transition: transform .15s, box-shadow .2s; color: #fff; }
.kiosk-choice-btn span { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.kiosk-choice-btn em { font-style: normal; font-size: 14px; opacity: .85; }
.kiosk-choice-btn.in { background: linear-gradient(150deg, var(--teal), var(--teal-700)); color: #06363a; box-shadow: 0 14px 40px rgba(52,183,195,.35); }
.kiosk-choice-btn.in em { color: #0a4a50; }
.kiosk-choice-btn.out { background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18); }
.kiosk-choice-btn:hover { transform: translateY(-3px); }

/* POS appointment block */
.kiosk-appt { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.kiosk-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: default; }
.kiosk-switch-row span { display: flex; flex-direction: column; }
.kiosk-switch-row b { font-size: 17px; font-family: var(--font-display); }
.kiosk-switch-row em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.kiosk-appt-fields { margin-top: 16px; }
.kiosk-appt-fields.hidden { display: none; }

/* Visitors listing filter bar */
.vis-filter { display: flex; align-items: flex-end; gap: 14px; padding: 0 4px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--paper); margin-bottom: 6px; }
.vis-filter-field { display: flex; flex-direction: column; gap: 6px; }
.vis-filter-field label { font-size: 11px; font-weight: 600; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.vis-filter-field input, .vis-filter-field select { padding: 9px 13px; border: 1.5px solid var(--line-2); border-radius: 10px; font-size: 13.5px; font-family: var(--font-body); background: #fff; cursor: pointer; }
.vis-filter-field input:focus, .vis-filter-field select:focus { outline: none; border-color: var(--blue); }
.vis-apply { padding: 9px 18px; font-size: 13px; align-self: flex-end; }
.vis-count { padding: 14px 4px 2px; font-size: 12.5px; color: var(--muted-2); font-family: var(--font-mono); }

/* Searchable combo caret */
.combo-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); cursor: pointer; font-size: 12px; pointer-events: auto; user-select: none; }
.combo-caret:hover { color: var(--blue); }

@media (max-width: 760px) {
  .kiosk-grid { grid-template-columns: 1fr; }
  .kiosk-card { padding: 28px 22px; }
  .kiosk-actions { padding: 16px 18px; }
  .kiosk-back, .kiosk-next { padding: 15px 24px; font-size: 16px; }
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding: 64px 28px 72px; }
  .about-grid, .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip .visual { order: 0; }
  .event-cards, .aud-grid, .kpis { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .head-cta .btn-ghost, .head-cta .btn-primary { display: none; }
  .menu-btn { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; }
  .nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; }
  .event-cards, .aud-grid, .kpis, .foot-top { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .25s; z-index: 60; }
  .rail.open { transform: translateX(0); }
  .panel-body { padding: 20px; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 64px 0; }
}

/* =============================================================================
   Mauritius Fire & Rescue Service — Command Dashboard
   ============================================================================= */
.fs-shell { min-height: 100vh; background: linear-gradient(180deg, #0f0b2e 0%, #15103a 100%); color: #e9eaf6; }
.fs-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; background: rgba(21,16,58,.7); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.fs-top-left { display: flex; align-items: center; gap: 16px; }
.fs-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #e8543a, #d64545); box-shadow: 0 8px 24px rgba(232,84,58,.4); }
.fs-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: #fff; }
.fs-sub { font-size: 12.5px; color: #9498c4; font-family: var(--font-mono); letter-spacing: .02em; margin-top: 2px; }
.fs-top-right { display: flex; align-items: center; gap: 18px; }
.fs-live { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #ff5c47; }
.fs-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5c47; box-shadow: 0 0 0 0 rgba(255,92,71,.7); animation: fsPulse 1.8s infinite; }
@keyframes fsPulse { 0% { box-shadow: 0 0 0 0 rgba(255,92,71,.6);} 70% { box-shadow: 0 0 0 10px rgba(255,92,71,0);} 100% { box-shadow: 0 0 0 0 rgba(255,92,71,0);} }
.fs-clock { font-family: var(--font-mono); font-size: 13px; color: #b9bce0; }
.fs-logout { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e9eaf6; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; font-family: var(--font-body); }
.fs-logout:hover { background: rgba(255,255,255,.16); }

.fs-body { padding: 24px 28px 40px; max-width: 1520px; margin: 0 auto; }

/* KPIs */
.fs-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.fs-kpi { background: linear-gradient(160deg, rgba(46,42,140,.35), rgba(29,23,80,.5)); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 20px; display: flex; gap: 15px; align-items: center; position: relative; overflow: hidden; }
.fs-kpi::after { content:''; position:absolute; inset:0; background: radial-gradient(120px 80px at 90% -10%, rgba(52,183,195,.18), transparent 70%); }
.fs-kpi-ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; }
.fs-kpi-val { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; color: #fff; letter-spacing: -.03em; }
.fs-kpi-label { font-size: 12.5px; color: #b9bce0; margin-top: 5px; }
.fs-kpi-sub { font-size: 11.5px; color: #8185b4; margin-top: 4px; font-family: var(--font-mono); }
.fs-kpi-sub .up { color: #ff7a5c; font-weight: 700; }
.fs-kpi-sub .down { color: #2fd39a; font-weight: 700; }

/* Grid */
.fs-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.fs-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 20px; }
.fs-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fs-card-head h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 9px; }
.fs-card-head h3 svg { color: #34b7c3; }
.fs-card-note { font-size: 11.5px; color: #8185b4; font-family: var(--font-mono); }
.fs-map-card { grid-row: span 2; }
.fs-feed-card { grid-column: span 2; }

/* Map */
.fs-map { position: relative; aspect-ratio: 571/665; max-height: 600px; margin: 0 auto; width: fit-content; }
.fs-map-img { height: 100%; width: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); border-radius: 8px; }
.fs-map-pins { position: absolute; inset: 0; }
.fs-pin { position: absolute; transform: translate(-50%,-50%); background: none; border: none; cursor: pointer; padding: 0; }
.fs-pin-dot { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--pc); border: 2.5px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); transition: transform .15s; }
.fs-pin:hover .fs-pin-dot { transform: scale(1.4); }
.fs-pin-pulse::before { content:''; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; border-radius: 50%; background: var(--pc); transform: translate(-50%,-50%); animation: fsPin 1.6s infinite; }
@keyframes fsPin { 0% { box-shadow: 0 0 0 0 var(--pc); opacity: .8;} 70% { box-shadow: 0 0 0 16px transparent; opacity: 0;} 100% { opacity: 0;} }
.fs-map-legend { position: absolute; bottom: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 10px; background: rgba(15,11,46,.7); padding: 8px 12px; border-radius: 10px; backdrop-filter: blur(6px); }
.fs-map-legend span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #c7cae6; }
.fs-map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Donut */
.fs-donut-wrap { display: flex; align-items: center; gap: 18px; }
.fs-donut-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #d7d9ef; }
.fs-donut-legend b { color: #fff; }
.fs-lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }

/* District bars */
.fs-dbars { display: flex; flex-direction: column; gap: 12px; }
.fs-dbar { display: flex; align-items: center; gap: 12px; }
.fs-dbar-label { width: 120px; font-size: 12.5px; color: #c7cae6; flex: 0 0 auto; }
.fs-dbar-track { flex: 1; height: 10px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; }
.fs-dbar-fill { height: 100%; background: linear-gradient(90deg, #3b49c4, #34b7c3); border-radius: 6px; }
.fs-dbar-val { width: 22px; text-align: right; font-weight: 700; color: #fff; font-size: 13px; font-family: var(--font-mono); }

/* Incident feed */
.fs-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-inc { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 13px 15px; transition: all .15s; }
.fs-inc:hover, .fs-inc.hot { border-color: rgba(52,183,195,.5); background: rgba(52,183,195,.08); }
.fs-inc-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.fs-inc-main { flex: 1; min-width: 0; }
.fs-inc-top { display: flex; align-items: center; gap: 10px; }
.fs-inc-type { font-weight: 700; color: #fff; font-size: 14px; }
.fs-inc-sev { font-size: 11.5px; font-family: var(--font-mono); }
.fs-inc-bldg { font-size: 13px; color: #d7d9ef; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-inc-meta { font-size: 11px; color: #8185b4; display: flex; align-items: center; gap: 6px; }
.fs-inc-meta svg { vertical-align: middle; }
.fs-inc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.fs-inc-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); }
.fs-inc-resp { font-size: 11px; color: #b9bce0; font-family: var(--font-mono); }
.fs-inc-id { font-size: 10px; color: #6f739e; font-family: var(--font-mono); }

.fs-foot { text-align: center; margin-top: 26px; font-size: 12px; color: #6f739e; font-family: var(--font-mono); }
.fs-foot span { color: #9498c4; font-weight: 600; }

@media (max-width: 1180px) {
  .fs-kpis { grid-template-columns: repeat(2, 1fr); }
  .fs-grid { grid-template-columns: 1fr; }
  .fs-map-card { grid-row: auto; }
  .fs-feed-card { grid-column: auto; }
  .fs-feed { grid-template-columns: 1fr; }
}
