@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ================= Mobile-app matching palette (from Flutter consumer app) =================
     Theme seed: ColorScheme.fromSeed(seedColor: 0xFF1B9E5A) — Material M3.
     Surface light: 0xFFF6FFFB, surface dark: 0xFF070B09.
     Accent glow (auth/home/paywall _Background RadialGradient): 0xFF6BE6A8 light / 0xFF0E3A23 dark.
     GlassCard: blur(16px), card=white@0.55 alpha, border=white@0.7 light.
     See: lib/solarcu_app.dart L22, lib/widgets/glass_card.dart, lib/screens/*_screen.dart _Background.
     ============================================================================================ */

  /* Primary brand = Emerald / Solar green */
  --primary:      #15803D;   /* emerald-700 — M3 ColorScheme.primary (darker text/ctas) */
  --primary-600:  #16A34A;   /* emerald-600 — hover / pressed */
  --primary-500:  #22C55E;   /* emerald-500 — seed 1B9E5A closest Tailwind eq — default accent */
  --primary-400:  #4ADE80;   /* emerald-400 */
  --primary-100:  #DCFCE7;   /* emerald-100 — soft pill bg */
  --primary-50:   #ECFDF5;   /* emerald-50  — soft glow */

  /* Page surface + radial-glow mint accent (matches every Flutter _Background widget) */
  --surface:      #F6FFFB;   /* app surface base: Color(0xFFF6FFFB) NOT pure white */
  --accent-mint:  #6BE6A8;   /* light gradient accent: Color(0xFF6BE6A8) — radial glow 55% alpha */
  --accent-forest:#0E3A23;   /* dark  gradient accent: Color(0xFF0E3A23) — dark-mode radial glow */
  --page-gradient: radial-gradient(circle at -8% -15%, rgba(107, 230, 168, 0.55) 0%, rgba(107, 230, 168, 0.22) 28%, var(--surface) 72%);

  /* Ink / text colors — green-tinged near-black (not slate-blue) */
  --ink:          #070B09;   /* Color(0xFF070B09) — Flutter dark surface base */
  --ink-2:        #0E1613;
  --ink-3:        #1A2B25;

  /* White / neutrals */
  --white:        #FFFFFF;
  --slate-50:     #F8FAFC;
  --slate-100:    #F1F5F9;
  --slate-200:    #E2E8F0;
  --slate-300:    #CBD5E1;
  --slate-400:    #94A3B8;
  --slate-500:    #64748B;
  --slate-600:    #475569;
  --slate-700:    #334155;
  --slate-800:    #1E293B;
  --slate-900:    #0F172A;

  /* Semantic state colors (RESTORED from the gold-clobber) — matches Flutter ColorScheme */
  --danger:       #DC2626;   /* red 600 — Out of Stock, Sold Out, errors */
  --danger-50:    #FEF2F2;   /* red 50  — out-of-stock badge background */
  --success:      #15803D;   /* emerald-700 — In Stock, ✓ success, Free delivery */
  --success-50:   #ECFDF5;   /* emerald-50  — in-stock badge background */
  --warning:      #D97706;   /* amber-600 — Sale, Featured badges */
  --warning-50:   #FFFBEB;   /* amber-50  — sale/featured badge bg */

  /* Tokens derived */
  --border-color: var(--slate-200);
  --text-primary: var(--ink);
  --text-muted:   var(--slate-500);
  --bg-dark:      var(--surface);
  --bg-card:      var(--white);

  /* ================= Legacy aliases — gold becomes green, red/success/warning RESTORED ========== */
  --red:          var(--danger);        /* OUT OF STOCK — previously clobbered to gold! */
  --red-hover:    #B91C1C;
  --green:        var(--success);       /* IN STOCK / success text — previously gold! */
  --green-hover:  #166534;
  --amber:        var(--warning);       /* SALE / FEATURED badges — previously gold! */
  --dark-grey:    var(--slate-700);
  --light-grey:   var(--slate-100);
  --bg-dark-slate: var(--ink);

  /* Emerald / gradient tokens (previously aliased to gold) */
  --emerald:      var(--primary);
  --emerald-gradient: linear-gradient(135deg, var(--primary-500) 0%, var(--primary) 100%);
  --primary-gradient: linear-gradient(135deg, var(--primary-500) 0%, var(--primary) 100%);
  --slate-gradient: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 100%);

  /* Legacy GOLD tokens — still resolved var(--gold) in 228 selectors, NOW EMERALD instead of FFD700 */
  --gold:         var(--primary-500);
  --gold-hover:   var(--primary-600);
  --gold-soft:    rgba(34, 197, 94, 0.14);   /* emerald 500 @ 14% */
  --gold-gradient: var(--primary-gradient);

  /* ================= Glassmorphism — exact sigma from Flutter glass_card.dart =================
     ImageFilter.blur(sigmaX: 16, sigmaY: 16), color=white@0.55, border=white@0.7,
     shadow: black 12% / blur 18 / offset (0, 10). NO saturate() boost. */
  --glass-sigma:  16px;
  --glass-bg:        rgba(255, 255, 255, 0.55);   /* light mode card body */
  --glass-bg-dark:   rgba(7, 11, 9, 0.62);        /* dark mode / drawer body */
  --glass-border:    rgba(255, 255, 255, 0.7);    /* light mode border */
  --glass-border-dark: rgba(255, 255, 255, 0.12); /* dark mode border */
  --glass-shadow:    0 10px 18px -8px rgba(0, 0, 0, 0.12);
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --hover-glow: 0 16px 40px -10px rgba(34, 197, 94, 0.35);   /* emerald hover instead of gold */
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= Utility classes (Tailwind-style shorthands) ================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.h-fit { height: fit-content; }
.inline-flex { display: inline-flex; }

