@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --saffron: #FF6B00;
  --saffron-dark: #E05500;
  --saffron-light: #FFF3EB;
  --night: #0D0D0D;
  --ink: #1A1A2E;
  --steel: #2D3142;
  --muted: #6B7280;
  --soft: #9CA3AF;
  --border: #E5E7EB;
  --surface: #F9FAFB;
  --white: #FFFFFF;
  --success: #059669;
  --success-bg: #ECFDF5;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --info: #2563EB;
  --info-bg: #EFF6FF;
  --accent: #7C3AED;
  --accent-bg: #F5F3FF;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --sidebar-w: 260px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { color: var(--muted); line-height: 1.7; }
a { color: var(--saffron); text-decoration: none; }
a:hover { color: var(--saffron-dark); }
strong { font-weight: 600; color: var(--ink); }

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  padding: 10px 22px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all 0.18s ease; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.btn-primary:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,0,0.3); }
.btn-outline { background: transparent; color: var(--saffron); border-color: var(--saffron); }
.btn-outline:hover { background: var(--saffron-light); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--steel); margin-bottom: 6px; }
.form-label .required { color: var(--danger); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--white); transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,0,0.12); }
.form-control::placeholder { color: var(--soft); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: 0.8rem; color: var(--soft); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── CARDS ── */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }

/* ── STAT CARDS ── */
.stat-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px 24px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--saffron); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.info::before { background: var(--info); }
.stat-card.accent::before { background: var(--accent); }
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.stat-sub { font-size: 0.8rem; color: var(--soft); }
.stat-icon { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.stat-icon.saffron { background: var(--saffron-light); }
.stat-icon.green { background: var(--success-bg); }
.stat-icon.blue { background: var(--info-bg); }
.stat-icon.purple { background: var(--accent-bg); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; line-height: 1; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-accent { background: var(--accent-bg); color: var(--accent); }
.badge-muted { background: var(--surface); color: var(--muted); }
.badge-primary { background: var(--saffron-light); color: var(--saffron-dark); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th { padding: 11px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--border); background: var(--surface); white-space: nowrap; }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--ink); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
.td-tracking { font-family: monospace; font-size: 0.85rem; font-weight: 600; color: var(--saffron); }
.td-name { font-weight: 500; color: var(--ink); }
.td-sub { font-size: 0.78rem; color: var(--soft); margin-top: 2px; }

/* ── ALERTS ── */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); border-color: #A7F3D0; color: var(--success); }
.alert-danger { background: var(--danger-bg); border-color: #FCA5A5; color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: #FDE68A; color: var(--warning); }
.alert-info { background: var(--info-bg); border-color: #BFDBFE; color: var(--info); }

/* ── DASHBOARD LAYOUT ── */
.dash-wrap { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w); background: var(--night); color: var(--white);
  position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto;
  z-index: 100; display: flex; flex-direction: column;
  transition: transform 0.3s ease;
}
.sidebar-brand { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 12px; }
.sidebar-logo { width: 38px; height: 38px; background: var(--saffron); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-logo svg { width: 22px; height: 22px; fill: white; }
.sidebar-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--white); }
.sidebar-tagline { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section { font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.1em; padding: 16px 8px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.65); font-size: 0.9rem; font-weight: 500; transition: all 0.15s; margin-bottom: 2px; cursor: pointer; text-decoration: none; }
.nav-item:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-item.active { background: var(--saffron); color: var(--white); box-shadow: 0 4px 12px rgba(255,107,0,0.35); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .badge-count { margin-left: auto; background: rgba(255,255,255,0.15); color: white; padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; }
.nav-item.active .badge-count { background: rgba(255,255,255,0.25); }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); }
.sidebar-avatar { width: 36px; height: 36px; background: var(--saffron); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: white; flex-shrink: 0; }
.sidebar-user-name { font-size: 0.88rem; font-weight: 500; color: var(--white); }
.sidebar-user-role { font-size: 0.72rem; color: rgba(255,255,255,0.4); text-transform: capitalize; }

/* MAIN CONTENT */
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 50; }
.topbar-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all 0.15s; }
.topbar-btn:hover { background: var(--surface); color: var(--ink); }
.page-content { padding: 28px; flex: 1; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.page-sub { font-size: 0.85rem; color: var(--soft); margin-top: 2px; }

/* MOBILE SIDEBAR TOGGLE */
.sidebar-toggle { display: none; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }

/* TRACKING TIMELINE */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-dot { position: absolute; left: -23px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); z-index: 1; }
.timeline-dot.done { background: var(--success); border-color: var(--success); }
.timeline-dot.active { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(255,107,0,0.15); }
.timeline-title { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.timeline-time { font-size: 0.78rem; color: var(--soft); margin-top: 2px; }

/* PAGINATION */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 24px; }
.page-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); color: var(--ink); font-size: 0.88rem; cursor: pointer; transition: all 0.15s; text-decoration: none; }
.page-link:hover { border-color: var(--saffron); color: var(--saffron); }
.page-link.active { background: var(--saffron); border-color: var(--saffron); color: white; }

