/* ==========================================================================
   FundedDeals — homepage stylesheet (standalone)
   Ported from the React/Tailwind homepage so the design is unchanged.
   Independent of static/landing.css (the per-brand template).
   ========================================================================== */

:root {
  --background: 222 47% 6%;
  --foreground: 210 40% 98%;
  --card: 222 47% 8%;
  --primary: 45 93% 47%;
  --primary-foreground: 222 47% 6%;
  --secondary: 217 33% 17%;
  --muted: 217 33% 14%;
  --muted-foreground: 215 20% 55%;
  --border: 217 33% 17%;
  --radius: 0.5rem;

  --gradient-gold: linear-gradient(135deg, hsl(45 93% 47%), hsl(35 93% 40%));
  --shadow-gold: 0 4px 20px -4px hsl(45 93% 47% / 0.25);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-tight { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.compact-section { padding: 2rem 0; }
@media (min-width: 768px) { .compact-section { padding: 3rem 0; } }

/* ---------- Design tokens ---------- */
.text-gradient-gold {
  background-image: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-weight: 600; padding: 0.5rem 1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-gold); border: 0; cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.btn-gold:hover { filter: brightness(1.1); transform: scale(1.02); }
.card-glass {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border) / 0.5);
}
.icon { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.header-logo img { height: 2rem; width: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav > a { font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.header-nav > a:hover { color: hsl(var(--foreground)); }
.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.btn-telegram {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: #0088cc; color: #fff; font-size: 0.875rem; font-weight: 600;
  padding: 0.375rem 0.75rem; border-radius: 0.375rem;
  box-shadow: 0 0 15px -3px #0088cc; transition: background 0.2s;
}
.btn-telegram:hover { background: hsl(204 100% 40% / 0.9); color: #fff; }
.header-cta .btn-gold { font-size: 0.875rem; padding: 0.375rem 0.75rem; }

/* Mobile menu: rendered server-side, toggled by class so the links stay in the HTML. */
.header-menu-btn {
  display: none; padding: 0.5rem; background: none; border: 0; cursor: pointer;
  color: hsl(var(--foreground)); line-height: 0;
}
.header-menu-btn .icon-close { display: none; }
.header-menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.header-menu-btn[aria-expanded="true"] .icon-close { display: inline; }

.header-mobile { display: none; }
.header-mobile.is-open { display: block; padding: 1rem 0; border-top: 1px solid hsl(var(--border)); }
.header-mobile > a {
  display: block; padding: 0.5rem 0;
  font-size: 0.875rem; font-weight: 500; color: hsl(var(--muted-foreground));
}
.header-mobile > a:hover { color: hsl(var(--foreground)); }
.header-mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.5rem; }
.header-mobile-cta .btn-telegram,
.header-mobile-cta .btn-gold { justify-content: center; padding: 0.5rem 0.75rem; }

@media (max-width: 767px) {
  .header-nav { display: none; }
  .header-menu-btn { display: block; }
}
@media (max-width: 640px) {
  .btn-telegram span { display: none; }
  .btn-telegram { padding: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 2rem 0;
  background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--card)));
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 3rem 0; } }
.hero-center { text-align: center; max-width: 48rem; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 9999px; padding: 0.25rem 0.75rem; margin-bottom: 1rem;
  font-size: 0.75rem; font-weight: 500; color: hsl(var(--primary));
}
.hero h1 { font-size: 1.875rem; line-height: 1.35; margin-bottom: 0.75rem; }
.hero h1 .line2 { display: block; margin-top: 0.25rem; padding-bottom: 0.5rem; }
@media (min-width: 768px) { .hero h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3rem; } }

.hero-sub {
  color: hsl(var(--muted-foreground)); font-size: 1rem;
  max-width: 42rem; margin: 0 auto 1.5rem;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.125rem; } }

