/* ============================================================
   style.css — CryptoCalcHub Enhanced: Dark/Light Mode + SEO
   ============================================================ */

/* ── Dark Theme Variables (default) ────────────────────────── */
:root,
[data-theme="dark"] {
  --primary:        #f7931a;
  --primary-d:      #e07d0a;
  --primary-glow:   rgba(247,147,26,0.15);
  --primary-border: rgba(247,147,26,0.3);
  --bg:             #0d1117;
  --bg2:            #161b22;
  --bg3:            #1c2128;
  --bg4:            #21262d;
  --border:         #30363d;
  --text:           #e6edf3;
  --text-muted:     #8b949e;
  --text-dim:       #6e7681;
  --green:          #00d095;
  --red:            #ff4444;
  --blue:           #58a6ff;
  --yellow:         #ffd700;
  --shadow:         0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.55);
  --radius:         12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:          1200px;
  --transition:     0.2s ease;
  /* Theme toggle icons */
  --icon-moon:      block;
  --icon-sun:       none;
}

/* ── Light Theme Variables ──────────────────────────────────── */
[data-theme="light"] {
  --primary:        #e07d0a;
  --primary-d:      #c96800;
  --primary-glow:   rgba(224,125,10,0.10);
  --primary-border: rgba(224,125,10,0.25);
  --bg:             #ffffff;
  --bg2:            #f6f8fa;
  --bg3:            #eaeef2;
  --bg4:            #d0d7de;
  --border:         #d0d7de;
  --text:           #1f2328;
  --text-muted:     #57606a;
  --text-dim:       #8c959f;
  --green:          #1a7f37;
  --red:            #cf222e;
  --blue:           #0969da;
  --yellow:         #9a6700;
  --shadow:         0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
  --icon-moon:      none;
  --icon-sun:       block;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background:  var(--bg);
  color:       var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
a   { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-d); }
img { max-width: 100%; display: block; }
ul  { list-style: none; }
input, select, textarea, button { font-family: var(--font); }

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; padding: 13px 28px;
  background: var(--primary); color: #000;
  font-weight: 700; font-size: .95rem;
  border-radius: var(--radius); border: none;
  cursor: pointer; transition: all var(--transition);
  text-align: center; white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-d); color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247,147,26,.35);
}
.btn-outline {
  display: inline-block; padding: 13px 28px;
  background: transparent; color: var(--primary);
  font-weight: 700; font-size: .95rem;
  border-radius: var(--radius); border: 2px solid var(--primary);
  cursor: pointer; transition: all var(--transition);
  text-align: center; white-space: nowrap;
}
.btn-outline:hover {
  background: var(--primary); color: #000; transform: translateY(-2px);
}
.btn-cta {
  display: inline-block; padding: 10px 22px;
  background: var(--primary); color: #000;
  font-weight: 700; font-size: .88rem;
  border-radius: var(--radius); transition: all var(--transition);
  white-space: nowrap;
}
.btn-cta:hover { background: var(--primary-d); color: #000; transform: translateY(-1px); }
.btn-sm {
  padding: 5px 12px; background: var(--bg3);
  color: var(--primary); border: 1px solid var(--border);
  border-radius: 6px; font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.btn-sm:hover { background: var(--primary); color: #000; border-color: var(--primary); }

/* ── Theme Toggle Button ────────────────────────────────────── */
.theme-toggle {
  width: 40px; height: 40px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
}
.theme-icon-dark  { display: var(--icon-moon); }
.theme-icon-light { display: var(--icon-sun);  }

/* ── Sticky Ad ──────────────────────────────────────────────── */
.ad-sticky-top {
  position: sticky; top: 0; z-index: 1100;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  text-align: center; padding: 6px 0;
}
.ad-wrap { text-align: center; margin: 24px 0; overflow: hidden; }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.95);
}
.nav-wrap {
  display: flex; align-items: center;
  gap: 16px; height: 68px;
}
.logo-link {
  display: flex; align-items: center;
  gap: 10px; text-decoration: none; flex-shrink: 0;
}
.logo-img    { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.logo-text   { display: flex; flex-direction: column; }
.logo-main   { font-size: 1.1rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.logo-tag    { font-size: .65rem; color: var(--text-muted); line-height: 1.2; }

.main-nav {
  display: flex; align-items: center;
  gap: 2px; flex: 1; margin-left: 12px;
}
.main-nav > a {
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--text); font-size: .9rem; font-weight: 500;
  transition: all var(--transition);
}
.main-nav > a:hover,
.main-nav > a[aria-current] {
  background: var(--bg3); color: var(--primary);
}
.nav-dropdown { position: relative; }
.nav-parent {
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--text); font-size: .9rem; font-weight: 500;
  cursor: pointer; display: block; transition: all var(--transition);
}
.nav-parent:hover { background: var(--bg3); color: var(--primary); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 230px;
  padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all var(--transition); z-index: 500;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  color: var(--text); font-size: .88rem; font-weight: 500;
  transition: all var(--transition);
}
.dropdown-menu a:hover { background: var(--bg3); color: var(--primary); }

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

/* Hamburger */
.hamburger {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 10px;
  cursor: pointer; margin-left: auto; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
  width: 40px; height: 40px;
}
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger:hover { background: var(--bg3); border-color: var(--primary); }

/* ── Price Ticker ───────────────────────────────────────────── */
.price-ticker {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  overflow: hidden; height: 38px; display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 40px; padding: 0 20px;
  font-size: .8rem; font-weight: 600;
  white-space: nowrap; color: var(--text-muted);
  animation: tickerScroll 40s linear infinite;
}
.ticker-item  { display: inline-flex; align-items: center; gap: 8px; }
.t-sym        { color: var(--text); font-weight: 700; }
.t-price      { color: var(--text); }
.up           { color: var(--green); }
.down         { color: var(--red);   }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse at 65% 0%, var(--primary-glow) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(88,166,255,.05) 0%, transparent 50%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f7931a' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-glow);
  border: 1px solid var(--primary-border);
  color: var(--primary); font-size: .75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.9rem; font-weight: 900; line-height: 1.12;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub   { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 30px; line-height: 1.72; }
.hero-btns  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
  display: flex; gap: 28px; padding-top: 24px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.stat       { display: flex; flex-direction: column; }
.stat span  { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.stat small { font-size: .73rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }

/* Hero Card */
.hero-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-glow);
}
.hc-title {
  font-size: 1rem; font-weight: 800; margin-bottom: 20px;
  color: var(--primary); display: flex; align-items: center; gap: 8px;
}
.hc-row { margin-bottom: 14px; }
.hc-row label {
  display: block; font-size: .78rem; color: var(--text-muted);
  margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
}
.hc-row input {
  width: 100%; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: .95rem;
  transition: border-color var(--transition);
}
.hc-row input:focus { outline: none; border-color: var(--primary); }
.hc-result {
  margin-top: 14px; padding: 14px; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border);
  font-size: .9rem; line-height: 1.8;
}
.hc-link {
  display: block; text-align: center; margin-top: 14px;
  font-size: .85rem; font-weight: 600; color: var(--primary);
}

