/*
Theme Name: ComputeStacker
Theme URI: https://computestacker.com
Author: ComputeStacker Team
Author URI: https://computestacker.com
Description: High-performance, SEO-optimized AI infrastructure marketplace theme. Discover, compare, and connect with global GPU cloud and AI compute providers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://computestacker.com/license
Text Domain: computestacker
Tags: marketplace, ai, infrastructure, gpu, compute, technology, b2b
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors (extracted from logo) */
  --cs-primary:        #2563eb;   /* Logo bright blue */
  --cs-primary-dark:   #1d4ed8;   /* Hover state */
  --cs-primary-deeper: #1e3a8a;   /* Logo dark navy */
  --cs-secondary:      #0f172a;   /* Near-black navy */
  --cs-accent:         #60a5fa;   /* Light blue accent */
  --cs-accent-light:   #eff6ff;   /* Very light blue tint */

  /* Neutrals */
  --cs-white:          #ffffff;
  --cs-grey-50:        #f8fafc;
  --cs-grey-100:       #f1f5f9;
  --cs-grey-200:       #e2e8f0;
  --cs-grey-300:       #cbd5e1;
  --cs-grey-400:       #94a3b8;
  --cs-grey-500:       #64748b;
  --cs-grey-600:       #475569;
  --cs-grey-700:       #334155;
  --cs-grey-800:       #1e293b;
  --cs-grey-900:       #0f172a;

  /* Semantic */
  --cs-success:        #16a34a;
  --cs-warning:        #d97706;
  --cs-error:          #dc2626;
  --cs-info:           #0ea5e9;

  /* Typography */
  --cs-font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cs-font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* Font Scale */
  --cs-text-xs:    0.75rem;
  --cs-text-sm:    0.875rem;
  --cs-text-base:  1rem;
  --cs-text-lg:    1.125rem;
  --cs-text-xl:    1.25rem;
  --cs-text-2xl:   1.5rem;
  --cs-text-3xl:   1.875rem;
  --cs-text-4xl:   2.25rem;
  --cs-text-5xl:   3rem;
  --cs-text-6xl:   3.75rem;

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

  /* Layout */
  --cs-container:  1280px;
  --cs-header-h:   72px;
  --cs-radius-sm:  4px;
  --cs-radius:     8px;
  --cs-radius-lg:  12px;
  --cs-radius-xl:  16px;
  --cs-radius-2xl: 24px;

  /* Shadows */
  --cs-shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.05);
  --cs-shadow:     0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --cs-shadow-md:  0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.08);
  --cs-shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.08);
  --cs-shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.08);

  /* Transitions */
  --cs-transition: 150ms cubic-bezier(0.4,0,0.2,1);
  --cs-transition-slow: 300ms cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--cs-font-sans);
  font-size: var(--cs-text-base);
  line-height: 1.6;
  color: var(--cs-grey-800);
  background-color: var(--cs-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.cs-container {
  width: 100%;
  max-width: var(--cs-container);
  margin-inline: auto;
  padding-inline: var(--cs-space-6);
}

@media (max-width: 768px) {
  .cs-container { padding-inline: var(--cs-space-4); }
}

.cs-grid { display: grid; }
.cs-flex { display: flex; }
.cs-flex-center { display: flex; align-items: center; justify-content: center; }
.cs-flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--cs-grey-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, var(--cs-text-5xl)); }
h2 { font-size: clamp(1.5rem, 3vw, var(--cs-text-4xl)); }
h3 { font-size: clamp(1.25rem, 2vw, var(--cs-text-3xl)); }
h4 { font-size: var(--cs-text-2xl); }
h5 { font-size: var(--cs-text-xl); }
h6 { font-size: var(--cs-text-lg); }

p { margin-bottom: var(--cs-space-4); }
p:last-child { margin-bottom: 0; }

.cs-text-primary { color: var(--cs-primary); }
.cs-text-muted   { color: var(--cs-grey-500); }
.cs-text-white   { color: var(--cs-white); }
.cs-text-sm      { font-size: var(--cs-text-sm); }
.cs-text-lg      { font-size: var(--cs-text-lg); }
.cs-text-xl      { font-size: var(--cs-text-xl); }
.cs-font-medium  { font-weight: 500; }
.cs-font-semibold { font-weight: 600; }
.cs-font-bold    { font-weight: 700; }

/* ============================================================
   BUTTONS
   ============================================================ */
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--cs-space-2);
  padding: 0.625rem var(--cs-space-5);
  font-size: var(--cs-text-sm);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--cs-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--cs-transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.cs-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background var(--cs-transition);
}

.cs-btn:hover::after { background: rgba(255,255,255,0.08); }

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

.cs-btn-secondary {
  background: var(--cs-white);
  color: var(--cs-grey-800);
  border-color: var(--cs-grey-300);
}
.cs-btn-secondary:hover { background: var(--cs-grey-50); border-color: var(--cs-grey-400); }

.cs-btn-outline {
  background: transparent;
  color: var(--cs-primary);
  border-color: var(--cs-primary);
}
.cs-btn-outline:hover { background: var(--cs-accent-light); }

.cs-btn-ghost {
  background: transparent;
  color: var(--cs-grey-700);
  border-color: transparent;
}
.cs-btn-ghost:hover { background: var(--cs-grey-100); color: var(--cs-grey-900); }

.cs-btn-lg { padding: 0.875rem var(--cs-space-8); font-size: var(--cs-text-base); border-radius: var(--cs-radius-lg); }
.cs-btn-sm { padding: 0.375rem var(--cs-space-4); font-size: var(--cs-text-xs); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#cs-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--cs-header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cs-grey-200);
  transition: box-shadow var(--cs-transition-slow);
}

#cs-header.scrolled { box-shadow: var(--cs-shadow-md); }

#cs-header .cs-container {
  height: 100%;
}

.cs-header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Logo */
.cs-logo {
  display: flex;
  align-items: center;
  gap: var(--cs-space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.cs-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  background: transparent;
  border: none;
  outline: none;
}

.cs-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cs-primary-deeper);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cs-logo-text span { color: var(--cs-primary); }

/* Nav — grid column 2, always perfectly centered */
.cs-nav {
  display: flex;
  align-items: center;
  gap: var(--cs-space-1);
  justify-self: center;
  white-space: nowrap;
}

.cs-nav-link {
  position: relative;
  padding: var(--cs-space-2) var(--cs-space-3);
  font-size: var(--cs-text-sm);
  font-weight: 500;
  color: var(--cs-grey-600);
  border-radius: var(--cs-radius);
  transition: all var(--cs-transition);
  text-decoration: none;
}

.cs-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--cs-primary);
  border-radius: 2px;
  transition: all var(--cs-transition);
}

.cs-nav-link:hover,
.cs-nav-link.active {
  color: var(--cs-primary);
  background: var(--cs-accent-light);
}

.cs-nav-link:hover::after,
.cs-nav-link.active::after {
  left: var(--cs-space-3);
  right: var(--cs-space-3);
}

.cs-header-actions {
  display: flex;
  align-items: center;
  gap: var(--cs-space-3);
  justify-self: end;
}

/* Mobile Nav Toggle */
.cs-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--cs-space-2);
  border-radius: var(--cs-radius);
  background: none;
  border: none;
  color: var(--cs-grey-700);
}

.cs-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--cs-transition-slow);
}

@media (max-width: 1024px) {
  .cs-nav { display: none; }
  .cs-nav-toggle { display: flex; }
  .cs-header-actions .cs-btn { display: none; }
  /* On mobile, header becomes simple flex */
  .cs-header-inner {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  .cs-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--cs-header-h);
    left: 0;
    right: 0;
    background: var(--cs-white);
    border-bottom: 1px solid var(--cs-grey-200);
    padding: var(--cs-space-4) var(--cs-space-6);
    gap: var(--cs-space-1);
    box-shadow: var(--cs-shadow-lg);
    z-index: 999;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .cs-nav.open .cs-nav-link { width: 100%; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#cs-hero {
  min-height: calc(100vh - var(--cs-header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--cs-space-24) var(--cs-space-6);
  background: #020617; /* Slate 950 - extremely dark, premium blue-black */
  position: relative;
  overflow: hidden;
}

#cs-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 10%;
  width: 1000px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.2) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 1;
}

