:root {
  --bg: #0b0e11;
  --card: #181a20;
  --border: #2b2f36;
  --text: #eaecef;
  --text-dim: #848e9c;
  --accent: #6366f1;
  --buy: #0ecb81;
  --sell: #f6465d;
  --nav-bg: #1e2329;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); padding-bottom: 90px; }
/* Compact Alert (Below Header) */
.compact-alert {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.02) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px; /* Space before main content */
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.alert-icon {
  width: 28px;
  height: 28px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}
.alert-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
  padding-right: 24px;
}
.alert-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}
.alert-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}
.alert-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.2s;
}
.alert-close:hover {
  color: var(--sell);
}

/* Header */
.header { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); position: sticky; top:0; background: var(--bg); z-index: 100; }
/* header-inner is now always 2 flex items: left group + bell */
.header-inner { width: 100%; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 8px; }
/* Left group: brand stacked on top of status */
.header-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand { font-size: 18px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand span { color: var(--accent); }
.status { font-size: 10px; color: var(--buy); display: flex; align-items: center; gap: 5px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; background: var(--buy); border-radius: 50%; box-shadow: 0 0 6px var(--buy); flex-shrink: 0; }

.container { padding: 16px; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Summary Dashboard - Premium Redesign */
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-box { 
  background: linear-gradient(135deg, var(--card) 0%, #1c1f26 100%); 
  border: 1px solid var(--border); border-radius: 20px; 
  padding: 24px; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; height: 100%;
}
.stat-box:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.3); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }

/* Card Decorative Icon */
.stat-box::after {
  content: ''; position: absolute; right: -10px; bottom: -10px; font-size: 80px; opacity: 0.03; 
  font-weight: 800; pointer-events: none; transform: rotate(-10deg);
}
.stat-box.win-rate::after { content: '🎯'; }
.stat-box.sys-signals::after { content: '📡'; }

.stat-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 12px; font-weight: 800; letter-spacing: 1.5px; opacity: 0.7; }
.stat-val { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }

.hero-box { 
  grid-column: span 2; padding: 48px 24px; text-align: center;
  background: linear-gradient(135deg, #1e2329 0%, #0b0e11 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 30px rgba(99, 102, 241, 0.1);
  transition: transform 0.3s ease;
}
.hero-box::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 10s infinite alternate;
}
@keyframes hero-glow {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(10deg) scale(1.1); }
}

