/* ==========================================================================
   CryptoInvestor Hub - Design System & Modern Trading Styles
   ========================================================================== */

:root {
  --bg-darkest: #070a0f;
  --bg-main: #0c111a;
  --bg-card: #121927;
  --bg-card-hover: #172134;
  --bg-elevated: #1e2a42;
  --bg-input: #0a0e16;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(240, 185, 11, 0.3);
  
  --primary-gold: #f0b90b;
  --primary-gold-hover: #ffd036;
  --primary-gold-glow: rgba(240, 185, 11, 0.2);
  
  --green-gain: #0ecb81;
  --green-gain-bg: rgba(14, 203, 129, 0.12);
  --green-gain-border: rgba(14, 203, 129, 0.3);
  
  --red-loss: #f6465d;
  --red-loss-bg: rgba(246, 70, 93, 0.12);
  --red-loss-border: rgba(246, 70, 93, 0.3);
  
  --blue-accent: #2e82ff;
  --blue-accent-bg: rgba(46, 130, 255, 0.12);
  
  --text-main: #f0f4fa;
  --text-secondary: #9aa7bc;
  --text-muted: #64748b;
  
  --font-arabic: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-numeric: 'Outfit', 'Inter', monospace, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px rgba(240, 185, 11, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-arabic);
  background: radial-gradient(circle at 50% 0%, #151e33 0%, var(--bg-darkest) 70%);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* Space for mobile nav */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 30px;
  }
}

.num {
  font-family: var(--font-numeric);
  direction: ltr;
  display: inline-block;
  font-weight: 600;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(14, 203, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
}

/* Header & Ticker Bar */
.top-ticker-bar {
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 20px;
  scrollbar-width: none;
}
.top-ticker-bar::-webkit-scrollbar { display: none; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-gain);
  animation: livePulse 2s infinite;
}

/* Main App Container */
.app-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px 20px;
}

/* Header Navbar */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(18, 25, 39, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0b90b, #d99a00);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px var(--primary-gold-glow);
}

.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.brand-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary-gold-glow);
  color: var(--primary-gold);
  border: 1px solid var(--border-active);
  font-weight: 600;
}

.brand-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.header-quick-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-chip {
  text-align: right;
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.stat-chip-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.stat-chip-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-gold);
}

/* Nav Tabs (Desktop) */
.nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(14, 20, 32, 0.6);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab-btn.active {
  color: #000;
  background: var(--primary-gold);
  box-shadow: 0 4px 12px var(--primary-gold-glow);
}

.nav-tab-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile Bottom Navigation */
.mobile-nav-bar {
  display: none;
}

@media (max-width: 991px) {
  .nav-tabs {
    display: none;
  }
  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 22, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    padding: 8px 12px;
    z-index: 1000;
    justify-content: space-around;
  }
  .mobile-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-arabic);
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex: 1;
  }
  .mobile-nav-item.active {
    color: var(--primary-gold);
    font-weight: 700;
  }
  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
  }
}

/* Tab Views */
.tab-view {
  display: none;
  animation: slideUp 0.3s ease-out;
}

