/* ===========================================================
   ParcelPath-inspired clone — original stylesheet
   Palette, spacing and components are an original design built
   to match the site's structure/content; not extracted CSS.
   =========================================================== */

/* ---------- Scroll-reveal + motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.21,.6,.35,1), transform .7s cubic-bezier(.21,.6,.35,1);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  .card { transition: transform .25s ease, box-shadow .25s ease; }
  .card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(15,35,64,0.16); }

  @keyframes heroFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
  .hero-copy { animation: heroFadeUp .8s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Shipping route animation (signature motion element) ---------- */
.shipping-route {
  position: relative;
  height: 64px;
  background: #0a1c33;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.shipping-route .route-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  margin-top: -1.5px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.4) 0 16px, transparent 16px 34px);
}
.shipping-route .route-icon {
  position: absolute;
  top: 50%;
  left: -10%;
  transform: translateY(-50%);
  color: var(--green);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.45));
}
.shipping-route .route-icon svg { width: 32px; height: 32px; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .shipping-route .route-line { animation: routeDash 0.9s linear infinite; }
  .shipping-route .route-icon { animation: routeMove 8s linear infinite; }
}
@keyframes routeDash { from { background-position: 0 0; } to { background-position: -68px 0; } }
@keyframes routeMove {
  0%   { left: -8%; }
  100% { left: 108%; }
}

