/* =========================================================
   PHOENIX GLOBAL TRADING — STYLESHEET
   Brand: Navy + Orange. Editorial-corporate aesthetic.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* -------- DESIGN TOKENS -------- */
:root {
  --navy-deepest: #06122E;
  --navy-deep:    #0A1A3E;
  --navy:         #142C5C;
  --navy-mid:     #1E3D7A;
  --navy-light:   #2B4885;
  --orange:       #F25A1B;
  --orange-bright:#FF7A2E;
  --orange-soft:  #FFE9DC;
  --ivory:        #F8F4EC;
  --paper:        #FFFFFF;
  --bone:         #F2EEE5;
  --ink:          #0A1A3E;
  --muted:        #6B7A99;
  --line:         #E2DDD0;
  --line-dark:    rgba(255,255,255,0.12);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --max-w: 1320px;
  --pad-x: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* -------- TYPOGRAPHY UTILITIES -------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--navy-deep);
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--orange);
  font-weight: 300;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: #2A3A5C;
  max-width: 60ch;
}

/* -------- LAYOUT WRAPPER -------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* -------- TOP UTILITY BAR -------- */
.topbar {
  background: var(--navy-deepest);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar a { color: inherit; transition: color .2s var(--ease); }
.topbar a:hover { color: var(--orange-bright); }
.topbar .tb-left { display: flex; gap: 22px; align-items: center; }
.topbar .tb-right { display: flex; gap: 22px; align-items: center; }
.topbar .tb-portal {
  background: var(--orange);
  color: #ffffff !important;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background .25s var(--ease);
}
.topbar .tb-portal:hover { background: var(--orange-bright); color: #ffffff !important; }
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(242,90,27,0.18);
}
@media (max-width: 720px) {
  /* On mobile, hide phone+email but keep the portal link visible */
  .topbar .tb-right a:not(.tb-portal) { display: none; }
  .topbar .tb-right { gap: 0; }
}

/* -------- HEADER / NAV -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,244,236,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.brand-mark {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--navy-deep);
  white-space: nowrap;
  min-width: 0;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-top: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 10px; }
  .brand-mark { height: 40px; }
  .brand-text {
    font-size: 14px;
    display: block !important;
  }
  .brand-text span {
    font-size: 8px;
    letter-spacing: 0.14em;
    margin-top: 3px;
    display: block !important;
  }
}
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand-mark { height: 36px; }
  .brand-text { font-size: 12.5px; }
  .brand-text span { font-size: 7.5px; letter-spacing: 0.1em; }
}
@media (max-width: 340px) {
  /* Last resort — only at extremely narrow widths, hide the small subtitle but keep main */
  .brand-text { font-size: 12px; }
  .brand-text span { font-size: 7px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--navy-deep);
  transition: all .25s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--orange); }
.nav a.active {
  background: var(--navy-deep);
  color: var(--ivory);
}
.nav a.active:hover { color: var(--orange-bright); }

.nav-cta {
  margin-left: 14px;
  padding: 11px 22px !important;
  background: transparent !important;
  color: var(--navy-deep) !important;
  border: 1px solid rgba(10,26,62,0.25);
  border-radius: 999px;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  transition: all .35s var(--ease);
  overflow: hidden;
  position: relative;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease);
  z-index: 0;
}
.nav-cta > * { position: relative; z-index: 1; }
.nav-cta:hover {
  border-color: var(--navy-deep);
  color: white !important;
}
.nav-cta:hover::before { transform: scaleX(1); }
.nav-cta-arrow {
  width: 18px;
  height: 8px;
  position: relative;
  display: inline-block;
}
.nav-cta-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  width: 12px;
  background: currentColor;
  transition: width .35s var(--ease);
  transform: translateY(-50%);
}
.nav-cta-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translate(-1px, -50%) rotate(45deg);
  transition: transform .35s var(--ease);
}
.nav-cta:hover .nav-cta-arrow::before { width: 18px; }
.nav-cta:hover .nav-cta-arrow::after { transform: translate(0, -50%) rotate(45deg); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .3s var(--ease);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle:hover { background: var(--orange); }
.menu-toggle .bars {
  display: block;
  position: relative;
  width: 20px;
  height: 14px;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after,
.menu-toggle .bars {
  /* shared base for ::before/::after below */
}
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform .35s var(--ease), top .25s var(--ease) .1s, opacity .2s var(--ease);
}
/* middle bar via box-shadow on the .bars itself */
.menu-toggle .bars {
  background: transparent;
}
.menu-toggle .bars::before { top: 1px; }
.menu-toggle .bars::after { top: 11px; }
/* middle bar — using a third pseudo via a child span would require markup change.
   Instead, simulate a 3rd line by giving the .bars its own centered line: */
.menu-toggle .bars { 
  background-image: linear-gradient(to right, #ffffff, #ffffff);
  background-size: 100% 2px;
  background-position: center;
  background-repeat: no-repeat;
}
.menu-toggle.is-open .bars { background-image: none; }
.menu-toggle.is-open .bars::before { top: 6px; transform: rotate(45deg); transition: top .25s var(--ease), transform .35s var(--ease) .1s; }
.menu-toggle.is-open .bars::after  { top: 6px; transform: rotate(-45deg); transition: top .25s var(--ease), transform .35s var(--ease) .1s; }

body.nav-locked { overflow: hidden; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 110px var(--pad-x) 40px;
    z-index: 40;
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
    overflow-y: auto;
    box-shadow: 0 24px 40px -12px rgba(10,26,62,0.18);
  }
  .nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(10,26,62,0.04) 1px, transparent 1.4px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.7;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 100%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 100%, black, transparent 75%);
  }
  .nav.open { transform: translateY(0); }
  .nav > * { position: relative; z-index: 1; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav.open > * { opacity: 1; transform: translateY(0); }
  .nav.open > *:nth-child(1) { transition-delay: .15s; }
  .nav.open > *:nth-child(2) { transition-delay: .22s; }
  .nav.open > *:nth-child(3) { transition-delay: .29s; }
  .nav.open > *:nth-child(4) { transition-delay: .36s; }
  .nav.open > *:nth-child(5) { transition-delay: .45s; }
  .nav a {
    width: 100%;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav a::after {
    content: '→';
    color: var(--orange);
    font-family: var(--font-body);
    font-size: 18px;
    opacity: 0.4;
    transition: all .25s var(--ease);
  }
  .nav a:hover::after, .nav a.active::after { opacity: 1; transform: translateX(4px); }
  .nav a.active { background: transparent; color: var(--orange); }
  .nav-cta {
    margin-top: 30px !important;
    margin-left: 0 !important;
    padding: 18px 28px !important;
    text-align: center;
    justify-content: center;
    font-size: 13px !important;
    background: var(--navy-deep) !important;
    color: white !important;
    border-color: var(--navy-deep) !important;
  }
  .nav-cta::after { display: none; }
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 12px 30px -10px rgba(242,90,27,0.5);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(10,26,62,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-deep);
  border: 1px solid var(--navy-deep);
}
.btn-ghost:hover {
  background: var(--navy-deep);
  color: white;
}
.btn-light {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}
.btn-light:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .3s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy-deepest);
  color: white;
  overflow: hidden;
  padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 10vh, 120px);
}
.hero::before {
  /* subtle world-map dot pattern */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,0.13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 75% 65% at 30% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 30% 50%, black 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero::after {
  /* orange glow behind phoenix */
  content: '';
  position: absolute;
  right: -10%;
  top: 30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(242,90,27,0.35) 0%, rgba(242,90,27,0.08) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: glow 8s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 2;
}
.hero-eyebrow {
  color: var(--orange-bright);
  margin-bottom: 28px;
}
.hero-eyebrow::before { background: var(--orange-bright); }
.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: 32px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--orange-bright);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-headline .line { display: block; }
.hero-sub {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-phoenix {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 30px 60px rgba(242,90,27,0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* hero stats strip */
.hero-strip {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 10vh, 100px);
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.hero-strip .stat .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  font-weight: 600;
}
.hero-strip .stat .value {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: white;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* marquee */
.marquee {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.82);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track .sep {
  color: var(--orange);
  font-size: 10px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: clamp(80px, 12vh, 140px) 0; position: relative; }

/* --- INTRO / ABOUT TEASER --- */
.intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.intro-grid .col-meta { position: sticky; top: 120px; }
.intro-grid .meta-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.intro-grid .meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}
.intro-grid p {
  margin-bottom: 24px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: #2A3A5C;
}
.intro-grid p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 5.5em;
  font-weight: 300;
  float: left;
  line-height: 0.85;
  margin: 8px 14px 0 0;
  color: var(--orange);
}
.intro-quote {
  margin-top: 36px;
  padding: 28px 32px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
}
@media (max-width: 920px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-grid .col-meta { position: static; }
}

/* --- SERVICES --- */
.services {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}
.services-head p { color: #2A3A5C; }

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 60px;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: all .4s var(--ease);
  cursor: pointer;
  position: relative;
}
.service-row::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(242,90,27,0.04));
  transition: left .5s var(--ease);
  pointer-events: none;
}
.service-row:hover::before { left: 0; }
.service-row:hover { padding-left: 24px; padding-right: 24px; }
.service-row:hover .service-arrow { background: var(--orange); color: white; transform: rotate(-45deg); }
.service-row:hover .service-title { color: var(--orange); }
.service-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  color: var(--orange);
  letter-spacing: -0.01em;
}
.service-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  transition: color .3s var(--ease);
  line-height: 1.05;
}
.service-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.service-arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  transition: all .35s var(--ease);
  justify-self: end;
}
.service-arrow svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .services-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .service-row { grid-template-columns: 50px 1fr 50px; gap: 18px; padding: 28px 0; }
  .service-desc { display: none; }
  .service-arrow { width: 44px; height: 44px; }
}

