/* ==========================================================================
   TopBitcoinTrader.com - Production Dark Theme CSS
   Clean, Responsive, High Performance, Zero Framework Bloat
   ========================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(245, 158, 11, 0.3);
  
  --btc-gold: #f59e0b;
  --btc-gold-glow: rgba(245, 158, 11, 0.2);
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.15);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gold { color: var(--btc-gold); }
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }

.bg-positive { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }
.bg-negative { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); border: 1px solid rgba(239, 68, 68, 0.2); }

/* ==========================================================================
   Top Live Bar (Ticker)
   ========================================================================== */
.top-ticker {
  background: #060911;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-ticker::-webkit-scrollbar {
  display: none;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  justify-content: flex-start;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ticker-label {
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
}

.ticker-val {
  font-weight: 600;
  font-family: var(--font-mono);
}

.badge-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6), 0 1px 0 0 rgba(245, 158, 11, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-logo .brand-logo-img {
  width: 4.6rem;
  height: 3.35rem;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.7));
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
}

.brand-word-top {
  color: #f8fafc;
  font-weight: 800;
}

.brand-word-btc {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.brand-word-trader {
  background: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.95rem;
  position: relative;
  padding: 0.35rem 0;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: #10b981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.nav-links a.active {
  color: #10b981;
  font-weight: 700;
  border-bottom: 2px solid #10b981;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-header-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-weight: 700;
}

.btn-header-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--btc-gold);
  color: var(--btc-gold);
}

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

.btn-outline:hover {
  border-color: var(--btc-gold);
  background: rgba(245, 158, 11, 0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--btc-gold);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Cards & Glassmorphism
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-elevated {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   Converter Widget
   ========================================================================== */
.converter-box {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.converter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.converter-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.converter-group {
  margin-bottom: 1rem;
}

.converter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.input-group {
  display: flex;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--btc-gold);
}

.converter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  width: 100%;
}

.converter-select {
  background: #1e293b;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  border-left: 1px solid var(--border-color);
}

.converter-swap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0.25rem auto 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--btc-gold);
  cursor: pointer;
  transition: all 0.2s ease;
}

.converter-swap-btn:hover {
  transform: rotate(180deg);
  border-color: var(--btc-gold);
}

.converter-result-bar {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.converter-result-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--btc-gold);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Metrics Bar
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.metric-card .title {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.metric-card .val {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Strategies Grid & Cards
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.35rem;
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
}

.strategy-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.strategy-card .top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-gold { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.strategy-card .title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: #fff;
}

.strategy-card:hover .title {
  color: var(--btc-gold);
}

.strategy-card .desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.strategy-card .meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.825rem;
  color: var(--text-dim);
}

.meta-footer .difficulty {
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Rates Table
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.rates-table th {
  background: #0d131f;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.rates-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.rates-table tr:last-child td {
  border-bottom: none;
}

.rates-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.currency-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.currency-cell .symbol-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--btc-gold);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Strategy Detail Page
   ========================================================================== */
.strategy-detail-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
}

.strategy-breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.detail-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.detail-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--btc-gold);
}

