/* ===================== CSS VARIABLES ===================== */
:root {
  --bg:        #0d0d0d;
  --surface:   #161616;
  --surface2:  #1f1f1f;
  --border:    #2a2a2a;
  --accent:    #b5f13b;       /* electric lime-green */
  --accent-dk: #8dc22a;
  --text:      #f0f0f0;
  --text-muted:#888;
  --red:       #ff4d4d;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:    10px;
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
input, select, button { font-family: var(--font-body); outline: none; }

/* ===================== LOADER ===================== */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--accent);
  display: block;
  letter-spacing: 4px;
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse { to { opacity: 0.4; } }
.loader-bar {
  width: 160px; height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin: 16px auto 0;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  animation: loadBar 1.2s ease-in-out forwards;
}
@keyframes loadBar { from { width: 0 } to { width: 100% } }

/* ===================== HEADER ===================== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-gs {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 2px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text);
}
.logo-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 0.5px; }

nav { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-btn:hover { color: var(--text); border-color: var(--border); }
.nav-btn.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.admin-login-btn { color: var(--text-muted); font-size: 12px; }
.cart-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.badge {
  background: var(--accent);
  color: var(--bg);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

/* ===================== SECTIONS ===================== */
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== SHOP HERO ===================== */
.shop-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: 'GS';
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(200px, 30vw, 400px);
  color: rgba(181, 241, 59, 0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: 20px;
  white-space: nowrap;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 100px);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-sub { color: var(--text-muted); font-size: 15px; font-weight: 300; }

/* ===================== FILTER BAR ===================== */
.filter-bar {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.filter-chip:hover { color: var(--text); border-color: #444; }
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ===================== PRODUCTS GRID ===================== */
.products-grid {
  max-width: 1280px;
  margin: 28px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Skeleton */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 320px;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { opacity: 0.4 }
  50%      { opacity: 0.8 }
}

/* Product card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(181,241,59,0.1);
}
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface2);
  display: block;
}
.product-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--border);
  background: var(--surface2);
}
.product-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-category {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 2px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  gap: 8px;
}
.product-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.product-price span { font-size: 13px; font-family: var(--font-body); color: var(--text-muted); }
.add-to-cart-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.add-to-cart-btn:hover { background: var(--accent-dk); }
.out-of-stock-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,77,77,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.3; }
.empty-state p { font-size: 16px; }

/* ===================== CART SIDEBAR ===================== */
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; }
.close-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { border-color: var(--red); color: var(--red); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 12px; color: var(--accent); font-weight: 500; margin-top: 2px; }
.cart-remove {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 26px; height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cart-remove:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total { font-size: 16px; color: var(--text-muted); margin-bottom: 14px; }
.cart-total strong { color: var(--text); font-size: 20px; }
.pay-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.pay-btn:hover { background: var(--accent-dk); }

/* ===================== AUTH CARD ===================== */
.auth-card {
  max-width: 400px;
  margin: 80px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-family: var(--font-display); font-size: 32px; letter-spacing: 2px; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }

/* ===================== FORMS ===================== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--text-muted); text-transform: uppercase; }
.form-group input,
.form-group select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
  width: 100%;
}
.form-group input::placeholder { color: #555; }
.form-group select option { background: var(--surface2); }
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); background: var(--bg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.submit-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.submit-btn:hover { background: var(--accent-dk); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cancel-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  width: 100%;
}
.cancel-btn:hover { border-color: var(--text-muted); color: var(--text); }

.error-msg { color: var(--red); font-size: 13px; margin-bottom: 12px; min-height: 18px; }
.form-actions { display: flex; flex-direction: column; gap: 8px; }

/* ===================== DASHBOARD ===================== */
.dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.dash-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.dash-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}
.dash-tab:hover { color: var(--text); }
.dash-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.dash-panel { display: none; }
.dash-panel.active { display: block; }

.dash-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

/* Product form card */
.product-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 90px;
}
.product-form-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text);
}

