/* ================================================================
   AdvocateBook.in — Master Design System
   Premium Legal Services Platform
   ================================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

/* ─── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
  /* Color System — Single Premium Light Theme */
  --primary:         #0F172A; /* Navy Blue */
  --primary-light:   #1E293B;
  --primary-dark:    #0A1628;
  --secondary:       #2563EB; /* Royal Blue */
  --secondary-light: #3B82F6;
  --secondary-dark:  #1D4ED8;
  --accent:          #C9A84C; /* Gold Accent */
  --accent-light:    #F59E0B;
  --accent-dark:     #B45309;
  --accent-glow:     rgba(201,168,76,0.18);

  /* Surface & Background Colors */
  --bg-main:         #F8FAFC;
  --surface-card:    #FFFFFF;
  --surface-1:       #F1F5F9;
  --surface-2:       #E2E8F0;
  --surface-3:       #CBD5E1;
  --surface-hover:   #F8FAFC;
  --surface-border:  #E2E8F0;
  --glass:           #FFFFFF;
  --glass-border:    rgba(37,99,235,0.10);

  /* Text Colors */
  --text-primary:    #0F172A;
  --text-secondary:  #475569;
  --text-muted:      #64748B;
  --text-accent:     #C9A84C;

  /* Status Colors */
  --success:         #10B981;
  --success-light:   #D1FAE5;
  --warning:         #F59E0B;
  --warning-light:   #FEF3C7;
  --danger:          #EF4444;
  --danger-light:    #FEE2E2;
  --info:            #2563EB;
  --info-light:      #DBEAFE;

  /* Gradients */
  --grad-primary:    linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --grad-royal:      linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --grad-accent:     linear-gradient(135deg, #C9A84C, #F59E0B, #C9A84C);
  --grad-card:       linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --grad-hero:       linear-gradient(135deg, #F8FAFC 0%, #F0F7FF 50%, #EFF6FF 100%);
  --grad-hero-dark:  linear-gradient(135deg, #0A1628 0%, #1E3A5F 50%, #0F172A 100%);
  --grad-section:    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --grad-gold:       linear-gradient(135deg, #B8860B, #C9A84C, #F59E0B, #C9A84C);

  /* Typography */
  --font-primary:    'Inter', sans-serif;
  --font-display:    'Poppins', sans-serif;

  /* Font Sizes */
  --fs-xs:    0.75rem;
  --fs-sm:    0.85rem;
  --fs-base:  0.95rem;
  --fs-md:    1.0rem;
  --fs-lg:    1.125rem;
  --fs-xl:    1.25rem;
  --fs-2xl:   1.5rem;
  --fs-3xl:   1.875rem;
  --fs-4xl:   2.25rem;
  --fs-5xl:   3rem;
  --fs-6xl:   3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --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-xl:   0 20px 60px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(201,168,76,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   all 0.4s cubic-bezier(0.4,0,0.2,1);
  --transition-spring: all 0.35s cubic-bezier(0.34,1.56,0.64,1);

  /* Z-indexes */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   2000;
  --z-modal:    5000;
  --z-toast:    8000;
  --z-max:      9999;

  /* Layout */
  --container-max: 1320px;
  --sidebar-width: 270px;
  --header-height: 72px;
}

/* Light Mode Variables */
[data-theme="light"] {
  --primary:         #F8FAFC;
  --primary-light:   #EFF6FF;
  --primary-dark:    #E2E8F0;
  --secondary:       #F1F5F9;
  --surface-1:       rgba(0,0,0,0.03);
  --surface-2:       rgba(0,0,0,0.06);
  --surface-3:       rgba(0,0,0,0.09);
  --surface-hover:   rgba(0,0,0,0.05);
  --surface-border:  rgba(0,0,0,0.08);
  --glass:           rgba(255,255,255,0.8);
  --glass-border:    rgba(0,0,0,0.10);
  --text-primary:    #0F172A;
  --text-secondary:  #475569;
  --text-muted:      #94A3B8;
  --grad-hero:       linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 40%, #EDE9FE 70%, #F0F9FF 100%);
  --grad-primary:    linear-gradient(135deg, #F8FAFC, #EFF6FF);
  --grad-section:    linear-gradient(180deg, #F8FAFC, #EFF6FF);
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:       0 8px 40px rgba(0,0,0,0.12);
  --shadow-card:     0 4px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: #F8FAFC;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--primary-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
.display-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; }
.display-2 { font-size: clamp(2rem, 5vw, 3.5rem);   font-weight: 800; }
.display-3 { font-size: clamp(1.75rem, 4vw, 3rem);  font-weight: 700; }
.lead      { font-size: var(--fs-lg); color: var(--text-secondary); line-height: 1.7; }
.text-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold    { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ─── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-4); }
.section   { padding: var(--space-20) 0; }
.section-sm{ padding: var(--space-12) 0; }

/* ─── Glassmorphism Card ────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}
.glass-card:hover {
  background: var(--surface-2);
  border-color: rgba(201,168,76,0.25);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201,168,76,0.15);
  transform: translateY(-3px);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
  transform: translateY(-2px);
  color: #000;
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--surface-border);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: var(--surface-1);
  color: var(--text-primary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm  { padding: 0.45rem 1rem;  font-size: var(--fs-sm);  }
.btn-lg  { padding: 0.85rem 2rem;  font-size: var(--fs-lg);  }
.btn-xl  { padding: 1.1rem 2.5rem; font-size: var(--fs-xl);  }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--radius-md); }
.btn-icon-sm { width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-info    { background: var(--info);    color: #fff; }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-gold    { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(201,168,76,0.3); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger  { background: var(--danger-light);  color: var(--danger);  }
.badge-info    { background: var(--info-light);    color: var(--info);    }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-glass   { background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--surface-border); }

/* Verified Badge */
.verified-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.1));
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* Online Status Dot */
.online-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.3);
  animation: pulse-green 2s infinite;
  display: inline-block;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 2px rgba(16,185,129,0.3); }
  50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0.1); }
}

/* ─── Form Controls ─────────────────────────────────────────── */
.form-control, .form-select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface-1);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-family: var(--font-primary);
  transition: var(--transition-fast);
  outline: none;
  appearance: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface-2);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); letter-spacing: 0.3px; }
.form-text  { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }
.form-group { margin-bottom: var(--space-4); }

/* ─── Navigation Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  transition: all 0.3s ease;
}
.site-header .container {
  max-width: 1540px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
  border-bottom-color: rgba(37, 99, 235, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 8px;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  height: 100%;
}

.site-logo-img {
  height: 38px;
  max-height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-logo:hover .site-logo-img {
  transform: scale(1.02);
}

@media (max-width: 576px) {
  .site-logo-img {
    height: 34px;
    max-height: 34px;
  }
}

/* ═════════════════════════════════════════════════════════════════
   COMPACT PREMIUM ACTIVE CAPSULE HEADER NAVIGATION
═════════════════════════════════════════════════════════════════ */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 4px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.desktop-nav .nav-link {
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-weight: 500;
  font-size: 13px;
  color: #334155;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
  flex-shrink: 0;
}

