/* ===================================================================
   URGENTNEED SERVICES - DESIGN SYSTEM & COMPLETE STYLESHEET
   Crafted with high visual fidelity matching the original portal
   =================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary: #0b5ed7;
  --color-primary-dark: #0048ba;
  --color-primary-light: #e8f1fc;
  --color-secondary-blue: #0288d1;
  --color-accent: #ff9800;
  
  /* Neutral Palette */
  --color-bg-page: #f8fafc;
  --color-card-bg: #ffffff;
  --color-card-border: #c8daf2;
  --color-card-border-hover: #0b5ed7;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border-subtle: #e2e8f0;
  
  /* Footer & Dark Sections */
  --color-footer-bg: #15181c;
  --color-footer-sub: #0f1114;
  --color-footer-text: #9ca3af;
  --color-footer-heading: #ffffff;
  
  /* Trust Banner */
  --color-trust-blue: #0046ad;
  --color-trust-gradient: linear-gradient(135deg, #023e9c 0%, #004dc2 50%, #003688 100%);
  
  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'Outfit', 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px rgba(11, 94, 215, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(11, 94, 215, 0.16);
  --shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.18);
  
  /* Dimensions & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --header-height: 68px;
  --bottom-nav-height: 60px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= Global Reset & Typography ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, select {
  font-family: inherit;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ================= Top Announcement ================= */
.top-announcement {
  background: linear-gradient(90deg, #0b5ed7 0%, #0048ba 100%);
  color: #ffffff;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.emergency-badge {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ================= Main Header ================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b5ed7 0%, #003688 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(11, 94, 215, 0.28);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.logo-circle {
  color: #ffffff;
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-title {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #0b5ed7;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 0.76rem;
  color: #3b526d;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Middle Location & Search Wrapper */
.header-search-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 680px;
  gap: 10px;
}

/* Location Picker */
.location-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  user-select: none;
}

.location-picker:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.chevron-icon {
  color: #64748b;
  transition: transform var(--transition-fast);
}

.location-picker:hover .chevron-icon {
  transform: translateY(1px);
  color: var(--color-primary);
}

/* Search Input Group */
.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  overflow: visible;
  transition: all var(--transition-fast);
}

.search-input-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.14);
}

.search-input-group input {
  flex: 1;
  border: none;
  padding: 9px 14px;
  font-size: 0.88rem;
  color: #1e293b;
  background: transparent;
}

.search-input-group input::placeholder {
  color: #94a3b8;
  font-size: 0.84rem;
}

.mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #475569;
  transition: color var(--transition-fast);
}

.mic-btn:hover {
  color: var(--color-primary);
  transform: scale(1.08);
}

.search-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0 16px;
  height: 40px;
  border-radius: 0 4px 4px 0;
  transition: background var(--transition-fast);
}

.search-submit-btn:hover {
  background: var(--color-primary-dark);
}

/* Live Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--transition-fast);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.suggestion-icon {
  font-size: 1.1rem;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.action-btn:hover {
  color: var(--color-primary);
  background: #f1f5f9;
  transform: translateY(-1px);
}

.action-btn .badge {
  position: absolute;
  top: -3px;
  right: -5px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.cart-btn .cart-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  background: #000000;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ping-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.hamburger-btn {
  color: #1e293b;
}

/* ================= Category Directory Section ================= */
.services-directory {
  padding: 24px 0 32px 0;
}

.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.category-filter-bar::-webkit-scrollbar {
  height: 4px;
}

.category-filter-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-pill.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(11, 94, 215, 0.25);
}

/* Categories 7-Column Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.service-card {
  background: var(--color-card-bg);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 14px 8px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 84px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  position: relative;
  user-select: none;
}

.service-card:hover {
  border-color: var(--color-card-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.service-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Card Icon Box */
.card-icon-wrap {
  width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: transform var(--transition-fast);
}

.service-card:hover .card-icon-wrap {
  transform: scale(1.08);
}

