/* ==========================================================================
   SOLAR PAKISTAN GUIDE — MODERN MOBILE-FIRST DESIGN SYSTEM
   Optimized for high performance, Core Web Vitals, & WordPress Theme Porting
   ========================================================================== */

/* Note: Fonts (Plus Jakarta Sans & Outfit) loaded asynchronously via functions.php to eliminate render-blocking CSS */

:root {
  /* Solar Energy & Clean Tech Color Palette */
  --solar-amber: #f59e0b;
  --solar-amber-light: #fef3c7;
  --solar-gold: #fbbf24;
  --solar-orange: #c2410c;
  --brand-primary: #0284c7;        /* Clean Sky Blue */
  --brand-primary-dark: #0369a1;
  --brand-primary-light: #e0f2fe;
  
  --eco-emerald: #10b981;         /* Bill Savings Green */
  --eco-emerald-light: #d1fae5;
  --eco-emerald-dark: #047857;

  /* Surfaces & Neutrals */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;             /* High Authority Deep Slate */
  --bg-dark-surface: #1e293b;
  --bg-dark-border: #334155;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-light: #e2e8f0;
  --border-focus: #f59e0b;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-gold: 0 10px 25px -5px rgba(245, 158, 11, 0.3);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Transitions & Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container Widths */
  --container-max: 1240px;
  --content-max: 820px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  font-weight: 400;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 74px; /* Essential: Prevents sticky bottom bar from obscuring footer & buttons! */
  }
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.85rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.15rem; }

/* Global Utilities */
.spg-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 480px) {
  .spg-container {
    padding: 0 1rem;
  }
}

@media (max-width: 350px) {
  .spg-container {
    padding: 0 0.75rem;
  }
}

.spg-container-narrow {
  max-width: var(--content-max);
}

.spg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.spg-badge-amber {
  background: var(--solar-amber-light);
  color: #9a3412;
  font-weight: 700;
}

.spg-badge-green {
  background: var(--eco-emerald-light);
  color: var(--eco-emerald-dark);
}

.spg-badge-blue {
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
}

/* Live Solar Rates Bar (Top Sticky / Alert Bar) */
.spg-rates-bar {
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg-dark-border);
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

@media (max-width: 480px) {
  .spg-rates-bar {
    font-size: 0.74rem;
    padding: 0.35rem 0;
  }
}

.spg-rates-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 480px) {
  .spg-rates-inner {
    gap: 0.4rem;
  }
}

.spg-rates-ticker {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.spg-rates-track {
  display: flex;
  align-items: center;
  width: max-content;
  flex-shrink: 0;
  animation: spgTickerMarquee 38s linear infinite;
  will-change: transform;
}

.spg-rates-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  flex-shrink: 0;
}

/* Pause animation on hover or touch so user can inspect rates */
.spg-rates-ticker:hover .spg-rates-track,
.spg-rates-ticker:active .spg-rates-track {
  animation-play-state: paused;
}

@keyframes spgTickerMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 639px) {
  .spg-rates-track {
    animation-duration: 32s;
  }
  .spg-rates-group {
    gap: 1.25rem;
    padding-right: 1.25rem;
  }
  .spg-rates-ticker {
    mask-image: linear-gradient(90deg, transparent 0%, #000 12px, #000 calc(100% - 12px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spg-rates-ticker {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .spg-rates-track {
    animation: none;
  }
}

.spg-rate-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.spg-rate-label {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.8rem;
}

.spg-rate-val {
  color: #f8fafc;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.spg-rate-change-up {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
}

.spg-rate-change-down {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
}

.spg-rate-change-neutral {
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
}

.spg-rates-city {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--solar-gold);
  font-weight: 700;
  flex-shrink: 0;
  z-index: 2;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .spg-rates-city {
    font-size: 0.75rem;
    gap: 0.25rem;
  }
}

.spg-rates-city .rates-label-short {
  display: none;
}

.spg-rates-date-stamp {
  font-size: 0.75rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.spg-verified-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

@media (max-width: 768px) {
  .spg-rates-date-stamp,
  .desktop-only {
    display: none !important;
  }
  .spg-rates-city .rates-label-full {
    display: none;
  }
  .spg-rates-city .rates-label-short {
    display: inline;
  }
  .spg-rates-city {
    font-size: 0.75rem;
    gap: 0.2rem;
  }
  .spg-rates-ticker {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
}


/* Site Header */
.spg-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.spg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 991px) {
  .spg-header-inner {
    height: 60px;
    gap: 0.5rem;
  }
}

.spg-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.spg-logo-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: white;
  flex-shrink: 0;
  overflow: hidden;
  padding: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spg-logo:hover .spg-logo-icon {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.spg-logo-icon img,
.spg-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.spg-logo-icon-footer {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 991px) {
  .spg-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    padding: 1.5px;
  }
  .spg-logo-icon svg {
    width: 20px;
    height: 20px;
  }
}

.spg-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.spg-logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .spg-logo-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 360px) {
  .spg-logo {
    gap: 0.4rem;
  }
  .spg-logo-icon {
    width: 32px;
    height: 32px;
  }
  .spg-logo-title {
    font-size: 0.94rem;
  }
}

.spg-logo-title span {
  color: var(--solar-orange);
}

.spg-logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .spg-logo-sub {
    display: none !important; /* Hide subtitle on mobile/tablet to prevent horizontal crowding */
  }
}

/* Custom Image Logo Support (Static HTML & WordPress Customizer) */
.spg-logo-custom {
  display: flex;
  align-items: center;
  max-height: 48px;
}

.spg-logo-custom img,
.custom-logo-link img,
.custom-logo {
  max-height: 44px;
  width: auto;
  height: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 991px) {
  .spg-logo-custom img,
  .custom-logo-link img,
  .custom-logo {
    max-height: 36px;
    max-width: 170px;
  }
}

/* Nav Menu */
.spg-nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .spg-nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.1vw, 1.25rem);
  }
}

.spg-nav-link {
  font-weight: 600;
  font-size: clamp(0.82rem, 0.88vw, 0.92rem);
  color: var(--text-main);
  padding: 0.5rem 0.2rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.spg-nav-link:hover, .spg-nav-link.active {
  color: var(--solar-orange);
}

.spg-nav-dropdown {
  position: relative;
}

.spg-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 275px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  padding: 0.65rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.spg-nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.spg-nav-dropdown:hover .spg-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.spg-nav-dropdown-menu.dropdown-right {
  left: auto;
  right: 0;
}

.spg-dropdown-item {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.spg-dropdown-item:hover {
  background: var(--bg-main);
  color: var(--solar-orange);
  padding-left: 1.45rem;
}

/* Header CTAs */
.spg-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .spg-header-actions {
    gap: 0.35rem;
  }
  .spg-header-actions .spg-btn {
    display: none !important; /* CRITICAL: Hides CTA button on phones and tablets so logo + hamburger fit 100% on a single line with ZERO overflow */
  }
}

.spg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.spg-btn-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.spg-btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: white;
}

