/* ============================================================
   Sparc Energy — Premium Global Styles v3.0
   Mobile-first, pixel-perfect responsive design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --primary:       #064E3B;
  --primary-hover: #065F46;
  --primary-light: #d1fae5;
  --secondary:     #0F172A;
  --accent:        #B45309;
  --accent-light:  #fef3c7;
  --dark:          #020617;
  --dark-light:    #1E293B;
  --light:         #F8FAFC;
  --white:         #FFFFFF;
  --text-main:     #334155;
  --text-muted:    #64748B;
  --border-color:  #E2E8F0;

  --radius-xs:  2px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-full:9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px -2px rgba(0,0,0,.08), 0 2px 6px -1px rgba(0,0,0,.04);
  --shadow-lg:  0 24px 40px -8px rgba(0,0,0,.10), 0 8px 16px -4px rgba(0,0,0,.04);
  --shadow-card:0 2px 8px rgba(6,78,59,.06);

  --glass:      rgba(255,255,255,.92);
  --container:  1200px;
  --ease-out:   cubic-bezier(.4,0,.2,1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

h1  { font-size: clamp(1.8rem, 5vw, 4.5rem); }
h2  { font-size: clamp(1.4rem, 3.5vw, 2.25rem); }
h3  { font-size: 1.1rem; font-family:'Inter',sans-serif; font-weight:600; letter-spacing:0; }
p   { margin-bottom: 1.25rem; color: var(--text-muted); }

a   { color: var(--primary); text-decoration:none; transition: all .25s var(--ease-out); }
a:hover { color: var(--accent); }

img { max-width:100%; display:block; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width:480px)  { .container { padding: 0 1.25rem; } }
@media (min-width:640px)  { .container { padding: 0 2rem; } }
@media (min-width:1024px) { .container { padding: 0 2.5rem; } }

.section-padding { padding: 2.5rem 0; }
@media (min-width:640px)  { .section-padding { padding: 4rem 0; } }
@media (min-width:768px)  { .section-padding { padding: 6rem 0; } }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  transition: box-shadow .3s;
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

@media (min-width:768px) { .navbar .container { height: 64px; } }

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  z-index: 1001;
}
.nav-brand span { color: var(--primary); }

/* Desktop nav links */
.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

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

.nav-links a {
  color: var(--text-main);
  font-size: .875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

/* ── Hamburger Button ─────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 11px;
  transition: all .2s;
  z-index: 1001;
  position: relative;
  flex-shrink: 0;
}
.hamburger:hover { border-color: var(--primary); background: var(--primary-light); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .35s var(--ease-out);
  transform-origin: center;
}
.hamburger.open { border-color: var(--primary); background: var(--primary); }
.hamburger.open span { background: #ffffff; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* ── Mobile Navigation Drawer ────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(160deg, #0a3d2e 0%, #020617 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1.5rem 1.25rem 2rem;
  gap: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s var(--ease-out);
  visibility: hidden;
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

/* Primary nav links */
.mobile-nav > a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: all .25s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}
.mobile-nav > a:first-of-type { border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-nav > a:hover,
.mobile-nav > a:active {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  padding-left: 1.6rem;
}

/* Divider line */
.mobile-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.75rem 0;
}

/* Auth button in mobile nav */
.mobile-nav .btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  justify-content: center;
}

/* ── Live Ticker ──────────────────────────────────────────── */
.ticker-wrap {
  background: var(--dark);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (min-width:640px) { .ticker-wrap { height: 44px; } }

.ticker {
  display: flex;
  animation: ticker-scroll 45s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 0 1.5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

@media (min-width:640px) { .ticker-item { padding: 0 2.5rem; font-size: .8rem; } }

.ticker-item span {
  color: var(--accent);
  margin-left: .5rem;
  font-weight: 700;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all .3s var(--ease-out);
  border: 1.5px solid transparent;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(6,78,59,.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,78,59,.35);
  color: #fff !important;
}

.btn-secondary {
  background: transparent;
  color: var(--dark) !important;
  border-color: var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--dark);
  background: rgba(0,0,0,.03);
}

.btn-sm { padding: .5rem 1rem; font-size: .82rem; }
.btn-full { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 3rem 0 2.5rem;
  background: var(--white);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

@media (min-width:640px)  { .hero { padding: 5rem 0 4rem; } }
@media (min-width:768px)  { .hero { padding: 8rem 0 6rem; } }

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 200%);
  height: 600px;
  background: radial-gradient(ellipse, rgba(6,78,59,.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
  color: var(--dark);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.15;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero p {
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-main);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Full-width buttons on very small screens */
@media (max-width:380px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

/* Stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

@media (min-width:480px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

@media (min-width:640px) {
  .hero-stats { display: flex; justify-content: center; gap: 3rem; }
}

.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1;
}
@media (min-width:640px) { .hero-stat strong { font-size: 1.75rem; } }
.hero-stat span { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ── Section Titles ───────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: .75rem;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
}

.section-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: .95rem;
  color: var(--text-muted);
}

@media (min-width:640px) { .section-subtitle { margin-bottom: 3.5rem; } }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}

/* ── Category Headers ─────────────────────────────────────── */
.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width:640px) { .category-header { margin-top: 4rem; margin-bottom: 1.5rem; } }

.category-header h3 {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}
.category-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all .3s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width:480px) { .card { padding: 1.35rem; border-radius: var(--radius-lg); } }
@media (min-width:640px) { .card { padding: 1.75rem; box-shadow: var(--shadow-md); } }

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(180,83,9,0.25);
  }
  .card:hover::before { transform: scaleX(1); }
}

