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

/* ── TOKENS — exact same as admin ───────────────────────── */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-hover: #1c2128;
  --border: #21262d;
  --border-2: #30363d;

  --text-1: #f0f6fc;
  --text-2: #e2e8f0;
  --text-3: #8b949e;
  --text-4: #6e7681;

  --blue: #58a6ff;
  --blue-bg: rgba(56, 139, 253, .10);
  --blue-dim: rgba(56, 139, 253, .15);
  --green: #3fb950;
  --green-dim: rgba(63, 185, 80, .1);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;

  /* Premium Tokens */
  --glow-blue: rgba(56, 139, 253, 0.4);
  --glass-bg: rgba(22, 27, 34, 0.7);
  --glass-border: rgba(48, 54, 61, 0.5);
  --shadow-premium: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-1) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-lift {
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-3);
  line-height: 1.6;
  font-size: 15px;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── HEADER — mirrors admin-header exactly ───────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 0;
  position: relative;
}

/* Logo — identical to admin-logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 700;
  color: #f0f6fc;
  flex-shrink: 0;
  margin-right: 32px;
}

.logo svg {
  color: #3b82f6;
}

.logo span {
  color: #f0f6fc;
}

nav,
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: .825rem;
  font-weight: 500;
  color: var(--text-3);
  transition: all .15s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--text-2);
  background: rgba(255, 255, 255, .06);
}

nav a.active {
  color: var(--blue);
  background: var(--blue-bg);
}

/* Nav dropdown for extra categories */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-more {
  cursor: pointer;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  z-index: 1001;
  padding: 4px 0;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 8px 16px;
  font-size: .8rem;
  border-radius: 0;
}

.nav-dropdown-content a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text-2);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-3);
  padding: 5px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  transition: all .15s;
}

.header-cta:hover {
  color: var(--text-2);
  border-color: var(--blue);
}

.header-cta--accent {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 600;
}
.header-cta--accent:hover {
  background: #388bfd;
  border-color: #388bfd;
  color: #fff;
}

/* Lang switcher - vertical dropdown */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher svg {
  display: none;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-3);
  transition: all .15s;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}

.lang-pill:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.lang-pill.active {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: var(--blue);
}

.lang-pill::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  z-index: 1001;
  padding: 4px 0;
  flex-direction: column;
}

.lang-switcher:hover .lang-dropdown {
  display: flex;
}

.lang-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: .8rem;
  color: var(--text-3);
  text-decoration: none;
  transition: all .15s;
}

.lang-dropdown a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text-1);
}

.lang-dropdown a.active {
  background: var(--blue-bg);
  color: var(--blue);
}

.card-lang {
  display: inline-block;
  padding: 1px 5px;
  font-size: .62rem;
  font-weight: 700;
  font-family: monospace;
  background: var(--bg-hover);
  border-radius: 3px;
  color: var(--text-4);
  vertical-align: middle;
  margin-left: 5px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Grid pattern — same as admin cards */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
  pointer-events: none;
}

/* Single subtle blue glow — no purple */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 0% 60%, rgba(56, 139, 253, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-bg);
  border: 1px solid rgba(56, 139, 253, .2);
  border-radius: 100px;
  padding: 4px 14px 4px 6px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(63, 185, 80, .25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-eyebrow-dot::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text-1);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero p {
  font-size: 1rem;
  color: var(--text-4);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-4);
}

.hero-stat strong {
  color: var(--text-2);
  font-weight: 700;
}

.hero-divider {
  color: var(--border-2);
}

/* ── SECTION TITLES ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0 20px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-1);
}

.section-title span {
  color: var(--blue);
}

.section-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.section-link:hover {
  gap: 8px;
}

/* ── FILTER BAR ──────────────────────────────────────────── */
.category-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}

.cat-pill {
  padding: 5px 13px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-4);
  transition: all .15s;
  white-space: nowrap;
}

.cat-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cat-pill.active {
  background: var(--blue-bg);
  border-color: var(--blue);
  color: var(--blue);
}

/* ── ARTICLE GRID ────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 60px;
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Featured card — same style as admin-card with blue border */
.card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 5fr 4fr;
  background: var(--bg-card);
  border: 1px solid #3b82f6;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 720px) {
  .card:first-child {
    grid-template-columns: 1fr;
  }
}

.card:first-child .card-visual {
  display: block;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.card:first-child .card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 139, 253, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 139, 253, .08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.card:first-child .card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 30% 50%, rgba(56, 139, 253, .2) 0%, transparent 70%);
}

.card:first-child .card-body {
  padding: 36px;
}