#cs-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(14,165,233,0.15) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(80px);
  z-index: 1;
}

#cs-hero .cs-container {
  position: relative;
  z-index: 2;
}

.cs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--cs-space-2);
  padding: var(--cs-space-1) var(--cs-space-4);
  background: var(--cs-accent-light);
  color: var(--cs-primary-deeper);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 100px;
  font-size: var(--cs-text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--cs-space-6);
}

.cs-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cs-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.cs-hero-title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cs-white);
  max-width: 820px;
  margin-bottom: var(--cs-space-6);
}

.cs-hero-title mark {
  background: none;
  color: var(--cs-accent); /* Vibrant blue for dark background */
}

.cs-hero-subtitle {
  font-size: clamp(1rem, 2vw, var(--cs-text-xl));
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: var(--cs-space-10);
  line-height: 1.6;
  font-weight: 400;
}

/* ============================================================
   SEARCH MODULE
   ============================================================ */
#cs-search-module {
  width: 100%;
  max-width: 860px;
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-xl);
  box-shadow: var(--cs-shadow-xl);
  overflow: hidden;
  margin-bottom: var(--cs-space-6);
}

.cs-search-tabs {
  display: flex;
  border-bottom: 1px solid var(--cs-grey-200);
  background: var(--cs-grey-50);
}

.cs-search-tab {
  flex: 1;
  padding: var(--cs-space-3) var(--cs-space-4);
  font-size: var(--cs-text-sm);
  font-weight: 500;
  color: var(--cs-grey-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--cs-transition);
  text-align: center;
}

.cs-search-tab.active,
.cs-search-tab:hover {
  color: var(--cs-primary);
  border-bottom-color: var(--cs-primary);
  background: var(--cs-white);
}

.cs-search-body { padding: var(--cs-space-6); }

.cs-search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--cs-space-3);
  margin-bottom: var(--cs-space-4);
}

@media (max-width: 768px) {
  .cs-search-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .cs-search-fields { grid-template-columns: 1fr; }
}

.cs-search-field {
  display: flex;
  flex-direction: column;
  gap: var(--cs-space-1);
}

.cs-search-field label {
  font-size: var(--cs-text-xs);
  font-weight: 600;
  color: var(--cs-grey-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-search-field select,
.cs-search-field input {
  padding: var(--cs-space-3) var(--cs-space-4);
  background: var(--cs-grey-50);
  border: 1.5px solid var(--cs-grey-200);
  border-radius: var(--cs-radius);
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-800);
  transition: all var(--cs-transition);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  cursor: pointer;
}

.cs-search-field select:focus,
.cs-search-field input:focus {
  outline: none;
  border-color: var(--cs-primary);
  background: var(--cs-white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.cs-search-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cs-space-4);
}

@media (max-width: 600px) {
  .cs-search-actions { flex-direction: column; }
  .cs-search-actions .cs-btn { width: 100%; justify-content: center; }
}

.cs-hero-stats {
  display: flex;
  align-items: center;
  gap: var(--cs-space-8);
  margin-top: var(--cs-space-8);
}

.cs-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cs-space-1);
}

.cs-hero-stat-num {
  font-size: var(--cs-text-2xl);
  font-weight: 700;
  color: var(--cs-white);
  letter-spacing: -0.03em;
}

.cs-hero-stat-label {
  font-size: var(--cs-text-xs);
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.cs-section {
  padding: var(--cs-space-20) 0;
}

.cs-section-sm { padding: var(--cs-space-12) 0; }
.cs-section-lg { padding: var(--cs-space-24) 0; }

.cs-section-alt { background: var(--cs-grey-50); }

.cs-section-header {
  margin-bottom: var(--cs-space-12);
}

.cs-section-label {
  display: inline-block;
  font-size: var(--cs-text-xs);
  font-weight: 700;
  color: var(--cs-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--cs-space-3);
}

.cs-section-title {
  font-size: clamp(1.5rem, 3vw, var(--cs-text-4xl));
  font-weight: 800;
  color: var(--cs-grey-900);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--cs-space-4);
}

.cs-section-desc {
  font-size: var(--cs-text-lg);
  color: var(--cs-grey-500);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   PROVIDER CARDS
   ============================================================ */
.cs-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--cs-space-5);
}

.cs-provider-card {
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-lg);
  padding: var(--cs-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--cs-space-4);
  transition: all var(--cs-transition-slow);
  position: relative;
  cursor: pointer;
}

.cs-provider-card:hover {
  border-color: var(--cs-primary);
  box-shadow: var(--cs-shadow-lg);
  transform: translateY(-2px);
}

.cs-provider-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--cs-space-4);
}

.cs-provider-logo-wrap {
  width: 56px;
  height: 56px;
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cs-grey-50);
  flex-shrink: 0;
}

.cs-provider-logo-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cs-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--cs-space-1);
  padding: 3px 8px;
  background: var(--cs-accent-light);
  color: var(--cs-primary-deeper);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.cs-provider-name {
  font-size: var(--cs-text-lg);
  font-weight: 700;
  color: var(--cs-grey-900);
  margin-bottom: var(--cs-space-1);
}

.cs-provider-tagline {
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-500);
}

.cs-provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cs-space-2);
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--cs-grey-100);
  color: var(--cs-grey-700);
  border-radius: 100px;
  font-size: var(--cs-text-xs);
  font-weight: 500;
  border: 1px solid var(--cs-grey-200);
}

.cs-tag.blue  { background: var(--cs-accent-light); color: var(--cs-primary-deeper); border-color: rgba(37,99,235,0.2); }
.cs-tag.green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }

.cs-provider-price {
  display: flex;
  align-items: baseline;
  gap: var(--cs-space-1);
}

.cs-provider-price-from {
  font-size: var(--cs-text-xs);
  color: var(--cs-grey-400);
}

.cs-provider-price-amount {
  font-size: var(--cs-text-2xl);
  font-weight: 700;
  color: var(--cs-grey-900);
}

.cs-provider-price-unit {
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-400);
}

.cs-provider-card-actions {
  display: flex;
  gap: var(--cs-space-2);
  padding-top: var(--cs-space-4);
  border-top: 1px solid var(--cs-grey-100);
  margin-top: auto;
}

.cs-provider-card-actions .cs-btn { flex: 1; justify-content: center; font-size: var(--cs-text-xs); }

/* Shortlist btn */
.cs-shortlist-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cs-grey-200);
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cs-grey-400);
  transition: all var(--cs-transition);
  flex-shrink: 0;
}

.cs-shortlist-btn:hover,
.cs-shortlist-btn.active {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
  background: var(--cs-accent-light);
}

/* ============================================================
   FILTERS SIDEBAR
   ============================================================ */
.cs-filters-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--cs-space-8);
  align-items: start;
}

@media (max-width: 1024px) {
  .cs-filters-layout { grid-template-columns: 1fr; }
}

.cs-filters-panel {
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-lg);
  padding: var(--cs-space-6);
  position: sticky;
  top: calc(var(--cs-header-h) + 16px);
}

.cs-filter-group { margin-bottom: var(--cs-space-6); }
.cs-filter-group:last-child { margin-bottom: 0; }

.cs-filter-label {
  font-size: var(--cs-text-sm);
  font-weight: 700;
  color: var(--cs-grey-700);
  margin-bottom: var(--cs-space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-filter-options { display: flex; flex-direction: column; gap: var(--cs-space-2); }

.cs-filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--cs-space-3);
  cursor: pointer;
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-600);
  padding: var(--cs-space-1) 0;
}

.cs-filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cs-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.cs-filter-checkbox:hover { color: var(--cs-grey-900); }

.cs-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--cs-space-6);
  gap: var(--cs-space-4);
}

.cs-results-count {
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-500);
}

.cs-results-count strong { color: var(--cs-grey-900); }

.cs-sort-select {
  padding: var(--cs-space-2) var(--cs-space-4);
  background: var(--cs-white);
  border: 1.5px solid var(--cs-grey-200);
  border-radius: var(--cs-radius);
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-700);
  cursor: pointer;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.cs-compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cs-secondary);
  color: var(--cs-white);
  padding: var(--cs-space-4) var(--cs-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cs-space-4);
  z-index: 900;
  transform: translateY(100%);
  transition: transform var(--cs-transition-slow);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cs-compare-bar.visible { transform: translateY(0); }

