/* ==========================================================================
   LOCALFAST — UNIFIED MASTER CSS STYLESHEET (PRO SPEED & CLEAN ARCHITECTURE)
   ========================================================================== */

/* ---------------- 1. CSS VARIABLES & COLOR PALETTE ---------------- */
:root {
  --brand-primary: #0B1E3D;
  --brand-primary-light: #132B57;
  --brand-accent: #2554E8;
  --brand-accent-hover: #1D4ED8;
  --brand-accent-soft: #EEF2FF;
  --brand-bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #64748B;
  
  /* Status Colors */
  --status-amber: #D97706;
  --status-amber-soft: #FEF3E2;
  --status-blue: #2563EB;
  --status-blue-soft: #EFF6FF;
  --status-purple: #7C3AED;
  --status-purple-soft: #F5F3FF;
  --status-emerald: #059669;
  --status-emerald-soft: #E9F8F1;
  --status-rose: #DC2626;
  --status-rose-soft: #FDECEC;
  --status-cyan: #0891B2;
  --status-cyan-soft: #ECFEFF;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 8px 24px rgba(37, 84, 232, 0.25);
}

/* ---------------- 2. RESET & BASE TYPOGRAPHY ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--brand-bg);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading, .brand, .stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; transition: color 0.15s ease; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* SVG Vector Utility */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* ---------------- 3. BUTTONS & UI COMPONENTS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-primary-light);
  box-shadow: 0 4px 14px rgba(11, 30, 61, 0.25);
}
.btn-accent {
  background: var(--brand-accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--brand-accent-hover);
  box-shadow: var(--shadow-glow);
}
.btn-outline {
  background: #fff;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--brand-bg);
  border-color: #CBD5E1;
}
.btn-lg {
  padding: 13px 26px;
  font-size: 14.5px;
  border-radius: var(--radius-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge-primary { background: var(--brand-accent-soft); color: var(--brand-accent); }
.badge-success { background: var(--status-emerald-soft); color: var(--status-emerald); }
.badge-warning { background: var(--status-amber-soft); color: var(--status-amber); }
.badge-danger { background: var(--status-rose-soft); color: var(--status-rose); }

/* ---------------- 4. PUBLIC FRONTEND HEADER & NAV ---------------- */
.front-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo-sq {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-accent), #60A5FA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 84, 232, 0.35);
  flex-shrink: 0;
}
.brand-text h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-primary); margin: 0; }
.brand-text span { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-quick-login-btn {
  display: none;
}

.front-mobile-hamburger {
  display: none;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.front-mobile-hamburger:hover {
  background: #EFF6FF;
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* Slide-out Right Drawer for Mobile */
.front-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.front-mobile-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.front-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 9999;
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.front-mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close-btn {
  background: #F1F5F9;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.drawer-close-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.drawer-actions {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #F8FAFC;
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 6px 10px;
  margin-bottom: 2px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.15s ease;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: var(--brand-accent-soft, #EFF6FF);
  color: var(--brand-accent, #2554E8);
}

.drawer-icon {
  font-size: 16px;
  width: 20px;
  display: flex;
  justify-content: center;
}

.drawer-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  background: #DCFCE7;
  color: #15803D;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #F8FAFC;
}

@media (max-width: 900px) {
  .front-header .header-inner {
    height: 60px;
  }
  .desktop-tagline {
    display: none !important;
  }
  .main-nav {
    display: none !important;
  }
  .desktop-auth-btn {
    display: none !important;
  }
  .mobile-quick-login-btn {
    display: inline-flex !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  .front-mobile-hamburger {
    display: inline-flex !important;
  }
}

/* ---------------- 5. HERO SECTION & TRACKING ---------------- */
.hero-section {
  padding: 64px 0 54px;
  background: radial-gradient(circle at 85% 15%, rgba(37, 84, 232, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
              #F8FAFC;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EFF6FF;
  color: var(--brand-accent, #2554E8);
  border: 1px solid #BFDBFE;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(37, 84, 232, 0.06);
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--brand-primary, #0B1E3D);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--brand-accent, #2554E8) 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 520px;
}

/* Upgraded Responsive Tracking Search Bar */
.tracking-bar {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: var(--radius-lg, 14px);
  padding: 6px;
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.08);
  max-width: 520px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  gap: 8px;
}

.tracking-bar:focus-within {
  border-color: var(--brand-accent, #2554E8);
  box-shadow: 0 12px 32px -4px rgba(37, 84, 232, 0.18);
  background: #FFFFFF;
}

.tracking-bar-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
}

.tracking-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 9px 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main, #0F172A);
  background: transparent;
}

.tracking-bar input::placeholder {
  color: #94A3B8;
  font-size: 13.5px;
}

.tracking-bar .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
}

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.highlight-pill .check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* ---------------- 6. LIVE DELIVERY COST CALCULATOR ---------------- */
.calculator-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.1);
  position: relative;
  transition: transform 0.2s ease;
}

.calculator-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--brand-accent, #2554E8), #06B6D4);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(37, 84, 232, 0.35);
  text-transform: uppercase;
}

.calculator-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-primary, #0B1E3D);
  margin-bottom: 4px;
}

.calculator-desc {
  font-size: 12.5px;
  color: var(--text-muted, #64748B);
  margin-bottom: 18px;
}

.calc-form-group {
  margin-bottom: 15px;
}

.calc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* Calculator Form Controls */
.calc-input, .calc-select {
  width: 100%;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md, 10px);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  background: #FFFFFF;
  transition: all 0.2s ease;
  color: var(--text-main, #0F172A);
  box-sizing: border-box;
  font-family: inherit;
}

input.calc-input, select.calc-select {
  height: 44px;
}

.calc-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

textarea.calc-input {
  min-height: 80px;
  resize: vertical;
  line-height: 1.45;
}

input[type="file"].calc-input {
  padding: 7px 10px;
  height: 44px;
  background: #F8FAFC;
  cursor: pointer;
}

.calc-input:hover, .calc-select:hover {
  border-color: #94A3B8;
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--brand-accent, #2554E8);
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(37, 84, 232, 0.14);
}

.calc-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-radio-card {
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md, 10px);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.15s ease;
  user-select: none;
}

.category-radio-card:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.category-radio-card.active {
  border-color: var(--brand-accent, #2554E8);
  background: #EFF6FF;
  box-shadow: 0 2px 8px rgba(37, 84, 232, 0.12);
}

.category-radio-card .cat-icon {
  font-size: 20px;
  margin-bottom: 3px;
  display: block;
}

.category-radio-card .cat-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main, #0F172A);
}

.calc-result-box {
  background: linear-gradient(135deg, #0B1E3D 0%, #1E3A8A 100%);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 20px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  box-shadow: 0 8px 20px rgba(11, 30, 61, 0.25);
  gap: 12px;
}

.result-label {
  font-size: 11px;
  color: #94A3B8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.result-amount {
  font-size: 30px;
  font-weight: 850;
  font-family: var(--font-heading);
  color: #67E8F9;
  line-height: 1.1;
  margin: 2px 0;
}

.result-time {
  font-size: 11.5px;
  color: #CBD5E1;
  font-weight: 500;
}

/* Responsive Media Queries for Hero & Calculator */
@media (max-width: 960px) {
  .hero-section {
    padding: 48px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 14.5px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }
  .tracking-bar {
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-highlights {
    justify-content: center;
  }
  .hero-calculator {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .hero-section {
    padding: 36px 0 28px;
  }
  .hero-content h1 {
    font-size: 27px;
    line-height: 1.22;
  }
  .hero-subtitle {
    font-size: 13.5px;
    margin-bottom: 20px;
  }
  .tracking-bar {
    flex-direction: column;
    padding: 8px;
    border-radius: 16px;
    gap: 8px;
    width: 100%;
  }
  .tracking-bar-input-wrap {
    width: 100%;
    padding: 4px 6px;
  }
  .tracking-bar input {
    font-size: 13.5px;
    padding: 6px 0;
  }
  .tracking-bar .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
  .calculator-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .calc-category-grid {
    gap: 6px;
  }
  .category-radio-card {
    padding: 8px 4px;
  }
  .category-radio-card .cat-icon {
    font-size: 18px;
  }
  .category-radio-card .cat-name {
    font-size: 10.5px;
  }
  .calc-result-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px 14px;
    gap: 12px;
  }
  .result-amount {
    font-size: 28px;
  }
  .calc-result-box .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-highlights {
    gap: 8px;
  }
  .highlight-pill {
    font-size: 11.5px;
    padding: 5px 10px;
  }
}

/* ---------------- 7. HOW IT WORKS WORKFLOW ---------------- */
.section-pad {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}
.section-tag {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------- 8. PRICING PACKAGES & TABLES ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border: 2px solid var(--brand-accent);
  box-shadow: var(--shadow-glow);
}
.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}
.pricing-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.pricing-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}
.pricing-currency { font-size: 20px; font-weight: 700; color: var(--text-main); }
.pricing-amount { font-size: 36px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.pricing-unit { font-size: 13px; color: var(--text-muted); }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
}
.feature-item .icon-check {
  color: var(--status-emerald);
}

/* ---------------- 9. FAQ ACCORDION ---------------- */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}
.faq-answer {
  padding: 0 22px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-toggle-icon { transform: rotate(180deg); }

/* ---------------- 10. AUTH PAGES (LOGIN / REGISTER) ---------------- */
.auth-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-hover);
}
.auth-head {
  text-align: center;
  margin-bottom: 26px;
}
.auth-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--text-muted); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.form-control {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13.5px;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(37, 84, 232, 0.1);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

/* ---------------- 11. FOOTER ---------------- */
.front-footer {
  background: linear-gradient(180deg, #0B132B 0%, #080D1A 100%);
  color: #94A3B8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-title {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
  padding: 0;
  margin: 0;
}
.footer-links li {
  line-height: 1.5;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.15s ease;
}
.footer-links a:hover {
  color: #60A5FA;
  transform: translateX(3px);
  display: inline-block;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- 12. MOBILE RESPONSIVENESS (ZERO OVERFLOW) ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .main-nav { display: none; }
  .mobile-toggle-btn { display: inline-flex; }
  .calc-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .calculator-card { padding: 20px 16px; }
}

/* ---------------- 13. PAGINATION STYLES ---------------- */
nav[role="navigation"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  flex-wrap: wrap;
  gap: 12px;
}

nav[role="navigation"] > div:first-child {
  font-size: 12.5px;
  color: var(--text-muted);
}

nav[role="navigation"] a,
nav[role="navigation"] span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

nav[role="navigation"] a:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--brand-accent);
}

