/* ═══════════════════════════════════════════════════════════
   Crypto Exchange Theme — Unified Stylesheet
   Version: 2.0  (2026-06)
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ───────────────────────────────────── */
:root {
  --primary: #f0b90b;
  --primary-hover: #dca308;
  --primary-glow: rgba(240,185,11,.25);
  --secondary: #1e2329;
  --accent: #0ecb81;
  --accent-hover: #0bb571;
  --danger: #f6465d;

  --bg-base: #171924;
  --bg-elevated: #202333;
  --bg-surface: #272b3d;
  --bg-deep: #2a2e41;

  --text-primary: #d7d9e2;
  --text-secondary: #a0a5b7;
  --text-heading: #f1f3f8;
  --text-muted: #6b7185;

  --border-color: #3a4057;
  --border-subtle: rgba(255,255,255,.08);

  --glass-bg: rgba(255,255,255,.035);
  --glass-bg-hover: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.08);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --container-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.25);
  --shadow-md: 0 4px 12px rgba(0,0,0,.35);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.34);
  --shadow-glow: 0 0 30px rgba(240,185,11,.12);

  --transition: .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: .15s ease;
  --section-spacing: 80px;

  --btn-bg: var(--primary);
  --btn-text: var(--secondary);
  --btn-hover-bg: #dca308;
  --btn-radius: var(--radius);
}

/* ── 2. Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: linear-gradient(180deg, #1b1e2b 0%, var(--bg-base) 42%, var(--bg-elevated) 100%);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

/* ── Global content link style (posts, topics, pages) ──── */
.post-content a,
.topic-content a,
.page .content-area .entry-content a,
.comment-content a,
.textwidget a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  border-bottom: 1px solid rgba(240,185,11,.35);
  transition: color var(--transition), border-color var(--transition);
}
.post-content a:hover,
.topic-content a:hover,
.page .content-area .entry-content a:hover,
.comment-content a:hover,
.textwidget a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { list-style: none; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── 3. Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--text-heading); margin-bottom: .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1em; }

/* ── 4. Layout ──────────────────────────────────────────── */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; width: 100%; }
.main-layout { display: flex; gap: 48px; padding: 48px 0; }
.container.main-layout { padding-left: 36px; padding-right: 36px; }
.content-area { flex: 1; min-width: 0; width: 100%; }
.section { padding: var(--section-spacing) 0; }
.section-bg-dark { background: linear-gradient(180deg, #1b1e2b 0%, var(--bg-elevated) 100%); }
.section-bg-darker {
  background: linear-gradient(180deg, #24283a 0%, #1d2030 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(0,0,0,.22);
}
.steps-section { padding: 48px 0; }
.features-section { padding: 48px 0; }

/* ── 5. Section Headers ─────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-title {
  font-size: 1.8rem; margin-bottom: 12px;
  position: relative; display: inline-block; font-weight: 700;
}
.section-title::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--primary); margin: 12px auto 0; border-radius: 2px;
}
.section-subtitle {
  font-size: .95rem; color: var(--text-secondary);
  max-width: 600px; margin: 8px auto 0;
}
.section-sub-title {
  font-size: 1rem; color: rgba(255,255,255,.7);
  margin-bottom: 16px; text-align: center; font-weight: 600;
}

/* ── 6. Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--btn-bg); color: var(--btn-text);
  border-radius: var(--btn-radius);
  font-size: .9rem; font-weight: 700;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--btn-hover-bg); color: var(--btn-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240,185,11,.3);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  border-radius: var(--btn-radius);
  font-size: .88rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: .95rem; }
.btn-text { font-size: .85rem; color: var(--text-secondary); font-weight: 500; transition: color var(--transition); }
.btn-text:hover { color: var(--primary); }

/* Header auth buttons */
.btn-outline-sm {
  padding: 6px 16px;
  border: 1px solid rgba(240,185,11,.4);
  color: var(--primary);
  border-radius: var(--btn-radius);
  font-size: .85rem; text-decoration: none;
  transition: all var(--transition);
}
.btn-outline-sm:hover {
  background: rgba(240,185,11,.1);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-primary-sm {
  padding: 6px 16px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: var(--btn-radius);
  font-size: .85rem; font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-primary-sm:hover { opacity: .88; color: var(--secondary); }
.header-auth-btns { display: flex; gap: 8px; align-items: center; }

/* ── 7. Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
  min-height: var(--header-height);
}
.site-header.is-sticky.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; min-height: var(--header-height); gap: 12px;
  position: relative;
}
.header-inner > .site-branding,
.header-inner > .menu-toggle,
.header-inner > .header-actions,
.header-inner > .lang-switcher,
.header-inner > .search-toggle,
.header-inner > .header-auth-btns { flex-shrink: 0; }

.site-branding .custom-logo-link { display: flex; align-items: center; text-decoration: none; }
.site-branding .custom-logo { max-height: 44px; width: auto; height: auto; }
.site-branding .custom-logo-img { max-height: 44px; width: auto; height: auto; object-fit: contain; }
.site-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.3px; }
.site-title a { color: #fff; }
.site-description { font-size: .78rem; color: var(--text-secondary); margin-top: 2px; }

/* Navigation */
.main-nav { flex: 1 1 auto; min-width: 0; transition: opacity .25s, transform .25s; }
.main-nav ul { display: flex; gap: 0; flex-wrap: nowrap; min-width: 0; }
.main-nav ul li { position: relative; }
.main-nav a {
  display: block; padding: 12px 12px;
  font-size: .82rem; color: rgba(255,255,255,.75);
  transition: color var(--transition); white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); }
.main-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg-surface); box-shadow: var(--shadow-lg);
  padding: 6px 0; min-width: 200px; z-index: 100;
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--border-color);
}
.main-nav .sub-menu li { border-bottom: 1px solid var(--border-color); }
.main-nav .sub-menu a { padding: 10px 20px; font-size: .82rem; color: var(--text-primary) !important; }
.main-nav li:hover > .sub-menu, .main-nav .sub-menu.active { display: block; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; padding: 9px 10px;
  cursor: pointer; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; flex-shrink: 0;
  align-items: stretch; justify-content: center;
}
.menu-toggle span { display: block; height: 2.5px; background: #fff; border-radius: 2px; transition: all var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Header actions */
.header-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; flex: 0 0 auto; position: relative;
  z-index: 1300; margin-left: auto;
}
.header-actions .lang-switcher,
.header-actions .search-toggle,
.header-actions .header-auth-btns { position: relative; }

/* Search toggle */
.search-toggle { font-size: 1rem; padding: 8px; color: rgba(255,255,255,.6); background: none; border: none; cursor: pointer; }
.header-search-form { display: none; padding: 20px 0; background: var(--bg-elevated); border-top: 1px solid var(--border-color); }
.header-search-form.active { display: block; }
.header-search-form .search-form { max-width: 600px; margin: 0 auto; }

/* ── 8. Top Announcement Bar ────────────────────────────── */
.top-announcement-bar {
  background: linear-gradient(90deg, var(--bg-elevated), var(--bg-base));
  border-bottom: 1px solid rgba(240,185,11,.15);
  padding: 6px 0; font-size: .8rem; color: rgba(255,255,255,.65);
}
.top-announcement-bar .container {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-market-mini { display: flex; gap: 12px; font-size: .75rem; }
.topbar-right a { color: rgba(255,255,255,.65); text-decoration: none; }
.topbar-right a:hover { color: var(--primary); }

/* ── 9. Market Data Strip ───────────────────────────────── */
.market-data-strip {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0; overflow: hidden;
}
.market-data-strip .container {
  display: flex; align-items: center; gap: 24px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.market-data-strip .container::-webkit-scrollbar { display: none; }
.market-strip-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: rgba(255,255,255,.7);
  flex-shrink: 0;
}
.market-strip-item strong { color: #fff; }
.market-strip-item .up { font-size: .7rem; color: var(--accent); }
.market-strip-item .down { font-size: .7rem; color: var(--danger); }
.market-strip-label-highlight { color: var(--primary); font-weight: 700; }
.market-strip-value-accent { color: var(--accent); }

/* ── 10. Language Switcher ──────────────────────────────── */
.lang-switcher { position: relative; margin-right: 4px; flex-shrink: 0; z-index: 1300; isolation: isolate; }
.lang-switcher summary { list-style: none; }
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-toggle, .lang-summary {
  font-size: .78rem; padding: 6px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius); color: rgba(255,255,255,.8);
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  white-space: nowrap; transition: all var(--transition);
  position: relative; z-index: 1301;
}
.lang-toggle:hover, .lang-summary:hover { background: rgba(255,255,255,.1); }
.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius); min-width: 150px;
  z-index: 1400; padding: 4px 0; margin-top: 4px;
  box-shadow: var(--shadow-lg);
}
.lang-switcher.open .lang-dropdown,
.lang-switcher[open] .lang-dropdown { display: block; }
.lang-dropdown li { padding: 0; list-style: none; }
.lang-dropdown a {
  display: block; padding: 8px 14px; font-size: .82rem;
  color: var(--text-primary); transition: background var(--transition);
}
.lang-dropdown a:hover { background: rgba(255,255,255,.06); color: var(--primary); }
.lang-dropdown .active a { color: var(--primary); font-weight: 600; }
.lang-current-label { display: inline; }