.card:first-child h2 {
  font-size: 1.35rem;
  color: var(--text-1);
}

.card:first-child .card-desc {
  color: var(--text-4);
}

.card:first-child .card-footer {
  border-top-color: var(--border);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.card:not(:first-child) .card-visual {
  display: none;
}

.card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.card h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  line-height: 1.45;
  margin-bottom: 8px;
}

.card h2 a {
  transition: color .15s;
}

.card h2 a:hover {
  color: var(--blue);
}

.card-desc {
  font-size: .84rem;
  color: var(--text-4);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-date {
  font-size: .74rem;
  color: var(--text-4);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more {
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}

.read-more:hover {
  gap: 8px;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
}

.empty-state h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-1);
}

.empty-state p {
  color: var(--text-4);
}

.empty-state a {
  color: var(--blue);
  font-weight: 600;
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 0 64px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: all .15s;
  background: var(--bg-card);
}

.pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination .current {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: var(--blue);
}

/* ── ARTICLE HERO ────────────────────────────────────────── */
.article-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
}

.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 40%, rgba(56, 139, 253, .08) 0%, transparent 70%);
}

.article-hero-fade {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  color: var(--text-4);
  margin-bottom: 18px;
  font-weight: 500;
}

.article-breadcrumb a {
  color: var(--text-4);
  transition: color .15s;
}

.article-breadcrumb a:hover {
  color: var(--text-1);
}

.article-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text-1);
  line-height: 1.12;
  margin-bottom: 20px;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-badge {
  background: var(--blue-bg);
  border: 1px solid rgba(56, 139, 253, .2);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.meta-date,
.meta-read {
  font-size: .78rem;
  color: var(--text-4);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* ── ARTICLE LAYOUT ──────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

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

.article-body {
  min-width: 0;
}

.article-intro {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  border-left: 2px solid var(--blue);
  padding-left: 18px;
  margin-bottom: 32px;
}

.article-divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin-bottom: 32px;
}

.article-content {
  font-size: .97rem;
  line-height: 1.85;
  color: var(--text-3);
}

.article-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-1);
  margin: 48px 0 14px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 28px 0 10px;
  letter-spacing: -.02em;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  margin: 4px 0 18px 4px;
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content li::marker {
  color: var(--blue);
}

.article-content strong {
  font-weight: 700;
  color: var(--text-1);
}

.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: #79c0ff;
}

.article-content blockquote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text-3);
  font-style: italic;
}

.article-content code {
  background: var(--bg-hover);
  color: #79c0ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .85em;
  font-family: 'Fira Code', monospace;
  border: 1px solid var(--border);
}

.article-content pre {
  background: #010409;
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
}

.article-content pre code {
  background: none;
  color: #e6edf3;
  padding: 0;
  border: none;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-content thead {
  background: var(--bg-hover);
}

.article-content thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.article-content tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.article-content tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .015);
}

.article-content tbody tr:last-child {
  border-bottom: none;
}

.article-content tbody tr:hover {
  background: var(--bg-hover);
}

/* Inline contextual links within article body */
.article-inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  border-bottom: 1px solid rgba(88, 166, 255, .3);
  transition: all .15s;
}

.article-inline-link:hover {
  color: #79c0ff;
  border-bottom-color: #79c0ff;
}

.article-content td {
  padding: 10px 16px;
  color: var(--text-3);
  vertical-align: top;
  line-height: 1.5;
}

.article-content td strong {
  color: var(--text-1);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 76px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
}

.sidebar-widget h3 {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-4);
  margin-bottom: 12px;
}

.related-list {
  list-style: none;
}

.related-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.related-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-list a {
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-3);
  line-height: 1.45;
  display: block;
  transition: color .15s;
}

.related-list a:hover {
  color: var(--blue);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: var(--bg-hover);
  color: var(--text-4);
  padding: 3px 9px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all .15s;
}

.tag:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cta-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.cta-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 0% 100%, rgba(56, 139, 253, .08) 0%, transparent 70%);
}

.cta-widget h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-1);
  text-transform: none;
  letter-spacing: -.01em;
  position: relative;
}

.cta-widget p {
  font-size: .8rem;
  color: var(--text-4);
  margin-bottom: 12px;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-4);
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 48px;
  transition: color .15s;
}

.back-link:hover {
  color: var(--blue);
}

/* ── SOCIAL SHARE ────────────────────────────────────────── */
.social-share {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.share-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-4);
  margin-bottom: 10px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: .76rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
  line-height: 1;
}

.share-btn:hover {
  opacity: .85;
}

.share-x {
  background: #1a1a1a;
  color: #f0f6fc;
  border: 1px solid var(--border-2);
}