.font-light  { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold   { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5, .px-3-5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5, .py-1-5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5, .py-3-5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-0 { border-width: 0; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Text colour helpers — SEMANTIC restored (previously all gold-clobbered) */
.text-red     { color: var(--danger)  !important; }   /* out of stock / errors */
.text-green   { color: var(--success) !important; }   /* in stock / free delivery */
.text-emerald { color: var(--primary) !important; }   /* primary emerald */
.text-amber   { color: var(--warning) !important; }   /* sale / featured */
.text-slate-300 { color: var(--slate-300) !important; }
.text-slate-400 { color: var(--slate-400) !important; }
.text-slate-500 { color: var(--slate-500) !important; }
.text-white   { color: var(--white) !important; }
.text-black   { color: var(--ink) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-muted   { color: var(--text-muted) !important; }

/* Background helpers — SEMANTIC restored */
.bg-red       { background-color: var(--danger) !important; }    /* out of stock bg */
.bg-green     { background-color: var(--success-50) !important; }/* in stock pill bg */
.bg-white     { background-color: var(--white) !important; }
.bg-dark-slate{ background-color: var(--ink) !important; }
.bg-slate-50 { background-color: var(--slate-50) !important; }
.bg-slate-100 { background-color: var(--slate-100) !important; }
.bg-slate-900 { background-color: var(--slate-900) !important; }
.bg-transparent { background-color: transparent !important; }

/* Layout helpers */
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none !important; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.self-center { align-self: center; }

/* Truncation / clamp helpers */
.overflow-hidden { overflow: hidden; }

/* ================= Base / globals ================= */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--surface);
  background-image: var(--page-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--slate-300) 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-600); }

/* ================= Core containers ================= */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }

.section-title {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40rem;
}

.sub-section-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
  color: var(--gold);
}

