/* ============================================================
   eSewak — Amazon-style Master Stylesheet
   Theme: Amazon Navy #131921 + Orange #febd69 / #f0c14b
   Strategy: keep ALL existing class names so HTML/JS works,
             swap underlying visual language to Amazon.
   ============================================================ */

/* --- CSS Variables (theme) --- */
:root {
  /* Amazon brand colors */
  --az-navy-900: #0F1111;        /* darkest text */
  --az-navy-800: #131921;        /* primary header */
  --az-navy-700: #232f3e;        /* secondary nav */
  --az-navy-600: #37475a;        /* hover state */
  --az-orange-500: #febd69;      /* search button, accent */
  --az-orange-400: #f3a847;      /* hover orange */
  --az-yellow-500: #f0c14b;      /* "Add to cart" yellow */
  --az-yellow-400: #ddb347;      /* yellow hover */
  --az-link: #007185;            /* link color (teal) */
  --az-link-hover: #c7511f;      /* link hover (rust) */
  --az-price: #B12704;           /* price red */
  --az-gray-100: #f3f3f3;
  --az-gray-200: #eaeded;
  --az-gray-300: #d5d9d9;
  --az-gray-400: #ccc;
  --az-gray-500: #888;
  --az-gray-600: #565959;
  --az-gray-700: #333;
  --az-bg: #EAEDED;              /* Amazon page background */
  --az-surface: #ffffff;
  --az-star: #ffa41c;

  /* Legacy variable aliases — old code still references these.
     Mapped to Amazon palette so existing components inherit the new look. */
  --purple-900: var(--az-navy-900);
  --purple-800: var(--az-navy-800);
  --purple-700: var(--az-navy-700);
  --purple-600: #232f3e;
  --purple-500: #37475a;
  --purple-400: #4d5d72;
  --purple-200: #d5d9d9;
  --purple-50:  #f3f3f3;

  --gold-700: #a88734;
  --gold-600: #c79100;
  --gold-500: var(--az-orange-500);
  --gold-400: var(--az-yellow-500);
  --gold-200: #fff3b8;

  --ink-900: var(--az-navy-900);
  --ink-700: #333;
  --ink-500: var(--az-gray-600);
  --ink-300: var(--az-gray-400);

  --cream:    #ffffff;
  --paper:    var(--az-bg);
  --white:    #ffffff;

  --success: #007600;
  --danger:  #B12704;
  --warning: #C45500;
  --info:    #007185;

  --shadow-sm: 0 1px 2px rgba(15, 17, 17, 0.08);
  --shadow-md: 0 2px 6px rgba(15, 17, 17, 0.12);
  --shadow-lg: 0 4px 14px rgba(15, 17, 17, 0.18);
  --shadow-gold: 0 2px 8px rgba(254, 189, 105, 0.5);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --font-display: 'Amazon Ember', 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Amazon Ember', 'Poppins', system-ui, -apple-system, sans-serif;
  --font-hindi: 'Tiro Devanagari Hindi', 'Poppins', sans-serif;

  --container-max: 1500px;
}

