/*
Theme Name: CoIndex
Theme URI: https://coindex.co.il
Description: Professional cryptocurrency index and market data platform - Hebrew RTL
Author: CoIndex
Version: 2.0.0
Text Domain: coindex
License: GPL-2.0-or-later
*/

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Modern Blue Financial */
  --white: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fb;
  --bg-tertiary: #eef1f8;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --text-primary: #1e3a5f;
  --text-secondary: #475b74;
  --text-muted: #8896a6;
  --text-light: #b0bec5;

  /* Accent - Blue */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-soft: #dbeafe;

  /* Market Colors */
  --green: #10b981;
  --green-bg: #ecfdf5;
  --red: #ef4444;
  --red-bg: #fef2f2;

  /* Typography - Modern */
  --font-heading: 'Plus Jakarta Sans', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --container-width: 1280px;
  --header-height: 60px;
  --ticker-height: 40px;
  --section-padding: 48px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TICKER BAR ===== */
.ticker-bar {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  height: var(--ticker-height);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: ticker-scroll 45s linear infinite;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-size: 12.5px;
  font-family: var(--font-body);
  white-space: nowrap;
  color: rgba(255,255,255,0.7);
  border-left: 1px solid rgba(255,255,255,0.1);
}

.ticker-item:last-child {
  border-left: none;
}

.ticker-item img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.ticker-item .ticker-name {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.ticker-item .ticker-symbol {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  text-transform: uppercase;
}

.ticker-item .ticker-price {
  color: #fff;
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 12px;
}

.ticker-item .ticker-change {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.ticker-item .ticker-change.up { color: var(--green); }
.ticker-item .ticker-change.down { color: var(--red); }

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

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-primary);
  height: var(--header-height);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.site-brand .brand-dot {
  color: var(--text-primary);
}

/* Custom Logo Image */
.site-brand .custom-logo-link,
.site-brand .custom-logo-link img {
  display: block;
}

.site-brand .custom-logo-link img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-logo .custom-logo-link img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0) invert(1); /* white logo on dark footer */
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.main-nav li a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.main-nav li a:hover,
.main-nav li.current-menu-item a,
.main-nav li.current_page_item a {
  color: var(--text-primary);
}

.main-nav li.current-menu-item a,
.main-nav li.current_page_item a {
  color: var(--accent);
}

.main-nav li.current-menu-item a::after,
.main-nav li.current_page_item a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 18px;
  left: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* ===== HERO / MARKET OVERVIEW ===== */
.market-overview {
  padding: 48px 0 36px;
  background: linear-gradient(135deg, #f0f5ff 0%, #fafbff 50%, #f5f0ff 100%);
  border-bottom: 1px solid var(--border-light);
}

.market-overview h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.market-overview .market-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.market-overview .market-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

.market-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.market-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  min-width: 160px;
  box-shadow: var(--shadow-sm);
}

.market-stat .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.market-stat .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.market-stat .stat-change {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.market-stat .stat-change.up { color: var(--green); }
.market-stat .stat-change.down { color: var(--red); }

/* ===== TABS & FILTERS ===== */
.content-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.tabs-list {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  font-family: var(--font-body);
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--text-primary);
}

.search-box {
  position: relative;
}

.search-box input {
  width: 260px;
  height: 40px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0 16px 0 40px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 18px;
  height: 18px;
}

