/* =====================================================================
   Visa Application Portal – design system (on top of Bootstrap 5.3)
   No external requests: fonts and icons are served from assets/vendor.
   ===================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --brand-950: #06172b;
  --brand-900: #0a2340;
  --brand-800: #0d2f55;
  --brand-700: #123f72;
  --brand-600: #17529a;
  --brand-500: #2563c9;
  --brand-100: #e3ecfb;
  --brand-50:  #f1f6fe;
  --accent:     #f5a524;
  --accent-600: #dc8a06;
  --accent-50:  #fff6e5;
  --teal:       #0ea5a4;
  --teal-50:    #e6f7f7;
  --ink:        #0f172a;
  --muted:      #5b6b82;
  --line:       #e4e9f2;
  --surface:    #f4f7fb;
  --radius-lg:  1.25rem;
  --radius:     1rem;
  --radius-sm:  .65rem;
  --shadow-xs:  0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, .05), 0 4px 12px -4px rgba(15, 23, 42, .08);
  --shadow:     0 18px 40px -18px rgba(15, 40, 80, .35);

  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--surface);
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 23, 82, 154;
  --bs-link-color: var(--brand-600);
  --bs-link-color-rgb: 23, 82, 154;
  --bs-link-hover-color: var(--brand-800);
  --bs-link-hover-color-rgb: 13, 47, 85;
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius);
  --bs-secondary-color: var(--muted);
  --bs-focus-ring-color: rgba(37, 99, 201, .25);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.display-5, .display-6 { font-weight: 800; letter-spacing: -.03em; }
.text-muted { color: var(--muted) !important; }
.lead { color: var(--muted); }
::selection { background: var(--brand-100); }
a { text-underline-offset: 3px; }
.small, small { font-size: .86rem; }
.pre-wrap { white-space: pre-wrap; }
.min-w-0 { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.text-gradient { background: linear-gradient(90deg, #fff 0%, #ffd27a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .6rem 1.1rem; }
.btn-sm { padding: .35rem .75rem; border-radius: .55rem; }
.btn-lg { padding: .85rem 1.5rem; border-radius: .85rem; font-size: 1.05rem; }
.btn-primary, .btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--brand-600); --bs-btn-border-color: var(--brand-600);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-800); --bs-btn-active-border-color: var(--brand-800); --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--brand-600); --bs-btn-disabled-border-color: var(--brand-600); --bs-btn-disabled-color: #fff;
  box-shadow: 0 6px 16px -8px rgba(23, 82, 154, .7);
}
.btn-accent {
  --bs-btn-color: var(--brand-950); --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--brand-950); --bs-btn-hover-bg: #ffb63f; --bs-btn-hover-border-color: #ffb63f;
  --bs-btn-active-bg: var(--accent-600); --bs-btn-active-border-color: var(--accent-600); --bs-btn-active-color: var(--brand-950);
  box-shadow: 0 10px 24px -10px rgba(245, 165, 36, .9);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand-600); --bs-btn-border-color: #c9d7ee;
  --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand-800); --bs-btn-active-border-color: var(--brand-600);
}
.btn-outline-secondary { --bs-btn-color: #475569; --bs-btn-border-color: #d5dce8; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #b8c3d5; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover, .btn-ghost-light:focus { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }
.btn-success { box-shadow: 0 6px 16px -8px rgba(25, 135, 84, .7); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}
.site-header .navbar { padding-top: .7rem; padding-bottom: .7rem; }
.site-header .nav-link { white-space: nowrap; color: #334155; font-weight: 600; font-size: .93rem; padding: .45rem .8rem !important; border-radius: .6rem; display: inline-flex; align-items: center; gap: .4rem; }
.site-header .nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.site-header .nav-link.active { color: var(--brand-700); background: var(--brand-100); }
.site-header .navbar-toggler { border: 1px solid var(--line); border-radius: .6rem; padding: .35rem .55rem; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.site-header.staff { background: rgba(6, 23, 43, .94); border-bottom-color: rgba(255, 255, 255, .06); }
.site-header.staff .nav-link { color: #c3d0e4; }
.site-header.staff .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-header.staff .nav-link.active { color: #fff; background: rgba(255, 255, 255, .14); }
.site-header.staff .navbar-brand { color: #fff; }
.site-header.staff .navbar-toggler { border-color: rgba(255, 255, 255, .25); }
/* Staff menus have many items: icons only between 1200px and 1400px (labels appear as tooltips). */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header.staff .navbar-nav .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header.staff .nav-link { padding: .5rem .65rem !important; font-size: 1.05rem; }
}
.site-header .btn-brand { white-space: nowrap; }
/* Public menu: drop the icons and tighten spacing so every link and the CTA fit at 1200–1500px. */
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .site-header:not(.staff) .navbar-nav .nav-link > .bi { display: none; }
  .site-header:not(.staff) .navbar-nav .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; font-size: .9rem; }
}
.site-header .dropdown-menu { border: 1px solid var(--line); border-radius: .85rem; box-shadow: var(--shadow); padding: .4rem; }
.site-header .dropdown-item { border-radius: .55rem; padding: .5rem .75rem; font-size: .92rem; font-weight: 500; }
.site-header .dropdown-item:hover { background: var(--brand-50); color: var(--brand-700); }
.navbar-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-size: 1.12rem; }
.brand-mark {
  width: 2.15rem; height: 2.15rem; border-radius: .7rem; flex: 0 0 auto;
  display: inline-grid; place-items: center; color: #fff; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--teal) 100%);
  box-shadow: 0 6px 14px -6px rgba(23, 82, 154, .8);
}
.brand-logo { width: 2.4rem; height: 2.4rem; flex: 0 0 auto; border-radius: .75rem; box-shadow: 0 6px 14px -6px rgba(13, 47, 85, .7); }
.staff-chip { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--brand-950); border-radius: 2rem; padding: .2rem .55rem; }
.nav-count { font-size: .7rem; font-weight: 700; min-width: 1.25rem; padding: .15rem .4rem; }
.user-avatar { width: 2rem; height: 2rem; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--teal)); }

