/* ===== Variables ===== */
:root {
  --primary: #1a73e8;
  --secondary: #174ea6;
  --bg: #f5f6f8;
  --text: #202124;
  --text-muted: #5f6368;
  --card-bg: #ffffff;
  --border: #e8eaed;
  --column-width: 680px;
}

/* ===== Reset & base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Background: static layer + 3 circles in small float zones ===== */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--bg);
}

/* Each zone clips the circle so it only moves inside a small area */

.shape-zone {
  position: absolute;
  overflow: hidden;
}

.shape-zone--1 {
  top: 8%;
  left: 2%;
  width: 320px;
  height: 320px;
}

.shape-zone--2 {
  bottom: 18%;
  left: 1%;
  width: 260px;
  height: 260px;
}

.shape-zone--3 {
  top: 32%;
  right: 2%;
  width: 300px;
  height: 300px;
}

.shape-zone .shape {
  position: absolute;
  border-radius: 50%;
  background: #d2d5db;
  opacity: 0.32;
  will-change: transform;
  /* center the circle inside the zone */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.shape-zone--1 .shape {
  width: 320px;
  height: 320px;
  animation: circle-float 9s ease-in-out infinite;
}

.shape-zone--2 .shape {
  width: 260px;
  height: 260px;
  animation: circle-float 11s ease-in-out infinite reverse;
  animation-delay: -3s;
}

.shape-zone--3 .shape {
  width: 300px;
  height: 300px;
  animation: circle-float 10s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes circle-float {

  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(calc(-50% + 16px), calc(-50% - 14px));
  }
}

/* ===== Page layout ===== */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--column-width);
  margin: 0 auto;
  padding: 48px 24px 120px;
}

/* ===== Article ===== */
.article-header {
  margin-bottom: 0;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-lead {
  font-size: 1.05rem;
  font-style: italic;
  color: #3c4043;
  line-height: 1.75;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

/* ===== Article content ===== */
.article-content {
  padding-top: 28px;
  font-size: 1rem;
  line-height: 1.85;
  color: #3c4043;
}

.article-content section {
  margin-bottom: 8px;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.35;
}

.article-content section:first-child h2 {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content section:last-child p:last-child {
  margin-bottom: 0;
}

/* ===== Topic pill (floating tag) ===== */
.topic-pill {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 50;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.topic-pill.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
}

.topic-pill__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
}

.topic-pill__close:hover {
  background: rgba(26, 115, 232, 0.08);
}

.topic-pill__icon {
  display: flex;
  color: var(--primary);
}

.topic-pill__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  z-index: 40;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--secondary);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .page {
    padding: 32px 16px 100px;
  }

  .article-meta {
    flex-direction: column;
    gap: 4px;
  }

  .topic-pill {
    bottom: 20px;
    max-width: calc(100% - 32px);
  }

  .scroll-top {
    right: 16px;
    bottom: 80px;
  }
}

/* ===== Money page (single URL — competitor-style) ===== */
body.money-page {
  user-select: none;
  -webkit-user-select: none;
}

.main-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 48px 80px;
}

.article-page .article-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-page .article-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 28px;
}

.article-page .article-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.article-page .article-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
}

.ad-container {
  text-align: center;
  margin-bottom: 16px;
  min-height: 0;
}

.money-img-wrapper {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.split-images.split-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.split-images.split-stack a.sp {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.split-images.split-stack .sp {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}

.money-img-fixed.split-stack--sliced .sp,
.money-img-wrapper .money-img-fixed .split-stack .sp {
  aspect-ratio: auto;
  width: 320px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

.money-img-fixed .sp--bg-slice {
  display: block;
  overflow: hidden;
  background-color: #000;
  line-height: 0;
}

.money-img-fixed.split-stack--sliced {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  height: 480px;
  overflow: hidden;
  gap: 0;
}

.lazy-guard:not(.revealed) {
  opacity: 0.01;
  min-height: 40px;
}

.split-stack--precut .sp {
  aspect-ratio: auto;
  height: auto;
}

.split-images.split-stack img {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  vertical-align: top;
}

.money-img-fixed .sp--precut img {
  width: 320px;
  height: auto;
  display: block;
  margin: 0 !important;
}

/* Pre-cut slice files (/s/0/ … /s/9/) — no crop offset */
.split-stack--precut .sp {
  aspect-ratio: auto;
  height: auto;
}

.split-stack--precut .sp img {
  margin-top: 0 !important;
}

.money-img-fixed:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.ss-protected .money-img-wrapper,
body.ss-protected .split-images {
  filter: blur(20px);
}

body.money-page {
  -webkit-user-select: none;
  user-select: none;
}

.ss-shield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-family: Inter, sans-serif;
}

.ss-shield.active {
  display: flex !important;
}

/* ===== Offer popups ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay--countdown {
  background: rgba(0, 0, 0, 0.88);
}

.popup-countdown {
  text-align: center;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  max-width: 320px;
}

.popup-countdown__ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popup-pulse 1s ease-in-out infinite;
}

.popup-countdown__num {
  font-size: 56px;
  font-weight: 800;
}

.popup-countdown__msg {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 16px;
}

.popup-countdown__msg strong {
  color: #ffd700;
}

.popup-countdown__bar {
  width: 200px;
  height: 4px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.popup-countdown__fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #e94560, #ffd700);
  transition: width 1s linear;
}

.popup-countdown__skip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
}

.popup-overlay--exit {
  background: rgba(0, 0, 0, 0.75);
}

.popup-exit {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 16px;
  padding: 30px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: popup-slide 0.35s ease;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

.popup-exit__icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.popup-exit__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.popup-exit__msg {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.55;
  margin-bottom: 8px;
}

.popup-exit__sub {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}

.popup-exit__btn {
  background: linear-gradient(135deg, #e94560, #c23152);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

@keyframes popup-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes popup-slide {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bot-notice {
  margin-top: 24px;
  padding: 16px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #664d03;
}

body.offer-locked {
  overflow-x: hidden;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.noscript-fallback {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: Georgia, serif;
}

.noscript-fallback h1 {
  color: var(--primary);
}

/* ===== Related Articles ===== */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-articles__heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.related-card__thumb {
  height: 120px;
  background: linear-gradient(135deg, #4a90d9 0%, #1a5fb4 50%, #0d3d7a 100%);
  flex-shrink: 0;
}

.related-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 14px 14px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__excerpt {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 14px 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-articles__grid .related-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
  }
}