/* ── Section Titles ─────────────────────────────────────────── */
.section-title { font-size: 1.85rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.section-sub   { color: var(--text-muted); font-size: .97rem; margin-bottom: 34px; }

.section-prices,
.section-calcs,
.section-affiliates,
.section-blog,
.section-trust     { padding: 64px 0; }
.section-calcs     { background: var(--bg2); }
.section-trust     { background: var(--bg2); }
.section-prices    { border-bottom: 1px solid var(--border); }
.section-affiliates{ border-top: 1px solid var(--border); }

/* ── Prices Grid ────────────────────────────────────────────── */
.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px; margin-top: 20px;
}
.price-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  text-align: center; transition: all var(--transition); cursor: default;
}
.price-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.price-card.loading { opacity: .5; }
.pc-symbol { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.pc-coin   { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pc-price  { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.pc-change { font-size: .8rem; font-weight: 600; margin-top: 4px; }
.pc-change.up   { color: var(--green); }
.pc-change.down { color: var(--red); }

/* ── Calculator Cards ───────────────────────────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.calc-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  display: block; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.calc-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.calc-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(247,147,26,.15);
}
.calc-card:hover::after { opacity: 1; }
.cc-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  font-size: 1.5rem; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; position: relative; z-index: 1;
}
.calc-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); position: relative; z-index: 1; }
.calc-card p  { font-size: .87rem; color: var(--text-muted); line-height: 1.65; position: relative; z-index: 1; }
.cc-tag {
  display: inline-block; margin-top: 14px; font-size: .73rem; font-weight: 700;
  color: var(--primary); background: var(--primary-glow);
  padding: 3px 10px; border-radius: 50px; position: relative; z-index: 1;
}

/* ── Affiliate Grid ─────────────────────────────────────────── */
.aff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.aff-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; transition: all var(--transition); color: var(--text);
}
.aff-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.aff-badge {
  position: absolute; top: -1px; right: 16px;
  background: var(--primary); color: #000;
  font-size: .68rem; font-weight: 800; padding: 3px 10px;
  border-radius: 0 0 8px 8px; text-transform: uppercase; letter-spacing: .5px;
}
.aff-card img    { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.aff-card strong { font-size: 1rem; font-weight: 700; }
.aff-card p      { font-size: .82rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.aff-btn {
  display: inline-block; margin-top: 8px; padding: 8px 16px;
  background: var(--primary-glow); color: var(--primary);
  font-size: .82rem; font-weight: 700; border-radius: var(--radius);
  text-align: center; transition: all var(--transition);
}
.aff-card:hover .aff-btn { background: var(--primary); color: #000; }

/* ── Blog Grid ──────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 26px;
  display: block; color: var(--text); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.blog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--primary);
  transform: scaleX(0); transition: transform var(--transition);
  transform-origin: left;
}
.blog-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.blog-card:hover::before { transform: scaleX(1); }
.blog-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.45; }
.blog-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.blog-meta    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-date    { font-size: .76rem; color: var(--text-muted); }
.blog-tag {
  font-size: .7rem; font-weight: 700;
  background: var(--primary-glow); color: var(--primary);
  padding: 3px 10px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .4px;
}

/* ── Trust Grid ─────────────────────────────────────────────── */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.trust-item {
  text-align: center; padding: 28px 20px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); transition: all var(--transition);
}
.trust-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.trust-item span   { font-size: 2rem; display: block; margin-bottom: 12px; }
.trust-item strong { font-size: .97rem; font-weight: 700; display: block; margin-bottom: 6px; }
.trust-item p      { font-size: .82rem; color: var(--text-muted); }

/* ── CTA Band ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 100%);
  border-top: 1px solid var(--primary-border);
  border-bottom: 1px solid var(--primary-border);
  padding: 40px 0;
}
.cta-band-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band-text h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.cta-band-text p  { color: var(--text-muted); font-size: .9rem; }
.cta-band-btns    { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 64px 0 0; margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 800; color: var(--primary);
  margin-bottom: 14px; text-decoration: none;
}
.footer-logo img { width: 28px; height: 28px; object-fit: contain; }
.footer-col p    { font-size: .85rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 10px; }
.footer-col h4 {
  font-size: .83rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.footer-col ul    { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: .85rem; color: var(--text-muted); transition: color var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a::before { content: '›'; color: var(--primary); font-weight: 700; }
.footer-col ul li a:hover   { color: var(--primary); }
.footer-disclaimer { font-size: .78rem !important; border-top: 1px solid var(--border); padding-top: 12px; }
.footer-trust {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.footer-trust span {
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 50px;
}

/* Amazon Book Cards */
.book-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  margin-bottom: 10px; transition: all var(--transition); color: var(--text);
}
.book-card:hover { border-color: var(--primary); transform: translateX(3px); color: var(--text); }
.book-thumb {
  width: 40px; height: 40px; background: var(--primary-glow);
  border: 1px solid var(--primary-border);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.book-info       { flex: 1; min-width: 0; }
.book-info strong{ font-size: .82rem; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-info small { font-size: .72rem; color: var(--text-muted); display: block; }
.book-price {
  font-size: .7rem; font-weight: 700; color: var(--primary);
  display: inline-block; margin-top: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0; background: var(--bg);
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom-inner p { font-size: .8rem; color: var(--text-muted); }
.footer-bottom-links   { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .8rem; color: var(--text-muted); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ── Calculator Page Layout ─────────────────────────────────── */
.page-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 36px; padding: 48px 20px; align-items: start;
  max-width: var(--max-w); margin: 0 auto;
}
.page-main    { min-width: 0; }
.page-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a    { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-dim); }

.page-hero-mini { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.page-hero-icon {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--primary-glow); border: 1px solid var(--primary-border);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
}
.page-hero-mini h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.page-hero-mini p  { color: var(--text-muted); font-size: .95rem; max-width: 600px; }

/* Calc Box */
.calc-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; margin-bottom: 28px;
}
.calc-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font-size: .95rem; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group select option { background: var(--bg2); color: var(--text); }
.calc-live-price {
  font-size: .85rem; color: var(--text-muted); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.calc-live-price strong { color: var(--primary); }
.calc-submit { width: 100%; padding: 15px; font-size: 1rem; }

/* Result Box */
.calc-result {
  margin-top: 24px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.result-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.result-item.highlight { border-color: var(--primary); background: var(--primary-glow); }
.ri-label { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.ri-val   { font-size: 1.2rem; font-weight: 900; color: var(--text); }
.result-item.highlight .ri-val { color: var(--primary); }
.result-disclaimer { font-size: .76rem; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* Converter */
.converter-wrap {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 16px; align-items: end; margin-bottom: 20px;
}
.converter-arrow { font-size: 1.5rem; color: var(--primary); padding-bottom: 10px; text-align: center; }
.converter-result {
  text-align: center; padding: 24px; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--primary); margin-bottom: 20px;
}
.converter-result span { font-size: 1.8rem; font-weight: 900; color: var(--primary); display: block; }
.converter-result small { color: var(--text-muted); font-size: .8rem; margin-top: 6px; display: block; }

/* Content Block */
.content-block {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; margin-top: 24px;
}
.content-block h2 { font-size: 1.25rem; font-weight: 800; margin: 24px 0 12px; color: var(--text); }
.content-block h2:first-child { margin-top: 0; }
.content-block p  { color: var(--text-muted); line-height: 1.78; margin-bottom: 14px; }
.content-block code {
  background: var(--bg); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 5px;
  font-family: monospace; font-size: .87rem; color: var(--primary);
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
}
.sidebar-widget h4 {
  font-size: .85rem; font-weight: 800; margin-bottom: 14px; color: var(--text);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .5px;
}
.sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-links a {
  font-size: .87rem; color: var(--text-muted);
  padding: 8px 12px; border-radius: var(--radius);
  transition: all var(--transition); display: flex; align-items: center; gap: 8px;
}
.sidebar-links a::before { content: '›'; color: var(--primary); font-weight: 700; font-size: .9rem; }
.sidebar-links a:hover   { background: var(--bg); color: var(--primary); }
.sw-aff {
  display: block; padding: 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; position: relative;
  transition: all var(--transition); color: var(--text);
}
.sw-aff:hover   { border-color: var(--primary); color: var(--text); }
.sw-aff strong  { font-size: .88rem; display: block; margin-bottom: 4px; }
.sw-aff small   { font-size: .76rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.sw-badge {
  position: absolute; top: -1px; right: 10px;
  background: var(--primary); color: #000;
  font-size: .62rem; font-weight: 800; padding: 2px 8px;
  border-radius: 0 0 6px 6px; text-transform: uppercase;
}
.sw-btn {
  display: inline-block; font-size: .76rem; font-weight: 700;
  color: var(--primary); background: var(--primary-glow);
  padding: 4px 12px; border-radius: 6px;
}

/* Blog Post */
.post-header { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.post-header h1 { font-size: 2rem; font-weight: 900; line-height: 1.25; margin: 12px 0; }
.post-tags  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.post-meta  { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.post-content          { font-size: .97rem; line-height: 1.82; color: var(--text-muted); }
.post-content p        { margin-bottom: 18px; }
.post-content h2       { color: var(--text); font-size: 1.35rem; font-weight: 800; margin: 32px 0 14px; }
.post-content h3       { color: var(--text); font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; }
.post-content ul,
.post-content ol       { padding-left: 20px; margin-bottom: 18px; }
.post-content ul li,
.post-content ol li    { margin-bottom: 8px; }
.post-content a        { color: var(--primary); text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--primary); padding: 14px 20px;
  background: var(--primary-glow); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0; font-style: italic; color: var(--text);
}
/* Inline affiliate banner in posts */
.post-affiliate-banner {
  background: var(--bg2); border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  margin: 28px 0; display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.post-affiliate-banner strong { font-size: .95rem; color: var(--text); flex: 1; }
.post-affiliate-banner small  { font-size: .82rem; color: var(--text-muted); display: block; }
.pab-btn {
  padding: 10px 20px; background: var(--primary); color: #000;
  font-weight: 700; font-size: .85rem; border-radius: var(--radius);
  white-space: nowrap; flex-shrink: 0; transition: all var(--transition);
}
.pab-btn:hover { background: var(--primary-d); color: #000; }

.related-post {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--border);
  color: var(--text); transition: color var(--transition);
}
.related-post:hover   { color: var(--primary); }
.related-post strong  { display: block; font-size: .87rem; line-height: 1.4; }
.related-post small   { font-size: .75rem; color: var(--text-muted); }

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  background: var(--bg2); border-radius: var(--radius-xl); border: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar{ order: -1; }
}
@media (max-width: 768px) {
  .hero            { padding: 48px 0 40px; }
  .hero h1         { font-size: 2.1rem; }
  .main-nav {
    display: none; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px; gap: 4px; z-index: 999;
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .main-nav.open   { display: flex; }
  .hamburger       { display: flex; }
  .nav-cta         { display: none; }
  .dropdown-menu   { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; background: var(--bg3); margin-top: 4px; }
  .calc-form-grid  { grid-template-columns: 1fr; }
  .result-grid     { grid-template-columns: 1fr; }
  .converter-wrap  { grid-template-columns: 1fr; }
  .converter-arrow { display: none; }
  .footer-grid     { grid-template-columns: 1fr; }
  .calc-grid       { grid-template-columns: 1fr; }
  .aff-grid        { grid-template-columns: 1fr 1fr; }
  .prices-grid     { grid-template-columns: repeat(2, 1fr); }
  .section-title   { font-size: 1.55rem; }
  .cta-band-inner  { flex-direction: column; text-align: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .aff-grid   { grid-template-columns: 1fr; }
  .hero-btns  { flex-direction: column; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }
  .nav-actions .btn-cta { display: none; }
}
/* ============================================================
   SHARED CALCULATOR PAGE STYLES
   (bitcoin-etf, liquidation, compound-interest,
    position-size, nft-profit)
   ============================================================ */

/* Calc title */
.calc-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Two-column calc grid */
.calc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .calc-grid-2 { grid-template-columns: 1fr; }
}

/* Full-width button */
.btn-full {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  margin-top: 4px;
}

/* Result box */
.result-box {
  margin-top: 28px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.result-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.result-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.result-item.highlight-accent { border-color: var(--accent); }
.result-item.highlight-danger { border-color: #ff4444; }
.r-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.r-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.r-val.accent    { color: var(--accent); }
.r-val.danger    { color: #ff4444; }
.r-val.large-val { font-size: 1.3rem; }
.result-disclaimer {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(255,193,7,.1);
  border: 1px solid rgba(255,193,7,.3);
  border-radius: 10px;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Input helpers */
.input-btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-btn-row input { flex: 1; }
.btn-live {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity .2s;
}
.btn-live:hover { opacity: .85; }
.input-unit {
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.field-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Warning banner */
.warning-banner {
  background: rgba(255,68,68,.1);
  border: 1px solid rgba(255,68,68,.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .85rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Formula box */
.formula-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-family: 'Courier New', monospace;
  font-size: .9rem;
  color: var(--text);
  margin: 16px 0;
  line-height: 1.6;
}

/* Liquidation slider */
.liq-slider {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--accent);
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.liq-bar-section { margin-top: 20px; }
.liq-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.liq-bar-track {
  position: relative;
  height: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.liq-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4444, #f59e0b);
  border-radius: 6px;
  transition: width .4s ease;
}
.liq-bar-marker {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left .4s ease;
}
.liq-bar-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Compare toggle */
.compare-toggle {
  margin-bottom: 20px;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  user-select: none;
}
.toggle-label input[type="checkbox"] { display: none; }
.toggle-track {
  width: 40px; height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .2s;
}
.toggle-label input:checked + .toggle-track { background: var(--accent); }
.toggle-label input:checked + .toggle-track::after { left: 21px; }