/* ================= Header / Navbar (Glassmorphic sigma=16 per glass_card.dart) ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--black); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile hamburger */
.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--slate-200); }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* Mobile Nav drawer (glass slide-in) */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 11, 9, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  justify-content: flex-start;
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-content {
  width: 84%;
  max-width: 360px;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  padding: 28px 24px;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav-drawer.open .mobile-nav-content { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--slate-100);
  border: 1px solid var(--border-color);
  cursor: pointer;
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mobile-nav-links a:hover { background: var(--gold-soft); color: var(--black); }
.mobile-nav-actions {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.globe-icon { color: var(--gold); }
.lang-selector select {
  background: transparent;
  color: var(--text-primary);
  border: none;
  outline: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cart-trigger {
  position: relative;
  background: var(--slate-100);
  border: 1px solid var(--border-color);
  padding: 9px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.cart-trigger:hover { background: var(--gold-soft); border-color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.5);
}

/* ================= Hero ================= */
.hero-banner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 20px 40px 20px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero-banner { padding: 72px 28px 56px 28px; }
}
@media (min-width: 1024px) {
  .hero-banner { padding: 96px 40px 80px 40px; }
}

.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 55% at 85% 10%, rgba(34, 197, 94, 0.18), transparent 60%),
    radial-gradient(35% 40% at 10% 90%, rgba(7, 11, 9, 0.06), transparent 65%);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-container { grid-template-columns: 7fr 5fr; gap: 56px; }
}

.hero-content { text-align: left; }

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-50);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
@media (min-width: 640px) {
  .hero-title { font-size: 2.6rem; }
}
@media (min-width: 992px) {
  .hero-title { font-size: 3.2rem; }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .hero-subtitle { font-size: 1rem; }
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 640px) { .hero-actions { gap: 16px; } }

.hero-image-box {
  display: flex;
  justify-content: center;
}
.image-frame {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 24px;
  box-shadow: 0 20px 60px -20px rgba(7,13,25,0.18);
  max-width: 460px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.6), transparent 40%, transparent 60%, rgba(21, 128, 61, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* ================= Trusted By ================= */
.trusted-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--white);
  padding: 24px 20px;
}
@media (min-width: 768px) {
  .trusted-section { padding: 28px 32px; }
}
@media (min-width: 1024px) {
  .trusted-section { padding: 32px 48px; }
}
.trusted-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) {
  .trusted-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }
}
.trusted-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
}
@media (min-width: 640px) { .trusted-logos { gap: 28px; } }
.logo-item {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--slate-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: var(--slate-50);
  border: 1px solid var(--border-color);
}

/* ================= Designed For ================= */
.designed-section {
  padding: 56px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) {
  .designed-section { padding: 64px 28px; }
}
@media (min-width: 1024px) {
  .designed-section { padding: 80px 40px; }
}
.designed-head { text-align: center; max-width: 42rem; margin: 0 auto 1.5rem auto; }
.designed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .designed-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .designed-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}
.designed-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 16px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}
.designed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 14px 28px -10px rgba(7, 11, 9, 0.12);
}
.card-emoji { font-size: 1.6rem; }
.card-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

/* ================= Why Solarcu ================= */
.why-section {
  border-top: 1px solid var(--border-color);
  padding: 56px 20px;
  background: var(--white);
}
@media (min-width: 768px) {
  .why-section { padding: 80px 28px; }
}
@media (min-width: 1024px) {
  .why-section { padding: 96px 40px; }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.why-title-column { max-width: 32rem; }
.why-desc-box { display: flex; flex-direction: column; gap: 1rem; }
.why-paragraph {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
@media (min-width: 768px) {
  .why-paragraph { font-size: 0.95rem; }
}

/* ================= Features ================= */
.features-section {
  border-top: 1px solid var(--border-color);
  padding: 56px 20px;
  background: var(--slate-50);
}
@media (min-width: 768px) {
  .features-section { padding: 80px 28px; }
}
@media (min-width: 1024px) {
  .features-section { padding: 96px 40px; }
}

.features-head { max-width: 44rem; margin: 0 auto 2.5rem auto; text-align: center; }
.features-head .section-title { margin-bottom: 0.75rem; }
.features-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 38rem;
  margin: 0 auto;
}

.features-detailed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .features-detailed-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.detailed-feat-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 28px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.1);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.detailed-feat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.detailed-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(7,13,25,0.18);
}
.detailed-feat-card:hover::after { opacity: 1; }
.feat-icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
  background: var(--primary-gradient);
  box-shadow: 0 8px 18px -8px rgba(21, 128, 61, 0.55);
}
.detailed-feat-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}
.feat-desc-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.feat-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}
.feat-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.feat-bullets li i { color: var(--gold); margin-top: 3px; }