/* ── 11. Hero Section ───────────────────────────────────── */
.hero-section { position: relative; overflow: hidden; padding: 0; }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; opacity: .06; }
.shape-1 { width: 600px; height: 600px; top: -250px; right: -150px; background: var(--primary); animation: heroFloat 25s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; bottom: -150px; left: -100px; background: var(--primary); animation: heroFloat 30s ease-in-out infinite reverse; }
.shape-3 { width: 250px; height: 250px; top: 60%; left: 10%; background: var(--accent); animation: heroFloat 20s ease-in-out infinite; }
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, -40px); }
  50% { transform: translate(-20px, 20px); }
  75% { transform: translate(30px, 20px); }
}
.hero-inner {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-base));
  position: relative; overflow: hidden;
}
.hero-inner .container {
  position: relative; z-index: 1;
  text-align: center; padding: 80px 24px;
}
.hero-badge {
  display: inline-block; padding: 6px 20px;
  background: rgba(240,185,11,.1);
  border: 1px solid rgba(240,185,11,.25);
  border-radius: 20px; color: var(--primary);
  font-size: .82rem; font-weight: 600; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-heading);
  margin-bottom: 16px; font-weight: 800;
  letter-spacing: -.5px; line-height: 1.2;
}
.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--text-secondary); max-width: 640px;
  margin: 0 auto 32px; line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
}
.hero-btn { /* inherits .btn-primary */ }

/* ── 12. Stats Counter ──────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-item {
  padding: 28px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all var(--transition);
}
.stat-item:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(240,185,11,.2);
  transform: translateY(-3px);
}
.stat-icon { font-size: 2rem; margin-bottom: 12px; }
.stat-number {
  font-size: 1.8rem; font-weight: 800;
  color: var(--primary); margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .85rem; color: var(--text-secondary); }

/* ── 13. Price Ticker & Market Data ─────────────────────── */
.ticker-section .section-header { text-align: center; margin-bottom: 40px; }
.ticker-section .section-title { display: inline-block; }
.ticker-section .section-subtitle { max-width: 720px; }