nav[role="navigation"] span[aria-current="page"] > span,
nav[role="navigation"] .active > span {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

nav[role="navigation"] span[aria-disabled="true"] > span {
  opacity: 0.5;
  cursor: not-allowed;
  background: #F8FAFC;
}

/* ---------------- 10. PROFILE HERO IDENTITY CARD ---------------- */
.profile-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 22px;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(15, 23, 42, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-hero-avatar-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  position: relative;
  flex-shrink: 0;
}

.profile-hero-avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
  background: transparent !important;
  border: 1px solid var(--border-color, #E2E8F0);
}

.profile-hero-avatar-box .avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: var(--brand-accent-soft, #EFF6FF);
  color: var(--brand-accent, #2554E8);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(37, 84, 232, 0.2);
}

.profile-hero-avatar-box .status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 13px;
  height: 13px;
  background: #10B981;
  border: 2px solid #fff;
  border-radius: 50%;
}

.profile-hero-info {
  min-width: 0;
}

.profile-hero-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted, #64748B);
  background: #F8FAFC;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #F1F5F9;
}

.meta-pill strong {
  color: var(--text-main, #0F172A);
}

.profile-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--status-rose, #EF4444);
  background: #FFF5F5;
  border: 1px solid #FECACA;
  padding: 7px 14px;
  border-radius: var(--radius-md, 8px);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.profile-logout-btn:hover {
  background: #FEE2E2;
  border-color: #F87171;
}

@media (max-width: 650px) {
  .profile-hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .profile-hero-left {
    width: 100%;
  }
  .profile-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------------- 14. DEDICATED PARCEL TRACKING PAGE ---------------- */
.tracking-hero {
  background: linear-gradient(135deg, #0B1E3D 0%, #1E3A8A 100%);
  color: #fff;
  padding: 50px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tracking-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: #F8FAFC;
  border-radius: 50% 50% 0 0;
}

.tracking-search-box {
  max-width: 560px;
  margin: 22px auto 0;
  display: flex;
  background: #FFFFFF;
  border-radius: 50px;
  padding: 5px 6px 5px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  align-items: center;
  position: relative;
  z-index: 10;
}

.tracking-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
}

.tracking-search-box input::placeholder {
  color: #94A3B8;
  font-weight: 500;
}

.tracking-search-box button {
  border-radius: 40px;
  padding: 10px 22px;
  font-weight: 800;
  font-size: 13.5px;
}

.tracking-container {
  max-width: 880px;
  margin: -40px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 20;
}

.tracking-main-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
}

.tracking-header-bar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tracking-code-pill {
  font-family: monospace;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-accent);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 4px 12px;
  border-radius: 8px;
}

