/*
Theme Name: Five Star Cargo
Theme URI: https://example.com/
Author: Five Star Cargo
Description: A WordPress conversion of the supplied Five Star Cargo PHP website, including shipment tracking and quote requests.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: five-star-cargo
License: GPL-2.0-or-later
*/

/* Five Star Cargo — standalone stylesheet (no build step required). */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
input,textarea,select{font:inherit;color:inherit}
ul{margin:0;padding:0}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,h5,h6,p{margin:0}
table{border-collapse:collapse}
/*
 * Five Star Cargo — "Consignment" design system.
 * Everything here derives from the FSC logo: its red (#D2342E), its glossy rounded
 * tile module, its cool paper-grey field, its Helvetica-bold caps, and its dotted
 * contrail. Red is structural, not decorative — it marks actions, status and route.
 */


:root {
  /* --- palette lifted from the logo artwork ------------------------------ */
  --red: #d2342e;
  --red-bright: #e04039;
  --red-deep: #a50f0b;
  --ink: #23262a;
  --ink-soft: #4a4e54;
  --steel: #6b7076;
  --steel-pale: #a9aeb4;
  --paper: #f1f2f4;
  --paper-2: #e7e9ec;
  --line: #dcdee2;
  --line-soft: #e8eaed;

  /* shadcn bridge */
  --background: var(--paper);
  --foreground: var(--ink);
  --card: #ffffff;
  --card-foreground: var(--ink);
  --popover: #ffffff;
  --popover-foreground: var(--ink);
  --primary: var(--red);
  --primary-foreground: #ffffff;
  --secondary: var(--paper-2);
  --secondary-foreground: var(--ink);
  --muted: var(--paper-2);
  --muted-foreground: var(--steel);
  --accent: var(--red);
  --accent-foreground: #ffffff;
  --border: var(--line);
  --input: var(--line);
  --ring: var(--red);
  --radius: 0.5rem;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;

  --tile-radius: 0.22em;
  --ease: cubic-bezier(0.22, 0.85, 0.3, 1);
  --shell: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; }
button:not(:disabled), a[href], label { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
}
p { margin: 0; }

/* ---------- primitives ---------------------------------------------------- */
.wrap { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

.field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.tag-tile {
  display: inline-grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: var(--tile-radius);
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  color: #fff;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 2px 6px rgba(165, 15, 11, 0.28);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 105;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn-red {
  background: linear-gradient(160deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 18px rgba(165, 15, 11, 0.3);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 24px rgba(165, 15, 11, 0.36); }
.btn-ghost { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); background: #131518; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--red);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s var(--ease), gap 0.18s var(--ease);
}
.link-arrow:hover { border-color: var(--red); gap: 12px; }

/* ---------- top utility bar ---------------------------------------------- */
.utility { background: var(--ink); color: rgba(255, 255, 255, 0.82); font-size: 12.5px; }
.utility-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; min-height: 38px; flex-wrap: wrap;
}
.utility-left, .utility-right { display: flex; align-items: center; gap: 20px; }
.utility a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.18s var(--ease); }
.utility a:hover { color: #fff; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  animation: ping 2.4s var(--ease) infinite;
  flex: none;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(210, 52, 46, 0.6); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(210, 52, 46, 0); }
}