/* --- WHY US --- */
.why {
  background: var(--navy-deepest);
  color: white;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.08) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  opacity: 0.4;
}
.why-head { position: relative; text-align: center; max-width: 760px; margin: 0 auto 80px; }
.why-head .eyebrow { color: var(--orange-bright); justify-content: center; }
.why-head .eyebrow::before { display: none; }
.why-head .section-title { color: white; margin-top: 18px; }
.why-head .section-title em { color: var(--orange-bright); font-style: italic; }
.why-head p { color: rgba(255,255,255,0.7); margin: 24px auto 0; max-width: 580px; }

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.why-card {
  padding: 50px 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background .3s var(--ease);
}
.why-card:last-child { border-right: none; }
.why-card:hover { background: rgba(242,90,27,0.08); }
.why-card .num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--orange-bright);
  margin-bottom: 36px;
}
.why-card .title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: white;
}
.why-card .desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .why-card:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { border-right: none !important; }
  .why-card:last-child { border-bottom: none; }
}

/* --- CTA STRIP --- */
.cta-strip {
  background: var(--ivory);
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: 'PHOENIX';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 25vw, 320px);
  font-weight: 300;
  font-style: italic;
  color: rgba(10,26,62,0.045);
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
.cta-strip .wrap { position: relative; z-index: 2; text-align: center; }
.cta-strip .display {
  font-size: clamp(40px, 6vw, 88px);
  margin: 24px auto 36px;
  max-width: 18ch;
}
.cta-strip .lead { margin: 0 auto 40px; }
.cta-strip .ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-deepest);
  color: rgba(255,255,255,0.75);
  padding: 90px 0 30px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: 24px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer a { transition: color .2s var(--ease); }
.footer a:hover { color: var(--orange-bright); }
.footer .brand-block { max-width: 320px; }
.footer .brand-block p { font-size: 14px; line-height: 1.6; margin: 18px 0; color: rgba(255,255,255,0.6); }
.footer .brand-block .brand-mark { height: 56px; filter: brightness(1.1); margin-bottom: 8px; }
.footer .brand-block .brand-text-foot {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.footer .brand-block .brand-text-foot small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--orange-bright);
  margin-top: 8px;
  font-weight: 600;
}
.footer-contact-line {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .reg {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-bottom .reg span {
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  letter-spacing: 0.06em;
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer .brand-block { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PAGE HEADERS (interior pages)
   ========================================================= */
.page-head {
  background: var(--navy-deepest);
  color: white;
  padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 10vh, 110px);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.1) 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, black, transparent 75%);
  opacity: 0.4;
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head .crumbs {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 26px;
}
.page-head .crumbs a { color: var(--orange-bright); }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: white;
  max-width: 18ch;
  margin-bottom: 28px;
}
.page-head h1 em {
  font-style: italic;
  color: var(--orange-bright);
  font-weight: 300;
}
.page-head .lead { color: rgba(255,255,255,0.78); max-width: 60ch; }

/* =========================================================
   ABOUT PAGE specifics
   ========================================================= */
.about-pillars {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar {
  padding: 60px 40px;
  border-right: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--ivory); }
.pillar .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  font-weight: 300;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 24px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--navy-deep);
  margin-bottom: 14px;
}
.pillar p { font-size: 15px; line-height: 1.65; color: #2A3A5C; }
@media (max-width: 920px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
}

/* about company facts table */
.facts {
  background: var(--ivory);
}
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.facts-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.facts-table .row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.facts-table .row .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}
.facts-table .row .v {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr; gap: 40px; }
  .facts-table .row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}

/* =========================================================
   SERVICES PAGE specifics
   ========================================================= */