.desktop-nav .nav-link .nav-icon {
  font-size: 14px;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

/* Inactive Hover */
.desktop-nav .nav-link:not(.active):hover {
  color: #1D4ED8;
  background: #EFF6FF;
  border-color: rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.desktop-nav .nav-link:not(.active):hover .nav-icon {
  transform: scale(1.1);
  color: #1D4ED8;
}

/* Selected / Active Capsule */
.desktop-nav .nav-link.active {
  background: linear-gradient(135deg, #0F3D91 0%, #2563EB 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 7px 11px;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
  cursor: default;
}

.desktop-nav .nav-link.active .nav-icon {
  color: #FFFFFF !important;
  transform: none;
}

/* Active menu MUST NOT move on hover */
.desktop-nav .nav-link.active:hover {
  transform: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

/* Intermediate Desktop Breakpoints */
@media (max-width: 1400px) and (min-width: 1200px) {
  .desktop-nav {
    gap: 3px;
  }
  .desktop-nav .nav-link {
    padding: 6px 8px;
    font-size: 12.5px;
    gap: 3px;
  }
  .desktop-nav .nav-link.active {
    padding: 6px 10px;
  }
  .desktop-nav .nav-link .nav-icon {
    font-size: 13.5px;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .desktop-nav {
    gap: 2px;
  }
  .desktop-nav .nav-link {
    padding: 5px 6px;
    font-size: 11.5px;
    gap: 2px;
  }
  .desktop-nav .nav-link.active {
    padding: 5px 8px;
  }
  .desktop-nav .nav-link .nav-icon {
    font-size: 12.5px;
  }
  .header-actions {
    gap: 4px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Guest Account Button & Dropdown Popover */
.guest-account-btn {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  padding: 4px 10px 4px 4px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.guest-account-btn:hover,
.guest-account-btn[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}
.guest-account-btn .guest-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #2563EB 100%);
  color: #C9A84C;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.guest-account-btn .guest-avatar .material-icons-round {
  font-size: 20px;
}
.guest-account-btn .account-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0F172A;
  letter-spacing: 0.2px;
}
.guest-account-btn .expand-arrow {
  font-size: 18px;
  color: #64748B;
  transition: transform 0.25s ease;
}
.guest-account-btn[aria-expanded="true"] .expand-arrow {
  transform: rotate(180deg);
  color: #2563EB;
}

.user-menu-wrap,
.guest-account-wrap {
  position: relative;
  z-index: 2100;
}

/* Guest Dropdown Menu Styling */
.guest-dropdown-menu {
  width: 230px;
  background: #FFFFFF;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 0;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2200;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex !important;
  visibility: hidden;
  position: absolute;
  overflow: hidden;
}
.guest-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0F172A 0%, #2563EB 50%, #C9A84C 100%);
}
.guest-dropdown-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.guest-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.1rem 0.85rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid #F1F5F9;
}
.guest-avatar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
  color: #C9A84C;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guest-avatar-icon .material-icons-round {
  font-size: 22px;
}
.guest-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #0F172A;
  line-height: 1.2;
}
.guest-subtitle {
  font-size: 0.76rem;
  color: #64748B;
  margin-top: 2px;
}
.guest-dropdown-body {
  padding: 6px;
}
.guest-dropdown-body .dropdown-item-custom {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.guest-dropdown-body .dropdown-item-custom .material-icons-round {
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.guest-dropdown-body .guest-item-login .material-icons-round {
  color: #2563EB;
}
.guest-dropdown-body .guest-item-register .material-icons-round {
  color: #D4AF37;
}
.guest-dropdown-body .dropdown-item-custom:hover {
  background: #F0F6FF;
  color: #1E40AF;
  transform: translateX(3px);
}
.guest-dropdown-body .guest-item-register:hover {
  background: #FFFBEB;
  color: #92400E;
}
.guest-dropdown-body .dropdown-item-custom:hover .material-icons-round {
  transform: scale(1.15);
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F172A, #2563EB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 3px 10px rgba(37,99,235,0.25);
}
.avatar-circle.lawyer-avatar {
  background: linear-gradient(135deg, #C9A84C, #F59E0B);
  color: #0F172A;
}

.user-avatar-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.user-menu-wrap {
  position: relative;
  z-index: 9100;
}

.user-logged-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 100px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-logged-btn:hover, .user-logged-btn[aria-expanded="true"] {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.user-header-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #2563EB;
}

.user-logged-btn .avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
  color: #C9A84C;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-display-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0F172A;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-logged-btn .caret-icon {
  font-size: 18px;
  color: #64748B;
  transition: transform 0.2s ease;
}

.user-logged-btn[aria-expanded="true"] .caret-icon {
  transform: rotate(180deg);
}

.dropdown-menu-custom {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  display: none;
  flex-direction: column;
  z-index: 9999 !important;
  overflow: hidden;
  box-sizing: border-box;
}

.dropdown-menu-custom.show {
  display: flex;
  animation: fadeInDown 0.2s ease-out forwards;
}

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

.user-profile-dropdown {
  width: 280px;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(226, 232, 240, 0.85);
  overflow: hidden;
  border: none;
}

.dropdown-header-user {
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border-bottom: 1px solid #E2E8F0;
}

.user-title-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-subtitle-email {
  font-size: 0.78rem;
  color: #64748B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-body-links {
  padding: 6px 0;
  max-height: 440px;
  overflow-y: auto;
}

.dropdown-body-links::-webkit-scrollbar {
  width: 5px;
}
.dropdown-body-links::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
}

.dropdown-body-links .dropdown-item-custom {
  padding: 0.62rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.dropdown-body-links .dropdown-item-custom .material-icons-round {
  font-size: 19px;
  transition: transform 0.15s ease;
}

.dropdown-body-links .dropdown-item-custom:hover {
  background: #EFF6FF;
  color: #2563EB;
  padding-left: 1.35rem;
}

.dropdown-body-links .dropdown-item-custom:hover .material-icons-round {
  transform: scale(1.1);
}

.dropdown-footer-logout {
  border-top: 1px solid #F1F5F9;
  padding: 6px 0;
  background: #FFFFFF;
}

.dropdown-footer-logout .logout-item {
  color: #E11D48;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
}

.dropdown-footer-logout .logout-item .material-icons-round {
  font-size: 19px;
  color: #E11D48;
}

.dropdown-footer-logout .logout-item:hover {
  background: #FFE4E6;
  color: #E11D48;
  padding-left: 1.35rem;
}

/* ─── Moving Announcement Text Strip (Right-to-Left Marquee) ─── */
.announcement-strip {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  color: #FFFFFF;
  padding: 8px 0;
  margin-top: 0;
  position: relative;
  z-index: 100;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.4px;
  color: #F8FAFC;
}
.marquee-content .dot {
  color: #C9A84C;
  font-size: 1.1rem;
}
.marquee-content .text-gold {
  color: #C9A84C !important;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .announcement-strip {
    padding: 6px 0;
  }
  .marquee-content {
    font-size: 0.8rem;
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ─── 16:9 Aspect-Ratio Premium Hero Slider ─── */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  background: #0F172A;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.03);
  z-index: 1;
}

.hero-slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient Overlay for Text & Button Readability */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.70) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 4.5rem;
  color: #FFFFFF;
  z-index: 3;
  pointer-events: none;
}

.hero-slide-caption {
  max-width: 65%;
  pointer-events: auto;
  z-index: 4;
}

.hero-slide-caption .slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #C9A84C;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.hero-slide-caption .slide-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-slide-caption .slide-subtitle {
  font-size: clamp(0.85rem, 1.4vw, 1.02rem);
  color: #E2E8F0;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Bottom Right Side CTA Button Area */
.hero-slide-cta-wrap {
  position: absolute;
  bottom: 2rem;
  right: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
  z-index: 6;
}

.hero-slide-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 50%, #B8860B 100%);
  color: #0F172A !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 26px;
  border-radius: 100px;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.45), 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.hero-slide-cta-btn:hover,
.hero-slide-cta-btn:focus {
  background: linear-gradient(135deg, #F59E0B 0%, #C9A84C 100%);
  color: #0F172A !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(201, 168, 76, 0.55);
}

.hero-slide-cta-btn .material-icons-round {
  transition: transform 0.25s ease;
}

.hero-slide-cta-btn:hover .material-icons-round {
  transform: translateX(3px);
}

/* Navigation Arrows */
.hero-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  transition: all 0.25s ease;
}

.hero-slider-nav-btn:hover {
  background: #C9A84C;
  color: #0F172A;
  border-color: #C9A84C;
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-nav-btn.prev-btn { left: 1.25rem; }
.hero-slider-nav-btn.next-btn { right: 1.25rem; }

/* Pagination Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider-dot.active {
  width: 26px;
  border-radius: 100px;
  background: #C9A84C;
}

/* Tablet Responsive Breakpoint */
@media (max-width: 991px) {
  .hero-slide-overlay {
    padding: 1.8rem 3.2rem;
  }
  .hero-slide-caption {
    max-width: 70%;
  }
  .hero-slide-caption .slide-subtitle {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide-cta-wrap {
    bottom: 1.5rem;
    right: 2.5rem;
  }
  .hero-slide-cta-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

/* Mobile Responsive Breakpoint (481px - 767px) */
@media (max-width: 767px) {
  .hero-slide-overlay {
    padding: 1rem 2.2rem;
  }
  .hero-slide-caption {
    max-width: 65%;
  }
  .hero-slide-caption .slide-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    margin-bottom: 0.25rem;
    gap: 4px;
  }
  .hero-slide-caption .slide-title {
    font-size: clamp(0.92rem, 3.2vw, 1.25rem);
    line-height: 1.2;
    margin-bottom: 0.25rem;
  }
  .hero-slide-caption .slide-subtitle {
    font-size: clamp(0.68rem, 2.2vw, 0.8rem);
    line-height: 1.25;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide-cta-wrap {
    bottom: 0.85rem;
    right: 1.25rem;
  }
  .hero-slide-cta-btn {
    padding: 6px 13px;
    font-size: 0.75rem;
    gap: 4px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35);
  }
  .hero-slide-cta-btn .material-icons-round {
    font-size: 14px !important;
  }
  .hero-slider-nav-btn {
    width: 30px;
    height: 30px;
  }
  .hero-slider-nav-btn.prev-btn { left: 0.35rem; }
  .hero-slider-nav-btn.next-btn { right: 0.35rem; }
  .hero-slider-dots { bottom: 0.4rem; left: 35%; padding: 2px 7px; }
  .hero-slider-dot { width: 6px; height: 6px; }
  .hero-slider-dot.active { width: 16px; }
}

/* Ultra Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .hero-slide-overlay {
    padding: 0.65rem 1.75rem;
  }
  .hero-slide-caption {
    max-width: 62%;
  }
  .hero-slide-caption .slide-badge {
    display: none;
  }
  .hero-slide-caption .slide-title {
    font-size: clamp(0.8rem, 3.2vw, 1rem);
    line-height: 1.15;
    margin-bottom: 0.15rem;
  }
  .hero-slide-caption .slide-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-size: 0.65rem;
    margin-bottom: 0;
  }
  .hero-slide-cta-wrap {
    bottom: 0.55rem;
    right: 0.75rem;
  }
  .hero-slide-cta-btn {
    padding: 5px 10px;
    font-size: 0.68rem;
    gap: 3px;
  }
  .hero-slide-cta-btn .material-icons-round {
    font-size: 12px !important;
  }
  .hero-slider-nav-btn {
    width: 24px;
    height: 24px;
  }
  .hero-slider-nav-btn span {
    font-size: 16px;
  }
  .hero-slider-nav-btn.prev-btn { left: 0.2rem; }
  .hero-slider-nav-btn.next-btn { right: 0.2rem; }
  .hero-slider-dots { display: none; }
}

/* ─── Hero Feature Cards (4 Cards Grid) ─── */
.hero-feature-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hero-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #C9A84C 0%, #2563EB 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(201, 168, 76, 0.4);
}

.hero-feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  transition: all 0.25s ease;
}

.hero-feature-card:hover .feature-icon-box {
  background: #0F172A;
  color: #C9A84C !important;
  border-color: #0F172A;
}

.feature-card-content {
  flex: 1;
  min-width: 0;
}

.feature-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
  color: #0F172A;
  margin-bottom: 0.15rem;
  white-space: normal;
}