.market-section {
  box-shadow: inset 0 1px rgba(255,255,255,.04),
              inset 0 -1px rgba(0,0,0,.28);
}
.market-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 32px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  padding: 10px;
  border: 1px solid var(--border-subtle);
  overflow: visible;
}
.summary-stat {
  text-align: center; padding: 16px 12px;
  background: #2a2f43;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  transition: background .2s, border-color .2s;
}
.summary-stat:hover { background: #30364c; border-color: rgba(240,185,11,.28); }
.summary-label { font-size: .68rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }
.summary-label-sm { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 4px; }
.summary-value { font-size: 1.15rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.summary-value .adv-count { color: var(--accent); }
.summary-value .adv-divider { color: rgba(255,255,255,.25); margin: 0 4px; }
.summary-value .dec-count { color: var(--danger); }
.summary-change { font-size: .72rem; font-weight: 600; margin-top: 4px; }
.summary-change.up { color: var(--accent); }
.summary-change.down { color: var(--danger); }
.summary-help { margin: 9px auto 0; max-width: 210px; color: #aeb4c7; font-size: .72rem; line-height: 1.45; }
.fg-value { transition: color .3s; }
.price-ticker {
  background: #24293b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ticker-item {
  padding: 16px;
  background: #2b3044;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all .25s; cursor: pointer;
}
.ticker-item:hover { background: #31374d; border-color: rgba(240,185,11,.2); }
.ticker-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ticker-left { display: flex; align-items: center; gap: 10px; }
.ticker-symbol-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(240,185,11,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--primary); flex-shrink: 0;
}
.ticker-pair-label { font-size: .9rem; font-weight: 600; color: #fff; }
.ticker-period { font-size: .68rem; color: rgba(255,255,255,.4); margin-top: 1px; }
.ticker-right { text-align: right; }
.ticker-price { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.ticker-change { font-size: .78rem; font-weight: 600; margin-top: 3px; display: inline-block; padding: 2px 8px; border-radius: 4px; }
.ticker-change.up { color: var(--accent); background: rgba(14,203,129,.1); }
.ticker-change.down { color: var(--danger); background: rgba(246,70,93,.1); }
.ticker-hl-row { display: flex; justify-content: space-between; font-size: .7rem; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.ticker-range-bg { height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.ticker-range-fill { height: 100%; border-radius: 2px; transition: width .5s; }
.ticker-volume { font-size: .72rem; color: rgba(255,255,255,.4); }
.ticker-updating { font-size: .72rem; color: var(--text-secondary); text-align: center; padding: 6px; border-top: 1px solid var(--border-color); }
.ticker-loading { text-align: center; padding: 20px; color: rgba(255,255,255,.4); font-size: .85rem; }

/* Exchange compare table */
.exchange-compare { margin-top: 36px; }
.exchange-compare-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #24293b;
}
.exchange-compare-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.exchange-compare-table th {
  padding: 12px 16px; color: rgba(255,255,255,.5);
  font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .5px;
  background: rgba(255,255,255,.04);
}
.exchange-compare-table .th-left { text-align: left; }
.exchange-compare-table .th-right { text-align: right; }
.exchange-compare-table .th-center { text-align: center; }
.exchange-compare-table .exchange-row { border-top: 1px solid rgba(255,255,255,.04); transition: background .2s; }
.exchange-compare-table .exchange-row:hover { background: rgba(255,255,255,.04); }
.exchange-compare-table .ex-name { padding: 12px 16px; color: #fff; font-weight: 600; }
.exchange-compare-table .ex-price { padding: 12px 16px; text-align: right; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.exchange-compare-table .ex-fee { padding: 12px 16px; text-align: center; color: rgba(255,255,255,.5); }
.exchange-compare-table .ex-action { padding: 12px 16px; text-align: center; }
.ex-reg-btn {
  display: inline-block; padding: 5px 14px;
  background: var(--primary); color: var(--secondary);
  border-radius: 6px; font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.ex-reg-btn:hover { opacity: .85; color: var(--secondary); }

.search-toggle,
.search-toggle:hover,
.search-toggle:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.72) !important;
}
.ex-reg-btn,
.exchange-compare-table .ex-reg-btn,
.exchange-compare-table a.ex-reg-btn {
  background: var(--primary) !important;
  color: var(--secondary) !important;
  border: 1px solid var(--primary) !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
.ex-reg-btn:hover,
.exchange-compare-table .ex-reg-btn:hover,
.exchange-compare-table a.ex-reg-btn:hover {
  color: var(--secondary) !important;
  filter: brightness(1.06);
  opacity: 1 !important;
}
.ex-source {
  display: block;
  margin-top: 5px;
  font-size: .68rem;
  line-height: 1.2;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
}

/* Gainers / Losers */
.gainers-losers-section { margin-top: 36px; }
.gainers-losers-container {
  padding: 16px;
  background: #24293b;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.gl-loading { text-align: center; padding: 20px; color: rgba(255,255,255,.4); font-size: .85rem; }
.gl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gl-column { min-width: 0; }
.gl-column h4 { font-size: .85rem; margin-bottom: 10px; }
.gl-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: rgba(14,203,129,.04);
  border-radius: 6px; margin-bottom: 4px;
}
.gl-item.loser { background: rgba(246,70,93,.04); }
.gl-item-left { display: flex; align-items: center; gap: 6px; }
.gl-symbol { font-size: .8rem; font-weight: 600; color: #fff; }
.gl-right { text-align: right; }
.gl-price { font-size: .8rem; color: #fff; margin-right: 8px; }
.gl-change { font-size: .75rem; font-weight: 600; }
.gl-change.up { color: var(--accent); }
.gl-change.down { color: var(--danger); }
.gl-empty {
  padding: 12px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 8px;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  text-align: center;
}

/* Trending coins */
.trending-coins { margin-top: 36px; }
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; padding: 4px 0 0;
  overflow: visible;
}
.trending-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 12px;
  color: rgba(255,255,255,.45);
  font-size: .9rem;
}
.trending-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  padding: 14px 16px 16px;
  background: linear-gradient(135deg, #30364c 0%, #252a3d 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all .25s;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.trending-item::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(240,185,11,.12), transparent 42%);
  opacity: .7; pointer-events: none;
}
.trending-item:hover {
  border-color: rgba(240,185,11,.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.trending-item.up { border-color: rgba(14,203,129,.22); }
.trending-item.down { border-color: rgba(246,70,93,.22); }
.trending-rank {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  font-size: .72rem; font-weight: 700;
  position: relative; z-index: 1;
}
.trending-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(240,185,11,.2) 0%, rgba(240,185,11,.05) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: var(--primary);
  flex-shrink: 0; border: 1px solid rgba(240,185,11,.15);
  position: relative; z-index: 1;
}
.trending-info {
  min-width: 0; position: relative; z-index: 1;
  grid-column: 2; grid-row: 1;
}
.trending-symbol-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.trending-symbol {
  font-size: .92rem; font-weight: 700; color: #fff; letter-spacing: .2px;
}
.trending-direction {
  font-size: .76rem; font-weight: 700;
  white-space: nowrap;
}
.trending-direction.up { color: var(--accent); }
.trending-direction.down { color: var(--danger); }
.trending-price-main {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}
.trending-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  font-size: .73rem;
  color: rgba(255,255,255,.5);
}
.trending-spark {
  grid-column: 1 / -1; grid-row: 2; height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 999px; overflow: hidden;
  position: relative; z-index: 1;
}
.trending-spark span {
  display: block; width: 28%; height: 100%;
  background: var(--primary); border-radius: 999px;
  transition: width .35s, background .35s;
}
.trending-item.up .trending-spark span { background: var(--accent); }
.trending-item.down .trending-spark span { background: var(--danger); }

/* ── 14. Exchange Cards ─────────────────────────────────── */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.exchange-card {
  background: linear-gradient(180deg, #30364c 0%, #262b3e 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px; position: relative;
  transition: all var(--transition);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.exchange-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(240,185,11,.42);
}
.exchange-card.featured {
  border-color: rgba(240,185,11,.55);
  box-shadow: 0 0 0 1px rgba(240,185,11,.25), 0 14px 34px rgba(0,0,0,.28);
}
.exchange-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.exchange-card-top .exchange-logo { margin-bottom: 0; }
.exchange-heading { min-width: 0; flex: 1; }
.exchange-eyebrow {
  font-size: .72rem; color: var(--primary);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 2px;
}
.exchange-badge {
  position: static; transform: none;
  background: rgba(240,185,11,.14); color: var(--primary);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700;
  border: 1px solid rgba(240,185,11,.28);
  white-space: nowrap;
}
.exchange-logo {
  width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
}
.exchange-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.exchange-logo-placeholder { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.exchange-logo-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  position: relative;
}
.exchange-logo-binance span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f0b90b;
  transform: rotate(45deg);
  border-radius: 2px;
}
.exchange-logo-binance span:nth-child(1) { left: 16px; top: 4px; }
.exchange-logo-binance span:nth-child(2) { left: 4px; top: 16px; }
.exchange-logo-binance span:nth-child(3) { left: 16px; top: 16px; }
.exchange-logo-binance span:nth-child(4) { right: 4px; top: 16px; }
.exchange-logo-binance span:nth-child(5) { left: 16px; bottom: 4px; }
.exchange-logo-okx {
  display: grid;
  grid-template-columns: repeat(2, 13px);
  grid-template-rows: repeat(2, 13px);
  gap: 4px;
}
.exchange-logo-okx span {
  display: block;
  background: #ffffff;
  border-radius: 3px;
}
.exchange-logo-okx-word {
  width: 48px;
  height: 30px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #050816;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: 1;
}
.exchange-logo-bitget span {
  width: 48px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00f0b5, #00a3ff);
  color: #06111f;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: lowercase;
}
.exchange-name { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0; }
.exchange-desc {
  font-size: .86rem; color: #c1c6d6;
  margin-bottom: 16px; line-height: 1.65; min-height: 68px;
}
.exchange-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.exchange-metric {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 10px; min-width: 0;
}
.exchange-metric span {
  display: block; font-size: .68rem;
  color: rgba(255,255,255,.48); margin-bottom: 4px;
  text-transform: uppercase;
}
.exchange-metric strong { display: block; font-size: .8rem; color: #fff; line-height: 1.35; overflow-wrap: anywhere; }
.exchange-fee { font-size: .85rem; color: var(--text-secondary); margin-bottom: 8px; }
.exchange-fee strong { color: var(--accent); }
.exchange-rating { color: var(--primary); font-size: .9rem; margin-bottom: 12px; letter-spacing: 2px; }
.exchange-rating span { color: var(--text-secondary); font-size: .8rem; margin-left: 6px; letter-spacing: 0; }
.exchange-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.exchange-features li {
  padding: 5px 10px; font-size: .78rem; color: #d9deea;
  position: relative;
  background: rgba(14,203,129,.08);
  border: 1px solid rgba(14,203,129,.16);
  border-radius: var(--radius-pill);
}
.exchange-features li::before { content: none !important; }
.exchange-actions { border-top: 1px solid var(--border-subtle); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding-top: 16px; }
.exchange-actions .btn-primary { flex: 1; justify-content: center; }
.exchange-actions .btn-text { font-size: .8rem; }

/* ── 15. Features Grid ──────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  text-align: center; padding: 36px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  background: var(--bg-surface);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.feature-title { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.feature-desc { font-size: .85rem; color: var(--text-secondary); line-height: 1.7; }

/* ── 16. How It Works ───────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; position: relative;
  max-width: 960px; margin: 0 auto;
}
.step-card {
  position: relative;
  padding: 36px 24px 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}
.step-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(240,185,11,.2);
  transform: translateY(-3px);
}
.step-number {
  position: absolute; top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  font-size: .85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2.2rem; margin: 12px 0 16px; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: .85rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* ── 17. Testimonials ───────────────────────────────────── */
.testimonials-section { overflow: hidden; }
.testimonials-scroll-wrap { overflow: hidden; }
.testimonials-track {
  display: flex; gap: 20px;
  animation: testimonial-scroll 35s linear infinite;
  width: max-content;
  user-select: none;
}
.testimonials-track:hover { animation-play-state: paused; }
.testimonials-track.is-dragging { animation-play-state: paused; cursor: grabbing; }
@keyframes testimonial-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all var(--transition);
  flex-shrink: 0;
  width: 340px;
}
.testimonial-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(240,185,11,.15);
  transform: translateY(-2px);
}
.testimonial-header {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(240,185,11,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-name { font-size: .9rem; font-weight: 600; color: #fff; }
.testimonial-role { font-size: .78rem; color: var(--text-secondary); }
.testimonial-stars {
  margin-left: auto; color: var(--primary);
  font-size: .85rem; letter-spacing: 2px;
}
.testimonial-quote {
  font-size: .88rem; color: var(--text-primary);
  line-height: 1.7; font-style: italic;
  margin: 0;
}

/* ── 18. FAQ ────────────────────────────────────────────── */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 10px; overflow: hidden;
  background: var(--bg-surface);
}
.faq-question {
  width: 100%; padding: 18px 24px; text-align: left;
  font-size: .9rem; font-weight: 600; color: #fff;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: rgba(255,255,255,.03); }
.faq-icon { font-size: 1.3rem; color: var(--primary); transition: transform var(--transition); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 18px; font-size: .85rem; color: var(--text-primary); line-height: 1.8; display: none; }
.faq-item.active .faq-answer,
.faq-item[open] .faq-answer { display: block; }

/* ── 19. CTA Section ────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-base));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.cta-section .container { text-align: center; }
.cta-title { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; margin-bottom: 12px; }
.cta-desc { font-size: 1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto 28px; line-height: 1.7; }

/* ── 20. Topic Pages ────────────────────────────────────── */
.topic-page { padding: 0; }
.topic-page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-heading);
  margin-bottom: 24px; font-weight: 800;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}
.topic-content { font-size: 1rem; line-height: 1.9; color: var(--text-primary); }
.topic-content h2 {
  font-size: 1.4rem; margin-top: 2em;
  margin-bottom: .6em; padding-bottom: .3em;
  border-bottom: 1px solid var(--border-color);
}
.topic-content h3 { font-size: 1.15rem; margin-top: 1.5em; margin-bottom: .5em; }
.topic-content p { margin-bottom: 1em; }
.topic-content ul, .topic-content ol { margin: 16px 0; padding-left: 24px; }
.topic-content ul { list-style: disc; }
.topic-content ol { list-style: decimal; }
.topic-content li { margin-bottom: 6px; }
.topic-content blockquote {
  margin: 24px 0; padding: 20px 24px;
  border-left: 4px solid var(--primary);
  background: var(--bg-surface);
  font-style: italic; color: var(--text-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.topic-content pre {
  background: var(--bg-elevated); color: #e0e0e0;
  padding: 20px; border-radius: var(--radius-lg);
  overflow-x: auto; font-size: .85rem;
  margin: 24px 0; border: 1px solid var(--border-color);
}
.topic-content img { border-radius: var(--radius-lg); margin: 24px 0; }
.topic-content code { background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 3px; font-size: .85rem; }
.topic-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  border: 1px solid var(--border-color);
}
.topic-content th, .topic-content td {
  padding: 12px 16px; border: 1px solid var(--border-color);
  text-align: left;
}
.topic-content th {
  background: rgba(255,255,255,.04);
  font-weight: 600; color: var(--text-heading);
}

/* ── 21. Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--bg-elevated);
  padding-top: 0;
  border-top: 1px solid var(--border-color);
}

/* Newsletter row */
.footer-newsletter {
  background: linear-gradient(135deg, rgba(240,185,11,.08), rgba(14,203,129,.06));
  border-bottom: 1px solid var(--border-subtle);
}
.footer-newsletter .container {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 20px; padding: 40px 24px;
}
.newsletter-text h3 { font-size: 1.3rem; color: #fff; margin: 0 0 6px; }
.newsletter-text p { color: rgba(255,255,255,.6); margin: 0; font-size: .9rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form form { display: flex; gap: 8px; }
.newsletter-form input[type="email"] {
  padding: 10px 16px; border-radius: var(--btn-radius);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05); color: #fff;
  min-width: 260px; font-size: .9rem; outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.crypto-nl-btn {
  padding: 10px 24px; background: var(--primary);
  color: var(--secondary); border: none;
  border-radius: var(--btn-radius);
  font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap;
  position: relative;
}
.crypto-nl-btn:hover { opacity: .9; }
.crypto-nl-btn:disabled { opacity: .6; cursor: not-allowed; }
#crypto-nl-msg {
  display: none; font-size: .82rem;
  padding: 6px 12px; border-radius: 6px; max-width: 400px;
}
#crypto-nl-msg.success { display: block; background: rgba(14,203,129,.15); color: var(--accent); }
#crypto-nl-msg.error { display: block; background: rgba(246,70,93,.15); color: var(--danger); }

/* Main footer area */
.footer-main { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.footer-col-title {
  color: #fff; font-size: 1rem;
  font-weight: 700; margin-bottom: 16px;
}
.footer-about-text {
  color: rgba(255,255,255,.55);
  font-size: .85rem; line-height: 1.7;
  margin-bottom: 16px;
}
.footer-logo { margin-top: 12px; opacity: .7; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,.55);
  text-decoration: none; font-size: .85rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact-info {
  margin-top: 16px; font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-contact-info a { color: var(--primary); text-decoration: none; }

/* Footer widgets */
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border-color); }
.footer-widgets .widget { background: transparent !important; border: none !important; padding: 0 !important; }
.footer-widgets .widget-title { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-widgets .widget ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.footer-widgets .widget ul li a { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-widgets .widget ul li a:hover { color: var(--primary); }
.widget-related-categories a:hover {
  border-color: rgba(240,185,11,.38) !important;
  background: rgba(240,185,11,.08) !important;
  color: var(--primary) !important;
  transform: translateY(-1px);
}

/* Social links */
.footer-social {
  display: flex; gap: 12px;
  justify-content: center; padding: 32px 0 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px; flex-wrap: wrap;
}
.footer-social .social-link,
.social-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: rgba(255,255,255,.65);
  text-decoration: none; font-size: .8rem;
  transition: all var(--transition);
}
.footer-social .social-link:hover,
.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(240,185,11,.05);
}

/* Footer badges */
.footer-badges {
  display: flex; align-items: center;
  justify-content: center;
  gap: 16px; padding: 24px 0 0; flex-wrap: wrap;
}
.footer-badge {
  padding: 4px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: .7rem; color: rgba(255,255,255,.4);
}
.footer-badge.accent {
  background: rgba(14,203,129,.08);
  border-color: rgba(14,203,129,.2);
  color: rgba(14,203,129,.7);
}

/* Disclaimer */
.footer-disclaimer { border-top: 1px solid var(--border-subtle); padding: 16px 0; }
.footer-disclaimer .container { text-align: center; }
.footer-disclaimer p { color: rgba(255,255,255,.35); font-size: .75rem; line-height: 1.6; max-width: 800px; margin: 0 auto; }

/* Copyright */
.footer-copyright { border-top: 1px solid var(--border-subtle); padding: 16px 0; background: var(--bg-elevated); }
.footer-copyright .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copyright p { color: rgba(255,255,255,.4); font-size: .8rem; margin: 0; }
.footer-copyright a { color: var(--primary); text-decoration: none; }
.footer-bottom-links { display: flex; gap: 16px; font-size: .8rem; }
.footer-bottom-links a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ── 22. Widgets / Sidebar ──────────────────────────────── */
.widget-area { width: 300px; flex-shrink: 0; }
.widget {
  margin-bottom: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden; padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.widget:hover { border-color: rgba(240,185,11,.2); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.widget-title {
  font-size: .88rem; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: rgba(255,255,255,.9);
  text-transform: uppercase; letter-spacing: .8px;
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--primary);
}
.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: all var(--transition);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-primary); font-size: .85rem; transition: color var(--transition); }
.widget ul li:hover { padding-left: 6px; background: rgba(240,185,11,.03); }
.widget ul li:hover a { color: var(--primary); }
.widget select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-elevated); color: var(--text-primary);
  font-size: .85rem; cursor: pointer;
  transition: border-color var(--transition);
}

/* Footer UX hardening: centered columns and readable links across exchange themes. */
.site-footer {
  text-align: center;
}
.footer-newsletter .container {
  justify-content: center;
  text-align: center;
}
.footer-main > .container,
.footer-copyright > .container,
.footer-disclaimer > .container {
  text-align: center;
}
.footer-grid {
  justify-items: center;
  align-items: start;
}
.footer-col,
.footer-widget-area {
  width: 100%;
  max-width: 280px;
  text-align: center;
}
.footer-about {
  max-width: 420px;
}
.footer-col-title {
  color: rgba(255,255,255,.94);
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.footer-about-text,
.footer-col ul li a,
.footer-contact-info,
.footer-disclaimer p,
.footer-copyright p,
.footer-bottom-links a {
  color: rgba(255,255,255,.72);
}
.footer-about-text {
  font-size: .92rem;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  font-size: .92rem;
  line-height: 1.45;
}
.footer-col ul li a:hover,
.footer-bottom-links a:hover,
.footer-copyright a:hover {
  color: var(--primary);
}
.footer-badges,
.footer-social,
.footer-bottom-links {
  justify-content: center;
}
.footer-copyright .container {
  justify-content: center;
  flex-direction: column;
}

@media (max-width: 768px) {
  .footer-col,
  .footer-widget-area,
  .footer-about {
    max-width: 100%;
  }
}
.widget select:focus { border-color: var(--primary); outline: none; }
.widget_tag_cloud .tagcloud { display: flex; gap: 6px; flex-wrap: wrap; }
.widget_tag_cloud .tagcloud a {
  display: inline-block; padding: 5px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-pill); font-size: .78rem !important;
  transition: all var(--transition);
}
.widget_tag_cloud .tagcloud a:hover { background: var(--primary); color: var(--bg-elevated); border-color: var(--primary); transform: translateY(-1px); }
.widget_search .search-form { display: flex; gap: 8px; }
.widget_search .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-elevated); color: var(--text-primary);
  font-size: .88rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.widget_search .search-field:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(240,185,11,.15); }
.widget_search .search-submit {
  padding: 10px 16px;
  background: var(--primary);
  color: var(--bg-elevated);
  border: none;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.widget_search .search-submit:hover { opacity: .85; }
.widget_calendar table { width: 100%; text-align: center; font-size: .82rem; }
.widget_calendar caption {
  padding: 10px; font-weight: 600;
  background: var(--bg-elevated);
  caption-side: top;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: .88rem; color: rgba(255,255,255,.8);
}
.widget_calendar th, .widget_calendar td { padding: 8px; color: var(--text-primary); }
.widget_calendar #today {
  font-weight: 700; background: var(--primary);
  color: var(--bg-elevated); border-radius: 50%;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
}
.widget_categories li, .widget_archive li { display: flex; justify-content: space-between; align-items: center; }
.widget_categories .children { padding-left: 16px; margin-top: 4px; }
.widget_text .textwidget { font-size: .88rem; color: var(--text-primary); line-height: 1.8; }

/* Share Buttons Icon Style */
.post-share, .widget-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.06); }
.share-label { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.5); margin-right: 4px; }
.post-share-collapsible .share-summary { display: none; }
.post-share-collapsible .share-buttons-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  line-height: 1;
}
.share-btn:hover {
  background: var(--primary);
  color: var(--bg-elevated);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Search Widget with Button */
.widget_search { position: relative; }
.widget_search .search-form { display: flex; gap: 8px; }
.widget_search .search-field {
  flex: 1;
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-elevated); color: var(--text-primary);
  font-size: .88rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.widget_search .search-field:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(240,185,11,.15); }
.widget_search .search-submit {
  padding: 10px 16px;
  background: var(--primary);
  color: var(--bg-elevated);
  border: none;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.widget_search .search-submit:hover { opacity: .85; }

/* ── 22.1 Custom Widgets Enhanced ──────────────────────── */
.featured-posts-widget,
.popular-posts-widget { list-style: none; padding: 0; margin: 0; }
.featured-post-item,
.popular-post-item { margin-bottom: 14px; }
.featured-post-link {
  display: flex; gap: 12px; text-decoration: none;
  padding: 10px; border-radius: var(--radius);
  transition: background var(--transition);
}
.featured-post-link:hover { background: rgba(255,255,255,.04); }
.featured-post-thumb {
  flex-shrink: 0; width: 64px; height: 64px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.featured-post-title {
  font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.85);
  line-height: 1.4; display: block;
  transition: color var(--transition);
}
.featured-post-link:hover .featured-post-title { color: var(--primary); }
.featured-post-date {
  font-size: .72rem; color: rgba(255,255,255,.4);
  margin-top: 4px; display: block;
}
.popular-post-item {
  padding-left: 36px; position: relative;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-counter {
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(240,185,11,.12);
  color: var(--primary); font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.popular-post-title {
  font-size: .88rem; color: rgba(255,255,255,.75);
  text-decoration: none; line-height: 1.5;
  transition: color var(--transition);
  display: block;
}
.popular-post-title:hover { color: var(--primary); }
.popular-post-views {
  display: block; font-size: .72rem;
  color: rgba(255,255,255,.35); margin-top: 4px;
}
.popular-post-main { min-width: 0; }
.popular-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.4;
}
.popular-post-meta a,
.popular-post-author a {
  color: inherit;
  text-decoration: none;
}
.popular-post-meta a:hover,
.popular-post-author a:hover { color: var(--primary); }
.popular-post-excerpt {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: .76rem;
  line-height: 1.5;
}
.widget-empty-state {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
}
.widget-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget-cat-list li { margin-bottom: 6px; }
.widget-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-bg) 82%, transparent);
  color: var(--text-body);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.widget-cat-link:hover,
.widget-cat-link.is-active {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, var(--card-bg));
  color: var(--text-heading);
}
.widget-cat-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget-cat-count,
.widget-tag-count {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: .72rem;
}
.widget-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.widget-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-body);
  font-size: .76rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.widget-tag-link:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: color-mix(in srgb, var(--primary) 14%, var(--card-bg));
  color: var(--text-heading);
}
.widget-social-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-social-icon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  font-size: .82rem; color: rgba(255,255,255,.65);
  text-decoration: none; transition: all var(--transition);
}
.widget-social-icon:hover {
  background: var(--primary); color: var(--bg-elevated);
  border-color: var(--primary); transform: translateY(-2px);
}
.widget-price-list { display: flex; flex-direction: column; }
.widget-price-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.widget-price-item:last-child { border-bottom: none; }
.widget-price-info { display: flex; align-items: center; gap: 10px; }
.widget-price-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(240,185,11,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--primary);
}
.widget-price-symbol {
  font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9);
}
.widget-price-data { text-align: right; }
.widget-price-data .wprice {
  font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9);
  display: block;
}
.widget-price-data .wchange {
  font-size: .72rem; color: rgba(255,255,255,.4);
  display: block; margin-top: 2px;
}