.spg-btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.spg-btn-secondary:hover {
  background: var(--bg-main);
  border-color: var(--text-muted);
}

.spg-btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.spg-btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.spg-btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: white;
}

/* Mobile Hamburger Toggle */
.spg-mobile-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: all var(--transition-fast);
}

.spg-mobile-toggle:hover, 
.spg-mobile-toggle:active,
.spg-mobile-toggle:focus-visible {
  background: #f8fafc !important;
  border-color: #0f172a !important;
  color: #ea580c !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.spg-mobile-toggle svg,
.spg-mobile-toggle .spg-hamburger-icon {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  stroke: #0f172a !important;
  stroke-width: 2.5px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  flex-shrink: 0 !important;
  transition: stroke var(--transition-fast);
}

.spg-mobile-toggle svg path,
.spg-mobile-toggle svg line {
  stroke: #0f172a !important;
  stroke-width: 2.5px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.spg-mobile-toggle:hover svg,
.spg-mobile-toggle:active svg,
.spg-mobile-toggle:hover svg path,
.spg-mobile-toggle:active svg path {
  stroke: #ea580c !important;
}

@media (min-width: 992px) {
  .spg-mobile-toggle {
    display: none !important;
  }
}

/* Mobile Drawer Overlay */
.spg-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.spg-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  background: white;
  z-index: 210;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.spg-drawer.open {
  transform: translateX(0);
}

.spg-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.spg-drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spg-drawer-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spg-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spg-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
}

.spg-drawer-sublinks {
  padding: 0.25rem 0 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spg-drawer-sublink {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

/* Mobile Sticky Bottom Floating Bar */
.spg-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--bg-dark-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.4rem 0.5rem;
  padding-bottom: max(0.4rem, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .spg-mobile-bar {
    display: none;
  }
}

.spg-m-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0;
  min-height: 44px;
}

.spg-m-item.active, .spg-m-item:hover {
  color: var(--solar-gold);
}

.spg-m-item svg {
  width: 20px;
  height: 20px;
}

/* Hero Section */
.spg-hero {
  position: relative;
  background-color: #080f1e;
  background-image: 
    linear-gradient(180deg, 
      rgba(8, 15, 30, 0.72) 0%, 
      rgba(15, 23, 42, 0.82) 40%, 
      rgba(15, 23, 42, 0.94) 80%, 
      #0f172a 100%
    ),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(245, 158, 11, 0.25) 0%, transparent 65%),
    url('../images/hero-solar-bg.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: white;
  padding: 3.75rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 639px) {
  .spg-hero {
    padding: 2.75rem 0 3.25rem;
    background-position: center 20%;
    background-image: 
      linear-gradient(180deg, 
        rgba(8, 15, 30, 0.78) 0%, 
        rgba(15, 23, 42, 0.88) 40%, 
        rgba(15, 23, 42, 0.96) 80%, 
        #0f172a 100%
      ),
      radial-gradient(ellipse 90% 60% at 50% 0%, rgba(245, 158, 11, 0.25) 0%, transparent 65%),
      url('../images/hero-solar-bg-mobile.webp');
  }
}

.spg-hero::after {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.spg-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.spg-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  color: #fef08a;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  max-width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

@media (max-width: 639px) {
  .spg-hero-tag {
    font-size: 0.74rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.15rem;
    line-height: 1.35;
  }
}

.spg-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: spgPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes spgPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.spg-hero-title {
  color: #ffffff;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  word-break: break-word;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 639px) {
  .spg-hero-title {
    font-size: clamp(1.65rem, 6.8vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }
}

.spg-hero-title span {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 35%, #f59e0b 70%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.35));
}

.spg-hero-desc {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: #e2e8f0;
  max-width: 720px;
  margin: 0 auto 1.85rem;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 400;
}

@media (max-width: 639px) {
  .spg-hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
  }
}

.spg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0;
  width: 100%;
}

@media (max-width: 639px) {
  .spg-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 0;
  }
  .spg-hero-actions .spg-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.85rem 1.35rem;
    font-size: 0.95rem;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
  }
}

.spg-btn-hero {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #ea580c 100%);
  color: #0f172a !important;
  font-weight: 800;
  box-shadow: 0 8px 25px -4px rgba(245, 158, 11, 0.5), 0 0 0 1px rgba(251, 191, 36, 0.4);
  transition: all var(--transition-normal);
}

.spg-btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(245, 158, 11, 0.65), 0 0 0 2px rgba(251, 191, 36, 0.6);
}

.spg-btn-hero-glass {
  background: rgba(15, 23, 42, 0.65) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
}

.spg-btn-hero-glass:hover {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #fbbf24 !important;
  transform: translateY(-2px);
}

/* Quick Solar Calculator Widget on Hero */
.spg-hero-widget {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 639px) {
  .spg-hero-widget {
    padding: 1.1rem 0.85rem;
    border-radius: var(--radius-md);
  }
}

.spg-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

@media (max-width: 639px) {
  .spg-widget-title {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }
}

.spg-widget-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .spg-widget-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spg-widget-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  text-align: left;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

@media (max-width: 639px) {
  .spg-widget-box {
    padding: 0.95rem;
  }
}

.spg-widget-box:hover {
  border-color: var(--solar-amber);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -3px rgba(245, 158, 11, 0.25);
}

.spg-widget-box h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.spg-widget-box p {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

/* Modern Trust & Market Stats Strip */
.spg-stats-strip {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.spg-stats-strip-inner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 5px 15px -3px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .spg-stats-strip-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.spg-stat-strip-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  border-left: 3.5px solid var(--solar-amber);
  padding-left: 1rem;
}

.spg-stat-strip-item.stat-green {
  border-left-color: var(--eco-emerald);
}

.spg-stat-strip-item.stat-blue {
  border-left-color: var(--brand-primary);
}

.spg-stat-strip-item.stat-orange {
  border-left-color: var(--solar-orange);
}

.spg-stat-strip-val {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  letter-spacing: -0.015em;
}

.spg-stat-strip-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.38;
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 639px) {
  .spg-stats-strip {
    margin-top: -1.75rem;
    margin-bottom: 1.5rem;
  }
  .spg-stats-strip-inner {
    padding: 1.1rem 0.85rem;
    gap: 1rem 0.75rem;
    border-radius: var(--radius-lg);
  }
  .spg-stat-strip-item {
    border-left-width: 3px;
    padding-left: 0.65rem;
  }
  .spg-stat-strip-val {
    font-size: clamp(1.02rem, 4.1vw, 1.3rem);
    line-height: 1.15;
    margin-bottom: 0.25rem;
  }
  .spg-stat-strip-label {
    font-size: 0.73rem;
    line-height: 1.32;
    color: #64748b;
  }
}