.feature-card-sub {
  font-size: 0.75rem;
  color: #64748B;
  margin-bottom: 0;
  line-height: 1.3;
}

/* ─── Solid Distinct Background Themes for 4 Feature Cards ─── */
.hero-feature-card.card-color-amber {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
}
.hero-feature-card.card-color-amber::before {
  background: #F59E0B;
}
.hero-feature-card.card-color-amber .feature-icon-box {
  background: #F59E0B;
  color: #FFFFFF !important;
  border-color: #D97706;
}
.hero-feature-card.card-color-amber .feature-card-title {
  color: #78350F;
}
.hero-feature-card.card-color-amber .feature-card-sub {
  color: #92400E;
}

.hero-feature-card.card-color-blue {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
}
.hero-feature-card.card-color-blue::before {
  background: #2563EB;
}
.hero-feature-card.card-color-blue .feature-icon-box {
  background: #2563EB;
  color: #FFFFFF !important;
  border-color: #1D4ED8;
}
.hero-feature-card.card-color-blue .feature-card-title {
  color: #1E3A8A;
}
.hero-feature-card.card-color-blue .feature-card-sub {
  color: #1E40AF;
}

.hero-feature-card.card-color-emerald {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
}
.hero-feature-card.card-color-emerald::before {
  background: #10B981;
}
.hero-feature-card.card-color-emerald .feature-icon-box {
  background: #10B981;
  color: #FFFFFF !important;
  border-color: #059669;
}
.hero-feature-card.card-color-emerald .feature-card-title {
  color: #064E3B;
}
.hero-feature-card.card-color-emerald .feature-card-sub {
  color: #065F46;
}

.hero-feature-card.card-color-purple {
  background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
  border: 1px solid #DDD6FE;
}
.hero-feature-card.card-color-purple::before {
  background: #8B5CF6;
}
.hero-feature-card.card-color-purple .feature-icon-box {
  background: #8B5CF6;
  color: #FFFFFF !important;
  border-color: #7C3AED;
}
.hero-feature-card.card-color-purple .feature-card-title {
  color: #4C1D95;
}
.hero-feature-card.card-color-purple .feature-card-sub {
  color: #5B21B6;
}

/* ─── 50% Smaller Compact Category Mini Cards ─── */
.cat-card-mini {
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cat-card-mini:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.cat-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #FFFFFF !important;
}

.cat-mini-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-mini-sub {
  font-size: 0.68rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ─── Premium Solid Service Cards (Compact Top & Bottom Padding) ─── */
.service-card-solid {
  border-radius: 14px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card-solid:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.service-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #FFFFFF !important;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* ─── Premium Solid Court Cards (Compact Top & Bottom Padding) ─── */
.court-card-solid {
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.court-card-solid:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.court-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #FFFFFF !important;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* ─── Location Intelligence Colorful Capsule Buttons ─── */
.location-capsule-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  border: 2px solid #C9A84C;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2), 0 0 15px rgba(201, 168, 76, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.location-capsule-btn:hover,
.location-capsule-btn:focus {
  background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 100%);
  color: #0F172A;
  border-color: #D4AF37;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.4);
}

.location-radar-icon {
  font-size: 22px;
  color: #C9A84C;
  transition: transform 0.25s ease, color 0.25s ease;
}

.location-capsule-btn:hover .location-radar-icon {
  color: #0F172A;
  transform: rotate(45deg);
}

.location-badge-glow {
  background: rgba(201, 168, 76, 0.25);
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: #C9A84C;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.location-capsule-btn:hover .location-badge-glow {
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(15, 23, 42, 0.4);
  color: #0F172A;
}

/* Major City Capsule Pills */
.city-capsule-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.city-capsule-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid transparent;
}

.city-capsule-pill:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.city-pin-icon {
  font-size: 16px;
}

/* ─── Compact & Premium Colorful Lawyer Profile Cards ─── */
.lawyer-card-mini {
  border-radius: 18px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.lawyer-card-mini:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.lawyer-avatar-mini {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-right: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.lawyer-avatar-mini .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-verified-compact {
  color: #2563EB;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
}

.lawyer-info-pill {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 6px 10px;
}

.rating-badge-mini {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
}

.btn-lawyer-mini-outline {
  display: block;
  text-align: center;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 100px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-lawyer-mini-outline:hover {
  background: #0F172A;
  color: #FFFFFF !important;
  border-color: #0F172A;
}

.btn-lawyer-mini-solid {
  display: block;
  text-align: center;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 100px;
  color: #FFFFFF !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-lawyer-mini-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

/* ─── Compact Section Title ─── */
.section-title-sm {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  color: #0F172A;
}

@media (max-width: 576px) {
  .section-title-sm {
    font-size: 1.05rem;
  }
}

/* ─── Premium Solid Trust Cards ─── */
.trust-card-solid {
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.trust-card-solid:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF !important;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ─── Premium Solid How It Works Cards ─── */
.step-card-solid {
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.step-card-solid:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.step-capsule-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  border-radius: 100px;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.step-capsule-label {
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.step-capsule-num {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 100px;
  line-height: 1.2;
}

.step-icon-badge {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
}

/* ─── Premium Solid News Cards ─── */
.news-card-solid {
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.news-card-solid:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Premium Colorful Emergency Banner ─── */
.emergency-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 35%, #311B92 70%, #4A0E4E 100%);
  position: relative;
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.emergency-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.emergency-banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.badge-emergency-glow {
  background: linear-gradient(135deg, #EF4444, #F59E0B);
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 100px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.emergency-banner-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  color: #FFFFFF;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.emergency-banner-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 680px;
}

.btn-emergency-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  transition: all 0.25s ease;
}

.btn-emergency-amber:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
  color: #0F172A !important;
}

.btn-emergency-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.btn-emergency-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

/* ─── Premium Colorful Main CTA ─── */
.main-cta-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #EEF2FF 50%, #F0FDF4 100%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.btn-main-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 11px 28px;
  border-radius: 100px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
}

.btn-main-cta-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
  color: #FFFFFF !important;
}

.btn-main-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 28px;
  border-radius: 100px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
}

.btn-main-cta-outline:hover {
  background: #0F172A;
  color: #FFFFFF !important;
  border-color: #0F172A;
  transform: translateY(-2px);
}

.cta-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.8);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
}

/* ─── Premium Colorful Lawyer Registration CTA ─── */
.lawyer-register-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 35%, #1E1B4B 70%, #0F172A 100%);
  position: relative;
  border-radius: 24px;
  padding: 2.5rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.lawyer-register-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.badge-gold-glow {
  background: linear-gradient(135deg, #C9A84C, #F59E0B);
  color: #0F172A !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 100px;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.btn-lawyer-register-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C9A84C 0%, #D97706 100%);
  color: #0F172A !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
  transition: all 0.25s ease;
}

.btn-lawyer-register-gold:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.6);
  color: #0F172A !important;
}

.lawyer-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #E2E8F0;
}

/* ─── Premium Colorful Footer ─── */
.footer-light-premium {
  background: linear-gradient(135deg, #090D16 0%, #0F172A 40%, #1E1B4B 75%, #0B132B 100%);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}

.footer-light-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.footer-light-premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.footer-title {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.1rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #C9A84C, #F59E0B);
  border-radius: 100px;
  margin-top: 4px;
}

.footer-link {
  display: block;
  color: #94A3B8;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #F59E0B !important;
  transform: translateX(4px);
}

.social-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.social-icon-pill:hover {
  background: #C9A84C;
  color: #0F172A !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.4);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #64748B;
}

.footer-security-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  color: #CBD5E1;
  font-size: 0.76rem;
}

/* ─── 4 Premium Hero Action Buttons Grid ─── */
.hero-cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.95rem 1.2rem;
  min-height: 62px;
  border-radius: 16px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
}

/* Individual Color Schemes within Navy, Royal Blue, Gold, White theme */
.btn-find-lawyer {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25), 0 0 12px rgba(201, 168, 76, 0.15);
}
.btn-find-lawyer .hero-action-icon {
  color: #C9A84C;
  background: rgba(201, 168, 76, 0.18);
}
.btn-find-lawyer:hover {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FDE047;
  border-color: #D4AF37;
  box-shadow: 0 14px 32px rgba(201, 168, 76, 0.35);
}