.service-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* User's Uploaded PNG Images (Jobs, Insurance, Home Delivery, Health) */
.service-img {
  max-width: 42px;
  max-height: 38px;
  object-fit: contain;
  display: block;
}

/* Featured card badge indicator */
.featured-service-card {
  position: relative;
}

.featured-service-card::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 5px;
  width: 5px;
  height: 5px;
  background: #0b5ed7;
  border-radius: 50%;
  opacity: 0.6;
}

.service-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: -0.1px;
}

/* Row 4 Wrapper (Centered 6 Cards) */
.row-four-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.row-four-wrapper .service-card {
  width: calc((100% - 84px) / 7);
  flex-shrink: 0;
}

/* ================= Trust & Feature Banner ================= */
.trust-banner {
  background: var(--color-trust-blue);
  background-image: var(--color-trust-gradient);
  position: relative;
  color: #ffffff;
  padding: 30px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Subtle World Map Overlay Texture */
.trust-banner-map-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.55;
  pointer-events: none;
}

.trust-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: transform var(--transition-fast);
}

.trust-item:hover {
  transform: translateY(-2px);
}

.trust-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.trust-title {
  font-family: var(--font-family-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* ================= CTA Action Strip ================= */
.cta-strip {
  background: #004dc2;
  background: linear-gradient(90deg, #0248b6 0%, #0059e3 50%, #0248b6 100%);
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cta-tagline {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.cta-button-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000000;
  color: #ffffff;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pill-btn:active {
  transform: translateY(0);
}

/* ================= Dark Textured Footer ================= */
.main-footer {
  background-color: var(--color-footer-bg);
  background-image: 
    radial-gradient(#252a30 1px, transparent 1px),
    linear-gradient(to bottom, #15181c, #0d0f12);
  background-size: 20px 20px, 100% 100%;
  color: var(--color-footer-text);
  padding: 44px 0 0 0;
  border-top: 1px solid #232830;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 36px;
}

.footer-col-title {
  color: var(--color-footer-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #cbd5e1;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #60a5fa;
  transform: translateX(4px);
}

.link-icon {
  font-size: 0.95rem;
}

/* Social Buttons */
.social-icons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.social-icon-btn.fb:hover { background: #1877f2; color: #fff; }
.social-icon-btn.ig:hover { background: #e4405f; color: #fff; }
.social-icon-btn.tw:hover { background: #000000; color: #fff; }
.social-icon-btn.in:hover { background: #0a66c2; color: #fff; }
.social-icon-btn.wa:hover { background: #25d366; color: #fff; }
.social-icon-btn.tg:hover { background: #229ed9; color: #fff; }

/* Sub-Footer */
.sub-footer {
  background: var(--color-footer-sub);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.sub-footer-content {
  text-align: center;
}

.copyright-text {
  font-size: 0.78rem;
  color: #94a3b8;
}

.copyright-text strong {
  color: #e2e8f0;
}

.legal-link {
  color: #cbd5e1;
  margin: 0 4px;
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* ================= Bottom App Navigation ================= */
.bottom-app-nav {
  position: sticky;
  bottom: 0;
  z-index: 99;
  background: #ffffff;
  border-top: 1.5px solid #cbd5e1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--bottom-nav-height);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  flex: 1;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--color-primary);
}

.b-nav-icon {
  stroke-width: 2.2;
}

/* ================= MODALS & OVERLAYS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: scale(0.94);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-card.modal-sm {
  max-width: 420px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.6rem;
  color: #94a3b8;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #1e293b;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.modal-icon-badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.modal-title {
  font-family: var(--font-family-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: #64748b;
}

.verified-provider-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.badge-check {
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.subservices-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.subservices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  max-height: 220px;
  overflow-y: auto;
}

.subservice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  transition: all var(--transition-fast);
}

.subservice-row:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.subservice-info strong {
  display: block;
  font-size: 0.88rem;
  color: #1e293b;
}

.subservice-info span {
  font-size: 0.76rem;
  color: #64748b;
}

.subservice-price {
  font-weight: 700;
  color: #0b5ed7;
  font-size: 0.95rem;
}

.add-subservice-btn {
  background: #0b5ed7;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 10px;
  transition: background var(--transition-fast);
}

.add-subservice-btn:hover {
  background: #0048ba;
}

.modal-actions-row {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  flex: 1;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-block {
  width: 100%;
}

.btn-outline-secondary {
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: #64748b;
  font-weight: 600;
}

/* Location modal city grid */
.gps-detect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 16px 0;
  cursor: pointer;
  border: 1px solid #bfdbfe;
  transition: background var(--transition-fast);
}

.gps-detect-btn:hover {
  background: #dbeafe;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.city-pill {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  transition: all var(--transition-fast);
}

.city-pill:hover,
.city-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Voice search animation */
.text-center {
  text-align: center;
}

.voice-pulse-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-circle {
  position: absolute;
  inset: 0;
  background: #0b5ed7;
  border-radius: 50%;
  animation: voiceWave 1.8s infinite ease-out;
}

.voice-mic-icon {
  position: relative;
  z-index: 2;
}

@keyframes voiceWave {
  0% { transform: scale(0.8); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.speech-result-preview {
  font-size: 0.92rem;
  color: #0b5ed7;
  font-weight: 600;
  min-height: 24px;
  margin-bottom: 20px;
}

/* Helpline items */
.phone-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  transition: all var(--transition-fast);
}

.phone-item:hover {
  background: var(--color-primary-light);
  border-color: #93c5fd;
}

.phone-icon-box {
  font-size: 1.4rem;
}

.phone-item strong {
  display: block;
  font-size: 0.92rem;
  color: #1e293b;
}

.phone-item span {
  font-size: 0.78rem;
  color: #64748b;
}

.call-badge {
  margin-left: auto;
  background: #0b5ed7;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.call-badge.red {
  background: #ef4444;
}

/* ================= LIVE CHAT WIDGET ================= */
.chat-widget {
  position: fixed;
  bottom: 74px;
  right: 24px;
  width: 360px;
  height: 480px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
}

.chat-widget.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: linear-gradient(135deg, #0b5ed7 0%, #0048ba 100%);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b5ed7;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.chat-agent-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
}

.online-indicator {
  font-size: 0.7rem;
  opacity: 0.9;
  display: block;
}

.chat-close-btn {
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.chat-close-btn:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}

.chat-msg.bot {
  background: #ffffff;
  color: #1e293b;
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background: #0b5ed7;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-time {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 4px;
  text-align: right;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.quick-chip {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #0b5ed7;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.quick-chip:hover {
  background: #0b5ed7;
  color: #ffffff;
}

.chat-input-bar {
  display: flex;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.84rem;
}

.chat-input-bar button {
  background: #0b5ed7;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.chat-input-bar button:hover {
  background: #0048ba;
}

/* ================= CART SLIDE-OVER DRAWER ================= */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cart-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-card {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.cart-drawer-backdrop.open .cart-drawer-card {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.cart-drawer-close {
  font-size: 1.5rem;
  color: #94a3b8;
}

.cart-drawer-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.empty-cart-state {
  text-align: center;
  padding: 40px 10px;
  color: #64748b;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: #f8fafc;
}

.cart-item-info strong {
  display: block;
  font-size: 0.88rem;
  color: #1e293b;
}

.cart-item-info span {
  font-size: 0.78rem;
  color: #0b5ed7;
  font-weight: 700;
}

.remove-cart-item-btn {
  color: #ef4444;
  font-size: 1.1rem;
  padding: 4px;
}

.cart-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.cart-total-row strong {
  font-size: 1.25rem;
  color: #0b5ed7;
}

/* ================= TOAST NOTIFICATIONS ================= */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1100;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: toastFade 3s forwards ease-in-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(12px); }
  10% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-12px); }
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 1120px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .row-four-wrapper {
    grid-column: span 5;
    flex-wrap: wrap;
  }
  .row-four-wrapper .service-card {
    width: calc((100% - 40px) / 5);
  }
}

@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .row-four-wrapper {
    grid-column: span 4;
  }
  .row-four-wrapper .service-card {
    width: calc((100% - 30px) / 4);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  .header-search-wrapper {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .row-four-wrapper {
    grid-column: span 3;
  }
  .row-four-wrapper .service-card {
    width: calc((100% - 20px) / 3);
  }
  .service-card {
    padding: 10px 6px;
    min-height: 78px;
  }
  .service-title {
    font-size: 0.74rem;
  }
  .trust-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .trust-item:last-child {
    grid-column: span 2;
  }
  .chat-widget {
    right: 12px;
    bottom: 70px;
    width: calc(100vw - 24px);
    height: 440px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .row-four-wrapper {
    grid-column: span 3;
  }
  .row-four-wrapper .service-card {
    width: calc((100% - 16px) / 3);
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-icons-row {
    justify-content: center;
  }
  .footer-links a {
    justify-content: center;
  }
  .location-picker {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ================= AUTHENTICATION & LOGIN MODAL STYLES ================= */
.user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  transition: all var(--transition-fast);
}

.user-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.user-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
}

.auth-tabs-nav {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 4px;
  transition: all var(--transition-fast);
  text-align: center;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-form .form-group {
  margin-bottom: 14px;
  text-align: left;
}

.auth-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.phone-input-wrap:focus-within {
  border-color: var(--color-primary);
}

.phone-prefix {
  padding: 10px 12px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  border-right: 1px solid #cbd5e1;
}

.phone-input-wrap input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.admin-input-field, .admin-select-field {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #1e293b;
  background: #ffffff;
  transition: border-color var(--transition-fast);
}

.admin-input-field:focus, .admin-select-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12);
}

.demo-quick-btn {
  font-size: 0.8rem;
  padding: 8px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  color: #334155;
}

.demo-quick-btn:hover {
  background: #f1f5f9;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ================= BACKEND ADMIN DASHBOARD STYLES ================= */
.admin-backdrop {
  z-index: 1200;
}

.modal-admin-card {
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.admin-modal-header {
  background: #0f172a;
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
}

.admin-badge-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b5ed7 0%, #003688 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.admin-dash-title {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-family-display);
  letter-spacing: 0.2px;
}

.admin-status-indicator {
  font-size: 0.74rem;
  color: #22c55e;
  font-weight: 600;
}

.admin-header-actions {
  display: flex;
  align-items: center;
}

.btn-outline-danger {
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-outline-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Admin Tabs Nav */
.admin-tabs-nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 16px;
  overflow-x: auto;
}

.admin-nav-tab {
  padding: 12px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.admin-nav-tab:hover {
  color: var(--color-primary);
}

.admin-nav-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: #ffffff;
}

/* Tab Content Area */
.admin-tab-content-area {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 680px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

.admin-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

/* Services Table */
.category-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.category-counter-text {
  font-size: 0.86rem;
  color: #475569;
}

.admin-services-table-wrap {
  max-height: 440px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider-round {
  background-color: #22c55e;
}

.toggle-switch input:checked + .slider-round:before {
  transform: translateX(18px);
}

/* Status Badges */
.badge-status {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.badge-status.pending { background: #fef3c7; color: #b45309; }
.badge-status.confirmed { background: #dcfce7; color: #15803d; }
.badge-status.completed { background: #e0f2fe; color: #0369a1; }

.admin-json-textarea {
  width: 100%;
  height: 340px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  padding: 14px;
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  resize: vertical;
}

/* Direct Header Admin Button */
.header-admin-direct-btn {
  background: #0f172a;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #334155;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.header-admin-direct-btn:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

/* Floating Quick Admin Settings Launcher (Bottom-Left) */
.floating-admin-launcher {
  position: fixed;
  bottom: 74px;
  left: 20px;
  z-index: 998;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.floating-admin-launcher:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.45);
}

/* Modal Open Absolute Guarantee */
.modal-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.modal-backdrop.open .modal-card {
  transform: scale(1) !important;
}