/* ================= Climate ================= */
.climate-section {
  background: var(--black);
  color: var(--white);
  padding: 56px 20px;
}
@media (min-width: 768px) {
  .climate-section { padding: 80px 28px; }
}
@media (min-width: 1024px) {
  .climate-section { padding: 96px 40px; }
}
.climate-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .climate-inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
}
.climate-section .why-paragraph { color: var(--slate-400); }
.climate-section .section-title { color: var(--white); }
.climate-illustration {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.02));
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 24px;
  padding: 36px;
  text-align: center;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ================= Choose Grid ================= */
.choose-section {
  padding: 56px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}
@media (min-width: 768px) {
  .choose-section { padding: 80px 28px; }
}
@media (min-width: 1024px) {
  .choose-section { padding: 96px 40px; }
}

.choose-head { max-width: 42rem; margin: 0 auto 2.5rem auto; text-align: center; }

.choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .choose-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .choose-grid { grid-template-columns: repeat(3, 1fr); }
}

.choose-card {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
  position: relative;
}
.choose-card:hover {
  background: var(--white);
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 18px 40px -18px rgba(7, 11, 9, 0.18);
}
.choose-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.choose-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.choose-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================= Pro Mode ================= */
.pro-section {
  padding: 56px 20px;
  background: var(--slate-50);
}
@media (min-width: 768px) {
  .pro-section { padding: 80px 28px; }
}
@media (min-width: 1024px) {
  .pro-section { padding: 96px 40px; }
}

.pro-card-large {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(7, 11, 9, 0.55);
  border: 1px solid rgba(34, 197, 94, 0.15);
}
@media (min-width: 640px) {
  .pro-card-large { padding: 48px 40px; }
}
@media (min-width: 768px) {
  .pro-card-large {
    grid-template-columns: 7fr 5fr;
    padding: 64px 56px;
    gap: 48px;
  }
}
.pro-card-large::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(35% 50% at 90% 10%, rgba(14, 58, 35, 0.55), transparent 65%),
    radial-gradient(40% 40% at 10% 100%, rgba(7, 11, 9, 0.9), transparent 70%);
  pointer-events: none;
}
.pro-content-side { position: relative; z-index: 1; }
.pro-graphics-side { position: relative; z-index: 1; }
.pro-badge-tag {
  display: inline-block;
  padding: 5px 14px;
  color: var(--ink);
  background: var(--primary-400);
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pro-desc-para {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-300);
}
.pro-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--slate-200);
  margin-top: 1.5rem;
}
@media (min-width: 576px) {
  .pro-bullets { grid-template-columns: 1fr 1fr; }
}
.pro-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.pro-bullets li i { color: var(--gold); margin-top: 3px; }
.pro-graphics-side {
  display: flex; align-items: center; justify-content: center;
}
.graphics-icon {
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.25;
  text-align: center;
}
@media (min-width: 768px) {
  .graphics-icon { font-size: 10rem; }
}

/* ================= Vision ================= */
.vision-section {
  padding: 56px 20px;
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(34, 197, 94, 0.12);
}
@media (min-width: 768px) {
  .vision-section { padding: 80px 28px; }
}
@media (min-width: 1024px) {
  .vision-section { padding: 96px 40px; }
}
.vision-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.vision-para {
  font-size: 1rem;
  color: var(--slate-300);
  line-height: 1.8;
  margin-top: 1.5rem;
}