/* ---------- Search ---------- */
.search-wrap { position: relative; width: 100%; max-width: 36rem; margin: 0 auto 2rem; }
.search-glow {
  position: absolute; inset: -0.25rem; border-radius: 0.75rem; filter: blur(12px);
  background: linear-gradient(90deg,
    hsl(var(--primary) / 0.5), hsl(48 96% 77% / 0.5), hsl(271 91% 65% / 0.5));
  opacity: 0.6; transition: opacity 0.5s;
}
.search-wrap:focus-within .search-glow { opacity: 1; }
.search-field { position: relative; }
.search-field .icon-search {
  position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%);
  color: hsl(var(--muted-foreground)); transition: color 0.3s;
}
.search-wrap:focus-within .icon-search { color: hsl(var(--primary)); }
.search-input {
  width: 100%; padding: 1rem 1rem 1rem 3.5rem; font-size: 1.125rem;
  background: hsl(var(--card)); color: hsl(var(--foreground));
  border: 2px solid hsl(var(--primary) / 0.4); border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5); outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
@media (min-width: 768px) { .search-input { padding-top: 1.25rem; padding-bottom: 1.25rem; } }
.search-input::placeholder { color: hsl(var(--muted-foreground) / 0.7); }
.search-input:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 30px rgb(234 179 8 / 0.2); }

.search-spinner {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: hsl(var(--muted-foreground)); display: none; line-height: 0;
}
.search-spinner.is-on { display: block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.search-results {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 0.5rem; z-index: 50;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border)); border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
  overflow: hidden; display: none;
}
.search-results.is-open { display: block; animation: fadeIn 0.5s ease-out forwards; }
.search-results ul { max-height: 16rem; overflow-y: auto; }
.search-results a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; transition: background 0.15s;
}
.search-results a:hover { background: hsl(var(--secondary) / 0.5); }
.search-results li + li a { border-top: 1px solid hsl(var(--border) / 0.5); }
.search-results a span { font-weight: 500; }
.search-results a .icon { color: hsl(var(--primary)); }
.search-empty { padding: 1.5rem 1rem; text-align: center; color: hsl(var(--muted-foreground)); }
.search-empty small { display: block; margin-top: 0.25rem; font-size: 0.875rem; }

/* ---------- Logo marquee ---------- */
.marquee-block { width: 100%; margin: 0 auto 2rem; opacity: 0.9; }
.marquee-block:hover { opacity: 1; }
.marquee-label {
  text-align: center; margin-bottom: 0.75rem; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground)); font-weight: 500;
}
.marquee-viewport { position: relative; display: flex; overflow-x: hidden; }
.marquee-track {
  display: flex; align-items: center; gap: 2rem; padding-right: 2rem;
  flex-shrink: 0; min-width: 100%; white-space: nowrap;
  animation: marquee 25s linear infinite;
}
.marquee-viewport:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { flex-shrink: 0; filter: grayscale(1); transition: filter 0.3s; }
.marquee-track a:hover { filter: grayscale(0); }
.marquee-track img { height: 2.5rem; width: auto; object-fit: contain; opacity: 0.7; border-radius: 0.375rem; }
.marquee-track a:hover img { opacity: 1; }
.marquee-fade-l, .marquee-fade-r {
  pointer-events: none; position: absolute; top: 0; bottom: 0; width: 6rem; z-index: 10;
}
.marquee-fade-l { left: 0; background: linear-gradient(to right, hsl(var(--background)), transparent); }
.marquee-fade-r { right: 0; background: linear-gradient(to left, hsl(var(--background)), transparent); }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 28rem; margin: 0 auto; }
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid hsl(var(--border)); }
.stat-top {
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  color: hsl(var(--primary)); margin-bottom: 0.25rem;
}
.stat-num { font-size: 1.25rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ---------- Promotion cards ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .promo-grid { grid-template-columns: 1fr 1fr; } }