.cs-compare-slots {
  display: flex;
  gap: var(--cs-space-3);
}

.cs-compare-slot {
  width: 120px;
  height: 48px;
  border: 1.5px dashed rgba(255,255,255,0.3);
  border-radius: var(--cs-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--cs-text-xs);
  color: rgba(255,255,255,0.5);
  transition: all var(--cs-transition);
}

.cs-compare-slot.filled {
  border-style: solid;
  border-color: var(--cs-primary);
  background: rgba(37,99,235,0.15);
  color: var(--cs-white);
  font-size: var(--cs-text-xs);
  font-weight: 600;
  padding: var(--cs-space-2);
  text-align: center;
  cursor: default;
}

/* Compare table */
.cs-compare-table-wrap { overflow-x: auto; }

.cs-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--cs-text-sm);
}

.cs-compare-table th,
.cs-compare-table td {
  padding: var(--cs-space-4) var(--cs-space-5);
  text-align: left;
  border-bottom: 1px solid var(--cs-grey-100);
}

.cs-compare-table th {
  background: var(--cs-grey-50);
  font-weight: 700;
  font-size: var(--cs-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-grey-500);
  white-space: nowrap;
}

.cs-compare-table td { color: var(--cs-grey-700); vertical-align: middle; }
.cs-compare-table tr:last-child td { border-bottom: none; }

.cs-compare-table .winner { color: var(--cs-success); font-weight: 600; }
.cs-compare-table .check  { color: var(--cs-success); }
.cs-compare-table .cross  { color: var(--cs-error); }

/* ============================================================
   GUIDED DISCOVERY
   ============================================================ */
#cs-guided {
  background: var(--cs-secondary);
  color: var(--cs-white);
  padding: var(--cs-space-20) 0;
}

.cs-guided-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--cs-radius-xl);
  padding: var(--cs-space-10);
  max-width: 680px;
  margin: 0 auto;
}

.cs-guided-steps {
  display: flex;
  gap: var(--cs-space-2);
  margin-bottom: var(--cs-space-8);
}

.cs-guided-step-dot {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  flex: 1;
  transition: background var(--cs-transition-slow);
}

.cs-guided-step-dot.active { background: var(--cs-primary); }
.cs-guided-step-dot.done   { background: var(--cs-accent);  }

.cs-guided-question {
  font-size: var(--cs-text-2xl);
  font-weight: 700;
  color: var(--cs-white);
  margin-bottom: var(--cs-space-6);
  letter-spacing: -0.02em;
}

.cs-guided-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--cs-space-3);
}

@media (max-width: 480px) { .cs-guided-options { grid-template-columns: 1fr; } }

.cs-guided-option {
  padding: var(--cs-space-4) var(--cs-space-5);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--cs-radius-lg);
  color: var(--cs-white);
  text-align: left;
  cursor: pointer;
  transition: all var(--cs-transition);
  font-size: var(--cs-text-sm);
  font-weight: 500;
}

.cs-guided-option:hover,
.cs-guided-option.selected {
  background: rgba(37,99,235,0.3);
  border-color: var(--cs-primary);
}

.cs-guided-option-title { font-weight: 600; margin-bottom: 2px; }
.cs-guided-option-desc  { font-size: var(--cs-text-xs); color: rgba(255,255,255,0.6); }

/* ============================================================
   FEATURE / USP STRIP
   ============================================================ */
.cs-features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-lg);
  overflow: hidden;
}

@media (max-width: 900px) { .cs-features-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cs-features-strip { grid-template-columns: 1fr; } }

.cs-feature-item {
  padding: var(--cs-space-8) var(--cs-space-6);
  border-right: 1px solid var(--cs-grey-200);
  position: relative;
}

.cs-feature-item:last-child { border-right: none; }

.cs-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--cs-accent-light);
  border-radius: var(--cs-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--cs-space-4);
  color: var(--cs-primary);
}

.cs-feature-title {
  font-size: var(--cs-text-base);
  font-weight: 700;
  color: var(--cs-grey-900);
  margin-bottom: var(--cs-space-2);
}

.cs-feature-desc { font-size: var(--cs-text-sm); color: var(--cs-grey-500); line-height: 1.6; }

/* ============================================================
   INSIGHTS / BLOG
   ============================================================ */
.cs-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--cs-space-6);
}

.cs-insight-card {
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-lg);
  overflow: hidden;
  transition: all var(--cs-transition-slow);
}

.cs-insight-card:hover {
  border-color: var(--cs-primary);
  box-shadow: var(--cs-shadow-md);
  transform: translateY(-2px);
}

.cs-insight-thumb {
  aspect-ratio: 16/9;
  background: var(--cs-grey-100);
  overflow: hidden;
}

.cs-insight-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cs-insight-body { padding: var(--cs-space-5); }

.cs-insight-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-primary);
  margin-bottom: var(--cs-space-3);
}

.cs-insight-title {
  font-size: var(--cs-text-lg);
  font-weight: 700;
  color: var(--cs-grey-900);
  line-height: 1.35;
  margin-bottom: var(--cs-space-3);
  letter-spacing: -0.01em;
}

.cs-insight-excerpt {
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-500);
  line-height: 1.6;
  margin-bottom: var(--cs-space-4);
}

.cs-insight-meta {
  display: flex;
  align-items: center;
  gap: var(--cs-space-2);
  font-size: var(--cs-text-xs);
  color: var(--cs-grey-400);
}

/* ============================================================
   QUOTE FORM
   ============================================================ */
.cs-quote-form-wrap {
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-xl);
  padding: var(--cs-space-10);
  max-width: 680px;
  margin: 0 auto;
}

.cs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cs-space-5);
}

@media (max-width: 600px) { .cs-form-grid { grid-template-columns: 1fr; } }

.cs-form-group { display: flex; flex-direction: column; gap: var(--cs-space-2); }
.cs-form-group.full { grid-column: 1 / -1; }

.cs-form-label {
  font-size: var(--cs-text-sm);
  font-weight: 600;
  color: var(--cs-grey-700);
}

.cs-form-label .required { color: var(--cs-error); }

.cs-form-control {
  padding: 0.75rem var(--cs-space-4);
  background: var(--cs-grey-50);
  border: 1.5px solid var(--cs-grey-200);
  border-radius: var(--cs-radius);
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-800);
  transition: all var(--cs-transition);
  width: 100%;
}

.cs-form-control:focus {
  outline: none;
  border-color: var(--cs-primary);
  background: var(--cs-white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.cs-form-control::placeholder { color: var(--cs-grey-400); }

textarea.cs-form-control { min-height: 120px; resize: vertical; }

select.cs-form-control { appearance: none; cursor: pointer; }

/* ============================================================
   PROVIDER DETAIL PAGE
   ============================================================ */
.cs-provider-detail-hero {
  background: var(--cs-grey-50);
  border-bottom: 1px solid var(--cs-grey-200);
  padding: var(--cs-space-12) 0;
}

.cs-provider-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--cs-space-10);
  align-items: start;
}

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

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

.cs-spec-table tr { border-bottom: 1px solid var(--cs-grey-100); }
.cs-spec-table tr:last-child { border-bottom: none; }

.cs-spec-table td {
  padding: var(--cs-space-4) 0;
  font-size: var(--cs-text-sm);
  vertical-align: top;
}

.cs-spec-table td:first-child {
  font-weight: 600;
  color: var(--cs-grey-500);
  text-transform: uppercase;
  font-size: var(--cs-text-xs);
  letter-spacing: 0.04em;
  width: 140px;
  padding-right: var(--cs-space-4);
}

.cs-sticky-quote-card {
  position: sticky;
  top: calc(var(--cs-header-h) + 24px);
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-xl);
  padding: var(--cs-space-6);
  box-shadow: var(--cs-shadow-lg);
}

.cs-rating-bar {
  display: flex;
  align-items: center;
  gap: var(--cs-space-3);
  margin-bottom: var(--cs-space-2);
}

.cs-rating-label { font-size: var(--cs-text-xs); color: var(--cs-grey-500); width: 120px; flex-shrink: 0; }
.cs-rating-track { flex: 1; height: 6px; background: var(--cs-grey-100); border-radius: 99px; overflow: hidden; }
.cs-rating-fill  { height: 100%; background: var(--cs-primary); border-radius: 99px; transition: width 0.8s ease; }
.cs-rating-value { font-size: var(--cs-text-xs); font-weight: 600; color: var(--cs-grey-700); width: 28px; text-align: right; }