/* --- Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--az-navy-900);
  background: var(--az-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--az-link); text-decoration: none; }
a:hover { color: var(--az-link-hover); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Amazon has no decorative background — page is flat */
.app-bg { display: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--az-navy-900);
}
h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); line-height: 1.25; }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.35; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--az-orange-400);
  font-weight: 600;
  display: inline-block;
}
.accent { color: var(--az-link); }
.gold { color: var(--az-orange-500); }
.text-center { text-align: center; }
.text-gold { color: var(--az-orange-400); }
.text-purple { color: var(--az-link); }
.text-muted { color: var(--az-gray-600); }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.flex-row { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hidden { display: none !important; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 14px;
}
.section { padding: 28px 0; }

/* ============================================================
   AMAZON HEADER (NAVY)
   ============================================================ */
.app-header {
  background: var(--az-navy-800);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border: none;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  color: #fff;
}
.logo:hover { border-color: #fff; text-decoration: none; color: #fff; }
.logo-mark {
  display: none; /* hide old logo mark — text is enough Amazon style */
}
.logo-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.logo-text span:first-child {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo-text .gold {
  font-size: 0.65rem;
  color: var(--az-orange-500);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Deliver-to location pill */
.az-deliver-to {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.1;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}
.az-deliver-to:hover { border-color: #fff; }
.az-deliver-to .az-d-top { color: #ccc; font-size: 0.7rem; }
.az-deliver-to .az-d-bot { font-weight: 700; font-size: 0.85rem; }
.az-deliver-to .az-d-bot::before {
  content: '📍 ';
  font-size: 0.8rem;
}

/* The big Amazon search bar */
.az-search {
  flex: 1;
  display: flex;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}
.az-search:focus-within {
  outline: 3px solid var(--az-orange-500);
  outline-offset: 0;
}
.az-search-cat {
  background: var(--az-gray-200);
  border: none;
  padding: 0 10px;
  font-size: 0.75rem;
  color: var(--az-navy-900);
  border-right: 1px solid var(--az-gray-300);
  cursor: pointer;
  max-width: 110px;
}
.az-search-input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 0.95rem;
  min-width: 0;
  outline: none;
  background: #fff;
  color: var(--az-navy-900);
  font-family: inherit;
}
.az-search-btn {
  background: var(--az-orange-500);
  border: none;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--az-navy-900);
  cursor: pointer;
  flex-shrink: 0;
}
.az-search-btn:hover { background: var(--az-orange-400); }

/* Header right-side nav (account / cart) */
.header-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.az-nav-item {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.1;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.az-nav-item:hover { border-color: #fff; color: #fff; text-decoration: none; }
.az-nav-item .top { color: #ccc; font-size: 0.7rem; }
.az-nav-item .bot { font-weight: 700; font-size: 0.85rem; }
.az-nav-cart {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
}
.az-nav-cart:hover { border-color: #fff; color: #fff; text-decoration: none; }
.az-nav-cart-count {
  position: absolute;
  top: 0;
  left: 18px;
  background: transparent;
  color: var(--az-orange-500);
  font-weight: 700;
  font-size: 1rem;
}

/* Secondary nav (categories bar) */
.az-subnav {
  background: var(--az-navy-700);
  color: #fff;
  padding: 6px 14px;
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.az-subnav::-webkit-scrollbar { display: none; }
.az-subnav a, .az-subnav span.az-subnav-link {
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.az-subnav a:hover, .az-subnav span.az-subnav-link:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.az-subnav .az-subnav-all { font-weight: 700; }
.az-subnav .az-subnav-feature { color: var(--az-orange-500); font-weight: 700; }

/* Old language toggle — keep but restyle to fit dark header */
.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2px;
}
.lang-toggle button {
  background: transparent;
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--az-orange-500);
  color: var(--az-navy-900);
}

/* Mobile menu button */
.mobile-menu-btn {
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
}
.mobile-menu-btn:hover { border-color: #fff; }

/* ============================================================
   HERO (HOMEPAGE BANNER) — Amazon "deals banner" style
   ============================================================ */
.hero {
  background: linear-gradient(180deg, #232f3e 0%, #37475a 100%);
  color: #fff;
  padding: 24px 0 80px;
  margin-bottom: -56px;
  position: relative;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
}
.hero .accent { color: var(--az-orange-500); }
.hero .eyebrow { color: var(--az-orange-500); }
.hero-sub {
  font-size: 1rem;
  color: #d5d9d9;
  margin-top: 12px;
  max-width: 540px;
}
.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.hero-orb,
.hero-orb-1,
.hero-orb-2 { display: none; }
.hero-orb-glyph {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  color: var(--az-orange-500);
  opacity: 0.85;
  font-style: italic;
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 18px 0 60px; }
}

/* ============================================================
   BUTTONS — Amazon yellow/orange CTA buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--az-gray-400);
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  color: var(--az-navy-900);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  min-height: 32px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.25;
}
.btn:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  text-decoration: none;
  color: var(--az-navy-900);
}
.btn:active {
  background: #e0b13c;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.btn:focus {
  outline: 2px solid var(--az-orange-500);
  outline-offset: 1px;
}

.btn-primary {
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  color: var(--az-navy-900);
  border-color: #a88734 #9c7e31 #846a29;
}
.btn-primary:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
  color: var(--az-navy-900);
}

/* Orange "Buy Now" style — used for emphasis */
.btn-gold {
  background: linear-gradient(to bottom, #f7ca00, #f0a431);
  color: var(--az-navy-900);
  border-color: #a88734 #9c7e31 #846a29;
}
.btn-gold:hover {
  background: linear-gradient(to bottom, #f0b800, #e09b2c);
  color: var(--az-navy-900);
}

.btn-outline {
  background: #fff;
  color: var(--az-navy-900);
  border: 1px solid var(--az-gray-400);
  background-image: linear-gradient(to bottom, #f7f8f8, #e7e9ec);
}
.btn-outline:hover {
  background: var(--az-gray-200);
  background-image: linear-gradient(to bottom, #e7e9ec, #d5d9d9);
  color: var(--az-navy-900);
}

.btn-ghost {
  background: transparent;
  background-image: none;
  color: inherit;
  border: 1px solid transparent;
  font-weight: 400;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  text-decoration: none;
}
/* When btn-ghost is on a white surface */
.dash-main .btn-ghost,
.card .btn-ghost {
  color: var(--az-link);
  background: transparent;
}
.dash-main .btn-ghost:hover,
.card .btn-ghost:hover {
  background: var(--az-gray-100);
  border-color: var(--az-gray-300);
  color: var(--az-link-hover);
}

.btn-block { width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; min-height: 28px; }
.btn-lg { padding: 11px 22px; font-size: 1rem; min-height: 42px; }

/* ============================================================
   CARDS — flat, white, thin border (Amazon style)
   ============================================================ */
.card {
  background: var(--az-surface);
  border-radius: 8px;
  padding: 18px;
  border: 1px solid var(--az-gray-300);
  box-shadow: none;
}
.card-elevated {
  background: var(--az-surface);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--az-gray-300);
  box-shadow: var(--shadow-md);
}
.card-dark {
  background: var(--az-navy-800);
  color: #fff;
  border-radius: 8px;
  padding: 18px;
}

/* ============================================================
   INPUTS — Amazon flat style
   ============================================================ */
.input-group { margin-bottom: 14px; position: relative; }
.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--az-navy-900);
  margin-bottom: 4px;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid var(--az-gray-400);
  border-radius: 4px;
  color: var(--az-navy-900);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 36px;
  line-height: 1.4;
  background-image: linear-gradient(to bottom, #f7f8f8, #fff);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--az-orange-500);
  box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.5);
  background-image: none;
}
.textarea { min-height: 80px; resize: vertical; }
.req { color: var(--danger); }
.input-error-msg {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 4px;
  display: block;
}
.input-icon-group { position: relative; }
.input-prefix-group {
  display: flex;
  border: 1px solid var(--az-gray-400);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  background-image: linear-gradient(to bottom, #f7f8f8, #fff);
}
.input-prefix-group:focus-within {
  border-color: var(--az-orange-500);
  box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.5);
}
.input-prefix-group .prefix {
  padding: 8px 10px;
  background: var(--az-gray-200);
  border-right: 1px solid var(--az-gray-300);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--az-navy-900);
  display: flex;
  align-items: center;
}
.input-prefix-group .input {
  border: none;
  background: transparent;
  background-image: none;
  box-shadow: none;
  flex: 1;
}
.input-prefix-group .input:focus { box-shadow: none; outline: none; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.select-with-add { display: flex; gap: 6px; }
.add-new-input-row { display: flex; gap: 6px; margin-top: 6px; }

.file-upload {
  display: block;
  border: 2px dashed var(--az-gray-400);
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  background: var(--az-gray-100);
  transition: border-color 0.15s, background 0.15s;
}
.file-upload:hover { border-color: var(--az-orange-500); background: #fff7e6; }
.file-upload input[type="file"] { display: none; }
.file-upload-label { font-size: 0.85rem; color: var(--az-gray-600); }
.file-upload-label strong { color: var(--az-navy-900); }
.file-preview {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.file-preview img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 4px;
  border: 1px solid var(--az-gray-300);
}

/* ============================================================
   TABS — Amazon underline tabs
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--az-gray-300);
  margin-bottom: 18px;
  overflow-x: auto;
}
.tab {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--az-gray-600);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  white-space: nowrap;
}
.tab:hover { color: var(--az-link-hover); }
.tab.active {
  color: var(--az-navy-900);
  font-weight: 700;
  border-bottom-color: var(--az-orange-400);
}
.tab-panel { display: none; animation: fadeUp 0.3s ease; }
.tab-panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ROLE CARDS (homepage) — Amazon category-tile style
   ============================================================ */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.role-card {
  background: var(--az-surface);
  border-radius: 8px;
  padding: 18px;
  border: 1px solid var(--az-gray-300);
  text-decoration: none;
  color: var(--az-navy-900);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.role-card:hover {
  box-shadow: 0 4px 14px rgba(15, 17, 17, 0.15);
  text-decoration: none;
  color: var(--az-navy-900);
}
.role-card[data-role="shop"]    { --role-tint: #FAEEDA; }
.role-card[data-role="worker"]  { --role-tint: #EEEDFE; }
.role-card[data-role="customer"]{ --role-tint: #E1F5EE; }
.role-card[data-role="rider"]   { --role-tint: #E6F1FB; }
.role-icon {
  width: 100%;
  aspect-ratio: 1.6;
  background: var(--role-tint, var(--az-gray-100));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 12px;
}
.role-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--az-navy-900);
  margin-bottom: 6px;
}
.role-desc {
  font-size: 0.85rem;
  color: var(--az-gray-600);
  line-height: 1.45;
  margin-bottom: 10px;
}
.role-arrow {
  color: var(--az-link);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: auto;
}
.role-card:hover .role-arrow { color: var(--az-link-hover); text-decoration: underline; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--az-surface);
  border-radius: 8px;
  padding: 18px;
  border: 1px solid var(--az-gray-300);
}
.feature-num {
  display: inline-block;
  background: var(--az-orange-500);
  color: var(--az-navy-900);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.feature h4 {
  font-size: 1rem;
  color: var(--az-navy-900);
  margin-bottom: 6px;
}
.feature p {
  font-size: 0.85rem;
  color: var(--az-gray-600);
  line-height: 1.45;
}

/* ============================================================
   FOOTER — Amazon footer style (dark navy with sky-blue "back to top")
   ============================================================ */
.app-footer {
  background: var(--az-navy-700);
  color: #fff;
  margin-top: 40px;
}
.az-footer-top {
  background: var(--az-navy-600);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #3a4553;
}
.az-footer-top:hover { background: #485769; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 32px 14px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 280px;
}
.footer-col h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  padding: 3px 0;
  text-decoration: none;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  background: var(--az-navy-800);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 18px 14px;
  font-size: 0.8rem;
  border-top: 1px solid #3a4553;
}

/* ============================================================
   TOAST + LOADER
   ============================================================ */
.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 36px);
}
.toast {
  background: var(--az-surface);
  border: 1px solid var(--az-gray-300);
  border-left: 4px solid var(--az-link);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  color: var(--az-navy-900);
  min-width: 240px;
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--az-link); }
.toast-icon { font-size: 1.1rem; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.loader-overlay.show { display: flex; }
.loader-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--az-gray-300);
  border-top-color: var(--az-orange-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FORMS — Amazon registration page style
   ============================================================ */
.form-shell {
  max-width: 480px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--az-gray-400);
  border-radius: 8px;
  padding: 22px;
}
.form-subtitle {
  font-size: 0.9rem;
  color: var(--az-gray-600);
  margin-bottom: 14px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-section-divider {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--az-navy-900);
  margin: 18px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--az-gray-300);
}
.gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--az-link);
  color: #fff;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  margin: 6px 0 12px;
}
.gps-btn:hover { background: #005f6c; }

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
.dash-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 14px;
}
.dash-sidebar {
  background: var(--az-surface);
  border-radius: 8px;
  border: 1px solid var(--az-gray-300);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.dash-user {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--az-gray-200);
  margin-bottom: 12px;
}
.dash-user-avatar {
  width: 64px; height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--az-navy-700);
  color: var(--az-orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  overflow: hidden;
}
.dash-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-user-name {
  font-weight: 700;
  color: var(--az-navy-900);
  font-size: 1rem;
}
.dash-user-meta {
  color: var(--az-gray-600);
  font-size: 0.8rem;
  margin-top: 2px;
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  color: var(--az-navy-900);
  border-radius: 6px;
  border: 1px solid transparent;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-nav-item .icon { font-size: 1.1rem; }
.dash-nav-item:hover {
  background: var(--az-gray-100);
}
.dash-nav-item.active {
  background: #fff7e6;
  border-color: var(--az-orange-500);
  color: var(--az-navy-900);
  font-weight: 700;
  border-left: 4px solid var(--az-orange-500);
  padding-left: 9px;
}
.dash-nav-item .count {
  margin-left: auto;
  background: var(--az-orange-500);
  color: var(--az-navy-900);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}
.dash-nav-item .count:empty { display: none; }

.dash-main {
  background: var(--az-surface);
  border-radius: 8px;
  border: 1px solid var(--az-gray-300);
  padding: 20px;
  min-height: 60vh;
}
.dash-page { display: none; }
.dash-page.active { display: block; animation: fadeUp 0.3s ease; }
.dash-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--az-gray-200);
}
.dash-page-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--az-navy-900);
}
.dash-page-subtitle {
  font-size: 0.85rem;
  color: var(--az-gray-600);
  margin-top: 2px;
}

/* Mobile sidebar */
.dash-overlay { display: none; }
@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; padding: 10px; }
  .dash-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 270px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    border-radius: 0;
    border-right: 1px solid var(--az-gray-300);
    overflow-y: auto;
    padding-top: 80px;
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40;
  }
  .dash-overlay.open { display: block; }
  .mobile-menu-btn { display: inline-flex !important; }
  .dash-main { padding: 14px; }
}
@media (min-width: 901px) {
  .mobile-menu-btn { display: none; }
}

/* ============================================================
   STAT CARDS (used in shop/worker dashboards)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--az-surface);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--az-gray-300);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--az-orange-500);
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--az-gray-600);
  margin-bottom: 6px;
  font-weight: 700;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--az-navy-900);
  line-height: 1;
}
.stat-trend {
  font-size: 0.75rem;
  color: var(--success);
  margin-top: 5px;
}

/* ============================================================
   PRODUCT / SERVICE CARDS — Amazon product tile style
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.product-card {
  background: var(--az-surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--az-gray-300);
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 4px 14px rgba(15, 17, 17, 0.15);
}
.product-card.inactive { opacity: 0.55; filter: grayscale(40%); }
.product-img {
  aspect-ratio: 1;
  background: var(--az-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--az-gray-500);
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--az-price);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--az-link);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.product-name:hover { color: var(--az-link-hover); text-decoration: underline; }
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.product-rating .stars { color: var(--az-star); letter-spacing: -1px; }
.product-rating .count { color: var(--az-link); font-size: 0.8rem; }
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--az-navy-900);
}
.product-price::before {
  content: '₹';
  font-size: 0.8rem;
  vertical-align: super;
  margin-right: 1px;
}
.product-mrp {
  font-size: 0.8rem;
  color: var(--az-gray-600);
  text-decoration: line-through;
}
.product-discount {
  background: transparent;
  color: var(--az-price);
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
}
.product-offers {
  background: #fff7e6;
  color: var(--warning);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  margin-bottom: 8px;
  border: 1px solid #ffe8b3;
}
.product-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.product-actions .icon-btn {
  width: 32px; height: 32px;
  border-radius: 4px;
  background: var(--az-gray-100);
  border: 1px solid var(--az-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.15s;
}
.product-actions .icon-btn:hover {
  background: var(--az-gray-200);
}
.product-actions .icon-btn.danger:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.product-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--az-gray-600);
}

/* Toggle switch */
.switch {
  position: relative;
  width: 38px; height: 22px;
  background: var(--az-gray-400);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(16px); }

/* ============================================================
   CUSTOMER DASHBOARD — search/results page
   ============================================================ */
.search-hero {
  background: linear-gradient(180deg, #232f3e, #37475a);
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}
.search-hero h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.search-hero h2 span { color: var(--az-orange-500); }
.search-hero-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.search-big {
  flex: 1;
  min-width: 240px;
  display: flex;
  background: #fff;
  border-radius: 4px;
  padding: 0;
  align-items: center;
  height: 42px;
  overflow: hidden;
}
.search-big > span:first-child {
  padding: 0 10px;
  color: var(--az-gray-600);
}
.search-big input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
  font-family: inherit;
  color: var(--az-navy-900);
}
.search-big .btn {
  height: 100%;
  border-radius: 0;
  min-height: unset;
  border: none;
  padding: 0 18px;
  background: var(--az-orange-500);
  color: var(--az-navy-900);
  font-weight: 700;
  background-image: none;
}
.search-big .btn:hover {
  background: var(--az-orange-400);
  background-image: none;
}
#use-loc-btn {
  height: 42px;
  min-height: unset;
  background: var(--az-link);
  color: #fff;
  background-image: none;
  border-color: var(--az-link);
}
#use-loc-btn:hover {
  background: #005f6c;
  background-image: none;
  color: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}