.promo-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 0.75rem; padding: 1.5rem;
  background: linear-gradient(to right, hsl(var(--card)), hsl(var(--secondary) / 0.3));
  border: 1px solid hsl(var(--border));
  transition: box-shadow 0.3s, transform 0.3s;
}
.promo-card:hover {
  box-shadow: 0 0 30px -5px hsl(var(--primary));
  transform: scale(1.01);
}
.promo-card--tg {
  background: linear-gradient(to right, hsl(204 100% 40% / 0.1), hsl(204 100% 40% / 0.05));
  border-color: hsl(204 100% 40% / 0.2);
}
.promo-card--tg:hover { border-color: hsl(204 100% 40% / 0.5); box-shadow: 0 0 30px -5px #0088cc; }

.promo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.promo-head-left { display: flex; align-items: center; gap: 0.75rem; }
.promo-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
}
.promo-card--tg .promo-icon { background: hsl(204 100% 40% / 0.2); color: #0088cc; }
.promo-title { font-size: 1.125rem; line-height: 1.25; }
.promo-kicker { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.promo-pill {
  font-size: 0.625rem; font-weight: 500; padding: 0.25rem 0.5rem;
  border-radius: 9999px; white-space: nowrap;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
}
.promo-card--tg .promo-pill { background: hsl(204 100% 40% / 0.1); color: #0088cc; padding: 0.125rem 0.5rem; }
.promo-pill--tg { display: inline-block; margin-top: 0.25rem; }
.promo-pill-wrap { display: none; }
@media (min-width: 1024px) { .promo-pill-wrap { display: block; } }
.promo-body { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; flex-grow: 1; }
.promo-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.promo-features { display: grid; grid-template-columns: 1fr; gap: 0.5rem 1rem; }
@media (min-width: 1024px) { .promo-features { grid-template-columns: 1fr 1fr; } }
.promo-features li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: hsl(var(--foreground) / 0.8);
}
.promo-features .icon { color: hsl(var(--primary)); }
.promo-card--tg .promo-features .icon { color: #0088cc; }
.promo-features--tg { display: flex; flex-wrap: wrap; gap: 1rem; }
.promo-features--tg li { font-size: 0.875rem; }
.promo-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1rem; border-top: 1px solid hsl(var(--border) / 0.5);
}
.promo-card--tg .promo-actions { border-top-color: hsl(204 100% 40% / 0.2); }
.promo-actions .btn-gold { width: 100%; padding: 0.625rem 1rem; }
.promo-actions .btn-tg {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; height: 2.5rem; border-radius: 0.5rem;
  background: #0088cc; color: #fff; font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s;
}
.promo-actions .btn-tg:hover { background: hsl(204 100% 40% / 0.9); }
.promo-inline-note { font-size: 0.625rem; color: hsl(var(--muted-foreground)); white-space: nowrap; }
@media (min-width: 1024px) { .promo-inline-note { display: none; } }

/* ---------- Browse by firm (added block) ---------- */
.firms-section { background: hsl(var(--card) / 0.5); }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  color: hsl(var(--primary)); font-size: 0.75rem; font-weight: 500;
}
.section-title { font-size: 1.875rem; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-sub { font-size: 1rem; color: hsl(var(--muted-foreground)); max-width: 42rem; margin: 0 auto; }

.firm-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.firm-card {
  flex: 1 1 15rem; max-width: 24rem; min-width: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.875rem 1rem; border-radius: 0.75rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  transition: border-color 0.2s, transform 0.2s;
}
.firm-card:hover { border-color: hsl(var(--primary) / 0.5); transform: translateY(-2px); }
.firm-card-name {
  font-weight: 600; font-size: 0.9375rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.firm-card:hover .firm-card-name { color: hsl(var(--primary)); }
.firm-card-meta { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* Two columns on phones: the cards are short, so a single column wastes the width. */
@media (max-width: 767px) {
  .firm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .firm-card { max-width: none; }
  .firm-card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.firm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.firm-card-save {
  flex-shrink: 0; font-size: 0.75rem; font-weight: 700;
  padding: 0.125rem 0.5rem; border-radius: 9999px;
  color: hsl(var(--primary)); background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
}

/* ---------- Featured exclusive codes (site-wide code table) ---------- */
.codes-section { background: hsl(var(--background)); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.codes-table-wrap {
  overflow-x: auto; border-radius: 0.75rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
}
/* Fixed layout so an over-long brand name truncates with "…" instead of
   stretching the table past the viewport and scrolling the whole page. */
.codes-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; table-layout: fixed; }
.codes-table th, .codes-table td {
  padding: 0.75rem 1rem; text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}
.codes-table th:nth-child(1) { width: 34%; }
.codes-table th:nth-child(2) { width: 22%; }
.codes-table th:nth-child(3) { width: 24%; }
.codes-table th:nth-child(4) { width: 20%; }
.codes-table thead th {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / 0.4);
}
.codes-table tbody tr:last-child th, .codes-table tbody tr:last-child td { border-bottom: 0; }
.codes-table tbody tr:hover { background: hsl(var(--primary) / 0.05); }
.codes-firm { font-weight: 600; }
.codes-firm a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--foreground)); }
.codes-firm a:hover { color: hsl(var(--primary)); }
.codes-chip {
  display: inline-flex; align-items: center; max-width: 100%; vertical-align: bottom;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem; border-radius: 0.4rem;
  color: hsl(var(--primary)); background: hsl(var(--primary) / 0.1);
  border: 1px dashed hsl(var(--primary) / 0.4);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.codes-chip:hover { background: hsl(var(--primary) / 0.18); border-color: hsl(var(--primary)); }
.codes-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codes-chip.is-copied { background: hsl(var(--primary)); border-color: hsl(var(--primary)); border-style: solid; color: hsl(var(--primary-foreground)); }
.codes-save { font-weight: 600; color: hsl(var(--primary)); }
.codes-save-note { font-weight: 400; color: hsl(var(--muted-foreground)); }
.codes-cta { text-align: right; }
.codes-link {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 600; color: hsl(var(--primary));
}
.codes-link-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codes-link svg { flex: none; }
.codes-link:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .codes-table th, .codes-table td { padding: 0.625rem 0.75rem; font-size: 0.875rem; }
  .codes-table th:nth-child(1) { width: 44%; }
  .codes-table th:nth-child(2) { width: 28%; }
  .codes-table th:nth-child(3) { width: 28%; }
  .codes-cta { display: none; }
  /* The number is what matters; the "(current deal)" qualifier is what overflows. */
  .codes-save-note { display: none; }
}

/* ---------- Roundups carousel ---------- */
.roundups { background: hsl(var(--card) / 0.5); }
.carousel { position: relative; padding: 0 1rem; }
@media (min-width: 768px) { .carousel { padding: 0 3rem; } }
.carousel-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 768px) { .carousel-item { flex-basis: calc(50% - 0.5rem); } }
@media (min-width: 1024px) { .carousel-item { flex-basis: calc(33.333% - 0.667rem); } }
@media (min-width: 1280px) { .carousel-item { flex-basis: calc(25% - 0.75rem); } }

