@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');
@import url('https://unpkg.com/leaflet@1.9.4/dist/leaflet.css');

/* ── Variables ── */
:root {
  --primary:    #ff6600;
  --primary-dk: #cc5200;
  --secondary:  #0f1729;
  --secondary2: #1e2d4a;
  --muted:      #f0f4f8;
  --muted-fg:   #64748b;
  --border:     #e2e8f0;
  --text:       #0f172a;
  --white:      #ffffff;
  --emerald:    #10b981;
  --amber:      #f59e0b;
  --blue:       #3b82f6;
  --red:        #ef4444;
  --font-sans:  'Plus Jakarta Sans', sans-serif;
  --font-disp:  'Syne', sans-serif;
  --shadow:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; padding-top: 72px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.w-full { width: 100%; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.pt-24 { padding-top: 6rem; }
.pb-20 { padding-bottom: 5rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top:0;left:0;right:0;bottom:0; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ── Typography ── */
.font-disp { font-family: var(--font-disp); }
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold{font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide  { letter-spacing: 0.025em; }
.tracking-widest{ letter-spacing: 0.1em; }
.uppercase      { text-transform: uppercase; }
.capitalize     { text-transform: capitalize; }
.font-mono      { font-family: Menlo, monospace; }
.leading-tight  { line-height: 1.25; }

/* Color text */
.text-white    { color: var(--white); }
.text-primary  { color: var(--primary); }
.text-secondary{ color: var(--secondary); }
.text-muted    { color: var(--muted-fg); }
.text-emerald  { color: var(--emerald); }
.text-amber    { color: var(--amber); }
.text-blue     { color: var(--blue); }
.text-red      { color: var(--red); }
.text-white70  { color: rgba(255,255,255,0.7); }

/* Color bg */
.bg-white      { background: var(--white); }
.bg-secondary  { background: var(--secondary); }
.bg-primary    { background: var(--primary); }
.bg-muted      { background: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; font-weight: 700; font-size: 0.875rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s;
  letter-spacing: 0.04em; text-transform: uppercase; border-radius: 0;
  font-family: var(--font-sans);
}
.btn-primary    { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); }
.btn-secondary  { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary2); }
.btn-outline    { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: var(--white); color: var(--secondary); }
.btn-sm  { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-lg  { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-xl  { padding: 1.1rem 3rem; font-size: 1.125rem; }
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover { opacity: 0.9; }

/* ── Cards ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-body   { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--muted); }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-fg); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  background: var(--white); font-size: 0.9375rem; color: var(--text);
  border-radius: 0; outline: none; transition: border-color .2s; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--secondary); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: 0.8125rem; color: var(--red); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Badges / Status ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; border-radius: 0;
}
.status-delivered  { background: rgba(16,185,129,.1); color: #059669; }
.status-transit    { background: rgba(59,130,246,.1); color: #2563eb; }
.status-pending    { background: rgba(245,158,11,.1); color: #d97706; }
.status-exception  { background: rgba(239,68,68,.1);  color: #dc2626; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-delivered { background: var(--emerald); }
.dot-transit   { background: var(--blue); }
.dot-pending   { background: var(--amber); }
.dot-exception { background: var(--red); }

/* ── Table ── */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-fg); border-bottom: 2px solid var(--border); }
.table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.table tr:hover td { background: var(--muted); }
.table-wrap { overflow-x: auto; }

/* ── Navigation ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.site-header.transparent { background: transparent; }
.site-header.solid { background: var(--secondary); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.nav-inner { display: flex; align-items: center; height: 72px; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-mark { width: 36px; height: 36px; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 22px; height: 22px; fill: var(--white); }
.logo-text { font-family: var(--font-disp); font-weight: 800; font-size: 1.5rem; color: var(--white); letter-spacing: -0.02em; }
.logo-text span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.5rem 0.875rem; font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.8); transition: color .2s; letter-spacing: 0.02em; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-btn-login { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.25); transition: all .2s; }
.nav-btn-login:hover { color: var(--white); border-color: rgba(255,255,255,.6); }
.nav-btn-cta { padding: 0.5rem 1.25rem; background: var(--primary); color: var(--white); font-size: 0.875rem; font-weight: 700; transition: background .2s; }
.nav-btn-cta:hover { background: var(--primary-dk); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--white); padding: 0.5rem; }
.nav-mobile-toggle svg { width: 24px; height: 24px; }
.nav-mobile-menu { display: none; flex-direction: column; background: var(--secondary); padding: 1rem 1.5rem 1.5rem; position: fixed; top: 72px; left: 0; right: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,.3); max-height: calc(100vh - 72px); overflow-y: auto; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link { padding: 0.75rem 0; font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-mobile-link:hover { color: var(--white); }

/* ── Page hero ── */
.page-hero { background: var(--secondary); color: var(--white); padding: 5rem 0 3rem; }
.page-hero-sm { background: var(--secondary); color: var(--white); padding: 4rem 0 2.5rem; }

/* ── Home Hero ── */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;

  background: linear-gradient(
      rgba(10, 15, 30, 0.85),
      rgba(10, 15, 30, 0.95)
    ),
    url('/logistics-platform/public/images/hero-ship.jpg') center/cover no-repeat;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 1rem; background: rgba(255,102,0,.15); border: 1px solid rgba(255,102,0,.3); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 1.5rem; }
.hero-title { font-family: var(--font-disp); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; color: var(--white); letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.hero-title .accent { color: var(--primary); }
.hero-desc { font-size: 1.125rem; color: rgba(255,255,255,.7); margin-bottom: 2.5rem; max-width: 540px; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-track-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); padding: 1.5rem; max-width: 600px; }
.hero-track-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.5); margin-bottom: 0.75rem; }
.hero-track-form { display: flex; }
.hero-track-input { flex: 1; padding: 0.875rem 1.25rem; border: none; background: var(--white); font-size: 1rem; color: var(--text); border-radius: 0; outline: none; }
.hero-track-btn { padding: 0.875rem 1.5rem; background: var(--primary); color: var(--white); font-weight: 700; font-size: 0.875rem; border: none; border-radius: 0; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.hero-track-btn:hover { background: var(--primary-dk); }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.hero-stat-value { font-family: var(--font-disp); font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }

/* ── Section ── */
.section { padding: 5rem 0; }
.section-alt { padding: 5rem 0; background: var(--muted); }
.section-dark { padding: 5rem 0; background: var(--secondary); color: var(--white); }
.section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-disp); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--secondary); letter-spacing: -0.02em; margin-bottom: 1rem; }
.section-title-white { color: var(--white); }
.section-desc { font-size: 1.0625rem; color: var(--muted-fg); max-width: 600px; line-height: 1.7; }