.svc-detail {
  background: var(--paper);
}
.svc-detail-block {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc-detail-block:last-child { border-bottom: none; }
.svc-detail-block .num {
  font-family: var(--font-display);
  font-size: clamp(70px, 9vw, 140px);
  font-weight: 300;
  font-style: italic;
  color: var(--orange);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.svc-detail-block h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.04;
  margin-bottom: 24px;
}
.svc-detail-block p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: #2A3A5C;
  margin-bottom: 24px;
}
.svc-detail-block ul {
  list-style: none;
  margin-top: 28px;
}
.svc-detail-block ul li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy-deep);
}
.svc-detail-block ul li::before {
  content: '→';
  color: var(--orange);
  font-weight: 600;
}
.svc-detail-block ul li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 920px) {
  .svc-detail-block { grid-template-columns: 1fr; gap: 24px; padding: 60px 0; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-wrap {
  background: var(--ivory);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}
.contact-info { position: sticky; top: 120px; align-self: start; }
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--navy-deep);
  margin-bottom: 14px;
  line-height: 1.1;
}
.contact-info p { color: #2A3A5C; margin-bottom: 36px; max-width: 40ch; }
.contact-blocks { display: flex; flex-direction: column; gap: 28px; }
.contact-block {
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all .3s var(--ease);
}
.contact-block:hover { border-color: var(--orange); transform: translateX(4px); }
.contact-block .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.contact-block .value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy-deep);
  line-height: 1.4;
}
.contact-block .value a { display: block; }
.contact-block .value a + a { margin-top: 4px; }

/* form */
.contact-form {
  background: var(--paper);
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
}
.contact-form h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.05;
  margin-bottom: 12px;
}
.contact-form > p { color: var(--muted); margin-bottom: 36px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field {
  margin-bottom: 24px;
  position: relative;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--navy-deep);
  transition: border-color .3s var(--ease);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; padding: 14px 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--orange); }
.field input::placeholder, .field textarea::placeholder { color: #B8C0D1; }
.contact-form .btn { margin-top: 14px; }
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-info { position: static; }
  .field-row { grid-template-columns: 1fr; }
}

/* map placeholder */
.map-strip {
  background: var(--navy-deepest);
  padding: 60px 0;
  color: white;
  text-align: center;
}
.map-strip .display {
  color: white;
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 16px;
}
.map-strip .display em { color: var(--orange-bright); }
.map-strip p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto; }

/* =========================================================
   ANIMATIONS / REVEAL
   Only hidden when JS is active — graceful fallback otherwise.
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal.delay-1 { transition-delay: .1s; }
.js .reveal.delay-2 { transition-delay: .2s; }
.js .reveal.delay-3 { transition-delay: .3s; }
.js .reveal.delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* utility */
.hide-mobile { }
@media (max-width: 760px) { .hide-mobile { display: none; } }

/* =========================================================
   PHOENIX ASSIST — CHATBOT
   ========================================================= */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  font-family: var(--font-body);
}

/* Floating Action Button */
.chatbot-fab {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7A2E 0%, #F25A1B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 36px -8px rgba(242,90,27,0.55), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border: none;
}
.chatbot-fab:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 18px 44px -8px rgba(242,90,27,0.65), 0 0 0 1px rgba(255,255,255,0.15) inset;
}
.chatbot-fab:active { transform: scale(1.02); }
.chatbot-fab-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 2;
  animation: cb-wobble 6s ease-in-out infinite;
}
@keyframes cb-wobble {
  0%, 90%, 100% { transform: rotate(0deg); }
  93% { transform: rotate(-8deg); }
  96% { transform: rotate(6deg); }
}

/* Pulse ring */
.chatbot-fab-pulse,
.chatbot-fab-pulse::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--orange);
  animation: cb-pulse 2.4s var(--ease) infinite;
  pointer-events: none;
}
.chatbot-fab-pulse::after {
  content: '';
  animation-delay: 1.2s;
  inset: 0;
}
@keyframes cb-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Notification dot */
.chatbot-fab-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px white;
  animation: cb-pop .6s var(--ease) .8s backwards;
}
@keyframes cb-pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.chatbot.open .chatbot-fab-dot { display: none; }
.chatbot.open .chatbot-fab-pulse { display: none; }

/* When open: morph FAB to close button */
.chatbot.open .chatbot-fab-icon {
  opacity: 0;
  transform: scale(0.6);
}
.chatbot-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 46%, white 46%, white 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, white 46%, white 54%, transparent 54%);
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
  transition: all .35s var(--ease);
  pointer-events: none;
}
.chatbot.open .chatbot-fab::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Panel */
.chatbot-panel {
  position: absolute;
  bottom: 84px;
  right: 0;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 140px));
  background: var(--ivory);
  border-radius: 20px;
  box-shadow:
    0 30px 80px -20px rgba(10,26,62,0.35),
    0 0 0 1px rgba(10,26,62,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.chatbot.open .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.chatbot-header {
  background: var(--navy-deepest);
  color: white;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.chatbot-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.08) 1px, transparent 1.4px);
  background-size: 14px 14px;
  mask-image: linear-gradient(135deg, black, transparent 80%);
  -webkit-mask-image: linear-gradient(135deg, black, transparent 80%);
  opacity: 0.5;
}
.chatbot-header > * { position: relative; }
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7A2E, #F25A1B);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.chatbot-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
}
.chatbot-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chatbot-online {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5DEAA1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chatbot-online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5DEAA1;
  box-shadow: 0 0 0 4px rgba(93,234,161,0.18);
  animation: cb-blink 2s ease-in-out infinite;
}
@keyframes cb-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.chatbot-tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.chatbot-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease);
  border: none;
}
.chatbot-close:hover { background: rgba(255,255,255,0.18); }
.chatbot-close svg { width: 14px; height: 14px; }

/* Messages area */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,26,62,0.15) transparent;
}
.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(10,26,62,0.15); border-radius: 5px; }

.cb-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
  animation: cb-msg-in .4s var(--ease) backwards;
}
@keyframes cb-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cb-msg.bot {
  background: white;
  color: var(--navy-deep);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.cb-msg.user {
  background: var(--navy-deep);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.cb-msg a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-msg.user a { color: var(--orange-bright); }

/* Action button inside a message */
.cb-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--orange);
  color: white !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background .25s var(--ease);
}
.cb-action:hover { background: var(--navy-deep); }
.cb-action svg { width: 12px; height: 12px; }

/* Typing indicator */
.cb-typing {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cb-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: cb-bounce 1.2s ease-in-out infinite;
}
.cb-typing span:nth-child(2) { animation-delay: .2s; }
.cb-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cb-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Quick replies */
.chatbot-quick-replies {
  padding: 4px 18px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}
.cb-chip {
  padding: 9px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy-deep);
  cursor: pointer;
  transition: all .25s var(--ease);
  font-family: inherit;
  animation: cb-chip-in .35s var(--ease) backwards;
}
.cb-chip:nth-child(1) { animation-delay: .05s; }
.cb-chip:nth-child(2) { animation-delay: .12s; }
.cb-chip:nth-child(3) { animation-delay: .19s; }
.cb-chip:nth-child(4) { animation-delay: .26s; }
@keyframes cb-chip-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cb-chip:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: translateY(-1px);
}