.share-li {
  background: #0a66c2;
  color: white;
}

.share-fb {
  background: #1877f2;
  color: white;
}

.share-copy {
  background: var(--bg-hover);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1;
  transition: all .15s;
}

.btn-primary {
  background: #238636;
  color: white;
}

.btn-primary:hover {
  background: #2ea043;
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost {
  background: var(--bg-hover);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-2);
  color: var(--text-1);
}

.btn-sm {
  padding: 5px 12px;
  font-size: .75rem;
}

/* ── FOOTER — dark like admin sidebar ────────────────────── */
.site-footer {
  background: #010409;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

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

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: .83rem;
  color: var(--text-4);
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: .83rem;
  color: var(--text-4);
  transition: color .15s;
}

.footer-col a:hover {
  color: var(--text-2);
}

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

.footer-bottom p {
  font-size: .76rem;
  color: var(--text-4);
}

.footer-bottom a {
  color: var(--text-4);
  transition: color .15s;
}

.footer-bottom a:hover {
  color: var(--text-2);
}

/* ── NEW: CARD READ TIME ─────────────────────────────────────────── */
.card-read-time {
  font-size: .72rem;
  color: var(--text-4);
  font-weight: 500;
  margin-left: auto;
  margin-right: 8px;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  line-height: 1.45;
  margin-bottom: 8px;
}

.card-title a { transition: color .15s; }
.card-title a:hover { color: var(--blue); }


/* ── NEW: META LANG BADGE ────────────────────────────────────────── */
.meta-lang-badge {
  background: var(--bg-hover);
  border: 1px solid var(--border-2);
  color: var(--text-4);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: .06em;
}

/* ── NEW: AFFILIATE DISCLOSURE ──────────────────────────────────── */
.affiliate-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(56,139,253,.06);
  border: 1px solid rgba(56,139,253,.18);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: .78rem;
  color: var(--text-4);
  line-height: 1.6;
}

.affiliate-disclosure svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.affiliate-disclosure strong { color: var(--text-3); }

/* ── NEW: INLINE CTAs ────────────────────────────────────────────── */
.inline-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 32px 0;
}

.inline-cta--affiliate {
  border-color: rgba(56,139,253,.3);
  background: rgba(56,139,253,.05);
}

.inline-cta--lead {
  border-color: rgba(63,185,80,.25);
  background: rgba(63,185,80,.04);
}

.inline-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.inline-cta--lead .inline-cta-icon {
  background: var(--green-dim);
  color: var(--green);
}

.inline-cta-content {
  flex: 1;
  min-width: 0;
}

.inline-cta-content p {
  font-size: .875rem;
  color: var(--text-3);
  margin: 0;
}

.inline-cta-content strong { color: var(--text-1); }



/* ── NEW: COMMENTS ───────────────────────────────────────────────── */
.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.comments-section h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 20px;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child { border-bottom: none; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 1px solid rgba(56,139,253,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
}

.comment-date {
  font-size: .72rem;
  color: var(--text-4);
}

.comment-body {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-left: 42px;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-ai-response {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
  margin-left: 42px;
}

.comment-ai-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.comment-ai-body {
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.6;
}

.no-comments {
  font-size: .84rem;
  color: var(--text-4);
  font-style: italic;
}

#comment-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

#comment-form h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 16px;
  letter-spacing: -.01em;
}

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .comment-form-grid { grid-template-columns: 1fr; }
}

#comment-form input,
#comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: .875rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

#comment-form textarea {
  resize: vertical;
  display: block;
  margin-bottom: 10px;
  min-height: 110px;
  line-height: 1.55;
}

#comment-form input:focus,
#comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56,139,253,.12);
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-newsletter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.comment-newsletter-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ── NEW: SIDEBAR IMPROVEMENTS ──────────────────────────────────── */
.sidebar-widget--highlight {
  background: rgba(56,139,253,.05);
  border-color: rgba(56,139,253,.25);
}

.sidebar-widget--affiliate {
  background: var(--bg);
  border: 1px solid rgba(56,139,253,.2);
}

.sidebar-sub {
  font-size: .78rem;
  color: var(--text-4);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sidebar-btn {
  width: 100%;
  justify-content: center;
  display: flex;
}

.sidebar-aff-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 6px;
}

.sidebar-aff-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-top: 4px;
}

.sidebar-aff-link:hover { color: #79c0ff; }

.aff-inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.aff-inline-link:hover { color: #79c0ff; }

/* ── NEW: BACK LINK ──────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-4);
  padding: 0 0 48px;
  transition: color .15s;
}

.back-link:hover { color: var(--blue); }