/* ================= CTA ================= */
.cta-section {
  padding: 56px 20px;
  background-color: var(--ink);
  border-top: 1px solid rgba(34, 197, 94, 0.16);
  color: var(--white);
}
@media (min-width: 768px) {
  .cta-section { padding: 80px 28px; }
}
@media (min-width: 1024px) {
  .cta-section { padding: 96px 40px; }
}
.cta-para {
  font-size: 0.95rem;
  color: var(--slate-400);
  max-width: 30rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ================= Sizing Calculator ================= */
.red-title-banner {
  background: var(--primary-gradient);
  color: var(--white);
  text-align: center;
  padding: 56px 20px;
  box-shadow: inset 0 -6px 18px rgba(21, 128, 61, 0.22);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .red-title-banner { padding: 64px 28px; }
}
@media (min-width: 1024px) {
  .red-title-banner { padding: 72px 40px; }
}
.red-title-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 70% at 80% 0%, rgba(255,255,255,0.35), transparent 60%),
              radial-gradient(30% 50% at 10% 100%, rgba(255,255,255,0.25), transparent 65%);
  pointer-events: none;
}
.red-title-banner h1 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) { .red-title-banner h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .red-title-banner h1 { font-size: 2.75rem; } }
.red-title-banner p {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .red-title-banner p { font-size: 1.05rem; }
}
.banner-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.btn-app-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(7, 11, 9, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--white);
  border: 1px solid var(--glass-border-dark);
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glass-shadow);
}
.btn-app-download i { font-size: 1.25rem; color: var(--primary-400); }
.btn-app-download:hover {
  background: rgba(7, 11, 9, 0.82);
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* ================= Steps ================= */
.step-section {
  background-color: var(--white);
  padding: 40px 20px;
  width: 100%;
}
@media (min-width: 640px) {
  .step-section { padding: 48px 28px; }
}
@media (min-width: 1024px) {
  .step-section { padding: 56px 40px; }
}

.step-section.border-top {
  border-top: 10px solid var(--slate-100);
}

.step-container {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.step-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.step-badge {
  background: var(--primary-gradient);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.35);
}
.step-instruction {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ================= Step 1 Appliances Grid */
.quick-add-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 481px) {
  .quick-add-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 576px) {
  .quick-add-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (min-width: 768px) {
  .quick-add-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
  .quick-add-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1024px) {
  .quick-add-grid { grid-template-columns: repeat(9, 1fr); }
}

.app-grid-card {
  position: relative;
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.app-grid-card:hover {
  background: var(--white);
  border-color: var(--slate-300);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}
.app-grid-card.active {
  background: var(--primary-50);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.22);
  transform: translateY(-2px);
}
.app-grid-icon {
  font-size: 1.6rem;
  color: var(--slate-500);
  margin-bottom: 10px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.app-grid-card.active .app-grid-icon { color: var(--black); }
.app-grid-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.25;
}
.app-qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-gradient);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.5);
}

.step1-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ================= Step 2 rows ================= */
.verified-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.verified-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: flex-end;
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 14px;
  position: relative;
}

@media (min-width: 768px) {
  .verified-row {
    grid-template-columns: 4fr 2fr 2fr 2fr auto;
    align-items: center;
    padding-right: 20px;
  }
}

.row-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.row-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spinner-clean,
.input-clean,
.select-clean {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  font-weight: 500;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.spinner-clean:focus,
.input-clean:focus,
.select-clean:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.delete-row-btn {
  background: var(--slate-100);
  border: 1px solid var(--border-color);
  color: var(--black);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  align-self: flex-end;
  transition: all 0.2s;
}
.delete-row-btn:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  border-color: var(--danger);
}

