/* AFTECH Agad & Apply v2.7 — UI Standard v1.2.1 (Tokens + Self-Hosted DM Sans / DM Mono) */
@font-face {
  font-family: "DM Sans";
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/dm-mono.woff2") format("woff2");
}

[x-cloak] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font-sans, "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--ink, #0f1b3d);
  background: var(--surface-alt, #f6f8fd);
  -webkit-font-smoothing: antialiased;
}
body.af-page { background: var(--surface-alt, #f6f8fd); display: flex; flex-direction: column; min-height: 100vh; }
main.af-main { flex: 1; width: 100%; }

.num, .font-mono, .big-num, .ref-pill, .plan-speed, .plan-price, .agent-stat-n, .kpi {
  font-family: var(--font-num, "DM Mono", ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
}

.af-header {
  background: var(--brand, #1c3aa9);
  border-bottom: 1px solid var(--brand-hover, #1b3696);
  box-shadow: var(--shadow-1);
  color: #ffffff;
}
.af-header-sub { color: #e9eefc; font-size: 0.75rem; font-weight: 600; }

.af-shell { max-width: 44rem; margin: 0 auto; padding: 1rem; }
.af-card {
  background: var(--surface, #ffffff);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-1);
  padding: 1.25rem;
  border: 1px solid var(--line, #d9dfee);
}
.af-card-tint {
  background: var(--brand-tint, #e9eefc);
  border: 1px solid var(--line, #d9dfee);
}

.af-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; border: 0; border-radius: var(--radius-sm, 6px); padding: 0.875rem 1.25rem;
  min-height: var(--tap-main, 54px);
  background: var(--brand, #1c3aa9);
  color: #ffffff; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background var(--motion-fast, 100ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.af-btn-primary:hover:not(:disabled) { background: var(--brand-hover, #1b3696); }
.af-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.af-btn-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  border: 0; border-radius: var(--radius-sm, 6px); padding: 0.625rem 1rem;
  min-height: var(--tap-min, 44px);
  background: var(--brand, #1c3aa9);
  color: #ffffff; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background var(--motion-fast, 100ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.af-btn-brand:hover:not(:disabled) { background: var(--brand-hover, #1b3696); }
.af-btn-brand:disabled { opacity: 0.5; cursor: not-allowed; }

.af-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  border: 1px solid var(--line, #d9dfee); border-radius: var(--radius-sm, 6px); padding: 0.625rem 1rem;
  min-height: var(--tap-min, 44px);
  background: var(--surface, #ffffff);
  color: var(--ink, #0f1b3d); font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background var(--motion-fast, 100ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.af-btn-secondary:hover:not(:disabled) { background: var(--brand-tint, #e9eefc); }
.af-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.af-btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  border: 1px solid var(--danger-ink, #991b1b); border-radius: var(--radius-sm, 6px); padding: 0.625rem 1rem;
  min-height: var(--tap-min, 44px);
  background: var(--danger-bg, #fee2e2);
  color: var(--danger-ink, #991b1b); font-weight: 700; cursor: pointer;
}
.af-btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

.field {
  width: 100%; border: 1px solid var(--line, #d9dfee); border-radius: var(--radius-sm, 6px); padding: 0.75rem 0.875rem;
  font-size: 1rem; background: var(--surface, #ffffff); color: var(--ink, #0f1b3d); min-height: 46px;
}
.field:focus { outline: 2px solid var(--focus, #1c3aa9); outline-offset: 1px; border-color: var(--focus, #1c3aa9); }
.field:disabled { background: var(--neutral-bg, #eceff7); color: var(--muted, #47526b); }
.req::after { content: " *"; color: var(--danger-ink, #991b1b); }
.sec-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: var(--ink, #0f1b3d); }
.lbl { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink, #0f1b3d); margin-bottom: 0.25rem; }

/* Token Status Banners & Alerts (replaces broken purged Tailwind classes) */
.af-banner-warn, .af-alert-warn {
  background: var(--warn-bg, #fef3c7);
  border: 1px solid var(--warn-ink, #92400e);
  color: var(--warn-ink, #92400e);
  border-radius: var(--radius-md, 10px);
}
.af-alert-danger {
  background: var(--danger-bg, #fee2e2);
  border: 1px solid var(--danger-ink, #991b1b);
  color: var(--danger-ink, #991b1b);
  border-radius: var(--radius-md, 10px);
}
.af-alert-ok {
  background: var(--ok-bg, #dcfce7);
  border: 1px solid var(--ok-ink, #166534);
  color: var(--ok-ink, #166534);
  border-radius: var(--radius-md, 10px);
}
.af-banner-brand {
  background: var(--brand-tint, #e9eefc);
  border: 1px solid var(--brand, #1c3aa9);
  color: var(--ink, #0f1b3d);
  border-radius: var(--radius-md, 10px);
}

.af-badge-brand { background: var(--brand-tint, #e9eefc); color: var(--link, #1b3696); border: 1px solid var(--line, #d9dfee); }
.af-badge-warn { background: var(--warn-bg, #fef3c7); color: var(--warn-ink, #92400e); border: 1px solid var(--warn-ink, #92400e); }
.af-badge-ok { background: var(--ok-bg, #dcfce7); color: var(--ok-ink, #166534); border: 1px solid var(--ok-ink, #166534); }
.af-badge-danger { background: var(--danger-bg, #fee2e2); color: var(--danger-ink, #991b1b); border: 1px solid var(--danger-ink, #991b1b); }
.af-badge-neutral { background: var(--neutral-bg, #eceff7); color: var(--neutral-ink, #36405a); border: 1px solid var(--line, #d9dfee); }

.af-empty {
  background: var(--surface-alt, #f6f8fd);
  border: 1px dashed var(--line, #d9dfee);
  border-radius: var(--radius-md, 10px);
  padding: 1.25rem;
  text-align: center;
  color: var(--muted, #47526b);
  font-size: 0.875rem;
}

/* Pagination Bar */
.af-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding-top: 0.75rem; border-top: 1px solid var(--line, #d9dfee);
  font-size: 0.75rem; color: var(--muted, #47526b);
}
.af-pager-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.af-pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap-min, 44px); padding: 0.5rem 0.875rem;
  border: 1px solid var(--line, #d9dfee); border-radius: var(--radius-sm, 6px);
  background: var(--surface, #ffffff); color: var(--ink, #0f1b3d);
  font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.af-pager-btn:hover:not(:disabled) { background: var(--brand-tint, #e9eefc); }
.af-pager-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.af-pager-select {
  min-height: var(--tap-min, 44px); padding: 0.375rem 0.625rem;
  border: 1px solid var(--line, #d9dfee); border-radius: var(--radius-sm, 6px);
  background: var(--surface, #ffffff); color: var(--ink, #0f1b3d);
  font-size: 0.75rem; font-weight: 700;
}

/* Plan grids & cards */
.plan-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.plan-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; max-width: 28rem; margin: 1rem auto 0; }
@media (max-width: 560px) {
  .plan-grid-3, .plan-grid-2 { grid-template-columns: 1fr; max-width: none; }
}
.plan-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 7.75rem; padding: 1.35rem 0.75rem 0.9rem; border: 2px solid var(--line, #d9dfee);
  border-radius: var(--radius-md, 10px); background: var(--surface, #ffffff); cursor: pointer;
  transition: border-color var(--motion-fast, 100ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
              background var(--motion-fast, 100ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.plan-card:hover { border-color: var(--brand, #1c3aa9); }
.plan-card[aria-pressed="true"], .plan-card.is-selected {
  border-color: var(--brand, #1c3aa9);
  background: var(--brand-tint, #e9eefc);
}
.plan-card.is-rec-glow {
  border-color: var(--ok-ink, #166534);
}
.plan-speed { font-size: 1.5rem; line-height: 1.75rem; font-weight: 700; color: var(--ink, #0f1b3d); }
.plan-name { font-size: 0.75rem; letter-spacing: 0.03em; color: var(--link, #1b3696); margin-top: 0.2rem; font-weight: 700; }
.plan-price { font-size: 1.125rem; font-weight: 700; color: var(--ink, #0f1b3d); margin-top: 0.4rem; }
.plan-mo { font-size: 0.75rem; font-weight: 600; color: var(--muted, #47526b); }
.plan-chip {
  display: inline-block; margin-top: 0.35rem; font-size: 0.75rem; font-weight: 600;
  padding: 0.15rem 0.55rem; border-radius: var(--radius-pill, 999px);
  background: var(--brand-tint, #e9eefc); color: var(--link, #1b3696);
}
.plan-note-chip {
  display: inline-block; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 600;
  padding: 0.15rem 0.55rem; border-radius: var(--radius-pill, 999px);
  background: var(--warn-bg, #fef3c7); color: var(--warn-ink, #92400e); border: 1px solid var(--warn-ink, #92400e);
}
.plan-badge {
  position: absolute; top: -0.65rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill, 999px); background: var(--brand, #1c3aa9);
  color: #ffffff;
}
.plan-badge.is-rec { background: var(--ok-ink, #166534); color: #ffffff; }

/* GPS & NAP Radar */
.gps-box { border: 2px dashed var(--line, #d9dfee); border-radius: var(--radius-md, 10px); padding: 1rem; text-align: center; background: var(--surface-alt, #f6f8fd); }
.gps-box[data-state="ok"] { border-color: var(--ok-ink, #166534); background: var(--ok-bg, #dcfce7); color: var(--ok-ink, #166534); }
.gps-box[data-state="error"] { border-color: var(--danger-ink, #991b1b); background: var(--danger-bg, #fee2e2); color: var(--danger-ink, #991b1b); }
.gps-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
.gps-btn {
  border: 1px solid var(--brand, #1c3aa9); background: var(--surface, #ffffff); color: var(--link, #1b3696);
  font-weight: 700; border-radius: var(--radius-sm, 6px); padding: 0.625rem 0.5rem; min-height: var(--tap-min, 44px); cursor: pointer;
}
.gps-btn-main { background: var(--brand, #1c3aa9); color: #ffffff; border-color: var(--brand, #1c3aa9); }
.gps-btn-main:hover:not(:disabled) { background: var(--brand-hover, #1b3696); }
.gps-map { height: 260px; width: 100%; border-radius: var(--radius-md, 10px); border: 1px solid var(--line, #d9dfee); overflow: hidden; position: relative; z-index: 0; }
.gps-pin { background: none; border: none; }
.gps-pin span {
  display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--danger-ink, #991b1b);
  border: 3px solid #ffffff; transform: rotate(-45deg); box-shadow: var(--shadow-1);
}

.nap-pill {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill, 999px); font-size: 0.75rem; font-weight: 700; line-height: 1.2;
}
.nap-pill[data-tier="green"] { background: var(--ok-bg, #dcfce7); color: var(--ok-ink, #166534); border: 1px solid var(--ok-ink, #166534); }
.nap-pill[data-tier="amber"] { background: var(--warn-bg, #fef3c7); color: var(--warn-ink, #92400e); border: 1px solid var(--warn-ink, #92400e); }
.nap-pill[data-tier="red"] { background: var(--danger-bg, #fee2e2); color: var(--danger-ink, #991b1b); border: 1px solid var(--danger-ink, #991b1b); }
.nap-pill[data-tier="loading"] { background: var(--brand-tint, #e9eefc); color: var(--link, #1b3696); border: 1px solid var(--line, #d9dfee); }

/* Docs & Buttons */
.doc-btn {
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--brand, #1c3aa9);
  color: var(--link, #1b3696); background: var(--surface, #ffffff); font-weight: 600; border-radius: var(--radius-sm, 6px);
  padding: 0.625rem 0.5rem; min-height: var(--tap-min, 44px); cursor: pointer; text-align: center;
}
.doc-note { color: var(--muted, #47526b); }
.doc-note[data-ok="yes"] { color: var(--ok-ink, #166534); font-weight: 600; }

/* Payment & QR */
.pay-badge {
  display: inline-block; font-weight: 700; font-size: 0.875rem; border-radius: var(--radius-pill, 999px);
  padding: 0.25rem 0.875rem; background: var(--neutral-bg, #eceff7); color: var(--neutral-ink, #36405a);
}
.pay-badge[data-state="waiting"] { background: var(--warn-bg, #fef3c7); color: var(--warn-ink, #92400e); border: 1px solid var(--warn-ink, #92400e); }
.pay-badge[data-state="paid"] { background: var(--ok-bg, #dcfce7); color: var(--ok-ink, #166534); border: 1px solid var(--ok-ink, #166534); }
.copy-btn {
  background: var(--ink, #0f1b3d); color: #ffffff; font-weight: 700; border-radius: var(--radius-sm, 6px);
  padding: 0.5rem 1rem; min-height: var(--tap-min, 44px); cursor: pointer; border: 0;
}
.big-num { font-family: var(--font-num, "DM Mono", ui-monospace, monospace); font-weight: 700; letter-spacing: 0.04em; word-break: break-all; user-select: all; }
.inv-qr { display: inline-block; line-height: 0; border: 1px solid var(--line, #d9dfee); border-radius: var(--radius-sm, 6px); background: #ffffff; padding: 0.5rem; }

/* Agent widgets & rows */
.agent-widget { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.agent-stat { background: var(--surface, #ffffff); border: 1px solid var(--line, #d9dfee); border-radius: var(--radius-md, 10px); padding: 0.75rem; }
.agent-stat-n { font-size: 1.5rem; line-height: 1.75rem; font-weight: 700; color: var(--ink, #0f1b3d); }
.agent-stat-n.is-warn { color: var(--warn-ink, #92400e); }
.agent-stat-n.is-ok { color: var(--ok-ink, #166534); }
.agent-stat-l { font-size: 0.75rem; color: var(--muted, #47526b); font-weight: 600; }
.sale-row {
  width: 100%; text-align: left; min-height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 0.75rem; border: 1px solid var(--line, #d9dfee);
  border-radius: var(--radius-md, 10px); padding: 0.625rem 0.75rem; background: var(--surface, #ffffff); cursor: pointer;
}
.sale-row:hover { background: var(--brand-tint, #e9eefc); border-color: var(--brand, #1c3aa9); }
.pill { font-size: 0.75rem; font-weight: 700; border-radius: var(--radius-pill, 999px); padding: 0.15rem 0.625rem; flex: none; }
.pill-paid { background: var(--ok-bg, #dcfce7); color: var(--ok-ink, #166534); border: 1px solid var(--ok-ink, #166534); }
.pill-unpaid { background: var(--warn-bg, #fef3c7); color: var(--warn-ink, #92400e); border: 1px solid var(--warn-ink, #92400e); }

/* Timeline */
.tl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink, #0f1b3d); }
.tl-list .tl-dot {
  width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700; background: var(--neutral-bg, #eceff7); color: var(--neutral-ink, #36405a); flex: none;
}
.tl-list li.tl-done .tl-dot { background: var(--ok-bg, #dcfce7); color: var(--ok-ink, #166534); }
.tl-list li.tl-now { font-weight: 700; color: var(--link, #1b3696); }
.tl-list li.tl-now .tl-dot { background: var(--brand, #1c3aa9); color: #ffffff; }

/* Offline & Toast */
.af-offline {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--danger-bg, #fee2e2); color: var(--danger-ink, #991b1b); border-top: 1px solid var(--danger-ink, #991b1b);
  text-align: center; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600;
}
.af-toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 9500;
  background: var(--ink, #0f1b3d); color: #ffffff; padding: 0.625rem 1rem; border-radius: var(--radius-md, 10px);
  font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow-2);
  max-width: 90vw; text-align: center;
}

/* Dark Admin Palette (aligned with tokens.css [data-theme="dark"]) */
body.admin-dark { background: var(--surface-alt, #0c1120); color: var(--ink, #eef1fa); overflow-x: hidden; }
.adm-header { background: var(--surface, #121829); border-bottom: 1px solid var(--line, #27304a); }
.adm-card { background: var(--surface, #121829); border: 1px solid var(--line, #27304a); border-radius: var(--radius-md, 10px); padding: 1rem; }
.adm-modal-panel { background: var(--raised, #1a2138); border: 1px solid var(--line, #27304a); border-radius: var(--radius-md, 10px); }
.adm-code-box { background: var(--surface-alt, #0c1120); border: 1px solid var(--line, #27304a); border-radius: var(--radius-sm, 6px); }
.adm-input {
  width: 100%; background: var(--surface-alt, #0c1120); color: var(--ink, #eef1fa); border: 1px solid var(--line, #27304a);
  border-radius: var(--radius-sm, 6px); padding: 0.625rem 0.75rem; font-size: 0.95rem; min-height: var(--tap-min, 44px);
}
.adm-input:focus { outline: 2px solid var(--focus, #8fa8ff); outline-offset: 1px; border-color: var(--focus, #8fa8ff); }
.adm-tab {
  min-height: var(--tap-min, 44px); padding: 0.45rem 0.7rem; border-radius: var(--radius-sm, 6px); font-size: 0.8125rem; font-weight: 600;
  color: var(--muted, #a3acc4); background: transparent; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.adm-tab[aria-selected="true"] { background: var(--brand-tint, #1a2550); color: var(--link, #8fa8ff); border-color: var(--brand, #2f55d4); }
.adm-badge {
  display: inline-flex; align-items: center; padding: 0.15rem 0.55rem; border-radius: var(--radius-pill, 999px);
  font-size: 0.75rem; font-weight: 700;
}
.adm-health-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .adm-health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-comp-grid { display: grid; grid-template-columns: 1fr; gap: 0.625rem; }
@media (min-width: 640px) { .adm-comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .adm-comp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-stat-tile { background: var(--raised, #1a2138); border: 1px solid var(--line, #27304a); border-radius: var(--radius-md, 10px); padding: 0.875rem; min-width: 0; }
.adm-row-item { background: var(--surface-alt, #0c1120); border: 1px solid var(--line, #27304a); border-radius: var(--radius-sm, 6px); }
.adm-dot { width: 8px; height: 8px; border-radius: 9999px; flex: none; display: inline-block; }
.adm-dot-ok { background: var(--ok-ink, #86efac); }
.adm-dot-warn { background: var(--warn-ink, #fcd34d); }
.adm-dot-err { background: var(--danger-ink, #fca5a5); }
.adm-pill-ok { background: var(--ok-bg, #052e16); color: var(--ok-ink, #86efac); border: 1px solid var(--ok-ink, #86efac); }
.adm-pill-warn { background: var(--warn-bg, #451a03); color: var(--warn-ink, #fcd34d); border: 1px solid var(--warn-ink, #fcd34d); }
.adm-pill-err { background: var(--danger-bg, #450a0a); color: var(--danger-ink, #fca5a5); border: 1px solid var(--danger-ink, #fca5a5); }
.adm-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line, #27304a); border-radius: var(--radius-md, 10px); background: var(--surface-alt, #0c1120); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.adm-table th {
  text-align: left; padding: 0.625rem 0.75rem; font-size: 0.75rem; font-weight: 700;
  color: var(--muted, #a3acc4); border-bottom: 1px solid var(--line, #27304a); white-space: nowrap;
}
.adm-table th.text-right { text-align: right; }
.adm-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--line, #27304a); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-err-note { margin-top: 0.25rem; font-size: 0.75rem; color: var(--danger-ink, #fca5a5); word-break: break-word; }

/* Sleek Numbered Stepper, Previews, Badges & Corporate Footer */
.af-stepper { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; padding: 0.25rem; }
.af-step-item { display: flex; align-items: center; gap: 0.45rem; flex: none; }
.af-step-num {
  width: 28px; height: 28px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; background: var(--neutral-bg, #eceff7); color: var(--neutral-ink, #36405a);
  transition: background var(--motion-fast, 100ms), color var(--motion-fast, 100ms);
}
.af-step-label { font-size: 0.75rem; font-weight: 700; color: var(--muted, #47526b); }
.af-step-item.is-active .af-step-num { background: var(--brand, #1c3aa9); color: #ffffff; }
.af-step-item.is-active .af-step-label { color: var(--ink, #0f1b3d); }
.af-step-item.is-done .af-step-num { background: var(--ok-bg, #dcfce7); color: var(--ok-ink, #166534); border: 1px solid var(--ok-ink, #166534); }
.af-step-item.is-done .af-step-label { color: var(--ok-ink, #166534); }
.af-step-line { flex: 1; height: 2px; background: var(--line, #d9dfee); border-radius: 9999px; min-width: 12px; }
.af-step-line.is-done { background: var(--ok-ink, #166534); }
.doc-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius-sm, 6px); border: 1px solid var(--line, #d9dfee); flex: none; }
.ref-pill {
  display: inline-block; font-family: var(--font-num, "DM Mono", ui-monospace, monospace); font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.04em; padding: 0.25rem 0.75rem; border-radius: var(--radius-pill, 999px);
  background: var(--brand-tint, #e9eefc); color: var(--link, #1b3696); border: 1px solid var(--line, #d9dfee);
}
.promo-ok { background: var(--ok-bg, #dcfce7); color: var(--ok-ink, #166534); border: 1px solid var(--ok-ink, #166534); border-radius: var(--radius-sm, 6px); padding: 0.375rem 0.625rem; font-size: 0.75rem; font-weight: 700; }
.promo-err { background: var(--danger-bg, #fee2e2); color: var(--danger-ink, #991b1b); border: 1px solid var(--danger-ink, #991b1b); border-radius: var(--radius-sm, 6px); padding: 0.375rem 0.625rem; font-size: 0.75rem; font-weight: 600; }

/* Official Corporate Footer */
.af-footer {
  background: var(--ink, #0f1b3d);
  color: #e9eefc; border-top: 2px solid var(--brand, #1c3aa9); margin-top: 2.5rem;
}
.af-msg-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.15rem; min-height: var(--tap-min, 44px);
  border-radius: var(--radius-pill, 999px); background: var(--brand, #1c3aa9); color: #ffffff; font-weight: 700; font-size: 0.875rem;
  text-decoration: none; border: 1px solid #8fa8ff;
  transition: background var(--motion-fast, 100ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.af-msg-btn:hover { background: var(--brand-hover, #1b3696); }
.af-footer-link {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--tap-min, 44px); color: #eef1fa;
  text-decoration: none; font-size: 0.8125rem; font-weight: 600;
}
.af-footer-link:hover { color: #8fa8ff; text-decoration: underline; }
.af-footer-divider { border-top: 1px solid #27304a; }

/* Home / Business Plan Tabs & Business Contract Banner */
.plan-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem;
  background: var(--surface-alt, #f6f8fd); border: 1px solid var(--line, #d9dfee); border-radius: var(--radius-md, 10px); padding: 0.25rem;
}
.plan-tab {
  border: 0; border-radius: var(--radius-sm, 6px); padding: 0.55rem 0.75rem; min-height: var(--tap-min, 44px);
  font-size: 0.8125rem; font-weight: 700; color: var(--muted, #47526b); background: transparent; cursor: pointer;
  transition: background var(--motion-fast, 100ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
              color var(--motion-fast, 100ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.plan-tab[aria-pressed="true"] {
  background: var(--brand, #1c3aa9); color: #ffffff;
}
.biz-lock-banner {
  background: var(--brand-tint, #e9eefc); border: 1px solid var(--line, #d9dfee); color: var(--ink, #0f1b3d);
  border-radius: var(--radius-md, 10px); padding: 0.65rem 0.85rem; font-size: 0.75rem; font-weight: 600;
}
.biz-pillars {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.85rem;
  background: var(--brand-tint, #e9eefc); border: 1px solid var(--line, #d9dfee); border-radius: var(--radius-md, 10px); padding: 0.6rem 0.75rem;
  font-size: 0.75rem; font-weight: 700; color: var(--ink, #0f1b3d);
}
@media (min-width: 600px) {
  .biz-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
}

@media (max-width: 390px) {
  .af-stepper { gap: 0.2rem; padding: 0.25rem 0; }
  .af-step-item { gap: 0.25rem; }
  .af-step-num { width: 24px; height: 24px; font-size: 0.75rem; }
  .af-step-label { font-size: 0.75rem; }
  .af-step-line { min-width: 8px; }
}

/* Explicit Tailwind v3.4.19 utility polyfills (zero JIT reliance) */
.bg-emerald-700 { background-color: #047857; }
.hover\:bg-emerald-800:hover { background-color: #065f46; }
.bg-cyan-600 { background-color: #0891b2; }
.hover\:bg-cyan-700:hover { background-color: #0e7490; }
.text-cyan-300 { color: #67e8f9; }
.bg-sky-700 { background-color: #0369a1; }
.text-sky-200 { color: #bae6fd; }
.text-sky-300 { color: #7dd3fc; }
.text-sky-400 { color: #38bdf8; }
.text-sky-500 { color: #0ea5e9; }
.hover\:text-sky-300:hover { color: #7dd3fc; }
.border-sky-200 { border-color: #bae6fd; }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-black\/85 { background-color: rgba(0, 0, 0, 0.85); }
.bg-red-950\/60 { background-color: var(--danger-bg, #450a0a); }
.bg-emerald-950\/60 { background-color: var(--ok-bg, #052e16); }
.border-emerald-700 { border-color: var(--ok-ink, #166534); }
.text-emerald-200 { color: var(--ok-ink, #86efac); }
.text-emerald-900 { color: #064e3b; }
.border-emerald-300 { border-color: #6ee7b7; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.hover\:text-slate-800:hover { color: var(--ink, #0f1b3d); }
.bg-amber-950\/20 { background-color: rgba(69, 26, 3, 0.28); }
.border-amber-500\/80 { border-color: rgba(252, 211, 77, 0.7); }
.bg-red-900\/70 { background-color: var(--danger-bg, #450a0a); }
.bg-emerald-900\/70 { background-color: var(--ok-bg, #052e16); }
.bg-slate-900\/70 { background-color: var(--surface-alt, #0c1120); }
.bg-slate-900\/50 { background-color: var(--surface-alt, #0c1120); }
.border-green-600 { border-color: #16a34a; }
.border-blue-700 { border-color: var(--brand, #1c3aa9); }
.border-slate-300 { border-color: var(--line, #d9dfee); }
.hover\:bg-orange-600:hover { background-color: #ea580c; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.text-blue-950 { color: var(--ink, #0f1b3d); }
.text-green-900 { color: var(--ok-ink, #166534); }
.flex-none { flex: none; }
.w-auto { width: auto; }
.adm-input.w-auto { width: auto; }
@media (min-width: 640px) {
  .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sm\:self-auto { align-self: auto; }
}
