/* ═══════════════════════════════════════════════════════════
   SportBet Analytics — Main Stylesheet
   Dark, premium, modern design
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&family=Manrope:wght@700;800&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg-primary: #0d0f14;
  --bg-secondary: #13161e;
  --bg-card: #1a1d28;
  --bg-card-hover: #1f2335;
  --border: #252839;
  --border-glow: rgba(99, 102, 241, 0.3);

  --accent: #3b82f6;
  /* Stricter blue instead of bright indigo */
  --accent-2: #2563eb;
  --accent-soft: #60a5fa;
  --accent-green: #16a34a;
  --accent-gold: #d97706;
  --accent-red: #dc2626;
  --accent-crypto: #eab308;

  --text-primary: #f0f2ff;
  --text-sec: #8b8fa8;
  --text-muted: #545775;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, .15);
  --trans: all .2s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  background: rgba(13, 15, 20, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  transform: translateY(0);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), background-color .2s ease, border-color .2s ease;
  will-change: transform;
}

.navbar.navbar-hidden {
  transform: translateY(calc(-100% - 16px));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Manrope', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: -.06em;
  text-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-sec);
  transition: var(--trans);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  padding: 11px 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: linear-gradient(180deg, rgba(24, 29, 42, 0.98), rgba(13, 16, 24, 0.98));
  color: #eef6ff !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.nav-cta:hover,
.nav-cta.active {
  background: linear-gradient(180deg, rgba(29, 37, 56, 0.98), rgba(16, 21, 32, 0.98));
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0d0f14 0%, #13111f 50%, #0d0f14 100%);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 42px;
}

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

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-gradient {
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-sec);
  max-width: 540px;
}

.hero-visual {
  position: relative;
  margin-right: -36px;
}

.hero-chart-shell {
  position: relative;
  min-height: 320px;
  padding: 8px 0 0 0;
}

