/*
Theme Name: Bitexly
Theme URI: https://bitexly.com
Author: Bitexly
Author URI: https://bitexly.com
Description: A professional crypto news and education WordPress theme for Bitexly — covering announcements, market predictions, crypto education, how-to guides, and live market updates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bitexly
Tags: crypto, finance, news, magazine, blog, responsive, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   CSS VARIABLES — Bitexly Blue Palette
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bx-dark:      #0f172a;
  --bx-brand:     #1a56db;
  --bx-accent:    #2563eb;
  --bx-light:     #3b82f6;
  --bx-sky:       #60a5fa;
  --bx-bg:        #f8faff;
  --bx-card:      #ffffff;
  --bx-muted:     #64748b;
  --bx-border:    #e2e8f0;
  --bx-tag-bg:    #eff6ff;
  --bx-text:      #0f172a;

  /* Category colors */
  --cat-announce: #7c3aed;
  --cat-predict:  #059669;
  --cat-edu:      #d97706;
  --cat-howto:    #0891b2;
  --cat-market:   #dc2626;

  --bx-font:   'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bx-serif:  'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--bx-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bx-text);
  background: var(--bx-bg);
}
a { text-decoration: none; color: inherit; }
a:hover { color: var(--bx-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bx-serif);
  line-height: 1.25;
  color: var(--bx-text);
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); }
p { margin-bottom: 1rem; }