/* Pros/Cons */
.cs-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-space-5); }
@media (max-width: 600px) { .cs-pros-cons { grid-template-columns: 1fr; } }

.cs-pros-list li, .cs-cons-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--cs-space-2);
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-700);
  margin-bottom: var(--cs-space-2);
  line-height: 1.5;
}

.cs-pros-list li::before {
  content: '✓';
  color: var(--cs-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.cs-cons-list li::before {
  content: '✕';
  color: var(--cs-error);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   TABS (for provider detail)
   ============================================================ */
.cs-tabs {
  border-bottom: 1px solid var(--cs-grey-200);
  display: flex;
  gap: 0;
  margin-bottom: var(--cs-space-8);
}

.cs-tab {
  padding: var(--cs-space-4) var(--cs-space-5);
  font-size: var(--cs-text-sm);
  font-weight: 600;
  color: var(--cs-grey-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--cs-transition);
  white-space: nowrap;
}

.cs-tab.active,
.cs-tab:hover {
  color: var(--cs-primary);
  border-bottom-color: var(--cs-primary);
}

.cs-tab-panel { display: none; }
.cs-tab-panel.active { display: block; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--cs-space-2);
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-400);
  margin-bottom: var(--cs-space-4);
}

.cs-breadcrumb a { color: var(--cs-grey-500); }
.cs-breadcrumb a:hover { color: var(--cs-primary); }
.cs-breadcrumb-sep { color: var(--cs-grey-300); }

/* ============================================================
   AVAILABILITY BADGE
   ============================================================ */
.cs-available  { display: inline-flex; align-items: center; gap: 5px; font-size: var(--cs-text-xs); font-weight: 600; color: var(--cs-success); }
.cs-limited    { display: inline-flex; align-items: center; gap: 5px; font-size: var(--cs-text-xs); font-weight: 600; color: var(--cs-warning); }

.cs-available::before,
.cs-limited::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cs-available::before { background: var(--cs-success); }
.cs-limited::before   { background: var(--cs-warning); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cs-cta-banner {
  background: var(--cs-primary-deeper);
  border-radius: var(--cs-radius-2xl);
  padding: var(--cs-space-16) var(--cs-space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cs-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(37,99,235,0.15);
  pointer-events: none;
}

.cs-cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(37,99,235,0.1);
  pointer-events: none;
}

.cs-cta-banner-title {
  font-size: clamp(1.5rem, 3vw, var(--cs-text-4xl));
  font-weight: 800;
  color: var(--cs-white);
  letter-spacing: -0.03em;
  margin-bottom: var(--cs-space-4);
  position: relative;
  z-index: 1;
}

.cs-cta-banner-desc {
  font-size: var(--cs-text-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--cs-space-8);
  position: relative;
  z-index: 1;
}

.cs-cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: var(--cs-space-4);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cs-cta-banner .cs-btn-primary { background: var(--cs-white); color: var(--cs-primary-deeper); border-color: var(--cs-white); }
.cs-cta-banner .cs-btn-primary:hover { background: var(--cs-grey-100); }
.cs-cta-banner .cs-btn-secondary { background: transparent; color: var(--cs-white); border-color: rgba(255,255,255,0.3); }
.cs-cta-banner .cs-btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ============================================================
   FOOTER
   ============================================================ */
#cs-footer {
  background: var(--cs-grey-900);
  color: var(--cs-grey-300);
  padding: var(--cs-space-16) 0 var(--cs-space-8);
}

.cs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--cs-space-12);
  padding-bottom: var(--cs-space-12);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--cs-space-8);
}

@media (max-width: 900px)  { .cs-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px)  { .cs-footer-grid { grid-template-columns: 1fr; } }

.cs-footer-brand .cs-logo-text { color: var(--cs-white); }

.cs-footer-desc {
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-500);
  line-height: 1.7;
  margin-top: var(--cs-space-4);
  margin-bottom: var(--cs-space-5);
}

.cs-footer-col-title {
  font-size: var(--cs-text-xs);
  font-weight: 700;
  color: var(--cs-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--cs-space-5);
}

.cs-footer-links { display: flex; flex-direction: column; gap: var(--cs-space-3); }

.cs-footer-links a {
  font-size: var(--cs-text-sm);
  color: var(--cs-grey-500);
  text-decoration: none;
  transition: color var(--cs-transition);
}

.cs-footer-links a:hover { color: var(--cs-white); }

.cs-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cs-space-4);
  flex-wrap: wrap;
}

.cs-footer-copy {
  font-size: var(--cs-text-xs);
  color: var(--cs-grey-600);
}

.cs-footer-legal {
  display: flex;
  gap: var(--cs-space-4);
}

.cs-footer-legal a {
  font-size: var(--cs-text-xs);
  color: var(--cs-grey-600);
  transition: color var(--cs-transition);
}

.cs-footer-legal a:hover { color: var(--cs-grey-300); }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  .cs-hero-stats { gap: var(--cs-space-5); }
  .cs-hero-stat-divider { display: none; }
  .cs-section    { padding: var(--cs-space-12) 0; }
  .cs-section-lg { padding: var(--cs-space-16) 0; }
  .cs-cta-banner { padding: var(--cs-space-10) var(--cs-space-5); }
  .cs-provider-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cs-animate-in {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.cs-animate-in.visible { animation-play-state: running; }

/* Stagger children */
.cs-stagger > * { opacity: 0; transform: translateY(16px); transition: all 0.5s ease; }
.cs-stagger > *.visible { opacity: 1; transform: none; }
.cs-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.cs-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.cs-stagger > *:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #cs-header, #cs-footer, .cs-compare-bar, .cs-sticky-quote-card { display: none; }
  body { color: #000; background: #fff; }
}

/* ============================================================
   ARTICLE PAGE — HERO
   ============================================================ */
.cs-article-hero {
  background: var(--cs-grey-50);
  border-bottom: 1px solid var(--cs-grey-200);
  padding: var(--cs-space-8) 0;
}

.cs-article-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--cs-space-3);
}

.cs-article-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--cs-space-5);
  color: var(--cs-grey-900);
}

.cs-article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cs-article-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-author-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cs-grey-200);
}

.cs-meta-label { display: block; font-size: 0.7rem; color: var(--cs-grey-400); text-transform: uppercase; letter-spacing: 0.05em; }
.cs-meta-value { display: block; font-size: 0.9rem; font-weight: 600; color: var(--cs-grey-800); }

.cs-article-meta-stats { display: flex; gap: 8px; flex-wrap: wrap; }

.cs-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--cs-grey-600);
  font-weight: 500;
}

/* Article Featured Image */
.cs-article-featured-img {
  padding-top: var(--cs-space-8);
  padding-bottom: 0;
}

.cs-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--cs-radius-xl);
  display: block;
}

/* ============================================================
   ARTICLE LAYOUT — 2-col grid + sidebar
   ============================================================ */
.cs-article-layout { padding-top: var(--cs-space-10); }

.cs-article-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--cs-space-10);
  align-items: start;
}

@media (max-width: 1024px) {
  .cs-article-grid { grid-template-columns: 1fr; }
  /* Sidebar goes BELOW article content on tablet/mobile */
  .cs-article-sidebar { order: 2; }
}

/* Reading Progress Bar */
.cs-reading-progress {
  position: fixed;
  top: var(--cs-header-h);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cs-grey-100);
  z-index: 999;
}
.cs-reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cs-primary), var(--cs-primary-light, #60a5fa));
  width: 0;
  transition: width 0.1s linear;
}

/* Article Prose */
.cs-article-body.cs-prose {
  font-size: var(--cs-text-lg);
  line-height: 1.8;
  color: var(--cs-grey-700);
}
.cs-prose h2 { font-size: 1.6rem; font-weight: 800; margin: 2em 0 0.6em; color: var(--cs-grey-900); }
.cs-prose h3 { font-size: 1.3rem; font-weight: 700; margin: 1.6em 0 0.5em; color: var(--cs-grey-900); }
.cs-prose p { margin-bottom: 1.4em; }
.cs-prose ul, .cs-prose ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.cs-prose li { margin-bottom: 0.4em; }
.cs-prose blockquote {
  border-left: 4px solid var(--cs-primary);
  background: var(--cs-accent-light);
  padding: 16px 20px;
  border-radius: 0 var(--cs-radius) var(--cs-radius) 0;
  margin: 2em 0;
  font-style: italic;
  color: var(--cs-grey-700);
}
.cs-prose img { max-width: 100%; border-radius: var(--cs-radius-lg); margin: 1.5em 0; }
.cs-prose a { color: var(--cs-primary); text-decoration: underline; }