/* News sidebar widgets: compact, stable cards. */
.widget-area-news .widget {
  padding: 20px;
}
.widget-area-news .widget-title {
  margin-bottom: 14px;
}
.widget-area-news .widget-price-list {
  gap: 8px;
}
.widget-area-news .widget-price-item {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.widget-area-news .widget-price-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.widget-area-news .widget-gl-wrap {
  gap: 8px !important;
}
.widget-area-news .widget-gl-col {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
}
.widget-area-news .widget-exchange-compare {
  display: grid;
  gap: 10px;
}
.widget-area-news .widget-exchange-compare > div {
  margin-bottom: 0 !important;
  padding: 12px !important;
  border-radius: 12px !important;
}
.widget-area-news .featured-post-item,
.widget-area-news .popular-post-item {
  margin-bottom: 8px;
}
.widget-area-news .featured-post-link {
  align-items: flex-start;
  min-height: 84px;
  padding: 10px !important;
  transform: none !important;
  transition: background var(--transition), border-color var(--transition), color var(--transition) !important;
}
.widget-area-news .featured-post-link:hover {
  padding: 10px !important;
  transform: none !important;
}
.widget-area-news .featured-post-title {
  line-height: 1.45;
}

/* Latest posts directly below comments on single news pages. */
.single-latest-posts-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.single-latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.single-latest-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-heading);
}
.single-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.single-latest-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.single-latest-thumb {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1.15;
}
.single-latest-thumb img,
.single-latest-thumb .post-thumb-generated {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-latest-body h3 {
  margin: 0 0 8px;
  font-size: .92rem;
  line-height: 1.45;
}
.single-latest-body h3 a {
  color: var(--text-heading);
  text-decoration: none;
}
.single-latest-body h3 a:hover {
  color: var(--primary);
}
.single-latest-meta {
  font-size: .76rem;
  color: var(--text-secondary);
}

/* ── 23.1 Friend Links (友情链接) ───────────────────────── */
.friend-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.friend-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
}
.friend-link-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.friend-link-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.friend-link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.friend-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(240,185,11,.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.friend-link-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.friend-link-name {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-link-desc {
  font-size: .72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ── 23. Post Grid / Cards ──────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.post-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.post-card {
  transition: all var(--transition);
  background: var(--bg-surface);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.post-card .post-thumb { display: block; overflow: hidden; position: relative; aspect-ratio: 16/10; }
.post-card .post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s;
}
.post-card .post-thumb-generated { transition: transform .6s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-card:hover .post-thumb-generated { transform: scale(1.04); }
.post-card .post-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.post-title { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; font-weight: 600; }
.post-title a { color: rgba(255,255,255,.9); text-decoration: none; }
.post-title a:hover { color: var(--primary); }
.post-meta { font-size: .75rem; color: var(--text-secondary); margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; line-height: 1.45; }
.post-meta .post-meta-item { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.post-meta .post-meta-sep { flex: 0 0 auto; opacity: .35; }
.post-meta .post-author { flex: 1 1 118px; }
.post-meta .post-author a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.post-meta .post-comments,
.post-meta .post-type { flex: 0 0 auto; }
.post-meta .post-date { opacity: .7; }
.post-meta .post-author { opacity: .7; }
.post-meta a { color: var(--text-secondary); text-decoration: none; }
.post-meta a:hover { color: var(--primary); }
.post-excerpt { font-size: .82rem; color: var(--text-primary); line-height: 1.65; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── 23.1 Featured Posts Section (Homepage) ─────────────── */
.featured-posts { padding: 48px 0; }
.featured-posts .section-header { text-align: center; margin-bottom: 32px; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header-row .section-title { margin-bottom: 0; }
.section-more { font-size: .85rem; color: var(--primary); text-decoration: none; font-weight: 500; transition: opacity .2s; }
.section-more:hover { opacity: .8; }

/* ── 23.2 Live Activity Feed ───────────────────────────── */
.live-activity-section { padding: 40px 0; overflow: hidden; }
.live-activity-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; background: rgba(14,203,129,.1); color: #0ecb81; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.pulse-dot { width: 8px; height: 8px; background: #0ecb81; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.live-activity-wrap { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.live-activity-track { display: flex; gap: 16px; animation: scroll-left 30s linear infinite; width: max-content; }
.live-activity-wrap.speed-slow .live-activity-track { animation-duration: 45s; }
.live-activity-wrap.speed-fast .live-activity-track { animation-duration: 20s; }
.live-activity-wrap:hover .live-activity-track { animation-play-state: paused; }
@keyframes scroll-left { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.live-activity-item { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); white-space: nowrap; flex-shrink: 0; min-width: 280px; }
.activity-avatar { font-size: 1.4rem; flex-shrink: 0; }
.activity-content { display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.activity-user { font-weight: 600; color: rgba(255,255,255,.9); }
.activity-action { color: var(--text-primary); }
.activity-location { color: var(--text-secondary); font-size: .72rem; }
.activity-time { font-size: .7rem; color: var(--text-secondary); flex-shrink: 0; margin-left: auto; }
.featured-posts-grid { gap: 20px; }
.featured-post-card .post-body { padding: 18px; }
.featured-post-card .post-title { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.featured-post-card .post-meta { gap: 8px; margin-bottom: 10px; font-size: .75rem; }
.featured-post-card .post-meta-item { display: inline-flex; align-items: center; gap: 3px; }
.featured-post-card .post-meta-sep { color: rgba(255,255,255,.2); }
.featured-post-card .post-excerpt { font-size: .84rem; line-height: 1.65; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-post-card .post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.featured-post-card .post-read-time {
  font-size: .7rem; color: rgba(255,255,255,.35);
  display: inline-flex; align-items: center; gap: 3px;
}
.featured-posts-cta { text-align: center; margin-top: 36px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 28px;
  border: 1px solid var(--primary); border-radius: var(--radius);
  color: var(--primary); font-weight: 600; font-size: .85rem;
  text-decoration: none; transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: var(--bg-elevated); }
.read-more {
  font-size: .82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary);
  transition: gap var(--transition);
  margin-top: auto;
}
.read-more:hover { gap: 8px; }
.read-more-arrow { display: inline-block; transition: transform var(--transition); }
.read-more:hover .read-more-arrow { transform: translateX(4px); }
.post-thumb-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.post-thumb-initial { font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.2); font-family: var(--font-heading); }

/* ── 24. Single Post Detail ─────────────────────────────── */
.post-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.post-detail .post-title { font-size: 1.6rem; margin-bottom: 10px; color: #fff; }
.post-detail .post-meta { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); }

/* Featured image */
.post-detail .post-thumbnail { margin-bottom: 28px; border-radius: var(--radius-lg); overflow: hidden; }
.post-detail .featured-image-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 21/9;
  max-height: 400px;
}
.post-detail .featured-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.post-detail .featured-image-overlay {
  position: absolute; inset: 0; bottom: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.7));
  z-index: 1;
}
.post-detail .featured-image-content {
  position: absolute; bottom: 28px; left: 36px; right: 36px;
  z-index: 2;
}
.post-detail .category-badge-link {
  display: inline-block; padding: 4px 14px;
  background: var(--primary); color: var(--secondary);
  border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600;
  text-decoration: none; margin-right: 6px;
  margin-bottom: 8px;
}
.post-detail .post-title-overlay {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: #fff;
  line-height: 1.3; margin-top: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

/* Meta bar */
.post-meta-bar {
  display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border-color);
  font-size: .82rem; color: var(--text-secondary);
}
.post-meta-bar .meta-item {
  display: flex; align-items: center; gap: 6px;
}
.post-meta-bar a { color: var(--text-secondary); text-decoration: none; }
.post-meta-bar a:hover { color: var(--primary); }
.post-meta-bar .meta-item,
.post-meta-bar .meta-item strong,
.post-meta-bar .meta-item a {
  color: var(--text-primary);
}
.post-meta-bar .meta-avatar {
  width: 28px; height: 28px; border-radius: 50%;
}
.post-meta-bar .author-meta {
  gap: 8px;
}
.post-meta-bar .meta-author-name {
  color: var(--text-heading);
  font-weight: 700;
  text-decoration: none;
}
.post-meta-bar .meta-author-name:hover {
  color: var(--primary);
}
.single .author-bio,
.single-post .author-bio {
  display: none !important;
}

/* Post content */
.post-content { font-size: 1rem; line-height: 2; color: var(--text-primary); padding: 32px 36px; }
.post-content h2 { font-size: 1.4rem; margin-top: 2em; margin-bottom: .8em; padding-bottom: .4em; border-bottom: 1px solid var(--border-color); color: rgba(255,255,255,.95); }
.post-content h3 { font-size: 1.15rem; margin-top: 1.5em; margin-bottom: .6em; color: rgba(255,255,255,.9); }
.post-content h4 { font-size: 1rem; margin-top: 1.2em; margin-bottom: .5em; color: rgba(255,255,255,.85); }
.post-content p { margin-bottom: 1.2em; }
.post-content img { border-radius: var(--radius-lg); margin: 24px 0; max-width: 100%; height: auto; }
.post-content figure { margin: 24px 0; }
.post-content figcaption { font-size: .82rem; color: var(--text-secondary); text-align: center; margin-top: 8px; }
.post-content blockquote {
  margin: 24px 0; padding: 20px 24px;
  border-left: 4px solid var(--primary);
  background: rgba(240,185,11,.05);
  font-style: italic; color: var(--text-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content ul, .post-content ol { margin: 16px 0 24px; padding-left: 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; line-height: 1.8; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { opacity: .8; }
.post-content pre {
  margin: 20px 0; padding: 20px;
  background: rgba(0,0,0,.3); border-radius: var(--radius);
  overflow-x: auto; font-size: .85rem; line-height: 1.6;
}
.post-content code { background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 3px; font-size: .85rem; }
.post-content pre code { background: transparent; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-content table th, .post-content table td { padding: 10px 14px; border: 1px solid var(--border-color); text-align: left; }
.post-content table th { background: rgba(255,255,255,.05); font-weight: 600; }
.post-content hr { border: none; border-top: 1px solid var(--border-color); margin: 32px 0; }
  background: var(--bg-elevated); color: #e0e0e0;
  padding: 20px; border-radius: var(--radius-lg);
  overflow-x: auto; font-size: .85rem;
  margin: 24px 0; border: 1px solid var(--border-color);
}
.post-content code { background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 3px; font-size: .85rem; }

/* Post tags */
.post-tags { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-tags .tags-label { font-size: .82rem; color: var(--text-secondary); margin-right: 8px; }
.post-tags a {
  display: inline-block; padding: 4px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-subtle);
  border-radius: 4px; font-size: .8rem;
  text-decoration: none; color: var(--text-primary);
  transition: all var(--transition);
}
.post-tags a:hover { background: var(--primary); color: var(--bg-elevated); border-color: var(--primary); }

/* Author bio */
.author-bio {
  margin: 28px 0; padding: 24px;
  background: rgba(240,185,11,.04);
  border: 1px solid rgba(240,185,11,.12);
  border-radius: var(--radius-lg);
  display: flex; gap: 16px; align-items: flex-start;
}
.author-bio-avatar {
  width: 64px; height: 64px;
  border-radius: 50%; flex-shrink: 0;
}
.author-bio-name {
  font-size: .95rem; font-weight: 700;
  color: var(--primary); margin-bottom: 6px;
}
.author-bio-desc { font-size: .85rem; color: var(--text-primary); line-height: 1.7; margin: 0; }
.author-bio a {
  color: var(--primary);
  font-weight: 700;
}
.author-bio a:hover { color: var(--accent); }

/* Single post contrast guard for dark parent theme and dark content blocks. */
.single .post-detail,
.single-post .post-detail {
  color: var(--text-primary);
}

.single .post-content p,
.single .post-content li,
.single .post-content td,
.single .post-content th,
.single .post-content blockquote,
.single-post .post-content p,
.single-post .post-content li,
.single-post .post-content td,
.single-post .post-content th,
.single-post .post-content blockquote {
  color: var(--text-primary);
}

.single .post-content .has-black-color,
.single .post-content .has-very-dark-gray-color,
.single-post .post-content .has-black-color,
.single-post .post-content .has-very-dark-gray-color {
  color: var(--text-primary) !important;
}

.single .post-content .has-black-background-color,
.single .post-content .has-very-dark-gray-background-color,
.single .post-content .has-dark-background,
.single .post-content .dark-card,
.single .post-content .dark-panel,
.single-post .post-content .has-black-background-color,
.single-post .post-content .has-very-dark-gray-background-color,
.single-post .post-content .has-dark-background,
.single-post .post-content .dark-card,
.single-post .post-content .dark-panel {
  background: #111827 !important;
  border: 1px solid rgba(255,255,255,.14);
  color: #f1f3f8 !important;
}

.single .post-content .has-black-background-color *,
.single .post-content .has-very-dark-gray-background-color *,
.single .post-content .has-dark-background *,
.single .post-content .dark-card *,
.single .post-content .dark-panel *,
.single-post .post-content .has-black-background-color *,
.single-post .post-content .has-very-dark-gray-background-color *,
.single-post .post-content .has-dark-background *,
.single-post .post-content .dark-card *,
.single-post .post-content .dark-panel * {
  color: #f1f3f8 !important;
}

/* Post navigation */
.post-nav {
  display: flex; justify-content: space-between;
  margin: 28px 0; padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.post-nav a { font-size: .85rem; max-width: 45%; color: var(--text-primary); }
.post-nav a:hover { color: var(--primary); }
.entry-footer .post-nav { align-items: stretch; }
.entry-footer .post-nav a { max-width: none; min-height: 96px; }

.post-nav-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; padding: 20px 0;
}
.post-nav-link {
  display: flex; flex-direction: column;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.post-nav-link:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(240,185,11,.2);
}
.post-nav-link .nav-label { font-size: .72rem; color: var(--text-secondary); margin-bottom: 4px; }
.post-nav-link .nav-title { font-size: .9rem; color: var(--text-heading); font-weight: 600; line-height: 1.4; }
.post-nav-next { text-align: right; }
.post-nav-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Reading progress */
#reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--primary);
  z-index: 10000;
  transition: width .1s linear; width: 0;
}

/* Featured post inner elements */
.featured-thumb .featured-img,
.featured-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; position: absolute; inset: 0;
}
.archive-featured-content { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.featured-label { font-size: .72rem; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.featured-title { font-size: 1.4rem; margin-bottom: 10px; }
.featured-title a { color: #fff; text-decoration: none; }
.featured-title a:hover { color: var(--primary); }
.featured-excerpt { font-size: .88rem; color: var(--text-primary); line-height: 1.65; margin-bottom: 10px; }
.featured-meta { font-size: .75rem; color: var(--text-secondary); }

/* Post card image class */
.post-thumb .post-img,
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.post-card:hover .post-img { transform: scale(1.06); }

/* Post categories inside cards */
.post-categories { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.post-cat-tag {
  display: inline-block; padding: 2px 8px;
  background: rgba(240,185,11,.08);
  border: 1px solid rgba(240,185,11,.15);
  border-radius: 4px;
  font-size: .65rem; font-weight: 600;
  color: var(--primary); text-decoration: none;
  text-transform: uppercase; letter-spacing: .3px;
}
.post-cat-tag:hover { background: rgba(240,185,11,.15); color: var(--primary); }

/* List view toggle */
.post-grid.list-view { grid-template-columns: 1fr; }
.post-grid.list-view .post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.post-grid.list-view .post-thumb { aspect-ratio: auto; min-height: 180px; }
.post-grid.list-view .post-body { justify-content: center; }

/* Post categories row */
.post-categories { margin-bottom: 8px; }
.post-categories .category-badge-link { margin-right: 6px; }

/* Comments section wrapper */
.comments-section { border-top: 1px solid var(--border-subtle); }

/* Post edit link */
.post-edit-link { font-size: .78rem; color: var(--primary); text-decoration: none; margin-left: auto; }

/* ── 25. Related Posts ──────────────────────────────────── */
.related-posts-section { padding: var(--section-spacing) 0; }
.related-posts-heading {
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-heading); margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  display: block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px; overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
}
.related-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(240,185,11,.2);
  transform: translateY(-2px);
}
.related-card-image { aspect-ratio: 16/9; overflow: hidden; }
.related-card-image img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: 16px; }
.related-card-title { font-size: .92rem; font-weight: 600; color: var(--text-heading); line-height: 1.4; margin-bottom: 6px; }
.related-card-date { font-size: .75rem; color: var(--text-secondary); }

/* ── 26. Archive / Category / Search ────────────────────── */
.archive-hero { padding: 48px 0; margin-bottom: 24px; }
.archive-hero-content { max-width: 600px; }
.archive-hero-title { font-size: clamp(1.3rem, 3vw, 1.8rem); color: #fff; margin-bottom: 8px; }
.archive-hero-desc { font-size: .9rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.6; }
.archive-hero-meta { font-size: .82rem; color: var(--text-secondary); }

.archive-hero-card {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-base));
  border-radius: var(--radius-lg);
  padding: 40px 32px; margin-bottom: 32px;
  border: 1px solid var(--border-subtle);
}
.category .main-layout,
.archive.category .main-layout {
  padding-top: 30px;
}
.category .breadcrumb,
.archive.category .breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: auto;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.035);
  line-height: 1.4;
}
.category .breadcrumb .sep,
.archive.category .breadcrumb .sep {
  margin: 0 2px;
  opacity: .6;
}
.category-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 28px;
  margin: 0 0 24px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(240,185,11,.12), transparent 26rem),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: var(--shadow-sm);
}
.category-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.category-hero-main {
  position: relative;
  min-width: 0;
}
.category-hero-card .archive-hero-title {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.category-hero-card .archive-hero-desc {
  max-width: 760px;
  margin: 10px 0 0;
}
.category-hero-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.category-hero-pill,
.category-hero-date {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.045);
  color: var(--text-primary);
  font-size: .8rem;
  font-weight: 650;
  white-space: nowrap;
}
.category-hero-pill {
  color: var(--primary);
  border-color: rgba(240,185,11,.24);
  background: rgba(240,185,11,.10);
}
.category .archive-hero-card,
.archive.category .archive-hero-card {
  padding: 24px 28px;
  margin: 8px 0 24px;
}
.category .archive-hero,
.archive.category .archive-hero {
  padding: 0;
  margin-bottom: 0;
}
.category .archive-hero-content,
.archive.category .archive-hero-content {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px 24px;
}
.category .archive-hero-title,
.archive.category .archive-hero-title {
  margin: 0;
  line-height: 1.18;
}
.category .archive-hero-desc,
.archive.category .archive-hero-desc {
  grid-column: 1 / -1;
  margin: 0;
}
.category .archive-hero-meta,
.archive.category .archive-hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.archive-hero-badge {
  display: inline-block; padding: 4px 14px;
  background: rgba(240,185,11,.12);
  border: 1px solid rgba(240,185,11,.2);
  border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600;
  color: var(--primary); margin-bottom: 12px;
}
.archive-hero-search {
  margin-top: 16px; max-width: 480px;
}

/* Sub-category navigation */
.subcategory-nav {
  display: flex; flex-wrap: wrap;
  gap: 8px; margin-bottom: 24px;
}
.subcat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  font-size: .82rem; color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: all var(--transition);
}
.subcat-chip:hover {
  border-color: rgba(240,185,11,.3);
  color: var(--primary);
  background: rgba(240,185,11,.06);
}
.subcat-chip.active {
  background: rgba(240,185,11,.12);
  border-color: var(--primary);
  color: var(--primary); font-weight: 600;
}
.subcat-chip .chip-count {
  font-size: .7rem; color: var(--text-secondary);
  background: rgba(255,255,255,.06);
  padding: 1px 6px; border-radius: var(--radius-pill);
}

/* Archive featured post */
.archive-featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 240px;
}
.archive-featured-post .featured-thumb { position: relative; overflow: hidden; }
.archive-featured-post .featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-featured-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; background: var(--primary);
  color: var(--secondary);
  border-radius: var(--radius-pill);
  font-size: .7rem; font-weight: 700;
  z-index: 2;
}
.archive-featured-content { padding: 24px; }
.archive-featured-content h2 { font-size: 1.4rem; margin-bottom: 10px; }
.archive-featured-content h2 a { color: #fff; text-decoration: none; }
.archive-featured-content h2 a:hover { color: var(--primary); }

/* Archive section header & view toggle */
.archive-section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}
.archive-view-toggle {
  display: flex; gap: 4px;
}
.view-btn {
  padding: 6px 12px; border: 1px solid var(--border-color);
  border-radius: var(--radius); font-size: .78rem;
  color: var(--text-secondary); background: none;
  cursor: pointer; transition: all var(--transition);
}
.view-btn.active {
  background: rgba(240,185,11,.1);
  border-color: var(--primary);
  color: var(--primary);
}
.view-btn:hover { border-color: rgba(240,185,11,.3); }

