/* ==============================================================
   VentureHub Capital - Modern Production Clean Light SaaS Stylesheet
   Pure White, Crisp Slate, and Electric Royal Blue
   Scoped cleanly to avoid touching the Admin Panel (.admin-body)
   ============================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #3b5bf5;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --primary: #3b5bf5;
  --primary-hover: #2e4ad4;
  --primary-light: rgba(59, 91, 245, 0.08);
  --primary-glow: rgba(59, 91, 245, 0.25);
  --accent: #3b5bf5;
  --accent-light: rgba(59, 91, 245, 0.08);
  --warning: #f59e0b;
  --danger: #ef4444;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 1200px;
  --radius: 14px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

/* Site Body (Only applies to normal website, NOT admin panel!) */
body:not(.admin-body) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

body:not(.admin-body) h1, 
body:not(.admin-body) h2, 
body:not(.admin-body) h3, 
body:not(.admin-body) h4, 
body:not(.admin-body) h5, 
body:not(.admin-body) h6 {
  color: #0f172a !important;
  font-weight: 700;
}

/* Contrast Protection: Intentionally dark containers stay white */
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6,
.cta-section-wrap h1, .cta-section-wrap h2, .cta-section-wrap h3, .cta-section-wrap h4,
.cta-banner-dark h1, .cta-banner-dark h2, .cta-banner-dark h3,
.cta-section-wrap p, .cta-banner-dark p,
.wallet-hero h1, .wallet-hero h2, .wallet-hero h3, .wallet-hero .heading-lg,
.biz-split-card h1, .biz-split-card h2, .biz-split-card h3, .biz-split-card h4, .biz-split-card .biz-title,
.invest-modal-container h1, .invest-modal-container h2, .invest-modal-container h3, .invest-modal-container h4 {
  color: #ffffff !important;
}

body:not(.admin-body) p {
  color: #475569;
}

body:not(.admin-body) a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
body:not(.admin-body) a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.25s ease;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.25rem;
  max-width: 1360px !important;
  width: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a !important;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.site-header nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  color: #475569 !important;
  font-weight: 500;
  font-size: 0.94rem;
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 12px;
  transition: all 0.2s ease;
  position: relative;
}
.nav-links a:hover {
  color: #0f172a !important;
}
.nav-links a.active {
  color: #0f172a !important;
  font-weight: 700;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #0f172a;
  border-radius: 99px;
}
.nav-mobile-only,
.nav-mobile-auth {
  display: none !important;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-auth-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-nav-register {
  background: #3b5bf5 !important;
  border: 1px solid #3b5bf5 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 7px 22px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(59, 91, 245, 0.3) !important;
  transition: all 0.2s ease !important;
}
.btn-nav-register:hover {
  background: #2e4ad4 !important;
  box-shadow: 0 6px 18px rgba(59, 91, 245, 0.45) !important;
  transform: translateY(-1px);
}
.btn-nav-signin {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 9999px !important;
  padding: 7px 20px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}
.btn-nav-signin:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: #3b5bf5 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(59, 91, 245, 0.28) !important;
  border: none !important;
}
.btn-primary:hover {
  background: #2e4ad4 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(59, 91, 245, 0.42) !important;
  transform: translateY(-1px);
}
.btn-secondary {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
.btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
.btn-outline {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}
.btn-outline:hover {
  border-color: #3b5bf5 !important;
  color: #3b5bf5 !important;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}
.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.5rem !important;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 90% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
              #ffffff !important;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff2fe !important;
  color: #3b5bf5 !important;
  border: 1px solid #dbeafe !important;
  box-shadow: 0 2px 8px rgba(59, 91, 245, 0.08);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: #0f172a !important;
}
.hero-title span {
  color: #3b5bf5 !important;
  background: transparent !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  display: inline-block !important;
}
.hero-desc {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #475569 !important;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  color: #475569 !important;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 1.25rem;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b5bf5;
  box-shadow: 0 0 6px rgba(59, 91, 245, 0.4);
  display: inline-block;
}

/* Logos Strip */
.hero-logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-top: 3rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}
.hero-logos-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.75;
}

/* Stats Counter */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-card {
  text-align: center;
}
.stat-number {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.88rem;
  color: #64748b !important;
}

/* Sections */
.section {
  padding: 4.5rem 0;
  background: #f8fafc;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #0f172a !important;
}
.section-subtitle {
  color: #64748b !important;
  font-size: 0.95rem;
}