/* LANDING NAV */
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 16px 0; transition: all 0.3s; }
.landing-nav.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.landing-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; }
.landing-nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.landing-nav .logo-mark { width: 40px; height: 40px; background: var(--saffron); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.landing-nav .logo-mark svg { width: 24px; height: 24px; fill: white; }
.landing-nav .logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.landing-nav .nav-links { display: flex; align-items: center; gap: 8px; }
.landing-nav .nav-link { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: all 0.15s; text-decoration: none; }
.landing-nav .nav-link:hover { color: var(--ink); background: var(--surface); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: white; padding: 16px 24px; box-shadow: var(--shadow-md); z-index: 199; }
.mobile-nav .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(255,107,0,0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(255,107,0,0.08) 0%, transparent 50%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; }
.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,107,0,0.12); border: 1px solid rgba(255,107,0,0.3); color: #FF8C38; padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 500; margin-bottom: 28px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; color: white; line-height: 1.05; margin-bottom: 24px; }
.hero-title .accent { color: var(--saffron); }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,0.6); max-width: 520px; margin-bottom: 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat-val { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: white; }
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 2px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(12px); }
.route-pill { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); margin-bottom: 10px; }
.route-pill .city { font-family: var(--font-display); font-weight: 700; color: white; font-size: 0.95rem; }
.route-pill .time { margin-left: auto; font-size: 0.78rem; color: var(--saffron); font-weight: 600; background: rgba(255,107,0,0.15); padding: 3px 10px; border-radius: 20px; }
.route-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.route-line { width: 40px; height: 1px; background: rgba(255,255,255,0.2); position: relative; }
.route-line::after { content: '›'; position: absolute; right: -6px; top: -9px; color: rgba(255,255,255,0.4); }

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: white; }
.section-dark { background: var(--ink); }
.section-tag { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--saffron); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7; }
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* FEATURES */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.2s; }
.feature-card:hover { border-color: rgba(255,107,0,0.3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 52px; height: 52px; background: var(--saffron-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }
.feature-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* HOW IT WORKS */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; }
.step { padding: 32px 28px; position: relative; }
.step:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--border); }
.step-num { width: 44px; height: 44px; background: var(--saffron); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: 18px; }
.step-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.pricing-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; text-align: center; transition: all 0.2s; }
.pricing-card:hover { border-color: var(--saffron); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--saffron); border-width: 2px; position: relative; }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--saffron); color: white; padding: 4px 18px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.pricing-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--saffron); line-height: 1; }
.pricing-amount sup { font-size: 1rem; }
.pricing-period { font-size: 0.82rem; color: var(--soft); }
.pricing-features { list-style: none; text-align: left; margin: 24px 0; }
.pricing-features li { padding: 7px 0; font-size: 0.88rem; color: var(--muted); display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* TRACK PAGE */
.track-hero { background: var(--ink); padding: 80px 0 60px; text-align: center; }
.track-hero h1 { color: white; margin-bottom: 12px; }
.track-hero p { color: rgba(255,255,255,0.5); }
.track-form { background: white; border-radius: var(--radius-lg); padding: 36px; max-width: 600px; margin: -32px auto 0; position: relative; box-shadow: var(--shadow-lg); }
.track-result { max-width: 700px; margin: 32px auto 0; }
.track-status-bar { display: flex; justify-content: space-between; position: relative; margin: 32px 0; }
.track-status-bar::before { content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 2px; background: var(--border); z-index: 0; }
.track-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.track-step-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 0.9rem; color: var(--soft); }
.track-step.done .track-step-dot { background: var(--success); border-color: var(--success); color: white; }
.track-step.active .track-step-dot { background: var(--saffron); border-color: var(--saffron); color: white; box-shadow: 0 0 0 6px rgba(255,107,0,0.15); }
.track-step-label { font-size: 0.75rem; font-weight: 500; color: var(--soft); }
.track-step.done .track-step-label, .track-step.active .track-step-label { color: var(--ink); }