/* Category Filters */
.category-filters {
  display: flex;
  gap: 8px;
  padding: 0 0 16px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 6px 16px;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.cat-pill:hover {
  border-color: var(--text-muted);
  background: var(--bg-secondary);
}

.cat-pill.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* ===== PRICE TABLE ===== */
.price-table-wrap {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table thead th {
  padding: 12px 16px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
  position: sticky;
  top: var(--header-height);
  background: var(--bg-primary);
  z-index: 10;
}

.price-table thead th.col-num {
  width: 40px;
  text-align: center;
}

.price-table thead th.col-name {
  min-width: 200px;
}

.price-table thead th.col-chart {
  width: 120px;
  text-align: center;
}

.price-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.price-table tbody tr:hover {
  background: var(--bg-secondary);
}

.price-table tbody td {
  padding: 14px 16px;
  white-space: nowrap;
  vertical-align: middle;
}

.price-table .coin-rank {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* Coin name cell */
.coin-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-name-cell img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.coin-name-cell .coin-info {
  display: flex;
  flex-direction: column;
}

.coin-name-cell .coin-fullname {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.coin-name-cell .coin-symbol {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Price & numeric cells */
.cell-price {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.cell-pct {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
}

.cell-pct.up { color: var(--green); }
.cell-pct.down { color: var(--red); }

.cell-mcap,
.cell-volume {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.cell-chart {
  text-align: center;
}

.cell-chart canvas {
  width: 100px;
  height: 32px;
}

/* Add to Wallet button */
.btn-add-wallet {
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-add-wallet:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* Load More */
.load-more-wrap {
  text-align: center;
  padding: 32px 0;
}

.btn-load-more {
  padding: 10px 32px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-load-more:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

/* ===== HOME PAGE GRID (Top Coins) ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.section-header a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.coins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 32px 0;
}

.coin-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.coin-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  opacity: 0;
  transition: opacity 0.25s;
}

.coin-card:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

.coin-card:hover::before {
  opacity: 1;
}

.coin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.coin-card-top .coin-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-card-top .coin-id img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.coin-card-top .coin-id .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.coin-card-top .coin-id .symbol {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.coin-card-top .rank-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 10px;
}

.coin-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.coin-card-change {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.coin-card-change.up { color: var(--green); }
.coin-card-change.down { color: var(--red); }

.coin-card-chart {
  margin-top: 12px;
  height: 40px;
}

.coin-card-chart canvas {
  width: 100%;
  height: 40px;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== WALLET SIMULATION ===== */
.wallet-page {
  padding: 40px 0;
}

.wallet-header {
  margin-bottom: 32px;
}

.wallet-header h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.wallet-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.wallet-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* Portfolio Summary Card */
.portfolio-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.portfolio-card .total-value {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.portfolio-card .total-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 4px;
}

.portfolio-card .total-amount {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.portfolio-card .total-pnl {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.portfolio-card .total-pnl.up { color: var(--green); }
.portfolio-card .total-pnl.down { color: var(--red); }

/* Holdings list */
.holdings-list {
  list-style: none;
}

.holding-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.holding-item:last-child {
  border-bottom: none;
}

.holding-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.holding-info img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.holding-info .holding-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.holding-info .holding-amount {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.holding-value {
  text-align: left;
}

.holding-value .value-usd {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
}

.holding-value .value-pnl {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.holding-value .value-pnl.up { color: var(--green); }
.holding-value .value-pnl.down { color: var(--red); }

/* Portfolio bar */
.portfolio-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0 12px;
  background: var(--bg-tertiary);
}

.portfolio-bar .bar-segment {
  height: 100%;
  transition: width 0.5s ease;
}

/* Trade Panel */
.trade-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.trade-panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.trade-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.trade-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-muted);
}

.trade-tab.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.trade-field {
  margin-bottom: 16px;
}

.trade-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.trade-field input,
.trade-field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color 0.2s;
}

.trade-field input:focus,
.trade-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.quick-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-amount {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: var(--font-body);
}

.quick-amount:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.trade-summary {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.trade-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-secondary);
}

.trade-summary-row .label {
  color: var(--text-muted);
}

.trade-summary-row .value {
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.btn-execute {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-execute.buy {
  background: var(--green);
  color: #fff;
}

.btn-execute.buy:hover {
  background: #0bb574;
}

.btn-execute.sell {
  background: var(--red);
  color: #fff;
}

.btn-execute.sell:hover {
  background: #e03a50;
}

/* Transaction History */
.tx-history {
  margin-top: 24px;
}

.tx-history h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.tx-list {
  list-style: none;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.tx-item .tx-type {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
}

.tx-item .tx-type.buy {
  color: var(--green);
  background: var(--green-bg);
}

.tx-item .tx-type.sell {
  color: var(--red);
  background: var(--red-bg);
}

.tx-item .tx-details {
  flex: 1;
  margin: 0 12px;
  color: var(--text-secondary);
}

.tx-item .tx-amount {
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
  border-color: var(--accent-soft);
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin: 32px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.disclaimer strong {
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

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

.footer-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===== PAGE TEMPLATE ===== */
.page-content {
  padding: 40px 0;
}

.page-content article {
  max-width: 800px;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.page-content .entry-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .coins-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wallet-layout {
    grid-template-columns: 1fr;
  }

  .trade-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 16px 0;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li a {
    padding: 12px 24px;
    border-bottom: none;
  }

  .main-nav li.current-menu-item a::after {
    display: none;
  }

  .coins-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .market-overview h1 {
    font-size: 24px;
  }

  .market-stats-row {
    gap: 20px;
  }

  .content-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .market-stats-row {
    flex-direction: column;
    gap: 12px;
  }

  .category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .cat-pill {
    flex-shrink: 0;
  }
}
