/* Coinvo Theme — Main Stylesheet */
/* Generated from design mockup */


/* ================================================================
   COINVO.XYZ — DESIGN SYSTEM
   Aesthetic: Retro-Futuristic Terminal × Bloomberg Terminal meets
   high-end fashion editorial. Monochrome base + electric accents.
================================================================ */

:root {
  /* Backgrounds */
  --bg-primary:    #080B10;
  --bg-secondary:  #0D1117;
  --bg-card:       #111720;
  --bg-card-hover: #161E2B;
  --bg-input:      #0A0F16;

  /* Text */
  --text-primary:  #E8EDF5;
  --text-secondary:#7A8899;
  --text-muted:    #3E4E62;
  --text-accent:   #00E5FF;

  /* Accents */
  --accent:        #00E5FF;
  --accent-glow:   rgba(0,229,255,0.15);
  --accent-dim:    rgba(0,229,255,0.06);
  --accent-orange: #FF6B35;
  --accent-gold:   #F5C842;

  /* Market signals */
  --up:            #00D97E;
  --up-bg:         rgba(0,217,126,0.1);
  --down:          #FF4560;
  --down-bg:       rgba(255,69,96,0.1);

  /* Borders */
  --border:        rgba(255,255,255,0.06);
  --border-active: rgba(0,229,255,0.3);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'Manrope', sans-serif;

  /* Spacing (8px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radii */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Noise texture overlay ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── Container ─────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-6); }

/* ── Typography ────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
h3 { font-size: 1.2rem; }
.mono { font-family: var(--font-mono); }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 2px; }

/* ================================================================
   HEADER / NAV
================================================================ */
.header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--border-active); }

.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px; gap: var(--sp-6);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex; align-items: center; gap: var(--sp-2);
  letter-spacing: -0.03em;
}
.nav__logo span { color: var(--accent); }
.nav__logo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,229,255,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(0,229,255,0); }
}

.nav__links {
  display: flex; align-items: center; gap: var(--sp-2);
  list-style: none;
}
.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__links a:hover, .nav__links a.active {
  color: var(--text-primary);
  background: var(--accent-dim);
}
.nav__links a.active { color: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }

.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px var(--sp-5);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
}
.btn--primary:hover {
  background: #33EAFF;
  box-shadow: 0 0 20px rgba(0,229,255,0.35);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: var(--accent-dim);
}
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none; padding: 10px var(--sp-3);
}
.btn--ghost:hover { color: var(--accent); }

.nav__search {
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 var(--sp-3); height: 36px;
  transition: border-color 0.2s;
}
.nav__search:focus-within { border-color: var(--border-active); }
.nav__search input {
  background: none; border: none; outline: none;
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.82rem;
  width: 160px;
}
.nav__search input::placeholder { color: var(--text-muted); }
.nav__search i { color: var(--text-muted); font-size: 0.75rem; }

/* ================================================================
   TICKER MARQUEE
================================================================ */
.ticker {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  display: flex; align-items: center;
}
.ticker__track {
  display: flex; align-items: center;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap; gap: var(--sp-8);
  padding-right: var(--sp-8);
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker__item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: 0.75rem;
  flex-shrink: 0;
}
.ticker__symbol { color: var(--text-secondary); }
.ticker__price  { color: var(--text-primary); font-weight: 500; }
.ticker__change { font-size: 0.7rem; padding: 2px 6px; border-radius: 3px; }
.ticker__change.up   { color: var(--up);   background: var(--up-bg); }
.ticker__change.down { color: var(--down); background: var(--down-bg); }
.ticker__dot { width: 1px; height: 16px; background: var(--border); }

/* ================================================================
   HERO SECTION
================================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: var(--sp-20) 0 var(--sp-16);
}

/* Radial glow background */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(0,229,255,0.07) 0%,
    rgba(0,229,255,0.03) 40%,
    transparent 70%);
  pointer-events: none;
}

/* Grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: var(--sp-16);
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 2px;
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
}
.hero__eyebrow::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero__headline {
  margin-bottom: var(--sp-5);
}
.hero__headline em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #7B61FF 100%);
  -webkit-background-clip: text; background-clip: text;
}

.hero__sub {
  color: var(--text-secondary);
  font-size: 1rem; line-height: 1.7;
  max-width: 460px;
  margin-bottom: var(--sp-8);
}

.hero__actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: var(--sp-6);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}
.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}
.hero__stat-value {
  font-family: var(--font-mono);
  font-size: 1.1rem; font-weight: 500;
  color: var(--text-primary);
}
.hero__stat-change {
  font-size: 0.7rem;
  color: var(--up);
  display: flex; align-items: center; gap: 3px;
}

/* ── Hero Visual / Chart ──────────────────────────────────────── */
.hero__visual {
  position: relative;
}

