/* ==========================================
   Local Service Finder - Ahmedabad
   Premium Dark Theme with Glassmorphism
   ========================================== */

/* Self-hosted webfonts. These were previously pulled from fonts.googleapis.com
   with an @import, which meant every page load reached two third-party origins
   and the Content-Security-Policy had to allow both. The files now sit in
   frontend/fonts/ and are served same-origin, so the CSP needs no external
   font or style sources at all. Variable fonts: one file per subset covers
   the whole weight range the design uses.
   Regenerate with: see frontend/fonts/README.md */

/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Outfit — latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Outfit — latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #e8eaf6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);
  --green: #10b981;
  --green-dark: #059669;
  --whatsapp: #25d366;
  --phone-blue: #3b82f6;
  --danger: #ef4444;
  --electrician-color: #f59e0b;
  --plumber-color: #3b82f6;
  --tutor-color: #8b5cf6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background gradient orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  animation: floatOrb 20s ease-in-out infinite;
}

body::before {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -200px;
  left: -200px;
}

body::after {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  bottom: -200px;
  right: -200px;
  animation-delay: -10s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(50px, 30px) scale(1.1);
  }

  66% {
    transform: translate(-30px, -20px) scale(0.95);
  }
}

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

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

input,
select,
textarea {
  font-family: inherit;
}

/* --- Navbar & Header --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 1.5rem;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-brand .icon {
  font-size: 1.6rem;
  -webkit-text-fill-color: initial;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-decoration: none;
}

.nav-btn-login:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  background: var(--accent-gradient);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: var(--transition);
}

.nav-btn-signup:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
  transform: translateY(-1px);
}

/* Token Badge Pill on Right Side */
.nav-token-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold, #f59e0b);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.nav-token-badge:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--gold, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

/* Profile Avatar Button */
.profile-dropdown-container {
  position: relative;
}

.profile-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 3px 10px 3px 3px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
}