/* Input row */
.chatbot-input {
  border-top: 1px solid var(--line);
  background: white;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chatbot-input input {
  flex: 1;
  border: none;
  background: var(--ivory);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy-deep);
  outline: none;
  transition: box-shadow .25s var(--ease);
}
.chatbot-input input:focus { box-shadow: 0 0 0 2px rgba(242,90,27,0.25); }
.chatbot-input input::placeholder { color: var(--muted); }
.chatbot-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.chatbot-input button:hover { background: var(--navy-deep); transform: rotate(-15deg); }
.chatbot-input button svg { width: 16px; height: 16px; }

/* Mobile tweaks */
@media (max-width: 480px) {
  .chatbot { right: 16px; bottom: 16px; }
  .chatbot-panel {
    bottom: 78px;
    right: 0;
    width: calc(100vw - 32px);
    height: min(540px, calc(100vh - 120px));
  }
}

/* =========================================================
   GLOBAL TRADE PULSE — auto-updating news section
   ========================================================= */
.pulse {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pulse-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.pulse-head .meta-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}
.pulse-head .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2BB673;
  box-shadow: 0 0 0 4px rgba(43,182,115,0.18);
  animation: pulse-blink 2s ease-in-out infinite;
}
@keyframes pulse-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.pulse-head .refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.pulse-head .refresh-btn:hover {
  background: var(--navy-deep);
  color: white;
  border-color: var(--navy-deep);
}
.pulse-head .refresh-btn svg { width: 12px; height: 12px; transition: transform .5s var(--ease); }
.pulse-head .refresh-btn.spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .pulse-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* Grid: 1 featured + 4 secondary on desktop */
.pulse-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  min-height: 480px;
}
.pulse-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.pulse-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.pulse-card:hover {
  border-color: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(10,26,62,0.18);
}
.pulse-card:hover::before { transform: scaleX(1); }

.pulse-card.featured {
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 36px;
  background: var(--navy-deepest);
  color: white;
  border-color: var(--navy-deepest);
}
.pulse-card.featured::before { background: var(--orange-bright); }
.pulse-card.featured:hover { box-shadow: 0 24px 50px -16px rgba(10,26,62,0.4); }

.pulse-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.pulse-tag::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--orange);
}
.pulse-card.featured .pulse-tag { color: var(--orange-bright); }
.pulse-card.featured .pulse-tag::before { background: var(--orange-bright); }

.pulse-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--navy-deep);
  margin-bottom: 14px;
  font-size: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pulse-card.featured .pulse-title {
  font-size: clamp(28px, 3vw, 38px);
  color: white;
  -webkit-line-clamp: 5;
  margin-bottom: 18px;
}

.pulse-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 22px;
}
.pulse-card.featured .pulse-desc {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  -webkit-line-clamp: 4;
}
.pulse-card:not(.featured) .pulse-desc { display: none; }
.pulse-card.featured .pulse-desc { display: -webkit-box; }

.pulse-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pulse-card.featured .pulse-foot {
  color: rgba(255,255,255,0.5);
  border-top-color: rgba(255,255,255,0.12);
}
.pulse-foot .src { font-weight: 600; color: var(--navy-deep); }
.pulse-card.featured .pulse-foot .src { color: white; }
.pulse-foot .arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease);
}
.pulse-card.featured .pulse-foot .arrow { background: rgba(255,255,255,0.1); }
.pulse-foot .arrow svg { width: 10px; height: 10px; color: var(--navy-deep); }
.pulse-card.featured .pulse-foot .arrow svg { color: white; }
.pulse-card:hover .pulse-foot .arrow { background: var(--orange); transform: rotate(-45deg); }
.pulse-card:hover .pulse-foot .arrow svg { color: white; }