/* ---------- Cards, surfaces ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.card-body { padding: 1.35rem; }
.list-group { --bs-list-group-border-color: var(--line); --bs-list-group-border-radius: var(--radius); }
.list-group-item-action:hover { background: var(--brand-50); }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { margin-bottom: .2rem; }
.icon-circle { width: 2.75rem; height: 2.75rem; border-radius: .85rem; display: inline-grid; place-items: center; font-size: 1.25rem; flex: 0 0 auto; }
.icon-circle.sm { width: 2.2rem; height: 2.2rem; font-size: 1rem; border-radius: .7rem; }
.ic-blue   { background: var(--brand-100); color: var(--brand-600); }
.ic-teal   { background: var(--teal-50); color: #0b8584; }
.ic-amber  { background: var(--accent-50); color: #b46b00; }
.ic-green  { background: #e7f6ee; color: #198754; }
.ic-red    { background: #fdecec; color: #c0392b; }
.ic-violet { background: #f0ecfe; color: #6d4bd8; }
.ic-slate  { background: #eef2f7; color: #475569; }
.stat-card { transition: transform .2s ease, box-shadow .2s ease; color: inherit; }
a.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-card .stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; }

/* ---------- Badges (soft pills) ---------- */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 2rem; padding: .38em .75em; }
.badge.soft { border: 1px solid transparent; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .9rem; color: #1e293b; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: #d5dde9; padding: .65rem .9rem; font-size: .97rem; background-color: #fff; }
.form-control-sm, .form-select-sm { padding: .4rem .7rem; font-size: .88rem; border-radius: .55rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .22rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-text { color: var(--muted); }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.input-icon > .form-control { padding-left: 2.5rem; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); border: 1px solid transparent; border-left-width: 4px; font-size: .95rem; }
.alert-success { background: #ecf8f1; border-color: #bfe5cf; border-left-color: #198754; color: #0f5132; }
.alert-danger  { background: #fdf0f0; border-color: #f3c7c7; border-left-color: #dc3545; color: #842029; }
.alert-warning { background: #fff8e8; border-color: #f8dfa5; border-left-color: var(--accent); color: #6b4a00; }
.alert-info    { background: var(--brand-50); border-color: #cfdcf3; border-left-color: var(--brand-500); color: var(--brand-800); }
.alert-secondary { background: #f4f6fa; border-color: #e1e6ef; border-left-color: #94a3b8; color: #334155; }

/* ---------- Tables ---------- */
.table { --bs-table-bg: #fff; margin-bottom: 0; }
.table > thead th { background: #f8fafc; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding-top: .8rem; padding-bottom: .8rem; white-space: nowrap; }
.table > tbody td { padding-top: .85rem; padding-bottom: .85rem; border-color: #eef2f7; }
.table-responsive { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
.table-responsive > .table { box-shadow: none !important; }
.table td, .table th { vertical-align: middle; }

/* ---------- Tabs / pills ---------- */
.nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; padding: .7rem 1rem; white-space: nowrap; border-radius: 0; background: transparent; }
.nav-tabs .nav-link:hover { color: var(--brand-700); border-bottom-color: #c9d7ee; }
.nav-tabs .nav-link.active { color: var(--brand-700); border-bottom-color: var(--brand-600); background: transparent; }
.nav-pills .nav-link { border-radius: 2rem; font-weight: 600; color: var(--muted); padding: .45rem 1rem; }
.nav-pills .nav-link.active { background: var(--brand-600); color: #fff; }
.pagination { --bs-pagination-border-radius: .6rem; --bs-pagination-active-bg: var(--brand-600); --bs-pagination-active-border-color: var(--brand-600); gap: .25rem; }
.pagination .page-link { border-radius: .55rem !important; }

/* ---------- Application form steps ---------- */
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; overflow-x: auto; counter-reset: step; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps li { flex: 1 0 auto; display: flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 600; padding: .55rem .9rem .55rem .55rem; border-radius: 2rem; background: #fff; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.steps li::before { counter-increment: step; content: counter(step); width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .78rem; background: #eef2f7; color: #475569; }
.steps li.done { border-color: #bfe5cf; color: #14653f; }
.steps li.done::before { content: "✓"; background: #198754; color: #fff; }
.steps li.current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(23, 82, 154, .9); }
.steps li.current::before { background: #fff; color: var(--brand-700); }
.steps a { color: inherit; text-decoration: none; }

/* ---------- Milestone tracker ---------- */
.milestones { list-style: none; padding: 0; margin: 0; }
.milestones li { position: relative; padding: 0 0 1.05rem 2.2rem; font-weight: 500; }
.milestones li::before { content: ""; position: absolute; left: .58rem; top: 1.45rem; bottom: .1rem; width: 2px; background: var(--line); }
.milestones li:last-child::before { display: none; }
.milestones li.done::before { background: #9bd3b5; }
.milestones .dot { position: absolute; left: 0; top: .05rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; }
.milestones li.done .dot { background: #198754; border-color: #198754; box-shadow: 0 0 0 4px #e7f6ee; }
.milestones li.done .dot::after { content: ""; position: absolute; left: .32rem; top: .12rem; width: .32rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.milestones li:not(.done) { color: var(--muted); }

/* ---------- Detail lists, tickets, notifications ---------- */
.detail-list dt { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.detail-list dd { margin-bottom: .75rem; word-break: break-word; font-weight: 500; }
.ticket-msg { border-left: 4px solid #d5dce8; }
.ticket-msg.staff { border-left-color: var(--brand-600); background: var(--brand-50); }
.notif-unread { border-left: 4px solid var(--brand-600) !important; background: #fff; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem 1rem; border: 1.5px dashed #d5dde9; border-radius: var(--radius); background: #fbfcfe; }
.empty-state .bi { font-size: 1.8rem; display: block; margin-bottom: .4rem; color: #a3b1c6; }
.audit-details { max-width: 340px; }

/* =====================================================================
   Landing page
   ===================================================================== */
.landing main { padding-top: 0 !important; }
.hero-xl {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(14, 165, 164, .45), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(245, 165, 36, .28), transparent 60%),
    linear-gradient(135deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  padding: 5.5rem 0 6.5rem;
}
.hero-xl::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
}
.hero-xl .container { position: relative; z-index: 1; }
.hero-xl h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.07; font-weight: 800; letter-spacing: -.035em; }
.hero-xl .lead { color: rgba(226, 236, 250, .9); font-size: 1.15rem; max-width: 36rem; }
.hero-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem .35rem .4rem; border-radius: 2rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #e2ecfa; font-size: .85rem; font-weight: 600; }
.hero-pill span { background: var(--accent); color: var(--brand-950); border-radius: 2rem; padding: .1rem .55rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; color: #c7d6ec; font-size: .9rem; font-weight: 500; }
.hero-trust .bi { color: #6ee7d8; margin-right: .35rem; }

/* Product preview card in hero */
.preview { position: relative; max-width: 440px; margin-left: auto; }
.preview-card { background: #fff; color: var(--ink); border-radius: 1.4rem; padding: 1.4rem; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: rotate(1.5deg); }
.preview-card .ref { font-weight: 800; letter-spacing: -.01em; }
.preview-progress { height: .5rem; border-radius: 1rem; background: #eef2f7; overflow: hidden; }
.preview-progress > span { display: block; height: 100%; width: 72%; border-radius: 1rem; background: linear-gradient(90deg, var(--brand-500), var(--teal)); }
.preview-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed #e8edf5; font-size: .9rem; font-weight: 600; }
.preview-row:last-child { border-bottom: 0; }
.preview-row .tick { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; background: #e7f6ee; color: #198754; }
.preview-row .tick.wait { background: var(--accent-50); color: #b46b00; }
.preview-float { position: absolute; left: -2.2rem; bottom: -1.6rem; background: #fff; color: var(--ink); border-radius: 1rem; padding: .75rem 1rem; display: flex; align-items: center; gap: .7rem; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55); transform: rotate(-2deg); font-size: .85rem; font-weight: 600; }
.preview-float .icon-circle { width: 2.3rem; height: 2.3rem; font-size: 1.05rem; }

.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-title { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-title h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.overlap { margin-top: -3.5rem; position: relative; z-index: 2; }
.stats-band { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stats-band .stat { padding: 1.4rem 1.2rem; }
.stats-band .stat + .stat { border-left: 1px solid var(--line); }
.stats-band .stat strong { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-800); }
.stats-band .stat span { color: var(--muted); font-size: .88rem; font-weight: 500; }
.feature-card { height: 100%; padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.08rem; margin: 1rem 0 .4rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.how-step { position: relative; padding-left: 4rem; padding-bottom: 1.8rem; }
.how-step:last-child { padding-bottom: 0; }
.how-step .num { position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: .9rem; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-600), var(--teal)); box-shadow: 0 10px 20px -10px rgba(23, 82, 154, .9); }
.how-step:not(:last-child)::before { content: ""; position: absolute; left: 1.35rem; top: 3rem; bottom: .3rem; width: 2px; background: linear-gradient(var(--brand-100), transparent); }
.how-step h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.how-step p { color: var(--muted); margin: 0; font-size: .95rem; }
.cat-card { position: relative; height: 100%; padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d7ee; }
.cat-card h3 { font-size: 1.2rem; margin: 1rem 0 .35rem; }
.cat-card p { color: var(--muted); font-size: .94rem; }
.cat-card .time { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border-radius: 2rem; padding: .3rem .75rem; }
.bg-soft { background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.security-panel { border-radius: var(--radius-lg); padding: 2.5rem; color: #e2ecfa; background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); position: relative; overflow: hidden; }
.security-panel h2 { color: #fff; }
.security-panel .bi { color: #6ee7d8; }
.security-panel li { margin-bottom: .65rem; }
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: calc(var(--radius) - 1px); --bs-accordion-active-bg: var(--brand-50); --bs-accordion-active-color: var(--brand-800); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.accordion-button { font-weight: 700; }
.accordion-item { background: #fff; }
.cta-band { border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; color: #fff; background: radial-gradient(600px 240px at 90% 0%, rgba(14, 165, 164, .5), transparent 60%), linear-gradient(135deg, var(--brand-800), var(--brand-600)); box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-weight: 800; letter-spacing: -.03em; }
.cta-band p { color: #d5e2f5; }

/* ---------- Auth (sign-in / register) ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 1020px; margin: 0 auto; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1fr 1.1fr; } .auth-wrap.narrow-form { grid-template-columns: 1fr 1fr; } }
.auth-side { display: none; position: relative; padding: 2.75rem; color: #dbe6f6; background: radial-gradient(500px 260px at 100% 0%, rgba(14, 165, 164, .45), transparent 60%), linear-gradient(160deg, rgba(6, 23, 43, .94), rgba(18, 63, 114, .86)), url("../img/photos/office-hallway.jpg") center / cover no-repeat, var(--brand-900); }
@media (min-width: 992px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-side h2 { color: #fff; font-weight: 800; letter-spacing: -.03em; }
.auth-side ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.auth-side li { display: flex; gap: .75rem; margin-bottom: 1rem; font-weight: 500; }
.auth-side li .bi { color: #6ee7d8; font-size: 1.15rem; }
.auth-side .quote { font-size: .88rem; color: #a9bcd8; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.25rem; }
.auth-form { padding: 2.25rem 1.5rem; }
@media (min-width: 576px) { .auth-form { padding: 2.75rem; } }
.auth-form h1 { font-size: 1.65rem; }
.auth-single { max-width: 480px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: #9fb2cf; padding: 3.5rem 0 1.5rem; margin-top: 4rem; font-size: .92rem; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: #c7d5ea; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .navbar-brand { color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .84rem; }
.site-footer.compact { padding: 1.5rem 0; margin-top: 3rem; }
.site-footer.compact .footer-bottom { border: 0; margin: 0; padding: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { padding: .75rem 0 .25rem; }
}
@media (max-width: 991.98px) {
  .preview { margin: 3rem auto 1rem; }
  .stats-band .stat:nth-child(odd) { border-left: 0; }
  .stats-band .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .site-header .navbar > .container { flex-wrap: nowrap; }
  .navbar-brand { font-size: 1rem; gap: .5rem; min-width: 0; }
  .navbar-brand > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; padding: .75rem 1rem 1rem; background: inherit; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.staff .navbar-collapse { background: var(--brand-950); }
  .site-header:not(.staff) .navbar-collapse { background: #fff; }
}
@media (max-width: 575.98px) {
  main.container { padding-left: 14px; padding-right: 14px; }
  .card-body { padding: 1.05rem; }
  .btn-stack-sm .btn { width: 100%; margin-bottom: .5rem; }
  h1, .h1 { font-size: 1.6rem; }
  .hero-xl { padding: 3.5rem 0 5rem; }
  .section { padding: 3.5rem 0; }
  .preview-float { left: -.5rem; }
  .preview-card { transform: none; }
  .cta-band { padding: 2.25rem 1.25rem; }
  .security-panel { padding: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Bot trap field: invisible to people, filled in by spam bots */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.check-row { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row .bi { font-size: 1.1rem; margin-top: .05rem; }

/* ---------- Live status tracker (track.php, dashboards) ---------- */
.track-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .track-head { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.track-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; }
@media (min-width: 576px) { .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .track-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .track-grid.member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.member-table td, .member-table th { white-space: nowrap; }
.track-tile { border: 1px solid var(--line); border-top: 4px solid #cbd5e1; border-radius: var(--radius-sm); padding: 1rem; background: #fff; min-width: 0; }
.track-tile.tone-success { border-top-color: #198754; }
.track-tile.tone-warning { border-top-color: #f0ad1e; }
.track-tile.tone-info { border-top-color: #0dcaf0; }
.track-tile.tone-primary { border-top-color: var(--brand-600); }
.track-tile.tone-danger { border-top-color: #dc3545; }
.track-icon { width: 2rem; height: 2rem; border-radius: .6rem; display: inline-grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.track-status { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.track-time { font-size: .75rem; color: var(--muted); margin-top: .45rem; }
.track-tile .small { word-break: break-word; }
.track-live { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #198754; box-shadow: 0 0 0 0 rgba(25, 135, 84, .5); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, .5); } 70% { box-shadow: 0 0 0 .5rem rgba(25, 135, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); } }
.track-flash { animation: track-flash 1.6s ease-out; }
@keyframes track-flash { from { background: #fff8db; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .live-dot, .track-flash { animation: none; } }
.track-list li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-weight: 600; }
.track-list .bi { color: var(--brand-600); font-size: 1.1rem; }
.track-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.track-badges .badge { font-weight: 600; white-space: normal; text-align: left; }
.share-url { font-size: .8rem; word-break: break-all; background: var(--brand-50); border-radius: var(--radius-sm); padding: .5rem .65rem; }

/* ---------- McChain Food photo gallery (home page) ---------- */
.step-tile { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.photo-tile { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--brand-900); flex: 1 1 auto; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.photo-tile:hover img { transform: scale(1.045); }
.photo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 23, 43, 0) 45%, rgba(6, 23, 43, .82) 100%); pointer-events: none; }
.photo-tile figcaption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.photo-tile figcaption strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.photo-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: var(--brand-950); border-radius: 2rem; padding: .22rem .6rem; }
.photo-chip.office { background: #6ee7d8; }
@media (min-width: 992px) { .photo-tile.tall { aspect-ratio: auto; height: 100%; min-height: 26rem; } .photo-tile.tall figcaption strong { font-size: 1.45rem; } }

/* ---------- Fingerprint capture (Biometrics tab) ---------- */
.bio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .65rem; }
.bio-slot { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem; background: #fff; text-align: center; min-width: 0; }
.bio-slot.status-accepted { border-color: #9bd3b5; background: #f3fbf6; }
.bio-slot.status-rejected { border-color: #f1aeb5; background: #fff6f7; }
.bio-slot.status-submitted { border-color: #f6d58a; }
.bio-thumb { aspect-ratio: 1 / 1; border-radius: .55rem; background: var(--brand-50); display: grid; place-items: center; overflow: hidden; border: 1.5px dashed #c9d6ea; }
.bio-slot.has-photo .bio-thumb { border-style: solid; border-color: var(--line); background: #0b1626; }
.bio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-thumb .bi { font-size: 2.4rem; color: #9db1cf; }
.bio-slot .btn.disabled { pointer-events: none; opacity: .65; }
.bio-progress { width: 100%; height: .6rem; border: 0; border-radius: 1rem; overflow: hidden; background: var(--line); accent-color: #198754; appearance: none; }
.bio-progress::-webkit-progress-bar { background: var(--line); border-radius: 1rem; }
.bio-progress::-webkit-progress-value { background: #198754; border-radius: 1rem; }
.bio-progress::-moz-progress-bar { background: #198754; border-radius: 1rem; }
.bio-tips { background: var(--accent-50); border: 1px solid #fbe0ae; border-radius: var(--radius-sm); padding: .65rem .9rem; }
.bio-tips summary { cursor: pointer; }
.bio-slot .badge { white-space: normal; max-width: 100%; line-height: 1.25; }

/* ---------- Special links card (staff case page) ---------- */
.link-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem; background: #fbfcfe; }

/* ---------- Footer phone numbers ---------- */
.contact-phones li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.contact-phones a { white-space: nowrap; }
.contact-phones .wa { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(37, 211, 102, .16); color: #25d366; flex: 0 0 auto; }
.contact-phones .wa:hover { background: #25d366; color: #fff; }
.contact-inline a { white-space: nowrap; }
/* ---------- Office clickable cards ---------- */
.office-card { cursor: pointer; }
.office-card::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-lg); border: 3px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; pointer-events: none; }
.office-card:hover::before, .office-card:focus::before { border-color: #6ee7d8; box-shadow: 0 0 20px rgba(110, 231, 216, .35); }
.office-card:hover figcaption .photo-chip, .office-card:focus figcaption .photo-chip { transform: scale(1.06); }
.office-card figcaption .photo-chip { transition: transform .3s ease; }
.office-card:hover img { transform: scale(1.06); }

.office-modal-hero {
  background:
    radial-gradient(600px 300px at 80% -20%, rgba(14, 165, 164, .5), transparent 60%),
    radial-gradient(500px 300px at -10% 120%, rgba(37, 99, 201, .35), transparent 60%),
    linear-gradient(135deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
}
.office-role-card:hover { border-color: var(--teal); background: var(--teal-50); }