:root {
  --navy: #0f2340;
  --navy-light: #17325c;
  --green: #12a150;
  --green-dark: #0d7f3f;
  --orange: #ff7a29;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e4e9f2;
  --text: #1b2536;
  --text-muted: #5c6b83;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 35, 64, 0.08);
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

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

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

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(18, 161, 80, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(18, 161, 80, 0.35);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }

.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdd8ec;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cdd8ec; }
.topbar a:hover { color: #fff; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo .dot { color: var(--green); }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}
nav.primary-nav > .nav-item { position: relative; flex-shrink: 0; }
nav.primary-nav a.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
nav.primary-nav a.nav-link:hover { color: var(--green-dark); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px;
  display: none;
  flex-direction: column;
}
.nav-item:hover .dropdown { display: flex; }
.dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}
.dropdown a:hover { background: var(--bg); color: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

@media (max-width: 960px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  nav.primary-nav.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .nav-item.open .dropdown { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(18,161,80,0.35), transparent 70%);
  z-index: -1;
}
.hero .slideshow { position: absolute; inset: 0; z-index: -3; }
.hero .slideshow img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
.hero .hero-overlay {
  position: absolute; inset: 0;
  z-index: -2;
  /* Light scrim only — just enough for text contrast, photos stay clearly visible */
  background: linear-gradient(90deg, rgba(5,12,24,.62) 0%, rgba(5,12,24,.34) 42%, rgba(5,12,24,.12) 75%, rgba(5,12,24,.05) 100%);
}
.hero h1, .hero .lede, .hero .trust-line { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
@media (prefers-reduced-motion: no-preference) {
  .hero .slideshow img { animation: ctaSlide4 22s infinite; transform: scale(1.05); }
  .hero .slideshow img:nth-child(1) { animation-delay: 0s; }
  .hero .slideshow img:nth-child(2) { animation-delay: 5.5s; }
  .hero .slideshow img:nth-child(3) { animation-delay: 11s; }
  .hero .slideshow img:nth-child(4) { animation-delay: 16.5s; }
}
@keyframes ctaSlide4 {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slideshow img:first-child { opacity: 1; }
}
.hero .container {
  display: block;
  position: relative;
}
.hero h1 { color: #fff; }
.hero .lede { color: #cdd8ec; font-size: 1.1rem; max-width: 520px; }
.hero .hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .trust-line { margin-top: 34px; font-size: 0.85rem; color: #9fb0cc; }

/* Stat card — moved out of the photo hero into its own light strip below it */
.hero-stats-bar { background: var(--bg); position: relative; }
.hero-stats-card {
  margin-top: -54px;
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 28px;
}
.hero-stats-card .stat-row { display: flex; flex-direction: column; gap: 6px; padding: 0; border: none; }
.hero-stats-card .stat-num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.hero-stats-card .stat-label { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .hero-stats-card { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
}
@media (max-width: 520px) {
  .hero-stats-card { grid-template-columns: 1fr; }
}

/* ---------- Carrier strip ---------- */
.carrier-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 22px 0; }
.carrier-strip .container { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; }
.carrier-strip span { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--text-muted); font-size: 1.05rem; letter-spacing: 0.02em; }

/* ---------- Generic sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin: 0 auto; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
a.card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
a.card h3 { color: var(--navy); }
a.card:hover h3 { color: var(--green-dark); }
.card .icon-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(18,161,80,0.12);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card .icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--green-dark);
  fill: none;
}
.card .card-photo {
  display: block;
  width: calc(100% + 52px);
  margin: -26px -26px 18px -26px;
  height: 168px;
  object-fit: cover;
  background: #dfe6f0;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.95rem; }

/* Bold full-bleed photo tiles (Shipping Services) — text overlaid directly on the photo */
.service-tiles { align-items: stretch; }
.service-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.service-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.08);
}
.service-tile .tile-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(180deg, rgba(6,14,28,0) 34%, rgba(6,14,28,.55) 68%, rgba(6,14,28,.92) 100%);
}
.service-tile .tile-overlay h3 { color: #fff; font-size: 1.28rem; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.service-tile .tile-overlay p { color: rgba(255,255,255,.94); font-size: 0.92rem; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: no-preference) {
  .service-tile img { animation: kenBurns 10s ease-in-out infinite alternate; }
}
@media (max-width: 640px) {
  .service-tile { height: 280px; }
}

.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 12px; }
.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.alt-bg { background: #fff; }
.navy-bg { background: var(--navy); color: #fff; }
.navy-bg h2, .navy-bg h3 { color: #fff; }
.navy-bg p { color: #b7c3da; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  color: var(--text);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(18,161,80,0.15);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.stat-block { text-align: center; }
.stat-block .num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2.4rem; color: var(--green); }
.stat-block .label { color: var(--text-muted); font-size: 0.9rem; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 20px; }
.faq-plus { transition: transform 0.2s ease; color: var(--green-dark); font-size: 1.3rem; }
.faq-item.open .faq-plus { transform: rotate(45deg); }

/* Comparison table */
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.compare th { background: var(--navy); color: #fff; font-family: 'Poppins', sans-serif; }
table.compare tr:last-child td { border-bottom: none; }

/* ---------- Customer dashboard ---------- */
.dashboard-welcome {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.dashboard-welcome h1 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.dashboard-welcome p { color: #b7c3da; margin: 0; font-size: 0.92rem; }
.account-badge {
  display: inline-block;
  background: rgba(18,161,80,.22);
  color: #7be3a8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Profile avatar (photo, or a male/female/generic fallback icon) ---------- */
.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #dbe4f3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-avatar svg { width: 65%; height: 65%; color: #5c6b83; }
.profile-avatar-sm { width: 28px; height: 28px; }
.profile-avatar-lg { width: 96px; height: 96px; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(15,35,64,.18); }

.profile-details { display: grid; gap: 16px; }
.profile-details > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.profile-details > div:last-child { border-bottom: none; padding-bottom: 0; }
.profile-details dt { color: var(--muted); font-size: 0.88rem; }
.profile-details dd { font-weight: 600; text-align: right; }
.dashboard-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
table.orders { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.orders th, table.orders td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
table.orders th { background: var(--bg); color: var(--text-muted); font-family: 'Poppins', sans-serif; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }
table.orders tr:last-child td { border-bottom: none; }
table.orders th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table.orders th.sortable:hover { color: var(--navy); background: #eef1f7; }
table.orders th.sortable .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.35;
  font-size: 0.7em;
}
table.orders th.sortable.sort-active { color: var(--green-dark); }
table.orders th.sortable.sort-active .sort-arrow { opacity: 1; }
table.orders tbody tr:hover { background: var(--bg); }
.status-pill {
  display: inline-block;
  background: #e9f9ef;
  color: #0d7f3f;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.orders-table-wrap { overflow-x: auto; }
#ordersEmpty { color: var(--text-muted); font-size: 0.92rem; padding: 20px 4px; }

/* CTA band with rotating photo-slideshow background */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  border-radius: 20px;
  padding: 52px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: #f0f0f0; }

.cta-band .slideshow { position: absolute; inset: 0; z-index: -2; }
.cta-band .slideshow img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
.cta-band .cta-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  /* Light scrim only — real photos stay clearly visible, text kept legible via text-shadow */
  background: linear-gradient(100deg, rgba(6,36,20,.55) 0%, rgba(6,36,20,.32) 45%, rgba(6,36,20,.14) 100%);
}
.cta-band.cta-navy .cta-overlay { background: linear-gradient(100deg, rgba(5,12,24,.58) 0%, rgba(5,12,24,.34) 45%, rgba(5,12,24,.14) 100%); }
.cta-band h2, .cta-band p, .cta-band .lede { text-shadow: 0 2px 12px rgba(0,0,0,.5); }

@media (prefers-reduced-motion: no-preference) {
  .cta-band .slideshow img {
    animation: ctaSlide 15s infinite;
    transform: scale(1.06);
  }
  .cta-band .slideshow img:nth-child(1) { animation-delay: 0s; }
  .cta-band .slideshow img:nth-child(2) { animation-delay: 5s; }
  .cta-band .slideshow img:nth-child(3) { animation-delay: 10s; }

  /* 4-photo variant (real uploaded shipping photos) */
  .cta-band .slideshow-4 img {
    animation: ctaSlide4 22s infinite;
    transform: scale(1.06);
  }
  .cta-band .slideshow-4 img:nth-child(1) { animation-delay: 0s; }
  .cta-band .slideshow-4 img:nth-child(2) { animation-delay: 5.5s; }
  .cta-band .slideshow-4 img:nth-child(3) { animation-delay: 11s; }
  .cta-band .slideshow-4 img:nth-child(4) { animation-delay: 16.5s; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band .slideshow img:first-child { opacity: 1; }
}
@keyframes ctaSlide {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Ken Burns slow-zoom on card photos */
@media (prefers-reduced-motion: no-preference) {
  .card-photo {
    animation: kenBurns 9s ease-in-out infinite alternate;
  }
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* Forms */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
.form-row select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px; cursor: pointer; line-height: 0;
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.password-toggle:hover { color: var(--navy); background: var(--bg); }
.password-toggle.showing { color: var(--green-dark); }
.radio-row { display: flex; gap: 18px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); cursor: pointer; }
.form-error {
  background: #fdecec;
  border: 1px solid #f3b9b9;
  color: #b42323;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}
.form-error:not(:empty) { display: block; }
.form-success {
  background: #e9f9ef;
  border: 1px solid #a9e6c1;
  color: #0d7f3f;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #b7c3da;
  padding: 60px 0 26px;
  margin-top: 40px;
}
footer.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
footer.site-footer a { color: #b7c3da; font-size: 0.9rem; }
footer.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: #92a2c2; font-size: 0.9rem; max-width: 320px; }
.social-row { display: flex; gap: 12px; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.social-icon:hover { transform: translateY(-2px); }
.social-icon-disabled { cursor: default; opacity: 0.45; filter: grayscale(0.4); }
.social-icon-disabled:hover { transform: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8194b5;
}
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #cdd8ec; max-width: 620px; margin: 0 auto; }

.notice-banner {
  background: rgba(255,122,41,0.1);
  border: 1px solid rgba(255,122,41,0.3);
  color: #a9530f;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  margin-bottom: 28px;
}

/* ---------- Live chat widget (floating, sitewide) ---------- */
#ppChatWidget { position: fixed; right: 22px; bottom: 22px; z-index: 999; font-family: 'Inter', sans-serif; }
.pp-chat-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  box-shadow: 0 10px 26px rgba(15,35,64,0.28);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.pp-chat-toggle:hover { transform: scale(1.06); }
.pp-chat-panel[hidden] { display: none; }
.pp-chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 320px;
  max-width: calc(100vw - 44px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15,35,64,0.28);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pp-chat-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pp-chat-header strong { font-family: 'Poppins', sans-serif; font-size: 0.95rem; }
.pp-chat-status { font-size: 0.75rem; color: #7be3a8; margin-top: 2px; }
.pp-chat-header button {
  background: none; border: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: 0.8;
}
.pp-chat-header button:hover { opacity: 1; }
.pp-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  max-height: 320px;
  min-height: 180px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-chat-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.35;
}
.pp-chat-msg-me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 3px; }
.pp-chat-msg-them { align-self: flex-start; background: #fff; border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 3px; }
.pp-chat-form { display: flex; border-top: 1px solid var(--border); }
.pp-chat-form input {
  flex: 1; border: none; padding: 12px 14px; font-size: 0.88rem; font-family: inherit; outline: none;
}
.pp-chat-form button {
  border: none; background: var(--green); color: #fff; width: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pp-chat-form button:hover { background: var(--green-dark); }
@media (max-width: 480px) {
  #ppChatWidget { right: 14px; bottom: 14px; }
  .pp-chat-panel { width: calc(100vw - 28px); }
}

/* ---------- Admin panel ---------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.tab-btn {
  background: none; border: none; padding: 12px 18px; font-family: 'Poppins', sans-serif;
  font-size: 0.92rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--green-dark); border-bottom-color: var(--green); }
.tab-panel[hidden] { display: none; }
.tab-count {
  display: inline-block; background: #c0392b; color: #fff; font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: middle;
}
table.orders select {
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.82rem; font-family: inherit;
}
.chat-session-row {
  padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s ease;
}
.chat-session-row:hover, .chat-session-row.active { background: var(--bg); }
.chat-session-row strong { display: block; font-size: 0.9rem; }
.chat-session-row span { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Printable shipping label ---------- */
.label-sheet {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 28px;
}
.label-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px dashed var(--border); padding-bottom: 16px; margin-bottom: 20px; }
.label-brand { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.3rem; }
.label-brand .dot { color: var(--green); }
.label-carrier { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy); background: var(--bg); padding: 6px 14px; border-radius: 6px; letter-spacing: .04em; }
.label-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.label-caption { font-size: 0.72rem; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.label-name { font-weight: 700; margin-bottom: 4px; }
.label-address { color: var(--text); font-size: 0.92rem; }
.label-tracking { text-align: center; border-top: 2px dashed var(--border); border-bottom: 2px dashed var(--border); padding: 16px 0; margin-bottom: 20px; }
.label-tracking-number { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: .06em; color: var(--navy); }
.label-codes { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.label-barcode { max-width: 280px; width: 100%; height: auto; }
.label-qr { width: 110px; height: 110px; }
.label-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; margin-bottom: 18px; }
.label-meta span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.label-footnote { font-size: 0.76rem; color: var(--text-muted); text-align: center; border-top: 1px solid var(--border); padding-top: 14px; }

@media print {
  .topbar, header.site-header, .shipping-route, footer.site-footer, #ppChatWidget, .no-print { display: none !important; }
  body { background: #fff !important; }
  .label-sheet { border: 1px solid #000; box-shadow: none; }
}