.btn-marriage-register {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}
.btn-marriage-register .hero-action-icon {
  color: #FDE047;
  background: rgba(253, 224, 71, 0.2);
}
.btn-marriage-register:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-color: rgba(253, 224, 71, 0.6);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.4);
}

.btn-online-consult {
  background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 100%);
  color: #0F172A;
  border-color: #F59E0B;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}
.btn-online-consult .hero-action-icon {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.14);
}
.btn-online-consult:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #EAB308 100%);
  color: #0F172A;
  border-color: #B45309;
  box-shadow: 0 14px 32px rgba(201, 168, 76, 0.5);
}

.btn-professional-ca {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
}
.btn-professional-ca .hero-action-icon {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
}
.btn-professional-ca:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.4);
}

.hero-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-action-icon .material-icons-round {
  font-size: 22px;
}

.hero-action-text {
  white-space: nowrap;
}

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

.hero-action-btn:hover .hero-action-icon {
  transform: scale(1.15) rotate(-6deg);
}

.hero-action-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Tablet & Mobile Grid Layout: 2 buttons per row (2x2 grid) */
@media (max-width: 991px) {
  .hero-cta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .hero-cta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hero-action-btn {
    padding: 0.8rem 0.6rem;
    min-height: 54px;
    font-size: 0.84rem;
    gap: 8px;
    border-radius: 14px;
  }
  .hero-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .hero-action-icon .material-icons-round {
    font-size: 18px;
  }
  .hero-action-text {
    white-space: normal;
    line-height: 1.25;
  }
}

@media (max-width: 375px) {
  .hero-action-btn {
    padding: 0.7rem 0.4rem;
    font-size: 0.78rem;
    gap: 6px;
    min-height: 50px;
  }
  .hero-action-icon {
    width: 28px;
    height: 28px;
  }
  .hero-action-icon .material-icons-round {
    font-size: 16px;
  }
}

/* Responsive Scaling for Feature Cards on Mobile */
@media (max-width: 767px) {
  .hero-feature-card {
    padding: 0.85rem 0.85rem;
    gap: 0.6rem;
    border-radius: 14px;
  }
  .feature-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
  }
  .feature-card-title {
    font-size: 0.78rem;
    line-height: 1.25;
  }
  .feature-card-sub {
    font-size: 0.68rem;
  }
  .hero-find-lawyer-cta {
    padding: 0.85rem 1.6rem;
    font-size: 0.92rem;
    width: 100%;
    justify-content: center;
  }
  .cta-search-icon {
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .hero-feature-card {
    padding: 0.75rem 0.6rem;
    gap: 0.5rem;
  }
  .feature-icon-box {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .feature-card-title {
    font-size: 0.72rem;
  }
  .feature-card-sub {
    display: none;
  }
}

/* ─── Compact Premium Search Filter System ──────────────────────── */
.search-page-hero {
  position: relative;
  z-index: 100;
  overflow: visible !important;
  padding: 1.25rem 0 1rem 0;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
}

.search-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.search-hero-subtitle {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 12px;
}

.step-wizard-card {
  position: relative;
  z-index: 200;
  overflow: visible !important;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
  border: 1px solid #E2E8F0;
}

#stepSearchForm {
  position: relative;
  z-index: 300;
  overflow: visible !important;
}

.search-bar-single-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* Desktop Single Line Layout (992px and above) */
@media (min-width: 992px) {
  .search-bar-single-row {
    flex-wrap: nowrap !important;
    gap: 10px;
  }
  .search-col-state    { width: calc(19% - 8px); flex: 0 0 calc(19% - 8px); max-width: calc(19% - 8px); min-width: 0; }
  .search-col-district { width: calc(19% - 8px); flex: 0 0 calc(19% - 8px); max-width: calc(19% - 8px); min-width: 0; }
  .search-col-court    { width: calc(25% - 8px); flex: 0 0 calc(25% - 8px); max-width: calc(25% - 8px); min-width: 0; }
  .search-col-category { width: calc(19% - 8px); flex: 0 0 calc(19% - 8px); max-width: calc(19% - 8px); min-width: 0; }
  .search-col-btn      { width: calc(18% - 8px); flex: 0 0 calc(18% - 8px); max-width: calc(18% - 8px); min-width: 0; }
}

@media (max-width: 1280px) and (min-width: 992px) {
  .search-bar-single-row {
    gap: 6px;
  }
  .search-col-state    { width: calc(19% - 4.8px); flex: 0 0 calc(19% - 4.8px); max-width: calc(19% - 4.8px); }
  .search-col-district { width: calc(19% - 4.8px); flex: 0 0 calc(19% - 4.8px); max-width: calc(19% - 4.8px); }
  .search-col-court    { width: calc(25% - 4.8px); flex: 0 0 calc(25% - 4.8px); max-width: calc(25% - 4.8px); }
  .search-col-category { width: calc(19% - 4.8px); flex: 0 0 calc(19% - 4.8px); max-width: calc(19% - 4.8px); }
  .search-col-btn      { width: calc(18% - 4.8px); flex: 0 0 calc(18% - 4.8px); max-width: calc(18% - 4.8px); }
  
  .custom-select-trigger,
  .step-select-field {
    padding: 0 8px;
    font-size: 0.84rem;
  }
  .step-find-btn-primary {
    font-size: 0.83rem;
    padding: 0 6px;
    gap: 4px;
  }
}

/* Tablet Responsive Layout (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .search-bar-single-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-col-state { width: calc(50% - 5px); flex: 0 0 calc(50% - 5px); }
  .search-col-district { width: calc(50% - 5px); flex: 0 0 calc(50% - 5px); }
  .search-col-court { width: calc(50% - 5px); flex: 0 0 calc(50% - 5px); }
  .search-col-category { width: calc(50% - 5px); flex: 0 0 calc(50% - 5px); }
  .search-col-btn { width: 100%; flex: 0 0 100%; }
}

/* Mobile Responsive Layout (under 768px) */
@media (max-width: 767px) {
  .search-bar-single-row {
    flex-direction: column;
    gap: 10px;
  }
  .search-col-state,
  .search-col-district,
  .search-col-court,
  .search-col-category,
  .search-col-btn {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.step-box-item {
  position: relative;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.step-box-item.active,
.step-box-item.completed,
.step-box-item.disabled {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.step-box-item.disabled {
  opacity: 0.75;
}

.step-box-item.dropdown-open,
.searchable-district-container.dropdown-open,
.searchable-court-container.dropdown-open,
.searchable-category-container.dropdown-open {
  z-index: 10000 !important;
  position: relative !important;
}

/* ─── Searchable District, Court & Category Dropdown ───────── */
.searchable-district-container,
.searchable-court-container,
.searchable-category-container {
  position: relative;
  width: 100%;
  z-index: 10;
}

.custom-select-trigger {
  width: 100%;
  height: 46px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: none;
}

.custom-select-trigger span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 20px);
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}

.custom-select-trigger .material-icons-round {
  flex-shrink: 0;
  font-size: 18px !important;
  color: #64748B;
  transition: transform 0.2s ease;
}

.step-select-field {
  width: 100%;
  height: 46px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0F172A;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-shadow: none;
}

.custom-select-trigger:hover:not(.disabled),
.step-select-field:hover:not(:disabled) {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.custom-select-trigger.disabled,
.step-select-field:disabled {
  background: #F8FAFC;
  color: #94A3B8;
  cursor: not-allowed;
  border-color: #E2E8F0;
  box-shadow: none;
}

.step-find-btn-primary {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0 10px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.step-find-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}

.step-find-btn-primary:disabled {
  background: #E2E8F0;
  color: #94A3B8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-clear-search-icon {
  height: 46px;
  width: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #FEE2E2;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid #FCA5A5;
}
.btn-clear-search-icon:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: translateY(-1px);
}
}

.clear-search-link:hover {
  color: #EF4444;
}
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 100%;
  background: #FFFFFF;
  border: 1.5px solid #2563EB;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.1);
  z-index: 99999 !important;
  display: none;
  overflow: hidden;
  animation: fadeInDropdown 0.2s ease-out;
}
.custom-select-dropdown.show {
  display: block;
}
@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-input-wrap {
  position: relative;
  padding: 10px 12px;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input-wrap .search-icon {
  font-size: 18px;
  color: #2563EB;
}
.search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: #0F172A;
  outline: none;
  font-weight: 500;
}
.options-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 6px 0;
  -webkit-overflow-scrolling: touch;
}
.option-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  word-break: break-word;
}
.option-item:hover {
  background: #EFF6FF;
  color: #2563EB;
}
.option-item.selected {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  color: #2563EB;
  font-weight: 700;
}
.option-item.unavailable {
  color: #94A3B8;
  cursor: not-allowed;
  font-style: italic;
  background: transparent !important;
}