/* ── Service Cards ── */
.service-card { padding: 2rem; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon { width: 48px; height: 48px; background: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.service-icon svg { width: 26px; height: 26px; stroke: var(--white); stroke-width: 2; fill: none; }
.service-title { font-family: var(--font-disp); font-size: 1.125rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; }
.service-desc { font-size: 0.9375rem; color: var(--muted-fg); line-height: 1.65; }

/* ── Tracking Page ── */
.track-wrapper { max-width: 900px; margin: 0 auto; }
.track-hero { background: var(--secondary); padding: 4.5rem 0 3rem; }
.track-search-box { display: flex; background: var(--white); padding: 0.5rem; box-shadow: var(--shadow-lg); }
.track-input { flex: 1; padding: 0.875rem 1.25rem; border: none; font-size: 1.0625rem; color: var(--text); outline: none; }
.track-btn { padding: 0.875rem 2rem; background: var(--primary); color: var(--white); font-weight: 700; border: none; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.track-btn:hover { background: var(--primary-dk); }

.track-status-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.track-status-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.track-number { font-size: 1.75rem; font-family: var(--font-disp); font-weight: 800; color: var(--secondary); font-family: Menlo, monospace; }
.track-status-badge { display: flex; align-items: center; gap: 0.625rem; }
.track-status-badge .dot { width: 10px; height: 10px; border-radius: 50%; animation: pulse 2s infinite; }
.track-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.track-meta-item { padding: 1.25rem 1.5rem; border-right: 1px solid var(--border); }
.track-meta-item:last-child { border-right: none; background: var(--muted); }
.track-meta-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg); margin-bottom: 0.375rem; }
.track-meta-value { font-size: 1.05rem; font-weight: 700; color: var(--secondary); }
.track-meta-sub { font-size: 0.85rem; color: var(--muted-fg); }
.progress-bar-wrap { padding: 0 2rem 1.5rem; }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; color: var(--muted-fg); margin-bottom: 0.5rem; }
.progress-bar-bg { height: 10px; background: var(--muted); overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary); transition: width 1.2s ease; }

