/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0b0e17;
  color: #e2e8f0;
  min-height: 100vh;
  font-size: 14px;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }
input, select { outline: none; border: none; }

/* ========== VARIABLES ========== */
:root {
  --bg-primary: #0b0e17;
  --bg-secondary: #111827;
  --bg-card: #151c2c;
  --bg-input: #1a2236;
  --border: #1e2d45;
  --border-light: #243352;
  --text-primary: #e2e8f0;
  --text-secondary: #8b9ab1;
  --text-muted: #4a5568;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.08);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.08);
  --yellow: #f59e0b;
  --nav-height: 64px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #344464; }

/* ========== NAV ========== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(11, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700;
  color: var(--text-primary);
}
.nav-logo .logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--text-secondary); font-weight: 500; font-size: 14px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg-card); color: var(--text-primary);
}
.nav-actions {
  display: flex; align-items: center; gap: 10px;
}
.btn-nav-login {
  padding: 8px 18px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border-light);
  color: var(--text-primary); font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.btn-nav-login:hover { background: var(--bg-card); }
.btn-nav-signup {
  padding: 8px 18px; border-radius: 8px;
  background: var(--accent); color: white;
  font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.btn-nav-signup:hover { background: var(--accent-hover); }

/* User avatar in nav */
.nav-user {
  display: flex; align-items: center; gap: 10px;
}
.nav-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: white;
  cursor: pointer;
}
.nav-user-name { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.btn-logout {
  padding: 7px 14px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border-light);
  color: var(--text-secondary); font-size: 13px; transition: all 0.2s;
}
.btn-logout:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); }

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary);
  padding: 20px;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute; bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow);
}
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 28px;
  font-size: 22px; font-weight: 700;
}
.auth-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: white;
}
.auth-title {
  font-size: 22px; font-weight: 700;
  color: var(--text-primary); text-align: center; margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 13px; color: var(--text-secondary);
  text-align: center; margin-bottom: 28px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input); border: 1px solid var(--border-light);
  border-radius: var(--radius); color: var(--text-primary);
  font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 40px; }
.input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px;
}
.input-eye {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; font-size: 15px;
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.btn-submit {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  margin-top: 6px; transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59,130,246,0.4);
}
.btn-submit:active { transform: translateY(0); }
.auth-footer {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--text-secondary);
}
.auth-footer a { color: var(--accent); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-muted); font-size: 12px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.error-msg {
  background: var(--red-bg); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px; padding: 10px 14px;
  color: var(--red); font-size: 13px; margin-bottom: 14px;
  display: none;
}
.error-msg.show { display: block; }
.success-msg {
  background: var(--green-bg); border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px; padding: 10px 14px;
  color: var(--green); font-size: 13px; margin-bottom: 14px;
  display: none;
}
.success-msg.show { display: block; }
.checkbox-group {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.checkbox-group input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer;
}
.checkbox-group label { font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.checkbox-group label a { color: var(--accent); }

/* ========== MAIN CONTENT WRAPPER ========== */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
}
.container {
  max-width: 1340px; margin: 0 auto; padding: 0 20px;
}

/* ========== HERO TICKER ========== */
.ticker-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 10px 0; overflow: hidden;
}
.ticker-inner {
  display: flex; gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap; width: max-content;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
}
.ticker-pair { font-weight: 600; color: var(--text-primary); }
.ticker-price { color: var(--text-secondary); }
.ticker-change { font-weight: 600; }
.ticker-change.up { color: var(--green); }
.ticker-change.down { color: var(--red); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========== MARKET STATS BAR ========== */
.stats-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.stats-inner {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.stat-value.up { color: var(--green); }
.stat-value.down { color: var(--red); }

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 28px 0 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.page-title { font-size: 22px; font-weight: 700; }
.page-title span { color: var(--accent); }
.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }

/* ========== FILTERS ========== */
.filters-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-box {
  position: relative; flex: 1; min-width: 200px; max-width: 280px;
}
.search-box input {
  width: 100%; padding: 9px 12px 9px 36px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); color: var(--text-primary);
  font-size: 13px; transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px; pointer-events: none;
}
.tab-group {
  display: flex; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.tab-btn {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--text-secondary);
  transition: all 0.2s; white-space: nowrap;
}
.tab-btn.active { background: var(--accent); color: white; }
.tab-btn:hover:not(.active) { background: var(--bg-input); color: var(--text-primary); }
.filter-select {
  padding: 8px 12px; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  color: var(--text-primary); font-size: 13px; cursor: pointer;
}
.filter-select option { background: var(--bg-card); }
.btn-favorite {
  padding: 8px 14px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-light);
  color: var(--text-secondary); font-size: 13px; transition: all 0.2s;
  display: flex; align-items: center; gap: 5px;
}
.btn-favorite:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-favorite.active { background: rgba(245,158,11,0.1); border-color: var(--yellow); color: var(--yellow); }

/* ========== TRADE TABLE ========== */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.trade-table {
  width: 100%; border-collapse: collapse;
}
.trade-table th {
  padding: 13px 16px; text-align: left;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: color 0.2s;
}
.trade-table th:hover { color: var(--text-secondary); }
.trade-table th .sort-icon { margin-left: 4px; opacity: 0.4; }
.trade-table th.sorted { color: var(--accent); }
.trade-table th.sorted .sort-icon { opacity: 1; }
.trade-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; vertical-align: middle;
}
.trade-table tr:last-child td { border-bottom: none; }
.trade-table tr:hover td { background: rgba(255,255,255,0.02); }
.trade-table .col-num { color: var(--text-muted); font-size: 12px; }
.trade-table .col-right { text-align: right; }