.roundup-card {
  display: flex; align-items: flex-start; gap: 1rem; height: 100%;
  border-radius: 0.75rem; padding: 1rem;
  transition: border-color 0.2s;
}
.roundup-card:hover { border-color: hsl(var(--primary) / 0.5); }
.roundup-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  color: hsl(var(--primary)); transition: background 0.2s;
}
.roundup-card:hover .roundup-icon { background: hsl(var(--primary) / 0.2); }
.roundup-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.roundup-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.roundup-tag {
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
  padding: 0.125rem 0.5rem; border-radius: 0.25rem;
  background: hsl(var(--secondary) / 0.8);
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border) / 0.5);
  transition: color 0.2s, border-color 0.2s;
}
.roundup-card:hover .roundup-tag { color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.2); }
.roundup-arrow { color: hsl(var(--muted-foreground) / 0.3); transition: color 0.2s, transform 0.2s; }
.roundup-card:hover .roundup-arrow { color: hsl(var(--primary)); transform: translateX(0.25rem); }
.roundup-title { font-size: 0.875rem; line-height: 1.35; margin-bottom: 0.25rem; transition: color 0.2s; }
.roundup-card:hover .roundup-title { color: hsl(var(--primary)); }
.roundup-desc { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 2rem; height: 2rem; border-radius: 9999px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
@media (min-width: 768px) { .carousel-nav { display: flex; } }
.carousel-nav:hover { background: hsl(var(--secondary)); }
.carousel-nav--prev { left: 0; }
.carousel-nav--next { right: 0; }

/* ---------- Reviews ---------- */
.reviews-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-radius: 0.75rem;
  background: hsl(var(--card) / 0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border) / 0.5);
}
@media (min-width: 768px) { .reviews-card { flex-direction: row; } }
.reviews-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, hsl(var(--primary) / 0.05), transparent);
}
.reviews-left { flex: 1; position: relative; z-index: 1; width: 100%; padding: 0.5rem 0; }
.reviews-stars { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.reviews-stars svg { color: #eab308; fill: #eab308; }
.reviews-trust {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: hsl(var(--primary));
}
.reviews-title { font-size: 1.5rem; line-height: 1.25; margin-bottom: 0.5rem; }
.reviews-text { font-size: 0.875rem; color: hsl(var(--muted-foreground)); max-width: 42rem; line-height: 1.6; }
.reviews-right {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; z-index: 1; width: 100%; margin-top: 1rem;
}
@media (min-width: 768px) { .reviews-right { width: auto; margin-top: 0; } }
.reviews-features { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
@media (min-width: 768px) { .reviews-features { justify-content: flex-end; } }
.reviews-features li {
  display: flex; align-items: center; gap: 0.5rem;
  color: hsl(var(--muted-foreground) / 0.8); font-size: 0.75rem; font-weight: 500;
}
.reviews-features .icon { color: hsl(var(--primary)); }
.reviews-actions { display: flex; align-items: center; gap: 0.75rem; width: 100%; }
@media (min-width: 768px) { .reviews-actions { justify-content: flex-end; width: auto; } }
.btn-ghost {
  flex: 1; text-align: center; white-space: nowrap;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  background: hsl(var(--secondary) / 0.5); border-radius: 0.5rem;
  transition: background 0.2s;
}
.btn-ghost:hover { background: hsl(var(--secondary)); }
.reviews-actions .btn-gold { flex: 1; white-space: nowrap; font-size: 0.875rem; padding: 0.5rem 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); margin-top: auto; }
.footer-main { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer-main { padding-top: 4rem; padding-bottom: 4rem; } }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, 1fr); gap: 2rem; } }
.footer-brand { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 1024px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 2.5rem; width: auto; max-width: 100%; object-fit: contain; }
.footer-bio { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; max-width: 20rem; }
.footer-mail { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.footer-mail:hover { color: hsl(var(--primary)); }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--secondary) / 0.5); color: hsl(var(--muted-foreground));
  transition: background 0.3s, color 0.3s;
}
.footer-socials a:hover { background: hsl(var(--primary)); color: #fff; }
.footer-col { min-width: 0; }
.footer-col h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-col a { color: hsl(var(--muted-foreground)); transition: color 0.2s; display: block; }
.footer-col a:hover { color: hsl(var(--primary)); }
.footer-col--firms a { display: flex; align-items: center; gap: 0.5rem; }
.footer-col--firms a::before {
  content: ""; width: 0.25rem; height: 0.25rem; border-radius: 9999px;
  background: hsl(var(--border)); flex-shrink: 0; transition: background 0.2s;
}
.footer-col--firms a:hover::before { background: hsl(var(--primary)); }
.footer-col--firms span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.footer-news { grid-column: span 2; }
@media (min-width: 1024px) { .footer-news { grid-column: span 1; } }
.footer-news p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.footer-news input {
  width: 100%; background: hsl(var(--background));
  border: 1px solid hsl(var(--border)); border-radius: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; color: hsl(var(--foreground)); outline: none;
}
.footer-news input:focus { border-color: hsl(var(--primary) / 0.5); }
.footer-news .btn-gold { width: 100%; padding: 0.625rem; font-size: 0.875rem; margin-top: 0.75rem; }
.footer-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
.footer-alt a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; padding: 0.625rem 0.5rem;
  border-radius: 0.375rem; color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  transition: all 0.3s;
}
.footer-alt a:hover { border-color: #0088cc; background: hsl(204 100% 40% / 0.1); color: #0088cc; }
.footer-alt a.gold:hover { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }

.footer-bottom { border-top: 1px solid hsl(var(--border)); margin-top: 3rem; padding-top: 2rem; }
.footer-disclosure {
  font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.6;
  text-align: center; max-width: 56rem; margin: 0 auto;
}
.footer-legal {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.5rem; font-size: 0.75rem; color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) { .footer-legal { flex-direction: row; } }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a:hover { color: hsl(var(--foreground)); }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .btn-gold:hover { transform: none; }
  .promo-card:hover, .firm-card:hover { transform: none; }
}
