/* ===== ROOT VARIABLES ===== */
:root {
  --bg: #f5f7ff;
  --surface: #ffffff;
  --text: #0e1630;
  --muted: #5a6a90;
  --primary: #1f6fff;
  --primary-strong: #0f57d7;
  --radius: 14px;
  --container: 78rem;
  --shadow: 0 4px 20px rgba(14, 22, 48, 0.08);
  --card-border: #e3e9f8;
  --fire: #ff416c;
  --fire-end: #ff9a00;
  --hero-bg-start: #07090f;
  --hero-bg-mid: #141040;
  --hero-bg-end: #0d1832;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

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

/* ===== HEADER ===== */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}

.site-header,
.section,
.site-footer {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  flex-wrap: wrap;
}

/* ===== BRAND ===== */
.brand {
  font-weight: 900;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== NAV ===== */
.nav-links {
  display: none;
  gap: 0.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  transition: background 0.14s, color 0.14s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: #edf3ff;
  color: var(--primary);
}

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

/* ===== LAYOUT SECTIONS ===== */
.section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-block: 1.25rem;
}

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

.section-header h2 { margin: 0; }

.see-all {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}

.see-all:hover { text-decoration: underline; }

/* ===== HERO (magazine) ===== */
.hero-mag {
  background: linear-gradient(140deg, var(--hero-bg-start) 0%, var(--hero-bg-mid) 55%, var(--hero-bg-end) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2rem 2.5rem;
  margin-block: 1.25rem;
  position: relative;
  overflow: hidden;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.hero-mag::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 40%, rgba(79, 172, 254, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 80%, rgba(255, 65, 108, 0.14) 0%, transparent 50%);
  pointer-events: none;
}

.hero-mag-content {
  position: relative;
  z-index: 1;
  max-width: 54rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #ff416c, #ff9a00);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 0;
}

.hero-mag h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-mag h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.hero-stats {
  display: flex;
  gap: 2.25rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  gap: 0.4rem;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-strong);
  box-shadow: 0 6px 20px rgba(31, 111, 255, 0.35);
}

.btn-fire {
  color: #fff;
  background: linear-gradient(135deg, #ff416c, #ff9a00);
}

.btn-fire:hover,
.btn-fire:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(255, 65, 108, 0.38);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-small {
  background: #edf3ff;
  color: var(--primary-strong);
  padding: 0.5rem 1rem;
  font-size: 0.83rem;
}

.btn-small:hover { background: #d8e8ff; }

.btn-ghost {
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--card-border);
  padding: 0.6rem 1.2rem;
}

/* ===== GIFT GRID ===== */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gift-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(14, 22, 48, 0.14);
}

.gift-thumb {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.25rem;
  flex-shrink: 0;
  position: relative;
}

.gift-body {
  padding: 1rem 1.1rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gift-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  align-self: flex-start;
}

.gift-badge.hot  { background: #fff0f3; color: #d61f4a; }
.gift-badge.new  { background: #f0fff5; color: #15803d; }
.gift-badge.trending { background: #fff8e6; color: #b45309; }
.gift-badge.pick { background: #eef2ff; color: #2563eb; }
.gift-badge.viral { background: #fdf4ff; color: #9333ea; }

.gift-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.gift-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #15803d;
}

.gift-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.gift-features {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.gift-features li {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.gift-features li::before {
  content: '✓';
  color: #15803d;
  font-weight: 700;
  flex-shrink: 0;
}

.gift-cta {
  margin-top: 0.85rem;
  width: 100%;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.social-proof-dot {
  width: 7px;
  height: 7px;
  background: #15803d;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

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

/* ===== GUIDE GRID ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.guide-card {
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 1.5rem 1.25rem 1.25rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(14, 22, 48, 0.22);
}

.guide-card:hover::before { background: rgba(0, 0, 0, 0.18); }

.guide-card-content {
  position: relative;
  z-index: 1;
}

.guide-emoji {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 0.5rem;
}

.guide-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 0.25rem;
}

.guide-count {
  font-size: 0.78rem;
  opacity: 0.82;
  font-weight: 600;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  text-align: center;
  background: linear-gradient(140deg, var(--hero-bg-start), var(--hero-bg-mid));
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 1.5rem;
}

/* ===== PAGE HERO (category pages) ===== */
.page-hero {
  padding: 2.5rem 2rem;
  color: #fff;
  border-radius: var(--radius);
  margin-block: 1.25rem;
  position: relative;
  overflow: hidden;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}

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

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin: 0 0 0.55rem;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.page-hero p {
  margin: 0;
  opacity: 0.82;
  font-size: 1.05rem;
  max-width: 36rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.45; }

/* ===== CATEGORY PILLS ===== */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--card-border);
  color: var(--muted);
  transition: all 0.14s;
  background: var(--surface);
}

.pill:hover,
.pill.active {
  background: #edf3ff;
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== CTA INLINE ===== */
.cta-inline {
  margin: 1.75rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #edf3ff, #f0fff5);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  text-align: center;
}

.cta-inline h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.cta-inline p  { margin: 0 0 1rem; color: var(--muted); }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
}

.faq-item:first-child { padding-top: 0; }
.faq-item:last-child  { border-bottom: none; padding-bottom: 0; }

.faq-q {
  font-weight: 700;
  margin: 0 0 0.4rem;
  font-size: 0.97rem;
}

.faq-a {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

/* ===== EXIT POPUP ===== */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 9, 20, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exit-popup[hidden] { display: none; }

.exit-popup-box {
  background: var(--surface);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 40px 90px rgba(7, 9, 20, 0.45);
}

.exit-popup-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 0.25rem;
}

.exit-popup-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.exit-popup-box h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.exit-popup-box p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.exit-popup-box .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.exit-popup-dismiss {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
}

/* ===== HERO MEDIA (original index) ===== */
.hero-media,
.content-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-media  { margin: 1rem 0; }
.content-media { margin-top: 1rem; }

/* ===== EYEBROW ===== */
.eyebrow {
  margin: 0;
  color: var(--primary-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
}

/* ===== DISCLOSURE ===== */
.disclosure-note {
  margin-top: 0.65rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem 0 7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

.support-copy { margin: 0.35rem 0; }

@media (min-width: 760px) {
  .site-footer { padding-bottom: 2rem; }
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.sticky-mobile-cta .btn {
  width: 100%;
  padding: 0.9rem 1rem;
}

@media (min-width: 760px) {
  .sticky-mobile-cta { display: none; }
}

/* ===== LEGAL PAGES ===== */
.legal-page h2 { margin-top: 1.4rem; }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 600px) {
  .section { padding: 1.5rem 1.25rem; }
  .hero-mag { padding: 2rem 1.25rem 1.75rem; }
  .page-hero { padding: 2rem 1.25rem; }
  .gift-grid  { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .guide-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .hero-stats { gap: 1.5rem; }
}