/* Skeleton loading */
.pulse-card.skeleton {
  pointer-events: none;
  background: white;
}
.pulse-card.skeleton::before { display: none; }
.pulse-card.skeleton .skel {
  background: linear-gradient(90deg, #EEE9DD 0%, #F8F4EC 50%, #EEE9DD 100%);
  background-size: 200% 100%;
  animation: skel-shine 1.6s ease-in-out infinite;
  border-radius: 4px;
}
.pulse-card.skeleton .skel.tag { width: 80px; height: 12px; margin-bottom: 18px; }
.pulse-card.skeleton .skel.line { width: 100%; height: 16px; margin-bottom: 8px; }
.pulse-card.skeleton .skel.line.short { width: 60%; }
.pulse-card.skeleton .skel.foot { width: 100%; height: 12px; margin-top: auto; }
@keyframes skel-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.pulse-empty {
  grid-column: 1 / -1;
  padding: 60px 24px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
}
.pulse-empty h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy-deep);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 1024px) {
  .pulse-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .pulse-card.featured {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
@media (max-width: 600px) {
  .pulse-grid { grid-template-columns: 1fr; }
  .pulse-card.featured { grid-column: 1; }
  .pulse-card { padding: 22px; }
  .pulse-card.featured { padding: 28px; }
}

/* =========================================================
   MOBILE & TABLET — comprehensive responsive pass
   ========================================================= */

/* Tablet (≤1024px) refinements */
@media (max-width: 1024px) {
  .site-header .wrap { height: 76px; }
  .hero { padding: clamp(60px, 10vh, 100px) 0 clamp(50px, 8vh, 80px); }
  .hero-headline { font-size: clamp(40px, 6.5vw, 80px); }
  section { padding: clamp(60px, 10vh, 110px) 0; }
}

/* Phone (≤640px) — major refinements */
@media (max-width: 640px) {
  :root { --pad-x: 22px; }
  .site-header .wrap { height: 70px; }
  .topbar { font-size: 11.5px; padding: 8px 0; }
  .topbar .tb-left span { font-size: 11px; letter-spacing: 0.04em; }

  /* Hero — denser, more impactful on small screens */
  .hero { padding: 60px 0 48px; }
  .hero-grid { gap: 28px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 18px; }
  .hero-headline { font-size: clamp(38px, 11vw, 56px); margin-bottom: 22px; }
  .hero-sub { font-size: 15.5px; margin-bottom: 28px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 15px 22px; font-size: 12px; flex: 1; min-width: 0; justify-content: center; }
  .hero-visual { max-width: 220px; }
  .hero-strip { margin-top: 50px; padding-top: 28px; gap: 22px 18px; }
  .hero-strip .stat .label { font-size: 10px; margin-bottom: 6px; }
  .hero-strip .stat .value { font-size: 16px; }

  /* Marquee — slower & smaller */
  .marquee { padding: 14px 0; }
  .marquee-track { font-size: 14px; gap: 36px; }
  .marquee-track span { gap: 36px; }

  /* Sections — tighter padding */
  section { padding: 64px 0; }
  .section-title { font-size: clamp(32px, 9vw, 44px); }
  .lead { font-size: 16px; }

  /* Intro — drop cap smaller */
  .intro-grid p:first-of-type::first-letter { font-size: 4em; margin: 6px 10px 0 0; }
  .intro-grid p { font-size: 16px; }
  .intro-quote { padding: 22px 22px; font-size: 18px; }

  /* Services head & rows */
  .services-head { margin-bottom: 36px; }
  .service-row { padding: 24px 0 !important; gap: 14px; }
  .service-num { font-size: 18px; }

  /* Why us cards: improved spacing */
  .why-card { padding: 36px 22px; }
  .why-card .title { font-size: 19px; }
  .why-card .num { margin-bottom: 24px; }

  /* CTA strip */
  .cta-strip { padding: 70px 0; }
  .cta-strip .display { font-size: clamp(34px, 9vw, 50px); }

  /* Pulse / news on phones — single column */
  .pulse-grid { gap: 14px; min-height: 0; }
  .pulse-card { padding: 22px; }
  .pulse-card.featured { padding: 26px; }
  .pulse-title { font-size: 18px; -webkit-line-clamp: 4; }
  .pulse-card.featured .pulse-title { font-size: clamp(22px, 6vw, 28px); }
  .pulse-head .meta-line { flex-wrap: wrap; gap: 8px; font-size: 10.5px; }

  /* Footer */
  .footer { padding: 60px 0 24px; }
  .footer-grid { gap: 36px; padding-bottom: 40px; }
  .footer h4 { margin-bottom: 18px; }
  .footer-bottom { font-size: 11.5px; }

  /* Page heads on interior pages */
  .page-head { padding: 60px 0 50px; }
  .page-head h1 { font-size: clamp(38px, 10vw, 56px); margin-bottom: 22px; }

  /* About pillars — single col with proper spacing */
  .pillar { padding: 42px 24px; }
  .pillar .num { font-size: 42px; margin-bottom: 18px; }
  .pillar h3 { font-size: 23px; }

  /* Service detail blocks */
  .svc-detail-block { padding: 50px 0 !important; gap: 20px !important; }
  .svc-detail-block .num { font-size: 64px; }
  .svc-detail-block h3 { font-size: 28px; }
  .svc-detail-block ul li { padding: 12px 0; font-size: 14.5px; }

  /* Contact form */
  .contact-form { padding: 28px 22px; }
  .contact-form h2 { font-size: 28px; }
  .contact-block { padding: 20px 22px; }
  .contact-block .value { font-size: 16px; }

  /* Map strip */
  .map-strip { padding: 50px 0; }
  .map-strip .display { font-size: clamp(26px, 7vw, 36px); }

  /* Buttons — slightly smaller padding */
  .btn { padding: 16px 24px; font-size: 12px; }

  /* Chatbot smaller on phones */
  .chatbot { right: 14px; bottom: 14px; }
  .chatbot-fab { width: 58px; height: 58px; }
  .chatbot-fab-icon { width: 32px; height: 32px; }
}

/* Very small phones (≤380px) */
@media (max-width: 380px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-headline { font-size: 36px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* Touch optimisations — slightly larger tap targets */
@media (hover: none) and (pointer: coarse) {
  .nav a, .footer a, .topbar a { min-height: 44px; }
  .btn { min-height: 48px; }
}

/* Marquee: distinguish primary (★ China) from secondary (◆) */
.marquee-track .sep {
  color: var(--orange);
  font-size: 10px;
}
.marquee-track em.sep:not(:first-of-type) {
  /* Stars indicate primary China lane */
}
.marquee-track .sep:nth-of-type(-n+5) { /* first 5 are stars */ }

/* =========================================================
   PRODUCT CATALOG
   ========================================================= */
.catalog {
  background: var(--paper);
}
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.cat-pill {
  padding: 10px 18px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-deep);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.cat-pill:hover { border-color: var(--orange); color: var(--orange); }
.cat-pill.active { background: var(--navy-deep); border-color: var(--navy-deep); color: white; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  min-height: 200px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: all .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(10,26,62,0.18); border-color: var(--navy-deep); }
.product-img {
  aspect-ratio: 4 / 3;
  background: var(--ivory) center/cover no-repeat;
  position: relative;
}
.product-img.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.product-tag-origin {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--orange);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
}
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 10px; }
.product-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.product-desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; flex: 1; }
.product-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.product-meta .moq { color: var(--navy-deep); font-weight: 600; }
.product-cta { display: block; margin-top: 14px; text-align: center; padding: 12px; background: var(--navy-deep); color: white !important; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: background .25s var(--ease); text-decoration: none !important; }
.product-cta:hover { background: var(--orange); }

.product-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  background: var(--ivory);
  border-radius: 8px;
  border: 1px dashed var(--line);
}
.product-empty h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

/* =========================================================
   AUTH PAGES (portal & admin)
   ========================================================= */
.auth-page {
  min-height: 100vh;
  background: var(--navy-deepest);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 20%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(242,90,27,0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 48px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2;
}
.auth-card .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-card .brand img { height: 42px; width: auto; }
.auth-card .brand span {
  font-family: var(--font-display);
  font-size: 18px;
  color: white;
  letter-spacing: -0.01em;
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-card h1 em { font-style: italic; color: var(--orange-bright); }
.auth-card .auth-sub { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 32px; }
.auth-card .field { margin-bottom: 22px; }
.auth-card .field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange-bright); margin-bottom: 10px; }
.auth-card .field input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); padding: 14px 16px; border-radius: 8px; color: white; font-family: var(--font-body); font-size: 15px; outline: none; transition: all .25s var(--ease); }
.auth-card .field input:focus { background: rgba(255,255,255,0.1); border-color: var(--orange-bright); }
.auth-card .auth-btn {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
  margin-top: 8px;
}
.auth-card .auth-btn:hover { background: var(--orange-bright); transform: translateY(-1px); }
.auth-card .auth-btn:disabled { opacity: 0.6; cursor: wait; }
.auth-card .auth-msg { margin-top: 18px; padding: 12px 16px; border-radius: 6px; font-size: 13.5px; }
.auth-card .auth-msg.error { background: rgba(255,90,90,0.12); border: 1px solid rgba(255,90,90,0.3); color: #FFA8A8; }
.auth-card .auth-msg.ok    { background: rgba(93,234,161,0.1); border: 1px solid rgba(93,234,161,0.3); color: #5DEAA1; }
.auth-card .auth-foot { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12.5px; color: rgba(255,255,255,0.5); text-align: center; }
.auth-card .auth-foot a { color: var(--orange-bright); }

/* =========================================================
   PORTAL DASHBOARD
   ========================================================= */
.portal-shell {
  background: var(--ivory);
  min-height: 100vh;
}
.portal-topbar {
  background: var(--navy-deepest);
  color: white;
  padding: 14px 0;
}
.portal-topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.portal-topbar .brand { display: flex; align-items: center; gap: 10px; }
.portal-topbar .brand img { height: 32px; }
.portal-topbar .brand span { font-family: var(--font-display); font-size: 15px; }
.portal-topbar .who { font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 14px; }
.portal-topbar .who .name { color: white; font-weight: 600; }
.portal-topbar .who a { color: var(--orange-bright); text-decoration: none; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

.portal-hero {
  padding: 50px 0 30px;
}
.portal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.portal-hero h1 em { font-style: italic; color: var(--orange); }
.portal-hero p { color: var(--muted); font-size: 15px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0 50px;
}
.stat-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.stat-tile::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--orange); }
.stat-tile .stat-label { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat-tile .stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--navy-deep); margin-top: 8px; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.portal-section { padding-bottom: 60px; }
.portal-section .section-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
}