.hero__chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  position: relative; overflow: hidden;
}
.hero__chart-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero__chart-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.hero__chart-coin {
  display: flex; align-items: center; gap: var(--sp-3);
}
.hero__chart-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #F7931A, #FF6B35);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  font-family: var(--font-mono);
}
.hero__chart-name { font-weight: 600; font-size: 0.9rem; }
.hero__chart-sym  { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.hero__chart-price {
  font-family: var(--font-mono);
  font-size: 1.4rem; font-weight: 500;
  color: var(--text-primary);
}
.hero__chart-change {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--up); background: var(--up-bg);
  padding: 3px 8px; border-radius: 3px;
  margin-top: 2px;
}

/* SVG sparkline chart */
.hero__chart-svg {
  width: 100%; height: 140px;
  overflow: visible;
}

.hero__chart-tabs {
  display: flex; gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.hero__chart-tab {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 3px;
  cursor: pointer; border: none;
  background: transparent; color: var(--text-muted);
  transition: all 0.15s;
}
.hero__chart-tab.active {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Floating mini cards */
.hero__float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
}
.hero__float-card:nth-child(2) { animation-delay: -2s; }
.hero__float-card--tl { top: -20px; left: -30px; }
.hero__float-card--br { bottom: -15px; right: -20px; }

@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

.float-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.float-val {
  font-family: var(--font-mono); font-size: 0.85rem;
  font-weight: 500; color: var(--text-primary);
  margin-top: 2px;
}
.float-change { font-size: 0.68rem; }
.float-change.up   { color: var(--up); }
.float-change.down { color: var(--down); }

/* ================================================================
   SECTION HEADERS
================================================================ */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-8);
  gap: var(--sp-4); flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--sp-2);
}
.section-title { margin: 0; }
.section-link {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent); text-decoration: none;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: flex; align-items: center; gap: var(--sp-1);
  transition: gap 0.2s;
  white-space: nowrap;
}
.section-link:hover { gap: var(--sp-2); }

/* ================================================================
   FEATURED COINS GRID
================================================================ */
.coins-section { padding: var(--sp-16) 0; }

.coins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.coin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  position: relative; overflow: hidden;
}
.coin-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  opacity: 0; transition: opacity 0.25s;
  background: linear-gradient(135deg, var(--accent-dim), transparent);
}
.coin-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,229,255,0.08);
}
.coin-card:hover::after { opacity: 1; }

.coin-card__header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  position: relative; z-index: 1;
}
.coin-card__identity { display: flex; align-items: center; gap: var(--sp-3); }

