/* =========================================================================
   IDTRUST design system
   Brand colours come from the logo: deep green shield, gold wing.
   Pages opt in by loading this file (see partials/head.php).
   ========================================================================= */

:root {
  --brand-950: #072a20;
  --brand-900: #0b3a2d;
  --brand-800: #0f4a3a;
  --brand-700: #145c46;
  --brand-600: #1b6f53;
  --brand-500: #228060;
  --brand-400: #3f9a76;
  --brand-200: #bfe0cf;
  --brand-100: #e3f1e9;
  --brand-50:  #f1f8f4;
  --gold-600:  #b98a2e;
  --gold-500:  #d9a63a;
  --gold-400:  #ebbd52;
  --gold-100:  #fbf1d9;

  --bg:        #f5f8f6;
  --surface:   #ffffff;
  --surface-2: #f1f8f4;
  --ink:       #10231b;
  --ink-soft:  #2c3f36;
  --muted:     #5b6d64;
  --line:      #e1e9e4;
  --primary:   var(--brand-600);
  --primary-ink: #ffffff;
  --tint:      var(--brand-100);
  --tint-ink:  var(--brand-700);

  --success: #16794c; --success-bg: #e5f5ec; --success-line: #b6e2c8;
  --danger:  #b42318; --danger-bg:  #fdecea; --danger-line:  #f6c4bf;
  --warning: #9a6200; --warning-bg: #fdf3dc; --warning-line: #f1d79a;
  --info:    #145c46; --info-bg:    #e3f1e9; --info-line:    #bfe0cf;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 27, .06);
  --shadow:    0 6px 24px -8px rgba(16, 35, 27, .14), 0 2px 6px rgba(16, 35, 27, .05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 58, 45, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:        #08130f;
  --surface:   #0f1e18;
  --surface-2: #142820;
  --ink:       #e8f2ed;
  --ink-soft:  #c7d8cf;
  --muted:     #93ab9f;
  --line:      #1f372d;
  --primary:   #2f9a71;
  --tint:      rgba(63, 154, 118, .16);
  --tint-ink:  #7fd1ad;
  --success: #5fd29b; --success-bg: rgba(95, 210, 155, .12); --success-line: rgba(95, 210, 155, .3);
  --danger:  #ff8a80; --danger-bg:  rgba(255, 138, 128, .12); --danger-line: rgba(255, 138, 128, .3);
  --warning: #f3c969; --warning-bg: rgba(243, 201, 105, .12); --warning-line: rgba(243, 201, 105, .3);
  --info:    #7fd1ad; --info-bg:    rgba(63, 154, 118, .14); --info-line:    rgba(63, 154, 118, .32);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow:    0 8px 28px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tint-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; }
.brand-mark { height: 38px; width: auto; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1; }
.wordmark b { color: var(--brand-800); font-weight: 800; }
.wordmark span { color: var(--brand-400); }
.on-dark .wordmark b, :root[data-theme="dark"] .wordmark b { color: #fff; }
.on-dark .wordmark span, :root[data-theme="dark"] .wordmark span { color: #8fd3b4; }
:root[data-theme="dark"] .brand-logo.swap-dark { display: none; }
.brand-dark-only { display: none; }
:root[data-theme="dark"] .brand-dark-only { display: inline-flex; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tint-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-400), var(--gold-500)); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 20px -10px rgba(27, 111, 83, .8); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--brand-950); box-shadow: 0 8px 22px -10px rgba(217, 166, 58, .9); }
.btn-gold:hover { color: var(--brand-950); filter: brightness(1.04); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-400); color: var(--tint-ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--tint); color: var(--tint-ink); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); cursor: pointer; font-size: 16px; transition: .18s;
}
.icon-btn:hover { color: var(--tint-ink); border-color: var(--brand-400); }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.icon-tile {
  width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 14px; background: var(--tint); color: var(--tint-ink); font-size: 20px;
}
.icon-tile.gold { background: var(--gold-100); color: var(--gold-600); }
:root[data-theme="dark"] .icon-tile.gold { background: rgba(217, 166, 58, .14); color: var(--gold-400); }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.label .req { color: var(--danger); }
.label .opt { color: var(--muted); font-weight: 500; }
.input-wrap { position: relative; }
.input-wrap > .fa-solid, .input-wrap > .fa-regular, .input-wrap > .fas {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.input, .select, .textarea {
  width: 100%; padding: 12.5px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s; appearance: none;
}
.input-wrap .input { padding-left: 44px; }
.input-wrap .input.has-toggle { padding-right: 48px; }
.input::placeholder, .textarea::placeholder { color: #9aaba2; text-transform: none; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(63, 154, 118, .16); }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.textarea { min-height: 110px; resize: vertical; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; background: transparent; border-radius: 9px;
  color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--tint-ink); background: var(--tint); }
.hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist li::before { content: "\f111"; font-family: "Font Awesome 6 Free"; font-weight: 400; font-size: 11px; }
.checklist li.ok { color: var(--success); }
.checklist li.ok::before { content: "\f058"; font-weight: 900; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.subcard { padding: 18px 18px 2px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); margin: 4px 0 18px; }
.subcard > h3 { font-size: 15px; margin: 0 0 12px; }
.form-section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; margin: 8px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section-title:first-child, .form-section-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* selectable option cards (radio / checkbox) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
  cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink); transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--brand-400); }
.choice:has(input:checked), .choice.selected { border-color: var(--brand-500); background: var(--tint); color: var(--tint-ink); }
.choice input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--brand-600); }
.choice .price { margin-left: auto; font-weight: 800; color: var(--tint-ink); white-space: nowrap; }
.choice small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* price summary line above submit buttons */
.price-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--tint); color: var(--tint-ink); font-weight: 700; margin: 6px 0 16px; }
.price-line strong { font-size: 18px; }

/* ---------------------------------------------------------------- alerts & badges */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; margin-bottom: 18px;
}
.alert i { margin-top: 3px; }
.alert-success { color: var(--success); background: var(--success-bg); border-color: var(--success-line); }
.alert-error   { color: var(--danger);  background: var(--danger-bg);  border-color: var(--danger-line); }
.alert-warning { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-line); }
.alert-info    { color: var(--info);    background: var(--info-bg);    border-color: var(--info-line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-danger  { color: var(--danger);  background: var(--danger-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-brand   { color: var(--tint-ink); background: var(--tint); }

/* =========================================================================
   PUBLIC SITE
   ========================================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
:root[data-theme="dark"] .site-nav { background: rgba(8, 19, 15, .82); }
.site-nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.site-nav .brand-logo { height: 42px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { background: var(--tint); color: var(--tint-ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .nav-menu {
    position: absolute; top: 74px; left: 0; right: 0; padding: 16px 20px 22px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; flex-direction: column; align-items: stretch; gap: 14px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { flex: 1; }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; gap: 24px; } }

/* hero */
.hero {
  position: relative; overflow: hidden; color: #e9f5ef;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(217, 166, 58, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(63, 154, 118, .35), transparent 60%),
    linear-gradient(160deg, var(--brand-800) 0%, var(--brand-950) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero .eyebrow { color: var(--gold-400); }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-400), #f6d98d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: #c4dcd1; max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #b5d0c3; font-size: 14px; font-weight: 600; list-style: none; padding: 0; margin: 0; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--gold-400); }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 44px; }
}

/* product preview in the hero */
.preview { position: relative; max-width: 460px; margin-left: auto; width: 100%; }
.preview-card {
  position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
:root[data-theme="dark"] .preview-card { background: #10231b; color: var(--ink); }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.preview-head img { height: 28px; }
.preview-id { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: var(--brand-50); margin-bottom: 14px; }
:root[data-theme="dark"] .preview-id { background: var(--surface-2); }
.preview-avatar { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); color: #fff; font-size: 24px; }
.preview-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-rows div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.preview-rows small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.preview-rows strong { font-size: 14px; }
.skeleton { display: inline-block; height: 9px; border-radius: 6px; background: var(--line); }
.preview-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-size: 13px; font-weight: 700;
}
:root[data-theme="dark"] .preview-chip { background: #142820; }
.preview-chip small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.preview-chip.one { left: -36px; bottom: 54px; }
.preview-chip.two { right: -22px; top: -50px; }
@media (max-width: 960px) { .preview { margin: 0 auto; } .preview-chip.one { left: -8px; } .preview-chip.two { right: -6px; } }

/* sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 640px) { .section { padding: 68px 0; } }

/* pillar strip (the four promises from the brand sheet) */
.pillars { position: relative; margin-top: -44px; z-index: 2; }
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.pillar { display: flex; align-items: center; gap: 14px; padding: 22px 24px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar strong { display: block; font-size: 15px; }
.pillar span { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

/* service cards */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 26px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
:root[data-theme="dark"] .service:hover { border-color: var(--brand-600); }
.service h3 { font-size: 18px; margin: 4px 0 0; }
.service p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.service .more { font-weight: 700; font-size: 14px; color: var(--tint-ink); display: inline-flex; align-items: center; gap: 6px; }
.service .more i { transition: transform .2s; }
.service:hover .more i { transform: translateX(4px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 20px; right: 22px; font-size: 34px; font-weight: 800; color: var(--line); letter-spacing: -.04em;
}
.step h3 { font-size: 17px; margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: grid; gap: 22px; }
.feature { display: flex; gap: 16px; }
.feature h3 { font-size: 16.5px; margin: 2px 0 4px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.showcase {
  position: relative; border-radius: var(--radius-xl); padding: 40px; overflow: hidden; color: #e9f5ef;
  background: radial-gradient(500px 300px at 100% 0%, rgba(217, 166, 58, .28), transparent 60%), linear-gradient(160deg, var(--brand-700), var(--brand-950));
}
.showcase img { width: 120px; margin-bottom: 26px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.showcase h3 { color: #fff; font-size: 26px; }
.showcase p { color: #b9d3c7; }
.showcase-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.showcase-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.showcase-list i { color: var(--gold-400); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.package { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.package.featured { border: 2px solid var(--brand-500); box-shadow: var(--shadow); }
.package h3 { font-size: 20px; margin-bottom: 6px; }
.package > p { color: var(--muted); font-size: 14.5px; }
.package ul { list-style: none; padding: 0; margin: 6px 0 26px; display: grid; gap: 11px; flex: 1; }
.package li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.package li i { color: var(--brand-500); margin-top: 4px; }
@media (max-width: 960px) { .packages { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .faq details[open] { border-color: var(--brand-600); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--tint-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* call-to-action band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: var(--radius-xl); color: #fff;
  background: radial-gradient(500px 260px at 100% 100%, rgba(217, 166, 58, .35), transparent 60%), linear-gradient(135deg, var(--brand-700), var(--brand-900));
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.cta-band p { color: #c4dcd1; margin: 0; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.contact-card:hover { text-decoration: none; border-color: var(--brand-200); box-shadow: var(--shadow); }
.contact-card strong { font-size: 16px; }
.contact-card span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--brand-950); color: #a9c3b7; padding: 72px 0 28px; margin-top: 96px; }
.site-footer a { color: #d3e6dc; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-brand p { margin: 16px 0 0; max-width: 320px; font-size: 14.5px; }
.footer-brand .tagline { color: var(--gold-400); font-weight: 700; font-style: italic; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: 28px; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.06); color: #fff; text-decoration: none; }

/* reveal on scroll (only when JS has marked the page ready) */
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* =========================================================================
   AUTH PAGES (login, register, password reset)
   ========================================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  position: relative; overflow: hidden; color: #e3f1e9; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(217, 166, 58, .25), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(63, 154, 118, .35), transparent 60%),
    linear-gradient(160deg, var(--brand-800), var(--brand-950));
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 26px 26px;
}
.auth-aside > * { position: relative; }
.auth-aside .mark { width: 92px; margin-bottom: 28px; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .35)); }
.auth-aside h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.03em; max-width: 420px; }
.auth-aside h2 em { font-style: normal; color: var(--gold-400); }
.auth-aside p { color: #b9d3c7; max-width: 420px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.auth-points i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--gold-400); }
.auth-aside small { color: #8fb0a2; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 48px 24px; background: var(--surface); }
.auth-form { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-form .brand-logo { height: 46px; margin-bottom: 34px; }
.auth-form h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); margin-bottom: 28px; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--muted); font-size: 14.5px; }
.auth-switch a { font-weight: 700; }
.auth-top { position: absolute; top: 18px; right: 18px; display: flex; gap: 8px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; padding-top: 72px; }
}

/* =========================================================================
   LOGGED-IN APP SHELL (dashboard and customer pages)
   ========================================================================= */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 16px;
  background: var(--brand-950); color: #a9c3b7;
}
.app-sidebar .brand { padding: 4px 10px 22px; }
.app-sidebar .brand-mark { height: 36px; }
.side-label { padding: 14px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6f9484; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
  color: #c2d8cd; font-weight: 600; font-size: 14.5px;
}
.side-link i { width: 18px; text-align: center; color: #7fb39b; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.side-link.active { background: linear-gradient(90deg, rgba(217, 166, 58, .2), rgba(217, 166, 58, .04)); color: #fff; box-shadow: inset 3px 0 0 var(--gold-400); }
.side-link.active i { color: var(--gold-400); }
.side-foot { margin-top: auto; padding-top: 16px; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: rgba(245, 248, 246, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .app-topbar { background: rgba(8, 19, 15, .85); }
.app-topbar .brand { display: none; }
.app-topbar .brand-mark { height: 32px; }
.topbar-title { font-size: 18px; font-weight: 800; margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; }
.user-chip:hover { text-decoration: none; border-color: var(--brand-400); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); color: #fff; font-size: 13px; font-weight: 800; }
.app-content { padding: 28px; width: 100%; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--muted); }

.app-backdrop { display: none; }
.bottom-nav { display: none; }

@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 200; transform: translateX(-100%); transition: transform .25s ease; }
  .app-sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .app-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(4, 18, 13, .5); backdrop-filter: blur(2px); }
  .app-backdrop.open { display: block; }
  .app-topbar { padding: 12px 16px; }
  .app-topbar .brand { display: inline-flex; }
  .topbar-title { display: none; }
  .user-chip .name { display: none; }
  .user-chip { padding: 3px; }
  .app-content { padding: 18px 16px 100px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--muted); }
  .bottom-nav a i { font-size: 18px; }
  .bottom-nav a.active, .bottom-nav a:hover { color: var(--tint-ink); text-decoration: none; }
  .app .whatsapp-fab { bottom: 84px; width: 50px; height: 50px; font-size: 24px; }
}
@media (min-width: 1025px) { .menu-btn { display: none; } }

/* wallet hero card */
.wallet {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 28px; color: #fff;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(217, 166, 58, .38), transparent 62%),
    linear-gradient(140deg, var(--brand-600) 0%, var(--brand-800) 55%, var(--brand-950) 100%);
  box-shadow: var(--shadow-lg);
}
.wallet::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 220px; height: 240px; opacity: .08;
  background: url("../img/idtrust-mark.png") center / contain no-repeat; pointer-events: none;
}
.wallet > * { position: relative; z-index: 1; }
.wallet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wallet-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #cfe5da; }
.wallet-label button { background: rgba(255, 255, 255, .14); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; }
.wallet-balance { font-size: clamp(32px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 22px; font-variant-numeric: tabular-nums; }
.wallet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.accounts { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 20px; scrollbar-width: thin; }
.account {
  flex: 0 0 auto; min-width: 230px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
}
.account small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #cfe5da; }
.account .num { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: .04em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.account .num button { background: rgba(255, 255, 255, .18); border: 0; color: #fff; border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: 0; }
.account .name { font-size: 12.5px; color: #e0efe7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick a {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px;
}
.quick a:hover { text-decoration: none; border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.quick .icon-tile { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }

.notice-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--gold-100); color: #6b4d0f; border: 1px solid #f1dca4; margin-bottom: 28px; font-weight: 600; font-size: 14px; }
:root[data-theme="dark"] .notice-bar { background: rgba(217, 166, 58, .1); color: #f3d68c; border-color: rgba(217, 166, 58, .25); }
.notice-bar i { font-size: 18px; color: var(--gold-600); }

.section-label { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.section-label h2 { font-size: 17px; font-weight: 800; margin: 0; }
.section-label span { font-size: 13px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-bottom: 32px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
:root[data-theme="dark"] .tile:hover { border-color: var(--brand-600); }
.tile strong { font-size: 14.5px; }
.tile small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.tile .icon-tile { width: 44px; height: 44px; font-size: 18px; }
.tile.disabled { opacity: .55; pointer-events: none; }
.tile .badge { position: absolute; top: 12px; right: 12px; }
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tile { align-items: center; text-align: center; padding: 14px 6px; gap: 8px; }
  .tile small { display: none; }
  .tile strong { font-size: 12px; }
  .tile .badge { position: static; font-size: 9.5px; padding: 2px 6px; }
}

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.stat strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat.good strong { color: var(--success); }
.stat.bad strong { color: var(--danger); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat strong { font-size: 18px; } }

/* toolbar + search */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input-wrap { flex: 1; min-width: 220px; }

/* data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 13px 16px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.amount-in { color: var(--success); }
.amount-out { color: var(--danger); }
@media (max-width: 700px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table.stack tr:last-child { border-bottom: 0; }
  .table.stack td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; text-align: right; }
  .table.stack td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 12.5px; text-align: left; }
}

/* activity list (history entries) */
.activity { display: grid; gap: 12px; }
.activity-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.activity-item .title { font-weight: 800; font-size: 15px; }
.activity-item .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.activity-item .meta b { color: var(--ink-soft); font-weight: 700; }
.activity-item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.activity-item .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.activity-item .note { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .activity-item { grid-template-columns: auto minmax(0, 1fr); }
  .activity-item .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* tabs (links) */
.tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--tint-ink); background: var(--tint); }
.tabs a.active { background: var(--primary); color: #fff; }
.tabs .count { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--ink-soft); text-align: center; }
.tabs a.active .count { background: rgba(255, 255, 255, .22); color: #fff; }

/* old → new value display */
.change { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.change .old { color: var(--muted); text-decoration: line-through; }
.change .new { color: var(--success); font-weight: 700; }
.change i { color: var(--muted); font-size: 11px; }

/* pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.pager a:hover { text-decoration: none; border-color: var(--brand-400); color: var(--tint-ink); }
.pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* empty state */
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: 18px; background: var(--surface); }
.empty .icon-tile { margin: 0 auto 14px; width: 56px; height: 56px; font-size: 22px; }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 auto 18px; max-width: 360px; }

/* verification result panel. The class names inside come from the PHP
   handlers (success-container, action-buttons, btn-view, ...), so they are
   styled here rather than renamed in the payment logic. */
.result { margin-top: 20px; padding: 22px; border-radius: 18px; border: 1px solid; }
.result-success { background: var(--success-bg); border-color: var(--success-line); color: var(--ink); }
.result-error   { background: var(--danger-bg);  border-color: var(--danger-line);  color: var(--danger); font-weight: 600; }
.result-info    { background: var(--surface);    border-color: var(--line);         color: var(--ink); }
.result h3 { font-size: 18px; margin-bottom: 6px; color: var(--success); }
.result .success-container, .result .success-card { text-align: center; }
.result .success-icon { display: block; font-size: 36px; color: var(--success); margin-bottom: 8px; }
.result .success-container p { color: var(--ink-soft); }
.result .action-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0 8px; }
.result .btn-view, .result .btn-download, .result .btn-print {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px;
  padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1px solid transparent;
}
.result .btn-view { background: var(--surface); color: var(--ink); border-color: var(--line); }
.result .btn-download, .result .btn-print { background: var(--primary); color: #fff; }
.result .btn-view:hover, .result .btn-download:hover { text-decoration: none; filter: brightness(1.05); }
.result .deduction-info { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.result .personal-info-grid { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 14px 0; }
.result .info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.result .info-row:last-child { border-bottom: 0; }
.result .info-label { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.result .info-value { display: flex; align-items: center; gap: 8px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.result .copy-field-btn, .result .copy-all-info-btn { border: 1px solid var(--line); background: var(--surface); color: var(--tint-ink); border-radius: 8px; cursor: pointer; font: inherit; }
.result .copy-field-btn { padding: 3px 8px; font-size: 11px; }
.result .copy-all-info-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; font-weight: 700; font-size: 13.5px; }
.result .copy-field-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }
.result .match-selection h3 { color: var(--ink); margin-bottom: 12px; }
.result .match-item { display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.result .match-item:has(input:checked) { border-color: var(--brand-500); background: var(--tint); }
.result .match-item input { accent-color: var(--brand-600); width: 18px; height: 18px; }
.result .match-item label { cursor: pointer; }
.result .btn-select-match { width: 100%; margin-top: 10px; padding: 13px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* slip preview */
.slip-preview { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface-2); text-align: center; }
.slip-preview img { margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow-sm); max-height: 320px; object-fit: contain; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; font-size: 14px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list i { color: var(--success); }

.verify-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .verify-grid { grid-template-columns: minmax(0, 1fr); } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(4, 18, 13, .55); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 540px; max-height: 85vh; overflow-y: auto; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.modal-box h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.announcement { padding: 14px 0; border-bottom: 1px solid var(--line); }
.announcement:last-of-type { border-bottom: 0; margin-bottom: 14px; }
.announcement strong { display: block; margin-bottom: 4px; }
.announcement p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 600; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px;
  background: var(--brand-900); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: var(--gold-400); }
@media (max-width: 1024px) { .toast { bottom: 96px; } }

/* admin review pages: facts list, change summary, decision panel */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 16px 22px; margin: 0; }
.facts > div { min-width: 0; }
.facts dt { margin-bottom: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.facts dd.none { color: var(--muted); font-weight: 500; }
.facts .wide { grid-column: 1 / -1; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .review-grid { grid-template-columns: minmax(0, 1fr); } }
.review-grid .card + .card { margin-top: 18px; }
.review-side { position: sticky; top: 88px; display: grid; gap: 18px; }
@media (max-width: 1100px) { .review-side { position: static; } }
.change-hero { display: grid; gap: 12px; }
.change-hero .row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.change-hero small { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.change-hero .old { color: var(--muted); font-weight: 600; text-decoration: line-through; overflow-wrap: anywhere; }
.change-hero .new { color: var(--success); font-weight: 800; overflow-wrap: anywhere; }
.change-hero .row > i { color: var(--muted); }
.decision { display: grid; gap: 10px; }
.decision form { margin: 0; }
.decision textarea { min-height: 84px; resize: vertical; }
.thumb { display: block; max-width: 220px; border-radius: 12px; border: 1px solid var(--line); }
.cell-sub { display: block; color: var(--muted); font-size: 12.5px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.94); color: #fff; text-decoration: none; }
:root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .btn-danger:hover { color: #2a0b07; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* NIN validation: automatic / manual mode cards */
.mode-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 720px) { .mode-cards { grid-template-columns: minmax(0, 1fr); } }
.mode-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mode-card:hover { text-decoration: none; border-color: var(--brand-400); }
.mode-card strong { display: block; font-size: 16px; }
.mode-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.mode-card > span:nth-child(2) { flex: 1; min-width: 0; }
.mode-card.active { border-color: var(--brand-500); background: var(--tint); box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06)); }
.mode-card.off { opacity: .6; cursor: not-allowed; }
.mode-card.off:hover { border-color: var(--line); }

/* Dashboard notice ticker: text slides in from the right and leaves to the left */
.notice-bar.ticker { overflow: hidden; }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.ticker-text { display: inline-block; padding-left: 100%; animation: idtrust-ticker var(--ticker-duration, 20s) linear infinite; }
.ticker:hover .ticker-text { animation-play-state: paused; }
@keyframes idtrust-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* Devices set to reduce motion still get the ticker, just at half speed (hover pauses it) */
@media (prefers-reduced-motion: reduce) {
  .ticker-text { animation-duration: calc(var(--ticker-duration, 20s) * 2); }
}

/* Red warning pop-up (BVN modification name-correction notice) */
.modal-box.notice-danger { border: 2px solid var(--danger); padding: 0; overflow: hidden; max-width: 520px; }
.notice-danger-head { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; background: var(--danger); color: #fff; }
.notice-danger-head h2 { margin: 0; color: #fff; font-size: 20px; letter-spacing: .12em; }
.notice-danger-head i { font-size: 22px; }
.notice-danger p { margin: 0; padding: 20px 22px 6px; font-size: 15.5px; line-height: 1.6; color: var(--danger); text-align: center; }
.notice-danger p strong { color: var(--danger); }
.notice-danger-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 16px 22px 22px; }
:root[data-theme="dark"] .notice-danger-head { color: #2a0b07; }
:root[data-theme="dark"] .notice-danger-head h2 { color: #2a0b07; }

/* =========================================================================
   NIN verification (V1 + V2): partials/nin_verify_form.php
   ========================================================================= */
.nv-version { display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; color: var(--gold-600); background: var(--gold-100); }
:root[data-theme="dark"] .nv-version { color: var(--gold-400); background: rgba(217, 166, 58, .14); }
.nv-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nv-switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.nv-switch a { padding: 6px 16px; border-radius: 9px; font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; }
.nv-switch a:hover { color: var(--tint-ink); text-decoration: none; }
.nv-switch a.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

.nv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.nv-main { display: grid; gap: 20px; min-width: 0; }
.nv-side { position: sticky; top: 88px; display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1100px) { .nv-layout { grid-template-columns: minmax(0, 1fr); } .nv-side { position: static; } }

.nv-step { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.nv-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 14px; }

/* verification method tiles */
.nv-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 720px) { .nv-methods { grid-template-columns: minmax(0, 1fr); } }
.nv-method { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.nv-method:hover { border-color: var(--brand-400); }
.nv-method input { position: absolute; opacity: 0; pointer-events: none; }
.nv-method-icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--tint-ink); font-size: 17px; }
.nv-method-text { min-width: 0; }
.nv-method-text strong { display: block; font-size: 14.5px; color: var(--ink); }
.nv-method-text small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.nv-tick { margin-left: auto; color: var(--brand-500); font-size: 18px; opacity: 0; transition: opacity .15s; }
.nv-method:has(input:checked) { border-color: var(--brand-500); background: var(--tint); box-shadow: 0 0 0 3px rgba(34, 128, 96, .12); }
.nv-method:has(input:checked) .nv-method-icon { background: var(--primary); color: #fff; }
.nv-method:has(input:checked) .nv-tick { opacity: 1; }
.nv-method:has(input:focus-visible) { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.nv-fields { margin-bottom: 0; }
.nv-big-input { font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.hint.err { color: var(--danger); font-weight: 700; }

/* slip cards */
.slip-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.slip-card { position: relative; display: flex; flex-direction: column; margin: 0; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.slip-card:hover { border-color: var(--brand-400); transform: translateY(-2px); box-shadow: var(--shadow); }
.slip-card:has(input:checked) { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(34, 128, 96, .14), var(--shadow); }
.slip-card:has(input:focus-visible) { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.slip-card.is-off { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.slip-card.is-off:hover { border-color: var(--line); }
.slip-thumb { position: relative; display: grid; place-items: center; height: 150px; padding: 12px; background: linear-gradient(160deg, var(--surface-2), var(--brand-100)); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .slip-thumb { background: linear-gradient(160deg, var(--surface-2), #0b1a14); }
.slip-thumb img { max-width: 100%; max-height: 124px; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 16px -6px rgba(16, 35, 27, .35); transition: transform .2s; }
.slip-card:hover .slip-thumb img { transform: scale(1.04); }
.slip-tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--gold-400); color: var(--brand-950); font-size: 11px; font-weight: 800; }
.slip-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--brand-700); box-shadow: var(--shadow-sm); cursor: zoom-in; font-size: 13px; }
.slip-zoom:hover { background: #fff; color: var(--brand-900); }
.info-mock { display: flex; gap: 12px; align-items: center; width: 82%; padding: 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 6px 16px -6px rgba(16, 35, 27, .35); }
.info-mock-photo { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 54px; border-radius: 8px; background: var(--brand-100); color: var(--brand-600); font-size: 22px; }
.info-mock-lines { flex: 1; display: grid; gap: 7px; }
.info-mock-lines i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.info-mock-lines i:nth-child(1) { width: 85%; background: var(--brand-200); }
.info-mock-lines i:nth-child(2) { width: 65%; }
.info-mock-lines i:nth-child(3) { width: 75%; }
.info-mock-lines i:nth-child(4) { width: 45%; }
.slip-body { flex: 1; padding: 14px 16px 6px; }
.slip-body strong { display: block; font-size: 15px; color: var(--ink); }
.slip-body small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.slip-features { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-soft); }
.slip-features i { color: var(--success); font-size: 11px; margin-right: 4px; }
.slip-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 14px; }
.slip-price { font-size: 17px; font-weight: 800; color: var(--tint-ink); }
.slip-card.is-off .slip-price { font-size: 13px; color: var(--muted); }
.slip-radio { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); color: transparent; font-size: 11px; transition: all .15s; }
.slip-card:has(input:checked) .slip-radio { border-color: var(--primary); background: var(--primary); color: #fff; }

/* summary */
.nv-sum-slip { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.nv-sum-slip strong { display: block; font-size: 14.5px; }
.nv-sum-slip small { display: block; font-size: 12.5px; color: var(--muted); }
.nv-sum-thumb { flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--brand-100); color: var(--brand-600); font-size: 20px; }
.nv-sum-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nv-sum-rows { margin: 0 0 14px; display: grid; gap: 2px; }
.nv-sum-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; font-size: 14px; }
.nv-sum-rows dt { color: var(--muted); }
.nv-sum-rows dd { margin: 0; font-weight: 700; }
.nv-sum-total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px !important; }
.nv-sum-total dd { font-size: 17px; font-weight: 800; color: var(--tint-ink); }
.nv-sum-total dd.neg { color: var(--danger); }
.nv-low { margin: 0 0 14px; font-size: 13.5px; }
.nv-low a { font-weight: 800; color: inherit; text-decoration: underline; }
#verifyBtn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.nv-assure { text-align: center; margin-top: 10px; }
.nv-help .check-list { font-size: 13.5px; }

/* slip preview pop-up */
.slip-modal-box { max-width: 620px; }
.slip-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.slip-modal-head h2 { margin: 0; }
#slipModalImg { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

/* VNIN slip: wide document, so its card spans the full row */
.slip-card[data-slip="vnin"] { grid-column: 1 / -1; }
.slip-card[data-slip="vnin"] .slip-thumb img { max-height: 124px; }

/* phones: two compact slip cards per row */
@media (max-width: 560px) {
  .slip-cards { gap: 10px; }
  .slip-thumb { height: 92px; padding: 8px; }
  .slip-thumb img { max-height: 76px; }
  .slip-tag { top: 6px; left: 6px; font-size: 10px; padding: 2px 7px; }
  .slip-zoom { width: 28px; height: 28px; right: 6px; bottom: 6px; }
  .info-mock { width: 90%; padding: 8px; gap: 8px; }
  .info-mock-photo { width: 30px; height: 36px; font-size: 14px; }
  .slip-body { padding: 10px 12px 4px; }
  .slip-body strong { font-size: 13.5px; }
  .slip-body small { font-size: 11.5px; }
  .slip-features { display: none; }
  .slip-foot { padding: 8px 12px 12px; }
  .slip-price { font-size: 15px; }
  .slip-card[data-slip="vnin"] .slip-thumb img { max-height: 76px; }
}
