/* ============================================
   COURIER PRO - COMPLETE STYLESHEET
   Modern, Professional, Fully Working
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables (Light Theme) ---------- */
:root {
  --primary: #1a56db;
  --primary-light: #e8effd;
  --primary-dark: #1a3a8a;
  --secondary: #64748b;
  --bg-body: #f0f4f9;
  --bg-card: #ffffff;
  --bg-navbar: #ffffff;
  --bg-footer: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Dark Mode ---------- */
body.dark-mode {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --bg-navbar: #1e293b;
  --bg-footer: #020617;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --primary-light: #1e293b;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.25);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 86, 219, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.btn-light:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.btn-success {
  background: #16a34a;
  color: #fff;
}

.btn-success:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  padding: 16px 20px;
  margin: -28px -28px 20px -28px;
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-body);
}

.card-header h5 {
  margin: 0;
  font-weight: 700;
}

/* ---------- Navigation (Public) ---------- */
.public-navbar {
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.public-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand i {
  font-size: 1.6rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 4px;
  transition: var(--transition);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-links a:hover {
  color: var(--primary);
}

/* Theme Toggle */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.theme-toggle-wrapper input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--border-color);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  outline: none;
}

.theme-toggle-wrapper input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.theme-toggle-wrapper input[type="checkbox"]:checked {
  background: var(--primary);
}

.theme-toggle-wrapper input[type="checkbox"]:checked::after {
  left: 23px;
}

.theme-toggle-wrapper .icon {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a8a 100%);
  padding: 80px 0 70px;
  color: #fff;
  border-radius: 0 0 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}

.tracking-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.tracking-form input {
  flex: 1;
  padding: 16px 24px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transition: var(--transition);
  outline: none;
}

.tracking-form input:focus {
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transform: scale(1.01);
}

.tracking-form button {
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.tracking-form button:hover {
  transform: scale(1.05);
  background: #f1f5f9;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

/* ---------- Stats Section ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: -30px auto 60px;
  max-width: 1000px;
  padding: 0 24px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px 20px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stat-card .number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
}

/* ---------- Section Titles ---------- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 8px auto 0;
  font-size: 1.05rem;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.service-item {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-item .icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}

.service-item h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Tracking Page ---------- */
.tracking-result {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 32px;
  margin: 40px auto;
}

.tracking-result .header {
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: -32px -32px 24px -32px;
}

.tracking-result .header h4 {
  margin: 0;
  font-weight: 700;
}

/* Progress Bar */
.progress-track {
  width: 100%;
  height: 10px;
  background: var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  margin: 12px 0 20px;
}

.progress-track .bar {
  height: 100%;
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--primary);
}

/* Timeline */
.timeline-modern {
  border-left: 3px solid var(--primary);
  padding-left: 28px;
  margin: 24px 0;
}

.timeline-modern .item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-modern .item::before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: -35px;
  top: 4px;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-modern .item .badge {
  display: inline-block;
  padding: 3px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary);
}

.timeline-modern .item .time {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 8px;
}

.timeline-modern .item .location {
  font-weight: 600;
  margin-top: 2px;
}

.timeline-modern .item .notes {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* ---------- Payment UI ---------- */
.payment-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin: 40px 0;
}

.payment-section h4 {
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Payment Method Cards (NEW) ---------- */
.payment-method-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg-card);
  text-align: center;
}

.payment-method-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.payment-method-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.payment-method-card .icon {
  font-size: 2.5rem;
  display: block;
}

.payment-method-card .title {
  font-weight: 600;
  margin-top: 4px;
}

.payment-method-card .address {
  background: var(--bg-body);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  word-break: break-all;
  font-family: monospace;
  margin: 8px 0;
  border: 1px solid var(--border-color);
}

.payment-method-card .qr {
  max-width: 100px;
  margin: 8px auto;
  display: block;
}

.payment-method-card .copy-btn {
  margin-top: 8px;
}

/* ---------- Admin Dashboard ---------- */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg-body);
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-sidebar .brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  padding: 0 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  transition: var(--transition);
  border-left: 3px solid transparent;
  font-weight: 500;
}

.admin-sidebar .nav-item:hover,
.admin-sidebar .nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}

.admin-sidebar .nav-item .icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.admin-content {
  flex: 1;
  padding: 28px 32px;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.admin-topbar h5 {
  font-weight: 700;
  margin: 0;
}

.admin-topbar .user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-topbar .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Admin Stats Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat {
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.admin-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.admin-stat .number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-stat .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-stat.primary .number {
  color: var(--primary);
}

.admin-stat.success .number {
  color: #16a34a;
}

.admin-stat.warning .number {
  color: #d97706;
}

.admin-stat.info .number {
  color: #0891b2;
}

/* ---------- Modern Table ---------- */
.table-modern {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.table-modern thead {
  background: var(--primary-light);
}

.table-modern th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
}

.table-modern td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.table-modern tbody tr:hover {
  background: var(--primary-light);
}

.table-modern .badge-status {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 1rem;
  font-family: var(--font);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.08);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* File Input */
input[type="file"].form-control {
  padding: 10px;
  background: var(--bg-body);
}

/* ---------- Badges ---------- */
.badge {
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-block;
}

.badge-primary {
  background: var(--primary);
  color: #fff;
}

.badge-success {
  background: #16a34a;
  color: #fff;
}

.badge-warning {
  background: #d97706;
  color: #fff;
}

.badge-danger {
  background: #dc2626;
  color: #fff;
}

.badge-info {
  background: #0891b2;
  color: #fff;
}

.badge-secondary {
  background: var(--secondary);
  color: #fff;
}

.badge-dark {
  background: #1e293b;
  color: #fff;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

/* ---------- Map Container ---------- */
#trackingMap {
  height: 400px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-body);
}

/* Leaflet Override for Dark Mode */
.dark-mode .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(95%);
}

.dark-mode .leaflet-control-attribution {
  background: #1e293b !important;
  color: #94a3b8 !important;
}

.dark-mode .leaflet-popup-content-wrapper {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

.dark-mode .leaflet-popup-tip {
  background: #1e293b !important;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-footer);
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer a:hover {
  color: #fff;
}

.footer .brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.footer .divider {
  border-color: rgba(255,255,255,0.08);
  margin: 24px 0;
}

.footer .copyright {
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-3 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 24px;
}

.mt-5 {
  margin-top: 32px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 24px;
}

.mb-5 {
  margin-bottom: 32px;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 16px;
}

.w-100 {
  width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    background: var(--bg-navbar);
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .navbar-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 50px 0 40px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .tracking-form {
    flex-direction: column;
  }
  .tracking-form button {
    padding: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: -20px;
  }
  .stat-card .number {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
  }
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-content {
    padding: 20px 16px;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .table-modern {
    font-size: 0.85rem;
  }
  .table-modern th,
  .table-modern td {
    padding: 10px 12px;
  }

  .payment-method-card {
    margin-bottom: 12px;
  }
  .tracking-result {
    padding: 20px;
  }

  #trackingMap {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero {
    padding: 40px 0 30px;
  }
  .tracking-form input {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  .tracking-form button {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  #trackingMap {
    height: 250px;
  }
}