/* Ensure content below hero stays underneath dropdowns */
.search-page-content,
.search-results-section {
  position: relative;
  z-index: 1;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1050;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-btn:hover, .hamburger-btn:active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

/* 3-Line Hamburger Icon Lines */
.hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}
.hamburger-lines .line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 991px) {
  .desktop-nav, .guest-auth-buttons { display: none !important; }
  .hamburger-btn { display: flex !important; }
}

/* Right-Sliding Mobile Navigation Side Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  will-change: transform, visibility;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.mobile-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  flex-shrink: 0;
}
.drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.drawer-close-btn:hover, .drawer-close-btn:active {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: rotate(90deg);
}

.mobile-drawer-nav {
  padding: 1.25rem 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #334155;
  text-decoration: none;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid transparent;
}
.drawer-nav-link:not(.active):hover, 
.drawer-nav-link:not(.active):active {
  background: #EFF6FF;
  color: #2563EB;
  border-color: rgba(37, 99, 235, 0.12);
  transform: translateX(3px);
}
.drawer-nav-link.active {
  background: linear-gradient(135deg, #0F3D91 0%, #2563EB 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
  border: none;
  transform: none;
}
.drawer-nav-link.active .drawer-icon {
  filter: brightness(1.2);
}
.drawer-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}
.drawer-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 0.75rem 0;
}
.drawer-nav-link.highlight-gold {
  background: rgba(201, 168, 76, 0.12);
  color: #B45309;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  will-change: opacity, visibility;
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Body & HTML Scroll Locking for Mobile Safari & Android */
html.drawer-open,
body.drawer-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--header-height));
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: var(--space-20) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #1E3A5F, transparent); top: -200px; right: -150px; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #C9A84C33, transparent); bottom: -100px; left: -100px; animation-delay: 3s; }
.hero-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #1E3A5F55, transparent); top: 40%; left: 40%; animation-delay: 5s; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-30px) scale(1.05); }
  66%      { transform: translate(-15px,15px) scale(0.97); }
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Particles */
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100px) translateX(40px); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-6);
  animation: fade-in-up 0.6s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  animation: fade-in-up 0.6s 0.1s ease both;
}
.hero-title .highlight {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero-desc {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
  animation: fade-in-up 0.6s 0.2s ease both;
}

/* Hero Search Card */
.hero-search-card {
  background: var(--glass);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: fade-in-up 0.6s 0.3s ease both;
  position: relative;
  overflow: hidden;
}
.hero-search-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.find-lawyer-btn {
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--grad-accent);
  color: #0A0800;
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--fs-xl);
  font-weight: 800;
  font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 40px rgba(201,168,76,0.4);
  transition: var(--transition-spring);
  letter-spacing: -0.3px;
}
.find-lawyer-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 50px rgba(201,168,76,0.55);
}
.find-lawyer-btn:active { transform: translateY(0) scale(0.99); }
.find-lawyer-btn .btn-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: var(--transition-spring);
}
.find-lawyer-btn:hover .btn-icon-wrap { transform: rotate(15deg) scale(1.1); }

.search-card-footer {
  display: flex; align-items: center; justify-content: center; gap: var(--space-6);
  margin-top: var(--space-5);
}
.search-quick-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  background: var(--surface-1);
  transition: var(--transition-fast);
}
.search-quick-tag:hover {
  color: var(--accent);
  border-color: rgba(201,168,76,0.3);
  background: var(--accent-glow);
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  z-index: 2;
  animation: fade-in-right 0.8s 0.2s ease both;
}

/* Hero Stats */
.hero-stats {
  display: flex; gap: var(--space-6);
  margin-top: var(--space-8);
  animation: fade-in-up 0.6s 0.4s ease both;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-stat-divider {
  width: 1px;
  background: var(--surface-border);
  align-self: stretch;
}

/* ─── Fullscreen Search Modal ────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(4, 8, 18, 0.95);
  backdrop-filter: blur(30px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-overlay-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-8);
  border-bottom: 1px solid var(--surface-border);
  background: rgba(10,22,40,0.8);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(20px);
}
.search-overlay-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}
.search-close {
  width: 42px; height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.search-close:hover { background: var(--danger-light); color: var(--danger); }

/* Step Progress */
.search-steps-bar {
  display: flex; align-items: center;
  padding: var(--space-5) var(--space-8);
  gap: var(--space-2);
  border-bottom: 1px solid var(--surface-border);
  background: rgba(10,22,40,0.6);
}
.search-step-item {
  display: flex; align-items: center; gap: var(--space-2);
  flex: 1;
}
.search-step-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-base);
  flex-shrink: 0;
}
.search-step-item.active .search-step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}
.search-step-item.done .search-step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.search-step-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.search-step-item.active .search-step-label { color: var(--accent); }
.search-step-item.done  .search-step-label  { color: var(--success); }
.search-step-line {
  flex: 1;
  height: 2px;
  background: var(--surface-border);
  border-radius: 2px;
  transition: var(--transition-base);
}
.search-step-item.done + .search-step-line { background: var(--success); }

/* Step Content */
.search-step-content {
  display: none;
  flex: 1;
  padding: var(--space-8) var(--space-8);
  animation: fade-in-up 0.3s ease;
}
.search-step-content.active { display: block; }

.search-step-heading {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.search-step-sub { color: var(--text-secondary); margin-bottom: var(--space-8); }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
}
.category-option {
  background: var(--surface-1);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.category-option:hover, .category-option.selected {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.category-option.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 12px; font-weight: 700;
  color: var(--accent);
}
.category-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--surface-2);
  transition: var(--transition-base);
}
.category-option:hover .category-icon,
.category-option.selected .category-icon {
  background: rgba(201,168,76,0.2);
}
.category-label {
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
  transition: var(--transition-fast);
}
.category-option:hover .category-label,
.category-option.selected .category-label { color: var(--accent); }

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}
.service-option {
  background: var(--surface-1);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-3);
  cursor: pointer;
  transition: var(--transition-base);
}
.service-option:hover, .service-option.selected {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.service-option .material-icons-round { font-size: 20px; color: var(--accent); }
.service-option span:last-child { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); }
.service-option:hover span:last-child,
.service-option.selected span:last-child { color: var(--accent); }

/* Location Step */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 700px;
}
.location-detect-btn {
  grid-column: 1/-1;
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
  border: 1.5px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-lg);
  color: var(--info);
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}
.location-detect-btn:hover {
  background: rgba(59,130,246,0.2);
  transform: translateY(-1px);
}

/* Filter Chips */
.filter-chips-grid {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  background: var(--surface-1);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-chip:hover, .filter-chip.selected {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

/* Search Navigation */
.search-nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--surface-border);
  background: rgba(10,22,40,0.8);
  position: sticky; bottom: 0;
  backdrop-filter: blur(20px);
}
.search-selection-summary {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.selection-tag {
  background: var(--accent-glow);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ─── Lawyer Cards ───────────────────────────────────────────── */
.lawyer-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  position: relative;
}
.lawyer-card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201,168,76,0.15);
  transform: translateY(-4px);
}

.lawyer-card-header {
  position: relative;
  padding: var(--space-5) var(--space-5) 0;
}
.lawyer-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-3);
}
.lawyer-avatar {
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--surface-border);
  background: var(--surface-2);
}
.lawyer-avatar-fallback {
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--accent);
  border: 3px solid var(--surface-border);
}
.lawyer-online-indicator {
  position: absolute;
  bottom: 3px; right: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--primary-dark);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
}
.lawyer-badges {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}

