:root {
  --navy: #0b2b4a;
  --navy-dark: #071f36;
  --navy-light: #12395f;
  --gold: #f0a500;
  --gold-dark: #d18f00;
  --blue: #1d6fd6;
  --red: #dc3545;
  --red-light: #ffe3e6;
  --green: #198754;
  --green-light: #e1f5ec;
  --orange: #fd7e14;
  --orange-light: #fff2e0;
  --purple-light: #efe9ff;
  --ink: #1c2733;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --line: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(11, 43, 74, 0.09);
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--gray-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: 14px;
  transition: all .18s ease; text-decoration: none;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gray-light); text-decoration: none; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b52a37; text-decoration: none; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #146c43; text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--gray); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 214, .15);
}
.textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; gap: 20px; }
.col { flex: 1; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--gray); }
.small { font-size: 13px; }
strong { font-weight: 700; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge-pending { background: var(--orange-light); color: var(--orange); }
.badge-approved, .badge-cleared, .badge-delivered, .badge-paid, .badge-open, .badge-success { background: var(--green-light); color: var(--green); }
.badge-rejected, .badge-cancelled, .badge-held, .badge-overdue, .badge-suspended { background: var(--red-light); color: var(--red); }
.badge-shipment { background: var(--blue); color: #fff; }
.badge-booked { background: #e6eefc; color: var(--blue); }
.badge-in_transit { background: #e6eefc; color: var(--blue); }
.badge-port_arrival { background: #fff2e0; color: var(--orange); }
.badge-customs { background: #efe9ff; color: #6f42c1; }
.badge-partial { background: #fff2e0; color: var(--orange); }
.badge-unpaid { background: var(--red-light); color: var(--red); }
.badge-closed { background: var(--gray-light); color: var(--gray); }
.badge-pending { background: var(--orange-light); color: var(--orange); }

/* ---------- Alerts / toasts ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-error { background: var(--red-light); color: #8b1e2a; border-color: #ffccd2; }
.alert-success { background: var(--green-light); color: #0d5c3a; border-color: #bfe6d2; }
.alert-info { background: #e6f3ff; color: #084298; border-color: #bee0ff; }
.alert-warning { background: var(--orange-light); color: #97560d; border-color: #ffe0b0; }

.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy); color: #fff; padding: 13px 18px; border-radius: 10px;
  font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  animation: slideIn .25s ease; max-width: 340px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Header (public) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: grid; place-items: center; color: var(--gold); font-weight: 800; font-size: 19px;
  letter-spacing: -.5px;
}
.logo-text { line-height: 1.15; }
.logo-text b { display: block; font-size: 16.5px; color: var(--navy); letter-spacing: .2px; }
.logo-text span { font-size: 11.5px; color: var(--gray); font-weight: 500; letter-spacing: .6px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--navy); text-decoration: none; }
.hamburger { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--navy-light));
  color: #fff; padding: 96px 0 110px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -180px; top: -120px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,.28), transparent 65%);
}
.hero h1 { font-size: 48px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.6px; }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { font-size: 18px; opacity: .9; max-width: 620px; margin-bottom: 8px; }
.hero .sub { font-size: 14.5px; opacity: .75; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-strip { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-strip .hs { display: flex; align-items: center; gap: 12px; }
.hero-strip .hs b { font-size: 26px; color: var(--gold); display: block; }
.hero-strip .hs span { font-size: 13.5px; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: #fff; }
.eyebrow { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; font-size: 12.5px; }
.section h2 { font-size: 34px; margin: 10px 0 12px; color: var(--navy); letter-spacing: -.4px; }
.section .lede { color: var(--gray); font-size: 16px; max-width: 640px; }

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s, box-shadow .18s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 23px; margin-bottom: 18px;
}
.f-i1 { background: var(--green-light); } .f-i2 { background: #e6eefc; }
.f-i3 { background: #fff2e0; } .f-i4 { background: var(--purple-light); }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.feature-card p { margin: 0; color: var(--gray); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; position: relative; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 22px; right: 24px;
  font-size: 34px; font-weight: 800; color: var(--gray-light); letter-spacing: -1px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.step p { margin: 0; color: var(--gray); font-size: 14px; }

/* ---------- Track widget ---------- */
.track-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.track-row { display: flex; gap: 10px; flex-wrap: wrap; }
.track-row .input { flex: 1; min-width: 220px; }
.track-result { margin-top: 22px; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before {
  content: ''; position: absolute; left: -29px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--line); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.tl-item.current::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(240,165,0,.22); }
.tl-item.done::before { background: var(--green); }
.tl-status { font-weight: 700; font-size: 14.5px; }
.tl-time { font-size: 12.5px; color: var(--gray); margin-bottom: 4px; }
.tl-desc { font-size: 13.5px; color: var(--gray); }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.testi-card p { color: var(--gray); font-size: 14px; }
.testi-card .who { font-weight: 700; color: var(--navy); font-size: 14px; margin-top: 12px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff; text-align: center; padding: 72px 20px; border-radius: var(--radius);
}
.cta h2 { font-size: 32px; margin: 10px 0; color: #fff; }
.cta p { opacity: .85; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cbd6e2; padding: 56px 0 30px; }
.site-footer .inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.site-footer a { color: #cbd6e2; display: block; font-size: 13.5px; padding: 3px 0; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Auth pages ---------- */
.auth-body { background: linear-gradient(140deg, var(--navy-dark), var(--navy) 60%); min-height: 100vh; display: flex; }
.auth-side {
  flex: 1; color: #fff; padding: 60px 56px; display: flex; flex-direction: column;
  background: radial-gradient(circle at 80% 20%, rgba(240,165,0,.18), transparent 45%);
}
.auth-side h2 { font-size: 32px; margin: auto 0 12px; color: #fff; line-height: 1.2; }
.auth-side p { opacity: .8; font-size: 15px; max-width: 420px; }
.auth-side .logo { margin-bottom: 40px; }
.auth-side .logo-text b { color: #fff; }
.auth-side .logo-text span { color: rgba(255,255,255,.6); }
.auth-main { width: 460px; max-width: 100%; background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 30px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 26px; color: var(--navy); margin: 0 0 6px; }
.auth-card .sub { color: var(--gray); font-size: 14px; margin-bottom: 26px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--gray); }

/* ---------- Spinner ---------- */
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .auth-side { display: none; }
  .auth-main { width: 100%; }
}
@media (max-width: 768px) {
  .hero { padding: 64px 0 84px; }
  .hero h1 { font-size: 34px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 27px; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 20px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .hamburger { display: block; }
  .row { flex-direction: column; }
  .hero-strip { gap: 20px; }
  .toast-wrap { left: 16px; right: 16px; bottom: 14px; }
}

/* Print friendly (invoice) */
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .print-area { box-shadow: none !important; border: none !important; }
}