/* Featured Opportunities Responsive Header & Button */
.featured-deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.featured-deals-header .header-text-group {
  flex: 1 1 320px;
  min-width: 0;
}
.featured-view-all-btn {
  border-radius: 9999px !important;
  padding: 9px 22px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease !important;
}
.featured-view-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 91, 245, 0.15);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}
.business-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.business-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
}
.card-banner {
  height: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}
.card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-banner-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 25%, #f0f4ff 0%, #e2e8f0 100%) !important;
  position: relative;
  overflow: hidden;
}
.fallback-wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 85px;
  pointer-events: none;
  z-index: 1;
}
.fallback-emblem-badge {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(219, 234, 254, 0.9);
  box-shadow: 0 10px 24px rgba(59, 91, 245, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.business-card:hover .fallback-emblem-badge {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 28px rgba(59, 91, 245, 0.16), 0 4px 8px rgba(0, 0, 0, 0.06);
}
.card-pill-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 5;
}
.card-pill-category .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b5bf5;
}
.card-pill-risk {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 5;
}
.risk-badge-low {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #16a34a !important;
}
.risk-badge-medium {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #d97706 !important;
}
.risk-badge-high {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff !important;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a !important;
  margin-bottom: 6px;
}
.card-title a {
  color: #0f172a !important;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b !important;
  margin-bottom: 12px;
}
.card-tagline {
  color: #475569 !important;
  font-size: 0.925rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-invest-meta-box {
  background: #f8fafc !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 1rem 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: start;
}
.card-invest-meta-box small {
  display: block;
  font-size: 0.68rem;
  color: #64748b !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.card-invest-meta-box strong {
  color: #0f172a !important;
  font-size: 1.05rem;
  font-weight: 800;
}
.card-invest-meta-box .risk-val {
  color: #0f172a !important;
  font-weight: 700;
  font-size: 0.88rem;
}

/* 3-Pillar Cards */
.feature-card-pillar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 2.25rem 2rem;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.feature-card-pillar:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.feature-card-pillar h3 {
  color: #0f172a !important;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.feature-card-pillar p {
  color: #475569 !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Call to Action Banner */
.cta-section-wrap {
  padding: 4.5rem 1.5rem !important;
  background: linear-gradient(135deg, #3b5bf5 0%, #1e40af 100%) !important;
  border-radius: 24px;
  text-align: center;
  color: #ffffff !important;
  box-shadow: 0 20px 45px rgba(59, 91, 245, 0.25);
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}
.cta-section-wrap h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}
.cta-section-wrap p {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  opacity: 0.95;
  line-height: 1.6;
  color: #ffffff !important;
}
.cta-section-wrap .btn-cta-account {
  background: #ffffff !important;
  color: #3b5bf5 !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 34px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.cta-section-wrap .btn-cta-account:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  background: #f8fafc !important;
}

/* Forms & Controls across website */
body:not(.admin-body) .form-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
body:not(.admin-body) .form-group {
  margin-bottom: 1.25rem;
}
body:not(.admin-body) .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0f172a !important;
}
body:not(.admin-body) .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius);
  color: #0f172a !important;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
body:not(.admin-body) .form-control:focus {
  outline: none;
  border-color: #3b5bf5 !important;
  box-shadow: 0 0 0 3px rgba(59, 91, 245, 0.15) !important;
}