/* ---------- header -------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.22s var(--ease);
}
.masthead::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright) 42%, var(--red-deep));
}
.masthead.stuck { box-shadow: 0 12px 30px -22px rgba(35, 38, 42, 0.55); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px; transition: min-height 0.22s var(--ease);
}
.masthead.stuck .masthead-inner { min-height: 64px; }
.brand img { height: 54px; width: auto; transition: height 0.22s var(--ease); }
.masthead.stuck .brand img { height: 44px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-cta-mobile { display: none; }
.nav button {
  padding: 9px 14px; border-radius: 6px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav button:hover { color: var(--red); background: rgba(210, 52, 46, 0.07); }
.masthead-actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; padding: 8px; border-radius: 6px; color: var(--ink); }

/* ---------- hero ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 78% 6%, #ffffff 0%, var(--paper) 46%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(85% 70% at 30% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(85% 70% at 30% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}
.contrail { position: absolute; inset: 0; pointer-events: none; }
.contrail svg { width: 100%; height: 100%; }
.contrail circle { fill: var(--red); opacity: 0; animation: dotIn 0.5s var(--ease) forwards; }
@keyframes dotIn { to { opacity: 0.42; } }

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px; align-items: center;
  padding: 84px 0 92px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 14px 7px 11px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 5px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-soft);
}
.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(2.85rem, 6.4vw, 5.1rem);
  font-weight: 900;
  font-variation-settings: "wdth" 116;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lede { margin-top: 22px; max-width: 33rem; font-size: 1.09rem; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px; border-top: 1px solid var(--line);
}
.hero-facts div { padding: 18px 22px 0 0; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; padding-right: 0; }
.hero-facts strong {
  display: block; font-family: var(--font-display);
  font-variation-settings: "wdth" 104; font-weight: 800;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.15; text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero-facts span { font-size: 13px; color: var(--steel); }

/* ---------- airway-bill tracking card ------------------------------------ */
.awb {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 30px 60px -40px rgba(35, 38, 42, 0.5);
  overflow: hidden;
}
.awb-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(160deg, var(--red-bright), var(--red-deep));
  color: #fff;
}
.awb-head strong {
  font-family: var(--font-display); font-variation-settings: "wdth" 108;
  font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
}
.awb-head .awb-no { font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.85); letter-spacing: 0.1em; }
.awb-body { padding: 22px 20px 24px; }
.awb-body > p { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; }

.awb-input {
  display: flex; align-items: stretch; margin-top: 16px;
  border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--paper);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}