@media (max-width: 374px) {
  .spg-stats-strip-inner {
    padding: 0.95rem 0.65rem;
    gap: 0.85rem 0.5rem;
  }
  .spg-stat-strip-item {
    padding-left: 0.5rem;
  }
  .spg-stat-strip-val {
    font-size: 0.96rem;
  }
  .spg-stat-strip-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }
}

/* Interactive System Capacity Sizer */
.spg-cap-tool {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.75rem;
}

@media (max-width: 639px) {
  .spg-cap-tool {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
}

.spg-cap-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .spg-cap-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spg-cap-btn {
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.spg-cap-btn span {
  color: #0f172a;
  font-weight: 700;
}

.spg-cap-btn small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.spg-cap-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.spg-cap-btn.active {
  background-color: #fffbeb;
  background-image: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #d97706;
  color: #78350f;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.spg-cap-btn.active span {
  color: #78350f;
  font-weight: 800;
}

.spg-cap-btn.active small {
  color: #92400e;
  font-weight: 700;
}

.spg-cap-card-content {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .spg-cap-card-content {
    grid-template-columns: 1.35fr 1fr;
  }
}

@media (max-width: 639px) {
  .spg-cap-card-content {
    padding: 1.15rem 0.95rem;
    gap: 1.25rem;
  }
}

.spg-cap-header {
  margin-bottom: 1rem;
}

.spg-cap-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.spg-cap-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.spg-cap-tag {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.spg-cap-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (max-width: 480px) {
  .spg-cap-specs {
    grid-template-columns: 1fr;
  }
}

.spg-cap-spec-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.spg-cap-spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.spg-cap-spec-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.spg-cap-side-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 639px) {
  .spg-cap-side-box {
    padding: 1.15rem 1rem;
  }
}

.spg-cap-appliances {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.spg-cap-appliances strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

/* Section Common Styling */
.spg-section {
  padding: 4rem 0;
}

@media (max-width: 639px) {
  .spg-section {
    padding: 2.25rem 0;
  }
}

.spg-section-alt {
  background: #f1f5f9;
}

.spg-section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

@media (max-width: 639px) {
  .spg-section-head {
    margin-bottom: 1.75rem;
  }
}

.spg-section-head .spg-badge {
  margin-bottom: 0.75rem;
}

.spg-section-title {
  margin-bottom: 0.75rem;
}

@media (max-width: 639px) {
  .spg-section-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }
}

.spg-section-desc {
  color: #334155;
  font-size: 1.05rem;
}

@media (max-width: 639px) {
  .spg-section-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

/* 4 Core Calculators Grid */
.spg-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .spg-calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .spg-calc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 639px) {
  .spg-calc-grid {
    gap: 1rem;
  }
}

.spg-calc-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

@media (max-width: 639px) {
  .spg-calc-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }
}

.spg-calc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--solar-amber);
}

.spg-calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--solar-amber), var(--solar-orange));
}

.spg-calc-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--solar-amber-light);
  color: var(--solar-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

@media (max-width: 639px) {
  .spg-calc-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.85rem;
  }
}

.spg-calc-card:nth-child(2) .spg-calc-icon {
  background: var(--eco-emerald-light);
  color: var(--eco-emerald);
}
.spg-calc-card:nth-child(2)::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.spg-calc-card:nth-child(3) .spg-calc-icon {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}
.spg-calc-card:nth-child(3)::before {
  background: linear-gradient(90deg, #0284c7, #0369a1);
}

.spg-calc-card:nth-child(4) .spg-calc-icon {
  background: #fdf2f8;
  color: #db2777;
}
.spg-calc-card:nth-child(4)::before {
  background: linear-gradient(90deg, #ec4899, #db2777);
}

.spg-calc-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 639px) {
  .spg-calc-title {
    font-size: 1.1rem;
  }
}

.spg-calc-desc {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 1.25rem;
  flex: 1;
}

@media (max-width: 639px) {
  .spg-calc-desc {
    font-size: 0.84rem;
    margin-bottom: 1rem;
  }
}

.spg-calc-link {
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #c2410c;
}

.spg-calc-link:hover {
  gap: 0.6rem;
  color: #9a3412;
}

/* Live Market Prices Table / Cards */
/* All-in-One Rates 4-Tab Navigation */
.spg-rates-tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.15rem 0.5rem;
}

.spg-rates-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.spg-rates-tab-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.spg-rates-tab-btn.active {
  background-color: #0369a1;
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.spg-rates-tab-pane {
  display: none;
}

.spg-rates-tab-pane.active {
  display: block;
  animation: spgFadeIn 0.25s ease-in-out;
}

.spg-tab-footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spg-tab-footer-text {
  font-size: 0.92rem;
  color: #1e293b;
  font-weight: 600;
}

.spg-tab-footer-action {
  display: inline-flex;
  align-items: center;
}

.spg-tab-footer-action .spg-btn {
  text-decoration: none;
}

.spg-tab-footer-action .spg-btn:hover,
.spg-tab-footer-action .spg-btn:focus {
  text-decoration: underline;
}

@keyframes spgFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.spg-rates-table-wrap {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.spg-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 580px;
}

@media (max-width: 639px) {
  .spg-table {
    min-width: 440px;
    font-size: 0.80rem;
  }
  .spg-table th, .spg-table td {
    padding: 0.65rem 0.6rem;
  }
  .spg-table th {
    font-size: 0.75rem;
  }
  .spg-table th:first-child,
  .spg-table td:first-child,
  .spg-table .brand-cell {
    white-space: normal !important;
    display: table-cell !important;
    min-width: 125px !important;
    max-width: 155px !important;
    width: 140px !important;
    line-height: 1.35;
    font-size: 0.80rem;
    word-break: normal !important;
  }
  .spg-price-val {
    font-size: 0.85rem;
  }
}

.spg-table th {
  background: var(--bg-dark);
  color: white;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.spg-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.spg-table tr:hover td {
  background: #f8fafc;
}

.spg-table .brand-cell {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.spg-price-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--eco-emerald-dark);
  white-space: nowrap;
}

/* Enhanced System Capacity Comparison Table */
.spg-compare-table {
  min-width: 860px;
}

@media (max-width: 639px) {
  .spg-compare-table {
    min-width: 640px;
  }
  .spg-compare-table th,
  .spg-compare-table td {
    padding: 0.65rem 0.55rem;
  }
  .spg-compare-table .nowrap-cell {
    white-space: nowrap;
  }
}

.spg-compare-table th,
.spg-compare-table td {
  vertical-align: middle;
}

.spg-compare-table .nowrap-cell {
  white-space: nowrap;
}

.spg-compare-table .spg-sub-hint {
  font-size: 0.82rem;
  color: #334155;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.spg-compare-table tr[style*="#fffbeb"] small,
.spg-compare-table tr.spg-row-featured small {
  color: #78350f !important;
  font-weight: 800 !important;
}

.spg-compare-table .spg-btn-primary {
  background-color: #047857 !important;
  color: #ffffff !important;
}

.spg-compare-table tbody tr:hover td {
  background: #f1f5f9;
}

.spg-compare-table tbody tr[style*="#fffbeb"]:hover td,
.spg-compare-table tbody tr.spg-row-featured:hover td {
  background: #fef3c7;
}

/* Mobile Scroll Hint */
.spg-table-scroll-hint {
  display: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  text-align: right;
  padding: 0.35rem 0.25rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
  .spg-table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
  }
}

/* Topical Category Silos Grid */
.spg-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .spg-cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .spg-cats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 480px) {
  .spg-cats-grid {
    gap: 0.65rem;
  }
}