/* Active state for touch */
a.card:active { transform: scale(.98); }

.card h3 { color: var(--dark); margin-bottom: .4rem; font-size: .95rem; }
@media (min-width:640px) { .card h3 { font-size: 1.05rem; } }

a.card { color: inherit; }
a.card:hover { color: inherit; }

.card-icon {
  font-size: 1.4rem;
  margin-bottom: .5rem;
  display: block;
}

@media (min-width:640px) { .card-icon { font-size: 1.75rem; margin-bottom: .75rem; } }

/* ── Grid ─────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2-col on mobile */
  gap: .75rem;
}

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

@media (min-width:900px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (min-width:1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
}

/* 2-col & 3-col specific grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width:640px) { .grid-2 { grid-template-columns: repeat(2,1fr); gap: 1.5rem; } }

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width:480px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width:900px) { .grid-3 { grid-template-columns: repeat(3,1fr); gap: 1.5rem; } }

/* span helpers */
@media (min-width:900px) {
  .col-span-2 { grid-column: span 2; }
  .col-span-3 { grid-column: span 3; }
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group  { margin-bottom: 1.25rem; }
.form-label  { display:block; font-weight:500; margin-bottom:.4rem; color:var(--text-main); font-size:.875rem; }

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all .25s;
  background: var(--white);
  color: var(--dark);
  appearance: none;
  -webkit-appearance: none;
  /* Prevent zoom on iOS */
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,78,59,.1);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── Result Box ───────────────────────────────────────────── */
.result-box {
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

@media (min-width:640px) { .result-box { padding: 2.5rem; margin-top: 2rem; } }

.result-box h3 {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: .5rem;
}

/* ── Trust/Feature Strip ──────────────────────────────────── */
.feature-strip {
  background: var(--dark);
  padding: 2rem 0;
}

@media (min-width:640px) { .feature-strip { padding: 3rem 0; } }

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (min-width:900px) { .feature-strip-grid { grid-template-columns: repeat(4,1fr); gap: 2rem; } }

.feature-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.feature-item .fi-icon { font-size: 1.75rem; }
@media (min-width:640px) { .feature-item .fi-icon { font-size: 2rem; } }
.feature-item strong { color: #fff; font-size: .9rem; }
.feature-item span { color: rgba(255,255,255,.55); font-size: .75rem; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #065F46);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width:640px) { .cta-banner { padding: 4rem 0; } }

.cta-banner::before {
  content: '⚡';
  position: absolute;
  font-size: min(20rem, 80vw);
  opacity: .04;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.cta-banner .btn-primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.cta-banner .btn-secondary { background: transparent; border-color: rgba(255,255,255,.4); color: #fff !important; }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,.1); }

/* Stack CTA buttons on mobile */
.cta-banner > .container > div {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width:400px) {
  .cta-banner > .container > div { flex-direction: column; align-items: center; }
  .cta-banner .btn { width: 100%; max-width: 260px; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--primary);
}

@media (min-width:640px) { .footer { padding: 4rem 0 2rem; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (min-width:640px)  { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:900px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; } }

.footer h4 { color: #fff; font-family:'Inter',sans-serif; font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer ul li a { color: rgba(255,255,255,.5); font-size:.85rem; transition: color .2s; }
.footer ul li a:hover { color: #fff; }

/* On mobile, brand spans full width */
.footer-brand { grid-column: 1 / -1; }
@media (min-width:900px) { .footer-brand { grid-column: auto; } }

.footer-brand .nav-brand { color: #fff; font-size: 1.4rem; margin-bottom: .75rem; }
.footer-brand .nav-brand span { color: var(--accent); }
.footer-brand p { font-size: .875rem; max-width: 280px; line-height: 1.7; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
@media (min-width:640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { margin: 0; font-size: .78rem; }

/* Social icons */
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: rgba(255,255,255,.6);
  transition: all .2s;
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Back to Top ──────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s var(--ease-out);
  z-index: 400;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-hover); transform: translateY(-3px); }

/* ── Cookie Banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark-light);
  color: rgba(255,255,255,.85);
  padding: 1rem;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border-top: 2px solid var(--primary);
  font-size: .85rem;
  transform: translateY(100%);
  transition: transform .4s var(--ease-out);
}
.cookie-banner.show { transform: translateY(0); }
@media (min-width:640px) {
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem 2rem; }
}
.cookie-banner p { margin: 0; font-size: .82rem; }
.cookie-banner .cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-green  { background: var(--primary-light); color: var(--primary); }
.badge-gold   { background: var(--accent-light);  color: var(--accent); }
.badge-dark   { background: var(--dark-light); color: rgba(255,255,255,.8); }

/* ── Misc utility ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.mt-auto { margin-top: auto; }

/* Spinner */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tag group */
.tag-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* ── Mobile-only: hide long tool description on very small screens ── */
@media (max-width:380px) {
  .card p { display: none; }
  .card h3 { font-size: .85rem; }
  .card-icon { font-size: 1.25rem; }
}