.hero-chart-grid {
  position: absolute;
  inset: 24px 0 34px 42px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.hero-chart-grid span {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-chart-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-chart-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 15, 22, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.16);
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.hero-chart-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.hero-chart-tag.tag-one { left: 22%; top: 52%; }
.hero-chart-tag.tag-two { left: 48%; top: 34%; }
.hero-chart-tag.tag-three { right: 4%; top: 10%; }

.hero-chart-line {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 240px;
  overflow: visible;
}

/* ── Section ─────────────────────────────────────────────── */
.section {
  padding: 60px 0;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-sub {
  color: var(--text-sec);
  font-size: .95rem;
  margin-bottom: 32px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--text-sec);
  background: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.cat-crypto {
  color: var(--text-sec);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover {
  color: var(--accent);
}

.card-excerpt {
  font-size: .88rem;
  color: var(--text-sec);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .78rem;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Sidebar Card (Popular) ─────────────────────────────── */
.popular-panel {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(28, 35, 55, 0.96), rgba(16, 20, 31, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.popular-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.popular-panel-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.popular-panel-sub {
  color: var(--text-sec);
  font-size: .85rem;
  line-height: 1.6;
  max-width: 250px;
}

.popular-panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #eef6ff;
  background: linear-gradient(180deg, rgba(28, 35, 55, 0.98), rgba(12, 15, 22, 0.98));
  font-weight: 700;
  transition: var(--trans);
}

.popular-panel-link:hover {
  background: linear-gradient(180deg, rgba(40, 56, 88, 0.98), rgba(16, 22, 34, 0.98));
  border-color: rgba(96, 165, 250, 0.4);
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  transition: var(--trans);
}

.popular-item:hover {
  border-color: rgba(96, 165, 250, 0.28);
  transform: translateX(3px);
  background: linear-gradient(180deg, rgba(26, 29, 40, 0.94), rgba(20, 23, 34, 0.98));
}

.popular-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 800;
  color: #dbeafe;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(96, 165, 250, 0.18);
  line-height: 1;
  flex-shrink: 0;
}

.popular-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.popular-title {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
}

.popular-item-meta {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Mobile Layout ──────────────────────────────────────── */
@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    min-height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-logo {
    width: 100%;
    text-align: center;
    font-size: 1.45rem;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
  }

  .nav-links {
    order: 2;
    padding: 8px;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .nav-actions {
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 9px 13px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-visual {
    margin-right: 0;
  }

  .hero-chart-shell {
    min-height: 260px;
  }

  .hero-chart-grid {
    inset: 20px 0 28px 20px;
  }

  .hero-chart-line {
    height: 210px;
  }

  .popular-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .popular-panel-link,
  .btn-promo {
    justify-content: center;
  }

  .post-meta,
  .card-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .post-content,
  .post-content * {
    max-width: 100%;
  }

  .post-content img,
  .post-feat-img,
  .card-img {
    height: auto;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    display: grid;
  }

  .sticky-top {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 40px 0;
  }

  .section-sub {
    margin-bottom: 22px;
  }

  .nav-inner {
    padding: 12px 14px;
    gap: 12px;
  }

  .nav-links {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .nav-link {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: .98rem;
  }

  .hero-chart-shell {
    min-height: 220px;
  }

  .hero-chart-line {
    height: 180px;
  }

  .hero-chart-tag {
    min-height: 30px;
    padding: 0 10px;
    font-size: .74rem;
  }

  .hero-chart-tag.tag-one { left: 10%; top: 58%; }
  .hero-chart-tag.tag-two { left: 34%; top: 34%; }
  .hero-chart-tag.tag-three { right: 0; top: 8%; }

  .card-body,
  .promo-block,
  .popular-panel {
    padding: 18px;
  }

  .popular-item {
    align-items: flex-start;
    gap: 10px;
  }

  .popular-img {
    width: 56px;
    height: 56px;
  }

  .post-title {
    font-size: 1.6rem;
  }

  .post-header {
    margin-bottom: 24px;
  }

  .post-meta {
    font-size: .84rem;
  }

  .affiliate-inline,
  .popular-hero,
  .category-heading {
    padding: 18px;
  }

  .cat-pills {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .cat-pills::-webkit-scrollbar {
    display: none;
  }

  .cat-pill,
  .page-btn {
    white-space: nowrap;
  }

  .pagination {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .pagination::-webkit-scrollbar {
    display: none;
  }

  body .container > div[style*="grid-template-columns: 1fr 320px"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body .container > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}

/* ── Affiliate CTA Block ────────────────────────────────── */
.promo-block {
  background:
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(28, 35, 55, 0.96), rgba(18, 22, 33, 0.98));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.promo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-sub {
  color: var(--text-sec);
  font-size: .9rem;
  margin-bottom: 20px;
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.98), rgba(6, 8, 14, 1));
  color: var(--text-primary);
  font-weight: 700;
  font-size: .96rem;
  padding: 13px 24px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  cursor: pointer;
  transition: var(--trans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-promo:hover {
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.98), rgba(9, 12, 20, 1));
  border-color: rgba(96, 165, 250, 0.34);
  transform: translateY(-2px);
}

/* ── Post Page ───────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
}

.post-header {
  margin-bottom: 32px;
}

.post-cat-badge {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-sec);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: inline-block;
}

.post-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: .85rem;
}

.post-feat-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 28px 0;
  max-height: 480px;
  object-fit: cover;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #c8cbde;
}

.post-content p {
  margin-bottom: 1.2em;
}

.post-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 .8em;
  color: var(--text-primary);
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5em 0 .6em;
}

.post-content a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: var(--trans);
}

.post-content a:hover {
  border-color: var(--accent);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  background: rgba(99, 102, 241, .05);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
  color: var(--text-sec);
  font-style: italic;
}

/* inline affiliate block inside article */
.affiliate-inline {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 28px 28px;
  margin: 32px 0;
  text-align: center;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: linear-gradient(180deg, rgba(23, 27, 40, 0.98), rgba(18, 22, 33, 0.98));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.affiliate-inline::before {
  content: '';
  position: absolute;
  inset: -40% auto auto 70%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 70%);
  pointer-events: none;
}

.affiliate-inline-primary {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(23, 27, 40, 0.98), rgba(18, 22, 33, 0.98));
}

.affiliate-inline-secondary {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.98), rgba(12, 17, 28, 0.98));
}

.affiliate-kicker {
  position: relative;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.affiliate-copy {
  position: relative;
  z-index: 1;
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 18px;
}

.affiliate-copy strong {
  color: #f59e0b;
}

/* ── Back Button ────────────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sec);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--trans);
  padding: 6px 0;
}

.btn-back:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* ── Like Button ─────────────────────────────────────────── */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-sec);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--trans);
}

.like-btn:hover,
.like-btn.liked {
  color: var(--accent-red);
  transform: scale(1.05);
  background: transparent;
  border-color: transparent;
}

.like-btn::before {
  content: 'Like';
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: currentColor;
}

.like-btn.liked::before {
  content: 'Liked';
}
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-sec);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--trans);
  }

  .like-btn:hover,
  .like-btn.liked {
    color: var(--accent-red);
    transform: scale(1.05);
    background: transparent;
    border-color: transparent;
  }

  .like-btn::before {
    content: 'Like';
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: currentColor;
  }

  .like-btn.liked::before {
    content: 'Liked';
  }

  /* ── Category Pills ─────────────────────────────────────── */
  .cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
  }

  .cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(22, 27, 39, 0.98), rgba(10, 13, 20, 1));
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #f3f7ff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.16);
  }

  .cat-pill:hover {
    background: linear-gradient(180deg, rgba(28, 35, 50, 0.98), rgba(12, 16, 24, 1));
    border-color: rgba(96, 165, 250, 0.34);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 22px rgba(0, 0, 0, 0.22);
  }

  .cat-pill.active {
    background: linear-gradient(180deg, rgba(46, 67, 104, 0.98), rgba(22, 30, 46, 0.98));
    border-color: rgba(147, 197, 253, 0.52);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(24, 38, 66, 0.28);
  }

  .cat-pill.active:hover {
    color: #eff6ff;
    transform: translateY(-1px);
  }

  .category-heading {
    margin-bottom: 32px;
  }

  .category-description {
    margin-bottom: 10px;
  }

  .category-count {
    color: var(--text-muted);
    font-size: .92rem;
    font-weight: 600;
  }

  /* ── Pagination ──────────────────────────────────────────── */
  .pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
  }

  .page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .9rem;
    transition: var(--trans);
  }

  .page-btn:hover,
  .page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  /* ── Tags / Badges ───────────────────────────────────────── */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
  }

  .badge-green {
    background: rgba(34, 197, 94, .12);
    color: var(--accent-green);
  }

  .badge-red {
    background: rgba(239, 68, 68, .12);
    color: var(--accent-red);
  }

  .badge-gold {
    background: rgba(245, 158, 11, .12);
    color: var(--accent-gold);
  }

  .badge-purple {
    background: rgba(168, 85, 247, .12);
    color: var(--accent-2);
  }

  /* ── Footer ──────────────────────────────────────────────── */
  footer {
    background:
      linear-gradient(180deg, rgba(19, 22, 30, 0.98), rgba(13, 15, 20, 1));
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
    margin-top: 96px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

  @media (max-width: 768px) {
    .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .footer-links {
      align-items: center;
    }
  }

  .footer-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.06em;
    margin-bottom: 12px;
    color: var(--text-primary);
  }

  .footer-desc {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.6;
    max-width: 300px;
  }

  .footer-col-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-sec);
    margin-bottom: 14px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer-links a {
    color: var(--text-muted);
    font-size: .88rem;
    transition: var(--trans);
  }

  .footer-links a:hover {
    color: var(--accent);
  }

  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-copy {
    color: var(--text-muted);
    font-size: .8rem;
  }

  .disclaimer {
    color: var(--text-muted);
    font-size: .75rem;
    text-align: right;
    max-width: 600px;
  }

  @media (max-width: 768px) {
    .footer-brand {
      padding-right: 0;
    }

    .footer-card {
      padding: 18px 16px;
    }

    .footer-desc {
      max-width: none;
    }

    .footer-bottom {
      justify-content: center;
    }

    .disclaimer {
      text-align: center;
    }
  }

  /* ── Popular Page ───────────────────────────────────────── */
  .popular-hero {
    position: relative;
    margin-bottom: 32px;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background:
      radial-gradient(circle at right top, rgba(96, 165, 250, 0.2), transparent 32%),
      linear-gradient(135deg, rgba(19, 22, 30, 0.98), rgba(12, 15, 22, 0.98));
    overflow: hidden;
  }

  .popular-hero::after {
    content: '';
    position: absolute;
    inset: auto -40px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 68%);
  }

  .popular-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
  }

  .popular-hero-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.14);
  }

  .popular-hero-title {
    margin-bottom: 10px;
  }

  .popular-hero-sub {
    margin-bottom: 0;
    max-width: 560px;
  }

  .popular-card {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(26, 29, 40, 0.98), rgba(18, 21, 31, 0.98));
  }

  /* ── Utility ─────────────────────────────────────────────── */
  .mt-1 {
    margin-top: 8px;
  }

  .mt-2 {
    margin-top: 16px;
  }

  .mt-3 {
    margin-top: 24px;
  }

  .mt-4 {
    margin-top: 32px;
  }

  .mb-1 {
    margin-bottom: 8px;
  }

  .mb-2 {
    margin-bottom: 16px;
  }

  .mb-3 {
    margin-bottom: 24px;
  }

  .text-center {
    text-align: center;
  }

  .text-muted {
    color: var(--text-muted);
  }

  .flex {
    display: flex;
  }

  .items-center {
    align-items: center;
  }

  .gap-2 {
    gap: 8px;
  }

  .gap-3 {
    gap: 12px;
  }

  .w-full {
    width: 100%;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .sticky-top {
    position: sticky;
    top: 80px;
  }

  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
  }

  .fade-in {
    animation: fadeIn .4s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  /* ── Mobile Optimization ─────────────────────────────────── */
  @media (max-width: 768px) {
    .hero-layout {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .hero-chart-tag {
      transform: scale(.92);
      transform-origin: left center;
    }

    .nav-inner {
      flex-wrap: wrap;
      height: auto;
      padding: 12px 20px;
      gap: 10px;
      justify-content: center;
    }

    .nav-logo {
      width: 100%;
      text-align: center;
      margin-bottom: 5px;
    }

    .nav-links {
      overflow-x: auto;
      max-width: 100%;
      padding: 6px;
      -webkit-overflow-scrolling: touch;
      justify-content: flex-start;
      scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
      display: none;
    }

    .nav-actions {
      width: 100%;
      justify-content: center;
    }

    .cat-pills {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 10px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .cat-pills::-webkit-scrollbar {
      display: none;
    }

    .cat-pill {
      white-space: nowrap;
      flex-shrink: 0;
    }

    .post-meta {
      flex-wrap: wrap;
      gap: 10px;
    }

    .popular-panel-head {
      flex-direction: column;
      align-items: stretch;
    }

    .popular-panel-link {
      width: 100%;
    }

    .popular-hero {
      padding: 22px;
      border-radius: 18px;
    }

    .hero-chart-stats {
      grid-template-columns: 1fr;
    }
  }

  @media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