/* Tags */
.cs-article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--cs-space-8);
  padding-top: var(--cs-space-6);
  border-top: 1px solid var(--cs-grey-100);
}
.cs-tags-label { font-size: 0.85rem; font-weight: 600; color: var(--cs-grey-500); margin-right: 4px; }
.cs-tag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cs-grey-100);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--cs-grey-700);
  text-decoration: none;
  transition: all var(--cs-transition);
  font-weight: 500;
}
.cs-tag-pill:hover { background: var(--cs-accent-light); color: var(--cs-primary); }

/* Share Bar */
.cs-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--cs-space-6);
  padding: var(--cs-space-5);
  background: var(--cs-grey-50);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-lg);
}
.cs-share-label { font-size: 0.85rem; font-weight: 700; color: var(--cs-grey-700); margin-right: 4px; }
.cs-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--cs-radius);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--cs-transition);
}
.cs-share-twitter { background: #000; color: #fff; }
.cs-share-twitter:hover { background: #1a1a1a; }
.cs-share-linkedin { background: #0a66c2; color: #fff; }
.cs-share-linkedin:hover { background: #0952a0; }
.cs-share-copy { background: var(--cs-white); color: var(--cs-grey-700); border-color: var(--cs-grey-300); }
.cs-share-copy:hover { background: var(--cs-grey-100); }

/* Inline CTA */
.cs-inline-cta {
  display: flex;
  align-items: center;
  gap: var(--cs-space-5);
  padding: var(--cs-space-6);
  background: linear-gradient(135deg, var(--cs-primary) 0%, var(--cs-primary-dark, #1d4ed8) 100%);
  border-radius: var(--cs-radius-xl);
  margin: var(--cs-space-10) 0;
  color: #fff;
  flex-wrap: wrap;
}
.cs-inline-cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-inline-cta-content { flex: 1; min-width: 200px; }
.cs-inline-cta-content strong { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.cs-inline-cta-content p { font-size: 0.9rem; opacity: 0.85; margin: 0; }
.cs-inline-cta .cs-btn-primary {
  background: rgba(255,255,255,0.95);
  color: var(--cs-primary);
  border: none;
  white-space: nowrap;
  font-weight: 700;
}
.cs-inline-cta .cs-btn-primary:hover { background: #fff; }

/* Related Posts */
.cs-related-posts { margin-top: var(--cs-space-10); padding-top: var(--cs-space-8); border-top: 1px solid var(--cs-grey-200); }
.cs-related-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cs-grey-900);
  margin-bottom: var(--cs-space-5);
}
.cs-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--cs-space-4);
}
.cs-related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--cs-transition);
  background: var(--cs-white);
}
.cs-related-card:hover { border-color: var(--cs-primary); box-shadow: var(--cs-shadow-md); transform: translateY(-2px); }
.cs-related-thumb { height: 120px; overflow: hidden; background: var(--cs-accent-light); position: relative; }
.cs-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cs-related-body { padding: 12px; }
.cs-related-body h4 { font-size: 0.9rem; font-weight: 700; color: var(--cs-grey-900); margin: 4px 0; line-height: 1.4; }
.cs-related-meta { font-size: 0.75rem; color: var(--cs-grey-400); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.cs-article-sidebar {
  position: sticky;
  top: calc(var(--cs-header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: var(--cs-space-5);
}

.cs-sidebar-widget {
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-xl);
  padding: var(--cs-space-5);
}

.cs-sidebar-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cs-grey-900);
  margin-bottom: var(--cs-space-4);
  padding-bottom: var(--cs-space-3);
  border-bottom: 1px solid var(--cs-grey-100);
}

/* CTA Widget */
.cs-sidebar-cta-widget {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border: none;
  color: #fff;
  text-align: center;
}
.cs-sidebar-cta-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--cs-space-4);
  color: #60a5fa;
}
.cs-sidebar-cta-widget h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.cs-sidebar-cta-widget p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: var(--cs-space-4); }

/* Popular Posts */
.cs-popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cs-grey-100);
  text-decoration: none;
  color: inherit;
  transition: all var(--cs-transition);
}
.cs-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.cs-popular-item:hover .cs-popular-title { color: var(--cs-primary); }
.cs-popular-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cs-grey-200);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}
.cs-popular-body { flex: 1; }
.cs-popular-title { display: block; font-size: 0.88rem; font-weight: 600; color: var(--cs-grey-800); line-height: 1.4; margin-bottom: 2px; transition: color var(--cs-transition); }
.cs-popular-meta { font-size: 0.75rem; color: var(--cs-grey-400); }

/* Categories Sidebar */
.cs-sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
.cs-sidebar-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--cs-radius);
  font-size: 0.88rem;
  color: var(--cs-grey-700);
  text-decoration: none;
  transition: all var(--cs-transition);
}
.cs-sidebar-cat-item:hover { background: var(--cs-accent-light); color: var(--cs-primary); }
.cs-sidebar-cat-count {
  background: var(--cs-grey-100);
  color: var(--cs-grey-500);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 100px;
}

/* Newsletter Widget */
.cs-sidebar-newsletter { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-color: #bae6fd; text-align: center; }
.cs-newsletter-icon { font-size: 2rem; margin-bottom: 8px; }
.cs-sidebar-newsletter h4 { font-size: 1rem; font-weight: 800; color: var(--cs-grey-900); margin-bottom: 6px; }
.cs-sidebar-newsletter p { font-size: 0.85rem; color: var(--cs-grey-600); margin-bottom: var(--cs-space-4); }
.cs-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.cs-newsletter-input {
  padding: 10px 14px;
  border: 1px solid #bae6fd;
  border-radius: var(--cs-radius-md);
  font-size: 0.9rem;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.cs-newsletter-input:focus { outline: none; border-color: var(--cs-primary); }

/* Tool Widget */
.cs-sidebar-tool-widget { background: var(--cs-grey-50); }
.cs-tool-widget-icon { font-size: 1.8rem; margin-bottom: 8px; }
.cs-sidebar-tool-widget h4 { font-size: 0.95rem; font-weight: 800; color: var(--cs-grey-900); margin-bottom: 6px; }
.cs-sidebar-tool-widget p { font-size: 0.83rem; color: var(--cs-grey-600); margin-bottom: var(--cs-space-4); }

/* ============================================================
   INSIGHTS LISTING — REVAMPED
   ============================================================ */
.cs-insights-hero {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  padding: 60px 0 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cs-insights-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cs-insights-hero .cs-breadcrumb a { color: rgba(255,255,255,0.5); }
.cs-insights-hero .cs-breadcrumb-sep { color: rgba(255,255,255,0.3); }
.cs-insights-hero .cs-breadcrumb span { color: rgba(255,255,255,0.7); }
.cs-insights-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: var(--cs-space-4) 0 var(--cs-space-2);
  color: #fff;
}
.cs-insights-hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.65); margin-bottom: var(--cs-space-6); max-width: 600px; }
.cs-insights-search-wrap {
  position: relative;
  max-width: 520px;
}
.cs-insights-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}
.cs-insights-search-input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--cs-radius-lg);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all var(--cs-transition);
  backdrop-filter: blur(8px);
}
.cs-insights-search-input::placeholder { color: rgba(255,255,255,0.4); }
.cs-insights-search-input:focus {
  outline: none;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

/* Filter Buttons */
.cs-insights-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--cs-space-8);
}
.cs-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--cs-grey-200);
  border-radius: 100px;
  background: var(--cs-white);
  color: var(--cs-grey-600);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--cs-transition);
  white-space: nowrap;
}
.cs-filter-btn:hover { border-color: var(--cs-primary); color: var(--cs-primary); background: var(--cs-accent-light); }
.cs-filter-btn.active { background: var(--cs-primary); color: #fff; border-color: var(--cs-primary); }

/* Featured Article */
.cs-featured-insight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius-xl);
  overflow: hidden;
  margin-bottom: var(--cs-space-10);
  background: var(--cs-white);
  box-shadow: var(--cs-shadow-lg);
  transition: all var(--cs-transition);
}
.cs-featured-insight:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.1); transform: translateY(-2px); }
.cs-featured-insight-img { display: block; overflow: hidden; }
.cs-featured-insight-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; transition: transform 0.5s ease; }
.cs-featured-insight:hover .cs-featured-insight-img img { transform: scale(1.03); }
.cs-featured-insight-img-placeholder { background: linear-gradient(135deg, var(--cs-accent-light), rgba(37,99,235,0.05)); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.cs-featured-insight-body { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.cs-featured-insight-meta { display: flex; gap: 10px; align-items: center; margin-bottom: var(--cs-space-4); }
.cs-featured-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: #fef3c7; color: #92400e; border-radius: 100px; font-size: 0.75rem; font-weight: 700; }
.cs-featured-insight-title { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: var(--cs-space-4); color: var(--cs-grey-900); }
.cs-featured-insight-title a { text-decoration: none; color: inherit; transition: color var(--cs-transition); }
.cs-featured-insight-title a:hover { color: var(--cs-primary); }
.cs-featured-insight-excerpt { color: var(--cs-grey-600); line-height: 1.7; margin-bottom: var(--cs-space-5); font-size: 1rem; }
.cs-featured-insight-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-insight-meta-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--cs-grey-400); }