/* Related categories */
.related-categories {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.related-categories h3 {
  color: var(--text-heading);
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.related-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-top: 12px;
}
.related-category-link {
  display: block; padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.related-category-link:hover {
  border-color: rgba(240,185,11,.3);
  background: rgba(240,185,11,.06);
  transform: translateY(-1px);
}
.related-category-link .cat-name { font-size: .88rem; color: var(--text-heading); font-weight: 700; }
.related-category-link .cat-count { font-size: .72rem; color: var(--text-primary); opacity: .92; }

/* ── 27. Page Content ───────────────────────────────────── */
.page .content-area .entry-content { padding: 24px 0; }
.page .content-area .entry-content h1 { font-size: 2rem; color: #fff; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); font-weight: 700; }
.page .content-area .entry-content h2 { font-size: 1.5rem; color: #fff; margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.page .content-area .entry-content h3 { font-size: 1.2rem; color: rgba(255,255,255,.9); margin: 24px 0 12px; }
.page .content-area .entry-content p { font-size: 1rem; line-height: 1.9; color: var(--text-primary); margin-bottom: 16px; }
.page .content-area .entry-content ul,
.page .content-area .entry-content ol { margin: 12px 0 20px; padding-left: 24px; }
.page .content-area .entry-content ul { list-style: disc; }
.page .content-area .entry-content ol { list-style: decimal; }
.page .content-area .entry-content li { margin-bottom: 8px; font-size: .95rem; line-height: 1.7; color: var(--text-primary); }
.page .content-area .entry-content li strong { color: rgba(255,255,255,.85); }
.page-title { font-size: 1.6rem; color: #fff; margin-bottom: 20px; }
.page-content { font-size: 1rem; line-height: 2; color: var(--text-primary); }
.page-links { clear: both; padding: 16px 0; text-align: center; }
.page-links a, .page-links span { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: .85rem; }
.page-links .current { background: var(--primary); color: var(--bg-elevated); border-color: var(--primary); }

/* ── 28. Breadcrumb ─────────────────────────────────────── */
.breadcrumb { font-size: .82rem; color: var(--text-secondary); margin-bottom: 16px; padding: 8px 0; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--text-primary); }

/* ── 29. Pagination ─────────────────────────────────────── */
.pagination {
  display: flex; gap: 6px; justify-content: center;
  margin: 40px 0; flex-wrap: wrap;
}
.pagination a, .pagination .current, .pagination .dots {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius); font-size: .85rem;
  transition: all var(--transition); font-weight: 500;
}
.pagination a:hover { background: var(--primary); color: var(--bg-elevated); border-color: var(--primary); }
.pagination .current { background: var(--primary); color: var(--bg-elevated); border-color: var(--primary); font-weight: 700; }
.pagination .dots { border: none; min-width: auto; padding: 0 4px; color: var(--text-secondary); }

/* ── 30. Search Form ────────────────────────────────────── */
.search-form { display: flex; gap: 0; max-width: 500px; }
.search-form .search-field {
  flex: 1; padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg-elevated); color: var(--text-primary);
  transition: border-color var(--transition);
}
.search-form .search-field:focus { border-color: var(--primary); outline: none; }
.search-form .search-submit {
  padding: 12px 24px;
  background: var(--primary); color: var(--bg-elevated);
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.search-form .search-submit:hover { opacity: .9; }

/* ── 31. Comments ───────────────────────────────────────── */
.comments-area { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border-color); }
.comments-title { font-size: 1.05rem; margin-bottom: 20px; color: #fff; }
.comment-list { margin-bottom: 28px; }
.comment { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.comment-body { display: flex; gap: 14px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-size: .85rem; font-weight: 600; font-style: normal; }
.comment-meta { font-size: .78rem; color: var(--text-secondary); margin: 4px 0 8px; }
.comment-content { font-size: .85rem; line-height: 1.7; color: var(--text-primary); }
.reply a { font-size: .8rem; color: var(--text-secondary); }
.reply a:hover { color: var(--primary); }
.comment-respond { padding: 24px; background: var(--bg-surface); border-radius: var(--radius-lg); margin-top: 20px; }
.comment-reply-title { font-size: .95rem; margin-bottom: 14px; color: #fff; }
.comment-form label { display: block; margin-bottom: 4px; font-size: .85rem; color: var(--text-secondary); }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius); margin-bottom: 14px;
  background: var(--bg-elevated); color: var(--text-primary);
  transition: border-color var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); outline: none; }
.comment-form textarea { min-height: 100px; }
.comment-form .submit {
  padding: 10px 28px; background: var(--primary);
  color: var(--bg-elevated); border-radius: var(--radius);
  font-size: .85rem; font-weight: 600;
  transition: all var(--transition); border: none;
}
.comment-form .submit:hover { opacity: .9; }

/* ── 32. Back to Top ────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary); color: var(--secondary);
  border: none; cursor: pointer; font-size: 1.2rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: all var(--transition);
  z-index: 9999;
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(240,185,11,.3); }
.back-to-top.visible { display: flex; }

/* ── 33. 404 & No Results ───────────────────────────────── */
.error-404 { text-align: center; padding: 100px 24px; max-width: 500px; margin: 0 auto; }
.error-title { font-size: 6rem; line-height: 1; color: var(--primary); margin-bottom: 8px; font-weight: 900; }
.error-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.error-sub { font-size: .9rem; color: var(--text-secondary); margin-bottom: 32px; }
.error-search { margin-top: 40px; }
.error-search h3 { margin-bottom: 12px; font-size: .95rem; color: var(--text-secondary); }
.no-results { text-align: center; padding: 60px 24px; }
.no-results-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-secondary); }
.no-results-desc { color: var(--text-secondary); margin-bottom: 20px; }
.no-results .search-form { margin: 0 auto; }