.awb-input:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(210, 52, 46, 0.13); background: #fff; }
.awb-input input {
  flex: 1; min-width: 0; padding: 15px 16px; border: 0; background: transparent;
  font-family: var(--font-mono); font-size: 15.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.awb-input input:focus { outline: none; }
.awb-input button { display: grid; place-items: center; width: 54px; background: var(--ink); color: #fff; transition: background 0.16s var(--ease); }
.awb-input button:hover { background: var(--red); }

.awb-samples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.awb-samples button {
  padding: 5px 10px; border: 1px dashed var(--line); border-radius: 5px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.awb-samples button:hover { border-color: var(--red); border-style: solid; color: var(--red); }

.awb-empty {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px;
  border: 1px dashed var(--line); border-radius: 8px; background: var(--paper);
  font-size: 14px; color: var(--ink-soft);
}
.awb-empty svg { color: var(--steel); flex: none; }

.awb-alert {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; padding: 14px 16px;
  border-radius: 8px; border: 1px solid rgba(210, 52, 46, 0.3);
  background: rgba(210, 52, 46, 0.07); font-size: 14px; color: var(--ink);
}
.awb-alert svg { color: var(--red); flex: none; margin-top: 2px; }
.awb-alert button { color: var(--red); font-weight: 600; border-bottom: 1px solid currentColor; }

.awb-found {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  width: 100%; margin-top: 18px; padding: 15px 16px; text-align: left;
  border-radius: 9px; border: 1px solid rgba(210, 52, 46, 0.28);
  background: rgba(210, 52, 46, 0.06);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.awb-found:hover { border-color: var(--red); background: rgba(210, 52, 46, 0.1); }
.awb-found-main { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; }
.awb-found-main svg { color: var(--red); }
.awb-found-main .mono { font-weight: 600; }
.awb-found-cta { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-variation-settings: "wdth" 104; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(210, 52, 46, 0.1); color: var(--red-deep); border: 1px solid rgba(210, 52, 46, 0.25);
}
.status-chip.steel { background: rgba(107, 112, 118, 0.12); color: var(--ink-soft); border-color: rgba(107, 112, 118, 0.28); }
.status-chip.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.status-chip.ink svg { stroke-width: 3; }
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- section furniture -------------------------------------------- */
.section { padding: 96px 0; }
.section-head { max-width: 62rem; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red);
}
.section-kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.section-head h2 { margin-top: 18px; font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head h2 em { font-style: normal; color: var(--red); }
.section-head p { margin-top: 18px; max-width: 40rem; color: var(--ink-soft); }

/* ---------- services ------------------------------------------------------ */
.services { background: #fff; border-block: 1px solid var(--line); }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 52px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: -1px -1px auto; height: 4px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--red-bright), var(--red-deep));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: #cfd2d7; box-shadow: 0 24px 44px -34px rgba(35, 38, 42, 0.6); background: #fff; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .tag-tile { font-size: 19px; }
.service-card h3 { margin-top: 22px; font-size: 1.55rem; }
.service-card > p { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.service-points { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.service-points span {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.service-points span::before { content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: var(--red); flex: none; }
.service-card .link-arrow { margin-top: 24px; align-self: flex-start; }

/* ---------- process ------------------------------------------------------- */
.process { background: var(--ink); color: #fff; }
.process .section-head h2 { color: #fff; }
.process .section-head p { color: rgba(255, 255, 255, 0.66); }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; position: relative; }
.process-steps::before {
  content: ""; position: absolute; top: 21px; left: 6%; right: 6%; height: 2px;
  background-image: radial-gradient(circle, rgba(210, 52, 46, 0.9) 1.6px, transparent 1.8px);
  background-size: 13px 2px; background-repeat: repeat-x;
}
.process-step { position: relative; padding-right: 26px; }
.process-node {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--tile-radius);
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 20px rgba(0,0,0,0.4);
  position: relative; z-index: 2;
}
.process-step h4 { margin-top: 20px; font-size: 1.12rem; color: #fff; letter-spacing: 0.01em; }
.process-step p { margin-top: 9px; font-size: 14.5px; color: rgba(255, 255, 255, 0.62); }
.process-step .step-no { position: absolute; top: 6px; right: 26px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.34); }

/* ---------- cargo types --------------------------------------------------- */
.cargo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; margin-top: 48px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.cargo-cell { background: #fff; padding: 26px 24px; transition: background 0.18s var(--ease); }
.cargo-cell:hover { background: var(--paper); }
.cargo-cell svg { color: var(--red); }
.cargo-cell strong {
  display: block; margin-top: 16px;
  font-family: var(--font-display); font-variation-settings: "wdth" 106;
  font-weight: 700; font-size: 1.02rem; text-transform: uppercase;
}
.cargo-cell span { display: block; margin-top: 7px; font-size: 14px; color: var(--ink-soft); }
.cargo-note { margin-top: 26px; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.cargo-note svg { color: var(--red); flex: none; margin-top: 3px; }

/* ---------- standard band ------------------------------------------------- */
.standard { background: #fff; border-block: 1px solid var(--line); }
.standard-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 60px; align-items: start; }
.standard-mark { max-width: 320px; }
.standard-mark img { width: 100%; }
.standard-mark p { margin-top: 26px; font-size: 15px; color: var(--ink-soft); }
.standard-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.standard-item:last-child { border-bottom: 1px solid var(--line); }
.standard-item h3 { font-size: 1.25rem; }
.standard-item p { margin-top: 9px; font-size: 15px; color: var(--ink-soft); }

/* ---------- contact ------------------------------------------------------- */
.contact-inner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.contact-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.contact-direct a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.contact-direct a:hover { border-color: var(--red); transform: translateX(4px); }
.contact-direct .tag-tile { font-size: 15px; }
.contact-direct small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); }
.contact-direct strong { display: block; margin-top: 3px; font-size: 15.5px; font-weight: 600; }

.consignment {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 30px 60px -46px rgba(35, 38, 42, 0.5); overflow: hidden;
}
.consignment-head { padding: 16px 24px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.consignment-head strong { font-family: var(--font-display); font-variation-settings: "wdth" 108; font-weight: 800; font-size: 13.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.consignment-head span { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; }
.consignment-body { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field input, .form-field textarea, .form-field select {
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--paper); font-size: 15px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 104px; font-family: inherit; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(210, 52, 46, 0.12);
}
.form-note { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--steel); }
.form-note svg { color: var(--red); flex: none; }
.form-sent {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 9px;
  background: rgba(210, 52, 46, 0.07); border: 1px solid rgba(210, 52, 46, 0.28); font-size: 14.5px;
}
.form-sent svg { color: var(--red); flex: none; margin-top: 2px; }

/* ---------- footer -------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.68); padding-top: 68px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 44px; padding-bottom: 52px; }
.footer-top img { height: 58px; width: auto; }
.footer-brand p { margin-top: 22px; font-size: 14.5px; max-width: 24rem; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.16em; color: #fff; font-variation-settings: "wdth" 104; }
.footer-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer-col a, .footer-col button { transition: color 0.16s var(--ease); text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--red-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.42);
}

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- reveal on scroll --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; padding: 62px 0 72px; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standard-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 34px 0; }
  .process-steps::before { display: none; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 auto; top: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 96px 22px 26px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 50px -30px rgba(35, 38, 42, 0.6);
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0s linear 0.28s;
    z-index: -1;
  }
  .nav.open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav button { padding: 15px 10px; font-size: 17px; text-align: left; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-cta-mobile { display: inline-flex; margin-top: 20px; justify-content: center; }
  .burger { display: grid; place-items: center; }
  .masthead-actions .btn { display: none; }
  .utility-right { display: none; }
  .section { padding: 68px 0; }
  .service-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .hero-facts div:nth-child(2) { border-right: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { height: 38px; }
  .masthead.stuck .brand img { height: 34px; }
  .awb-route { grid-template-columns: 1fr; }
  .awb-route > div:last-child { text-align: left; }
  .awb-route .arrow { transform: rotate(90deg); }
  .process-steps { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  .contrail circle { opacity: 0.42; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- small utilities ---------------------------------------------- */
.utility-place { display: inline-flex; align-items: center; gap: 8px; }
.awb-samples-label { display: inline; }
.standard-tile { font-size: 18px; }
.form-submit { align-self: flex-start; }

/* ---------- tracking result sheet (consignment / container waybill) ------- */
.track-result-section { background: var(--paper-2); padding: 56px 0; }
.print-only { display: none; }

.track-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 60px -44px rgba(35, 38, 42, 0.5);
  overflow: hidden;
  max-width: 940px;
  margin-inline: auto;
}
.track-sheet-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
}
.track-sheet-bar-left { display: flex; align-items: center; gap: 16px; }
.track-sheet-bar .field-label { color: rgba(255, 255, 255, 0.7); }
.track-print {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: var(--font-display); font-variation-settings: "wdth" 104;
  font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.track-print:hover { background: var(--red); border-color: var(--red); }

.track-sheet-body { padding: 30px 34px 34px; }

.track-brandhead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 24px; border-bottom: 2px solid var(--ink);
}
.track-brandhead img { height: 74px; width: auto; }
.track-brandhead-contact { display: flex; flex-direction: column; gap: 3px; text-align: right; font-size: 12px; color: var(--ink-soft); }

.track-id-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.track-id-value { display: block; margin-top: 6px; font-size: 1.7rem; font-weight: 500; letter-spacing: 0.02em; color: var(--red); }
.track-id-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.track-id-route b { display: block; margin-top: 5px; font-size: 14.5px; font-weight: 600; }
.track-id-route .route-arrow { color: var(--red); }
.track-id-route > div:last-child { text-align: right; }

.cn-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cn-field b { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.cn-field-wide { grid-column: span 2; }
.cn-field b.cn-nums { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; margin-top: 6px; }
.cn-nums .mono { font-weight: 500; font-size: 14px; }

.cn-section-label {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 18px;
  font-family: var(--font-display); font-variation-settings: "wdth" 108;
  font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
}
.cn-section-label svg { color: var(--red); }

.cn-containers { display: flex; flex-direction: column; gap: 18px; }
.cn-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cn-box-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cn-box-icon {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: var(--tile-radius);
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.cn-box-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cn-box-title strong { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.cn-box-title em { font-style: normal; color: var(--steel); }
.cn-new {
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--red); color: var(--red);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; font-weight: 500;
}
.cn-pieces { text-align: right; flex: none; }
.cn-pieces b { display: block; margin-top: 2px; font-family: var(--font-display); font-variation-settings: "wdth" 106; font-weight: 800; font-size: 1.05rem; }

.track-timeline { list-style: none; margin: 0; padding: 20px 18px 6px; }
.track-ev {
  display: grid;
  grid-template-columns: 96px 30px 1fr;
  align-items: start;
  padding-bottom: 20px;
}
.track-date { font-size: 12.5px; color: var(--ink-soft); padding-top: 1px; letter-spacing: 0.02em; }
.track-node-col { position: relative; display: flex; justify-content: center; }
.track-node {
  width: 12px; height: 12px; margin-top: 3px; border-radius: 50%;
  border: 2.5px solid var(--red); background: #fff; z-index: 1;
}
.track-ev.is-current .track-node { background: var(--red); box-shadow: 0 0 0 4px rgba(210, 52, 46, 0.16); }
.track-ev:not(:last-child) .track-node-col::before {
  content: ""; position: absolute; top: 6px; bottom: -14px; left: 50%;
  width: 2px; transform: translateX(-50%);
  background-image: linear-gradient(var(--steel) 55%, transparent 0);
  background-size: 2px 7px; background-repeat: repeat-y;
  opacity: 0.65;
}
.track-note { font-size: 14.5px; line-height: 1.45; }
.track-latest {
  display: inline-block; margin-left: 10px;
  padding: 2px 8px; border-radius: 4px; vertical-align: middle;
  background: rgba(210, 52, 46, 0.1); color: var(--red-deep);
  border: 1px solid rgba(210, 52, 46, 0.25);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.track-latest.done { background: var(--ink); color: #fff; border-color: var(--ink); }

.track-foot {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--steel);
}
.track-foot .mono { font-size: 11px; letter-spacing: 0.04em; }
.track-foot a { color: var(--red); border-bottom: 1px solid currentColor; }

@media (max-width: 720px) {
  .track-sheet-body { padding: 22px 18px 26px; }
  .track-brandhead { flex-direction: column; gap: 12px; align-items: flex-start; }
  .track-brandhead-contact { text-align: left; }
  .track-brandhead img { height: 60px; }
  .track-id-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .track-id-route { width: 100%; }
  .cn-meta { grid-template-columns: 1fr 1fr; }
  .cn-field-wide { grid-column: span 2; }
  .track-ev { grid-template-columns: 78px 26px 1fr; }
  .track-date { font-size: 11.5px; }
}
@media (max-width: 460px) {
  .cn-meta { grid-template-columns: 1fr; }
  .cn-field-wide { grid-column: auto; }
  .cn-box-head { flex-wrap: wrap; }
  .cn-pieces { text-align: left; }
}

/* ---------- print: isolate the waybill sheet ----------------------------- */
@media print {
  @page { margin: 14mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; }
  body * { visibility: hidden; }
  .track-sheet, .track-sheet * { visibility: visible; }
  .track-sheet {
    position: absolute; left: 0; top: 0; width: 100%;
    margin: 0; border: 0; border-radius: 0; box-shadow: none; max-width: none;
  }
  .track-result-section { padding: 0; background: #fff; }
  .no-print { display: none !important; }
  .print-only { display: flex !important; }
  .track-sheet-body { padding: 0; }
  .track-brandhead { border-bottom: 2px solid #000; }
  .cn-box { break-inside: avoid; }
  .track-ev { break-inside: avoid; }
  .track-latest { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; }
  .cn-box-icon, .status-chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ========================================================================== */
/*  ADMIN PANEL                                                                */
/* ========================================================================== */
.admin-shell { min-height: 100vh; background: var(--paper); }

.admin-bar {
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px; min-height: 64px;
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.admin-bar::after { content: none; }
.admin-bar img { height: 40px; width: auto; }
.admin-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel);
  padding-left: 18px; border-left: 1px solid var(--line);
}
.admin-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 7px; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.admin-ghost:hover { border-color: var(--red); color: var(--red); }

.admin-main { width: min(100% - 40px, 1080px); margin: 34px auto 80px; }

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.admin-head p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

.admin-error {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 18px;
  background: rgba(210, 52, 46, 0.08); border: 1px solid rgba(210, 52, 46, 0.3);
  color: var(--red-deep); font-size: 14px;
}
.admin-empty { padding: 60px 20px; text-align: center; color: var(--steel); font-size: 15px; }

/* ---- table ---- */
.admin-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.admin-row {
  display: grid; grid-template-columns: 120px 1.2fr 1.2fr 130px 150px 96px;
  align-items: center; gap: 14px;
  padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px;
}
.admin-row:first-child { border-top: 0; }
.admin-row-head {
  background: var(--paper); font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
}
.admin-id { font-weight: 600; color: var(--red); }
.admin-updated { font-size: 11.5px; color: var(--steel); }
.admin-pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-style: normal;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(210, 52, 46, 0.1); color: var(--red-deep); border: 1px solid rgba(210, 52, 46, 0.25);
}
.admin-pill.done { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-pill.ready { background: rgba(107, 112, 118, 0.12); color: var(--ink-soft); border-color: rgba(107, 112, 118, 0.28); }
.admin-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.admin-row-actions button {
  padding: 7px 12px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  display: inline-flex; align-items: center; transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}
.admin-row-actions button:hover { border-color: var(--red); color: var(--red); }
.admin-danger:hover { border-color: var(--red) !important; color: #fff !important; background: var(--red) !important; }

/* ---- editor ---- */
.admin-editor { display: flex; flex-direction: column; gap: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px 26px; }
.admin-card h2 { font-size: 1.15rem; margin-bottom: 18px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.admin-card-head h2 { margin-bottom: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-span-2 { grid-column: span 2; }

.admin-add, .admin-add-sm {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 7px; border: 1px dashed var(--line);
  font-family: var(--font-display); font-variation-settings: "wdth" 104;
  font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.admin-add:hover, .admin-add-sm:hover { border-color: var(--red); border-style: solid; background: rgba(210, 52, 46, 0.06); }
.admin-add-sm { font-size: 11px; padding: 7px 12px; margin-top: 4px; }

.admin-container { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; background: var(--paper); }
.admin-container-head { display: flex; align-items: flex-start; gap: 14px; }
.admin-container-icon {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; margin-top: 22px;
  border-radius: var(--tile-radius); color: #fff;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
}
.admin-container-fields { display: grid; grid-template-columns: 1fr 90px 90px auto; gap: 12px; flex: 1; min-width: 0; align-items: end; }
.admin-container-fields .form-field { min-width: 0; }
.admin-narrow input { width: 100%; }
.admin-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); padding-bottom: 12px; white-space: nowrap; }
.admin-check input { width: 17px; height: 17px; accent-color: var(--red); }
.admin-remove { margin-top: 22px; padding: 9px 11px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-soft); }

.admin-events { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.admin-event { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 10px; align-items: center; margin-bottom: 10px; }
.admin-event input { min-width: 0; }
.admin-event-head { margin-bottom: 8px; }
.admin-event-head .field-label { align-self: center; }
.admin-event input {
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 7px; background: #fff; font-size: 14px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.admin-event input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(210, 52, 46, 0.12); }
.admin-event .admin-danger { padding: 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--steel); display: grid; place-items: center; }

.admin-hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--steel); }
.admin-hint svg { color: var(--red); flex: none; }

.admin-save-bar {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  position: sticky; bottom: 0; z-index: 5;
  margin: 4px -12px 0; padding: 14px 12px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px -16px rgba(35, 38, 42, 0.4);
}

/* editor uses the site's .form-field styles for inputs/selects/textarea */
.admin-card .form-field input,
.admin-card .form-field textarea,
.admin-card .form-field select { background: var(--paper); }

/* ---- login ---- */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper-2); }
.admin-login-card {
  width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 34px 32px 30px; box-shadow: 0 30px 60px -40px rgba(35, 38, 42, 0.5);
  display: flex; flex-direction: column; gap: 14px;
}
.admin-login-card img { height: 46px; width: auto; margin-bottom: 6px; }
.admin-login-card h1 { font-size: 1.5rem; }
.admin-login-card > p { color: var(--ink-soft); font-size: 14.5px; margin-top: -6px; }
.admin-login-card .btn { justify-content: center; margin-top: 4px; }
.admin-back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--steel); margin-top: 4px; }
.admin-back-link:hover { color: var(--red); }

@media (max-width: 820px) {
  .admin-row { grid-template-columns: 100px 1fr 120px 96px; }
  .admin-row span:nth-child(3), .admin-row span:nth-child(5) { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-span-2 { grid-column: auto; }
  .admin-container-fields { grid-template-columns: 1fr 1fr; }
  .admin-event { grid-template-columns: 120px minmax(0, 1fr) 38px; }
}

@media (max-width: 560px) {
  .admin-main { width: min(100% - 28px, 1080px); }
  .admin-card { padding: 20px 16px 22px; }
  .admin-container { padding: 16px 14px; }
  /* stack the container header: icon on its own line, fields full width */
  .admin-container-head { flex-direction: column; gap: 14px; }
  .admin-container-icon { margin-top: 0; }
  .admin-container-fields { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .admin-container-fields > .form-field:first-child { grid-column: 1 / -1; } /* code full width */
  .admin-check { padding-bottom: 0; }
  .admin-remove { margin-top: 0; align-self: flex-start; }
  /* stack each event: date over note, delete tucked to the right of the date */
  .admin-event { grid-template-columns: 130px minmax(0, 1fr) 36px; column-gap: 8px; }
  .admin-event-head { display: none; } /* header labels drop; fields are self-evident */
  .admin-save-bar { margin: 4px -16px 0; padding: 14px 16px; }
  .admin-save-bar .btn { flex: 1; justify-content: center; }
}

/* ---------- standalone admin additions ---------------------------------- */
.admin-shell { background: var(--paper); font-family: var(--font-body); color: var(--ink); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; }
.admin-login-card {
  width: min(100%, 420px); background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 32px 30px 28px;
  box-shadow: 0 30px 60px -40px rgba(35,38,42,.5);
  display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.admin-login-card img { height: 40px; width: auto; }
.admin-login-card h1 { font-size: 1.5rem; }
.admin-login-card p { font-size: 14.5px; color: var(--ink-soft); }
.admin-login-card .btn { justify-content: center; }
.admin-back-link { font-size: 13.5px; color: var(--steel); }
.admin-back-link:hover { color: var(--red); }

.admin-error, .admin-notice {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 15px; border-radius: 8px; font-size: 14px; margin-bottom: 18px;
}
.admin-error { background: rgba(210,52,46,.08); border: 1px solid rgba(210,52,46,.3); color: var(--red-deep); }
.admin-notice { background: rgba(35,38,42,.06); border: 1px solid var(--line); color: var(--ink); }

.admin-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-bar::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--red-deep), var(--red-bright) 42%, var(--red-deep)); }
.admin-bar-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.admin-bar-inner .brand img { height: 38px; width: auto; }
.admin-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); padding-left: 16px; border-left: 1px solid var(--line); }
.admin-bar-actions { margin-left: auto; display: flex; gap: 10px; }
.admin-bar-actions .btn { padding: 10px 16px; font-size: 12px; }

.admin-main { width: min(100% - 40px, 1080px); margin: 34px auto 60px; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.admin-updated { font-size: 13.5px; color: var(--steel); margin-top: 8px; }

.admin-table { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-row { display: grid; grid-template-columns: 120px 1fr 1fr 150px 170px 160px; gap: 14px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.admin-row:last-child { border-bottom: 0; }
.admin-row-head { background: var(--paper); padding-block: 12px; }
.admin-row-head .field-label { margin: 0; }
.admin-id { color: var(--red); font-weight: 500; font-size: 14px; }
.admin-row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.admin-row-actions .btn { padding: 8px 13px; font-size: 11.5px; }
.admin-danger:hover { border-color: #b32d2e; color: #b32d2e; }
.admin-empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 40px; text-align: center; color: var(--ink-soft); }

.admin-editor { display: flex; flex-direction: column; gap: 18px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px 26px; }
.admin-card h2 { font-size: 1.15rem; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.admin-span-2 { grid-column: 1 / -1; }

.admin-add {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border: 1px dashed var(--line); border-radius: 7px;
  font-family: var(--font-display); font-variation-settings: "wdth" 104;
  font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); transition: border-color .16s var(--ease), background .16s var(--ease);
}
.admin-add:hover { border-style: solid; border-color: var(--red); background: rgba(210,52,46,.06); }
.admin-add-sm { margin-top: 8px; }

.admin-container { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; background: var(--paper); }
.admin-container-head { display: flex; align-items: flex-start; gap: 14px; }
.admin-container-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; margin-top: 20px; border-radius: var(--tile-radius); color: #fff; background: linear-gradient(150deg, var(--red-bright), var(--red-deep)); }
.admin-container-fields { display: grid; grid-template-columns: 1fr 100px 90px auto; gap: 12px; flex: 1; min-width: 0; align-items: end; }
.admin-container-fields .form-field { min-width: 0; }
.admin-check { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding-bottom: 12px; font-size: 13.5px; }
.admin-check input { width: 16px; height: 16px; accent-color: var(--red); }
.admin-remove { width: 36px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--steel); font-size: 20px; line-height: 1; }
.admin-remove:hover { border-color: #b32d2e; color: #b32d2e; }
.remove-container { margin-top: 18px; }

.admin-events { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.admin-event { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 10px; align-items: center; margin-bottom: 10px; }
.admin-event input { min-width: 0; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 7px; background: #fff; font-size: 14.5px; }
.admin-event input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(210,52,46,.12); }
.admin-event-head { margin-bottom: 6px; }
.admin-event-head .field-label { margin: 0; }

.admin-hint { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }
.admin-hint svg { color: var(--red); flex: none; margin-top: 2px; }

.admin-save-bar {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  position: sticky; bottom: 0; z-index: 5;
  margin: 4px -12px 0; padding: 14px 12px;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px -16px rgba(35,38,42,.4);
}

@media (max-width: 900px) {
  .admin-row { grid-template-columns: 100px 1fr 130px 150px; }
  .admin-row > span:nth-child(3), .admin-row > span:nth-child(5) { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-span-2 { grid-column: auto; }
  .admin-container-fields { grid-template-columns: 1fr 1fr; }
  .admin-event { grid-template-columns: 120px minmax(0,1fr) 38px; }
}
@media (max-width: 560px) {
  .admin-main { width: min(100% - 28px, 1080px); }
  .admin-bar-inner { flex-wrap: wrap; min-height: 0; padding-block: 12px; gap: 10px; }
  .admin-tag { display: none; }
  .admin-bar-actions { margin-left: 0; width: 100%; }
  .admin-bar-actions .btn { flex: 1; justify-content: center; }
  .admin-card { padding: 20px 16px 22px; }
  .admin-container { padding: 16px 14px; }
  .admin-container-head { flex-direction: column; gap: 14px; }
  .admin-container-icon { margin-top: 0; }
  .admin-container-fields > .form-field:first-child { grid-column: 1 / -1; }
  .remove-container { margin-top: 0; align-self: flex-start; }
  .admin-event { grid-template-columns: 118px minmax(0,1fr) 36px; column-gap: 8px; }
  .admin-event-head { display: none; }
  .admin-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .admin-row > span:nth-child(4) { display: none; }
  .admin-save-bar { margin: 4px -16px 0; padding: 14px 16px; }
  .admin-save-bar .btn { flex: 1; justify-content: center; }
}

/* Nav links in the standalone build are <a>, not <button> — give them the same treatment. */
.nav a {
  padding: 9px 14px; border-radius: 6px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav a:hover { color: var(--red); background: rgba(210,52,46,.07); }
.nav a.nav-cta-mobile { display: none; }
.awb-samples a {
  padding: 5px 10px; border: 1px dashed var(--line); border-radius: 5px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.awb-samples a:hover { border-color: var(--red); border-style: solid; color: var(--red); }
.awb-found { text-decoration: none; }
.route-arrow { display: inline-flex; color: var(--red); }
.cargo-note svg, .awb-empty svg, .awb-alert svg { flex: none; }
.awb-alert a { color: var(--red); font-weight: 600; border-bottom: 1px solid currentColor; }

@media (max-width: 860px) {
  .nav a { padding: 15px 10px; font-size: 17px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a.nav-cta-mobile { display: inline-flex; margin-top: 20px; justify-content: center; border-bottom: 0; }
}