.hero-pnl { 
  font-size: 64px; font-weight: 900; margin: 4px 0; letter-spacing: -3px; 
  line-height: 1;
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.hero-box.pos { 
  border-color: rgba(14, 203, 129, 0.6); 
  background: linear-gradient(145deg, rgba(14, 203, 129, 0.1) 0%, #0b0e11 100%); 
}
.hero-box.pos .hero-pnl { color: var(--buy); text-shadow: 0 0 40px rgba(14, 203, 129, 0.4); }

.hero-box.neg { 
  border-color: rgba(246, 70, 93, 0.6); 
  background: linear-gradient(145deg, rgba(246, 70, 93, 0.1) 0%, #0b0e11 100%); 
}
.hero-box.neg .hero-pnl { color: var(--sell); text-shadow: 0 0 40px rgba(246, 70, 93, 0.4); }

.hero-balance-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-top: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Glass Button Style */
.premium-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: white; border: none; padding: 12px 24px; border-radius: 12px;
  font-weight: 700; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.premium-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); filter: brightness(1.1); }
.premium-btn:active { transform: translateY(0); }

/* Signal Card - Simpler, cleaner, scanable */
.signal-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.pair-name { font-size: 14px; font-weight: 600; }
.time-stamp { font-size: 11px; color: var(--text-dim); }

.data-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.data-cell { display: flex; flex-direction: column; gap: 2px; }
.label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.val { font-size: 13px; font-weight: 500; }

/* Price Now */
.price-now-row { display: flex; justify-content: space-between; align-items: center; background: rgba(99, 102, 241, 0.06); border: 1px solid rgba(99, 102, 241, 0.15); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.price-now-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; font-weight: 600; }
.price-now-val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.price-now-pnl { font-size: 11px; font-weight: 600; margin-top: 2px; }
.price-flash-up { animation: flashUp 0.6s ease-out; }
.price-flash-down { animation: flashDown 0.6s ease-out; }
@keyframes flashUp { 0% { background: rgba(14, 203, 129, 0.25); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(246, 70, 93, 0.25); } 100% { background: transparent; } }

.card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.side-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.side-buy { background: rgba(14, 203, 129, 0.15); color: var(--buy); }
.side-sell { background: rgba(246, 70, 93, 0.15); color: var(--sell); }
.status-tag { font-size: 10px; color: var(--text-dim); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; }
.status-hit { background: rgba(99, 102, 241, 0.1); color: var(--accent); border-color: var(--accent); }

/* Target Row Styling */
.target-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.target-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.target-label { font-size: 9px; color: var(--text-dim); font-weight: 600; }
.target-val { font-size: 11px; font-weight: 500; }

.hit-tp { background: rgba(14, 203, 129, 0.15); border-color: rgba(14, 203, 129, 0.3); color: var(--buy); }
.hit-sl { background: rgba(246, 70, 93, 0.15); border-color: rgba(246, 70, 93, 0.3); color: var(--sell); }

/* Markdown AI Output Styles */
.ai-md { font-size:12px; line-height:1.8; color:var(--text); }
.ai-md h1,.ai-md h2,.ai-md h3 { color:var(--accent); font-size:13px; margin:12px 0 6px; font-weight:700; }
.ai-md p { margin: 4px 0 8px; }
.ai-md ul,.ai-md ol { padding-left:18px; margin: 4px 0 8px; }
.ai-md li { margin-bottom:3px; }
.ai-md strong { color:var(--text); }
.ai-md table { width:100%; border-collapse:collapse; font-size:11px; margin:10px 0; }
.ai-md th { background:rgba(99,102,241,0.15); color:var(--accent); padding:6px 8px; text-align:left; font-weight:700; border:1px solid rgba(99,102,241,0.2); }
.ai-md td { padding:5px 8px; border:1px solid var(--border); color:var(--text); }
.ai-md tr:nth-child(even) td { background:rgba(255,255,255,0.02); }
.ai-md code { background:rgba(255,255,255,0.06); padding:1px 5px; border-radius:4px; font-size:10px; }
.ai-md blockquote { border-left:3px solid var(--accent); padding-left:10px; color:var(--text-dim); font-style:italic; margin:6px 0; }

/* Performance Chart Card & Audit Vault */
.performance-card { 
  background: linear-gradient(135deg, rgba(24,26,32,0.8) 0%, rgba(11,14,17,0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2); 
  border-radius: 16px; 
  padding: 16px; 
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 15px rgba(99,102,241,0.1);
}
.performance-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.performance-title { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:1.5px; display:flex; align-items:center; gap:8px; color:var(--text); }
.performance-chart-wrap { position:relative; width:100%; height:220px; transition: height 0.3s; }

/* Audit Vault: Hybrid Top-Box Grid (Single Row Swipe) */
.audit-vault { 
  display: flex; 
  flex-wrap: nowrap; 
  gap: 10px; 
  overflow-x: auto; 
  scrollbar-width: thin; /* Show thin scrollbar */
  scrollbar-color: var(--accent) transparent;
  padding: 4px 0 10px 0; /* Space for scrollbar */
  scroll-snap-type: x mandatory; /* Smooth snapping */
  -webkit-overflow-scrolling: touch;
}
.audit-vault::-webkit-scrollbar { height: 3px; }
.audit-vault::-webkit-scrollbar-track { background: transparent; }
.audit-vault::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.4); border-radius: 10px; }