.filter-chip {
  padding: 5px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.filter-chip:hover {
  background: rgba(255,255,255,0.15);
}
.filter-chip.active {
  background: var(--az-orange-500);
  color: var(--az-navy-900);
  border-color: var(--az-orange-500);
  font-weight: 700;
}

/* When filter-bar is on a light surface (bookings tab) */
.dash-page #page-bookings .filter-bar .filter-chip,
.dash-page:not(#page-search) .filter-bar .filter-chip {
  background: var(--az-gray-100);
  border-color: var(--az-gray-300);
  color: var(--az-navy-900);
}
.dash-page:not(#page-search) .filter-bar .filter-chip:hover {
  background: var(--az-gray-200);
}
.dash-page:not(#page-search) .filter-bar .filter-chip.active {
  background: var(--az-orange-500);
  border-color: var(--az-orange-500);
  color: var(--az-navy-900);
}

.range-slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #fff;
  flex-wrap: wrap;
}
.range-slider-group input[type="range"] {
  flex: 1;
  min-width: 140px;
  accent-color: var(--az-orange-500);
}

/* Quick category strip — Amazon "shop by category" style */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.cat-card {
  background: var(--az-surface);
  border: 1px solid var(--az-gray-300);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-card:hover {
  border-color: var(--az-orange-500);
  box-shadow: 0 2px 6px rgba(15, 17, 17, 0.12);
}
.cat-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}
.cat-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--az-navy-900);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--az-gray-100);
  border: 1px dashed var(--az-gray-400);
  border-radius: 8px;
}
.empty-state .emoji { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { color: var(--az-navy-900); margin-bottom: 6px; }
.empty-state p { color: var(--az-gray-600); font-size: 0.9rem; }

/* Results grid uses products-grid layout; nothing to override beyond that */
#results-grid:not(:empty) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
#results-grid .empty-state { grid-column: 1 / -1; }

/* Result card (shop/worker listing) — looks like a product card */
.result-card {
  background: var(--az-surface);
  border: 1px solid var(--az-gray-300);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-card:hover {
  box-shadow: 0 4px 14px rgba(15, 17, 17, 0.15);
}
.result-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.result-avatar {
  width: 56px; height: 56px;
  border-radius: 6px;
  background: var(--az-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
}
.result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.result-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--az-link);
  line-height: 1.3;
}
.result-title:hover { color: var(--az-link-hover); text-decoration: underline; }
.result-subtitle {
  font-size: 0.8rem;
  color: var(--az-gray-600);
  margin-top: 2px;
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--az-gray-600);
}
.result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.result-distance {
  background: var(--az-gray-100);
  color: var(--az-navy-900);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.75rem;
}
.result-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.result-actions .btn { flex: 1; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 17, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 8px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--az-gray-300);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.modal-lg .modal { max-width: 780px; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--az-gray-200);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--az-navy-900);
}
.modal-close {
  background: transparent;
  font-size: 1.4rem;
  color: var(--az-gray-600);
  padding: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--az-gray-100); color: var(--az-navy-900); }