/* Product list panel */
.product-list-panel h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
}

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-product-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.admin-product-row:hover { border-color: #333; }
.adr-img {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
}
.adr-info { flex: 1; min-width: 0; }
.adr-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adr-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.adr-price { font-family: var(--font-display); font-size: 18px; color: var(--accent); flex-shrink: 0; }
.adr-actions { display: flex; gap: 6px; }
.edit-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.edit-btn:hover { border-color: var(--accent); color: var(--accent); }
.delete-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.delete-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Orders */
.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.orders-header h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: 1px; }
.refresh-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.refresh-btn:hover { color: var(--text); border-color: #444; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.order-card:hover { border-color: #333; }
.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.order-ref { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.order-customer { font-size: 15px; font-weight: 600; }
.order-contact { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.order-amount { font-family: var(--font-display); font-size: 26px; color: var(--accent); }
.order-items { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.order-items li { margin-left: 16px; margin-top: 3px; }
.order-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.status-paid    { background: rgba(181,241,59,0.15); color: var(--accent); border: 1px solid rgba(181,241,59,0.3); }
.status-pending { background: rgba(255,180,0,0.12); color: #ffb400; border: 1px solid rgba(255,180,0,0.3); }
.status-shipped { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.status-delivered { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }

.order-date { font-size: 11px; color: var(--text-muted); }
.status-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
}
.status-select:focus { border-color: var(--accent); }



/* ===================== ADMIN LOGOUT BUTTON ===================== */
.admin-logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adminLogout:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ===================== CHECKOUT MODAL ===================== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.25s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; }
.modal-total { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.modal-total strong { color: var(--text); font-size: 20px; }

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9000;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { border-color: var(--accent); color: var(--accent); }
.toast.error   { border-color: var(--red); color: var(--red); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .dash-split { grid-template-columns: 1fr; }
  .product-form-card { position: static; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  .logo-text { display: none; }
  .nav-btn { padding: 7px 10px; font-size: 12px; }
  .cart-sidebar { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .shop-hero { padding: 40px 20px 36px; }
  .dashboard { padding: 20px 16px 40px; }
  .order-card-top { flex-direction: column; }
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #444; }


/* ===================== AUTH TABS ===================== */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.auth-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.info-msg { color: var(--accent); font-size: 13px; margin-bottom: 12px; }

/* ===================== RIDER DASHBOARD HEADER ===================== */
.rider-dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.rider-welcome {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
}
.rider-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===================== AVAILABILITY TOGGLE ===================== */
.availability-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 99px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ===================== LOGOUT BTN ===================== */
.logout-btn {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.logout-btn:hover { background: var(--red); color: #fff; }

/* ===================== NEW ORDER BANNER ===================== */
.new-order-banner {
  background: rgba(181,241,59,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  animation: pulse-border 1.5s ease-in-out infinite;
}
@keyframes pulse-border {
  0%,100% { box-shadow: 0 0 0 0 rgba(181,241,59,0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(181,241,59,0); }
}
.new-order-banner button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ===================== RIDER ORDER CARD ===================== */
.rider-order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.rider-order-card:hover { border-color: #333; }
.rider-order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.rider-order-amount {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
}
.rider-order-items {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.rider-order-items li { margin-left: 16px; margin-top: 3px; }
.rider-order-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.accept-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.accept-btn:hover { background: var(--accent-dk); }
.reject-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.reject-btn:hover { border-color: var(--red); color: var(--red); }
.view-map-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.view-map-btn:hover { border-color: var(--accent); color: var(--accent); }
.delivered-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.delivered-btn:hover { background: #059669; }

/* ===================== RIDERS LIST (ADMIN) ===================== */
.riders-list { display: flex; flex-direction: column; gap: 12px; }
.rider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: var(--transition);
}
.rider-card:hover { border-color: #333; }
.rider-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface2);
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.rider-card-info { flex: 1; min-width: 200px; }
.rider-card-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.rider-card-meta { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.rider-card-meta span { display: block; }
.rider-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.approve-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.approve-btn:hover { background: var(--accent-dk); }
.reject-rider-btn {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.reject-rider-btn:hover { background: var(--red); color: #fff; }
.view-docs-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.view-docs-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===================== GOOGLE MAPS PICKER ===================== */
.map-picker {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 10px;
  background: var(--surface2);
  overflow: hidden;
}
.location-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.location-btn:hover { border-color: var(--accent); color: var(--accent); }
.location-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}
.location-set { color: var(--accent) !important; }

/* ===================== RIDER MODAL ACTIONS ===================== */
.rider-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ===================== STATUS BADGES (extra) ===================== */
.status-assigned  { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.status-delivered { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.status-approved  { background: rgba(181,241,59,0.15); color: var(--accent); border: 1px solid rgba(181,241,59,0.3); }
.status-rejected  { background: rgba(255,77,77,0.12); color: var(--red); border: 1px solid rgba(255,77,77,0.3); }
.status-pending   { background: rgba(255,180,0,0.12); color: #ffb400; border: 1px solid rgba(255,180,0,0.3); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
  .rider-dash-header { flex-direction: column; }
  .rider-controls { flex-wrap: wrap; }
}



/* ===================== SIZE PREVIEW ON PRODUCT CARD ===================== */
.product-sizes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.size-dot {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ===================== SIZE PICKER MODAL ===================== */
.size-modal {
  max-width: 480px;
}
.size-product-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
}
.size-product-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.size-product-img-placeholder {
  width: 60px;
  height: 60px;
  background: var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.size-option {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 52px;
  text-align: center;
}
.size-option:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.size-option.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.size-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}
.size-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===================== CART ITEM SIZE ===================== */
.cart-item-size {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* Make checkout modal scrollable on small screens */
.checkout-modal {
  max-height: 90vh;
  overflow-y: auto;
}


/* ===================== TRACK ORDER ===================== */
.track-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px 60px;
}
.track-search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 28px;
  text-align: center;
}
.track-search-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.track-input-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.track-input-row input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
}
.track-input-row input:focus { border-color: var(--accent); outline: none; }
.track-go-btn { width: auto; padding: 12px 28px; }

/* Status card */
.track-status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.track-status-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.track-ref-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.track-ref-value { font-family: var(--font-display); font-size: 20px; letter-spacing: 1px; color: var(--accent); }
.track-status-badge {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.track-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.track-info-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.track-info-item span { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.track-info-item strong { font-size: 14px; color: var(--text); }

/* Map card */
.track-map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.track-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.track-map-header h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: 1px; }
.track-map { width: 100%; height: 360px; }
.track-legend {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.legend-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-dot.rider    { background: #3b82f6; }
.legend-dot.customer { background: #b5f13b; }

/* ETA */
.track-eta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.eta-label { font-size: 11px; color: var(--text-muted); }
.eta-time  { font-family: var(--font-display); font-size: 28px; color: var(--accent); letter-spacing: 1px; }

/* Responsive */
@media (max-width: 600px) {
  .track-info-grid { grid-template-columns: 1fr; }
  .track-input-row { flex-direction: column; }
  .track-go-btn { width: 100%; }
  .track-map { height: 260px; }
}