.coin-icon {
  width: 40px; height: 40px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: #fff; flex-shrink: 0;
  font-family: var(--font-mono);
}
.coin-icon--btc  { background: linear-gradient(135deg, #F7931A, #E07B10); }
.coin-icon--eth  { background: linear-gradient(135deg, #627EEA, #4A6BD1); }
.coin-icon--bnb  { background: linear-gradient(135deg, #F3BA2F, #D4A20A); }
.coin-icon--sol  { background: linear-gradient(135deg, #9945FF, #7C3FD6); }
.coin-icon--xrp  { background: linear-gradient(135deg, #00AAE4, #0092C7); }
.coin-icon--ada  { background: linear-gradient(135deg, #0D1E2D, #1a6b8a); }

.coin-card__name { font-weight: 600; font-size: 0.9rem; }
.coin-card__sym  {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); margin-top: 1px;
}

.coin-card__rank {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 2px;
}

.coin-card__chart {
  height: 50px; margin-bottom: var(--sp-4);
  position: relative; z-index: 1;
}
.coin-card__chart svg { width: 100%; height: 100%; overflow: visible; }

.coin-card__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  position: relative; z-index: 1;
}
.coin-card__price {
  font-family: var(--font-mono); font-size: 1.1rem;
  font-weight: 500; color: var(--text-primary);
}
.coin-card__change {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 3px 8px; border-radius: 3px;
  display: flex; align-items: center; gap: 3px;
}
.coin-card__change.up   { color: var(--up);   background: var(--up-bg); }
.coin-card__change.down { color: var(--down); background: var(--down-bg); }

.coin-card__mcap {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); margin-top: var(--sp-2);
  display: flex; justify-content: space-between;
  position: relative; z-index: 1;
}

/* ================================================================
   MARKET TABLE
================================================================ */
.market-section { padding: var(--sp-8) 0 var(--sp-16); }

.market-controls {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.search-bar {
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 var(--sp-4); height: 40px;
  transition: border-color 0.2s;
  min-width: 240px;
}
.search-bar:focus-within { border-color: var(--border-active); }
.search-bar input {
  background: none; border: none; outline: none;
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.85rem; flex: 1;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar i { color: var(--text-muted); }

.filter-pills { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.filter-pill {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.filter-pill:hover, .filter-pill.active {
  border-color: var(--border-active);
  color: var(--accent); background: var(--accent-dim);
}

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }

.market-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.85rem;
}
.market-table th {
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 400;
  text-align: right; white-space: nowrap;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: color 0.15s;
}
.market-table th:first-child,
.market-table th:nth-child(2) { text-align: left; }
.market-table th:hover { color: var(--text-primary); }
.market-table th .sort-icon { opacity: 0.4; margin-left: 4px; }
.market-table th.sorted .sort-icon { opacity: 1; color: var(--accent); }

.market-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
  white-space: nowrap;
}
.market-table td:first-child,
.market-table td:nth-child(2) { text-align: left; }
.market-table tbody tr:hover td { background: var(--bg-card-hover); }
.market-table tbody tr:last-child td { border-bottom: none; }

.market-table__rank {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); width: 40px;
}
.market-table__coin { display: flex; align-items: center; gap: var(--sp-3); }
.market-table__coin-name { font-weight: 600; }
.market-table__coin-sym {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted);
}

.tbl-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff;
  font-family: var(--font-mono); flex-shrink: 0;
}

.tbl-price { font-family: var(--font-mono); font-weight: 500; }
.tbl-change {
  font-family: var(--font-mono); font-size: 0.78rem;
  padding: 3px 8px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 3px;
}
.tbl-change.up   { color: var(--up);   background: var(--up-bg); }
.tbl-change.down { color: var(--down); background: var(--down-bg); }

.tbl-sparkline { width: 80px; height: 30px; }
.tbl-sparkline svg { width: 100%; height: 100%; overflow: visible; }

.market-table__mcap { font-family: var(--font-mono); color: var(--text-secondary); }
.market-table__vol  { font-family: var(--font-mono); color: var(--text-secondary); }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-2); margin-top: var(--sp-6);
}
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--border-active); color: var(--accent); }
.page-btn.active { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }
.page-btn[disabled] { opacity: 0.3; cursor: not-allowed; }

/* ================================================================
   NEWS SECTION
================================================================ */
.news-section { padding: var(--sp-8) 0 var(--sp-16); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.news-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.news-card__img {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
  background: var(--bg-secondary);
  position: relative; overflow: hidden;
}
.news-card__img-placeholder {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  position: relative; overflow: hidden;
}
.news-card__img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(123,97,255,0.1));
}

.news-card__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }

.news-card__tag {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.news-card__title {
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 600; line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  flex: 1;
}
.news-card:hover .news-card__title { color: var(--accent); }
.news-card__excerpt {
  font-size: 0.8rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: var(--sp-4);
}
.news-card__meta {
  display: flex; align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted);
}
.news-card__avatar {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  margin-right: 5px; vertical-align: middle;
}

/* ================================================================
   NEWSLETTER SECTION
================================================================ */
.newsletter {
  padding: var(--sp-16) 0;
  position: relative; overflow: hidden;
}
.newsletter__inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-12);
  text-align: center; position: relative; overflow: hidden;
}
.newsletter__inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-gold), transparent);
}
.newsletter__inner::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.06), transparent 70%);
  pointer-events: none;
}
.newsletter__label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--sp-4);
}
.newsletter h2 { margin-bottom: var(--sp-3); }
.newsletter__sub {
  color: var(--text-secondary); font-size: 0.95rem;
  max-width: 480px; margin: 0 auto var(--sp-8);
}
.newsletter__form {
  display: flex; gap: var(--sp-3);
  max-width: 440px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.newsletter__input {
  flex: 1; min-width: 200px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 var(--sp-4); height: 48px;
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.newsletter__input:focus { border-color: var(--border-active); }
.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__privacy {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); margin-top: var(--sp-4);
}

/* ================================================================
   FOOTER
================================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--sp-12) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8); margin-bottom: var(--sp-10);
}
.footer__brand-desc {
  color: var(--text-muted); font-size: 0.82rem;
  line-height: 1.7; margin: var(--sp-4) 0 var(--sp-5);
  max-width: 260px;
}
.footer__socials { display: flex; gap: var(--sp-2); }
.footer__social {
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.15s;
}
.footer__social:hover {
  border-color: var(--border-active);
  color: var(--accent);
  background: var(--accent-dim);
}
.footer__col-title {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-primary); margin-bottom: var(--sp-4);
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: var(--sp-3); }
.footer__links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; transition: color 0.15s;
}
.footer__links a:hover { color: var(--text-secondary); }

.footer__bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.05em;
}
.footer__disclaimer {
  font-size: 0.62rem; color: var(--text-muted);
  text-align: center; max-width: 600px; margin: 0 auto;
  line-height: 1.6; padding-top: var(--sp-4);
}

/* ================================================================
   DIVIDER
================================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero__visual { display: none; }
  .coins-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__search { display: none; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .coins-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: var(--sp-4); }
  .newsletter__inner { padding: var(--sp-10) var(--sp-6); }
  .market-controls { flex-direction: column; align-items: flex-start; }
  .hero { padding: var(--sp-12) 0; }
}

/* ================================================================
   LOADING SKELETON
================================================================ */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ================================================================
   PRICE BLINK
================================================================ */
@keyframes blink-up {
  0%,100% { background: transparent; }
  50%     { background: rgba(0,217,126,0.15); }
}
@keyframes blink-down {
  0%,100% { background: transparent; }
  50%     { background: rgba(255,69,96,0.12); }
}

/* Scroll fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--ease) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in:nth-child(1) { animation-delay: 0.0s; }
.fade-in:nth-child(2) { animation-delay: 0.08s; }
.fade-in:nth-child(3) { animation-delay: 0.16s; }
.fade-in:nth-child(4) { animation-delay: 0.24s; }
.fade-in:nth-child(5) { animation-delay: 0.32s; }
.fade-in:nth-child(6) { animation-delay: 0.40s; }

/* Sticky header scroll effect */
.header { transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.5); }