.modal-body { padding: 18px; }
.modal-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--az-gray-200);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.booking-summary-box {
  background: var(--az-gray-100);
  border: 1px solid var(--az-gray-300);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

/* ============================================================
   STAGGER ANIMATION (for grids)
   ============================================================ */
.stagger-in > * {
  opacity: 0;
  transform: translateY(8px);
  animation: staggerUp 0.4s ease forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.02s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.06s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.10s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.14s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.18s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.22s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.26s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.30s; }
@keyframes staggerUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 6px;
  }
  /* On mobile, the search bar takes full width on its own row */
  .az-search {
    order: 10;
    flex-basis: 100%;
    height: 36px;
  }
  .az-deliver-to,
  .az-nav-item.az-nav-orders {
    display: none; /* simplify on mobile */
  }
  .logo-text span:first-child { font-size: 1.2rem; }
  .az-subnav { padding: 6px 10px; gap: 2px; }
  .az-subnav a, .az-subnav span.az-subnav-link {
    font-size: 0.78rem;
    padding: 3px 6px;
  }
  .search-hero-row { flex-direction: column; }
  .search-big, #use-loc-btn { width: 100%; }
  .filter-bar { gap: 4px; }
  .filter-chip { font-size: 0.72rem; padding: 4px 9px; }
  .dash-page-title { font-size: 1.15rem; }
  .cat-strip { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 6px; }
  .cat-card { padding: 10px 6px; }
  .cat-icon { font-size: 1.6rem; }
  .cat-name { font-size: 0.72rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.4rem; }
  .products-grid,
  #results-grid:not(:empty) {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .product-body { padding: 10px; }
  .product-name { font-size: 0.88rem; }
  .product-price { font-size: 1rem; }
  .footer-grid { padding: 22px 14px; gap: 18px; }
}