.audit-mini-card {
  flex: 0 0 auto;
  min-width: 90px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
  scroll-snap-align: start; /* Snap point */
}
.audit-mini-card:hover { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }
.audit-mini-sym { font-size: 10px; font-weight: 800; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.audit-mini-acc { font-size: 9px; font-weight: 700; color: var(--accent); }
.audit-mini-roi { font-size: 8px; font-weight: 600; color: var(--text-dim); }

@media (max-width: 600px) {
  .performance-chart-wrap { height: 160px; }
  .audit-mini-card { min-width: 80px; padding: 6px 8px; }
}

/* Stats table in Insight tab */
.insight-stats-table { width:100%; border-collapse:collapse; font-size:11px; margin-top:8px; }
.insight-stats-table th { background:rgba(99,102,241,0.1); color:var(--accent); padding:6px 8px; text-align:left; font-weight:700; border:1px solid rgba(99,102,241,0.15); }
.insight-stats-table td { padding:5px 8px; border:1px solid var(--border); }
.insight-stats-table tr:nth-child(even) td { background:rgba(255,255,255,0.02); }
.insight-stats-table .pos { color:var(--buy); font-weight:600; }
.insight-stats-table .neg { color:var(--sell); font-weight:600; }
.insight-stats-table .dim { color:var(--text-dim); }

.res-val { font-size: 15px; font-weight: 700; }
.pos { color: var(--buy); text-shadow: 0 0 10px rgba(14, 203, 129, 0.2); }
.neg { color: var(--sell); text-shadow: 0 0 10px rgba(246, 70, 93, 0.2); }

/* Running Stats Panel */
.running-panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.running-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.running-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.running-item { 
  text-align: center; padding: 14px 8px; border-radius: 12px; 
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.running-item:hover { transform: scale(1.05); }
.running-item.profit { background: rgba(14, 203, 129, 0.1); border: 1px solid rgba(14, 203, 129, 0.2); }
.running-item.loss { background: rgba(246, 70, 93, 0.1); border: 1px solid rgba(246, 70, 93, 0.2); }
.running-item.accuracy { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2); }
.running-num { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.running-label { font-size: 8px; color: var(--text-dim); text-transform: uppercase; font-weight: 800; margin-top: 6px; letter-spacing: 0.5px; }
.accuracy-bar { height: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.accuracy-fill { height: 100%; background: linear-gradient(90deg, var(--buy), #34d399); border-radius: 3px; transition: width 0.5s ease; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Mini P&L Cards */
.pnl-cards-title { font-size: 12px; font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.pnl-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pnl-mini { padding: 8px 6px; border-radius: 10px; text-align: center; border: 1px solid var(--border); background: var(--card); transition: all 0.3s; position: relative; }
.pnl-mini.up { border-color: rgba(14, 203, 129, 0.4); background: rgba(14, 203, 129, 0.05); }
.pnl-mini.down { border-color: rgba(246, 70, 93, 0.4); background: rgba(246, 70, 93, 0.05); }
.pnl-mini::before { content: ''; position: absolute; top: 4px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.pnl-mini.up::before { background: var(--buy); box-shadow: 0 0 6px var(--buy); animation: pulse 2s infinite; }
.pnl-mini.down::before { background: var(--sell); box-shadow: 0 0 6px var(--sell); animation: pulse 2s infinite; }

@keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }
.pnl-mini-sym { font-size: 10px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.pnl-mini-val { font-size: 13px; font-weight: 700; margin-top: 2px; }
.pnl-mini-side { font-size: 8px; color: var(--text-dim); text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.pnl-net { text-align: center; margin-top: 8px; padding: 6px; border-radius: 8px; background: rgba(99, 102, 241, 0.06); border: 1px solid rgba(99, 102, 241, 0.15); }
.pnl-net-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; font-weight: 600; }
.pnl-net-val { font-size: 16px; font-weight: 700; }

/* Navigation */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--nav-bg); height: 70px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--border); z-index: 1000; }
@media (max-width: 480px) {
  .hero-pnl { font-size: 40px; }
  .stat-val { font-size: 24px; }
  .running-num { font-size: 22px; }
}
.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-dim); font-size: 10px; text-decoration: none; width: 20%; opacity: 0.7; transition: all 0.2s; }
.nav-btn.active { color: var(--accent); opacity: 1; }
.nav-btn svg { width: 20px; height: 20px; transition: all 0.2s; }
@keyframes heartbeat { 
  0% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255,71,87,0)); } 
  15% { transform: scale(1.4) rotate(-8deg); filter: drop-shadow(0 0 10px rgba(255,71,87,0.9)); } 
  30% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,71,87,0.3)); } 
  45% { transform: scale(1.4) rotate(8deg); filter: drop-shadow(0 0 10px rgba(255,71,87,0.9)); } 
  60% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255,71,87,0)); } 
  100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255,71,87,0)); } 
}
.heart-icon { animation: heartbeat 1.5s infinite ease-in-out; color: #ff4757; fill: rgba(255, 71, 87, 0.4); }

/* Chart Panels */
.panel { 
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; 
  padding: 24px; margin-bottom: 16px; 
  display: flex; flex-direction: column; height: 100%;
}
.panel-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.panel-desc { font-size: 11px; color: var(--text-dim); margin-bottom: 16px; flex: 1; }

/* Segmented Filter Bar */
.filter-bar { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; position:relative; overflow:hidden; }
.filter-bar::before { content: ''; position: absolute; top:0; left:0; width:4px; height:100%; background:var(--accent); }

.filter-search-group { display: flex; gap: 8px; align-items: center; width: 100%; }
.search-wrap { position: relative; flex: 1; }
.filter-search { width: 100%; padding: 10px 14px 10px 38px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 9px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 12px; outline: none; transition: all 0.2s; }
.filter-search:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; opacity: 0.7; }