/* Horizontal Progress Bar */
.tracking-stepper-wrap {
  padding: 34px 24px 20px;
}

.tracking-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 24px;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #E2E8F0;
  z-index: 1;
}

.tracking-stepper-progress {
  position: absolute;
  top: 22px;
  left: 40px;
  height: 4px;
  background: linear-gradient(90deg, #2554E8, #10B981);
  z-index: 2;
  transition: width 0.4s ease;
}

.track-step-node {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #94A3B8;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.track-step-node.completed .step-circle {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.track-step-node.active .step-circle {
  background: #2554E8;
  border-color: #2554E8;
  color: #FFFFFF;
  box-shadow: 0 0 0 5px rgba(37, 84, 232, 0.25);
  animation: pulseNode 2s infinite;
}

@keyframes pulseNode {
  0% { box-shadow: 0 0 0 0 rgba(37, 84, 232, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(37, 84, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 84, 232, 0); }
}

.step-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.step-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Privacy Details Grid */
.tracking-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 24px 24px;
}

.track-info-box {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.track-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-info-value {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .tracking-stepper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-left: 14px;
  }
  .tracking-stepper::before {
    top: 20px;
    bottom: 20px;
    left: 35px;
    width: 4px;
    height: auto;
    right: auto;
  }
  .tracking-stepper-progress {
    top: 20px;
    left: 35px;
    width: 4px !important;
    height: 70%;
  }
  .track-step-node {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
  }
  .step-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .tracking-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Table Responsive Horizontal Touch Sliding */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

/* ==================== HOMEPAGE LIVE COUNTER & METRICS ==================== */
.live-counter-section {
  padding: 40px 0 20px;
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.counter-container-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

.counter-head-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pulse-dot-anim {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.counter-card {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(37, 84, 232, 0.12);
  border-color: #BFDBFE;
  background: #FFFFFF;
}

.counter-icon-wrap {
  font-size: 26px;
  margin-bottom: 8px;
  line-height: 1;
}

.counter-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.counter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.counter-sub {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

@media (max-width: 1024px) {
  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .live-counter-section {
    margin-top: 0;
    padding: 24px 0;
  }
  .counter-container-card {
    padding: 20px 16px;
  }
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .counter-card {
    padding: 16px 12px;
  }
  .counter-number {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .counter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Universal Clean Pagination Styling
   ========================================================================== */
.pagination,
nav[role="navigation"] ul,
.pagination-wrapper ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;
}

.page-item,
nav[role="navigation"] li {
  display: inline-flex !important;
  list-style: none !important;
}

.page-link,
nav[role="navigation"] a,
nav[role="navigation"] span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-color, #E2E8F0) !important;
  background: #FFFFFF !important;
  color: var(--text-main, #1E293B) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.page-link:hover,
nav[role="navigation"] a:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: var(--brand-accent, #2554E8) !important;
}

.page-item.active .page-link,
nav[role="navigation"] .active span,
nav[role="navigation"] span[aria-current="page"] {
  background: var(--brand-accent, #2554E8) !important;
  border-color: var(--brand-accent, #2554E8) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.page-item.disabled .page-link,
nav[role="navigation"] .disabled span {
  background: #F8FAFC !important;
  border-color: #F1F5F9 !important;
  color: #94A3B8 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

/* Custom Responsive Pagination */
.custom-pagination-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 20px 0 10px !important;
}

.custom-pagination-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  background: #FFFFFF !important;
  padding: 6px 10px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-color, #E2E8F0) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}

.custom-page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.custom-page-btn:not(.disabled):not(.active):hover {
  background: #EFF6FF !important;
  border-color: #2554E8 !important;
  color: #2554E8 !important;
}

.custom-page-btn.active {
  background: #2554E8 !important;
  border-color: #2554E8 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(37,84,232,0.3) !important;
}

.custom-page-btn.disabled {
  background: #F8FAFC !important;
  border-color: #F1F5F9 !important;
  color: #94A3B8 !important;
  cursor: not-allowed !important;
  opacity: 0.45 !important;
}

@media (max-width: 480px) {
  .custom-pagination-container {
    gap: 3px !important;
    padding: 4px 6px !important;
  }
  .custom-page-btn {
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
  }
}