@media (max-width: 480px) {
  .header-inner { gap: 4px; padding: 6px 8px; }
  .logo { padding: 4px 6px; }
  .az-nav-item .top { display: none; }
  .az-nav-item { padding: 6px 4px; }
  .lang-toggle button { padding: 3px 6px; font-size: 0.7rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .app-header, .app-footer, .dash-sidebar, .btn { display: none !important; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-main { border: none; }
}

/* ============================================================
   ADDITIONAL COMPONENTS — Amazon-styled
   (booking rows, badges, sub-tabs, browse items, my-bookings,
    rider trips, skeletons, availability, working hours)
   ============================================================ */

/* RESULT CARD — already used by customer.js for shop/worker listings.
   Override the basic grid we set earlier with a richer layout that
   matches the HTML structure customer.js generates. */
.result-card {
  background: var(--az-surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--az-gray-300);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px;
  transition: box-shadow 0.15s;
  cursor: pointer;
  align-items: stretch;
}
@media (max-width: 480px) {
  .result-card { grid-template-columns: 80px 1fr; padding: 10px; gap: 10px; }
}
.result-card:hover {
  box-shadow: 0 4px 14px rgba(15, 17, 17, 0.15);
}
.result-img {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--az-gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  color: var(--az-gray-500);
  overflow: hidden;
}
.result-img img { width: 100%; height: 100%; object-fit: cover; }
.result-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.result-name {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--az-link);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.3;
}
.result-name:hover { color: var(--az-link-hover); text-decoration: underline; }
.result-type {
  font-size: 0.78rem;
  color: var(--az-gray-600);
  display: flex; gap: 4px; align-items: center;
}
.result-distance {
  background: var(--az-gray-100);
  color: var(--az-navy-900);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 3px;
  border: 1px solid var(--az-gray-300);
}
.result-address {
  font-size: 0.8rem;
  color: var(--az-gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--az-gray-700);
  margin-top: 2px;
}
.result-actions {
  display: flex; gap: 6px; margin-top: 6px;
  flex-wrap: wrap;
}
.result-actions .btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  min-height: 30px;
}