/* ── 34. Accessibility ──────────────────────────────────── */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; top: -100px; left: 8px; z-index: 9999; padding: 12px 24px; background: var(--bg-elevated); color: #fff; border-radius: var(--radius); border: 1px solid var(--border-color); transition: top .3s; }
.skip-link:focus { top: 8px; }

/* ── 35. Header Overflow / Z-index ──────────────────────── */
.header-inner > .lang-switcher,
.header-inner > .header-actions,
.header-inner > .search-toggle,
.header-inner > .header-auth-btns,
.header-inner > .menu-toggle { position: relative; z-index: 1200; }
.lang-switcher { z-index: 1300; isolation: isolate; }
.lang-toggle { position: relative; z-index: 1301; }
.lang-dropdown { z-index: 1400; }
.main-nav { min-width: 0; max-width: 100%; }
.main-nav > div { min-width: 0; }
.site-footer .footer-widget-area { grid-column: span 1; }

/* Desktop header layout */
@media (min-width: 769px) {
  .header-inner { flex-wrap: nowrap; }
  .site-branding { flex: 0 0 auto; }
  .main-nav {
    display: flex; align-items: center;
    justify-content: flex-end; overflow: visible;
    position: relative; z-index: 1;
    min-width: 0; padding-right: 8px;
  }
  .main-nav > div { width: auto; min-width: 0; max-width: 100%; }
  .main-nav ul { justify-content: flex-end; flex-wrap: nowrap; width: auto; min-width: 0; max-width: 100%; }
  .header-actions { position: relative; z-index: 1600; }
.lang-switcher, .lang-toggle, .lang-dropdown { pointer-events: auto; }
}