@media (max-width: 768px) {
  .cs-featured-insight { grid-template-columns: 1fr; }
  .cs-featured-insight-img img { min-height: 220px; }
  .cs-featured-insight-body { padding: 24px; }
}

/* Card enhancements */
.cs-insight-card { position: relative; }
.cs-insight-thumb { position: relative; display: block; overflow: hidden; }
.cs-card-cat-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cs-insight-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cs-insight-meta-left { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--cs-grey-400); }
.cs-meta-avatar { width: 22px !important; height: 22px !important; border-radius: 50%; object-fit: cover; }
.cs-insight-date { font-size: 0.78rem; color: var(--cs-grey-400); }

/* Insights CTA Banner */
.cs-insights-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cs-space-8);
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--cs-primary) 0%, #1e3a8a 100%);
  padding: var(--cs-space-10) var(--cs-space-10);
  border-radius: var(--cs-radius-xl);
  margin-top: var(--cs-space-12);
  color: #fff;
}
.cs-insights-cta-text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.cs-insights-cta-text p { font-size: 1rem; color: rgba(255,255,255,0.75); margin: 0; }
.cs-insights-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .cs-insights-cta-banner { padding: var(--cs-space-8) var(--cs-space-6); }
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS — COMPREHENSIVE OVERRIDES
   All breakpoints: 1024px (tablet), 768px (large mobile), 480px (small mobile)
   ============================================================ */

/* ---- HEADER ---- */
@media (max-width: 1024px) {
  .cs-header-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
  .cs-nav {
    display: none !important;
    position: fixed;
    top: var(--cs-header-h);
    left: 0; right: 0;
    background: var(--cs-white);
    border-bottom: 1px solid var(--cs-grey-200);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;
    align-items: flex-start;
  }
  .cs-nav.open { display: flex !important; }
  .cs-nav-toggle { display: flex !important; }
  .cs-header-actions .cs-btn { display: none; }
  .cs-header-actions { justify-self: auto; }
}

/* ---- HERO SECTION ---- */
@media (max-width: 768px) {
  #cs-hero { padding: 60px 20px 48px; min-height: auto; }
  .cs-hero-title { font-size: clamp(1.8rem, 7vw, 3rem) !important; }
  .cs-hero-desc { font-size: 1rem !important; }
  .cs-hero-actions { flex-direction: column; align-items: stretch; gap: 12px !important; }
  .cs-hero-actions .cs-btn { width: 100%; justify-content: center; }
  .cs-hero-stats { gap: 20px; flex-wrap: wrap; }
  .cs-hero-search { padding: 0 16px; }
}

/* ---- PROVIDER GRID ---- */
@media (max-width: 900px) {
  .cs-provider-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .cs-provider-grid { grid-template-columns: 1fr; }
  .cs-provider-card { min-height: auto; }
}