/* Star / favorite */
.star-btn {
  background: none; font-size: 16px; color: var(--text-muted);
  transition: color 0.2s; padding: 0 4px;
}
.star-btn:hover, .star-btn.starred { color: var(--yellow); }

/* Coin cell */
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.coin-names { display: flex; flex-direction: column; }
.coin-symbol { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.coin-name { font-size: 11px; color: var(--text-muted); }

/* Price */
.price-cell { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.price-flash-up { animation: flashGreen 0.5s ease; }
.price-flash-down { animation: flashRed 0.5s ease; }
@keyframes flashGreen { 0%,100%{ color: var(--text-primary); } 50%{ color: var(--green); } }
@keyframes flashRed { 0%,100%{ color: var(--text-primary); } 50%{ color: var(--red); } }

/* Change */
.change-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.change-badge.up { background: var(--green-bg); color: var(--green); }
.change-badge.down { background: var(--red-bg); color: var(--red); }

/* Mini chart */
.mini-chart { width: 90px; height: 36px; }

/* Volume */
.volume-cell { color: var(--text-secondary); }
.volume-bar-wrap {
  width: 80px; height: 4px;
  background: var(--border); border-radius: 2px; margin-top: 4px;
}
.volume-bar { height: 100%; border-radius: 2px; }

/* Action buttons */
.action-btns { display: flex; gap: 6px; }
.btn-buy {
  padding: 6px 14px; border-radius: 7px;
  background: var(--green-bg); color: var(--green);
  border: 1px solid rgba(16,185,129,0.2);
  font-size: 12px; font-weight: 600; transition: all 0.2s;
  white-space: nowrap;
}
.btn-buy:hover { background: var(--green); color: white; }
.btn-sell {
  padding: 6px 14px; border-radius: 7px;
  background: var(--red-bg); color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
  font-size: 12px; font-weight: 600; transition: all 0.2s;
  white-space: nowrap;
}
.btn-sell:hover { background: var(--red); color: white; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}
.pagination-info { font-size: 12px; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; cursor: pointer;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== TRADE MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 460px;
  padding: 28px; box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg-input); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--red-bg); color: var(--red); }
.modal-tabs {
  display: flex; background: var(--bg-secondary);
  border-radius: var(--radius); padding: 4px; margin-bottom: 20px;
}
.modal-tab {
  flex: 1; padding: 8px; font-size: 14px; font-weight: 600;
  background: transparent; border-radius: 8px; color: var(--text-secondary);
  transition: all 0.2s;
}
.modal-tab.buy.active { background: var(--green); color: white; }
.modal-tab.sell.active { background: var(--red); color: white; }
.modal-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.modal-info-row:last-of-type { border-bottom: none; margin-bottom: 4px; }
.modal-info-label { color: var(--text-secondary); }
.modal-info-value { font-weight: 600; color: var(--text-primary); }
.modal-amount-wrap { margin: 16px 0; }
.modal-amount-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.modal-amount-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input); border: 1px solid var(--border-light);
  border-radius: var(--radius); color: var(--text-primary);
  font-size: 16px; font-weight: 600;
}
.modal-amount-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.modal-quick-btns { display: flex; gap: 6px; margin-top: 8px; }
.quick-btn {
  flex: 1; padding: 6px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-secondary); font-size: 12px; font-weight: 500;
  transition: all 0.2s;
}
.quick-btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-confirm-buy {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; margin-top: 16px;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.btn-confirm-buy:hover { box-shadow: 0 6px 18px rgba(16,185,129,0.4); transform: translateY(-1px); }
.btn-confirm-sell {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; margin-top: 16px;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.btn-confirm-sell:hover { box-shadow: 0 6px 18px rgba(239,68,68,0.4); transform: translateY(-1px); }
.modal-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* ========== TOAST ========== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 14px 18px; min-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 12px;
  animation: slideIn 0.3s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }
.toast-icon { font-size: 18px; }
.toast-msg { font-size: 13px; font-weight: 500; }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ========== PORTFOLIO SECTION ========== */
.portfolio-bar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.portfolio-item { display: flex; flex-direction: column; gap: 2px; }
.portfolio-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.portfolio-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.portfolio-sub { font-size: 12px; color: var(--text-muted); }
.portfolio-divider { width: 1px; height: 40px; background: var(--border); }

/* ========== EMPTY / LOADING ========== */
.table-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.table-empty .empty-icon { font-size: 40px; margin-bottom: 12px; }
.table-empty p { font-size: 14px; }

/* ========== HOME PAGE ========== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-glow); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 600;
  color: var(--accent); margin-bottom: 20px;
}
.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 16px;
}
.hero h1 span {
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 18px; color: var(--text-secondary); max-width: 540px;
  margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  padding: 14px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white; font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
  transition: all 0.2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,130,246,0.45); }
.btn-hero-secondary {
  padding: 14px 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-light);
  color: var(--text-primary); font-size: 15px; font-weight: 600;
  transition: all 0.2s;
}
.btn-hero-secondary:hover { background: var(--bg-input); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; padding: 40px 0;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 24px 0; margin-top: 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .nav-links { display: none; }
  .stats-inner { gap: 16px; }
}
@media (max-width: 640px) {
  nav { padding: 0 14px; }
  .auth-card { padding: 28px 20px; }
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .trade-table th, .trade-table td { padding: 10px 10px; }
  .mini-chart { display: none; }
  .volume-bar-wrap { display: none; }
}