/* Pills */
.pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.pill:hover, .pill.active {
  background: #3b5bf5 !important;
  border-color: #3b5bf5 !important;
  color: #ffffff !important;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-success { background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important; color: #166534 !important; }
.alert-danger { background: #fef2f2 !important; border: 1px solid #fecaca !important; color: #991b1b !important; }
.alert-warning { background: #fffbeb !important; border: 1px solid #fde68a !important; color: #92400e !important; }
.alert-info { background: #eff2fe !important; border: 1px solid #dbeafe !important; color: #1e40af !important; }

/* Site Footer */
.site-footer {
  background: #060b14 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  padding: 4rem 0 2rem;
  margin-top: auto;
}
.site-footer h4 {
  color: #ffffff !important;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.site-footer ul {
  list-style: none;
}
.site-footer ul li {
  margin-bottom: 0.65rem;
}
.site-footer a {
  color: #94a3b8 !important;
  transition: all 0.2s ease;
}
.site-footer a:hover {
  color: #ffffff !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Mobile Navigation Drawer */
@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex !important;
  }
  .nav-mobile-only,
  .nav-mobile-auth {
    display: block !important;
    width: 100%;
  }
  .nav-auth-desktop {
    display: none !important;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff !important;
    border-bottom: 2px solid #e2e8f0;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    z-index: 999999 !important;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }
  .nav-links.show,
  .nav-links.active {
    display: flex !important;
  }
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    color: #0f172a !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: #eff2fe !important;
    color: #3b5bf5 !important;
  }
  .nav-mobile-auth {
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    margin-top: 4px;
  }
  .nav-mobile-auth a {
    font-weight: 700;
  }
}

/* Desktop safety: hide mobile-auth links on desktop >= 1081px */
@media (min-width: 1081px) {
  .nav-mobile-auth,
  .nav-mobile-only {
    display: none !important;
  }
}

.site-footer h4,
.site-footer .footer-col h4 {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: -0.01em !important;
}


/* ==============================================================
   Businesses Page – Filter Bar & Cards Grid
   ============================================================== */
.biz-list-header {
  margin-bottom: 1.5rem;
}
.biz-list-title {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.biz-list-subtitle {
  color: #64748b !important;
  font-size: 1rem;
}
.biz-list-subtitle strong {
  color: #0f172a !important;
  font-weight: 700;
}
.biz-mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}
.biz-mobile-filter-toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Modern Filter Card */
.biz-filter-form {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 2.25rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.25s ease;
}
.biz-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1fr 1fr auto;
  gap: 12px;
  align-items: flex-end;
}
@media (max-width: 1200px) {
  .biz-filter-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .biz-mobile-filter-toggle {
    display: inline-flex;
  }
  .biz-filter-form {
    display: none;
    padding: 1.25rem;
  }
  .biz-filter-form.biz-filter-expanded {
    display: block !important;
    animation: fadeInDown 0.2s ease;
  }
  .biz-filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.biz-filter-form .form-group {
  margin-bottom: 0;
}
.biz-filter-form .form-label {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b !important;
  margin-bottom: 6px;
}
.biz-filter-form .form-control {
  height: 42px !important;
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
.biz-filter-form .form-control:focus {
  background: #ffffff !important;
  border-color: #3b5bf5 !important;
  box-shadow: 0 0 0 3px rgba(59, 91, 245, 0.15) !important;
}
.biz-filter-btn button {
  height: 42px !important;
  padding: 0 20px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  white-space: nowrap;
}

/* Active Filter Chips */
.biz-active-chips-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}
.biz-chip {
  background: #eff2fe !important;
  border: 1px solid #dbeafe !important;
  color: #1e40af !important;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.biz-chip:hover {
  background: #dbeafe !important;
}
.biz-chip-del {
  font-size: 1rem;
  line-height: 1;
  color: #3b5bf5;
}
.biz-chip-reset {
  color: #ef4444 !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 6px;
}


/* ==============================================================
   Universal High-Contrast Card & Text Safety Rules
   ============================================================== */
body:not(.admin-body) .form-card, 
body:not(.admin-body) .pro-card, 
body:not(.admin-body) .info-card, 
body:not(.admin-body) .step-card, 
body:not(.admin-body) .feature-card, 
body:not(.admin-body) .faq-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

body:not(.admin-body) .form-card h1, body:not(.admin-body) .form-card h2, body:not(.admin-body) .form-card h3, body:not(.admin-body) .form-card h4,
body:not(.admin-body) .pro-card h1, body:not(.admin-body) .pro-card h2, body:not(.admin-body) .pro-card h3, body:not(.admin-body) .pro-card h4,
body:not(.admin-body) .info-card h1, body:not(.admin-body) .info-card h2, body:not(.admin-body) .info-card h3, body:not(.admin-body) .info-card h4,
body:not(.admin-body) .step-card h1, body:not(.admin-body) .step-card h2, body:not(.admin-body) .step-card h3, body:not(.admin-body) .step-card h4,
body:not(.admin-body) .feature-card h1, body:not(.admin-body) .feature-card h2, body:not(.admin-body) .feature-card h3, body:not(.admin-body) .feature-card h4,
body:not(.admin-body) .faq-card h1, body:not(.admin-body) .faq-card h2, body:not(.admin-body) .faq-card h3, body:not(.admin-body) .faq-card h4 {
  color: #0f172a !important;
}

body:not(.admin-body) .form-card p, body:not(.admin-body) .pro-card p, body:not(.admin-body) .info-card p, body:not(.admin-body) .step-card p, body:not(.admin-body) .feature-card p, body:not(.admin-body) .faq-card p,
body:not(.admin-body) .form-card li, body:not(.admin-body) .pro-card li, body:not(.admin-body) .info-card li, body:not(.admin-body) .step-card li, body:not(.admin-body) .feature-card li {
  color: #475569 !important;
  line-height: 1.65;
}

body:not(.admin-body) .form-card strong, body:not(.admin-body) .pro-card strong, body:not(.admin-body) .info-card strong, body:not(.admin-body) .step-card strong, body:not(.admin-body) .feature-card strong {
  color: #0f172a !important;
}


/* ==============================================================
   Comprehensive Responsive System (Mobile, Tablet, Desktop)
   ============================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 580px) {
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

.dash-grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}
@media (max-width: 768px) {
  .dash-grid-1-2 {
    grid-template-columns: 1fr !important;
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem !important;
  }
  .header-inner {
    height: 64px !important;
    gap: 0.75rem !important;
  }
  .site-header {
    height: 64px !important;
  }
  .nav-links {
    top: 64px !important;
    max-height: calc(100vh - 64px) !important;
    padding: 1rem 1.25rem !important;
  }
  .site-logo img {
    height: 40px !important;
    max-width: 190px !important;
  }
  .hero-section {
    padding: 2.75rem 0 2rem !important;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.6rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1.2rem !important;
  }
  .hero-desc {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.75rem !important;
  }
  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    max-width: 320px !important;
  }
  .hero-trust-bar {
    gap: 0.85rem !important;
    font-size: 0.8rem !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .hero-logos-strip {
    gap: 1.5rem 2rem !important;
    padding: 1.25rem 0 !important;
    font-size: 0.85rem !important;
    margin-top: 2rem !important;
  }
  .section {
    padding: 3rem 0 !important;
  }
  .section-header {
    margin-bottom: 2rem !important;
  }
  .featured-deals-header {
    display: block !important;
    gap: 0 !important;
    margin-bottom: 1.25rem !important;
  }
  .featured-deals-header .header-text-group {
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  .featured-deals-header .section-subtitle {
    margin-bottom: 0 !important;
  }
  .featured-view-all-btn {
    display: inline-flex !important;
    width: auto !important;
    margin-top: 10px !important;
  }
  .section-title {
    font-size: 1.6rem !important;
  }
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .feature-card-pillar {
    padding: 1.5rem 1.25rem !important;
  }
  .cta-section-wrap {
    padding: 2.5rem 1.25rem !important;
    border-radius: 16px !important;
  }
  .cta-section-wrap h2 {
    font-size: 1.6rem !important;
  }
  .cta-section-wrap p {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
  .featured-deals-header {
    margin-bottom: 1rem !important;
  }
  .featured-view-all-btn {
    display: inline-flex !important;
    width: auto !important;
    margin-top: 10px !important;
  }
  .container {
    padding: 0 1rem !important;
  }
  .site-logo img {
    height: 36px !important;
    max-width: 160px !important;
  }
  .menu-toggle {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.35rem !important;
  }
  .stat-card {
    padding: 0.5rem !important;
  }
  .stat-number {
    font-size: 1.85rem !important;
  }
  .stat-label {
    font-size: 0.78rem !important;
  }
  .card-body {
    padding: 1.25rem !important;
  }
  .card-title {
    font-size: 1.15rem !important;
  }
  body:not(.admin-body) .form-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 16px !important;
  }
}

/* Global Overflow Guard & Universal Grid/Table/Header Responsiveness */
html, body:not(.admin-body) {
  max-width: 100%;
  overflow-x: hidden;
}

body:not(.admin-body) .site-main,
body:not(.admin-body) .container,
body:not(.admin-body) .form-card,
body:not(.admin-body) .card {
  max-width: 100%;
  min-width: 0;
}

body:not(.admin-body) .table-responsive,
body:not(.admin-body) .data-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  body:not(.admin-body) [style*="grid-template-columns: 1fr 1fr"],
  body:not(.admin-body) [style*="grid-template-columns:1fr 1fr"],
  body:not(.admin-body) [style*="grid-template-columns: 2fr 1fr"],
  body:not(.admin-body) [style*="grid-template-columns: 1fr 2fr"],
  body:not(.admin-body) [style*="grid-template-columns: repeat(3"],
  body:not(.admin-body) [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  body:not(.admin-body) [style*="min-width: 240px"],
  body:not(.admin-body) [style*="min-width: 250px"],
  body:not(.admin-body) [style*="min-width: 280px"] {
    min-width: 0 !important;
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
  }
}

@media (max-width: 440px) {
  .site-header .nav-actions {
    gap: 6px !important;
  }
  .site-header .site-logo img {
    height: 32px !important;
    max-width: 140px !important;
  }
}