/* ================= Backup selectors ================= */
.backup-selectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 576px) {
  .backup-selectors-grid { grid-template-columns: 1fr 1fr; }
}
.selector-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.selector-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ================= Step 3 Metrics ================= */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 2.25rem;
}
@media (min-width: 640px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}
.metric-card {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  padding: 22px 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 22px -16px rgba(7, 11, 9, 0.15);
  position: relative;
}
.metric-card.border-red { border-left: 4px solid var(--danger); }
.metric-card.border-green { border-left: 4px solid var(--success); }
.metric-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.metric-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 8px;
}
.metric-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.backup-adjuster {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.adjust-btn {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.adjust-btn:hover { background: var(--gold-soft); border-color: var(--gold); }
.backup-hours-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
}

/* ================= Recommended config cards ================= */
.config-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .config-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.config-card {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-smooth);
  position: relative;
}
.config-card:hover {
  background: var(--white);
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 18px 32px -18px rgba(7, 11, 9, 0.2);
}
.config-card-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.config-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.stock-badge {
  color: var(--success);
  background: var(--success-50);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 2px;
  border: 1px solid rgba(21, 128, 61, 0.2);
}
.stock-badge.out {
  background: var(--danger-50);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.25);
}
.config-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  margin-top: 4px;
}

/* ================= Cost & Savings ================= */
.estimated-cost-block {
  background: var(--black);
  color: var(--white);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.estimated-cost-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 120% at 50% -10%, rgba(34, 197, 94, 0.28), transparent 60%);
  pointer-events: none;
}
.estimated-cost-block > * { position: relative; z-index: 1; }
.cost-title {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 600;
  color: var(--slate-300);
  letter-spacing: 0.02em;
}
.cost-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .cost-val { font-size: 2.5rem; }
}

.savings-block {
  background: var(--primary-50);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2rem;
}
.savings-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
}
.savings-description {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}
.savings-payback {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin-top: 4px;
}
.savings-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ================= Buttons ================= */
.btn-primary {
  background: var(--primary-500);
  color: var(--white);
  font-weight: 800;
  border: 1px solid var(--primary-500);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s ease;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(21, 128, 61, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
  transform: translateY(-1px);
}

.btn-dark-grey {
  background: var(--slate-800);
  color: var(--white);
  border: 1px solid var(--slate-800);
  font-weight: 700;
  padding: 12px 20px;
  font-size: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-dark-grey:hover {
  background: var(--slate-900);
  transform: translateY(-1px);
}

.btn-light-grey {
  background: var(--slate-100);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 700;
  padding: 12px 20px;
  font-size: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-light-grey:hover {
  background: var(--slate-200);
}

.btn-red-action {
  background: var(--primary-gradient);
  color: var(--white);
  border: 1px solid rgba(34, 197, 94, 0.45);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 16px 20px;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px -8px rgba(21, 128, 61, 0.55);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-red-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -8px rgba(21, 128, 61, 0.72);
}

.btn-green-action {
  background: var(--primary-gradient);
  color: var(--white);
  border: 1px solid rgba(34, 197, 94, 0.45);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 16px 20px;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 26px -8px rgba(21, 128, 61, 0.55);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.btn-green-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -8px rgba(21, 128, 61, 0.72);
}

/* ================= Shop Catalog ================= */
.shop-section {
  background-color: var(--white);
  border-top: 10px solid var(--slate-100);
  padding: 56px 20px;
}
@media (min-width: 768px) {
  .shop-section { padding: 80px 28px; }
}
@media (min-width: 1024px) {
  .shop-section { padding: 96px 40px; }
}

.shop-header {
  max-width: 1200px;
  margin: 0 auto 2.25rem auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .shop-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.shop-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .shop-controls {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
  }
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }
.chip-btn {
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all 0.2s;
  font-family: inherit;
}
.chip-btn:hover { background: var(--slate-200); }
.chip-btn.active {
  background: var(--ink);
  color: var(--primary-400);
  border-color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(7, 11, 9, 0.35);
}

.shop-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 900px) {
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* ================= Counter group (shop + cart quantity controls) ================= */
.counter-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--slate-100);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2px;
}
.counter-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: var(--white);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.18s;
}
.counter-btn:hover { background: var(--gold-soft); color: var(--black); }
.counter-qty {
  min-width: 22px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  padding: 0 4px;
}