.main-nav .nav-more { position: relative; }
.main-nav .nav-more > .sub-menu {
  right: 0;
  left: auto;
  min-width: 180px;
}
.main-nav .nav-more.open > .sub-menu { display: block; }
.main-nav .nav-more > .nav-more-toggle::after {
  content: "▾";
  margin-left: 5px;
  font-size: .72em;
  opacity: .75;
}

@media (max-width: 1120px) and (min-width: 769px) {
  .site-title { font-size: 1.05rem; }
  .main-nav a { padding: 10px 8px; font-size: .78rem; }
  .header-actions { gap: 6px; }
  .btn-outline-sm,
  .btn-primary-sm { padding: 6px 10px; font-size: .76rem; }
}

/* Final shared interaction fixes for parent and child themes. */
.lang-switcher-native,
.lang-switcher {
  visibility: visible;
  opacity: 1;
}

.lang-summary {
  display: inline-flex !important;
  align-items: center;
}

.exchange-compare-table .ex-source {
  display: none !important;
}

.page-content,
.post-content,
.entry-content {
  color: var(--text-primary);
}

.page-content p,
.page-content li,
.post-content p,
.post-content li,
.entry-content p,
.entry-content li,
.post-meta-bar,
.meta-item,
.author-bio-desc,
.post-nav-link .nav-label {
  color: #cfd5e6;
}

.section-subtitle,
.archive-hero-desc,
.archive-hero-meta,
.post-excerpt,
.post-meta,
.post-meta a,
.featured-excerpt,
.featured-meta,
.related-card-date,
.summary-label,
.summary-label-sm,
.summary-help,
.ticker-period,
.ticker-hl-row,
.ticker-volume,
.exchange-desc,
.exchange-metric span,
.exchange-features li,
.feature-desc,
.step-card p,
.testimonial-role,
.footer-about,
.footer-about p,
.footer-disclaimer p,
.footer-copyright p,
.footer-bottom-links a,
.widget,
.widget p,
.widget li,
.widget ul li a,
.breadcrumb,
.breadcrumb a {
  color: #d4daea !important;
}