.spg-cat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .spg-cat-card {
    padding: 0.9rem 0.5rem;
    gap: 0.45rem;
  }
}

.spg-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--solar-amber);
  box-shadow: var(--shadow-md);
}

.spg-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--solar-orange);
  transition: background var(--transition-fast), color var(--transition-fast);
}

@media (max-width: 480px) {
  .spg-cat-icon {
    width: 38px;
    height: 38px;
  }
  .spg-cat-icon svg {
    width: 20px;
    height: 20px;
  }
}

.spg-cat-card:hover .spg-cat-icon {
  background: var(--solar-amber-light);
  color: var(--solar-orange);
}

.spg-cat-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

@media (max-width: 480px) {
  .spg-cat-name {
    font-size: 0.82rem;
  }
}

.spg-cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .spg-cat-count {
    font-size: 0.68rem;
  }
}

/* Post Cards (Hub & Spoke architecture) */
.spg-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.spg-posts-grid:has(> :only-child) {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .spg-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spg-posts-grid:has(> :only-child) {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .spg-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .spg-posts-grid:has(> :only-child) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .spg-posts-grid {
    gap: 1.15rem;
  }
}

.spg-post-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.spg-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--solar-amber);
}

.spg-post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--solar-gold);
}

.spg-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spg-post-card:hover .spg-post-thumb img {
  transform: scale(1.06);
}

@media (max-width: 639px) {
  .spg-post-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 190px;
  }
}

.spg-post-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 639px) {
  .spg-post-body {
    padding: 1.15rem 0.95rem;
  }
}

.spg-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.spg-post-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

@media (max-width: 639px) {
  .spg-post-title {
    font-size: 1.05rem;
  }
}

.spg-post-title a:hover {
  color: var(--solar-orange);
}

.spg-post-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

@media (max-width: 639px) {
  .spg-post-excerpt {
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
  }
}

.spg-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* Net Metering CTA Box */
.spg-cta-box {
  background-color: #0f172a;
  background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bg-dark-border);
}

.spg-cta-box h2 {
  color: #ffffff;
}

.spg-cta-box p {
  color: #e2e8f0;
}

.spg-cta-box .spg-btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.spg-cta-box .spg-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

@media (max-width: 639px) {
  .spg-cta-box {
    padding: 1.75rem 1rem;
  }
  .spg-cta-box h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }
  .spg-cta-box p {
    font-size: 0.86rem;
    margin-bottom: 1.25rem;
  }
  .spg-cta-box .spg-btn {
    width: 100%;
  }
}

.spg-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Footer */
.spg-footer {
  background-color: #0f172a;
  color: #94a3b8;
  margin-top: auto;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--bg-dark-border);
  font-size: 0.9rem;
}

.spg-footer .spg-logo-title {
  color: #ffffff;
}

.spg-footer .spg-logo-title span {
  color: #f59e0b;
}

@media (max-width: 639px) {
  .spg-footer {
    padding: 2.5rem 0 1.5rem;
  }
}

.spg-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .spg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .spg-footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.15fr 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 639px) {
  .spg-footer-grid {
    gap: 1.75rem;
    margin-bottom: 2rem;
  }
}

.spg-footer-brand h3 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.spg-footer-brand p {
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.spg-footer-title {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

@media (max-width: 639px) {
  .spg-footer-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--bg-dark-border);
  }
}

.spg-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 639px) {
  .spg-footer-links {
    gap: 0.45rem;
  }
}

.spg-footer-link {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

@media (max-width: 639px) {
  .spg-footer-link {
    font-size: 0.84rem;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
}

.spg-footer-link:hover {
  color: var(--solar-gold);
}

.spg-footer-bottom {
  border-top: 1px solid var(--bg-dark-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.spg-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spg-footer-subline {
  color: #94a3b8;
  font-size: 0.8rem;
}

.spg-footer-trust-badge {
  color: #a7f3d0;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .spg-footer-bottom {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    gap: 2rem;
  }

  .spg-footer-legal {
    text-align: left;
  }

  .spg-footer-trust-badge {
    text-align: right;
    max-width: 520px;
  }
}

/* Single Article Gutenberg Classes */
.spg-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  min-width: 0;
  width: 100%;
}

.spg-article-layout > article {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.entry-header {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.entry-header h1 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (min-width: 992px) {
  .spg-article-layout {
    grid-template-columns: 1fr 320px;
  }
}

/* Author Bio Box */
.spg-author-box {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
}

.spg-author-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}

.spg-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

@media (max-width: 639px) {
  .spg-article-layout {
    padding: 1.5rem 0;
    gap: 2rem;
  }
  .entry-content {
    font-size: 0.98rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .entry-content h2 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.75rem;
  }
  .entry-content h3 {
    font-size: 1.15rem;
  }
  .spg-toc-box {
    padding: 1rem;
  }
  .spg-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.85rem;
  }
  .spg-author-avatar {
    margin: 0 auto;
  }
  .spg-takeaways-card {
    padding: 1.15rem 1rem;
  }
  .spg-takeaways-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .spg-callout {
    padding: 1rem 1.15rem;
  }
  .spg-post-actions {
    padding: 0.75rem;
    gap: 0.45rem;
  }
  .spg-post-actions .spg-share-label {
    width: 100%;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
  }
  .spg-post-actions .spg-share-btn {
    flex: 1 1 calc(33.333% - 0.45rem);
    min-width: 75px;
    justify-content: center;
    padding: 0.45rem 0.4rem;
    font-size: 0.76rem;
  }
  .spg-post-actions .spg-share-btn.btn-copy,
  .spg-post-actions .spg-share-btn.btn-print {
    flex: 1 1 calc(50% - 0.45rem);
  }
}

/* Global FAQ Accordion (AEO & Rich Snippets Support) */
.spg-faq-section {
  margin: 3rem 0;
}

.spg-faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: white;
  transition: all var(--transition-fast);
}

.spg-faq-header {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: #f8fafc;
  gap: 1rem;
}

.spg-faq-header:hover {
  background: #f1f5f9;
}

.spg-faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.spg-faq-body {
  padding: 1.25rem;
  display: none;
  border-top: 1px solid var(--border-light);
  line-height: 1.65;
  color: #334155;
  font-size: 0.95rem;
}

.spg-faq-item.active .spg-faq-body {
  display: block;
}

.spg-faq-item.active .spg-faq-icon {
  transform: rotate(180deg);
}

@media (max-width: 639px) {
  .spg-faq-header {
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
  }
  .spg-faq-body {
    padding: 1rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   ARTICLE / POST ENTRY CONTENT & INTERNAL LINK STYLING
   ========================================================================== */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.entry-content p {
  margin-bottom: 1.35rem;
}

.entry-content h2 {
  font-size: 1.6rem;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.entry-content h3 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-main);
}

.entry-content a {
  color: var(--brand-primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--solar-amber);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:hover {
  color: var(--solar-orange);
  text-decoration-color: var(--solar-orange);
}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   UPGRADED SINGLE POST & SIDEBAR ENHANCEMENTS
   ========================================================================== */
/* Reading Progress Indicator */
.spg-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--solar-amber), var(--eco-emerald));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Post Action Tools (Share, Copy, Print) */
.spg-post-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.spg-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.spg-share-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Key Takeaways Card */
.spg-takeaways-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0 2.25rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.spg-takeaways-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.spg-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}