.filter-toggle-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 9px; color: var(--text-dim); cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.2s; }
.filter-toggle-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.filter-toggle-btn.active { background: rgba(99,102,241,0.1); border-color: var(--accent); color: var(--accent); }

.filter-options-panel { display: none; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); }

.filter-row { display: flex; align-items: center; gap: 10px; }
.filter-label { font-size: 9px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; width: 55px; flex-shrink: 0; letter-spacing: 0.5px; }

.segmented-control { flex: 1; display: flex; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 9px; padding: 2px; gap: 2px; }
.seg-btn { flex: 1; border: none; background: transparent; color: var(--text-dim); padding: 6px 4px; font-size: 10px; font-weight: 600; border-radius: 7px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.seg-btn:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.03); }
.seg-btn.active { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4); }

.filter-reset-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(246, 70, 93, 0.05); border: 1px solid rgba(246, 70, 93, 0.2); border-radius: 9px; color: var(--sell); cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.2s; white-space: nowrap; }
.filter-reset-btn:hover { background: rgba(246, 70, 93, 0.15); color: #fff; border-color: var(--sell); }

/* Live Market Intelligence Styles */
.market-intel-panel { background: rgba(24,26,32,0.8); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; position: relative; }
.sentiment-wrap { margin: 12px 0; }
.sentiment-labels { display: flex; justify-content: space-between; font-size: 9px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.sentiment-bar-bg { height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; display: flex; }
.sent-long { background: var(--buy); height: 100%; transition: width 0.6s ease; }
.sent-short { background: var(--sell); height: 100%; transition: width 0.6s ease; }

.intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.intel-mini-box { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.intel-mini-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.intel-mini-val { font-size: 14px; font-weight: 700; }

.action-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.badge-warn { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-safe { background: rgba(16,185,129,0.15); color: #10b981; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px 0; }
.page-btn { padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; transition: all 0.2s; font-family: 'Outfit', sans-serif; }
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-info { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.signal-count { font-size: 11px; color: var(--text-dim); text-align: center; margin-bottom: 8px; font-weight: 500; }

/* Responsive & Desktop Layout */
.sidebar { display: none; }
.main-wrapper { display: flex; min-height: 100vh; }

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .header { left: 260px; width: calc(100% - 260px); }
  .container { max-width: 100%; margin-left: 260px; padding: 32px; width: calc(100% - 260px); }
  .bottom-nav { display: none; }
  
  .sidebar { 
    display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: 260px; 
    background: var(--nav-bg); border-right: 1px solid var(--border); 
    padding: 24px; flex-direction: column; z-index: 1001; 
  }
  .side-brand { font-size: 22px; font-weight: 700; margin-bottom: 40px; color: var(--text); }
  .side-brand span { color: var(--accent); }
  .side-nav { display: flex; flex-direction: column; gap: 8px; }
  .side-link { 
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; 
    color: var(--text-dim); text-decoration: none; border-radius: 12px; 
    font-weight: 500; transition: all 0.2s; cursor: pointer;
  }
  .side-link:hover { background: rgba(255,255,255,0.03); color: var(--text); }
  .side-link.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
  .side-link svg { width: 20px; height: 20px; }

  /* Multi-column layouts */
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-box { grid-column: span 2; padding: 56px 24px; }
  #signalContainer { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
  
  /* Centered Content in Available Space */
  .container { 
    margin-left: 260px; width: calc(100% - 260px); 
    padding: 24px 20px; 
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    background: rgba(255,255,255,0.01); min-height: 100vh; 
  }
  .header { 
    left: 260px; width: calc(100% - 260px); 
    display: flex; justify-content: center; padding: 16px 40px; 
    background: rgba(8, 10, 12, 0.8); backdrop-filter: blur(10px);
  }
  .header-inner { max-width: 1150px; width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .tab-content { width: 100%; max-width: 1150px; margin: 0; }
  
  /* Support Tab 2-Column Layout */
  .support-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
  .support-cta { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; }
  .donators-panel { background: rgba(255,255,255,0.02); padding: 32px; border-radius: 20px; border: 1px solid var(--border); }
  
  /* Home Tab Vertical Flow */
  #tab-home.active { display: flex; flex-direction: column; gap: 32px; }
  .home-main-col { display: flex; flex-direction: column; gap: 32px; }
  .home-grid-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .running-panel { position: relative; top: 0; padding: 32px; border-radius: 16px; border-color: rgba(99,102,241,0.2); }

  /* Insights Tab Vertical Flow */
  #tab-insights.active { display: flex; flex-direction: column; gap: 32px; }
  #insightStatsTables { padding: 32px; border-radius: 16px; background: rgba(255,255,255,0.02); }
  #aiAnalystCard { padding: 8px; }

  /* Charts & Other Tabs Layout */
  #tab-about .panel { max-width: 100%; margin-left: auto; margin-right: auto; padding: 32px; margin-bottom: 24px; }
}

@media (min-width: 1024px) {
   body { background: #080a0c; }
   .sidebar { background: #111418; }
   .header { background: rgba(8, 10, 12, 0.8); backdrop-filter: blur(10px); }
}

/* ============================================================
   NOTIFICATION SYSTEM
   ============================================================ */

/* Bell button — header */
.notif-bell-btn {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 10px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.notif-bell-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); border-radius: 10px; }
@keyframes ring-bell {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50% { transform: rotate(-18deg); }
  20%, 40% { transform: rotate(18deg); }
  60% { transform: rotate(0); }
}
.notif-bell-ring svg { animation: ring-bell 0.5s ease-in-out; }

/* Badge */
.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--sell);
  color: #fff;
  font-size: 8px; font-weight: 800;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(246,70,93,0.6);
  pointer-events: none;
}
@keyframes badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.badge-pop { animation: badge-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* Overlay backdrop */
.notif-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ── MOBILE: Bottom Sheet ────────────────────────────── */
.notif-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  max-height: 80vh;
  background: #181a20;
  border: 1px solid rgba(99,102,241,0.2);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  z-index: 1600;
  display: flex; flex-direction: column;
  overflow: hidden;
  /* start hidden below screen */
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.notif-panel-open {
  transform: translateY(0) !important;
}

/* Mobile drag handle */
.notif-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
  cursor: pointer;
}
.notif-handle:hover { background: rgba(255,255,255,0.3); }

/* Panel header */
.notif-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-action-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 10px; border-radius: 7px;
  font-size: 10px; font-weight: 700; cursor: pointer;
  transition: all 0.18s;
  font-family: 'Outfit', sans-serif;
}
.notif-action-btn:hover { background: rgba(99,102,241,0.1); color: var(--accent); border-color: rgba(99,102,241,0.4); }
.notif-clear-btn:hover { background: rgba(246,70,93,0.1); color: var(--sell); border-color: rgba(246,70,93,0.4); }
/* X close button */
.notif-close-btn {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  font-family: 'Outfit', sans-serif;
}
.notif-close-btn:hover { background: rgba(246,70,93,0.1); color: var(--sell); border-color: rgba(246,70,93,0.4); }

/* Scrollable list */
.notif-list {
  overflow-y: auto; flex: 1;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  /* Extra padding for mobile home bar */
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Empty state */
.notif-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 20px; text-align: center;
  color: var(--text-dim);
}

/* Notification item */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
  animation: notif-slide-in 0.22s ease-out;
}
@keyframes notif-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item-read { opacity: 0.5; }

/* Type accent borders + tinted bg */
.notif-type-new  { border-left-color: var(--accent); background: rgba(99,102,241,0.06); }
.notif-type-tp   { border-left-color: var(--buy);    background: rgba(14,203,129,0.06); }
.notif-type-tp3  { border-left-color: #fbbf24;       background: rgba(251,191,36,0.06); }
.notif-type-sl   { border-left-color: var(--sell);   background: rgba(246,70,93,0.06); }

/* Icon container — colored rounded square */
.notif-item-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.notif-ic-new { background: rgba(99,102,241,0.15); color: var(--accent); }
.notif-ic-tp  { background: rgba(14,203,129,0.14); color: var(--buy); }
.notif-ic-tp3 { background: rgba(251,191,36,0.14); color: #fbbf24; }
.notif-ic-sl  { background: rgba(246,70,93,0.14);  color: var(--sell); }

.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 12px; font-weight: 700; color: var(--text);
  margin-bottom: 3px;
}
.notif-item-sub {
  font-size: 11px; color: var(--text-dim); line-height: 1.5;
  margin-bottom: 6px;
}
/* Timestamp row */
.notif-item-time {
  display: flex; align-items: center; gap: 6px;
}
.notif-abs-time {
  font-size: 9px; font-weight: 700;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.3px;
}
.notif-rel-time {
  font-size: 9px; color: var(--text-dim); opacity: 0.6;
}

/* Unread dot */
.notif-unread-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 6px rgba(99,102,241,0.7);
  animation: pulse 2s infinite;
}

/* ── DESKTOP: Dropdown anchored to bell ──────────────── */
@media (min-width: 1024px) {
  /* The bell sits inside .header-inner which is positioned relative */
  .header-inner { position: relative; }

  /* Override mobile bottom-sheet to become a dropdown */
  .notif-panel {
    /* Unset mobile positioning */
    bottom: auto; left: auto; right: auto; width: auto;
    /* Anchor: top-right relative to .header-inner */
    position: fixed;
    top: 64px;
    right: 24px;
    width: 380px;
    max-height: 72vh;
    border-radius: 14px;
    border: 1px solid rgba(99,102,241,0.25);
    border-bottom: 1px solid rgba(99,102,241,0.25);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03);
    /* animate dropdown from top */
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .notif-panel-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  /* Hide mobile handle on desktop */
  .notif-handle { display: none; }
}

/* ============================================================
   TOAST POP-UP NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  top: 80px; 
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none; /* Let clicks pass through empty space */
}

.toast-item {
  background: rgba(24, 26, 32, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  pointer-events: auto; /* Clickable */
  min-width: 250px;
  max-width: 320px;
  animation: toast-slide-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  cursor: pointer;
  transition: transform 0.2s;
}

.toast-item:hover {
  background: var(--card);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.toast-item.removing {
  animation: toast-fade-out 0.3s ease forwards;
}

@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(110%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-fade-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(110%); }
}

.toast-type-new { border-left-color: var(--accent); }
.toast-type-tp { border-left-color: var(--buy); }
.toast-type-tp3 { border-left-color: #fbbf24; }
.toast-type-sl { border-left-color: var(--sell); }

.toast-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.toast-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}

.toast-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.toast-sub {
  font-size: 11px; color: var(--text-dim); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  font-size: 14px;
  transition: color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.toast-close-btn:hover {
  color: var(--sell);
}

/* Mobile Toast positioning constraint (Slide down from top center) */
@media (max-width: 768px) {
  .toast-container {
    top: 70px;
    left: 16px; right: 16px;
    align-items: center;
  }
  .toast-item {
    width: 100%; max-width: 400px;
    animation: toast-slide-down 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  .toast-item.removing {
    animation: m-toast-fade-out 0.3s ease forwards;
  }
  @keyframes toast-slide-down {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes m-toast-fade-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-30px) scale(0.9); }
  }
}
/* ============================================================
   AUTO TRADE TAB PREMIUM UI
   ============================================================ */
.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
}

.trading-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 203, 129, 0.08);
  border: 1px solid rgba(14, 203, 129, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  background: var(--buy);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--buy);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(14, 203, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.input-premium-field option {
  background: #181a20;
  color: #eaecef;
}

.input-premium-wrap {
  position: relative;
  margin-bottom: 24px;
}

.input-premium-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.input-premium-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.input-premium-field:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-premium-field::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.hint-text {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 6px;
  display: block;
}

.strategy-card {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.strategy-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.strategy-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Custom Select styling to make it look professional */
select.input-premium-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23848e9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.two-col-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .two-col-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DONOR MARQUEE
   ============================================================ */
.donor-marquee-wrapper {
  flex: 1;
  margin: 0 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
}

.donor-marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  gap: 30px;
}

.donor-marquee-wrapper:hover .donor-marquee-content {
  animation-play-state: paused;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.marquee-item:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 181, 45, 0.4);
}

.marquee-icon {
  margin-right: 8px;
  font-size: 14px;
  filter: drop-shadow(0 0 6px rgba(255, 181, 45, 0.5));
}

.marquee-amount {
  color: #ffb52d;
  font-weight: 800;
  margin-left: 8px;
}

/* Custom Chart Tooltip styles */
#chart-tooltip {
  opacity: 0;
  position: fixed;
  background: rgba(20, 22, 28, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  pointer-events: none;
  transition: all 0.1s ease;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  min-width: 200px;
}
.tooltip-header { font-size: 10px; color: var(--text-dim); margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 6px; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: 0.5px; }
.tooltip-pnl-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tooltip-daily { font-size: 16px; font-weight: 800; }
.tooltip-growth { font-size: 10px; font-weight: 700; color: var(--accent); }
.tooltip-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tooltip-chip { padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 700; display: flex; align-items: center; gap: 4px; border: 1px solid transparent; }
.chip-pos { background: rgba(14, 203, 129, 0.1); color: var(--buy); border-color: rgba(14, 203, 129, 0.2); }
.chip-neg { background: rgba(246, 70, 93, 0.1); color: var(--sell); border-color: rgba(246, 70, 93, 0.2); }



.trading-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 203, 129, 0.08);
  border: 1px solid rgba(14, 203, 129, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  background: var(--buy);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--buy);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(14, 203, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.input-premium-field option {
  background: #181a20;
  color: #eaecef;
}

.input-premium-wrap {
  position: relative;
  margin-bottom: 24px;
}

.input-premium-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.input-premium-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.input-premium-field:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-premium-field::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.hint-text {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 6px;
  display: block;
}

.strategy-card {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.strategy-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.strategy-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Custom Select styling to make it look professional */
select.input-premium-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23848e9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.two-col-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .two-col-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DONOR MARQUEE
   ============================================================ */
.donor-marquee-wrapper {
  flex: 1;
  margin: 0 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
}

.donor-marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  gap: 30px;
}

.donor-marquee-wrapper:hover .donor-marquee-content {
  animation-play-state: paused;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.marquee-item:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 181, 45, 0.4);
}