/* ---- PROVIDER DETAIL PAGE ---- */
@media (max-width: 1024px) {
  .cs-provider-detail-layout {
    grid-template-columns: 1fr !important;
  }
  .cs-sticky-quote-card {
    position: static !important;
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  .cs-provider-detail-hero { padding: 24px 16px !important; }
  .cs-provider-detail-hero .cs-container { padding-inline: 16px; }
  /* Provider hero stacking: logo + info */
  .cs-provider-detail-hero [style*="display:flex;align-items:flex-start"] {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .cs-provider-logo-wrap { width: 64px !important; height: 64px !important; }
  /* Tabs scroll horizontally on mobile */
  .cs-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .cs-tabs::-webkit-scrollbar { display: none; }
  .cs-tab { white-space: nowrap; flex-shrink: 0; padding: 10px 14px; font-size: 0.85rem; }
  /* Sticky quote card becomes a bottom bar on mobile */
  .cs-sticky-quote-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    z-index: 100;
    padding: 12px 20px !important;
    background: var(--cs-white);
    border-top: 1px solid var(--cs-grey-200) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .cs-sticky-quote-card > div:first-child { flex: 1; }
  .cs-sticky-quote-card > a,
  .cs-sticky-quote-card > button { flex-shrink: 0; width: auto !important; }
  /* Add bottom padding to body so content doesn't hide behind sticky bar */
  body.single-cs_provider .cs-section:last-of-type { padding-bottom: 100px; }
  /* Pro/Cons grid */
  .cs-pros-cons { grid-template-columns: 1fr !important; gap: 16px; }
  /* Spec table */
  .cs-spec-table td { display: block; }
  .cs-spec-table td:first-child { font-weight: 700; color: var(--cs-grey-500); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 2px; border-bottom: none; }
  .cs-spec-table td:last-child { padding-top: 0; padding-bottom: 12px; }
}

/* ---- ARTICLE / BLOG SINGLE ---- */
@media (max-width: 1024px) {
  .cs-article-grid {
    grid-template-columns: 1fr !important;
  }
  /* Sidebar goes AFTER article content — no order:-1 */
  .cs-article-sidebar {
    order: 2;
    position: static !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: var(--cs-space-8);
  }
  .cs-sidebar-cta-widget { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cs-article-sidebar {
    grid-template-columns: 1fr;
  }
  .cs-article-hero { padding: 20px 0; }
  .cs-article-headline { font-size: clamp(1.4rem, 6vw, 2rem); }
  .cs-article-meta-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cs-share-bar { flex-direction: column; align-items: flex-start; }
  .cs-share-buttons { flex-wrap: wrap; }
  .cs-inline-cta { flex-direction: column; text-align: center; }
  .cs-inline-cta-icon { margin: 0 auto; }
  .cs-related-grid { grid-template-columns: 1fr; }
  .cs-article-body.cs-prose { font-size: 1rem; }
}

/* ---- INSIGHTS LISTING PAGE ---- */
@media (max-width: 768px) {
  .cs-insights-hero { padding: 40px 0 32px; }
  .cs-insights-hero-title { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .cs-insights-search-input { font-size: 16px; /* prevent iOS zoom */ }
  .cs-featured-insight { grid-template-columns: 1fr !important; }
  .cs-featured-insight-body { padding: 24px 20px !important; }
  .cs-featured-insight-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cs-featured-insight-footer .cs-btn { width: 100%; justify-content: center; }
  .cs-insights-grid { grid-template-columns: 1fr !important; }
  .cs-insights-filters { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .cs-insights-filters::-webkit-scrollbar { display: none; }
  .cs-filter-btn { flex-shrink: 0; }
  .cs-insights-cta-banner { flex-direction: column; text-align: center; gap: 24px; padding: 32px 20px; }
  .cs-insights-cta-actions { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .cs-insights-grid { grid-template-columns: 1fr; }
}

/* ---- INSIGHTS CARD GRID ---- */
@media (max-width: 900px) {
  .cs-insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cs-insights-grid { grid-template-columns: 1fr; }
}

/* ---- COMPARE PAGE ---- */
@media (max-width: 768px) {
  .cs-compare-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cs-compare-table { min-width: 480px; }
  .cs-compare-bar { padding: 12px 16px; gap: 8px; }
  .cs-compare-bar-items { flex-wrap: nowrap; overflow-x: auto; }
}

/* ---- REGIONS / GPU TYPE GRIDS ---- */
@media (max-width: 768px) {
  .cs-regions-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cs-gpu-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .cs-regions-grid { grid-template-columns: 1fr !important; }
  .cs-gpu-grid { grid-template-columns: 1fr !important; }
}

/* ---- CTA BANNER ---- */
@media (max-width: 768px) {
  .cs-cta-banner {
    padding: var(--cs-space-8) var(--cs-space-5) !important;
    border-radius: 0;
    margin-left: calc(-1 * var(--cs-space-4));
    margin-right: calc(-1 * var(--cs-space-4));
  }
  .cs-cta-banner-actions { flex-direction: column; align-items: stretch; }
  .cs-cta-banner-actions .cs-btn { width: 100%; justify-content: center; }
}

/* ---- FOOTER ---- */
@media (max-width: 600px) {
  .cs-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cs-footer-legal { flex-wrap: wrap; justify-content: center; }
}

/* ---- GENERAL MOBILE POLISH ---- */
@media (max-width: 768px) {
  /* Prevent horizontal scroll globally */
  html, body { overflow-x: hidden; max-width: 100%; }
  /* Touch-friendly tap targets */
  .cs-btn { min-height: 44px; }
  .cs-nav-link { min-height: 44px; display: flex; align-items: center; width: 100%; }
  /* Section spacing */
  .cs-section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .cs-section-sm { padding-top: 32px !important; padding-bottom: 32px !important; }
  /* Typography */
  h1 { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
  /* Forms */
  input, select, textarea { font-size: 16px !important; /* prevent iOS zoom */ }
  /* Tables */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .cs-container { padding-inline: 16px; }
  .cs-btn-lg { padding: 12px 20px; font-size: 0.95rem; }
  .cs-hero-badge { font-size: 0.7rem; }
  .cs-section { padding-top: 36px !important; padding-bottom: 36px !important; }
}

/* ============================================================
   GET QUOTE PAGE LAYOUT
   ============================================================ */
.cs-quote-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--cs-space-10);
  align-items: start;
}

.cs-quote-sidebar {
  position: sticky;
  top: calc(var(--cs-header-h) + 24px);
}

@media (max-width: 900px) {
  .cs-quote-layout {
    grid-template-columns: 1fr;
  }
  .cs-quote-sidebar {
    position: static;
    /* Show sidebar AFTER the form on mobile */
    order: 2;
    margin-top: var(--cs-space-6);
  }
}

/* ============================================================
   PROVIDER STICKY BAR — COMPACT MOBILE VERSION
   ============================================================ */
@media (max-width: 768px) {
  /* The outer wrapper div that contains the sticky card */
  .cs-sticky-quote-card {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    z-index: 200;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid var(--cs-grey-200) !important;
    background: var(--cs-white) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    /* Single compact row */
    padding: 10px 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  /* Price block — left side, takes remaining space */
  .cs-sticky-quote-card > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;  /* remove desktop margin */
  }
  /* Hide "Starting from" label to save space */
  .cs-sticky-quote-card > div:first-child > div:first-child {
    display: none !important;
  }
  /* Price number — smaller on mobile */
  .cs-sticky-quote-card > div:first-child span {
    font-size: 1.2rem !important;
  }

  /* Get a Quote button — inline, auto width */
  .cs-sticky-quote-card > a.cs-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    margin-bottom: 0 !important;
    text-align: center;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Add to Compare button — inline, auto width */
  .cs-sticky-quote-card > button.cs-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hide trust signals (checkmarks) completely */
  .cs-sticky-quote-card > div:last-child {
    display: none !important;
  }

  /* Bottom padding so page content is not hidden behind the bar */
  body { padding-bottom: 72px !important; }
}

/* ============================================================
   ANTI-OVERLAP & OVERFLOW PROTECTION
   ============================================================ */
* { box-sizing: border-box; }

@media (max-width: 768px) {
  /* Prevent any element from being wider than its container */
  img, video, iframe, svg { max-width: 100%; height: auto; }
  /* Prevent inline grids from overflowing */
  [style*="display:grid"] { max-width: 100%; }
  /* Prevent inline flex from wrapping off-screen */
  [style*="display:flex"] { max-width: 100%; min-width: 0; }
  /* Read progress bar must stay behind the header */
  .cs-reading-progress { top: var(--cs-header-h); }
}

/* ================================================================
   SEO PAGE COMPONENTS
   Location, GPU Type, Use Case taxonomy pages
   ================================================================ */

/* ── LOCATION HERO ── */
.cs-location-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f2044 100%);
  padding: 80px 0 60px;
  color: #fff;
}
.cs-location-hero .cs-breadcrumb a,
.cs-location-hero .cs-breadcrumb-sep,
.cs-location-hero .cs-breadcrumb span { color: rgba(255,255,255,0.6); }
.cs-location-hero .cs-breadcrumb a:hover { color: #fff; }

.cs-location-hero-tag,
.cs-gpu-hero-tag,
.cs-usecase-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.2); color: var(--cs-primary-light, #60a5fa);
  border: 1px solid rgba(37,99,235,0.3); border-radius: 20px;
  padding: 4px 14px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.cs-location-hero-title,
.cs-gpu-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: #fff; margin-bottom: 16px;
}
.cs-location-hero-sub,
.cs-gpu-hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  max-width: 680px; line-height: 1.6; margin-bottom: 28px;
}
.cs-location-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* GPU spec strip */
.cs-gpu-spec-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  background: rgba(255,255,255,0.08); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 28px; overflow: hidden;
}
.cs-gpu-spec-item {
  flex: 1; min-width: 120px;
  padding: 16px 20px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.cs-gpu-spec-item:last-child { border-right: none; }
.cs-gpu-spec-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }
.cs-gpu-spec-val   { font-size: 1rem; font-weight: 700; color: #fff; }

/* GPU/UseCase hero */
.cs-gpu-hero, .cs-usecase-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f2044 100%);
  padding: 80px 0 60px; color: #fff;
}
.cs-gpu-hero .cs-breadcrumb a,
.cs-gpu-hero .cs-breadcrumb-sep,
.cs-gpu-hero .cs-breadcrumb span,
.cs-usecase-hero .cs-breadcrumb a,
.cs-usecase-hero .cs-breadcrumb-sep,
.cs-usecase-hero .cs-breadcrumb span { color: rgba(255,255,255,0.6); }