.spg-takeaway-item {
  background: white;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.spg-takeaway-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #047857;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.spg-takeaway-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

/* Reader Helpful Feedback Box */
.spg-feedback-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}

.spg-feedback-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.spg-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.spg-feedback-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.spg-feedback-btn.active-yes {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

/* Sidebar Upgraded Widgets */
.spg-sidebar-widget {
  background: #ffffff !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.spg-sidebar-widget.spg-widget-emerald-card {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #ffffff !important;
}

.spg-sidebar-widget.spg-widget-emerald-card h4 {
  color: #ffffff !important;
}

.spg-sidebar-widget.spg-widget-emerald-card p {
  color: #d1fae5 !important;
}

.spg-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spg-sidebar-rates-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.spg-sidebar-rates-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.spg-sidebar-rates-table td {
  padding: 0.45rem 0;
}

.spg-sidebar-rates-table .rate-val {
  text-align: right;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--solar-orange);
}

/* Mini AC Sizing Widget */
.spg-mini-calc-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.85rem 0 1rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.spg-mini-tab {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: none;
  color: #64748b;
  transition: all var(--transition-fast);
}

.spg-mini-tab.active {
  background: white;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.spg-mini-result-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.spg-mini-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

/* Trending Guides List */
.spg-trending-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spg-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.spg-trending-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.spg-trending-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.spg-trending-title:hover {
  color: var(--solar-orange);
  text-decoration: underline;
}

.spg-trending-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==========================================================================
   Google AdSense Optimization Architecture (Desktop & Mobile)
   - Zero Layout Shift (CLS Protected)
   - Video / Outstream / Multiplex / Responsive Display Ready
   - Seamless Auto Ads Compatibility (Anchor, Vignette, Side Rail, In-Page)
   ========================================================================== */
ins.adsbygoogle {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  text-align: center;
}

/* Standard In-Article & Sidebar Ad Wrapper (CLS Guard) */
.spg-ad-slot {
  width: 100%;
  max-width: 100%;
  margin: 1.75rem auto;
  text-align: center;
  clear: both;
  overflow: hidden;
  position: relative;
}

/* Video / Rich Media Ad Container (16:9 / Outstream) */
.spg-ad-video {
  width: 100%;
  max-width: 728px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Auto Ads Mobile Screen Viewport Guard */
@media (max-width: 768px) {
  /* Prevent horizontal blowout if AdSense renders full-width ad */
  ins.adsbygoogle[data-ad-status="filled"],
  .google-auto-placed {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Safe padding for bottom Anchor Ads so they do not obstruct page content */
  body.has-bottom-anchor {
    padding-bottom: 80px;
  }
}

/* Auto Ads Desktop Side-Rail Clean Margins */
@media (min-width: 1440px) {
  .spg-container {
    /* Guarantees 120px+ clean gutters on left & right for high-CPM desktop side rail ads */
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   DEDICATED ALL-IN-ONE RATES HUB (UPGRADED MODERN V2 LAYOUT)
   ========================================================================== */

/* 1. Hero & Live Pulse Section */
.spg-rates-hero {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 60%, #022c22 100%);
  border-radius: 18px;
  padding: 3rem 2.25rem 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(6, 78, 59, 0.4);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spg-rates-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.spg-live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.spg-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: spgPulseRing 2s infinite;
}

@keyframes spgPulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.spg-hero-h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-family: var(--font-heading);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  letter-spacing: -0.5px;
}

.spg-hero-h1 span.highlight {
  background: linear-gradient(135deg, #34d399 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spg-hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 820px;
  line-height: 1.6;
  margin: 0 0 2rem;
}

/* 4-Stat Glassmorphic Cards inside Hero */
.spg-hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .spg-hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .spg-hero-stats-grid {
    grid-template-columns: 1fr;
  }
}

.spg-hero-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.spg-hero-stat-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(52, 211, 153, 0.45);
}

.spg-stat-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.spg-stat-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.spg-stat-val.accent-green { color: #34d399; }
.spg-stat-val.accent-gold { color: #fbbf24; }
.spg-stat-val.accent-blue { color: #38bdf8; }

.spg-stat-meta {
  font-size: 0.75rem;
  color: #a7f3d0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 2. Upgraded Filter & Search Controls Bar */
.spg-filter-controls-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  margin-bottom: 2rem;
  position: sticky;
  top: 10px;
  z-index: 40;
  transition: box-shadow 0.2s ease;
}

.spg-cat-tabs-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}

.spg-cat-tab-btn {
  background: #f8fafc;
  color: #334155;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.spg-cat-tab-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.spg-cat-tab-btn.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.spg-cat-tab-btn .badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.spg-cat-tab-btn.active .badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.spg-compare-jump-btn {
  margin-left: auto;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.15rem;
  font-size: 0.86rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spg-compare-jump-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
}

/* Tier 2: Real-time Search Box + Sort + Brand Chips */
.spg-search-sort-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.spg-search-box-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.spg-search-box-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.spg-search-input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.35rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.spg-search-input:focus {
  background: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.spg-sort-select {
  padding: 0.65rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  cursor: pointer;
  outline: none;
}

.spg-sort-select:focus {
  border-color: #0f766e;
}

.spg-sub-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}

.spg-brand-chip {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.spg-brand-chip:hover,
.spg-brand-chip.active {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

/* 3. Upgraded Cards Grid */
.spg-rate-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .spg-rate-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .spg-rate-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.spg-brand-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  height: 100%;
  box-sizing: border-box;
  content-visibility: auto;
  contain-intrinsic-size: 1px 360px;
}

.spg-brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* Card Top Tag Row */
.spg-card-top-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  width: 100%;
  min-height: 24px;
}

.spg-card-tech-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.spg-card-tech-tag.tag-inverter {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.spg-card-tech-tag.tag-battery {
  background: #fefce8;
  color: #854d0e;
  border-color: #fef08a;
}

.spg-card-tech-tag.tag-system {
  background: #fdf4ff;
  color: #86198f;
  border-color: #f5d0fe;
}

.spg-card-status-pulse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
}

.spg-card-status-pulse::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Logo Box */
.spg-brand-logo-wrap {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  box-sizing: border-box;
}

.spg-brand-logo-wrap img,
.spg-brand-logo-wrap svg {
  max-height: 52px;
  max-width: 170px;
  object-fit: contain;
}

.spg-card-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  min-height: 2.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spg-card-brand-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.45;
  min-height: 2.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Upgraded Price Hero Box inside Card - horizontally aligned */
.spg-card-price-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 64px;
  box-sizing: border-box;
}

.spg-card-price-hero:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: scale(1.01);
}

.spg-price-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #065f46;
}

.spg-price-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  display: block;
}

.spg-price-trend {
  font-size: 0.72rem;
  font-weight: 800;
  background: #ffffff;
  color: #059669;
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 3-Metric Specs Mini Grid - horizontally aligned */
.spg-card-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 0.9rem;
  text-align: center;
  min-height: 54px;
  align-items: center;
  box-sizing: border-box;
}

.spg-spec-box {
  padding: 4px 2px;
}

.spg-spec-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
}