.lawyer-card-body { padding: 0 var(--space-5) var(--space-5); }
.lawyer-name {
  font-size: var(--fs-lg); font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.lawyer-title  { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-3); }

.lawyer-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.lawyer-meta-item {
  display: flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.lawyer-meta-item .material-icons-round { font-size: 14px; color: var(--accent); }

.lawyer-rating {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: var(--space-4);
}
.rating-stars { display: flex; gap: 2px; }
.star-icon { font-size: 14px; color: var(--warning); }
.rating-score { font-weight: 700; font-size: var(--fs-sm); color: var(--text-primary); }
.rating-count { font-size: var(--fs-xs); color: var(--text-muted); }

.lawyer-fee {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3);
  background: var(--surface-1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.fee-amount { font-size: var(--fs-xl); font-weight: 800; color: var(--accent); }
.fee-label  { font-size: var(--fs-xs); color: var(--text-muted); }
.fee-type   { font-size: var(--fs-xs); font-weight: 600; color: var(--success); }

.lawyer-tags {
  display: flex; flex-wrap: wrap; gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.lawyer-tag {
  font-size: var(--fs-xs);
  padding: 3px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
}

.lawyer-card-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  border-top: 1px solid var(--surface-border);
  padding: var(--space-4) var(--space-5);
}
.lawyer-action-btns {
  display: flex; gap: var(--space-2);
}

/* Profile Completion Bar */
.completion-bar {
  height: 3px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}
.completion-fill {
  height: 100%;
  background: var(--grad-accent);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

/* ─── Categories Section ─────────────────────────────────────── */
.category-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-spring);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: var(--transition-base);
}
.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.category-card:hover::before { opacity: 1; }

.category-card-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 30px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  transition: var(--transition-spring);
}
.category-card:hover .category-card-icon {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: scale(1.1) rotate(5deg);
}
.category-card-name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: var(--transition-fast);
}
.category-card:hover .category-card-name { color: var(--accent); }
.category-card-count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ─── Section Headings ───────────────────────────────────────── */
.section-header { margin-bottom: var(--space-12); }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.section-desc { color: var(--text-secondary); max-width: 550px; line-height: 1.7; }

/* ─── Features / Stats Strip ─────────────────────────────────── */
.stats-section {
  background: var(--surface-1);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: var(--space-10) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 900;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label { font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 500; }

/* ─── How It Works ───────────────────────────────────────────── */
.how-step {
  display: flex; gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: var(--transition-base);
}
.how-step:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.step-number {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 900;
  color: #000;
}
.step-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 6px; }
.step-desc  { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }

/* ─── Subscription Plans ─────────────────────────────────────── */
.plan-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}
.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.plan-badge-top {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--grad-accent);
  color: #000;
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 4px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  letter-spacing: 0.5px;
}
.plan-name   { font-size: var(--fs-xl); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.plan-price  { font-size: var(--fs-4xl); font-weight: 900; color: var(--accent); line-height: 1; }
.plan-period { font-size: var(--fs-sm); color: var(--text-muted); }
.plan-features { margin: var(--space-6) 0; display: flex; flex-direction: column; gap: var(--space-3); }
.plan-feature {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.plan-feature .material-icons-round { font-size: 18px; color: var(--success); }
.plan-feature.na { opacity: 0.4; }
.plan-feature.na .material-icons-round { color: var(--text-muted); }

/* ─── Dashboard Layout ───────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #F8FAFC;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0A1226 0%, #070F22 100%);
  border-right: 1px solid rgba(201, 168, 76, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 1040;
  transition: transform 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(7, 15, 38, 0.15);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.3); border-radius: 4px; }

.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.2);
}
.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav-group {
  padding: 0 0.75rem;
  margin-bottom: 0.85rem;
}
.sidebar-nav-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #C9A84C !important;
  text-transform: uppercase;
  padding: 0.65rem 0.75rem 0.35rem;
  opacity: 0.95;
}
.sidebar-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #E2E8F0 !important;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none !important;
  position: relative;
  margin-bottom: 2px;
}
.sidebar-nav-link .material-icons-round { 
  font-size: 20px; 
  color: #94A3B8; 
  flex-shrink: 0; 
  transition: color 0.2s ease;
}
.sidebar-nav-link:hover { 
  background: rgba(255, 255, 255, 0.08); 
  color: #FFFFFF !important; 
}
.sidebar-nav-link:hover .material-icons-round {
  color: #C9A84C;
}
.sidebar-nav-link.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0.12) 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  border-left: 3.5px solid #C9A84C;
}
.sidebar-nav-link.active .material-icons-round {
  color: #FBBF24;
}
.sidebar-nav-badge {
  margin-left: auto;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
}

.sidebar-user {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-user-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C9A84C 0%, #F59E0B 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #070F26;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.sidebar-user-name  { 
  font-size: 0.88rem; 
  font-weight: 700; 
  color: #FFFFFF !important; 
  line-height: 1.2;
}
.sidebar-user-role  { 
  font-size: 0.75rem; 
  color: #CBD5E1 !important; 
  margin-top: 2px;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
}

.dashboard-header {
  height: 68px;
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky; top: 0; z-index: 100;
}
.dashboard-title { 
  font-family: 'Poppins', sans-serif; 
  font-size: 1.15rem; 
  font-weight: 800; 
  color: #0F172A !important;
}

.page-content { padding: 1.75rem var(--space-6); flex: 1; }

/* Metric Cards */
.metric-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 22px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-label { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: 6px; }
.metric-change {
  font-size: var(--fs-xs);
  font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}
.metric-change.up   { color: var(--success); }
.metric-change.down { color: var(--danger); }

/* ─── Tables ─────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--surface-border);
}
.data-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius-md) 0 0; }
.data-table td {
  padding: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--surface-border);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--surface-1); }
.data-table tr:last-child td { border-bottom: none; }

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.alert-success  { background: var(--success-light);  color: var(--success);  border-color: rgba(16,185,129,0.2); }
.alert-danger, .alert-error { background: var(--danger-light); color: var(--danger);  border-color: rgba(239,68,68,0.2);  }
.alert-warning  { background: var(--warning-light);  color: var(--warning);  border-color: rgba(245,158,11,0.2); }
.alert-info     { background: var(--info-light);     color: var(--info);     border-color: rgba(59,130,246,0.2);  }

/* ─── Toast Notifications ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--primary-light);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 300px; max-width: 420px;
  animation: slide-in-right 0.3s ease;
}
@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--surface-border);
  padding: var(--space-20) 0 var(--space-8);
}
.footer-logo-area { margin-bottom: var(--space-5); }
.footer-desc { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.7; max-width: 300px; }
.footer-heading {
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-link {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  transition: var(--transition-fast);
  display: flex; align-items: center; gap: 6px;
}
.footer-link:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: var(--space-6);
  margin-top: var(--space-10);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom-text { font-size: var(--fs-xs); color: var(--text-muted); }
.footer-socials { display: flex; gap: var(--space-3); }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition-fast);
}
.social-btn:hover { background: var(--accent-glow); color: var(--accent); border-color: rgba(201,168,76,0.3); }

/* ─── Utility Classes ────────────────────────────────────────── */
.d-flex     { display: flex; }
.d-grid     { display: grid; }
.d-none     { display: none; }
.d-block    { display: block; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap  { flex-wrap: wrap; }
.flex-1     { flex: 1; }
.gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); } .gap-6 { gap: var(--space-6); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.p-4 { padding: var(--space-4); } .p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); } .p-8 { padding: var(--space-8); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Divider */
.divider { border: none; border-top: 1px solid var(--surface-border); margin: var(--space-5) 0; }

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up   { animation: fade-in-up   0.5s ease both; }
.animate-fade-right{ animation: fade-in-right 0.5s ease both; }
.animate-fade      { animation: fade-in       0.3s ease both; }
.animate-scale     { animation: scale-in      0.3s ease both; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --sidebar-width: 240px; }
}