.card-clean {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px -10px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}
.card-clean:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -14px rgba(7, 11, 9, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
}
.product-image-box {
  background: var(--slate-50);
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
}
.badge-stack {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge-featured {
  background: var(--warning);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.badge-sale {
  background: var(--primary);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}
.badge-out-of-stock {
  background: var(--danger);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.prod-grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--slate-500);
  z-index: 2;
  transition: all 0.2s;
}
.fav-btn:hover { background: var(--white); }
.fav-btn.active { color: #dc2626; }

.product-info-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}
.product-category-label {
  font-size: 0.62rem;
  font-weight: 750;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-title-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  min-height: 2.35rem;
}
.product-desc-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.product-bottom-row {
  margin-top: 10px;
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.product-price-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--black);
}
.shop-title-heading {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .shop-title-heading { font-size: 1.875rem; }
}

/* Cart / checkout widgets (app.js-rendered) */
.rec-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}
.rec-item:last-child { border-bottom: none; }
.rec-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rec-type {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rec-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rec-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ================= Footer ================= */
.footer {
  background-color: var(--ink);
  color: var(--slate-100);
  padding: 56px 20px;
  border-top: 2px solid rgba(34, 197, 94, 0.22);
}
@media (min-width: 768px) {
  .footer { padding: 64px 28px; }
}
@media (min-width: 1024px) {
  .footer { padding: 80px 40px; }
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-container { grid-template-columns: 5fr 3fr 4fr; gap: 40px; }
}

.brand-desc {
  font-size: 0.82rem;
  color: var(--slate-400);
  line-height: 1.7;
}
.tagline-text {
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.copyright {
  font-size: 0.7rem;
  color: var(--slate-500);
  display: block;
}

.footer-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--gold);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--slate-400);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }

.newsletter-desc {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 12px;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 6px;
}

/* ================= Cart drawer (glassmorphic sigma=16 per glass_card.dart) ================= */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 11, 9, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
}
.cart-drawer-content {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--glass-border);
  height: 100%;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
}
@media (min-width: 640px) {
  .cart-drawer-content { padding: 32px 28px; }
}
.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--slate-100);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.close-btn:hover { background: var(--gold-soft); border-color: var(--gold); }

.drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  padding-right: 44px;
}
.cart-items-list {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-summary {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-600);
}
.summary-row.total-row {
  font-size: 0.95rem;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px dashed var(--slate-200);
}
.summary-row.total-row span:last-child {
  font-size: 1.1rem;
  color: var(--black);
  font-weight: 900;
}

/* ================= Checkout Modal ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7, 11, 9, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(7, 11, 9, 0.55);
}
@media (min-width: 640px) {
  .modal-content { padding: 36px 32px; }
}
.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  padding-right: 44px;
  line-height: 1.3;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.checkout-success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
  gap: 10px;
}
.success-icon {
  font-size: 3rem;
  color: var(--primary-500);
  margin-bottom: 0.25rem;
}
.success-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0;
  line-height: 1.6;
}

/* Accessibility helpers: focus ring — emerald per mobile palette */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.45);
  border-color: var(--primary);
}

/* ================= Product Details View Modal ================= */
.product-modal-content {
  width: 92%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  animation: modalScaleUp 0.25s ease-out forwards;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .product-details-grid {
    grid-template-columns: 320px 1fr;
  }
}

.pm-image-col {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--slate-50);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
}

.pm-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pm-main-img:hover {
  transform: scale(1.05);
}

.pm-placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--primary-50);
}

.pm-info-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.badge-in-stock {
  background: #DCFCE7;
  color: #15803D;
}

/* User Status Dot & Auth Modal Styling */
.user-status-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  background-color: var(--primary-500);
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.cart-trigger {
  position: relative;
}

.auth-tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.order-card {
  transition: all 0.2s ease;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  border-color: var(--primary-500);
}