/* ── LOCATION / GPU / UC CONTENT LAYOUT ── */
.cs-location-content { background: var(--cs-grey-50, #f8fafc); }
.cs-gpu-content      { background: var(--cs-grey-50, #f8fafc); }

.cs-location-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.cs-location-main  { min-width: 0; }
.cs-location-sidebar { min-width: 0; position: sticky; top: calc(var(--cs-header-h, 72px) + 24px); }

/* ── PROSE / OVERVIEW AREA ── */
.cs-location-overview,
.cs-gpu-overview { background: #fff; border-radius: 16px; padding: 36px; margin-bottom: 32px; border: 1px solid var(--cs-grey-200); }
.cs-prose h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 16px; color: var(--cs-grey-900); }
.cs-prose h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 12px; color: var(--cs-grey-800); }
.cs-prose p  { color: var(--cs-grey-600); line-height: 1.7; margin-bottom: 16px; }
.cs-prose ul, .cs-prose ol { padding-left: 20px; color: var(--cs-grey-600); line-height: 1.7; margin-bottom: 16px; }
.cs-prose li { margin-bottom: 8px; }
.cs-prose strong { color: var(--cs-grey-900); font-weight: 600; }

/* ── SECTION TITLE ── */
.cs-section-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: var(--cs-grey-900); }

/* ── LOCATION PROVIDER CARDS ── */
.cs-location-provider-list { display: flex; flex-direction: column; gap: 12px; }

.cs-location-provider-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: 12px;
  border: 1px solid var(--cs-grey-200);
  padding: 16px 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cs-location-provider-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: var(--cs-primary);
}
.cs-lpc-logo { width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cs-lpc-logo img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.cs-lpc-logo-placeholder {
  width: 48px; height: 48px; background: var(--cs-grey-100);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.cs-lpc-body  { flex: 1; min-width: 0; }
.cs-lpc-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cs-lpc-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.cs-lpc-name  { font-size: 1rem; font-weight: 700; margin: 0; }
.cs-lpc-name a { color: var(--cs-grey-900); text-decoration: none; }
.cs-lpc-name a:hover { color: var(--cs-primary); }
.cs-lpc-tagline { font-size: 0.8rem; color: var(--cs-grey-500); margin: 0 0 2px; }
.cs-lpc-gpus    { font-size: 0.8rem; color: var(--cs-grey-500); margin: 0; }
.cs-lpc-price   { display: flex; align-items: baseline; gap: 2px; }
.cs-lpc-price-val  { font-size: 1.2rem; font-weight: 800; color: var(--cs-grey-900); }
.cs-lpc-price-unit { font-size: 0.75rem; color: var(--cs-grey-400); }
.cs-lpc-rating  { font-size: 0.85rem; font-weight: 600; color: var(--cs-primary); }

/* ── SIDEBAR WIDGETS ── */
.cs-location-sidebar-widget {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--cs-grey-200);
  padding: 20px; margin-bottom: 16px;
}
.cs-sidebar-widget-title {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--cs-grey-500); margin: 0 0 14px;
}
.cs-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--cs-grey-100);
  font-size: 0.875rem; color: var(--cs-grey-600);
}
.cs-stat-row:last-child { border-bottom: none; }
.cs-stat-row strong { color: var(--cs-grey-900); font-weight: 600; }
.cs-sidebar-region-link {
  display: block; font-size: 0.85rem; color: var(--cs-primary);
  padding: 6px 0; border-bottom: 1px solid var(--cs-grey-100);
  text-decoration: none; transition: color 0.2s;
}
.cs-sidebar-region-link:last-child { border-bottom: none; }
.cs-sidebar-region-link:hover { color: var(--cs-primary-deep, #1d4ed8); }

.cs-location-sidebar-cta {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: 12px; padding: 24px; color: #fff;
}
.cs-location-sidebar-cta h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.cs-location-sidebar-cta p  { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.cs-sidebar-cta-note { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 10px; text-align: center; }

/* ── LOCATION PROVIDERS SECTION ── */
.cs-location-providers { margin-bottom: 40px; }
.cs-gpu-providers       { margin-bottom: 40px; }

/* ── CTA BANNER ── */
.cs-location-cta-banner {
  background: linear-gradient(135deg, var(--cs-primary, #2563eb), #1d4ed8);
  border-radius: 16px; padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-top: 40px;
}
.cs-cta-banner-content h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.cs-cta-banner-content p  { color: rgba(255,255,255,0.85); margin: 0; }
.cs-location-cta-banner .cs-btn-primary {
  background: #fff; color: var(--cs-primary); border-color: #fff;
  white-space: nowrap; flex-shrink: 0;
}
.cs-location-cta-banner .cs-btn-primary:hover { background: var(--cs-grey-50); }

/* ── INTERNAL LINKS SECTION ── */
.cs-internal-links-section {
  background: var(--cs-grey-50, #f8fafc);
  border: 1px solid var(--cs-grey-200); border-radius: 16px;
  padding: 32px; margin-top: 40px;
}
.cs-il-heading { font-size: 1.2rem; font-weight: 700; margin: 0 0 20px; color: var(--cs-grey-900); }
.cs-il-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cs-il-group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--cs-grey-500); margin: 0 0 12px;
}
.cs-il-list { list-style: none; margin: 0; padding: 0; }
.cs-il-list li { border-bottom: 1px solid var(--cs-grey-100); }
.cs-il-list li:last-child { border-bottom: none; }
.cs-il-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; text-decoration: none; gap: 8px;
}
.cs-il-link-name { font-size: 0.875rem; color: var(--cs-grey-800); font-weight: 500; }
.cs-il-link:hover .cs-il-link-name { color: var(--cs-primary); }
.cs-il-link-meta { font-size: 0.75rem; color: var(--cs-grey-400); white-space: nowrap; }

/* ── FAQ SECTION ── */
.cs-faq-section {
  background: #fff; border: 1px solid var(--cs-grey-200);
  border-radius: 16px; padding: 32px; margin-bottom: 32px;
}
.cs-faq-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 20px; color: var(--cs-grey-900); }
.cs-faq-list  { display: flex; flex-direction: column; gap: 0; }
.cs-faq-item  { border-bottom: 1px solid var(--cs-grey-100); }
.cs-faq-item:last-child { border-bottom: none; }
.cs-faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; text-align: left;
  font-size: 0.95rem; font-weight: 600; color: var(--cs-grey-900);
  transition: color 0.2s;
}
.cs-faq-q:hover { color: var(--cs-primary); }
.cs-faq-q[aria-expanded="true"] .cs-faq-icon { transform: rotate(180deg); }
.cs-faq-icon { flex-shrink: 0; transition: transform 0.25s; color: var(--cs-grey-400); }
.cs-faq-a {
  padding: 0 0 16px;
  font-size: 0.9rem; color: var(--cs-grey-600); line-height: 1.7;
}
.cs-faq-a p { margin: 0; }

/* ── MOBILE RESPONSIVE for SEO pages ── */
@media (max-width: 900px) {
  .cs-location-layout { grid-template-columns: 1fr; gap: 28px; }
  .cs-location-main   { order: 1; }
  .cs-location-sidebar { order: 2; position: static; }
  .cs-il-grid { grid-template-columns: 1fr; gap: 16px; }
  .cs-gpu-spec-strip { flex-direction: row; flex-wrap: wrap; }
  .cs-gpu-spec-item { flex: 1 1 45%; border-bottom: 1px solid rgba(255,255,255,0.1); border-right: none; }
  .cs-location-cta-banner { flex-direction: column; text-align: center; }
  .cs-location-cta-banner .cs-btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .cs-location-hero, .cs-gpu-hero, .cs-usecase-hero { padding: 48px 0 36px; }
  .cs-location-hero-title, .cs-gpu-hero-title { font-size: 1.7rem; }
  .cs-location-hero-cta { flex-direction: column; }
  .cs-location-hero-cta .cs-btn { width: 100%; justify-content: center; }
  .cs-location-provider-card { flex-wrap: wrap; }
  .cs-lpc-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .cs-location-overview, .cs-gpu-overview { padding: 20px; }
  .cs-faq-section, .cs-internal-links-section { padding: 20px; }
}

/* ============================================================
   PAGINATION UI
   ============================================================ */
.pagination {
  margin-top: var(--cs-space-12);
  padding-top: var(--cs-space-8);
  border-top: 1px solid var(--cs-grey-200);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--cs-space-2);
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--cs-white);
  border: 1px solid var(--cs-grey-200);
  border-radius: var(--cs-radius);
  font-size: var(--cs-text-sm);
  font-weight: 500;
  color: var(--cs-grey-600);
  text-decoration: none;
  transition: all var(--cs-transition);
}
.pagination .page-numbers:hover {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
  background: var(--cs-grey-50);
}
.pagination .page-numbers.current {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: var(--cs-white);
}
.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  pointer-events: none;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
}

/* ── VERIFIED PROVIDER BADGE TOOLTIP ── */
.cs-verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  min-width: max-content;
  flex-shrink: 0 !important;
  cursor: help;
}
.cs-verified-badge svg {
  flex-shrink: 0 !important;
  display: block;
}

.cs-verified-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--cs-grey-900);
  color: var(--cs-white);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--cs-radius);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
  box-shadow: var(--cs-shadow-md);
}

.cs-verified-badge::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--cs-grey-900) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.cs-verified-badge:hover::after,
.cs-verified-badge:hover::before,
.cs-verified-badge:active::after,
.cs-verified-badge:active::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cs-verified-badge:hover::before,
.cs-verified-badge:active::before {
  transform: translateX(-50%) translateY(4px);
}

@media (max-width: 768px) {
  .cs-verified-badge::after {
      white-space: normal;
      width: 220px;
      text-align: center;
      margin-left: -60px; /* Anchor correction for mobile */
      cursor: pointer;
  }
}