/* ================================================================
   WORDPRESS-SPECIFIC STYLES
================================================================ */

/* Nav menu items from wp_nav_menu */
.nav__links li { list-style: none; }
.nav__links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: block;
}
.nav__links li a:hover,
.nav__links li.current-menu-item a {
    color: var(--text-primary);
    background: var(--accent-dim);
}
.nav__links li.current-menu-item a { color: var(--accent); }

/* Mobile burger button */
.nav__burger {
    display: none; flex-direction: column;
    justify-content: center; gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 8px;
}
.nav__burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Blog post layout */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-10);
    padding: var(--sp-12) 0;
}
.post-header { margin-bottom: var(--sp-8); }
.post-hero-img { border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-6); }
.post-hero-img img { width: 100%; height: 400px; object-fit: cover; display: block; }
.post-meta {
    display: flex; gap: var(--sp-4); flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--text-muted); margin-bottom: var(--sp-4);
}
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-cat a { color: var(--accent); text-decoration: none; }
.post-title { font-size: clamp(1.6rem,3vw,2.4rem); line-height: 1.2; margin: 0; }
.post-body {
    color: var(--text-secondary);
    line-height: 1.8; font-size: 1rem;
}
.post-body h2,h3,h4 { color: var(--text-primary); margin: var(--sp-8) 0 var(--sp-4); }
.post-body p { margin-bottom: var(--sp-5); }
.post-body a { color: var(--accent); }
.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: var(--sp-4) var(--sp-6);
    background: var(--bg-card);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin: var(--sp-6) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Blog sidebar */
.post-sidebar { padding-top: var(--sp-12); }
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-5); }
.widget__title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4); }