@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .hero { padding: var(--space-12) 0; }
  .section { padding: var(--space-12) 0; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-4); }
  .search-overlay-header,
  .search-steps-bar,
  .search-step-content,
  .search-nav-bar { padding-left: var(--space-4); padding-right: var(--space-4); }
  .search-step-label { display: none; }
  .lawyer-card-actions { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid  { grid-template-columns: 1fr; }
  .hero-search-card { padding: var(--space-5); }
  .find-lawyer-btn { font-size: var(--fs-lg); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

/* ─── PWA Install Banner ─────────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4); right: var(--space-4);
  background: var(--primary-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  animation: slide-in-right 0.4s ease;
  display: none;
}
.pwa-banner.show { display: flex; }

/* ─── Search Results Filters Sidebar ───────────────────────────  */
.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
}
.filter-section {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.filter-title {
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex; align-items: center; justify-content: space-between;
}
.filter-range { display: flex; gap: var(--space-3); }
.filter-range input { flex: 1; }

/* Range Slider */
input[type="range"] {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ─── Lawyer Profile Page ──────────────────────────────────────  */
.profile-cover {
  height: 260px;
  background: var(--grad-hero);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  position: relative;
  overflow: hidden;
}
.profile-cover-img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(6,14,26,0.8) 100%);
}

.profile-header {
  position: relative;
  padding: 0 var(--space-8) var(--space-8);
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -50px;
  margin-bottom: var(--space-4);
}
.profile-avatar {
  width: 110px; height: 110px;
  border-radius: var(--radius-xl);
  border: 4px solid var(--primary-dark);
  object-fit: cover;
  display: block;
}
.profile-verified-badge {
  position: absolute;
  bottom: -4px; right: -4px;
  background: var(--success);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary-dark);
  font-size: 14px;
}

.profile-tab-nav {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--surface-border);
  overflow-x: auto;
}
.profile-tab {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.profile-tab:hover  { color: var(--text-primary); }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Chat Widget ────────────────────────────────────────────── */
.chat-fab {
  position: fixed;
  bottom: var(--space-5); right: var(--space-5);
  width: 56px; height: 56px;
  background: var(--grad-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
  z-index: var(--z-toast);
  transition: var(--transition-spring);
  border: none;
  color: #000;
  font-size: 24px;
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(201,168,76,0.55); }

/* ─── Dropdown ───────────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--primary-light);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-base);
  z-index: var(--z-dropdown);
  overflow: hidden;
}
.dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-4);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}
.dropdown-item:hover { background: var(--surface-1); color: var(--text-primary); }
.dropdown-item.danger:hover { color: var(--danger); background: var(--danger-light); }
.dropdown-divider { border: none; border-top: 1px solid var(--surface-border); }

/* ─── Rating Widget ──────────────────────────────────────────── */
.rating-widget {
  display: flex; gap: 4px;
}
.rating-star-btn {
  font-size: 28px;
  color: var(--surface-3);
  cursor: pointer;
  transition: var(--transition-fast);
  background: none; border: none;
}
.rating-star-btn:hover, .rating-star-btn.filled { color: var(--warning); }

/* ─── Hero Floating Badges & Animations ────────────────────── */
.hero-graphic-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 440px;
}
.hero-svg-graphic {
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.08));
}
.floating-hero-badge {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  animation: floatBounce 4s ease-in-out infinite;
  z-index: 10;
}
.badge-top-left { top: 10px; left: -15px; }
.badge-bottom-right { bottom: 20px; right: -15px; animation-delay: 2s; }
.extra-small { font-size: 0.72rem; }

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── Premium Search Page Components ────────────────────────────── */
.search-page-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1E40AF 100%);
  color: #FFFFFF;
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.search-hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.search-hero-subtitle {
  font-family: 'Inter', sans-serif;
  color: #94A3B8;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  max-width: 680px;
  margin: 0 auto 1.8rem;
}

.search-hero-bar {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 100px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35), 0 0 0 3px rgba(37, 99, 235, 0.25);
  max-width: 760px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.search-hero-bar:focus-within {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.45), 0 0 0 4px rgba(201, 168, 76, 0.5);
}

.search-hero-icon {
  font-size: 24px;
  color: #2563EB;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-hero-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0F172A;
}

.search-hero-input::placeholder {
  color: #94A3B8;
}

.search-hero-btn {
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
  color: #FFFFFF;
  border: 1px solid rgba(201, 168, 76, 0.4);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.search-hero-btn:hover {
  background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 100%);
  color: #0F172A;
  border-color: #D4AF37;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

/* Quick search category chips */
.search-chips-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-chip:hover, .search-chip.active {
  background: #C9A84C;
  color: #0F172A;
  border-color: #C9A84C;
}

/* Results Top Bar Header */
.search-results-bar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.results-count-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0F172A;
}

.results-count-text span {
  color: #2563EB;
}

.active-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.active-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.active-pill-badge button {
  background: none;
  border: none;
  color: #1E40AF;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.sort-select-custom {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0F172A;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 7px 14px;
  cursor: pointer;
}

/* Lawyer Profile Cards 2-Column Responsive Grid Layout */
.lawyer-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .lawyer-results-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Lawyer Card — Desktop & Mobile Layout */
.lawyer-card-premium {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.4rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.lawyer-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, #0F172A 0%, #2563EB 50%, #C9A84C 100%);
  border-radius: 0 0 4px 4px;
}

.lawyer-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: #BFDBFE;
}

.lawyer-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.1rem;
}

.lawyer-avatar-container {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.lawyer-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid #EFF6FF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.lawyer-avatar-fallback-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
  color: #C9A84C;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.online-dot-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: #10B981;
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.lawyer-card-main-info {
  flex: 1;
  min-width: 0;
}

.lawyer-name-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #0F172A;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.lawyer-name-title a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lawyer-name-title a:hover {
  color: #2563EB;
}

.lawyer-specialty-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.80rem;
  font-weight: 600;
  color: #1D4ED8;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  padding: 2px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lawyer-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #475569;
}

.meta-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  line-height: 1.3;
}

.lawyer-rating-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.rating-star-icon {
  color: #F59E0B;
  font-size: 16px;
}

.rating-score-val {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.90rem;
  color: #0F172A;
}

.rating-review-cnt {
  font-size: 0.78rem;
  color: #64748B;
}

/* Card Fee & Actions Footer */
.lawyer-card-footer-box {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fee-box-title {
  font-size: 0.72rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.fee-box-amount {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  color: #0F172A;
}

.fee-free-tag {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #059669;
}

.lawyer-card-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.btn-profile-secondary {
  flex: 1;
  padding: 0.60rem 0.85rem;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-profile-secondary:hover {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
}

.btn-book-primary {
  flex: 1.25;
  padding: 0.60rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-book-primary:hover {
  background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 100%);
  color: #0F172A;
  border-color: #D4AF37;
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.35);
}

.btn-favorite-heart {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-favorite-heart:hover, .btn-favorite-heart.saved {
  background: #FFE4E6;
  color: #F43F5E;
  border-color: #FECDD3;
}

/* Mobile Breakpoint Specific Optimizations (320px - 480px) */
@media (max-width: 575px) {
  .lawyer-card-premium {
    padding: 1.1rem;
    border-radius: 16px;
  }
  .lawyer-card-top {
    gap: 12px;
    margin-bottom: 0.9rem;
  }
  .lawyer-avatar-container,
  .lawyer-avatar-img,
  .lawyer-avatar-fallback-box {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }
  .lawyer-name-title {
    font-size: 1.02rem;
  }
  .lawyer-specialty-badge {
    font-size: 0.76rem;
  }
  .lawyer-meta-pills {
    font-size: 0.78rem;
    gap: 6px 10px;
  }
  .lawyer-card-buttons {
    gap: 6px;
  }
  .btn-profile-secondary,
  .btn-book-primary {
    padding: 0.55rem 0.5rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .lawyer-card-buttons {
    flex-wrap: wrap;
  }
  .btn-profile-secondary,
  .btn-book-primary {
    flex: 1 1 100%;
  }
}

/* Empty Search State Card */
.search-empty-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.empty-search-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 1.5rem;
}

.empty-search-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

.empty-search-text {
  font-family: 'Inter', sans-serif;
  color: #64748B;
  max-width: 440px;
  margin: 0 auto 1.8rem;
  font-size: 0.95rem;
}

@media (max-width: 576px) {
  .floating-hero-badge {
    position: relative;
    top: auto; bottom: auto; left: auto; right: auto;
    margin: 8px auto;
  }
}

/* ─── Scroll Reveal Effects ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Step-by-Step Location & Court Search Wizard ─── */
.step-wizard-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.08);
  margin-top: 1.5rem;
}

.step-progress-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed #E2E8F0;
}

.step-tracker-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  color: #94A3B8;
  padding: 6px 14px;
  border-radius: 100px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.step-tracker-pill.active {
  color: #1E40AF;
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.step-tracker-pill.completed {
  color: #059669;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.step-tracker-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #CBD5E1;
  color: #FFFFFF;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-tracker-pill.active .step-tracker-num {
  background: #2563EB;
}

.step-tracker-pill.completed .step-tracker-num {
  background: #10B981;
}

.step-arrow-divider {
  color: #CBD5E1;
  font-size: 14px;
}

.step-box-item {
  background: transparent;
  border: none;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.step-box-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-box-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: #E2E8F0;
  color: #475569;
}

.step-box-item.active .step-box-badge {
  background: #DBEAFE;
  color: #1E40AF;
}

.step-box-item.completed .step-box-badge {
  background: #D1FAE5;
  color: #065F46;
}

.step-change-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  cursor: pointer;
}