/* Route Map */
.map-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 1.5rem; overflow: hidden; }
.map-card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; }
.map-card-icon { width: 32px; height: 32px; background: var(--secondary); display: flex; align-items: center; justify-content: center; }
.map-card-icon svg { width: 16px; height: 16px; stroke: var(--white); stroke-width: 2; fill: none; }
.map-card-title { font-family: var(--font-disp); font-weight: 800; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--secondary); }
.map-card-sub { font-size: 0.75rem; color: var(--muted-fg); }
#shipment-map { height: 360px; width: 100%; }
.map-legend { padding: 0.75rem 1.5rem; background: var(--muted); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 1.5rem; font-size: 0.8125rem; color: var(--muted-fg); }

/* Package Video */
.video-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 1.5rem; overflow: hidden; }
.video-card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.video-card-title-wrap { display: flex; align-items: center; gap: 0.75rem; }
.video-card-icon { width: 32px; height: 32px; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.video-card-icon svg { width: 16px; height: 16px; stroke: var(--white); stroke-width: 2; fill: none; }
.video-card-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted-fg); background: var(--muted); padding: 0.375rem 0.875rem; border-radius: 999px; }
.video-card-badge .rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: pulse 2s infinite; }
.video-thumb { height: 320px; background: linear-gradient(135deg, var(--secondary) 0%, #1e2d4a 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; }
.video-thumb::before { content:''; position:absolute; inset:0; opacity:0.04; background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%); background-size: 20px 20px; }
.video-play-btn { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,102,0,.2); border: 2px solid rgba(255,102,0,.5); display: flex; align-items: center; justify-content: center; transition: transform .2s; position: relative; z-index: 1; margin-bottom: 1rem; }
.video-play-btn svg { width: 36px; height: 36px; fill: var(--primary); margin-left: 4px; }
.video-thumb:hover .video-play-btn { transform: scale(1.1); }
.video-thumb-title { color: var(--white); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.03em; position: relative; z-index: 1; }
.video-thumb-sub { color: rgba(255,255,255,.5); font-size: 0.875rem; margin-top: 0.375rem; position: relative; z-index: 1; }
.video-overlay-badge { position: absolute; top: 1rem; left: 1rem; background: rgba(0,0,0,.55); color: var(--white); font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 999px; display: flex; align-items: center; gap: 0.5rem; z-index: 2; }
.rec-dot-red { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.video-overlay-time { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,.55); color: var(--white); font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 999px; z-index: 2; }
.video-overlay-info { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; background: rgba(0,0,0,.55); color: var(--white); font-size: 0.75rem; padding: 0.5rem 0.75rem; display: flex; justify-content: space-between; z-index: 2; }
.video-player { width: 100%; max-height: 360px; background: #000; display: block; position: relative; }
.video-player video { width: 100%; max-height: 360px; }
.video-player-badge { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(0,0,0,.7); color: var(--white); font-size: 0.75rem; padding: 0.375rem 0.875rem; border-radius: 999px; display: flex; align-items: center; gap: 0.5rem; }
.video-info-bar { padding: 0.75rem 1.5rem; background: var(--muted); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; font-size: 0.8125rem; color: var(--muted-fg); }
.video-info-item { display: flex; align-items: center; gap: 0.5rem; }
.video-info-item svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.video-hd-badge { margin-left: auto; background: rgba(15,23,41,.1); color: var(--secondary); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; display: flex; align-items: center; gap: 0.375rem; }

/* Timeline */
.timeline-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 2rem; margin-bottom: 1.5rem; }
.timeline-title { font-family: var(--font-disp); font-size: 1.0625rem; font-weight: 800; color: var(--secondary); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2rem; }
.timeline { position: relative; }
.timeline::before { content:''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-event { position: relative; display: flex; gap: 1.5rem; padding-left: 1rem; padding-bottom: 2rem; }
.timeline-event:last-child { padding-bottom: 0; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--white); flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--border); }
.timeline-dot.latest { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.timeline-dot.done   { background: var(--muted-fg); }
.timeline-dot svg { width: 14px; height: 14px; stroke: var(--white); stroke-width: 2.5; fill: none; }
.timeline-content { flex: 1; padding-top: 0.25rem; }
.timeline-status { font-size: 1.0625rem; font-weight: 700; color: var(--secondary); text-transform: capitalize; margin-bottom: 0.25rem; }
.timeline-desc { color: var(--muted-fg); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.timeline-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.8125rem; color: var(--muted-fg); }
.timeline-meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Dashboard layout ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--secondary); flex-shrink: 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; overflow-y: auto; }
.sidebar-logo { padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; }
.sidebar-section { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.35); padding: 1rem 0.5rem 0.5rem; }
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.875rem; font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,.65); transition: all .2s; border-left: 3px solid transparent; margin-bottom: 2px; }
.sidebar-link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.sidebar-link.active { color: var(--white); background: rgba(255,255,255,.1); border-left-color: var(--primary); }
.sidebar-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 0.75rem; }
.sidebar-avatar { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; color: var(--white); flex-shrink: 0; }
.sidebar-user-name { font-size: 0.875rem; font-weight: 700; color: var(--white); }
.sidebar-user-role { font-size: 0.75rem; color: rgba(255,255,255,.5); text-transform: capitalize; }
.main-content { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: 60px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; background: var(--white); position: sticky; top: 0; z-index: 40; }
.topbar-title { font-family: var(--font-disp); font-weight: 800; font-size: 1.125rem; color: var(--secondary); }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.page-content { padding: 2rem; flex: 1; background: var(--muted); }