.shipment-list { display: flex; flex-direction: column; gap: 14px; }
.shipment-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 110px;
  gap: 20px;
  align-items: center;
  transition: all .25s var(--ease);
  text-decoration: none;
  color: inherit;
}
.shipment-card:hover { border-color: var(--navy-deep); transform: translateX(4px); }
.shipment-card .ref {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
  font-weight: 600;
}
.shipment-card .title-line {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy-deep);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.shipment-card .meta-cell { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.shipment-card .meta-cell strong { display: block; color: var(--navy-deep); font-size: 13.5px; font-weight: 500; margin-top: 3px; letter-spacing: 0; }

.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge.s-order_confirmed { background: #E0E6F4; color: #2B4885; }
.badge.s-production      { background: #FFE9DC; color: #C44A18; }
.badge.s-ready_to_ship   { background: #FFE9DC; color: #C44A18; }
.badge.s-in_transit      { background: #DCEEFF; color: #1E5694; }
.badge.s-arrived         { background: #DEFBE8; color: #1F7C46; }
.badge.s-delivered       { background: #1F7C46; color: white; }
.badge.s-closed          { background: #E5E5E5; color: #555; }
.badge.p-pending         { background: #FFEDD5; color: #B45309; }
.badge.p-partial         { background: #FEF3C7; color: #92400E; }
.badge.p-paid            { background: #DEFBE8; color: #1F7C46; }
.badge.p-overdue         { background: #FEE2E2; color: #B91C1C; }

.shipment-card .arrow-cell { text-align: right; color: var(--orange); font-size: 22px; font-family: var(--font-display); }

@media (max-width: 880px) {
  .shipment-card { grid-template-columns: 1fr 1fr; }
  .shipment-card .arrow-cell { display: none; }
}
@media (max-width: 540px) {
  .shipment-card { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
}

.empty-state {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}

/* Shipment detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}
@media (max-width: 920px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.detail-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--navy-deep);
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.kv-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.kv-row .v { color: var(--navy-deep); font-weight: 500; }

.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 2px solid var(--line);
  margin-left: 6px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline .ev-label { font-weight: 600; color: var(--navy-deep); font-size: 14.5px; }
.timeline .ev-date { color: var(--muted); font-size: 12px; margin-top: 2px; }
.timeline .ev-note { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.55; }

.docs-list { list-style: none; padding: 0; margin: 0; }
.docs-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.docs-list li:last-child { border-bottom: none; }
.docs-list .doc-name { font-weight: 500; color: var(--navy-deep); }
.docs-list .doc-type { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 3px; font-weight: 700; }
.docs-list a.dl {
  padding: 8px 14px;
  background: var(--navy-deep);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .2s var(--ease);
}
.docs-list a.dl:hover { background: var(--orange); }

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */
.admin-shell { background: var(--ivory); min-height: 100vh; }
.admin-shell .portal-topbar { background: #06122E; }

.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 0 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.admin-tabs a {
  padding: 12px 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.admin-tabs a:hover { color: var(--navy-deep); }
.admin-tabs a.active { color: var(--orange); border-bottom-color: var(--orange); }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--ivory); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.data-table tbody tr:hover { background: rgba(242,90,27,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .actions { display: flex; gap: 8px; }
.data-table .actions a, .data-table .actions button {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy-deep);
  font-family: inherit;
}
.data-table .actions a:hover, .data-table .actions button:hover { background: var(--navy-deep); color: white; border-color: var(--navy-deep); }
.data-table .actions .danger:hover { background: #B91C1C; border-color: #B91C1C; }

@media (max-width: 760px) {
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

.admin-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  max-width: 720px;
}
.admin-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form .field { margin-bottom: 18px; }
.admin-form label { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 8px; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 14px; color: var(--navy-deep); background: white; outline: none; transition: border-color .25s var(--ease); }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--orange); }
.admin-form textarea { resize: vertical; min-height: 100px; }
.admin-form .submit { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--orange); color: white; border: none; border-radius: 6px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background .2s var(--ease); }
.admin-form .submit:hover { background: var(--navy-deep); }
@media (max-width: 600px) { .admin-form .field-row { grid-template-columns: 1fr; } }

.flash {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 22px;
  font-size: 14px;
}
.flash.ok    { background: #DEFBE8; color: #1F7C46; border-left: 3px solid #1F7C46; }
.flash.error { background: #FEE2E2; color: #B91C1C; border-left: 3px solid #B91C1C; }

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */
.whatsapp-fab {
  position: fixed !important;
  bottom: 24px;
  left: 24px;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px;
  max-width: 58px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 12px 32px -8px rgba(37,211,102,0.55);
  transition: transform .3s var(--ease);
  text-decoration: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  flex: 0 0 auto;
}
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: cb-pulse 2.6s var(--ease) infinite;
  pointer-events: none;
}
.whatsapp-fab:hover { transform: scale(1.08) translateY(-2px); }
.whatsapp-fab svg {
  width: 30px !important;
  height: 30px !important;
  color: white;
  fill: white;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 640px) {
  .whatsapp-fab {
    left: 14px !important;
    bottom: 14px !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    max-width: 52px;
  }
  .whatsapp-fab svg { width: 26px !important; height: 26px !important; }
}

/* =========================================================
   ★ HERO ANIMATED WORLD-MAP BACKDROP
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-worldmap {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 30%, transparent 95%);
}
.hero-worldmap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-worldmap .land-dot {
  fill: rgba(10, 26, 62, 0.22);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-worldmap .land-dot.pulse {
    animation: hero-dot-pulse 3.6s var(--ease) infinite;
  }
}
@keyframes hero-dot-pulse {
  0%, 100% { fill: rgba(10, 26, 62, 0.22); transform: scale(1); }
  50%      { fill: rgba(242, 90, 27, 0.85); transform: scale(1.6); }
}
.hero-worldmap .land-dot { transform-origin: center; transform-box: fill-box; }

/* Glowing trade arc from China to Sri Lanka */
.hero-worldmap .arc-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3 5;
  opacity: 0.7;
  filter: drop-shadow(0 0 4px rgba(242, 90, 27, 0.6));
  animation: arc-flow 3s linear infinite;
}
@keyframes arc-flow {
  to { stroke-dashoffset: -16; }
}
.hero-worldmap .arc-glow {
  fill: none;
  stroke: rgba(242, 90, 27, 0.18);
  stroke-width: 9;
  stroke-linecap: round;
  filter: blur(8px);
}

/* Floating particle that travels along the arc (animateMotion in SVG) */
.hero-worldmap .arc-particle {
  fill: var(--orange);
  filter: drop-shadow(0 0 6px rgba(242, 90, 27, 0.95));
}

/* =========================================================
   ★ TRADE ROUTES SECTION (animated SVG world map)
   ========================================================= */
.routes-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
  padding: clamp(80px, 12vh, 130px) 0;
  position: relative;
  overflow: hidden;
}
.routes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(10, 26, 62, 0.05) 1px, transparent 1.5px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 20%, transparent 90%);
  pointer-events: none;
}
.routes-head {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}
.routes-head .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}
.routes-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--navy-deep);
  line-height: 1.05;
  margin-bottom: 18px;
}
.routes-head h2 em {
  font-style: italic;
  color: var(--orange);
  font-weight: 400;
}
.routes-head p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.routes-map {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 1;
}
.routes-map svg {
  width: 100%;
  height: auto;
  display: block;
}
/* World dots */
.routes-map .world-dot { fill: rgba(10, 26, 62, 0.18); }

/* Route lines */
.routes-map .route {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  opacity: 0.7;
}
.routes-map .route.primary {
  stroke: var(--orange);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 4px rgba(242, 90, 27, 0.55));
  animation: route-flow 2.5s linear infinite;
}
.routes-map .route.secondary {
  stroke: rgba(10, 26, 62, 0.45);
  animation: route-flow 4s linear infinite;
}
@keyframes route-flow {
  to { stroke-dashoffset: -20; }
}

/* Route glow underlay */
.routes-map .route-glow {
  fill: none;
  stroke: rgba(242, 90, 27, 0.18);
  stroke-width: 9;
  stroke-linecap: round;
  filter: blur(6px);
}

/* City nodes */
.routes-map .node {
  cursor: default;
}
.routes-map .node-ring {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
  transform-origin: center;
  transform-box: fill-box;
  animation: node-pulse 2.8s ease-out infinite;
}
.routes-map .node.secondary .node-ring {
  stroke: var(--navy-deep);
}
@keyframes node-pulse {
  0%   { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(2.6); opacity: 0; }
}
.routes-map .node-core { fill: var(--orange); }
.routes-map .node.secondary .node-core { fill: var(--navy-deep); }
.routes-map .node-hub  {
  fill: var(--orange);
  filter: drop-shadow(0 0 6px rgba(242, 90, 27, 0.8));
}
.routes-map .node-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--navy-deep);
}
.routes-map .node.primary .node-label {
  fill: var(--orange);
  font-size: 12px;
}

/* Travelling particles along primary routes (animateMotion in SVG) */
.routes-map .particle {
  fill: var(--orange);
  filter: drop-shadow(0 0 8px rgba(242, 90, 27, 1));
}

/* Route legend */
.routes-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.routes-legend .leg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.routes-legend .leg .swatch {
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
}
.routes-legend .leg.primary .swatch { background: var(--orange); }
.routes-legend .leg.secondary .swatch { background: rgba(10,26,62,0.45); }
.routes-legend .leg.hub .swatch { background: var(--orange); width: 10px; height: 10px; border-radius: 50%; }

/* =========================================================
   ★ COUNT-UP STATS BAND
   ========================================================= */
.stats-band {
  background: var(--navy-deepest);
  color: white;
  padding: clamp(70px, 10vh, 110px) 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.04) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 90%);
  pointer-events: none;
}
.stats-band::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 30%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(242,90,27,0.14), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.stats-band-head {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
.stats-band-head .eyebrow {
  color: var(--orange-bright);
  margin-bottom: 18px;
}
.stats-band-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stats-band-head h2 em {
  font-style: italic;
  color: var(--orange-bright);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}
@media (max-width: 920px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; gap: 36px; } }

.stat-card {
  text-align: center;
  position: relative;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--orange);
}
.stat-card .stat-num-big {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 300;
  color: white;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 24px 0 12px;
  display: inline-block;
}
.stat-card .stat-num-big .suffix {
  color: var(--orange-bright);
  font-weight: 400;
  font-style: italic;
}
.stat-card .stat-label-big {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  margin-bottom: 12px;
}
.stat-card .stat-blurb {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  max-width: 240px;
  margin: 0 auto;
}

/* ========================================================================
   ★★★  ADMIN + PORTAL v2 — Premium dashboard redesign
   Sidebar nav, glass cards, charts, activity feed, visual timeline
   ======================================================================== */

/* ---- Layout shell ---- */
.dash-shell {
  background: linear-gradient(180deg, #F8F4EC 0%, #ECE6D7 100%);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  font-family: var(--font-body);
}

.dash-sidebar {
  background: linear-gradient(180deg, #06122E 0%, #0A1A3E 100%);
  color: white;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
}
.dash-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.04) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, black, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}
.dash-brand {
  position: relative;
  z-index: 1;
  padding: 0 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}
.dash-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.dash-brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.dash-brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-top: 4px;
  font-weight: 700;
}