.step-change-link:hover {
  text-decoration: underline;
}

.step-select-field {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #0F172A;
  width: 100%;
}

.step-select-field:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.step-find-btn-primary {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
  color: #FFFFFF;
  border: 1px solid rgba(201, 168, 76, 0.4);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.step-find-btn-primary:not(:disabled):hover {
  background: linear-gradient(135deg, #C9A84C 0%, #D4AF37 100%);
  color: #0F172A;
  border-color: #D4AF37;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.step-find-btn-primary:disabled {
  background: #CBD5E1;
  border-color: #CBD5E1;
  color: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 991px) {
  .step-progress-tracker {
    flex-wrap: wrap;
    gap: 6px;
  }
  .step-arrow-divider {
    display: none;
  }
}

/* ─── Marriage Register Dedicated Search Page Styling ─── */
.marriage-hero-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1E3A8A 100%);
  color: #FFFFFF;
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.marriage-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #FCD34D;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.marriage-card-premium {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.6rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.marriage-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: #FCD34D;
}

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

.marriage-avatar-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 100%);
  color: #FCD34D;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
  border: 2px solid #F1F5F9;
}

.marriage-office-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0F172A;
  margin-bottom: 4px;
}

.marriage-type-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1E40AF;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.marriage-services-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.marriage-service-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  background: #F1F5F9;
  border-radius: 100px;
  padding: 3px 10px;
}

/* ─── Hero Light Section & CTA Grid ─── */
.hero-light-section {
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 40%),
              linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 2.2rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EFF6FF;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563EB;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-title-main {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: #0F172A;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}
.hero-title-main .text-highlight {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 620px;
}
.hero-search-cta-card {
  background: #FFFFFF;
  border: 2px solid rgba(37, 99, 235, 0.15);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255,255,255,0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-search-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.12);
}
.btn-search-trigger {
  width: 100%;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #2563EB 100%);
  color: #FFFFFF;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-search-trigger:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
  transform: scale(1.01);
}
.hero-cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 1.5rem;
}
@media (max-width: 991px) {
  .hero-cta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 575px) {
  .hero-cta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ─── Premium Flash Toast Notification ─── */
.flash-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  max-width: 440px;
  width: calc(100% - 48px);
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.flash-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
  border: 1px solid #E2E8F0;
  color: #0F172A;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.flash-toast-inner.flash-success {
  border-left: 5px solid #10B981;
  background: linear-gradient(135deg, #FFFFFF 0%, #ECFDF5 100%);
}

.flash-toast-inner.flash-success .material-icons-round {
  color: #10B981;
  font-size: 22px;
}

.flash-toast-inner.flash-error {
  border-left: 5px solid #EF4444;
  background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 100%);
}

.flash-toast-inner.flash-error .material-icons-round {
  color: #EF4444;
  font-size: 22px;
}

.flash-toast-inner button {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.flash-toast-inner button:hover {
  background: rgba(0,0,0,0.06);
  color: #0F172A;
}

@media (max-width: 576px) {
  .flash-toast {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

/* ─── User Dashboard Layout (Full Width Header & Main Content) ─── */
.user-dashboard-layout {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
  background: #F8FAFC !important;
  width: 100% !important;
}

.user-dashboard-layout .sidebar, .user-dashboard-layout aside.sidebar {
  display: none !important;
}

.user-dashboard-layout .main-content {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
  flex: 1;
}

.dash-layout {
  display: block !important;
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════
   ADVOCATEBOOK SUPER ADMIN PORTAL LAYOUT & SCROLLING SYSTEM
═══════════════════════════════════════════════════════════════ */
.admin-layout, .dashboard-layout {
  display: flex !important;
  flex-direction: row !important;
  min-height: 100vh;
  width: 100% !important;
  background: #F8FAFC !important;
  position: relative;
  overflow-x: hidden;
}

/* Master Fixed Admin Sidebar */
.admin-sidebar-master, aside.sidebar.admin-sidebar-master {
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  background: #0B192C !important;
  border-right: 1px solid #1E293B !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 1040 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}

.admin-sidebar-master::-webkit-scrollbar {
  width: 5px;
}
.admin-sidebar-master::-webkit-scrollbar-track {
  background: #0B192C;
}
.admin-sidebar-master::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.admin-sidebar-master::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.admin-sidebar-master .sidebar-logo {
  padding: 18px 20px;
  background: #071322;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-sidebar-master .sidebar-nav {
  padding: 12px 0 24px 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

.admin-sidebar-master .sidebar-nav-group {
  padding: 0 14px;
  margin-bottom: 8px;
}

.admin-sidebar-master .sidebar-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #64748B;
  text-transform: uppercase;
  padding: 8px 10px 4px;
}

.admin-sidebar-master .sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #94A3B8;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.admin-sidebar-master .sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.admin-sidebar-master .sidebar-nav-link.active {
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.admin-sidebar-master .sidebar-nav-link .material-icons-round {
  font-size: 19px;
  flex-shrink: 0;
}

.admin-sidebar-master .sidebar-nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #EF4444;
  color: #FFFFFF;
}

.admin-sidebar-master .sidebar-user {
  padding: 14px 18px;
  background: #071322;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-sidebar-master .sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-sidebar-master .sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.admin-sidebar-master .sidebar-user-role {
  font-size: 0.68rem;
  font-weight: 700;
}

/* Master Main Content Area */
.admin-layout .main-content, .dashboard-layout .main-content, .main-content {
  margin-left: 270px !important;
  width: calc(100% - 270px) !important;
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  background: #F8FAFC !important;
  overflow-y: visible !important;
  flex: 1 1 auto;
}

/* Top Header */
.admin-top-header {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.admin-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
}

.admin-page-subtitle {
  font-size: 0.75rem;
  color: #64748B;
}

.admin-top-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.btn-ghost-admin {
  background: transparent;
  border: 1px solid transparent;
  color: #64748B;
  border-radius: 10px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-ghost-admin:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Dashboard Body */
.dashboard-body {
  padding: 24px;
  flex: 1 1 auto;
}

/* Mobile Responsive Drawer */
@media (max-width: 991.98px) {
  .admin-sidebar-master, aside.sidebar.admin-sidebar-master {
    transform: translateX(-100%) !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
  }
  .admin-sidebar-master.mobile-open, aside.sidebar.admin-sidebar-master.mobile-open {
    transform: translateX(0) !important;
  }
  .admin-layout .main-content, .dashboard-layout .main-content, .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1035;
  }
  .admin-sidebar-backdrop.active {
    display: block;
  }
}

/* ─── Compact Premium Dashboard Metric Cards ─── */
.dash-metric-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.dash-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.dash-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.dash-card-icon .material-icons-round {
  font-size: 20px;
}

.dash-card-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.dash-card-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

/* ─── Dashboard Responsive Breakpoints (320px to 1920px) ─── */
@media (max-width: 576px) {
  .dash-metric-card {
    padding: 12px 12px;
    border-radius: 14px;
  }
  .dash-card-title {
    font-size: 0.7rem;
  }
  .dash-card-val {
    font-size: 1.3rem;
  }
  .dash-card-sub {
    font-size: 0.65rem;
  }
  .dash-card-icon {
    width: 32px;
    height: 32px;
  }
  .dash-card-icon .material-icons-round {
    font-size: 17px;
  }

  /* Mobile Footer Stack Layout */
  .site-footer-main {
    margin-top: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2.5rem 0 1.5rem !important;
    text-align: center;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-social {
    justify-content: center;
  }
  .app-badges {
    justify-content: center;
  }
  .footer-col {
    text-align: center;
  }
  .footer-newsletter {
    flex-direction: column !important;
    text-align: center;
    padding: 1.25rem !important;
    gap: 1rem !important;
  }
  .newsletter-form {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
  .footer-trust {
    gap: 0.75rem 1rem !important;
    justify-content: center !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
  }
  .footer-legal-links {
    justify-content: center !important;
  }
}

@media (max-width: 340px) {
  .row.g-3 > .col-6 {
    width: 100% !important;
  }
}

/* ═════════════════════════════════════════════════════════════════
   USER DASHBOARD MODULE STYLING
═════════════════════════════════════════════════════════════════ */
.user-dash-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dash-link .material-icons-round {
  font-size: 20px;
  color: #64748B;
  transition: color 0.2s ease;
}

.user-dash-link:hover {
  background: #F1F5F9;
  color: #0F172A;
  transform: translateX(3px);
}

.user-dash-link:hover .material-icons-round {
  color: #2563EB;
}

.user-dash-link.active {
  background: linear-gradient(135deg, #0F3D91 0%, #2563EB 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.user-dash-link.active .material-icons-round {
  color: #FFFFFF;
}

.user-dashboard-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}