/* Admin sidebar red accents */
.admin-sidebar .sidebar-link.active { border-left-color: #ef4444; }
.admin-badge { background: #ef4444; color: var(--white); font-size: 0.6rem; font-weight: 800; padding: 0.15rem 0.45rem; text-transform: uppercase; letter-spacing: 0.07em; border-radius: 0; }

/* ── KPI Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card { background: var(--white); border: 1px solid var(--border); padding: 1.5rem; }
.kpi-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); margin-bottom: 0.5rem; }
.kpi-value { font-family: var(--font-disp); font-size: 2rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.kpi-sub { font-size: 0.8125rem; color: var(--muted-fg); margin-top: 0.5rem; }
.kpi-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.kpi-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Page: Rate Calculator ── */
.rate-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.rate-results { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); }
.rate-option { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rate-option:last-child { border-bottom: none; }
.rate-option-name { font-weight: 700; color: var(--secondary); }
.rate-option-days { font-size: 0.875rem; color: var(--muted-fg); }
.rate-option-price { font-family: var(--font-disp); font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.5rem; flex: 1; }
.blog-card-date { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 0.5rem; }
.blog-card-title { font-family: var(--font-disp); font-size: 1.0625rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.75rem; line-height: 1.35; }
.blog-card-excerpt { font-size: 0.9375rem; color: var(--muted-fg); line-height: 1.6; }
.blog-card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.blog-read-more { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); display: flex; align-items: center; gap: 0.375rem; }
.blog-read-more:hover { color: var(--primary); }

/* ── Footer ── */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.6); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { }
.footer-brand-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-desc { font-size: 0.9375rem; line-height: 1.7; max-width: 300px; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1.25rem; }
.footer-link { display: block; font-size: 0.9375rem; color: rgba(255,255,255,.55); margin-bottom: 0.625rem; transition: color .2s; }
.footer-link:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }

/* ── Auth pages ── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--muted); padding: 2rem; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.auth-header { background: var(--secondary); padding: 2rem 2.5rem; }
.auth-body { padding: 2.5rem; }
.auth-title { font-family: var(--font-disp); font-size: 1.5rem; font-weight: 800; color: var(--white); }
.auth-sub { font-size: 0.9375rem; color: rgba(255,255,255,.6); margin-top: 0.375rem; }
.auth-footer-text { text-align: center; font-size: 0.9375rem; color: var(--muted-fg); padding-top: 1rem; border-top: 1px solid var(--border); }
.auth-footer-text a { color: var(--secondary); font-weight: 700; }

/* ── Alerts ── */
.alert { padding: 1rem 1.25rem; border-left: 4px solid; font-size: 0.9375rem; margin-bottom: 1rem; }
.alert-error   { background: rgba(239,68,68,.08);  border-color: var(--red);    color: #991b1b; }
.alert-success { background: rgba(16,185,129,.08); border-color: var(--emerald); color: #065f46; }
.alert-info    { background: rgba(59,130,246,.08); border-color: var(--blue);    color: #1d4ed8; }
.alert-warning { background: rgba(245,158,11,.08); border-color: var(--amber);   color: #92400e; }

/* ── Loading ── */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }

/* ── About ── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.stat-block { text-align: center; }
.stat-number { font-family: var(--font-disp); font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label  { font-size: 0.875rem; color: rgba(255,255,255,.6); margin-top: 0.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.team-card { background: var(--white); border: 1px solid var(--border); padding: 2rem; text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-disp); font-size: 1.75rem; font-weight: 800; color: var(--white); margin: 0 auto 1rem; }

/* ── Utilities ── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { width: 60px; height: 60px; background: var(--muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.empty-state-icon svg { width: 28px; height: 28px; stroke: var(--muted-fg); fill: none; stroke-width: 2; }
.empty-state-title { font-family: var(--font-disp); font-size: 1.25rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; }
.empty-state-desc { font-size: 0.9375rem; color: var(--muted-fg); }

/* ── Notification ── */
.notif-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.notif-icon.info    { background: rgba(59,130,246,.1);  color: var(--blue);    }
.notif-icon.success { background: rgba(16,185,129,.1);  color: var(--emerald); }
.notif-icon.warning { background: rgba(245,158,11,.1);  color: var(--amber);   }
.notif-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.notif-title { font-weight: 700; color: var(--secondary); margin-bottom: 0.25rem; }
.notif-msg { font-size: 0.9375rem; color: var(--muted-fg); }
.notif-time { font-size: 0.8rem; color: var(--muted-fg); margin-top: 0.375rem; }

/* ── Address card ── */
.address-card { background: var(--white); border: 1px solid var(--border); padding: 1.5rem; position: relative; }
.address-default-badge { position: absolute; top: 1rem; right: 1rem; background: var(--primary); color: var(--white); font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .rate-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .nav-mobile-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .track-meta { grid-template-columns: 1fr; }
  .track-meta-item { border-right: none; border-bottom: 1px solid var(--border); }
  .track-meta-item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar .mobile-menu-btn { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
}