/* AUTH */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-left { flex: 1; background: var(--ink); display: flex; flex-direction: column; padding: 48px; position: relative; overflow: hidden; }
.auth-left::before { content: ''; position: absolute; bottom: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,107,0,0.08); }
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px; background: var(--surface); }
.auth-box { width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
.auth-logo .logo-mark { width: 44px; height: 44px; background: var(--saffron); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.auth-logo .logo-mark svg { width: 26px; height: 26px; fill: white; }
.auth-logo .logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: white; }
.auth-promo { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-promo h2 { font-family: var(--font-display); color: white; font-size: 2rem; margin-bottom: 16px; }
.auth-promo p { color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 32px; }
.auth-feature { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.auth-feature-icon { width: 32px; height: 32px; background: rgba(255,107,0,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.auth-feature-text strong { display: block; color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.auth-feature-text span { color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.auth-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.auth-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-input { width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-display); color: var(--ink); }
.otp-input:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,0,0.12); }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: var(--radius-lg); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; transform: translateY(20px); transition: transform 0.2s; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.1rem; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* FOOTER */
.footer { background: var(--night); color: rgba(255,255,255,0.6); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .lm { width: 38px; height: 38px; background: var(--saffron); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-logo .lm svg { width: 22px; height: 22px; fill: white; }
.footer-logo .lt { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: white; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: white; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.15s; text-decoration: none; }
.footer-links a:hover { color: var(--saffron); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); margin-left: 16px; text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* UTILS */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-soft { color: var(--soft); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-saffron { color: var(--saffron); }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: monospace; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .page-content { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .auth-left { display: none; }
  .auth-right { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .track-status-bar { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .track-status-bar::before { display: none; }
  .mobile-menu-btn { display: flex; }
  .landing-nav .nav-links { display: none; }
  .table-wrap table { min-width: 640px; }
  .modal { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-overlay { align-items: flex-end; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .otp-inputs { gap: 8px; }
  .otp-input { width: 42px; height: 50px; font-size: 1.2rem; }
}

/* PRINT */
@media print {
  .sidebar, .topbar, .page-header .btn { display: none !important; }
  .main { margin-left: 0; }
}

/* LOADING SKELETON */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* TOAST */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: white; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; min-width: 260px; animation: slideUp 0.3s ease; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── DRIVER MOBILE OPTIMIZATIONS ── */
@media (max-width: 768px) {
  .page-title { font-size: 1.1rem; }
  .page-content { padding: 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 14px 16px; }
  .stat-value { font-size: 1.5rem; }
  .card-body { padding: 16px; }
  .card-header { padding: 14px 16px; }
  .form-control { font-size: 1rem; padding: 12px; }
  .btn { padding: 12px 18px; font-size: 0.95rem; }
  .btn-block { padding: 14px; font-size: 1.05rem; }
  .table-wrap table { font-size: 0.82rem; }
  .table-wrap table td, .table-wrap table th { padding: 10px 8px; }
  .td-tracking { font-size: 0.78rem; }
  .topbar { padding: 0 12px; height: 56px; }
  .topbar-title { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .page-content { padding: 8px; }
  .card { border-radius: 12px; }
  .card-body { padding: 12px; }
  .stat-grid { gap: 6px; }
  .stat-card { padding: 12px; border-radius: 10px; }
  .stat-value { font-size: 1.3rem; }
  .stat-label { font-size: 0.68rem; }
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .modal { border-radius: 16px 16px 0 0; max-height: 90vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .sidebar-toggle { display: flex; }
  .btn-lg { padding: 14px 20px; }
  /* Make touch targets bigger */
  .btn-sm { padding: 10px 14px; min-height: 40px; }
  input[type="file"] { padding: 10px; }
  select.form-control { padding: 12px 36px 12px 12px; }
}

/* ── BROADCAST CARDS ── */
.broadcast-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.broadcast-card:hover { box-shadow: var(--shadow-md); }
.broadcast-card.urgent { border-left: 4px solid var(--saffron); }
.broadcast-card.fulfilled { opacity: 0.5; }

/* ── BIG ACCEPT BUTTON (driver) ── */
.btn-accept {
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
  border: none;
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 14px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-accept:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,150,105,0.35); }
.btn-accept:active { transform: translateY(0); }

/* ── STATUS COLORS (more visual for drivers) ── */
.status-strip { height: 4px; border-radius: 2px; width: 100%; }
.status-strip.booked { background: var(--info); }
.status-strip.assigned { background: var(--warning); }
.status-strip.picked_up { background: #8B5CF6; }
.status-strip.in_transit { background: var(--accent); }
.status-strip.delivered { background: var(--success); }
.status-strip.failed { background: var(--danger); }
.status-strip.cancelled { background: var(--soft); }

/* ── PAYOUT HIGHLIGHT ── */
.payout-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--success-bg);
  color: var(--success);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 6px 14px;
  border-radius: 10px;
}

/* ── PULSE ANIMATION for live indicators ── */
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: livePulse 2s infinite;
}

/* ── AUTO-REFRESH COUNTER ── */
.refresh-badge {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  z-index: 100;
  opacity: 0.6;
}

/* ── LANG TOGGLE in topbar ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.lang-switch:hover { background: var(--saffron-light); color: var(--saffron); border-color: var(--saffron); }

/* ── SELLER BOOK FORM: Pickup Type Cards ── */
.pickup-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.pickup-option.selected {
  border-color: var(--saffron);
  background: var(--saffron-light);
}
.pickup-option:hover { border-color: var(--saffron); }