.dash-nav {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  flex: 1;
}
.dash-nav-section {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  padding: 14px 12px 10px;
  margin-top: 4px;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s var(--ease);
  margin-bottom: 2px;
  position: relative;
}
.dash-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}
.dash-nav a.active {
  background: rgba(242,90,27,0.14);
  color: white;
}
.dash-nav a.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}
.dash-nav a .ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.dash-nav a.active .ic { opacity: 1; }
.dash-nav-badge {
  margin-left: auto;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.dash-sidebar-foot {
  position: relative;
  z-index: 1;
  padding: 18px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 16px;
}
.dash-sidebar-foot .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-sidebar-foot .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, #FF7A2E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}
.dash-sidebar-foot .nm {
  font-size: 13px;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}
.dash-sidebar-foot .em {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.dash-sidebar-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.dash-sidebar-foot a:hover { color: var(--orange-bright); }

/* ---- Main content area ---- */
.dash-main {
  padding: 28px 36px 60px;
  min-width: 0; /* prevents grid blowout */
}
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-topbar h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--navy-deep);
  margin: 0;
  line-height: 1.1;
}
.dash-topbar h1 em { font-style: italic; color: var(--orange); }
.dash-topbar .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.dash-search {
  position: relative;
  min-width: 280px;
  max-width: 360px;
  flex: 1;
}
.dash-search input {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px 10px 40px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--navy-deep);
  outline: none;
  transition: border-color .2s var(--ease);
  box-sizing: border-box;
}
.dash-search input:focus { border-color: var(--orange); }
.dash-search::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A99' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>") no-repeat center;
  background-size: contain;
  pointer-events: none;
}