.detail-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.detail-content ul, .detail-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.detail-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.callout-box {
  background: rgba(30, 41, 59, 0.5);
  border-left: 4px solid var(--btc-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.callout-box.danger {
  border-left-color: var(--accent-red);
  background: rgba(239, 68, 68, 0.08);
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.rule-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.rule-item .rule-title {
  font-weight: 700;
  color: var(--btc-gold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.sidebar-card {
  position: sticky;
  top: 6rem;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-input {
  flex: 1;
  min-width: 240px;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: #fff;
  outline: none;
}

.search-input:focus {
  border-color: var(--btc-gold);
}

.select-filter {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: #fff;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a:hover {
  color: var(--btc-gold);
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.775rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-dim);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive Component Layouts & Grid Systems
   ========================================================================== */
.mobile-only-cta {
  display: none;
}

.desktop-only-cta {
  display: inline-flex;
}

/* Calculator Grid Layout */
.calc-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.calc-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.calc-results-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.calc-card {
  padding: 2.25rem;
}

/* Rates Converter Horizontal Grid */
.converter-horizontal-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 1rem;
}

/* TradingView Chart Container */
.tradingview-chart-box {
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0b0f19;
}

/* News Wire Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .calc-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .calc-results-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Header & Navigation Drawer */
  .desktop-only-cta {
    display: none !important;
  }
  .mobile-only-cta {
    display: block;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 1.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus-visible {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.35rem;
    z-index: 999;
  }
  .nav-links.is-open {
    display: flex;
    animation: slideDownMenu 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    width: 100%;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-bottom: none;
    padding-left: 1.25rem;
  }

  /* Form Elements - Prevent iOS Safari Auto-Zoom */
  input, select, textarea, .converter-input, .converter-select, .search-input, .select-filter {
    font-size: 16px !important;
  }

  /* Header & Logo Scaling */
  .nav-wrap {
    height: 4.8rem;
  }
  .brand-logo-img {
    width: 3.8rem;
    height: 2.8rem;
  }
  .brand-logo {
    font-size: 1.35rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.5rem 0 2rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Interactive Widgets */
  .tradingview-chart-box {
    height: 400px;
  }
  .converter-horizontal-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .converter-swap-btn {
    align-self: center;
    margin: 0.25rem auto;
    width: 44px;
    height: 44px;
  }
  .calc-card {
    padding: 1.5rem;
  }
  .calc-inputs-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Filter Bar on Tablet/Mobile */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .search-input, .select-filter {
    width: 100%;
    min-width: 0;
  }
  .filter-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* Sections & Layout */
  .section {
    padding: 2.75rem 0;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .pro-con-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .nav-wrap {
    height: 4.2rem;
  }
  .brand-logo {
    font-size: 1.15rem;
    gap: 0.65rem;
  }
  .brand-logo-img {
    width: 2.9rem;
    height: 2.15rem;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  .hero-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }
  .tradingview-chart-box {
    height: 320px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .calc-results-row {
    grid-template-columns: 1fr;
  }
  .calc-card {
    padding: 1.25rem 0.85rem;
  }
  #converter {
    padding: 1.5rem 1rem !important;
  }
  .converter-result-val {
    font-size: 1.4rem !important;
  }
  .rates-table th, 
  .rates-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.85rem;
  }
  .currency-cell .symbol-circle {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }
  .news-badge-box {
    padding: 0.15rem 0.4rem;
    gap: 0.35rem;
  }
  .news-badge-text {
    font-size: 0.62rem;
  }
  .news-bar-container {
    gap: 0.5rem;
  }
  .news-ticker-link {
    font-size: 0.8rem;
    gap: 0.45rem;
  }
  .news-view-all-pill {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .brand-word-top, .brand-word-trader {
    font-size: 1rem;
  }
  .brand-logo-img {
    width: 2.5rem;
    height: 1.9rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   News Live Wire Scrolling Marquee (Directly Below Header)
   ========================================================================== */
.news-ticker-section {
  background: #060911;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0;
  overflow: hidden;
  position: relative;
  z-index: 40;
}

.news-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  z-index: 2;
}

.news-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: newsPulse 1.8s infinite;
}

.news-badge-text {
  font-size: 0.7rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-ticker-viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
}

.news-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2.25rem;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeNews 50s linear infinite;
}

.news-ticker-track:hover {
  animation-play-state: paused;
}

.news-ticker-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.news-ticker-link:hover {
  color: #10b981;
}

.news-ticker-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-ticker-headline {
  font-weight: 500;
}

.news-ticker-separator {
  color: #f59e0b;
  font-size: 0.65rem;
  margin-left: 0.5rem;
  opacity: 0.6;
}

.news-view-all-pill {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-view-all-pill:hover {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

@keyframes marqueeNews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes newsPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}