.spg-spec-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
  white-space: nowrap;
}

/* Dual Action Buttons Row - horizontally pinned to bottom */
.spg-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}

.spg-btn-view-specs {
  flex: 1;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  box-sizing: border-box;
}

.spg-btn-view-specs:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.spg-btn-card-compare {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  min-height: 38px;
  box-sizing: border-box;
}

.spg-btn-card-compare:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
}

/* 4. Historical Price Timeline Styles */
.spg-trend-timeline-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2.25rem 2rem;
  margin: 3rem 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.spg-timeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  margin: 2rem 0 1.5rem;
}

@media (max-width: 800px) {
  .spg-timeline-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.spg-timeline-step {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.spg-timeline-step.current {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.2);
}

.spg-step-year {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.spg-timeline-step.current .spg-step-year {
  color: #065f46;
}

.spg-step-price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.spg-timeline-step.current .spg-step-price {
  color: #047857;
}

.spg-step-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* 5. Interactive City Landed Cost Estimator */
.spg-city-calc-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.spg-city-calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .spg-city-calc-inputs {
    grid-template-columns: 1fr;
  }
}

.spg-city-calc-result {
  background: #ffffff;
  border: 1.5px solid #10b981;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   26. WordPress Native Dynamic Menus & Categories (WP_Nav_Menu Support)
   ========================================================================== */
.spg-nav-desktop-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spg-nav-desktop-list > li {
  position: relative;
  list-style: none;
}

.spg-nav-desktop-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.38rem 0.52rem;
  color: var(--text-heading);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.spg-nav-desktop-list > li > a:hover,
.spg-nav-desktop-list > li.current-menu-item > a,
.spg-nav-desktop-list > li.current-menu-ancestor > a {
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
  font-weight: 700;
}

/* Pinned Today's Rates Highlight in Navigation */
.spg-nav-desktop-list > li.menu-item-rates > a {
  color: var(--eco-emerald-dark) !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  padding: 0.32rem 0.55rem !important;
  border-radius: var(--radius-full) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.18rem !important;
  line-height: 1.2 !important;
}

.spg-nav-desktop-list > li.menu-item-rates > a:hover,
.spg-nav-desktop-list > li.menu-item-rates.current-menu-item > a {
  color: #065f46 !important;
  background: rgba(16, 185, 129, 0.14) !important;
}

.spg-drawer-menu-list > li.menu-item-rates > a {
  color: var(--eco-emerald-dark) !important;
  font-weight: 800 !important;
}

.spg-nav-desktop-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition-fast);
}

.spg-nav-desktop-list li.menu-item-has-children:hover > a::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* Dropdown Sub-menu */
.spg-nav-desktop-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  list-style: none;
  margin: 0.35rem 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.spg-nav-desktop-list li.menu-item-has-children:hover > .sub-menu,
.spg-nav-desktop-list li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.spg-nav-desktop-list .sub-menu li {
  list-style: none;
  margin: 0;
}

.spg-nav-desktop-list .sub-menu li a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.spg-nav-desktop-list .sub-menu li a:hover {
  color: #065f46 !important;
  background: #ecfdf5 !important;
  padding-left: 1.15rem !important;
}

/* Subtle, clean active state for true exact sub-menu match */
.spg-nav-desktop-list .sub-menu li.current-menu-item > a {
  color: var(--brand-primary-dark);
  font-weight: 700;
  background: rgba(15, 118, 110, 0.08);
}

/* Fix: Across ALL categories & dropdowns, when on the parent page, prevent sub-menu items from falsely showing as active */
.spg-nav-desktop-list > li.current-menu-item > .sub-menu li a,
.spg-nav-desktop-list > li.current-menu-item > .sub-menu li.current-menu-item > a,
.spg-nav-desktop-list > li.current_page_item > .sub-menu li a,
.spg-nav-desktop-list > li.current_page_item > .sub-menu li.current-menu-item > a,
.spg-nav-desktop-list > li.current-cat > .sub-menu li a,
.spg-nav-desktop-list > li.current-cat > .sub-menu li.current-menu-item > a {
  color: var(--text-body) !important;
  background: transparent !important;
  padding-left: 0.9rem !important;
  font-weight: 500 !important;
}

.spg-nav-desktop-list > li.current-menu-item > .sub-menu li a:hover,
.spg-nav-desktop-list > li.current_page_item > .sub-menu li a:hover,
.spg-nav-desktop-list > li.current-cat > .sub-menu li a:hover {
  color: #065f46 !important;
  background: #ecfdf5 !important;
  padding-left: 1.15rem !important;
}

/* Mobile Drawer Menu List */
.spg-drawer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spg-drawer-menu-list li {
  list-style: none;
}

.spg-drawer-menu-list li a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.15s ease;
}

.spg-drawer-menu-list li a:hover {
  color: #0f766e;
}

.spg-drawer-menu-list .sub-menu {
  list-style: none;
  padding: 0.25rem 0 0.5rem 1.25rem;
  margin: 0;
  background: #f8fafc;
  border-left: 3px solid #0f766e;
}

.spg-drawer-menu-list .sub-menu li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  padding: 0.5rem 0;
  border-bottom: none;
}

/* ==========================================================================
   27. Social Media Links & Footer Social Icons
   ========================================================================== */
.spg-footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.spg-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.spg-social-link:hover {
  transform: translateY(-3px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.spg-social-link.social-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.spg-social-link.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.spg-social-link.social-twitter:hover {
  background: #000000;
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.spg-social-link.social-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

.spg-social-link.social-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
}

.spg-social-link.social-pinterest:hover {
  background: #e60023;
  border-color: #e60023;
  box-shadow: 0 4px 14px rgba(230, 0, 35, 0.4);
}

.spg-social-link.social-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
}

/* ==========================================================================
   28. Single Post Social Sharing Tool
   ========================================================================== */
.spg-share-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.spg-share-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.85rem;
}