.marquee-icon {
  margin-right: 8px;
  font-size: 14px;
  filter: drop-shadow(0 0 6px rgba(255, 181, 45, 0.5));
}

.marquee-amount {
  color: #ffb52d;
  font-weight: 800;
  margin-left: 8px;
}

/* Custom Chart Tooltip styles */
#chart-tooltip {
  opacity: 0;
  position: fixed;
  background: rgba(20, 22, 28, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  pointer-events: none;
  transition: all 0.1s ease;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  min-width: 200px;
}
.tooltip-header { font-size: 10px; color: var(--text-dim); margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 6px; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: 0.5px; }
.tooltip-pnl-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tooltip-daily { font-size: 16px; font-weight: 800; }
.tooltip-growth { font-size: 10px; font-weight: 700; color: var(--accent); }
.tooltip-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tooltip-chip { padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 700; display: flex; align-items: center; gap: 4px; border: 1px solid transparent; }

.chip-pos { background: rgba(14, 203, 129, 0.1); color: var(--buy); border-color: rgba(14, 203, 129, 0.2); }
.chip-neg { background: rgba(246, 70, 93, 0.1); color: var(--sell); border-color: rgba(246, 70, 93, 0.2); }

/* ============================================================
   LEGAL MODAL & FOOTER (ISOLATED)
   ============================================================ */
#legalModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#legalModal.active { display: flex; animation: fadeIn 0.3s ease; }

#legalModal .modal-content {
  background: #111418;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

#legalModal .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}
#legalModal .modal-title { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; }

#legalModal .lang-switch {
  display: flex;
  background: rgba(255,255,255,0.05);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}
#legalModal .lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#legalModal .lang-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

#legalModal .modal-body {
  padding: 28px 24px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
}
#legalModal .modal-body h2 { color: var(--text); font-size: 15px; font-weight: 800; margin: 24px 0 12px; }
#legalModal .modal-body h2:first-child { margin-top: 0; }
#legalModal .modal-body p { margin-bottom: 14px; }
#legalModal .modal-body strong { color: var(--text); }

#legalModal .modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.site-footer-v2 {
  width: 100%;
  max-width: 500px;
  margin: 40px auto 100px;
  padding: 30px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.7;
}
.site-footer-v2 .footer-links { margin-top: 12px; display: flex; justify-content: center; gap: 20px; }
.site-footer-v2 .footer-link { color: var(--accent); text-decoration: none; font-weight: 700; cursor: pointer; transition: opacity 0.2s; }
.site-footer-v2 .footer-link:hover { opacity: 0.8; text-decoration: underline; }

@media (max-width: 480px) {
  #legalModal .modal-content { max-height: 92vh; border-radius: 20px; }
}

/* ============================================================
   INFO TOOLTIP ICONS ON FORM LABELS
   ============================================================ */
.input-premium-label { display: flex !important; align-items: center; gap: 5px; }

.info-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(99,102,241,0.15); color: var(--accent);
  font-size: 8px; font-weight: 900; font-style: normal;
  cursor: help; position: relative; flex-shrink: 0;
  text-transform: none; letter-spacing: 0;
  transition: background 0.2s; border: 1px solid rgba(99,102,241,0.25);
}
.info-tip:hover { background: rgba(99,102,241,0.35); }
.info-tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: #1a1c24; border: 1px solid rgba(99,102,241,0.3);
  color: #c8cdd6; font-size: 11px; font-weight: 500; line-height: 1.5;
  padding: 8px 11px; border-radius: 8px; width: 220px;
  text-align: left; pointer-events: none; opacity: 0;
  transition: opacity 0.15s; z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  white-space: normal; letter-spacing: 0; text-transform: none;
}
.info-tip::before {
  content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%;
  transform: translateX(-50%); border: 5px solid transparent;
  border-top-color: rgba(99,102,241,0.3);
  pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 10000;
}
.info-tip:hover::after, .info-tip:hover::before { opacity: 1; }