.profile-avatar-btn:hover,
.profile-avatar-btn.active {
  border-color: var(--accent-primary, #667eea);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
}

.profile-avatar-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-avatar-chevron {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.profile-avatar-btn.active .profile-avatar-chevron {
  transform: rotate(180deg);
}

/* Modern Profile Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: #111128;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(102, 126, 234, 0.1);
  display: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
}

.profile-dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dropdown-user-info {
  padding: 10px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.dropdown-user-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary, #667eea);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.dropdown-item .item-icon {
  font-size: 1.1rem;
  width: 20px;
  display: inline-block;
  text-align: center;
  transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  outline: none;
  padding-left: 20px;
}

.dropdown-item:hover .item-icon {
  transform: scale(1.15);
}

.dropdown-item.logout-item {
  color: #f87171;
}

.dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* Mobile Navigation Toggle Button */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  padding: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .nav-center {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #0d0d21;
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 1rem;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-center.mobile-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .profile-avatar-name {
    display: none;
  }

  .profile-dropdown-menu {
    right: -10px;
    width: 220px;
  }
}


/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

/* --- Search Section --- */
.search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* Input (with the locate icon inside it) on the left, Search button outside
   on the right. They stay side by side at every width - the button only
   loses its label padding on the narrowest phones. */
.search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 16px 4px 16px 20px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* The current-location control, inside the input at the far right. Sized off
   the icon rather than the input so it stays centred at any input height. */
.locate-icon-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 7px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.locate-icon-btn:hover:not(:disabled),
.locate-icon-btn:focus-visible {
  color: var(--accent-primary);
  background: rgba(102, 126, 234, 0.12);
}

.locate-icon-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.locate-icon-btn:active:not(:disabled) {
  transform: scale(0.92);
}

/* Detecting: the same icon, spinning, so the control never changes size. */
.locate-icon-btn:disabled {
  cursor: progress;
  color: var(--accent-primary);
}

.locate-icon-btn[aria-busy="true"] .locate-icon {
  animation: spin 1s linear infinite;
}

.locate-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.search-row .search-btn {
  flex: 0 0 auto;
  padding: 16px 28px;
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}

.search-row .search-btn:hover {
  opacity: 0.9;
}

.search-row .search-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Only ever holds a failed detection - a successful one puts the area name in
   the search input instead, so there is nothing to show here. */
.locate-status {
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}

select option {
  background: #111128 !important;
  color: #ffffff !important;
}

/* --- Category Tabs --- */
.categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 2rem 2rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.cat-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.cat-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.cat-btn .cat-icon {
  font-size: 1.1rem;
}

/* --- Favorites Toggle --- */
.favorites-toggle {
  text-align: center;
  margin-bottom: 1.5rem;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.fav-btn:hover {
  background: var(--bg-card-hover);
  color: var(--gold);
}

.fav-btn.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border-color: var(--gold);
}

/* --- Stats Bar --- */
.stats-bar {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.results-count span {
  color: var(--text-primary);
  font-weight: 600;
}

/* Shown when the chosen area was thin and results were widened to adjacent
   localities. .stats-bar is a row, so this wraps onto its own line. */
.area-notice {
  flex-basis: 100%;
  order: 2;
  margin: 0.6rem 0 0;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: rgba(102, 126, 234, 0.1);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.area-notice strong {
  color: var(--text-primary);
}

/* --- Service Cards Grid --- */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* --- Service Card --- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}


.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.card-avatar.electrician {
  background: rgba(245, 158, 11, 0.15);
}

.card-avatar.plumber {
  background: rgba(59, 130, 246, 0.15);
}

.card-avatar.tutor {
  background: rgba(139, 92, 246, 0.15);
}

.card-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.card-category {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-category.electrician {
  color: var(--electrician-color);
}

.card-category.plumber {
  color: var(--plumber-color);
}

.card-category.tutor {
  color: var(--tutor-color);
}

/* Card details */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.detail-row .detail-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Rating */
.rating-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.star.filled {
  color: var(--gold);
}

.star:hover {
  transform: scale(1.2);
}

.rating-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.rating-text span {
  color: var(--gold);
  font-weight: 600;
}

/* Card actions */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.action-btn,
.card-actions .action-btn {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 80px;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.btn-call {
  background: rgba(59, 130, 246, 0.12);
  color: var(--phone-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-call:hover {
  background: rgba(59, 130, 246, 0.2);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
}

.btn-favorite,
.card-actions .btn-favorite {
  width: 38px;
  min-width: 38px;
  flex: 0 0 38px;
  background: var(--bg-glass);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  font-size: 1rem;
  padding: 8px 0;
}

.btn-favorite:hover {
  color: var(--danger);
}

.btn-favorite.favorited {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* --- Loading Spinner --- */
.loading {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeIn 0.3s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeIn 0.3s ease;
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--accent-primary);
}

.footer a:hover {
  text-decoration: underline;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.toast.info {
  border-left: 3px solid var(--accent-primary);
}

/* =============================
   ADMIN PAGE STYLES
   ============================= */
.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Login Form */
.login-section {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.login-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.login-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

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

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Admin Dashboard */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
}

.btn-logout {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Service Form */
.service-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.service-form h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.btn-cancel {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-cancel:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Admin Table */
.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  background: var(--bg-glass);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-glass);
}

.admin-table tr:hover td {
  background: var(--bg-glass);
}


.table-actions {
  display: flex;
  gap: 6px;
}

.btn-edit,
.btn-delete {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-edit {
  background: rgba(102, 126, 234, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-edit:hover {
  background: rgba(102, 126, 234, 0.2);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================
   CATEGORY CARDS
   ============================= */
.category-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-gradient, var(--accent-gradient));
  opacity: 0.8;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.3);
}

.category-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.category-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.category-card-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.category-card:hover .category-card-arrow {
  color: var(--accent-primary);
  transform: translateX(4px);
}

/* Subcategory Cards */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding-bottom: 2rem;
}

.subcategory-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.subcategory-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateX(4px);
}

.subcat-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.12);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.subcat-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.subcat-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.subcategory-card:hover .subcat-arrow {
  color: var(--accent-primary);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-bar .form-input {
  flex: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 3rem 1.5rem 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 3rem;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 1rem 1.5rem;
  }

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

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar .form-input {
    max-width: 100% !important;
  }

  .categories {
    padding: 0 1rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }

  .stats-bar {
    padding: 0 1rem;
  }

  .search-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  /* Every pixel the button gives back is width the input gets. */
  .search-row .search-btn {
    padding: 16px 16px;
  }

  .search-box input {
    padding-left: 14px;
  }

  .card-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .action-btn,
  .card-actions .action-btn {
    flex: 1 1 calc(50% - 3px);
    font-size: 0.78rem;
    padding: 7px 6px;
    min-width: 70px;
  }

  .card-actions .btn-favorite {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    padding: 7px 0;
  }
}

/* =============================
   USER AUTH STYLES
   ============================= */
.auth-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.5s ease;
}

.auth-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.auth-form .form-group {
  margin-bottom: 1.2rem;
}

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

.auth-form .form-help {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.auth-link {
  color: var(--accent-primary);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.auth-link.font-bold {
  font-weight: 600;
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

/* --- Reset Token Generated UI --- */
.reset-token-card {
  display: none;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md, 14px);
  margin-bottom: 1.5rem;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  animation: fadeIn 0.3s ease;
}

.reset-token-header {
  color: #10b981;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.token-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0.85rem 0 1.1rem 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 2.8rem 0.85rem 0.85rem;
  box-sizing: border-box;
  text-align: left;
}

.token-display {
  font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.88rem;
  color: #38f9d7;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
  -webkit-user-select: all;
  user-select: all;
  width: 100%;
  max-width: 100%;
}

.copy-token-icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.copy-token-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.token-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.btn-copy-token {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: var(--radius-md, 12px);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}

.btn-copy-token:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-copy-token.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

.btn-reset-proceed {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.user-menu-btn:hover {
  background: var(--bg-card-hover);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

/* =============================
   MARKETPLACE DASHBOARD STYLES
   ============================= */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}

.dash-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-glass);
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-tab {
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.dash-tab:hover,
.dash-tab.active {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.dash-tab.active {
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: var(--accent-primary);
}

.dash-main {
  padding: 2rem;
  overflow-y: auto;
}

.dash-panel {
  display: none;
  animation: fadeInUp 0.4s ease;
}

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

.dash-subtitle {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.stat-card.highlight {
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: var(--shadow-glow);
}

.stat-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dash-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.dash-card-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dash-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.badge-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: capitalize;
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}

.badge-status.accepted {
  background: rgba(59, 130, 246, 0.15);
  color: var(--phone-blue);
}

.badge-status.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-status.completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.badge-status.approved {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.badge-status.available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.badge-status.busy {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}

.badge-status.offline {
  background: rgba(107, 114, 128, 0.2);
  color: var(--text-muted);
}

.price-tag {
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
}

.btn-book {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
}

.btn-book:hover {
  filter: brightness(1.1);
}

.role-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
}

.role-option:has(input:checked) {
  border-color: var(--accent-primary);
  background: rgba(102, 126, 234, 0.1);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.invite-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.invite-link {
  display: block;
  word-break: break-all;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-top: 8px;
}

.profile-page {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.profile-header-page {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.profile-avatar.large {
  width: 100px;
  height: 100px;
  font-size: 2.5rem;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-contact-btns {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.empty-msg {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.invite-details {
  background: var(--bg-glass);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }

  .dash-tab {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  .dash-main {
    padding: 1rem;
  }

  .profile-header-page {
    flex-direction: column;
    text-align: center;
  }
}


/* =============================
   PAYMENT PAGE STYLES
   ============================= */

.payment-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
  animation: fadeInUp 0.6s ease;
}

.payment-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.payment-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #fbbf24, var(--accent-primary));
}

.payment-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--gold-glow);
}

.payment-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.payment-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.payment-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.payment-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.payment-feature:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.12);
  border-radius: var(--radius-sm);
}

.payment-feature strong {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 2px;
}

.payment-feature p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Pricing Plans Selection Grid */
.plans-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.plan-card {
  position: relative;
  background: var(--bg-glass);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plan-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.plan-card.active {
  background: rgba(102, 126, 234, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.plan-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plan-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.plan-card.active .plan-radio {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
}

.plan-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}

.plan-card.active .plan-radio::after {
  opacity: 1;
  transform: scale(1);
}

.plan-info {
  display: flex;
  flex-direction: column;
}

.plan-header-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-tag.popular {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.plan-tag.best-value {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  color: #000;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.plan-billing-subtext {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.plan-price-wrap {
  text-align: right;
}

.plan-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-card.active .plan-price {
  color: var(--green);
}

.plan-cycle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.active-sub-card {
  background: var(--bg-glass);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.active-sub-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.active-sub-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Checkout Card */
.payment-checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: sticky;
  top: 88px;
}

.payment-checkout-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.order-summary-rows {
  margin-bottom: 1.5rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.order-row.total {
  border-bottom: none;
  padding-top: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.order-total {
  color: var(--green) !important;
  font-family: 'Outfit', sans-serif;
}

.payment-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.btn-pay {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-pay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: var(--transition);
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35);
}

.btn-pay:hover::after {
  opacity: 1;
}

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

.btn-pay-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.btn-pay:hover .btn-pay-arrow {
  transform: translateX(4px);
}

/* Payment states */
.payment-state {
  text-align: center;
  padding: 1.5rem 0;
}

.payment-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
}

.payment-error .state-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.payment-error h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--danger);
  margin-bottom: 8px;
}

.btn-retry {
  margin-top: 16px;
  padding: 10px 28px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-retry:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}


/* =============================
   PAYMENT RESULT PAGES
   ============================= */

.payment-result-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.result-card {
  max-width: 520px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.result-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-glow {
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
  animation: pulseGlow 2s ease-in-out infinite;
}

.cancel-glow {
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.15);
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
  }

  50% {
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.35);
  }
}

.result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cancel-icon {
  background: var(--danger);
}

.result-card h1,
.result-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.result-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.result-details {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-line:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.result-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.result-actions {
  margin-top: 1.5rem;
}

/* Cancel reasons */
.cancel-reasons {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.cancel-reasons h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.cancel-reasons ul {
  list-style: none;
  padding: 0;
}

.cancel-reasons li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cancel-reasons li::before {
  content: '•';
  color: var(--danger);
  font-weight: bold;
}

/* Responsive payment */
@media (max-width: 768px) {
  .payment-page {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 3rem;
    gap: 1.5rem;
  }

  .payment-checkout-card {
    position: static;
  }

  .payment-title {
    font-size: 1.5rem;
  }

  .result-card {
    padding: 2rem 1.5rem;
  }
}

/* Password Toggle Field Styles */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper .form-input {
  width: 100%;
  padding-right: 42px !important;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary, #9ca3af);
  font-size: 1.1rem;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition, all 0.2s ease);
  -webkit-user-select: none;
  z-index: 5;
  border-radius: 4px;
}

.toggle-password-btn:hover,
.toggle-password-btn:focus {
  color: var(--text-primary, #ffffff);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

/* =============================
   SERVICE DETAILS PAGE STYLES
   ============================= */

.service-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  box-sizing: border-box;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb span.sep {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.breadcrumb span.current {
  color: var(--text-primary);
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.detail-card-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.detail-image-wrap {
  width: 100%;
  max-width: 380px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.detail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.detail-image-wrap img:hover {
  transform: scale(1.03);
}

.detail-header-info {
  flex: 1;
  min-width: 280px;
}

.detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-stat-item {
  display: flex;
  flex-direction: column;
}

.detail-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-stat-val.price {
  color: var(--green);
}

.detail-stat-val.rating {
  color: var(--gold);
}

.section-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-card-title .icon {
  margin-right: 6px;
}

.detail-description-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

.sidebar-sticky-wrap {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .detail-card {
    padding: 1.5rem;
  }

  .detail-image-wrap {
    max-width: 100%;
    height: 220px;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .sidebar-sticky-wrap {
    position: static;
  }
}

/* --- Footer link hub -----------------------------------------------------
   Category and area landing pages are generated from live data. Without a
   real link to each one they are reachable only from the sitemap, which is a
   hint rather than a path, so they are linked here for crawlers and for
   anyone browsing by neighbourhood. */
.seo-hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0.5rem;
  text-align: left;
}

.seo-hub h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem 2rem;
}

.seo-hub-col h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.seo-hub-col h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.seo-hub-col h3 a:hover {
  color: var(--accent-primary);
}

.seo-hub-col p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.seo-hub-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.seo-hub-col p a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}