/* SHOP DETAILS MODAL — replace dark gradient hero with Amazon-style hero strip */
.shop-hero {
  position: relative;
  height: 160px;
  background: var(--az-navy-800);
  border-radius: 8px 8px 0 0;
  margin: 0 0 0;
  overflow: hidden;
}
.shop-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.shop-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: white;
}
.shop-hero-overlay h2 {
  color: var(--az-orange-500);
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.shop-hero-overlay .meta {
  font-size: 0.82rem;
  opacity: 0.95;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  color: #fff;
}

.shop-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--az-gray-200);
  margin-bottom: 14px;
}
@media (max-width: 480px) { .shop-info-row { grid-template-columns: 1fr; } }
.shop-info-cell .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--az-gray-600);
  margin-bottom: 2px;
  font-weight: 600;
}
.shop-info-cell .value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--az-navy-900);
}

/* Sub-tabs in modal */
.sub-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--az-gray-300);
  margin-bottom: 14px;
}
.sub-tab {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--az-gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  background: transparent;
}
.sub-tab:hover { color: var(--az-link-hover); }
.sub-tab.active {
  color: var(--az-navy-900);
  border-bottom-color: var(--az-orange-400);
  font-weight: 700;
}

/* Browse items (compact list in modal) */
.browse-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--az-gray-200);
  align-items: center;
  margin-bottom: 6px;
  transition: background 0.15s;
}
.browse-item:hover { background: var(--az-gray-100); }
.browse-item-img {
  width: 56px; height: 56px;
  border-radius: 4px;
  background: var(--az-gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--az-gray-500);
  overflow: hidden;
  border: 1px solid var(--az-gray-300);
}
.browse-item-img img { width: 100%; height: 100%; object-fit: cover; }
.browse-item-name {
  font-weight: 500;
  color: var(--az-link);
  font-size: 0.9rem;
  cursor: pointer;
}
.browse-item-name:hover { color: var(--az-link-hover); text-decoration: underline; }
.browse-item-prices {
  display: flex; gap: 6px; align-items: baseline;
}
.browse-item-price {
  color: var(--az-price);
  font-weight: 500;
  font-size: 1rem;
}
.browse-item-price::before {
  content: '₹';
  font-size: 0.75rem;
  vertical-align: super;
}
.browse-item-mrp {
  color: var(--az-gray-600);
  text-decoration: line-through;
  font-size: 0.78rem;
}
.browse-item-offers {
  font-size: 0.72rem;
  color: var(--warning);
  margin-top: 2px;
}

