:root {
  --ink: #0b1220;
  --navy: #0e1b34;
  --navy-2: #142645;
  --muted: #5b6b84;
  --bg: #f4f7fc;
  --card: #ffffff;
  --line: #e2e8f2;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf1ff;
  --accent: #0e7490;
  --success: #15803d;
  --success-soft: #e8f8ee;
  --warning: #a16207;
  --warning-soft: #fff5e6;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05), 0 2px 8px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 12px 30px -12px rgba(11, 18, 32, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(11, 18, 32, 0.35);
  --container: 1180px;
}

/* ---------- Compliance, accessibility and legal ---------- */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #0b1220;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #1d4ed8 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
}

.consent-row a,
.legal-content a,
.preference-card a,
.account-panel a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-facts strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.cookie-banner {
  position: fixed;
  z-index: 9000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #94a3b8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
}

.cookie-banner strong { display: block; margin-bottom: 3px; }
.cookie-banner p { color: #475569; font-size: 13px; }
.cookie-banner a { color: #1d4ed8; text-decoration: underline; font-size: 13px; }
.cookie-actions { display: flex; gap: 9px; flex: none; }

.legal-page { padding: 54px 0 80px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; }
.legal-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.legal-toc span { color: #475569; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.legal-toc a { color: #334155; font-size: 13px; padding: 4px 0; }
.legal-toc a:hover { color: #1d4ed8; text-decoration: underline; }
.legal-content { max-width: 780px; }
.legal-content h1 { margin-top: 14px; font-size: clamp(38px, 5vw, 58px); }
.legal-lead { margin: 18px 0 34px; color: #475569; font-size: 18px; }
.legal-content section { scroll-margin-top: 90px; padding: 25px 0; border-top: 1px solid var(--line); }
.legal-content section h2 { margin-bottom: 12px; font-size: 23px; }
.legal-content section p + p { margin-top: 12px; }
.legal-content section p,
.legal-content section li { color: #334155; }
.legal-content ul { margin: 12px 0 0; padding-left: 22px; }
.legal-content li + li { margin-top: 8px; }
.policy-table { display: grid; gap: 12px; }
.policy-table > div { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.policy-table strong, .policy-table span { display: block; }
.policy-table span { margin-top: 4px; color: #475569; font-size: 13px; }

.account-page { max-width: 900px; padding-top: 38px; padding-bottom: 80px; }
.policy-consent-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(22px, calc((100vw - var(--container)) / 2 + 22px));
  border-bottom: 1px solid #fcd34d;
  background: #fffbeb;
}
.policy-consent-banner strong,
.policy-consent-banner span { display: block; }
.policy-consent-banner strong { color: #78350f; }
.policy-consent-banner span { color: #854d0e; font-size: 13px; }
.account-head { margin: 28px 0; }
.account-head h1 { margin-top: 10px; font-size: 44px; }
.account-head p { margin-top: 8px; color: #475569; }
.account-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.account-panel h2 { margin-bottom: 8px; }
.account-panel > p { margin-bottom: 18px; color: #475569; }
.account-panel form { display: grid; gap: 14px; max-width: 620px; }
.danger-panel { border-color: #fecaca; }
.danger-panel h2 { color: #b91c1c; }

.preference-page { display: grid; place-items: center; min-height: 66vh; padding: 50px 22px; }
.preference-card { width: min(620px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); }
.preference-card h1 { margin: 12px 0; font-size: 38px; }
.preference-card #preference-state { margin: 18px 0; padding: 14px; border-radius: 10px; background: #f1f5f9; }
.preference-note { color: #475569; font-size: 14px; }
.preference-actions { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }

.business-facts { grid-template-columns: 1.2fr 1fr 1fr; }
.factual-limits { max-width: 900px; margin: 34px auto 0; }

.service-number,
.profession-number { color: #475569 !important; }
.tone-teal { background: #0f766e !important; }
.tone-violet { background: #6d28d9 !important; }
.tone-amber { background: #92400e !important; }
.tone-blue { background: #1e40af !important; }
.billing-mark { background: #1e40af !important; color: #fff !important; }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-toc span { grid-column: 1 / -1; }
  .business-facts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cookie-banner { align-items: stretch; flex-direction: column; right: 10px; bottom: 10px; left: 10px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; }
  .cookie-actions .btn { width: 100%; white-space: normal; }
  .legal-page { padding-top: 32px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc span { grid-column: auto; }
  .account-head h1, .preference-card h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .grad { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
  .btn, .pill, .eyebrow { border: 1px solid ButtonText; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: var(--primary-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
}

.mono {
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.02em;
}

.stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hidden {
  display: none !important;
}

.nav-links .mobile-auth-link { display: none; }

[hidden] {
  display: none !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 14.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 16px 28px -12px rgba(37, 99, 235, 0.75);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #b9c6dc;
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: transparent;
}

.btn-soft:hover {
  background: #dce8ff;
}

.btn-danger {
  background: #fff;
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  transition: all 0.15s ease;
}

.icon-btn:hover {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.4);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.8);
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--primary-soft);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 650;
}

.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #eef2f8;
  color: var(--muted);
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
}

.pill.no-dot::before {
  display: none;
}

.pill.info {
  background: #eef2ff;
  color: #4338ca;
}

.pill.transit {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.pill.success {
  background: var(--success-soft);
  color: #15803d;
}

.pill.warning {
  background: var(--warning-soft);
  color: #b45309;
}

.pill.danger {
  background: var(--danger-soft);
  color: #b91c1c;
}

.pill.neutral {
  background: #eef2f8;
  color: var(--muted);
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
}

.field.span-2 {
  grid-column: span 2;
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: 0;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 82px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64748b;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-error {
  margin: 2px 0 0;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 600;
}

.form-note {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.input-search {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: 0;
  font-size: 14px;
  min-width: 230px;
}

.input-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: #fff
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b84' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  padding: 9px 36px 9px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.section {
  padding: 30px 0 80px;
}

.section-head {
  margin-bottom: 30px;
}

.section-head.center {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 16px;
}

/* ---------- Landing hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -35% 45% 35% -20%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.16), transparent);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 25% -12% -30% 58%;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.16), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 5.1vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero h1 .grad {
  background: linear-gradient(115deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  margin-top: 16px;
  max-width: 540px;
  font-size: 17px;
  color: var(--muted);
}

.track-form {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  max-width: 540px;
}

.track-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 13px;
  font-size: 15px;
}

.track-form .btn {
  padding: 11px 18px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--success-soft);
  box-shadow: inset 0 0 0 4px var(--success);
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.mock-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.mock-card::after {
  content: "";
  position: absolute;
  inset: 18px -14px -16px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
  z-index: -1;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-top .label {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mock-top .value {
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

.mock-route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  padding: 14px;
  border-radius: 13px;
  background: var(--bg);
}

.mock-route .point {
  min-width: 0;
}

.mock-route .point span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.mock-route .point strong {
  display: block;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-route .line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  position: relative;
}

.mock-route .line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}

.mock-route.worldwide {
  gap: 12px;
}

.mock-route.worldwide .point {
  flex: 1;
}

.mock-route.worldwide .point strong {
  font-size: 15px;
}

.mock-world {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 7px 16px -8px rgba(37, 99, 235, 0.8);
}

.mock-world-note {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}

.mock-steps {
  display: grid;
  gap: 12px;
}

.mock-step {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--muted);
}

.mock-step .dot {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: transparent;
  font-size: 10px;
  font-weight: 800;
  flex: none;
}

.mock-step.done .dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.mock-step.current .dot {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.mock-step.current {
  color: var(--ink);
  font-weight: 650;
}

.mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.mock-foot strong {
  color: var(--ink);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 750;
}

.feature-card p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Steps ---------- */
.steps-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}

.step .num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 15.5px;
  font-weight: 750;
}

.step p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-band {
  padding: 0 0 80px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy), #173066 55%, #0e5a75);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.4), transparent);
}

.cta-card h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.cta-card p {
  margin-top: 8px;
  color: #b9c8e4;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-card .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ---------- Company and service pages ---------- */
.page-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.trade-preview-section {
  padding: 0 0 80px;
}

.trade-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  padding: 48px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.34), transparent 34%),
    linear-gradient(125deg, #09162b, #12294c 58%, #0b4b5c);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.trade-preview .eyebrow,
.trade-page-hero .eyebrow,
.coverage-panel .eyebrow,
.work-code .eyebrow {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #7dd3fc;
  box-shadow: none;
}

.trade-preview h2 {
  margin-top: 16px;
  max-width: 540px;
  font-size: clamp(28px, 3.7vw, 42px);
  font-weight: 800;
}

.trade-preview-copy > p {
  max-width: 520px;
  margin-top: 13px;
  color: #b9c8e4;
}

.trade-preview .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

.trade-preview .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.trade-preview-lanes {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trade-preview-lanes > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.trade-preview-lanes > div > span {
  grid-row: span 2;
  color: #67e8f9;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.trade-preview-lanes strong {
  font-size: 14px;
}

.trade-preview-lanes small {
  color: #93a9ca;
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 88px;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -220px;
  top: -270px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.2), transparent);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 68px;
  align-items: center;
}

.page-hero-copy h1 {
  max-width: 700px;
  margin-top: 18px;
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 820;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-hero-copy h1 span {
  background: linear-gradient(115deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero-copy > p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.hero-microfacts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #aebed9;
  font-size: 12.5px;
  font-weight: 650;
}

.hero-microfacts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-microfacts span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.11);
}

.trade-page-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(130deg, #071326, #102747 58%, #0a4352);
  background-size: 42px 42px, 42px 42px, auto;
  color: #fff;
}

.trade-page-hero .page-hero-copy > p {
  color: #bdcae0;
}

.trade-page-hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.trade-page-hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.trade-control {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(7, 19, 38, 0.72);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.trade-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.trade-control-head > div span,
.route-caption span {
  display: block;
  color: #8298bc;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trade-control-head > div strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.control-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.14);
  color: #86efac;
  font-size: 11px;
  font-weight: 750;
}

.control-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
}

.world-route {
  margin: 18px 0;
  padding: 10px 4px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.world-route svg {
  display: block;
  width: 100%;
  height: auto;
}

.world-shape {
  fill: rgba(96, 165, 250, 0.07);
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1.5;
}

.route-arc {
  fill: none;
  stroke: url(#routeStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 7;
}

.route-node {
  fill: #60a5fa;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 3;
}

.route-node.mid {
  fill: #a78bfa;
}

.route-node.end {
  fill: #22d3ee;
}

.route-caption {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: -7px;
}

.route-caption span:last-child {
  text-align: right;
}

.route-caption strong {
  color: #e5edf9;
  font-size: 11.5px;
}

.control-events {
  display: grid;
}

.control-events > div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  color: #c0cce0;
  font-size: 11.5px;
}

.control-events i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}

.control-events i.done {
  background: #22c55e;
}

.control-events i.active {
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.control-events strong {
  color: #8298bc;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.subpage .page-section {
  padding: 84px 0;
}

.split-head,
.board-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.65fr);
  gap: 50px;
  align-items: end;
}

.split-head > p,
.board-head > p {
  margin: 0 0 4px;
}

.service-ledger,
.profession-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.service-entry,
.profession-entry {
  display: grid;
  grid-template-columns: 34px 48px 1fr;
  gap: 15px;
  align-items: start;
  padding: 26px;
  background: #fff;
}

.service-number,
.profession-number {
  padding-top: 4px;
  color: #94a3b8;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10.5px;
  font-weight: 750;
}

.service-symbol,
.profession-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.service-entry h3,
.profession-entry h3 {
  font-size: 17px;
  font-weight: 780;
}

.service-entry p,
.profession-entry p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
}

.service-tags,
.skill-row,
.board-focus {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.service-tags span,
.skill-row span,
.board-focus span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 650;
}

.capability-section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.capability-board {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

.capability-main {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
  overflow: hidden;
  min-height: 430px;
  padding: 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0b172d, #163466 65%, #0e6172);
  color: #fff;
}

.capability-label {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-copy h3 {
  margin-top: 11px;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 800;
}

.capability-copy p {
  margin-top: 12px;
  color: #b9c8e4;
  font-size: 14px;
}

.capability-copy a {
  display: inline-flex;
  gap: 7px;
  margin-top: 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.capability-copy a span {
  color: #67e8f9;
}

.mini-live-map {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.14), rgba(34, 211, 238, 0.05));
}

.mini-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}

.mini-route-line {
  position: absolute;
  left: 15%;
  top: 53%;
  width: 70%;
  height: 3px;
  transform: rotate(-19deg);
  border-radius: 99px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.34);
}

.mini-pin {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.mini-pin.origin {
  left: 15%;
  top: 67%;
}

.mini-pin.current {
  left: 51%;
  top: 47%;
  width: 19px;
  height: 19px;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14), 0 3px 12px rgba(0, 0, 0, 0.35);
}

.mini-pin.destination {
  right: 14%;
  top: 28%;
  background: #22d3ee;
}

.mini-map-label {
  position: absolute;
  left: 16px;
  top: 15px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(7, 19, 38, 0.7);
  color: #dbeafe;
  font-size: 10.5px;
  font-weight: 700;
}

.capability-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.capability-list article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  min-height: 86px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.capability-list article:last-child {
  border-bottom: 0;
}

.capability-list article > span {
  color: var(--primary);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10.5px;
  font-weight: 800;
}

.capability-list h3 {
  font-size: 14.5px;
  font-weight: 760;
}

.capability-list p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.trade-flow,
.growth-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.trade-flow article,
.growth-track article {
  position: relative;
  padding: 24px 22px 8px 0;
}

.trade-flow article::before,
.growth-track article::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.trade-flow article > span,
.growth-track article > span {
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trade-flow h3,
.growth-track h3 {
  margin-top: 8px;
  font-size: 17px;
}

.trade-flow p,
.growth-track p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.coverage-section {
  padding: 0 0 84px;
}

.coverage-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 48px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.28), transparent 35%),
    linear-gradient(125deg, var(--navy), #153463);
  color: #fff;
}

.coverage-panel h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.7vw, 42px);
  font-weight: 800;
}

.coverage-panel p {
  margin-top: 12px;
  color: #b9c8e4;
}

.coverage-panel .btn {
  margin-top: 24px;
}

.region-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.region-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe7f8;
  font-size: 13px;
  font-weight: 650;
}

.region-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.subpage-cta {
  padding-top: 0;
}

/* About */
.about-page-hero {
  background: linear-gradient(180deg, #f8fafc, #edf3fb);
}

.manifesto-card {
  padding: 32px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.27), transparent 37%),
    linear-gradient(145deg, #0b172d, #142d54);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.manifesto-kicker {
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.manifesto-card blockquote {
  margin: 22px 0 30px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.manifesto-points {
  display: grid;
}

.manifesto-points div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.manifesto-points span {
  color: #67e8f9;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
}

.manifesto-points strong {
  color: #c8d5e9;
  font-size: 12.5px;
  font-weight: 650;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 78px;
}

.story-intro {
  align-self: start;
  position: sticky;
  top: 108px;
}

.story-intro h2 {
  margin-top: 14px;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 800;
}

.story-index {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.story-index div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.story-index strong {
  font-size: 13px;
}

.story-index span {
  color: var(--muted);
  font-size: 12.5px;
}

.story-copy {
  max-width: 680px;
}

.story-copy p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.story-copy p.lead {
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.55;
}

.mission-band {
  background: linear-gradient(105deg, var(--primary-dark), #164e83, #0e7490);
  color: #fff;
}

.mission-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 50px;
  align-items: start;
  padding: 54px 22px;
}

.mission-inner > span {
  color: #bae6fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mission-inner p {
  max-width: 880px;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.values-section {
  background: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.values-grid article {
  padding: 26px 24px 8px 0;
}

.value-mark {
  display: block;
  color: transparent;
  font-size: 52px;
  font-weight: 850;
  line-height: 1;
  -webkit-text-stroke: 1px #93c5fd;
}

.values-grid h3 {
  margin-top: 16px;
  font-size: 17px;
}

.values-grid p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
}

.board-section {
  border-top: 1px solid var(--line);
  background: #edf3fb;
}

.board-head {
  margin-bottom: 30px;
}

.board-head h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.6vw, 40px);
}

.board-head > p {
  color: var(--muted);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.board-member {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.board-chair {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: center;
  background:
    radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.2), transparent 36%),
    linear-gradient(135deg, #0b172d, #17386a);
  color: #fff;
}

.board-avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 22px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 28px -18px rgba(11, 18, 32, 0.65);
}

.board-chair .board-avatar {
  width: 140px;
  height: 170px;
  margin: 0;
  border-radius: 20px;
  font-size: 31px;
}

.tone-blue {
  background: linear-gradient(145deg, #2563eb, #06b6d4);
}

.tone-teal {
  background: linear-gradient(145deg, #0f766e, #2dd4bf);
}

.tone-violet {
  background: linear-gradient(145deg, #6d28d9, #a78bfa);
}

.tone-amber {
  background: linear-gradient(145deg, #b45309, #fbbf24);
}

.tone-navy {
  background: linear-gradient(145deg, #172554, #3b82f6);
}

.board-role {
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-chair .board-role {
  color: #67e8f9;
}

.board-member h3 {
  margin-top: 5px;
  font-size: 20px;
}

.board-member p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.board-chair p {
  color: #bac9df;
}

.board-chair .board-focus span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
}

.governance-strip {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid #d8e1ee;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
}

.governance-strip > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.governance-strip strong {
  font-size: 12px;
}

/* Professions */
.careers-page-hero {
  background:
    radial-gradient(circle at 75% 40%, rgba(6, 182, 212, 0.13), transparent 28%),
    linear-gradient(180deg, #f8fbff, #eaf1ff);
}

.career-orbit {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #d7e4f5;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 16%, rgba(255, 255, 255, 0.62) 17% 36%, transparent 37%), linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.12));
  box-shadow: inset 0 0 60px rgba(37, 99, 235, 0.08), var(--shadow-md);
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(37, 99, 235, 0.24);
  border-radius: 50%;
}

.orbit-ring.one {
  width: 54%;
  height: 54%;
}

.orbit-ring.two {
  width: 83%;
  height: 83%;
}

.orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  align-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), #1e3a68);
  color: #fff;
  box-shadow: 0 20px 36px -20px rgba(11, 18, 32, 0.65);
}

.orbit-center svg {
  color: #67e8f9;
}

.orbit-center strong {
  margin-top: 4px;
  font-size: 14px;
}

.orbit-center span {
  color: #9fb0cb;
  font-size: 10px;
}

.orbit-role {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 7px;
  border: 1px solid #d7e4f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 11px;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.orbit-role i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-style: normal;
  font-size: 9px;
}

.role-one {
  left: 8%;
  top: 27%;
}

.role-two {
  right: 5%;
  top: 21%;
}

.role-three {
  left: 11%;
  bottom: 19%;
}

.role-four {
  right: 8%;
  bottom: 17%;
}

.profession-entry {
  min-height: 220px;
}

.work-code-section {
  padding: 0 0 84px;
}

.work-code {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  padding: 48px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.28), transparent 32%),
    linear-gradient(135deg, #0a162b, #122d56);
  color: #fff;
}

.work-code-intro h2 {
  margin-top: 15px;
  font-size: clamp(28px, 3.7vw, 41px);
  font-weight: 800;
}

.work-code-intro p {
  margin-top: 12px;
  color: #aebfd9;
}

.work-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.work-principles article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.work-principles article > span {
  color: #67e8f9;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
}

.work-principles h3 {
  margin-top: 10px;
  font-size: 15px;
}

.work-principles p {
  margin-top: 5px;
  color: #aebfd9;
  font-size: 12.5px;
}

.growth-section {
  padding-top: 0;
}

/* ---------- Billing and manual payments ---------- */
#billing-panel {
  margin: 18px 0;
}

.billing-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: linear-gradient(105deg, #eff6ff, #ecfeff);
  box-shadow: var(--shadow-sm);
}

.billing-banner.admin-free {
  border-color: #c7d2fe;
  background: linear-gradient(105deg, #eef2ff, #f5f3ff);
}

.billing-banner.credit-ready {
  border-color: #bbf7d0;
  background: linear-gradient(105deg, #f0fdf4, #ecfdf5);
}

.billing-banner.payment-required {
  border-color: #fed7aa;
  background: linear-gradient(105deg, #fff7ed, #fffbeb);
}

.billing-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 10px 18px -12px rgba(37, 99, 235, 0.8);
}

.admin-free .billing-mark {
  background: #4f46e5;
}

.credit-ready .billing-mark {
  background: var(--success);
}

.payment-required .billing-mark {
  background: var(--warning);
}

.billing-copy {
  flex: 1;
  min-width: 0;
}

.billing-copy > span {
  display: block;
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credit-ready .billing-copy > span {
  color: #15803d;
}

.payment-required .billing-copy > span {
  color: #b45309;
}

.billing-copy h3 {
  margin-top: 2px;
  font-size: 17px;
}

.billing-copy p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.creation-fee-note {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: var(--primary-soft);
}

.creation-fee-note strong {
  color: var(--primary-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.creation-fee-note span {
  color: var(--muted);
  font-size: 12.5px;
}

.payment-page {
  padding-top: 34px;
  padding-bottom: 84px;
}

.payment-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 26px 0 28px;
}

.payment-heading h1 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 820;
}

.payment-heading p {
  max-width: 650px;
  margin-top: 9px;
  color: var(--muted);
}

.payment-price {
  min-width: 205px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  text-align: right;
}

.payment-price span,
.payment-price small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.payment-price strong {
  display: block;
  margin: 2px 0;
  color: var(--primary-dark);
  font-size: 27px;
  line-height: 1.1;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 22px;
  align-items: start;
}

.payment-card,
.payment-status-card,
.payment-history-card,
.payment-help {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.payment-card {
  padding: 24px;
}

.payment-card-head,
.payment-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.payment-card-head > div > span,
.payment-history-head > div > span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-card-head h2,
.payment-history-head h2 {
  margin-top: 3px;
  font-size: 19px;
}

.manual-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: #b45309;
  font-size: 10.5px;
  font-weight: 750;
}

.bank-details {
  display: grid;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
}

.bank-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.bank-row:last-of-type {
  border-bottom: 0;
}

.bank-row > span {
  color: var(--muted);
  font-size: 11.5px;
}

.bank-row strong {
  font-size: 14px;
}

.bank-row button {
  padding: 4px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 750;
}

.bank-instructions {
  padding: 12px 15px;
  color: var(--muted);
  font-size: 12px;
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.payment-divider::before,
.payment-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.payment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.payment-form-foot p {
  max-width: 540px;
  color: var(--muted);
  font-size: 11.5px;
}

.payment-side {
  display: grid;
  gap: 18px;
}

.payment-status-card,
.payment-history-card,
.payment-help {
  padding: 21px;
}

.payment-status-card {
  border-color: #dbeafe;
  background: linear-gradient(135deg, #f8fbff, #eff6ff);
}

.payment-status-card.pending {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fffaf1, #fff7ed);
}

.payment-status-card.ready {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.payment-status-card > span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-status-card.pending > span {
  color: #b45309;
}

.payment-status-card.ready > span {
  color: #15803d;
}

.payment-status-card > strong {
  display: block;
  margin-top: 6px;
  font-size: 19px;
}

.payment-status-card > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.payment-status-card .btn {
  margin-top: 14px;
}

.payment-history-head {
  align-items: center;
  margin-bottom: 12px;
}

.payment-history-item {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.payment-history-item > div > strong,
.payment-reference strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.payment-history-item small,
.payment-reference > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.payment-reference p {
  margin-top: 6px;
  color: #b45309;
  font-size: 11px;
}

.payment-status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: #b45309;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.payment-status.approved {
  background: var(--success-soft);
  color: #15803d;
}

.payment-status.rejected {
  background: var(--danger-soft);
  color: #b91c1c;
}

.payment-status.refunded {
  background: #e2e8f0;
  color: #334155;
}

.payment-help {
  background: var(--navy);
  color: #fff;
}

.payment-help strong {
  font-size: 14px;
}

.payment-help ol {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding-left: 20px;
  color: #b9c8e4;
  font-size: 12px;
}

.payment-loading,
.payment-empty,
.payment-config-missing {
  padding: 18px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.payment-config-missing strong {
  display: block;
  color: var(--warning);
  font-size: 13px;
}

.payment-config-missing p {
  margin-top: 5px;
}

/* ---------- Admin dashboard ---------- */
.admin-page {
  padding-top: 42px;
  padding-bottom: 90px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.admin-head h1 {
  margin-top: 13px;
  font-size: clamp(32px, 4vw, 46px);
}

.admin-head p {
  margin-top: 7px;
  color: var(--muted);
}

.admin-head-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.admin-notice {
  margin-bottom: 18px;
  padding: 15px 18px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: var(--warning-soft);
}

.admin-notice strong {
  color: #b45309;
  font-size: 13px;
}

.admin-notice p {
  margin-top: 3px;
  color: #92400e;
  font-size: 12px;
}

.admin-notice.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.admin-notice.ready strong {
  color: #15803d;
}

.admin-notice.ready p {
  color: #166534;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.admin-stat {
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 3px solid #94a3b8;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-stat.blue {
  border-top-color: var(--primary);
}

.admin-stat.green {
  border-top-color: var(--success);
}

.admin-stat.amber {
  border-top-color: var(--warning);
}

.admin-stat.violet {
  border-top-color: #7c3aed;
}

.admin-stat > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-stat > strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.15;
}

.admin-stat > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.admin-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head > div > span {
  color: var(--primary);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-panel-head h2 {
  margin-top: 3px;
  font-size: 19px;
}

.admin-panel-head > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: right;
}

.admin-filter .input-search {
  min-width: 250px;
}

.admin-settings-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 14px;
  align-items: end;
  padding: 22px;
}

.admin-settings-form .settings-instructions {
  grid-column: span 2;
}

.admin-settings-form > .btn {
  justify-self: end;
}

.admin-table {
  min-width: 900px;
}

.admin-table td {
  vertical-align: top;
}

.cell-note {
  max-width: 290px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.role-select {
  min-width: 105px;
}

.admin-loading,
.admin-empty {
  padding: 34px 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c8e4;
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  color: #94a6c6;
  max-width: 300px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 13px;
}

.footer-grid > div > a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: #b9c8e4;
  transition: color 0.15s ease;
}

.footer-grid > div > a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8ea1c2;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand span {
  color: #7dd3fc;
}

/* ---------- Auth pages ---------- */
.auth-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: calc(100vh - 72px);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy), #16305e 55%, #0d6070);
  color: #fff;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.45), transparent);
}

.auth-aside h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  max-width: 380px;
  margin-top: 20px;
}

.auth-aside p {
  margin-top: 14px;
  color: #b9c8e4;
  max-width: 360px;
  font-size: 15px;
}

.auth-quote {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px;
  font-size: 14px;
  color: #dbe6f7;
}

.auth-quote .who {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(460px, 100%);
}

.auth-card h1 {
  font-size: 30px;
  font-weight: 800;
}

.auth-card > p {
  margin-top: 6px;
  color: var(--muted);
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 15px;
}

.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-alt a {
  color: var(--primary);
  font-weight: 650;
}

.auth-alt a:hover {
  text-decoration: underline;
}

/* ---------- Dashboard ---------- */
.dashboard {
  padding-top: 36px;
  padding-bottom: 80px;
}

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dash-head h1 {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
}

.dash-head p {
  margin-top: 6px;
  color: var(--muted);
}

.dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.stat-icon.green {
  background: var(--success-soft);
  color: var(--success);
}

.stat-icon.amber {
  background: var(--warning-soft);
  color: var(--warning);
}

.stat-icon.red {
  background: var(--danger-soft);
  color: var(--danger);
}

.stat-card .label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat-card .value {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 1px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-toolbar h2 {
  font-size: 16.5px;
  font-weight: 750;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

table.data th {
  text-align: left;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafcff;
  white-space: nowrap;
}

table.data td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}

table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr:hover td {
  background: #fafcff;
}

.cell-strong {
  font-weight: 700;
}

.cell-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.tracking-cell {
  font-weight: 750;
  font-size: 13.5px;
  color: var(--primary-dark);
}

.tracking-cell:hover {
  text-decoration: underline;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-end;
}

.row-actions .btn {
  padding: 6px 11px;
  font-size: 12.5px;
  border-radius: 8px;
}

.empty {
  text-align: center;
  padding: 66px 20px;
}

.empty-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty h3 {
  font-size: 19px;
  font-weight: 750;
}

.empty p {
  color: var(--muted);
  margin: 6px auto 20px;
  max-width: 420px;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(3px);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(660px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-head h2 {
  font-size: 20px;
  font-weight: 800;
}

.modal-head p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.modal-close {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
}

.modal-close:hover {
  color: var(--ink);
  border-color: #b9c6dc;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Shipment page ---------- */
.shipment-page {
  padding: 30px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.shipment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.shipment-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shipment-title h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
}

.shipment-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.head-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.shipment-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card > h2 {
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 16px;
}

.card > h3 {
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 14px;
}

.card .section-label {
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 20px 0 12px;
}

.card .section-label:first-child {
  margin-top: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-actions .hint {
  font-size: 12.5px;
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
}

.info-row .k {
  color: var(--muted);
  flex: none;
}

.info-row .v {
  text-align: right;
  font-weight: 600;
  word-break: break-word;
}

.issue-alert {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: #b91c1c;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.issue-alert strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 20px 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 15px;
  bottom: -3px;
  width: 2px;
  background: var(--line);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item .dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.timeline-item:first-child .dot {
  background: var(--primary);
}

.timeline-item .when {
  font-size: 12px;
  color: var(--muted);
}

.timeline-item .what {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 650;
}

.timeline-item .where {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.timeline-item .pill {
  margin-top: 7px;
}

/* ---------- Tracking page ---------- */
.track-page {
  padding-bottom: 80px;
}

.track-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 40px;
  text-align: center;
}

.track-hero::before {
  content: "";
  position: absolute;
  inset: -60% 25% 10% 25%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.14), transparent);
  pointer-events: none;
}

.track-hero h1 {
  position: relative;
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.track-hero > p {
  position: relative;
  margin: 10px auto 0;
  max-width: 520px;
  color: var(--muted);
}

.track-hero .track-form {
  position: relative;
  margin: 26px auto 0;
}

.track-result {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.track-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.track-top .label {
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.track-top h2 {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 800;
}

.track-top .updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.route {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--bg);
}

.route-point {
  min-width: 0;
  flex: 1;
}

.route-point.right {
  text-align: right;
}

.route-point .route-label {
  display: block;
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.route-point strong {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  word-break: break-word;
}

.route-line {
  flex: 0 0 90px;
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.route-line svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 6px;
  color: var(--primary);
}

.track-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.track-fact {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.track-fact span {
  display: block;
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.track-fact strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 6px 0 24px;
}

.progress-step {
  position: relative;
  text-align: center;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
  padding-top: 26px;
}

.progress-step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.progress-step:first-child::before {
  left: 50%;
}

.progress-step:last-child::before {
  right: 50%;
}

.progress-step .dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  z-index: 1;
}

.progress-step.done {
  color: var(--ink);
}

.progress-step.done::before {
  background: var(--success);
}

.progress-step.done .dot {
  background: var(--success);
  border-color: var(--success);
}

.progress-step.current {
  color: var(--primary-dark);
  font-weight: 750;
}

.progress-step.current .dot {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.live-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  margin-left: auto;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
  animation: pulse 2s infinite;
}

.timeline-card {
  max-width: 860px;
  margin: 0 auto;
}

.track-notice {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 46px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.track-notice .empty-icon {
  margin-bottom: 14px;
}

.track-notice h3 {
  font-size: 20px;
  font-weight: 750;
}

.track-notice p {
  margin-top: 7px;
  color: var(--muted);
}

/* ---------- Receipt ---------- */
.receipt-page {
  padding: 30px 0 70px;
}

.receipt-toolbar {
  max-width: 820px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-paper {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.receipt-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.receipt-brand span {
  color: var(--primary);
}

.receipt-sub {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 4px;
}

.receipt-meta {
  text-align: right;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.receipt-meta span {
  display: block;
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.receipt-meta strong {
  font-size: 13.5px;
}

.receipt-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.receipt-parties h4 {
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 7px;
}

.receipt-parties .name {
  font-size: 16px;
  font-weight: 750;
}

.receipt-parties .detail {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.receipt-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.receipt-table th:last-child,
.receipt-table td:last-child {
  text-align: right;
}

.receipt-table td {
  padding: 13px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.receipt-table td .muted {
  font-size: 12px;
  margin-top: 2px;
}

.receipt-table tfoot td {
  border-bottom: 0;
  padding-top: 16px;
  font-size: 15px;
  font-weight: 800;
}

.receipt-table tfoot td:first-child {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.receipt-total {
  font-size: 22px;
  font-weight: 800;
}

.receipt-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.receipt-foot h4 {
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.receipt-foot .value {
  font-size: 14px;
  font-weight: 650;
}

.receipt-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Live map ---------- */
.map-card {
  overflow: hidden;
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.map-head h3 {
  font-size: 16px;
  font-weight: 750;
}

.map-head p {
  margin-top: 3px;
}

.map-head .live-note {
  flex: none;
  margin-left: 0;
}

.map-canvas {
  height: 330px;
  border: 1px solid #d7e1ee;
  border-radius: 13px;
  overflow: hidden;
  background: #dce8f5;
}

.track-result .map-canvas {
  height: 370px;
}

.shipment-layout .map-canvas {
  height: 300px;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.map-legend i.origin {
  background: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.map-legend i.current {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

.map-legend i.destination {
  background: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.map-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.map-search input,
.map-pick-bar input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  outline: none;
}

.map-search input:focus,
.map-pick-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.map-results {
  max-height: 180px;
  overflow-y: auto;
  margin: -1px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.map-results button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.35;
  text-align: left;
}

.map-results button:last-child {
  border-bottom: 0;
}

.map-results button:hover,
.map-results button:focus-visible {
  background: var(--primary-soft);
}

.map-results .map-message {
  padding: 11px 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.map-pick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 11px;
  background: var(--primary-soft);
}

.map-pick-bar input {
  flex: 1 1 180px;
}

.swift-map {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  cursor: grab;
  background-color: #dce8f5;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.swift-map.picking {
  cursor: crosshair;
}

.swift-map.dragging {
  cursor: grabbing;
}

.swift-map-tiles,
.swift-map-route,
.swift-map-markers {
  position: absolute;
  inset: 0;
}

.swift-map-tiles {
  z-index: 1;
}

.swift-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.swift-map-route {
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.swift-map-route polyline {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 7;
  filter: drop-shadow(0 1px 2px rgba(11, 18, 32, 0.28));
}

.swift-map-markers {
  z-index: 3;
  pointer-events: none;
}

.swift-map-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transition: transform 0.45s ease;
  will-change: transform;
}

.swift-map.dragging .swift-map-marker {
  transition: none;
}

.swift-map-marker .marker-inner {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -7px);
}

.swift-map-marker.current .marker-inner {
  transform: translate(-50%, -9px);
}

.swift-map-marker .dot {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 2px 9px rgba(11, 18, 32, 0.4);
}

.swift-map-marker.origin .dot {
  background: #0f766e;
}

.swift-map-marker.destination .dot {
  background: #7c3aed;
}

.swift-map-marker.current .dot {
  width: 18px;
  height: 18px;
  background: var(--success);
}

.swift-map-marker.pending .dot {
  width: 18px;
  height: 18px;
  background: var(--warning);
}

.swift-map-marker.current .dot::after,
.swift-map-marker.pending .dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid var(--success);
  border-radius: inherit;
  animation: mapRipple 1.8s ease-out infinite;
}

.swift-map-marker.pending .dot::after {
  border-color: var(--warning);
}

.swift-map-marker .label {
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(11, 18, 32, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgba(11, 18, 32, 0.18);
}

.swift-map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.swift-map-controls button {
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.swift-map-controls button:last-child {
  border-bottom: 0;
  font-size: 16px;
}

.swift-map-controls button:hover,
.swift-map-controls button:focus-visible {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.swift-map-attribution {
  position: absolute;
  right: 6px;
  bottom: 5px;
  z-index: 6;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.84);
  color: #475569;
  font-size: 9.5px;
  line-height: 1.25;
}

.swift-map-attribution a {
  text-decoration: underline;
}

.swift-map-offline {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 6;
  max-width: calc(100% - 64px);
  padding: 7px 9px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 8px;
  background: rgba(255, 245, 230, 0.95);
  color: #92400e;
  font-size: 11px;
  font-weight: 650;
}

.swift-map.map-offline .swift-map-tiles {
  opacity: 0.22;
}

.swift-map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: flex;
  width: min(290px, calc(100% - 42px));
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.swift-map-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.swift-map-empty span {
  font-size: 11.5px;
}

/* ---------- Toasts ---------- */
.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--navy);
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 550;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--success);
  animation: slideIn 0.25s ease;
  max-width: 350px;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.leaving {
  animation: slideOut 0.25s ease forwards;
}

/* ---------- Animations ---------- */
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--success-soft);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.1);
  }
}

@keyframes mapRipple {
  0% {
    opacity: 0.8;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav {
    gap: 12px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 13.5px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-actions .btn {
    padding: 9px 13px;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    gap: 34px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shipment-layout {
    grid-template-columns: 1fr;
  }

  .track-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero-grid {
    gap: 38px;
  }

  .trade-preview {
    gap: 34px;
    padding: 38px;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-chair {
    grid-column: span 2;
  }

  .trade-flow,
  .growth-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .trade-flow article,
  .growth-track article {
    border-top: 1px solid var(--line);
  }

  .coverage-panel,
  .work-code {
    gap: 32px;
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-settings-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 22px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: grid;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    padding: 34px;
  }

  .page-hero-grid,
  .trade-preview,
  .story-grid,
  .capability-board,
  .coverage-panel,
  .work-code {
    grid-template-columns: 1fr;
  }

  .page-hero-copy {
    max-width: 760px;
  }

  .trade-control,
  .manifesto-card {
    width: 100%;
    max-width: 720px;
  }

  .career-orbit {
    width: min(540px, 100%);
    margin: 0 auto;
  }

  .split-head,
  .board-head {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .story-intro {
    position: static;
  }

  .story-copy {
    max-width: none;
  }

  .coverage-panel {
    gap: 36px;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .admin-head {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    height: 66px;
    gap: 12px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    top: 66px;
  }

  .nav-actions .user-chip span:last-child {
    display: none;
  }

  .nav-actions [data-guest-only] { display: none; }
  .nav-links .mobile-auth-link { display: flex; }

  .hero {
    padding: 44px 0 50px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .page-hero {
    padding: 52px 0 58px;
  }

  .page-hero-copy h1 {
    font-size: 38px;
  }

  .page-hero-copy > p {
    font-size: 15.5px;
  }

  .page-actions {
    align-items: stretch;
  }

  .page-actions .btn {
    width: 100%;
  }

  .hero-microfacts {
    flex-direction: column;
    gap: 10px;
  }

  .track-form {
    flex-direction: column;
  }

  .track-form .btn {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .trade-preview {
    padding: 27px 22px;
    border-radius: 20px;
  }

  .trade-preview h2 {
    font-size: 29px;
  }

  .trade-preview-lanes > div {
    grid-template-columns: 34px 1fr;
  }

  .trade-control {
    padding: 16px;
    border-radius: 18px;
  }

  .route-caption strong {
    display: none;
  }

  .subpage .page-section,
  .capability-section {
    padding: 62px 0;
  }

  .service-ledger,
  .profession-ledger {
    grid-template-columns: 1fr;
  }

  .service-entry,
  .profession-entry {
    grid-template-columns: 28px 42px 1fr;
    gap: 12px;
    min-height: 0;
    padding: 21px 18px;
  }

  .service-symbol,
  .profession-icon {
    width: 42px;
    height: 42px;
  }

  .capability-main {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 25px;
  }

  .mini-live-map {
    min-height: 220px;
  }

  .trade-flow,
  .growth-track {
    grid-template-columns: 1fr;
  }

  .coverage-panel,
  .work-code {
    padding: 27px 22px;
    border-radius: 20px;
  }

  .region-list,
  .work-principles {
    grid-template-columns: 1fr;
  }

  .story-grid {
    gap: 34px;
  }

  .story-index div {
    grid-template-columns: 105px 1fr;
  }

  .story-copy p.lead {
    font-size: 18px;
  }

  .mission-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 42px 16px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-chair {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .board-chair .board-avatar {
    width: 92px;
    height: 92px;
  }

  .governance-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .governance-strip > span {
    margin-right: 0;
  }

  .career-orbit {
    min-height: 350px;
  }

  .orbit-center {
    width: 108px;
    height: 108px;
  }

  .orbit-role {
    padding-right: 8px;
    font-size: 10px;
  }

  .orbit-role i {
    width: 25px;
    height: 25px;
  }

  .work-code {
    gap: 28px;
  }

  .billing-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .billing-banner .btn {
    width: 100%;
  }

  .payment-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-price {
    min-width: 0;
    text-align: left;
  }

  .payment-card,
  .payment-status-card,
  .payment-history-card,
  .payment-help {
    padding: 18px;
  }

  .bank-row {
    grid-template-columns: 1fr auto;
  }

  .bank-row > span {
    grid-column: 1 / -1;
  }

  .payment-form-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-form-foot .btn {
    width: 100%;
  }

  .payment-history-item {
    grid-template-columns: 1fr;
  }

  .admin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-head-actions .btn {
    flex: 1;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-panel-head > p {
    text-align: left;
  }

  .admin-filter .input-search,
  .admin-filter .select {
    width: 100%;
    min-width: 0;
  }

  .admin-settings-form {
    grid-template-columns: 1fr;
  }

  .admin-settings-form .settings-instructions {
    grid-column: span 1;
  }

  .admin-settings-form > .btn {
    width: 100%;
    justify-self: stretch;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-main {
    padding: 36px 18px;
  }

  .dashboard {
    padding-top: 26px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 14px;
    gap: 10px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
  }

  .stat-card .value {
    font-size: 21px;
  }

  .panel-toolbar {
    align-items: stretch;
  }

  .toolbar-actions {
    width: 100%;
  }

  .input-search {
    flex: 1;
    min-width: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: span 1;
  }

  .modal-card {
    padding: 20px;
  }

  .shipment-head {
    align-items: stretch;
  }

  .head-actions .btn {
    flex: 1;
  }

  .route {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .route-point.right {
    text-align: left;
  }

  .route-line {
    flex: none;
    width: 100%;
  }

  .track-facts {
    grid-template-columns: 1fr 1fr;
  }

  .progress {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
  }

  .progress-step:nth-child(3)::before {
    left: 50%;
  }

  .map-head {
    align-items: flex-start;
  }

  .map-canvas,
  .track-result .map-canvas,
  .shipment-layout .map-canvas {
    height: 270px;
  }

  .map-search {
    flex-direction: column;
  }

  .map-search .btn {
    width: 100%;
  }

  .map-pick-bar {
    align-items: stretch;
  }

  .map-pick-bar input {
    flex-basis: 100%;
  }

  .receipt-paper {
    padding: 24px 20px;
  }

  .receipt-head {
    flex-direction: column;
  }

  .receipt-meta {
    text-align: left;
  }

  .receipt-parties {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cta-card {
    padding: 28px 22px;
  }

  .toast-host {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: none;
  }
}

/* ---------- Print ---------- */
@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .receipt-toolbar,
  .toast-host {
    display: none !important;
  }

  .receipt-page {
    padding: 0;
  }

  .receipt-paper {
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 24px;
  }

  main {
    flex: none;
  }
}