.site-footer .footer-disclaimer p,
.site-footer .footer-bottom-links a,
.site-footer .footer-copyright p {
  color: #bfc6d8 !important;
}

/* Final contrast audit: archive, widgets, meta text, and related-category blocks must be readable. */
.archive-section-header h2,
.related-categories h3,
.comments-title,
.comment-reply-title,
.widget-title,
.page-title,
.no-results-title,
.error-search h3 {
  color: var(--text-heading) !important;
}

.related-category-link,
.post-tags a,
.page-links a,
.page-links span,
.pagination a,
.pagination .dots,
.view-btn,
.subcat-chip,
.widget_tag_cloud .tagcloud a {
  color: #d7dce9 !important;
}

.related-category-link .cat-name,
.related-category-link:hover .cat-name,
.widget ul li a,
.popular-post-title,
.featured-post-title,
.post-nav-link .nav-title {
  color: #f1f3f8 !important;
}

.related-category-link .cat-count,
.related-card-date,
.featured-post-meta,
.popular-post-meta,
.comment-meta,
.comment-form label,
.error-desc,
.error-sub,
.no-results-desc,
.pagination .dots,
.post-tags .tags-label,
.activity-location,
.activity-time,
.post-nav-link .nav-label {
  color: #c7cedd !important;
  opacity: 1 !important;
}

.related-category-link,
.widget,
.comment-respond,
.comment-body,
.no-results,
.post-nav-link {
  border-color: rgba(255,255,255,.14) !important;
}

.related-category-link:hover,
.post-tags a:hover,
.page-links a:hover,
.view-btn:hover,
.subcat-chip:hover {
  color: var(--primary) !important;
}

/* ── 36. Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-area { width: 240px; }
  .exchange-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --section-spacing: 48px; }
  .lang-current-label { display: none; }
  .container { padding: 0 16px; }

  /* Header mobile */
  .menu-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .site-branding { flex: 1 1 auto; min-width: 0; }
  .header-actions { margin-left: 0; }
  .main-nav {
    display: none;
    position: absolute; top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    max-height: min(72vh, 560px); overflow-y: auto; overflow-x: hidden;
    z-index: 1700;
  }
  .main-nav.active { display: block; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; width: 100%; min-width: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--border-color); }
  .main-nav a { padding: 14px 0; color: rgba(255,255,255,.7); }
  .main-nav .sub-menu { position: static; box-shadow: none; padding-left: 20px; background: transparent; border: none; }
  .main-nav .sub-menu a { padding: 10px 0; }
}

@media (max-width: 768px) {
  .single-latest-grid { grid-template-columns: 1fr; }
  .single-latest-card { grid-template-columns: 86px minmax(0, 1fr); }

  /* Layout */
  .main-layout { flex-direction: column; gap: 24px; }
  .widget-area { width: 100%; }
  .category .archive-hero-content,
  .archive.category .archive-hero-content { grid-template-columns: 1fr; align-items: start; }
  .category .archive-hero-meta,
  .archive.category .archive-hero-meta { justify-content: flex-start; }

  /* Grids */
  .post-grid, .post-grid[data-columns] { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .exchange-grid { grid-template-columns: 1fr; }
  .ticker-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .exchange-metrics { grid-template-columns: 1fr; }

  /* Footer */
  .footer-widgets { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-newsletter .container { flex-direction: column; text-align: center; }
  .newsletter-form form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: auto; width: 100%; }
  .footer-copyright .container { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* Post detail */
  .post-detail .post-title { font-size: 1.3rem; }
  .section-title { font-size: 1.3rem; }
  .author-bio { flex-direction: column; text-align: center; }

  /* Exchange */
  .exchange-desc { min-height: 0; }

  /* Trending */
  .trending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trending-item {
    grid-template-columns: 30px 38px minmax(0, 1fr);
    padding: 12px;
  }
  .trending-symbol-row,
  .trending-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Market summary */
  .market-summary-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Archive */
  .archive-featured-post { grid-template-columns: 1fr; }
  .archive-hero-card { padding: 24px 20px; }
  .category .main-layout,
  .archive.category .main-layout { padding-top: 22px; }
  .category .breadcrumb,
  .archive.category .breadcrumb {
    margin-bottom: 10px;
    padding: 7px 10px;
    font-size: .76rem;
  }
  .category-hero-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 20px 18px 18px 20px;
    margin-bottom: 18px;
  }
  .category-hero-meta {
    justify-content: flex-start;
    gap: 6px;
  }
  .category-hero-pill,
  .category-hero-date {
    min-height: 30px;
    padding: 5px 10px;
    font-size: .74rem;
  }
  .archive-section-header { flex-direction: column; gap: 12px; }
  .archive-view-toggle { display: none; }

  /* Navigation */
  .post-nav-grid { grid-template-columns: 1fr; }
  .post-nav-grid-3 { grid-template-columns: 1fr; }

  /* Comments */
  .comment-form input, .comment-form textarea { font-size: 16px; }

  /* Back to top */
  .back-to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; font-size: 1rem; }

  /* Topbar */
  .topbar-right { display: none; }
  .topbar-left { justify-content: center; width: 100%; }
  .topbar-market-mini { display: none; }
}

@media (max-width: 480px) {
  :root { --section-spacing: 36px; }
  .container { padding: 0 12px; }
  .ticker-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .post-title { font-size: .95rem; }
  .hero-title { font-size: 1.5rem; }
  .exchange-card { padding: 20px; }
  .trending-grid { grid-template-columns: 1fr; }
  .market-summary-bar { grid-template-columns: 1fr 1fr; }
  .summary-help { font-size: .68rem; line-height: 1.4; }
  .post-content, .entry-content { font-size: .9rem; line-height: 1.7; }
  .post-content h2, .entry-content h2 { font-size: 1.15rem; }
  .post-content h3, .entry-content h3 { font-size: 1.05rem; }
  .btn-outline-sm { display: none; }
  .footer-main { padding: 32px 0 24px; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section { min-height: 50vh; padding: 24px 0; }
  .main-nav { max-height: 90vh; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  .main-nav a { min-height: 44px; display: flex; align-items: center; }
  .footer-col li a { min-height: 36px; display: inline-flex; align-items: center; }
  .exchange-card a, .btn-outline-sm, .btn-primary-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .exchange-card:hover, .post-card:hover { transform: none; }
  .market-data-strip .container { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .market-strip-item { scroll-snap-align: start; }
}

/* Print */
@media print {
  .site-header, .top-announcement-bar, .market-data-strip, .site-footer,
  .sidebar, .widget-area, .back-to-top, #back-to-top, .share-buttons,
  #reading-progress, .lang-switcher, .menu-toggle, .search-toggle,
  .header-search-form, .header-auth-btns, .breadcrumb, .post-nav,
  .related-posts-section, .comment-respond { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
  .main-layout { display: block; }
  .post-content a { text-decoration: underline; }
  .post-content a::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
}

/* Reduced motion */
@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;
  }
}

/* Single article spacing guard: keep content away from the left edge. */
.single .post-detail .post-content,
.single-post .post-detail .post-content {
  padding-left: 56px;
  padding-right: 48px;
}
.single .post-detail .post-meta-bar,
.single-post .post-detail .post-meta-bar,
.single .post-detail .post-tags,
.single-post .post-detail .post-tags,
.single .post-detail .post-share,
.single-post .post-detail .post-share,
.single .post-detail .author-bio,
.single-post .post-detail .author-bio,
.single .post-detail .entry-footer,
.single-post .post-detail .entry-footer,
.single .post-detail .comments-section,
.single-post .post-detail .comments-section {
  margin-left: 56px;
  margin-right: 48px;
}
.single .post-detail .related-posts-section,
.single-post .post-detail .related-posts-section {
  margin: 30px 48px 36px 56px;
  padding: 28px 0 0;
  background: transparent;
  border-top: 1px solid var(--border-color);
  border-bottom: 0;
}
.single .post-detail .related-posts-section > .container,
.single-post .post-detail .related-posts-section > .container {
  max-width: none;
  padding: 0;
}
@media (max-width: 768px) {
  .single .post-detail .post-content,
  .single-post .post-detail .post-content {
    padding-left: 26px;
    padding-right: 24px;
  }
  .single .post-detail .post-meta-bar,
  .single-post .post-detail .post-meta-bar,
  .single .post-detail .post-tags,
  .single-post .post-detail .post-tags,
  .single .post-detail .post-share,
  .single-post .post-detail .post-share,
  .single .post-detail .author-bio,
  .single-post .post-detail .author-bio,
  .single .post-detail .entry-footer,
  .single-post .post-detail .entry-footer,
  .single .post-detail .comments-section,
  .single-post .post-detail .comments-section {
    margin-left: 24px;
    margin-right: 24px;
  }
  .single .post-detail .related-posts-section,
  .single-post .post-detail .related-posts-section {
    margin-left: 24px;
    margin-right: 24px;
  }
  .single .post-detail .post-share-collapsible,
  .single-post .post-detail .post-share-collapsible {
    display: block;
    padding: 12px 0;
  }
  .post-share-collapsible .share-summary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    color: var(--text-primary);
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .post-share-collapsible .share-summary .share-label {
    margin: 0;
    color: var(--text-primary);
  }
  .post-share-collapsible .share-summary-caret {
    font-size: 1rem;
    line-height: 1;
    color: var(--primary);
    transition: transform .2s ease;
  }
  .post-share-collapsible.open .share-summary-caret {
    transform: rotate(45deg);
  }
  .post-share-collapsible .share-buttons-row {
    display: none;
  }
  .post-share-collapsible.open .share-buttons-row {
    display: flex;
    margin-top: 10px;
  }
}