/* BOOKING ROWS */
.booking-list { display: flex; flex-direction: column; gap: 8px; }
.booking-row {
  background: var(--az-surface);
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid var(--az-gray-300);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  transition: box-shadow 0.15s;
}
.booking-row:hover { box-shadow: var(--shadow-sm); }
@media (max-width: 600px) {
  .booking-row { grid-template-columns: 1fr; }
}
.booking-meta-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--az-gray-600);
  margin-top: 4px;
}
.booking-customer {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--az-navy-900);
}
.booking-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* STATUS BADGES — Amazon order-status style */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.badge.pending     { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.badge.accepted    { background: #DCFCE7; color: #065F46; border: 1px solid #86EFAC; }
.badge.rejected    { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.badge.in_progress { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }
.badge.completed   { background: #E0E7FF; color: #3730A3; border: 1px solid #A5B4FC; }
.badge.cancelled   { background: #F3F4F6; color: #4B5563; border: 1px solid #D1D5DB; }

/* WORKING HOURS GRID */
.working-hours-grid {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
}
@media (max-width: 600px) {
  .working-hours-grid { grid-template-columns: 1fr 1fr; }
  .working-hours-grid .day-cell { grid-column: 1 / -1; font-weight: 700; }
}
.working-hours-grid > * { padding: 4px 0; }
.day-cell {
  font-size: 0.88rem;
  color: var(--az-navy-900);
  font-weight: 500;
}
.time-input {
  padding: 6px 10px;
  border: 1px solid var(--az-gray-400);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
}

/* SEARCH BAR (small standalone) */
.search-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--az-surface);
  padding: 2px 4px 2px 12px;
  border-radius: 4px;
  border: 1px solid var(--az-gray-400);
  max-width: 320px;
}
.search-bar:focus-within {
  border-color: var(--az-orange-500);
  box-shadow: 0 0 3px 2px rgba(228, 121, 17, 0.4);
}
.search-bar input {
  flex: 1; border: none; outline: none; padding: 6px 0;
  font-family: inherit; font-size: 0.88rem;
  background: transparent;
}

.action-btn-row {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}

/* BOOKING SUMMARY BOX (overrides earlier base) */
.booking-summary-box {
  background: #fff7e6;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #ffe8b3;
  border-left: 4px solid var(--az-orange-500);
}
.booking-summary-box .item-line {
  display: flex; justify-content: space-between;
  font-weight: 500;
  color: var(--az-navy-900);
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.booking-summary-box .total-line {
  display: flex; justify-content: space-between;
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px dashed var(--az-gray-300);
  font-size: 1.05rem;
  color: var(--az-price);
  font-weight: 700;
}

/* MY BOOKINGS (customer view) */
.my-booking-card {
  background: var(--az-surface);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--az-gray-300);
  margin-bottom: 10px;
  transition: box-shadow 0.15s;
}
.my-booking-card:hover { box-shadow: var(--shadow-sm); }
.my-booking-top {
  display: flex; justify-content: space-between; align-items: start;
  gap: 10px; margin-bottom: 10px;
}
.my-booking-code {
  font-family: var(--font-body);
  color: var(--az-gray-600);
  font-weight: 700;
  font-size: 0.85rem;
}
.my-booking-shop {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--az-link);
  font-weight: 700;
  margin-top: 2px;
}
.my-booking-shop:hover { color: var(--az-link-hover); text-decoration: underline; }

/* RIDER TRIPS */
.trip-card {
  background: var(--az-surface);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--az-gray-300);
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.trip-route { display: flex; flex-direction: column; gap: 4px; }
.trip-route .point {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.88rem;
  color: var(--az-navy-900);
}
.trip-route .point::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.trip-route .point.drop::before { background: var(--danger); }
.trip-meta {
  margin-top: 4px;
  font-size: 0.78rem; color: var(--az-gray-600);
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* LOADING SKELETONS */
.skeleton {
  background: linear-gradient(90deg,
    var(--az-gray-200) 0%,
    var(--az-gray-100) 50%,
    var(--az-gray-200) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-result {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--az-surface);
  border-radius: 8px;
  border: 1px solid var(--az-gray-300);
}
.skeleton-result .skeleton.img { aspect-ratio: 1; }
.skeleton-result .skeleton.line { height: 12px; margin-bottom: 6px; }

/* AVAILABILITY (rider online/offline) — Amazon-tone version */
.availability-card {
  background: var(--az-navy-800);
  color: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.availability-card.online {
  background: linear-gradient(135deg, #006400, #228B22);
}
.avail-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
}
.avail-text small { opacity: 0.85; font-size: 0.85rem; }
.switch-lg {
  position: relative;
  width: 56px; height: 30px;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.switch-lg::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px;
  background: white; border-radius: 50%;
  transition: transform 0.2s;
}
.switch-lg.on { background: var(--az-orange-500); }
.switch-lg.on::after { transform: translateX(26px); background: var(--az-navy-900); }

/* TOAST BODY TEXT (in case JS uses .toast-msg / .toast-icon) */
.toast-msg { flex: 1; }

/* Data tables (admin) — Amazon flat style */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--az-surface);
  border: 1px solid var(--az-gray-300);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.85rem;
}
.data-table thead {
  background: var(--az-gray-100);
}
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--az-navy-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--az-gray-300);
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--az-gray-200);
  color: var(--az-navy-900);
}
.data-table tr:hover td { background: var(--az-gray-100); }
.data-table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 4px; }

/* ============================================================
   ADMIN PAGE — login + dashboard look
   ============================================================ */
.admin-body { background: var(--az-bg); }
.admin-login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, var(--az-navy-800), var(--az-navy-700));
}
.admin-login-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid var(--az-gray-300);
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}