.tab-view.active {
  display: block;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 992px) {
  .grid-2 {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Glass Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.card-title svg {
  color: var(--primary-gold);
}

/* Portfolio Hero Overview */
.portfolio-hero {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(18, 25, 39, 0.95) 60%);
  border: 1px solid var(--border-active);
  padding: 24px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .portfolio-hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hero-balance-block h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.hero-balance-val {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-balance-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.badge-profit {
  background: var(--green-gain-bg);
  color: var(--green-gain);
  border: 1px solid var(--green-gain-border);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-loss {
  background: var(--red-loss-bg);
  color: var(--red-loss);
  border: 1px solid var(--red-loss-border);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gold);
  color: #000;
}
.btn-primary:hover {
  background: var(--primary-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--primary-gold-glow);
}

.btn-success {
  background: var(--green-gain);
  color: #071710;
}
.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Coin Asset Row */
.asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.asset-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(240, 185, 11, 0.2);
}

.asset-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.icon-xrp { background: #23292f; color: #fff; border: 1px solid #444; }
.icon-ada { background: #0033ad; color: #fff; }
.icon-bnb { background: #f3ba2f; color: #000; }
.icon-xtz { background: #2c7df7; color: #fff; }
.icon-shib { background: #ffa409; color: #000; }
.icon-near { background: #000; color: #fff; border: 1px solid #555; }
.icon-sol { background: #9945ff; color: #fff; }
.icon-btc { background: #f7931a; color: #fff; }

.asset-name-col strong {
  display: block;
  font-size: 0.98rem;
}
.asset-name-col span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.asset-val-col {
  text-align: left;
}
.asset-val-col .val {
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
}
.asset-val-col .pnl {
  font-size: 0.78rem;
  display: block;
}

.asset-recommendation-badge {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Strategic Rescue Plan Steps */
.action-step-card {
  background: var(--bg-card);
  border-left: 4px solid var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}
.action-step-card.success-border {
  border-left-color: var(--green-gain);
}
.action-step-card.blue-border {
  border-left-color: var(--blue-accent);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.step-num {
  font-size: 0.8rem;
  background: rgba(240, 185, 11, 0.15);
  color: var(--primary-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.step-title {
  font-size: 1rem;
  font-weight: 700;
}
.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Signal / Trade Cards */
.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}
.signal-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.signal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.signal-coin-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.signal-type-tag {
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}
.tag-spot-buy {
  background: var(--green-gain-bg);
  color: var(--green-gain);
  border: 1px solid var(--green-gain-border);
}

.signal-price-table {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.price-item {
  text-align: right;
}
.price-item.full-width {
  grid-column: span 2;
}
.price-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: block;
}
.price-val {
  font-size: 0.95rem;
  font-weight: 700;
}
.price-val.entry { color: #fff; }
.price-val.target { color: var(--green-gain); }
.price-val.stop { color: var(--red-loss); }

.signal-rationale {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--blue-accent);
}

/* Binance Execution Helper Box */
.binance-guide-trigger {
  width: 100%;
  background: linear-gradient(90deg, #f0b90b 0%, #e0a700 100%);
  color: #0b0e14;
  font-weight: 800;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.binance-guide-trigger:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px var(--primary-gold-glow);
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: slideUp 0.25s ease-out;
}
.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
}

/* Binance Mobile UI Simulator (Visual replica of user's screenshots) */
.binance-mockup-screen {
  background: #181a20;
  border: 1px solid #2b313a;
  border-radius: var(--radius-lg);
  padding: 16px;
  color: #eaecef;
  font-size: 0.88rem;
  margin-top: 14px;
}

.mockup-top-tabs {
  display: flex;
  border-bottom: 1px solid #2b313a;
  margin-bottom: 14px;
}
.mockup-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-weight: 700;
  cursor: pointer;
}
.mockup-tab.buy {
  color: #0ecb81;
  border-bottom: 2px solid #0ecb81;
}
.mockup-tab.sell {
  color: #f6465d;
}

.mockup-field {
  background: #2b313a;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mockup-field.highlight {
  border: 2px solid #f0b90b;
  background: rgba(240, 185, 11, 0.1);
}
.mockup-field-label {
  color: #848e9c;
  font-size: 0.8rem;
}
.mockup-field-val {
  font-weight: 700;
  font-family: var(--font-numeric);
}

.mockup-execute-btn {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  margin-top: 14px;
  font-size: 1rem;
}
.mockup-execute-btn.buy {
  background: #0ecb81;
  color: #fff;
}
.mockup-execute-btn.sell {
  background: #f6465d;
  color: #fff;
}

/* Calculator & Form Controls */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-numeric);
  font-size: 1rem;
  transition: var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px var(--primary-gold-glow);
}

.calc-result-box {
  background: rgba(240, 185, 11, 0.05);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
}

/* FAQ & Knowledge Cards */
.faq-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  color: var(--text-main);
  padding: 14px 18px;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}
.faq-answer {
  display: none;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
}
.faq-accordion.open .faq-answer {
  display: block;
}

/* Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-gain);
  color: #000;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: none;
  z-index: 3000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Pro Trading Terminal Styles & Risk Management UI
   ========================================================================== */
.badge-warn {
  background: rgba(240, 185, 11, 0.15);
  color: var(--primary-gold);
  border: 1px solid rgba(240, 185, 11, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.pnl-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}
.pnl-pill.positive {
  background: rgba(14, 203, 129, 0.15);
  border: 1px solid var(--green-gain-border);
  color: var(--green-gain);
}
.pnl-pill.negative {
  background: rgba(246, 70, 93, 0.15);
  border: 1px solid var(--red-loss-border);
  color: var(--red-loss);
}

/* Target Progress Visualizer Track */
.trade-progress-wrapper {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
}
.trade-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  position: relative;
  margin: 8px 0;
  overflow: hidden;
}
.trade-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-gain) 0%, var(--primary-gold) 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.trade-progress-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Trade Event Timeline */
.timeline-list {
  position: relative;
  padding-right: 24px;
  margin-top: 12px;
}
.timeline-list::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.timeline-item {
  position: relative;
  margin-bottom: 16px;
}
.timeline-dot {
  position: absolute;
  right: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-gold);
  border: 2px solid #121927;
}
.timeline-dot.profit { background: var(--green-gain); }
.timeline-dot.loss { background: var(--red-loss); }
.timeline-dot.warn { background: var(--primary-gold); }

/* Quick Action Pill Buttons */
.btn-action-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-action-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}
.btn-action-oco {
  background: rgba(240, 185, 11, 0.15);
  border-color: rgba(240, 185, 11, 0.4);
  color: var(--primary-gold);
}
.btn-action-be {
  background: rgba(46, 130, 255, 0.15);
  border-color: rgba(46, 130, 255, 0.4);
  color: #2e82ff;
}
.btn-action-partial {
  background: rgba(14, 203, 129, 0.15);
  border-color: var(--green-gain-border);
  color: var(--green-gain);
}
.btn-action-close {
  background: rgba(246, 70, 93, 0.15);
  border-color: var(--red-loss-border);
  color: var(--red-loss);
}