.spg-share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}.spg-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b !important;
  background: #ffffff;
  border: 1px solid var(--border-light);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.spg-share-btn:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
  color: #0f172a !important;
}

.spg-share-btn.btn-fb {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff !important;
}
.spg-share-btn.btn-fb:hover {
  background: #1565c0;
  border-color: #1565c0;
  color: #ffffff !important;
}

.spg-share-btn.btn-x {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff !important;
}
.spg-share-btn.btn-x:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff !important;
}

.spg-share-btn.btn-in {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff !important;
}
.spg-share-btn.btn-in:hover {
  background: #084d93;
  border-color: #084d93;
  color: #ffffff !important;
}

.spg-share-btn.btn-pin {
  background: #e60023;
  border-color: #e60023;
  color: #ffffff !important;
}
.spg-share-btn.btn-pin:hover {
  background: #c2001e;
  border-color: #c2001e;
  color: #ffffff !important;
}

.spg-share-btn.btn-copy,
.spg-share-btn.btn-print {
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
}

.spg-share-btn.btn-copy:hover,
.spg-share-btn.btn-print:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

/* ==========================================================================
   29. WordPress Comments Section & Discussion Styling
   ========================================================================== */
.spg-comments-area {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .spg-comments-area {
    padding: 1.5rem 1.25rem;
  }
}

.spg-comments-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}

.spg-comment-list,
ol.spg-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.spg-comment-list li.comment {
  list-style: none;
  margin-bottom: 1.75rem;
}

.spg-comment-body {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  transition: all var(--transition-fast);
}

.spg-comment-body:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.spg-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.spg-comment-avatar img {
  border-radius: 50%;
  display: block;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-xs);
}

.spg-comment-author {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-heading);
}

.spg-comment-author a {
  color: inherit;
  text-decoration: none;
}

.spg-comment-author a:hover {
  color: var(--solar-amber);
}

.spg-comment-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.spg-comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spg-comment-date a {
  color: inherit;
  text-decoration: none;
}

.spg-comment-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
}

.spg-comment-content p:last-child {
  margin-bottom: 0;
}

.spg-comment-reply {
  margin-top: 0.85rem;
  text-align: right;
}

.spg-comment-reply a,
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(14, 116, 144, 0.08);
  transition: all var(--transition-fast);
}

.spg-comment-reply a:hover,
.comment-reply-link:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

/* Threaded comments nesting */
.spg-comment-list .children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1.25rem;
  border-left: 2px solid #e2e8f0;
}

@media (max-width: 640px) {
  .spg-comment-list .children {
    padding-left: 1rem;
  }
}

/* Respond Form */
.comment-respond {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px dashed #e2e8f0;
}

.comment-reply-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cancel-comment-reply-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ef4444;
  text-decoration: none;
}

.comment-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.comment-form-comment {
  grid-column: 1 / -1;
}

.comment-form-cookies-consent,
.form-submit {
  grid-column: 1 / -1;
}

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

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--solar-amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--solar-amber);
}

.form-submit #submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: all var(--transition-fast);
}

.form-submit #submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   30. Legal Pages, WordPress Core & Gutenberg Block Styling
   ========================================================================== */
.entry-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content h2 {
  font-size: 1.75rem;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-weight: 800;
}

.entry-content h3 {
  font-size: 1.35rem;
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* Responsive Content Tables & Gutenberg Table Blocks */
.wp-block-table,
.entry-content .wp-block-table,
.entry-content figure.wp-block-table,
.spg-table-responsive {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 1.75rem 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  position: relative;
}

.entry-content table,
.wp-block-table table {
  width: 100% !important;
  min-width: 540px !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  border: none !important;
  table-layout: auto !important;
}

.entry-content th,
.wp-block-table th {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 0.85rem 1rem !important;
  text-align: left !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  white-space: nowrap !important;
  word-break: normal !important;
  border-bottom: 2px solid #334155 !important;
}

.entry-content td,
.wp-block-table td {
  padding: 0.8rem 1rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important;
  font-size: 0.90rem !important;
  line-height: 1.55 !important;
  color: #334155 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  vertical-align: top !important;
}

.entry-content tr:nth-child(even) td,
.wp-block-table tr:nth-child(even) td {
  background: #f8fafc !important;
}

.entry-content tr:hover td,
.wp-block-table tr:hover td {
  background: #f1f5f9 !important;
}

@media (max-width: 639px) {
  .entry-content table,
  .wp-block-table table {
    min-width: 480px !important;
  }
  .entry-content th,
  .wp-block-table th {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.80rem !important;
  }
  .entry-content td,
  .wp-block-table td {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.82rem !important;
    word-break: normal !important;
  }
}

.entry-content blockquote,
.wp-block-quote {
  border-left: 4px solid var(--solar-amber);
  background: #fffbeb;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #78350f;
}

.entry-content img,
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.spg-container-narrow {
  max-width: 860px;
}

/* WordPress Core Gutenberg Block Alignments */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}
@media (max-width: 640px) {
  .alignleft,
  .alignright {
    float: none;
    margin: 1rem 0;
    display: block;
  }
}
.alignwide {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}
.wp-caption-text {
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.4rem;
}

/* Rank Math Breadcrumbs & TOC Integration */
.rank-math-breadcrumb,
.spg-rank-math-bc-wrap {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.rank-math-breadcrumb a,
.spg-rank-math-bc-wrap a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rank-math-breadcrumb a:hover,
.spg-rank-math-bc-wrap a:hover {
  color: var(--eco-emerald);
}
.rank-math-breadcrumb .separator {
  margin: 0 0.35rem;
  color: #94a3b8;
}
.rank-math-breadcrumb .last {
  color: #1e293b;
  font-weight: 600;
}

/* Rank Math & Gutenberg Table of Contents */
.wp-block-rank-math-toc,
.wp-block-table-of-contents {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--eco-emerald);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.wp-block-rank-math-toc h2,
.wp-block-table-of-contents h2 {
  font-size: 1.15rem !important;
  color: #0f172a;
  margin: 0 0 0.75rem 0 !important;
  font-weight: 700;
}
.wp-block-rank-math-toc nav ul,
.wp-block-table-of-contents ul {
  padding-left: 1.25rem;
  margin-bottom: 0 !important;
}
.wp-block-rank-math-toc nav ul li,
.wp-block-table-of-contents ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.wp-block-rank-math-toc a,
.wp-block-table-of-contents a {
  color: #0f766e;
  text-decoration: none;
}
.wp-block-rank-math-toc a:hover,
.wp-block-table-of-contents a:hover {
  color: var(--solar-amber);
  text-decoration: underline;
}

/* ==========================================================================
   TURNKEY SOLAR SYSTEM CUSTOMIZER WIDGET STYLING (FIXED & RESPONSIVE)
   ========================================================================== */
.spg-sys-customizer-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 5px solid #0f766e;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  width: 100%;
  clear: both;
}