/* ---- Glass cards / new stat tiles ---- */
.dash-grid {
  display: grid;
  gap: 20px;
}
.dash-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(10, 26, 62, 0.18);
}
.kpi .kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.kpi .kpi-label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.kpi .kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 90, 27, 0.12), rgba(242, 90, 27, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.kpi .kpi-icon svg { width: 16px; height: 16px; }
.kpi .kpi-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.kpi .kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.kpi .kpi-trend.up    { background: rgba(31, 124, 70, 0.1);  color: #1F7C46; }
.kpi .kpi-trend.down  { background: rgba(185, 28, 28, 0.08); color: #B91C1C; }
.kpi .kpi-trend.flat  { background: rgba(107, 122, 153, 0.1); color: var(--muted); }
.kpi .spark {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 38px;
  pointer-events: none;
  opacity: 0.6;
}
.kpi .spark path.fill   { fill: rgba(242, 90, 27, 0.08); }
.kpi .spark path.line   { fill: none; stroke: var(--orange); stroke-width: 1.4; }
.kpi.alert {
  border-color: rgba(242, 90, 27, 0.4);
  background: linear-gradient(135deg, white 0%, rgba(242, 90, 27, 0.04) 100%);
}
.kpi.alert .kpi-icon {
  background: linear-gradient(135deg, var(--orange) 0%, #FF7A2E 100%);
  color: white;
}

/* ---- Activity feed ---- */
.dash-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  overflow: hidden;
  position: relative;
}
.dash-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin: 0;
}
.dash-card-action {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.dash-card-action:hover { color: var(--navy-deep); }

.activity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.activity li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity li:last-child { border-bottom: none; }
.activity .a-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}
.activity .a-icon.inquiry  { background: rgba(31, 92, 148, 0.1);  color: #1E5694; }
.activity .a-icon.quote    { background: rgba(242, 90, 27, 0.12); color: var(--orange); }
.activity .a-icon.client   { background: rgba(31, 124, 70, 0.1);  color: #1F7C46; }
.activity .a-icon.shipment { background: rgba(196, 102, 20, 0.12); color: #C46614; }
.activity .a-icon.document { background: rgba(85, 41, 165, 0.1);  color: #5529A5; }
.activity .a-icon.login    { background: rgba(107, 122, 153, 0.12); color: var(--muted); }
.activity .a-icon.revoke   { background: rgba(185, 28, 28, 0.1);  color: #B91C1C; }
.activity .a-body { flex: 1; min-width: 0; }
.activity .a-text {
  font-size: 13.5px;
  color: var(--navy-deep);
  line-height: 1.4;
}
.activity .a-text strong { font-weight: 600; }
.activity .a-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* ---- Mini chart (inline SVG) ---- */
.mini-chart {
  width: 100%;
  height: 200px;
}
.mini-chart .grid line { stroke: var(--line); stroke-width: 0.6; }
.mini-chart .axis text { font-size: 9.5px; fill: var(--muted); font-family: var(--font-body); }
.mini-chart .area-a { fill: rgba(242, 90, 27, 0.12); }
.mini-chart .area-b { fill: rgba(31, 92, 148, 0.10); }
.mini-chart .line-a { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; }
.mini-chart .line-b { fill: none; stroke: #1E5694;     stroke-width: 2; stroke-linejoin: round; }
.mini-chart .dot-a  { fill: var(--orange); }
.mini-chart .dot-b  { fill: #1E5694; }
.legend {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.legend .item { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 12px; height: 3px; border-radius: 2px; }
.legend .swatch.a { background: var(--orange); }
.legend .swatch.b { background: #1E5694; }

/* ---- Pretty status pills (more variants) ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.pill.green   { background: rgba(31, 124, 70, 0.1);  color: #1F7C46; }
.pill.amber   { background: rgba(196, 102, 20, 0.12); color: #C46614; }
.pill.red     { background: rgba(185, 28, 28, 0.1);  color: #B91C1C; }
.pill.blue    { background: rgba(31, 92, 148, 0.1);  color: #1E5694; }
.pill.gray    { background: rgba(107, 122, 153, 0.12); color: var(--muted); }
.pill.purple  { background: rgba(85, 41, 165, 0.1);  color: #5529A5; }

/* ---- Quick actions ---- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.qa {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  text-decoration: none;
  color: var(--navy-deep);
  transition: all .25s var(--ease);
  cursor: pointer;
  font-family: inherit;
  display: block;
}
.qa:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(242, 90, 27, 0.3);
}
.qa .qa-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(242, 90, 27, 0.14), rgba(242, 90, 27, 0.04));
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.qa .qa-icon svg { width: 18px; height: 18px; }
.qa .qa-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.qa .qa-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---- Visual shipment timeline ---- */
.tracker {
  display: flex;
  align-items: flex-start;
  margin: 24px 0 8px;
  position: relative;
  overflow-x: auto;
}
.tracker .step {
  flex: 1;
  min-width: 90px;
  text-align: center;
  position: relative;
}
.tracker .step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.tracker .step:last-child::before { display: none; }
.tracker .step .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--line);
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  transition: all .3s var(--ease);
}
.tracker .step.done .dot {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
.tracker .step.done::before { background: var(--orange); }
.tracker .step.current .dot {
  background: white;
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 90, 27, 0.18);
  animation: tracker-pulse 1.6s var(--ease) infinite;
}
@keyframes tracker-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242, 90, 27, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(242, 90, 27, 0.04); }
}
.tracker .step .lbl {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
}
.tracker .step.done .lbl,
.tracker .step.current .lbl { color: var(--navy-deep); }

/* ---- Mobile dashboard ---- */
.dash-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: white;
  border: 0;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,0.4);
  cursor: pointer;
}
@media (max-width: 920px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .35s var(--ease);
    z-index: 55;
  }
  .dash-shell.menu-open .dash-sidebar { transform: translateX(0); }
  .dash-shell.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(6, 18, 46, 0.55);
    z-index: 50;
    cursor: pointer;
  }
  .dash-mobile-toggle { display: flex; }
  .dash-main { padding: 70px 18px 60px; }
  .dash-topbar h1 { font-size: 24px; }
  .dash-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .dash-grid.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dash-grid.cols-4 { grid-template-columns: 1fr; }
}

/* When admin pages use existing .wrap inside the new dash layout, neutralise it */
.dash-main .wrap {
  max-width: none;
  padding: 0;
  margin: 0;
}
.dash-main .portal-hero {
  padding: 0 0 18px;
}
.dash-main .portal-hero h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--navy-deep);
  margin: 0 0 6px;
}
.dash-main .portal-hero h1 em { color: var(--orange); }
.dash-main .portal-hero p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}
.dash-main .portal-section { padding: 0; }
.dash-main .section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}
.dash-main .section-h h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin: 0;
}
.dash-main .admin-form,
.dash-main .data-table,
.dash-main .empty-state {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dash-main .data-table {
  overflow: hidden;
}
.dash-main .flash {
  background: white;
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
}
.dash-main .flash.ok    { border-left: 3px solid #1F7C46; color: #1F7C46; }
.dash-main .flash.error { border-left: 3px solid #B91C1C; color: #B91C1C; }
