:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #338fe6;
  --accent: #0066cc;
  --accent-dark: #0052a3;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray-50: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
}

* {
  background-color: transparent;
}

body {
  background: var(--white);
  color: var(--gray-700);
}

/* White Hero */
.hero,
.hero-section {
  background: var(--white) !important;
  color: var(--gray-900) !important;
  border-bottom: 1px solid var(--gray-200);
}

.hero::before,
.hero-section::before {
  display: none !important;
}

.hero h1,
.hero-section h1,
.hero h2,
.hero-section h2 {
  color: var(--gray-900) !important;
}

.hero p,
.hero-section p,
#hero p {
  color: var(--gray-600) !important;
  opacity: 1 !important;
}

/* Aggressive inline color override for legacy white-on-color text */
[style*="color: white"],
[style*="color:white"],
[style*="color: #fff"],
[style*="color:#fff"],
[style*="color: var(--white)"],
[style*="color: rgba(255"],
[style*="color:rgba(255"] {
  color: var(--gray-700) !important;
}

[style*="color: rgba(255,255,255,0.9)"],
[style*="color:rgba(255,255,255,0.9)"] {
  color: var(--gray-600) !important;
}

/* Hero text should be dark */
.hero *,
.hero-section * {
  color: var(--gray-700) !important;
}

.hero h1, .hero h2, .hero h3, .hero h4,
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4 {
  color: var(--gray-900) !important;
}

/* Keep CTA text white */
.ipasn-cta,
.ipasn-cta *,
.ipasn-floating-cta .ipasn-cta,
.ipasn-floating-cta .ipasn-cta * {
  color: var(--white) !important;
}

/* Override inline background colors */
[style*="background: #4c1d95"],
[style*="background:#4c1d95"],
[style*="background: var(--primary)"],
[style*="background: var(--secondary)"],
[style*="background: linear-gradient"] {
  background: var(--gray-100) !important;
}

/* Logo image sizing */
.logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* CTA Buttons - Consistent */
.ipasn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
}

.ipasn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
  color: var(--white);
}

.ipasn-cta.secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.ipasn-cta.secondary:hover {
  background: var(--gray-100);
}

/* Floating CTA Bar */
.ipasn-floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 16px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ipasn-floating-cta p {
  margin: 0;
  color: var(--gray-700);
  font-weight: 500;
}

@media (max-width: 600px) {
  .ipasn-floating-cta {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  .ipasn-floating-cta p {
    font-size: 0.875rem;
    text-align: center;
  }
}

/* Injected sidebar CTA */
.ipasn-sidebar-cta {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.ipasn-sidebar-cta h3 {
  color: var(--gray-900);
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.ipasn-sidebar-cta p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

/* Override category page inline section backgrounds */
section[style*="background: white"],
section[style*="background:#fff"],
section[style*="background: #fff"],
section[style*="background: var(--white)"] {
  background: var(--white) !important;
}

section[style*="background: #f8fafc"],
section[style*="background:#f8fafc"],
section[style*="background: var(--gray-100)"] {
  background: var(--gray-100) !important;
}

/* Ensure footer consistency */
footer,
.site-footer {
  background: var(--gray-900) !important;
  color: var(--white) !important;
}

footer a,
.site-footer a {
  color: var(--gray-300);
}

footer a:hover,
.site-footer a:hover {
  color: var(--primary-light);
}

/* Fix lead sections with colored gradients */
.lead-section,
section[class*="lead"],
section[style*="linear-gradient"] {
  background: var(--gray-100) !important;
  color: var(--gray-900) !important;
}

.lead-section h2,
.lead-section h3,
.lead-section p,
section[class*="lead"] h2,
section[class*="lead"] p {
  color: var(--gray-900) !important;
}

.lead-form {
  background: var(--white) !important;
  border: 1px solid var(--gray-200);
}

.lead-form h3 {
  color: var(--gray-900) !important;
}

/* Fix category card backgrounds */
.provider,
.feature-card,
.tv-card,
.plan-table,
.city-link {
  background: var(--white) !important;
  border: 1px solid var(--gray-200) !important;
}

.provider:hover,
.city-link:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
}

.plan-row.header {
  background: var(--primary) !important;
}

/* IP lookup showcase on white */
.ip-showcase {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
}

.main-ip {
  color: var(--primary);
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-900);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--gray-100);
}

/* Results cards */
.ip-report-card,
.map-card,
.report-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.report-section h3 {
  color: var(--gray-900);
}

/* Hide old lead forms, show CTA instead */
.lead-form button[type="submit"] {
  background: var(--primary);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
  }
}

/* Ensure enough bottom padding for floating CTA */
body {
  padding-bottom: 80px;
}