@media (max-width: 640px) {
  .spg-sys-customizer-card {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
  }
}

.spg-cust-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.spg-cust-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.spg-cust-title {
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.spg-cust-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  max-width: 780px;
  line-height: 1.5;
}

.spg-cust-quick-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.spg-cust-btn-primary {
  background: #0f766e;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  min-height: 44px;
}
.spg-cust-btn-primary:hover {
  background: #0d655f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}
.spg-cust-btn-primary.full-width {
  width: 100%;
}

.spg-cust-btn-secondary {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  min-height: 44px;
}
.spg-cust-btn-secondary:hover {
  background: #e2e8f0;
}

.spg-cust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.25rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .spg-cust-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.spg-cust-group {
  margin-bottom: 1.35rem;
}

.spg-cust-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 4px;
}

@media (max-width: 640px) {
  .spg-cust-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .spg-cust-hint {
    font-size: 0.72rem;
    color: #64748b;
  }
}

.spg-cust-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.spg-cust-kw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.spg-kw-pill {
  flex: 1 1 calc(20% - 0.45rem);
  min-width: 62px;
  min-height: 44px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

@media (max-width: 480px) {
  .spg-kw-pill {
    flex: 1 1 calc(33.33% - 0.45rem);
  }
}

.spg-kw-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.spg-kw-pill.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
}

.spg-cust-custom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.spg-cust-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 120px;
}

.spg-cust-number-input {
  width: 100%;
  height: 40px;
  padding: 6px 36px 6px 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
}

.spg-cust-number-input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.spg-cust-unit-tag {
  position: absolute;
  right: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  pointer-events: none;
}

.spg-cust-arch-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.spg-arch-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spg-arch-radio-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.spg-arch-radio-card.active {
  background: #f0fdf4;
  border-color: #0f766e;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}

.spg-arch-radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #0f766e;
  transform: scale(1.15);
}

.spg-arch-content {
  display: flex;
  flex-direction: column;
}

.spg-arch-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.spg-arch-sub {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 2px;
}

.spg-cust-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
}

.spg-cust-select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.spg-cust-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 10px;
  cursor: pointer;
}

.spg-cust-checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #0f766e;
  transform: scale(1.2);
}

.spg-check-text strong {
  display: block;
  font-size: 0.9rem;
  color: #065f46;
}

.spg-check-text span {
  font-size: 0.76rem;
  color: #047857;
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}

/* Results Column */
.spg-cust-summary-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .spg-cust-summary-card {
    padding: 1rem 0.85rem;
  }
}

@media (max-width: 992px) {
  .spg-cust-summary-card {
    position: static;
    top: auto;
  }
}

.spg-cust-total-hero {
  background: linear-gradient(135deg, #0f766e 0%, #064e3b 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.spg-cust-total-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.spg-cust-grand-total {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.spg-cust-per-watt {
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 9999px;
  margin-top: 6px;
}

.spg-cust-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.spg-cust-m-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.spg-m-lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spg-m-val {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spg-cust-bom-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.spg-cust-bom-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.spg-bom-table-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

.spg-bom-table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .spg-bom-table {
    min-width: 330px;
    font-size: 0.74rem;
  }
  .spg-bom-table th,
  .spg-bom-table td {
    padding: 6px 5px !important;
  }
}

.spg-bom-table th {
  text-align: left;
  padding: 6px 8px;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

.spg-bom-table td {
  padding: 7px 8px;
  color: #1e293b;
  border-bottom: 1px solid #f8fafc;
  vertical-align: top;
}

.spg-bom-table tfoot th {
  padding: 9px 8px;
  color: #065f46;
  font-size: 0.85rem;
  font-weight: 800;
  border-top: 2px solid #cbd5e1;
}

.spg-cust-link-tool {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
  margin-top: 10px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.spg-cust-link-tool:hover {
  background: #f0fdf4;
  text-decoration: underline;
}

/* Quick Jump Banner */
.spg-customizer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f766e 0%, #064e3b 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 2rem;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

/* Toast Notification for Quotation Copy */
.spg-quote-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #064e3b;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(100px);
  opacity: 0;
}

.spg-quote-toast.show {
  transform: translateY(0);
  opacity: 1;
}


/* Head-to-Head Comparison Tool Mobile Responsive */
.spg-comp-selector-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.spg-comp-select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#spg-comp-matrix-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
}

@media (max-width: 640px) {
  .spg-comp-selector-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    text-align: center;
  }
  .spg-comp-vs-badge {
    margin: 4px auto !important;
  }
}

/* ==========================================================================
   WORDPRESS ADMIN BAR & CROSS-DEVICE LAYOUT OPTIMIZATION
   ========================================================================== */
body.admin-bar .spg-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .spg-header {
    top: 46px;
  }
  body.admin-bar .spg-drawer {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .spg-header {
    top: 0;
  }
}

/* Mobile Bottom App Bar Safe Viewport Spacing */
@media (max-width: 767px) {
  body {
    padding-bottom: 68px !important;
  }
}



/* ==========================================================================
   DESKTOP & CUSTOMIZER HEADER SCALING (NO TEXT CUT)
   ========================================================================== */
.spg-header-cta {
  padding: 0.42rem 0.85rem !important;
  font-size: 0.84rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  gap: 0.3rem !important;
}

.spg-header-cta .spg-cta-text-compact {
  display: none;
}

/* Medium Desktop / Laptops / WordPress Customizer (992px to 1280px) */
@media (min-width: 992px) and (max-width: 1280px) {
  .spg-header-inner {
    gap: 0.45rem !important;
  }
  .spg-logo {
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }
  .spg-logo-title {
    font-size: 1.05rem !important;
  }
  .spg-logo-sub {
    display: none !important;
  }
  .spg-nav-desktop-list {
    gap: 0.12rem !important;
  }
  .spg-nav-desktop-list > li > a {
    padding: 0.32rem 0.38rem !important;
    font-size: 0.78rem !important;
    gap: 0.15rem !important;
  }
  .spg-nav-desktop-list > li.menu-item-rates > a {
    padding: 0.30rem 0.48rem !important;
    font-size: 0.78rem !important;
  }
  .spg-header-cta {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
}

/* Below 1100px (Customizer narrow preview pane) */
@media (min-width: 992px) and (max-width: 1100px) {
  .spg-header-cta .spg-cta-text-full {
    display: none;
  }
  .spg-header-cta .spg-cta-text-compact {
    display: inline;
  }
  .spg-nav-desktop-list > li > a {
    padding: 0.30rem 0.32rem !important;
    font-size: 0.76rem !important;
  }
}