/* Coin page */
.coin-hero { padding: var(--sp-10) 0; border-bottom: 1px solid var(--border); }
.coin-hero__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-6); }
.coin-hero__info { display: flex; align-items: center; gap: var(--sp-4); }
.coin-hero__logo { width: 60px; height: 60px; border-radius: 50%; }
.coin-hero__name { font-size: 2rem; margin: 0; }
.coin-hero__sym { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.9rem; margin-right: 8px; }
.coin-hero__rank { font-family: var(--font-mono); font-size: 0.75rem; background: var(--bg-card); border: 1px solid var(--border); padding: 3px 10px; border-radius: 3px; color: var(--text-muted); }
.coin-hero__price-val { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; }
.coin-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-8); padding: var(--sp-10) 0; }
.coin-chart-area { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); min-height: 400px; display: flex; align-items: center; justify-content: center; }
.chart-placeholder { text-align: center; color: var(--text-muted); }
.chart-placeholder i { font-size: 3rem; margin-bottom: var(--sp-4); }
.coin-about { margin-top: var(--sp-8); }
.coin-stats-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.coin-stats-table h3 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4); }
.stats-dl dt { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); padding: var(--sp-3) 0 0; }
.stats-dl dd { font-family: var(--font-mono); color: var(--text-primary); font-weight: 500; padding: 2px 0 var(--sp-3); border-bottom: 1px solid var(--border); }
.coin-links { margin-top: var(--sp-5); display: flex; gap: var(--sp-3); flex-direction: column; }

/* Mobile nav */
@media (max-width: 768px) {
    .nav__burger { display: flex; }
    .nav__links { 
        display: none; position: fixed; top: 60px; left: 0; right: 0;
        background: var(--bg-secondary); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: var(--sp-4); gap: 0; z-index: 800;
    }
    .nav__links.open { display: flex; }
    .nav__links li a { padding: var(--sp-3) var(--sp-4); }
    .post-layout { grid-template-columns: 1fr; }
    .coin-layout { grid-template-columns: 1fr; }
}

/* WordPress alignment classes */
.alignleft  { float: left;  margin: 0 var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-6); }
.aligncenter { display: block; margin: var(--sp-6) auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: var(--sp-2); }


/* ================================================================
   WIDGET AREAS
================================================================ */

/* Announcement bar */
.announcement-bar {
  background: var(--accent);
  color: var(--bg-primary);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px var(--sp-6);
  position: relative;
  z-index: 101;
}
.announcement-bar .widget { display: inline; }
.announcement-bar .widget__title { display: none; }
.announcement-bar p { margin: 0; }
.announcement-bar a { color: var(--bg-primary); text-decoration: underline; }

/* Homepage widget areas */
.widget-area--home,
.widget-area--home-bottom {
  padding: 40px 0;
}
.widget-area--home .widget,
.widget-area--home-bottom .widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-bottom: var(--sp-6);
}
.widget-area--home .widget__title,
.widget-area--home-bottom .widget__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

/* Blog sidebar widget */
.widget__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.post-sidebar .widget,
.widget-area--single .widget,
.widget-area--coin-sidebar .widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}

/* Footer widget areas */
.footer__widget-area .widget__title {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* GenerateBlocks: ensure containers respect theme colors */
.gb-container {
  --gb-background-color: var(--bg-card);
}
.entry-content .gb-button {
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════════════
   HOMEPAGE NEWS GRID — REDESIGN
   ══════════════════════════════════════════════════════ */

.news-section { padding: var(--sp-16) 0; }

/* Featured hero post */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--sp-8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,229,255,0.08);
  border-color: var(--border-active);
}
.news-featured__img {
  position: relative;
  min-height: 360px;
  background-color: var(--bg-card-hover);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.news-featured__icon {
  font-size: 4rem;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.news-featured__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,11,16,0.3) 0%, rgba(8,11,16,0.1) 100%);
}
.news-featured__badge {
  position: absolute; top: 16px; left: 16px;
  display: flex; gap: 8px; z-index: 2;
}
.news-featured__pin {
  background: rgba(8,11,16,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.news-featured__body {
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
}
.news-featured__title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}
.news-featured__excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}
.news-featured__meta {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: 0.8rem; color: var(--text-muted);
  flex-wrap: wrap;
}
.news-featured__read {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Main post grid */
.news-grid--main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,229,255,0.07);
  border-color: var(--border-active);
}
.news-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--bg-card-hover);
  flex-shrink: 0;
}
.news-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card__img { transform: scale(1.04); }
.news-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
}
.news-card__cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.news-card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.news-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__meta {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Read More button */
.news-read-more {
  text-align: center;
  margin-top: var(--sp-10);
}
.btn--read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--read-more:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 24px rgba(0,229,255,0.3);
  gap: 14px;
}
.news-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════════
   SINGLE POST PAGE — BEAUTIFUL REDESIGN
   ══════════════════════════════════════════════════════ */

.single-post-main { padding-bottom: var(--sp-16); }

/* Hero image */
.sp-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin-bottom: 0;
}
.sp-hero__img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 8s ease;
}
.single-post-main:hover .sp-hero__img { transform: scale(1.05); }
.sp-hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg-primary) 100%);
}