.entry-content p { line-height: 1.85; margin-bottom: 1.25rem; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }
.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.entry-content blockquote {
  border-left: 4px solid var(--bx-brand);
  padding: 1rem 1.5rem;
  background: #eff6ff;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: #334155;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 900px) { .content-area { grid-template-columns: 1fr; } }

/* ============================================================
   COOKIE BAR
   ============================================================ */
.bx-cookie-bar {
  background: var(--bx-dark);
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.bx-cookie-bar a { color: var(--bx-sky); }
.bx-cookie-bar .cookie-accept {
  background: var(--bx-brand);
  color: #fff;
  border: none;
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   TICKER BAR — live market feel
   ============================================================ */
.ticker-bar {
  background: var(--bx-dark);
  color: #fff;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-bar:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,.1);
}
.ticker-item .coin-name { color: var(--bx-sky); }
.ticker-item .price { color: #fff; }
.ticker-item .change-up   { color: #34d399; }
.ticker-item .change-down { color: #f87171; }
.ticker-item .arrow-up   { color: #34d399; }
.ticker-item .arrow-down { color: #f87171; }

/* ============================================================
   QUICK LINKS BAR
   ============================================================ */
.quick-links-bar {
  background: #fff;
  border-bottom: 1px solid var(--bx-border);
  padding: 8px 0;
}
.quick-links-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ql-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bx-muted);
  margin-right: 4px;
  white-space: nowrap;
}
.ql-tag {
  font-size: 12px;
  padding: 3px 12px;
  background: var(--bx-tag-bg);
  border-radius: 20px;
  color: var(--bx-brand);
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.ql-tag:hover { background: var(--bx-brand); color: #fff; }
.ql-newsletter {
  margin-left: auto;
  background: var(--bx-brand);
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ql-newsletter:hover { background: var(--bx-dark); color: #fff; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--bx-brand);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(26,86,219,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-branding { flex-shrink: 0; }
.site-branding .custom-logo { height: 44px; width: auto; }
.site-title {
  font-family: var(--bx-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--bx-brand);
  letter-spacing: -.02em;
}
.site-title a { color: inherit; }

/* Nav */
.main-navigation { flex: 1; }
.main-navigation ul {
  display: flex;
  gap: 2px;
  align-items: center;
}
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
  display: block;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bx-text);
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--bx-brand);
  background: var(--bx-tag-bg);
}
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--bx-border);
  border-top: 3px solid var(--bx-brand);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(26,86,219,.12);
  display: none;
  flex-direction: column;
  z-index: 300;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul ul li a {
  padding: 10px 16px;
  border-radius: 0;
  border-bottom: 1px solid var(--bx-border);
}
.main-navigation ul ul li:last-child a { border-bottom: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--bx-border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--bx-text);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bx-muted);
  padding: 6px;
  line-height: 1;
}
.header-cta {
  background: var(--bx-brand);
  color: #fff;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
}
.header-cta:hover { background: var(--bx-dark); color: #fff; }

/* Social icons */
.header-social { display: flex; gap: 6px; }
.header-social a {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  transition: opacity .2s;
}
.header-social a:hover { opacity: .85; }
.hs-tw { background: #1a1a1a; }
.hs-tg { background: #229ed9; }
.hs-dc { background: #5865f2; }

/* Search Overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.7);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.search-overlay.active { display: flex; }
.search-overlay-inner {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  width: 90%;
  max-width: 580px;
}
.search-overlay-inner form { display: flex; gap: 0; }
.search-overlay-inner input {
  flex: 1; padding: 12px 16px;
  border: 2px solid var(--bx-border);
  border-right: none; font-size: 15px; outline: none;
  border-radius: 6px 0 0 6px;
}
.search-overlay-inner button {
  background: var(--bx-brand); color: #fff;
  border: none; padding: 12px 20px;
  cursor: pointer; font-size: 15px;
  border-radius: 0 6px 6px 0;
}
.search-close {
  display: block;
  text-align: right;
  margin-bottom: 12px;
  font-size: 22px;
  cursor: pointer;
  color: var(--bx-muted);
}

/* ============================================================
   CATEGORY BADGES — color-coded per category
   ============================================================ */
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bx-brand);
}
.cat-badge-pill {
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bx-tag-bg);
  color: var(--bx-brand);
}
.cat-badge-filled {
  background: var(--bx-brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
}

/* Per-category badge colors */
.cat-announcements .cat-badge, .cat-announcements .cat-badge-pill { color: var(--cat-announce); background: #f5f3ff; }
.cat-announcements .cat-badge-filled { background: var(--cat-announce); color: #fff; }
.cat-predictions .cat-badge, .cat-predictions .cat-badge-pill { color: var(--cat-predict); background: #ecfdf5; }
.cat-predictions .cat-badge-filled { background: var(--cat-predict); color: #fff; }
.cat-crypto-education .cat-badge, .cat-crypto-education .cat-badge-pill { color: var(--cat-edu); background: #fffbeb; }
.cat-crypto-education .cat-badge-filled { background: var(--cat-edu); color: #fff; }
.cat-how-to .cat-badge, .cat-how-to .cat-badge-pill { color: var(--cat-howto); background: #ecfeff; }
.cat-how-to .cat-badge-filled { background: var(--cat-howto); color: #fff; }
.cat-market .cat-badge, .cat-market .cat-badge-pill { color: var(--cat-market); background: #fef2f2; }
.cat-market .cat-badge-filled { background: var(--cat-market); color: #fff; }

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--bx-dark);
}
.section-heading h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--bx-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading h2 .sec-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sec-icon-announce { background: #f5f3ff; color: var(--cat-announce); }
.sec-icon-predict  { background: #ecfdf5; color: var(--cat-predict); }
.sec-icon-edu      { background: #fffbeb; color: var(--cat-edu); }
.sec-icon-howto    { background: #ecfeff; color: var(--cat-howto); }
.sec-icon-market   { background: #fef2f2; color: var(--cat-market); }

.section-heading .view-all {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bx-brand);
  border: 1.5px solid var(--bx-brand);
  padding: 4px 12px;
  border-radius: 20px;
  transition: background .2s, color .2s;
}
.section-heading .view-all:hover { background: var(--bx-brand); color: #fff; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4px;
}
.hero-featured { position: relative; overflow: hidden; border-radius: 6px; }
.hero-featured img {
  width: 100%; height: 410px; object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.hero-featured:hover img { transform: scale(1.03); }
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(8,14,36,.85));
  border-radius: 0 0 6px 6px;
}
.hero-overlay .cat-badge-filled { margin-bottom: 10px; }
.hero-title {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: #fff; margin-bottom: 10px; line-height: 1.3;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--bx-sky); }
.hero-meta { font-size: 12px; color: rgba(255,255,255,.7); }
.hero-meta a { color: var(--bx-sky); font-weight: 600; }

.hero-sidebar { display: flex; flex-direction: column; gap: 3px; }
.hero-side-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  background: #fff;
  padding: 11px;
  border-left: 3px solid var(--bx-border);
  transition: border-color .2s;
  align-items: center;
}
.hero-side-card:hover { border-left-color: var(--bx-brand); }
.hero-side-card img { width: 82px; height: 62px; object-fit: cover; border-radius: 4px; }
.hero-side-card .cat-badge { font-size: 9px; }
.hero-side-card h3 {
  font-size: 12.5px; font-weight: 600;
  line-height: 1.35; margin-top: 3px;
  color: var(--bx-text);
}
.hero-side-card:hover h3 { color: var(--bx-brand); }

/* ============================================================
   HIGHLIGHT STRIP
   ============================================================ */
.highlight-strip {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--bx-dark);
  background: #fff;
}
.highlight-item {
  padding: 14px 18px;
  border-right: 1px solid var(--bx-border);
}
.highlight-item:last-child { border-right: none; }
.highlight-item h3 {
  font-size: 13px; font-weight: 600;
  line-height: 1.4; margin-top: 4px;
  color: var(--bx-text);
}
.highlight-item h3 a:hover { color: var(--bx-brand); }
.highlight-item .meta { font-size: 11px; color: var(--bx-muted); margin-top: 5px; }

/* ============================================================
   POST CARDS — Standard 3-col grid
   ============================================================ */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.post-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--bx-border); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 8px 28px rgba(26,86,219,.1); transform: translateY(-2px); }
.post-card-thumb { overflow: hidden; }
.post-card-thumb img {
  width: 100%; height: 155px; object-fit: cover;
  transition: transform .35s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding: 14px; }
.post-card-body h3 {
  font-size: 13.5px; font-weight: 700;
  line-height: 1.4; margin: 6px 0;
}
.post-card-body h3 a:hover { color: var(--bx-brand); }
.post-card-meta { font-size: 11px; color: var(--bx-muted); margin-top: 4px; }

/* 2-col grid */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.post-card-lg .post-card-thumb img { height: 190px; }
.post-card-lg .post-card-body h3 { font-size: 14.5px; }

/* ============================================================
   HORIZONTAL LIST CARD
   ============================================================ */
.list-card {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bx-border);
  align-items: start;
}
.list-card img { width: 95px; height: 68px; object-fit: cover; border-radius: 6px; }
.list-card h3 {
  font-size: 13.5px; font-weight: 600;
  line-height: 1.4; margin: 4px 0;
}
.list-card h3 a:hover { color: var(--bx-brand); }
.list-card .meta { font-size: 11px; color: var(--bx-muted); }
.list-cards-section { margin-bottom: 36px; }

/* ============================================================
   MARKET TICKER CARDS (homepage market section)
   ============================================================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.market-card {
  background: #fff;
  border: 1px solid var(--bx-border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.market-card .coin-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bx-text);
}
.market-card .coin-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
}
.market-card .coin-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--bx-dark);
}
.market-card .coin-change {
  font-size: 12px; font-weight: 700; border-radius: 4px;
  padding: 2px 8px; display: inline-block;
}
.change-up   { background: #dcfce7; color: #15803d; }
.change-down { background: #fee2e2; color: #dc2626; }

/* ============================================================
   ARCHIVES (category tiles)
   ============================================================ */
.archives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}
.archive-card { position: relative; overflow: hidden; border-radius: 8px; }
.archive-card img { width: 100%; height: 110px; object-fit: cover; display: block; transition: transform .35s; }
.archive-card:hover img { transform: scale(1.06); }
.archive-card-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(8,14,36,.7)); }
.archive-card h3 {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  font-size: 13px; font-weight: 800; color: #fff; line-height: 1.3;
}

/* ============================================================
   AD BLOCK
   ============================================================ */
.ad-block { margin-bottom: 28px; }
.ad-label {
  font-size: 10px; color: var(--bx-muted);
  text-align: center; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .05em;
}
.ad-block img { width: 100%; border-radius: 6px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { padding-top: 4px; }
.widget { margin-bottom: 28px; }
.widget-title {
  font-size: 15px; font-weight: 800;
  color: var(--bx-dark);
  border-bottom: 3px solid var(--bx-brand);
  padding-bottom: 8px; margin-bottom: 14px;
}
.widget_recent_entries li,
.widget_categories li {
  padding: 8px 0;
  border-bottom: 1px solid var(--bx-border);
  font-size: 13px;
}
.widget_recent_entries li:last-child,
.widget_categories li:last-child { border-bottom: none; }
.widget_categories li a { display: flex; justify-content: space-between; color: var(--bx-text); }
.widget_categories li .count {
  background: var(--bx-tag-bg); padding: 1px 8px;
  border-radius: 10px; font-size: 11px; color: var(--bx-brand);
}
.widget_tag_cloud a {
  display: inline-block; margin: 3px;
  padding: 4px 10px; background: var(--bx-tag-bg);
  border-radius: 20px; font-size: 12px; color: var(--bx-brand);
}
.widget_tag_cloud a:hover { background: var(--bx-brand); color: #fff; }

/* Newsletter widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--bx-dark) 0%, #1e3a8a 100%);
  padding: 22px; border-radius: 10px; color: #fff;
}
.newsletter-widget h3 { font-size: 16px; margin-bottom: 6px; color: #fff; }
.newsletter-widget p { font-size: 13px; color: #93c5fd; margin-bottom: 14px; }
.newsletter-widget input[type="email"] {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 13px;
  margin-bottom: 8px; outline: none; border-radius: 4px;
}
.newsletter-widget input::placeholder { color: #94a3b8; }
.newsletter-widget button {
  width: 100%; background: var(--bx-brand);
  color: #fff; border: none; padding: 10px;
  cursor: pointer; font-size: 13px; font-weight: 700;
  border-radius: 4px; transition: background .2s;
}
.newsletter-widget button:hover { background: #1d4ed8; }

/* Price widget */
.price-widget { background: #fff; border: 1px solid var(--bx-border); border-radius: 10px; overflow: hidden; }
.price-widget-header {
  background: var(--bx-dark); color: #fff;
  padding: 12px 16px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.price-widget-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 16px;
  border-bottom: 1px solid var(--bx-border);
  font-size: 13px;
}
.price-widget-row:last-child { border-bottom: none; }
.price-widget-coin { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.price-widget-price { font-weight: 700; color: var(--bx-dark); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrap { background: #fff; padding: 32px; border-radius: 8px; }
.post-header .cat-badge-filled { font-size: 11px; }
.post-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.25; margin: 12px 0;
}
.post-meta-bar {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--bx-muted);
  padding: 12px 0;
  border-top: 1px solid var(--bx-border);
  border-bottom: 1px solid var(--bx-border);
  margin: 14px 0; flex-wrap: wrap;
}
.post-meta-bar a { font-weight: 600; color: var(--bx-text); }
.post-featured-image { margin-bottom: 28px; }
.post-featured-image img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 8px; }

/* Disclaimer box */
.crypto-disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: #78350f;
  margin: 24px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.crypto-disclaimer::before { content: "⚠️"; flex-shrink: 0; font-size: 16px; }

/* Share bar */
.share-bar {
  display: flex; gap: 10px; align-items: center;
  margin: 24px 0; flex-wrap: wrap;
}
.share-label { font-size: 13px; font-weight: 700; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: #fff;
  cursor: pointer; border: none; transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-btn.tw { background: #1a1a1a; }
.share-btn.tg { background: #229ed9; }
.share-btn.wa { background: #25d366; }
.share-btn.cp { background: var(--bx-brand); }

/* Author box */
.author-box {
  display: flex; gap: 16px;
  background: var(--bx-bg); padding: 20px;
  border-radius: 8px; margin-top: 32px; align-items: flex-start;
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h4 { font-size: 15px; margin-bottom: 4px; }
.author-box p { font-size: 13px; color: var(--bx-muted); margin: 0; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; gap: 6px; justify-content: center;
  margin: 36px 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--bx-border);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.pagination a:hover { background: var(--bx-brand); color: #fff; border-color: var(--bx-brand); }
.pagination .current { background: var(--bx-brand); color: #fff; border-color: var(--bx-brand); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  font-size: 12px; color: var(--bx-muted);
  padding: 10px 0; margin-bottom: 18px;
}
.breadcrumbs a { color: var(--bx-brand); }
.breadcrumbs span { margin: 0 6px; }

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-header {
  background: linear-gradient(135deg, var(--bx-dark) 0%, #1e3a8a 100%);
  color: #fff; padding: 32px 20px; margin-bottom: 28px;
}
.archive-header h1 { font-size: 28px; color: #fff; }
.archive-header p { font-size: 14px; color: #93c5fd; margin: 8px 0 0; }

/* ============================================================
   READING PROGRESS + BACK TO TOP
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--bx-brand);
  z-index: 9999; width: 0%;
  transition: width .1s linear;
}
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--bx-brand); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  z-index: 400;
  box-shadow: 0 4px 14px rgba(26,86,219,.4);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--bx-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bx-dark);
  color: #94a3b8;
  margin-top: 56px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}
.footer-brand .site-logo-footer { height: 42px; margin-bottom: 14px; }
.footer-brand .site-name-footer {
  font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; color: #94a3b8; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #94a3b8;
  transition: background .2s;
}
.footer-social a:hover { background: var(--bx-brand); color: #fff; }
.footer-widget h4 {
  font-size: 15px; color: #fff; margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.1);
}
.footer-widget ul li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.footer-widget ul li:last-child { border-bottom: none; }
.footer-widget ul li a { color: #94a3b8; }
.footer-widget ul li a:hover { color: var(--bx-sky); }
.footer-newsletter input[type="email"] {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 13px;
  margin-bottom: 8px; outline: none; border-radius: 4px;
}
.footer-newsletter input::placeholder { color: #475569; }
.footer-newsletter button {
  width: 100%; background: var(--bx-brand);
  color: #fff; border: none; padding: 10px;
  cursor: pointer; font-size: 13px; font-weight: 700;
  border-radius: 4px; transition: background .2s;
}
.footer-newsletter button:hover { background: #1d4ed8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 20px; max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: #475569; }
.footer-bottom .disclaimer {
  font-size: 11px; color: #475569;
  max-width: 600px; text-align: center; flex: 1;
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 12px; color: #475569; }
.footer-bottom-links a:hover { color: var(--bx-sky); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 36px; background: #fff; padding: 28px; border-radius: 8px; }
.comments-title { font-size: 18px; margin-bottom: 20px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--bx-border); }
.comment-meta { font-size: 13px; color: var(--bx-muted); margin-bottom: 8px; }
.comment-meta .comment-author { font-weight: 700; color: var(--bx-text); }
.comment-form input,
.comment-form textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--bx-border);
  border-radius: 6px; font-size: 14px;
  outline: none; margin-bottom: 14px;
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--bx-brand); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-submit {
  background: var(--bx-brand); color: #fff;
  border: none; padding: 10px 28px;
  border-radius: 20px; cursor: pointer;
  font-size: 14px; font-weight: 700; transition: background .2s;
}
.comment-submit:hover { background: var(--bx-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .hero-featured img { height: 300px; }
  .highlight-strip { grid-template-columns: 1fr; }
  .highlight-item { border-right: none; border-bottom: 1px solid var(--bx-border); }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .archives-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .main-navigation { display: none; }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; padding: 8px 0; }
  .menu-toggle { display: block; }
  .header-social, .header-cta { display: none; }
  .footer-widgets { grid-template-columns: 1fr; gap: 24px; }
  .single-post-wrap { padding: 20px; }
}
@media (max-width: 480px) {
  .market-grid { grid-template-columns: 1fr; }
  .archives-grid { grid-template-columns: 1fr; }
  .hero-featured img { height: 240px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.no-results { text-align: center; padding: 48px 20px; color: var(--bx-muted); }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 0 auto 20px; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft  { float: left;  margin: 5px 20px 20px 0; }
.wp-caption-text { font-size: 12px; color: var(--bx-muted); text-align: center; margin-top: 4px; }