.sp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-12);
  padding-top: var(--sp-8);
  align-items: start;
}

/* Breadcrumb */
.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.sp-breadcrumb a { color: var(--accent); text-decoration: none; }
.sp-breadcrumb a:hover { text-decoration: underline; }
.sp-breadcrumb__sep { color: var(--border-active); }
.sp-breadcrumb span:last-child {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* Category badges */
.sp-cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.sp-cat-badge {
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.sp-cat-badge:hover { background: rgba(0,229,255,0.2); }

/* Post Title */
.sp-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 var(--sp-6);
  letter-spacing: -0.02em;
}

/* Meta bar */
.sp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-8);
}
.sp-meta__author {
  display: flex; align-items: center; gap: 10px;
}
.sp-meta__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-active);
}
.sp-meta__author-name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.sp-meta__date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.sp-meta__right { display: flex; align-items: center; gap: var(--sp-4); }
.sp-meta__read {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
}

/* Article content */
.sp-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.sp-content h2 {
  font-size: 1.4rem; font-weight: 700;
  color: var(--text-primary);
  margin: var(--sp-10) 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.sp-content h3 {
  font-size: 1.15rem; font-weight: 600;
  color: var(--text-primary);
  margin: var(--sp-8) 0 var(--sp-3);
}
.sp-content p { margin-bottom: var(--sp-5); }
.sp-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.sp-content img { border-radius: 10px; margin: var(--sp-6) 0; max-width: 100%; }
.sp-content blockquote {
  margin: var(--sp-8) 0;
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.sp-content ul, .sp-content ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
}
.sp-content li { margin-bottom: var(--sp-2); }
.sp-content code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
}
.sp-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--sp-5);
  border-radius: 8px;
  overflow-x: auto;
  margin: var(--sp-6) 0;
}

/* Tags */
.sp-tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.sp-tags__label { color: var(--text-muted); font-size: 0.85rem; }
.sp-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}
.sp-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Share bar */
.sp-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.sp-share__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.sp-share__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.sp-share__btn:hover { border-color: var(--border-active); color: var(--text-primary); }
.sp-share__btn--twitter:hover { border-color: #1DA1F2; color: #1DA1F2; }
.sp-share__btn--fb:hover { border-color: #4267B2; color: #4267B2; }
.sp-share__btn--tg:hover { border-color: #0088cc; color: #0088cc; }
.sp-share__btn--copy:hover { border-color: var(--accent); color: var(--accent); }

/* Related posts */
.sp-related {
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}
.sp-related__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  display: flex; align-items: center; gap: 8px;
}
.sp-related__title i { color: var(--accent); }
.sp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.sp-related__card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}
.sp-related__card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}
.sp-related__img {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card-hover);
}
.sp-related__img--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.sp-related__body {
  padding: var(--sp-3) var(--sp-4);
}
.sp-related__body h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-related__body span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Sidebar */
.sp-sidebar { position: sticky; top: 100px; }
.sp-sidebar .widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.sp-sidebar .widget__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

/* Sidebar Newsletter Widget */
.sp-sidebar__newsletter {
  background: linear-gradient(135deg, rgba(0,229,255,0.05) 0%, rgba(123,97,255,0.05) 100%);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 12px;
  padding: var(--sp-6);
  text-align: center;
  margin-top: var(--sp-5);
}
.sp-snl__icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.sp-snl__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--sp-2);
}
.sp-snl__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}
.sp-snl__form { display: flex; flex-direction: column; gap: 8px; }
.sp-snl__input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.85rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.sp-snl__input:focus { outline: none; border-color: var(--accent); }
.sp-snl__input::placeholder { color: var(--text-muted); }
.sp-snl__btn {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
}
.sp-snl__btn:hover { opacity: 0.9; transform: translateY(-1px); }
.sp-snl__btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Newsletter section icon */
.newsletter__icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  opacity: 0.8;
}

/* ── Responsive ─────────────── */
@media (max-width: 1024px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured__img { min-height: 260px; }
  .news-grid--main { grid-template-columns: repeat(2, 1fr); }
  .sp-layout { grid-template-columns: 1fr; }
  .sp-sidebar { position: static; }
  .sp-related__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .news-grid--main { grid-template-columns: 1fr; }
  .sp-hero { height: 260px; }
  .sp-related__grid { grid-template-columns: 1fr; }
  .sp-share { gap: 6px; }
  .sp-share__btn span { display: none; }
}
