/* ===================================================================
   EA EVOLUTION - PRO FLEET DASHBOARD STYLESHEET
   Palet Warna: Royal Midnight Blue & Radiant Metallic Gold
   =================================================================== */

:root {
  /* Blue Palette */
  --bg-deep: #030712;
  --bg-base: #060e20;
  --bg-surface: #0a1733;
  --bg-card: rgba(11, 25, 54, 0.75);
  --bg-card-hover: rgba(16, 36, 77, 0.85);
  --bg-input: #08132b;
  --blue-primary: #1e60ff;
  --blue-accent: #00d2ff;
  --blue-glow: rgba(30, 96, 255, 0.35);
  --blue-border: rgba(30, 96, 255, 0.3);

  /* Gold Palette (Luxury Metallic) */
  --gold-primary: #f0c05a;
  --gold-secondary: #d4a037;
  --gold-bright: #ffe28a;
  --gold-deep: #aa7d20;
  --gold-glow: rgba(240, 192, 90, 0.35);
  --gold-border: rgba(240, 192, 90, 0.3);
  --gold-gradient: linear-gradient(135deg, #f7d070 0%, #d4a037 50%, #aa7d20 100%);
  --gold-text-gradient: linear-gradient(135deg, #fff2cc 0%, #f0c05a 50%, #c69224 100%);

  /* Status Colors */
  --emerald-profit: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  --crimson-loss: #ef4444;
  --crimson-glow: rgba(239, 68, 68, 0.3);
  --amber-warning: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.3);

  /* Typography */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8899b5;
  --font-main: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevations & Glassmorphism */
  --glass-border: 1px solid rgba(240, 192, 90, 0.18);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Ambient Lighting & Grid Background */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-blue-left {
  top: -100px;
  left: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--blue-primary) 0%, transparent 70%);
}

.glow-gold-right {
  top: 15%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-secondary) 0%, transparent 70%);
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(30, 96, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 96, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 24px 60px 24px;
}

/* ===================================================================
   TOP NAVIGATION BAR
   =================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  position: relative;
  box-shadow: 0 0 16px var(--gold-glow);
}

.logo-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 2px solid var(--gold-primary);
  opacity: 0.6;
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.brand-robot {
  -webkit-text-fill-color: var(--gold-bright);
  color: var(--gold-bright);
  font-size: 20px;
  filter: drop-shadow(0 0 6px var(--gold-glow));
  animation: robot-glow 3s ease-in-out infinite;
}

@keyframes robot-glow {
  0%, 100% { filter: drop-shadow(0 0 4px var(--gold-glow)); transform: translateY(0); }
  50% { filter: drop-shadow(0 0 10px var(--gold-glow)); transform: translateY(-1px); }
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.badge-gold {
  background: rgba(240, 192, 90, 0.15);
  color: var(--gold-bright);
  border: 1px solid var(--gold-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.system-status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 19, 43, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.offline {
  background-color: var(--crimson-loss);
  box-shadow: 0 0 8px var(--crimson-loss);
  animation: none;
}

.status-indicator.online {
  background-color: var(--emerald-profit);
  box-shadow: 0 0 10px var(--emerald-profit);
}

.pulse-gold {
  animation: beacon-pulse 2s infinite;
}

@keyframes beacon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.divider {
  color: rgba(255, 255, 255, 0.2);
}

/* Nav Center - Global Controls */
.nav-center-actions {
  display: flex;
  align-items: center;
}

.global-control-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(4, 11, 26, 0.9);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(240, 192, 90, 0.25);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.control-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.data-mode-toggle {
  display: flex;
  background: rgba(4, 11, 26, 0.9);
  border: 1px solid rgba(240, 192, 90, 0.25);
  border-radius: 20px;
  padding: 3px;
  gap: 3px;
}

.mode-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.mode-toggle-btn:hover {
  color: #ffffff;
}

.mode-toggle-btn.active.live-btn {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.mode-toggle-btn.active.demo-btn {
  background: rgba(240, 192, 90, 0.18);
  color: var(--gold-bright);
  border: 1px solid rgba(240, 192, 90, 0.5);
  box-shadow: 0 0 12px var(--gold-glow);
}

.pulse-green {
  color: #10b981;
  animation: pulse-beacon 1.5s infinite;
}

@keyframes pulse-beacon {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Empty State: Waiting for Live MT5 Signal */
.empty-fleet-waiting {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--border-radius);
  border: 1px dashed rgba(240, 192, 90, 0.35);
  background: radial-gradient(circle at center, rgba(30, 96, 255, 0.08) 0%, rgba(6, 14, 32, 0.7) 100%);
  position: relative;
  overflow: hidden;
}

.radar-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(0, 210, 255, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.2);
}

.radar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(240, 192, 90, 0.3);
  animation: rotateRadar 10s linear infinite;
}

@keyframes rotateRadar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-icon {
  font-size: 32px;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.empty-fleet-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.empty-fleet-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.quick-connect-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.q-step {
  background: rgba(4, 9, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
}

.q-step strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  margin-bottom: 6px;
  font-size: 12px;
}

.q-step p {
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.q-step code {
  color: #00d2ff;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.empty-fleet-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===================================================================
   BUTTON STYLES
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #060e20;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 192, 90, 0.5);
  filter: brightness(1.1);
}

.btn-gold-outline {
  background: rgba(240, 192, 90, 0.08);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
}

.btn-gold-outline:hover {
  background: var(--gold-primary);
  color: #060e20;
  box-shadow: 0 0 12px var(--gold-glow);
}

.btn-amber-outline {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--amber-warning);
  color: var(--amber-warning);
}

.btn-amber-outline:hover {
  background: var(--amber-warning);
  color: #060e20;
  box-shadow: 0 0 12px var(--amber-glow);
}

.btn-danger-glow {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid #ef4444;
  box-shadow: 0 0 16px var(--crimson-glow);
  font-weight: 700;
}

.btn-danger-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.6);
  filter: brightness(1.15);
}

.btn-danger-glow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn-outline-gold:hover {
  background: rgba(240, 192, 90, 0.15);
  box-shadow: 0 0 10px var(--gold-glow);
}

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

.btn-outline-blue:hover {
  background: rgba(0, 210, 255, 0.15);
  box-shadow: 0 0 10px var(--blue-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(8, 19, 43, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-glow);
}

.btn-logout-nav:hover {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.15) !important;
}

/* ===================================================================
   SECTION 1: GLOBAL METRICS (KPIs)
   =================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(240, 192, 90, 0.15);
  border-radius: 9px;
  padding: 8px 12px;
  min-height: 94px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.gold-border-hover:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 18px var(--gold-glow);
}

.blue-border-hover:hover {
  border-color: var(--blue-accent);
  box-shadow: 0 6px 18px var(--blue-glow);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.kpi-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.icon-gold {
  background: rgba(240, 192, 90, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(240, 192, 90, 0.3);
}

.icon-blue {
  background: rgba(30, 96, 255, 0.12);
  color: var(--blue-accent);
  border: 1px solid rgba(30, 96, 255, 0.3);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-profit);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.kpi-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.text-gold { color: var(--gold-primary) !important; }
.text-gold-glow {
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(240, 192, 90, 0.35);
}
.text-blue { color: var(--blue-accent) !important; }
.text-emerald { color: var(--emerald-profit) !important; }
.text-crimson { color: var(--crimson-loss) !important; }
.text-muted { color: var(--text-muted) !important; font-size: 9.5px; }

.kpi-body {
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
  line-height: 1.15;
}

.kpi-subtext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  line-height: 1.2;
}

.trend-up {
  color: var(--emerald-profit);
  font-weight: 600;
}

.trend-down {
  color: var(--crimson-loss);
  font-weight: 600;
}

.badge-soft-blue {
  background: rgba(30, 96, 255, 0.15);
  color: var(--blue-accent);
  padding: 1.5px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-family: var(--font-mono);
  line-height: 1.1;
}

.badge-soft-gold {
  background: rgba(240, 192, 90, 0.15);
  color: var(--gold-bright);
  padding: 1.5px 5px;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.1;
}

/* KPI Visuals */
.kpi-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 10px;
}

.spark-bar {
  flex: 1;
  background: var(--gold-gradient);
  border-radius: 1px 1px 0 0;
  opacity: 0.8;
  transition: height 0.5s ease;
}

.equity-progress-wrap, .mini-progress-track, .pnl-mini-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.equity-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.mini-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.pnl-mini-fill {
  height: 100%;
  background: var(--emerald-profit);
  box-shadow: 0 0 6px var(--emerald-glow);
  border-radius: 2px;
  transition: background 0.3s ease, width 0.3s ease;
}

.lot-ratio-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}

.ratio-buy {
  background: var(--emerald-profit);
  height: 100%;
  transition: width 0.4s ease;
}

.ratio-sell {
  background: var(--crimson-loss);
  height: 100%;
  transition: width 0.4s ease;
}

.text-buy { color: var(--emerald-profit); font-weight: 700; }
.text-sell { color: var(--crimson-loss); font-weight: 700; }

.fleet-status-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 7px;
}

.fleet-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background-color: var(--emerald-profit);
  box-shadow: 0 0 4px var(--emerald-profit);
}

.fleet-dot.paused {
  background-color: var(--amber-warning);
  box-shadow: 0 0 4px var(--amber-warning);
}

.fleet-dot.offline {
  background-color: #64748b;
  box-shadow: none;
}

.fleet-dot.stopped {
  background-color: var(--crimson-loss);
  box-shadow: 0 0 4px var(--crimson-loss);
}

.kpi-tag-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.pnl-glow-badge {
  position: static;
  line-height: 1.1;
  letter-spacing: 0.4px;
  font-size: 8px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-profit);
  border: 1px solid var(--emerald-profit);
}

.pnl-glow-badge.negative {
  background: rgba(239, 68, 68, 0.15);
  color: var(--crimson-loss);
  border-color: var(--crimson-loss);
}

/* ===================================================================
   MAIN TABS BAR
   =================================================================== */
.main-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  padding: 6px 12px;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.tab-items {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: rgba(240, 192, 90, 0.08);
  color: var(--gold-bright);
}

.tab-btn.active {
  background: var(--gold-gradient);
  color: #060e20;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
}

.tab-btn.active .tab-badge {
  background: #060e20;
  color: var(--gold-primary);
}

.tab-badge-gold {
  background: rgba(240, 192, 90, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
}

.tab-btn.active .tab-badge-gold {
  background: #060e20;
  color: var(--gold-bright);
  border-color: #060e20;
}

/* Terminal Ticker */
.terminal-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(4, 9, 20, 0.7);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-family: var(--font-mono);
  max-width: 500px;
  overflow: hidden;
}

.ticker-badge {
  color: var(--gold-primary);
  font-weight: 700;
  white-space: nowrap;
}

.ticker-content {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tab Content Visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ===================================================================
   TAB 1: FLEET MONITOR
   =================================================================== */
.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  min-width: 300px;
}

.search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.search-input-wrap input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: var(--bg-surface);
  border: 1px solid rgba(240, 192, 90, 0.2);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input-wrap input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.filter-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.filter-select-wrap select {
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(240, 192, 90, 0.2);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.view-toggle-group {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.view-btn.active {
  background: var(--gold-primary);
  color: #060e20;
}

/* Fleet Cards Grid */
.fleet-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.fleet-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(240, 192, 90, 0.22);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--glass-shadow);
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fleet-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px var(--gold-glow);
}

.fleet-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.fleet-card-account-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fleet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e60ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  border: 1px solid var(--blue-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.account-tag-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.account-number-broker {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
  line-height: 1.25;
}

.account-ea-status-wrap {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

.status-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ea-status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

.ea-status-pill.running {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-profit);
  border: 1px solid var(--emerald-profit);
}

/* --- LOT STEPPER & INLINE EDIT IN FLEET MONITOR --- */
.lot-stepper-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 2px 4px;
  gap: 3px;
  transition: all 0.2s ease;
}

.lot-stepper-wrap:hover,
.lot-stepper-wrap:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.btn-lot-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  padding: 0;
}

.btn-lot-step:hover {
  background: var(--gold-primary);
  color: #0b0f19;
  border-color: var(--gold-primary);
  transform: scale(1.08);
}

.input-lot-sm {
  width: 58px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  outline: none;
  padding: 0 2px;
  -moz-appearance: textfield;
}

.input-lot-sm::-webkit-outer-spin-button,
.input-lot-sm::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-lot-save {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--emerald-profit);
  color: var(--emerald-profit);
  font-size: 11px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-lot-save:hover {
  background: var(--emerald-profit);
  color: #ffffff;
  transform: scale(1.08);
}

.card-lot-set-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lot-set-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ea-status-pill.paused {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-warning);
  border: 1px solid var(--amber-warning);
}

.ea-status-pill.offline {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border: 1px solid #64748b;
}

.conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.conn-badge i {
  font-size: 6px;
}

.conn-badge.online {
  color: var(--emerald-profit);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.conn-badge.online i {
  animation: conn-blink 1.6s ease-in-out infinite;
}

.conn-badge.offline {
  color: var(--crimson-loss);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

@keyframes conn-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

td .conn-badge {
  margin-right: 6px;
}

.ea-status-pill.stopped {
  background: rgba(239, 68, 68, 0.15);
  color: var(--crimson-loss);
  border: 1px solid var(--crimson-loss);
}

.mode-tag {
  font-size: 10px;
  background: rgba(240, 192, 90, 0.12);
  color: var(--gold-bright);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(240, 192, 90, 0.25);
}

/* Connection Status Badge (ON / OFF) */
.conn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: uppercase;
}

.conn-status-badge.status-on {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.conn-status-badge.status-on i {
  color: #34d399;
  animation: conn-blink 1.4s ease-in-out infinite;
}

.conn-status-badge.status-off {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.conn-status-badge.status-off i {
  color: #f87171;
}

/* Fleet Card OP Breakdown Row (BUY / SELL per Akun) */
.fleet-card-op-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.card-op-box {
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-op-box.op-buy-box {
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 14, 32, 0.6) 100%);
}

.card-op-box.op-buy-box:hover {
  border-color: rgba(16, 185, 129, 0.7);
  transform: translateY(-1px);
}

.card-op-box.op-sell-box {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(6, 14, 32, 0.6) 100%);
}

.card-op-box.op-sell-box:hover {
  border-color: rgba(239, 68, 68, 0.7);
  transform: translateY(-1px);
}

.op-box-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.op-buy-box .op-box-title { color: var(--emerald-profit); }
.op-sell-box .op-box-title { color: var(--crimson-loss); }

.op-box-data {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
}

.op-num {
  font-size: 15px;
  font-weight: 800;
}

.op-vol {
  font-size: 11px;
  color: var(--text-muted);
}

/* Global OP Summary Chips on Dashboard KPI 5 */
.kpi-op-headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3px;
}

.kpi-op-total-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-family: var(--font-mono);
  line-height: 1.1;
}

.global-op-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 3px;
}

.global-op-chip {
  padding: 2px 5px;
  border-radius: 4px;
  min-height: 19px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  line-height: 1.1;
}

.global-op-chip.chip-buy {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.global-op-chip.chip-sell {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.chip-top {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.chip-buy .chip-title { color: var(--emerald-profit); }
.chip-sell .chip-title { color: var(--crimson-loss); }

.chip-body {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.chip-count {
  font-size: 10.5px;
  font-weight: 800;
}

.chip-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.chip-lots {
  font-size: 8px;
  color: var(--text-muted);
  margin-left: 1px;
}

/* Fleet Toolbar Quick Summary Strip */
.fleet-quick-summary-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(10, 20, 42, 0.7);
  border: 1px solid rgba(240, 192, 90, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  font-size: 12px;
}

.fleet-sum-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.fleet-sum-item strong {
  color: #ffffff;
}

.fleet-sum-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

/* Table OP Badges */
.op-table-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.op-badges-flex {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-op-buy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
  font-size: 11px;
  font-family: var(--font-mono);
}

.badge-op-sell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 700;
  font-size: 11px;
  font-family: var(--font-mono);
}

.op-lot-muted {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 400;
}

.op-total-subtext {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-soft-emerald {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.1;
}

.badge-soft-crimson {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.1;
}

/* Fleet Card Financial Stats */
.fleet-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.metric-box {
  background: rgba(6, 14, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-val {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.fleet-card-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

/* Per-Account Fleet Actions */
.fleet-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-card-action {
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
  border: none;
}

.btn-start-acc {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-profit);
  border: 1px solid var(--emerald-profit);
}

.btn-start-acc:hover {
  background: var(--emerald-profit);
  color: #060e20;
  box-shadow: 0 0 12px var(--emerald-glow);
}

.btn-stop-acc {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-warning);
  border: 1px solid var(--amber-warning);
}

.btn-stop-acc:hover {
  background: var(--amber-warning);
  color: #060e20;
  box-shadow: 0 0 12px var(--amber-glow);
}

.btn-close-acc {
  background: rgba(239, 68, 68, 0.15);
  color: var(--crimson-loss);
  border: 1px solid var(--crimson-loss);
}

.btn-close-acc:hover {
  background: var(--crimson-loss);
  color: #ffffff;
  box-shadow: 0 0 12px var(--crimson-glow);
}

.btn-param-acc {
  background: rgba(240, 192, 90, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(240, 192, 90, 0.5);
}

.btn-param-acc:hover {
  background: var(--gold-primary);
  color: #060e20;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Tombol & Aksi Hapus Akun Terputus (Offline) */
.btn-delete-acc {
  background: rgba(239, 68, 68, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(239, 68, 68, 0.45);
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 8px 10px;
}

.btn-delete-acc:hover {
  background: var(--crimson-loss);
  color: #ffffff;
  border-color: var(--crimson-loss);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
}

.fleet-card.is-offline {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(145deg, rgba(14, 18, 32, 0.8) 0%, rgba(35, 12, 18, 0.4) 100%);
}

.fleet-card.is-offline:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
}

.btn-card-icon-delete {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 11px;
}

.btn-card-icon-delete:hover {
  background: var(--crimson-loss);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  transform: scale(1.05);
}

.btn-delete-acc-table {
  background: rgba(239, 68, 68, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-delete-acc-table:hover {
  background: var(--crimson-loss);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.btn-clean-offline-strip {
  background: rgba(239, 68, 68, 0.18);
  color: #ff6b6b;
  border: 1px dashed rgba(239, 68, 68, 0.55);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  transition: var(--transition-smooth);
}

.btn-clean-offline-strip:hover {
  background: var(--crimson-loss);
  color: #ffffff;
  border-style: solid;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* Fleet Table View */
.fleet-table-container {
  width: 100%;
  overflow-x: auto;
}

.fleet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.fleet-table th {
  padding: 12px 16px;
  background: rgba(6, 14, 32, 0.8);
  color: var(--gold-primary);
  font-weight: 700;
  border-bottom: 1px solid rgba(240, 192, 90, 0.2);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.fleet-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.fleet-table tr:hover td {
  background: rgba(240, 192, 90, 0.04);
  color: #ffffff;
}

.text-right { text-align: right !important; }
.hidden { display: none !important; }

/* ===================================================================
   TAB 2: PARAMETER STUDIO (SET PARAMETER DI WEB)
   =================================================================== */
.param-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border: 1px solid var(--gold-border);
  gap: 24px;
  flex-wrap: wrap;
}

.param-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.param-title h2 {
  font-size: 20px;
  font-weight: 800;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.param-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 650px;
}

.param-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.preset-selector-wrap, .target-account-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preset-selector-wrap label, .target-account-wrap label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-select-gold {
  background: var(--bg-surface);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.form-select-blue {
  background: var(--bg-surface);
  border: 1px solid var(--blue-accent);
  color: var(--blue-accent);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.param-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Parameter Filter Bar */
.param-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.param-search-input {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.param-search-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.param-search-input input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: var(--bg-surface);
  border: 1px solid rgba(240, 192, 90, 0.2);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

.param-group-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-btn {
  background: rgba(8, 19, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pill-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

.pill-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #060e20;
  font-weight: 700;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Parameter Sections Form */
.param-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.param-card {
  border-radius: var(--border-radius);
  border: 1px solid rgba(240, 192, 90, 0.2);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.param-card:hover {
  border-color: rgba(240, 192, 90, 0.4);
}

.param-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(8, 19, 43, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.card-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 14px;
}

.card-header-icon.gold {
  background: rgba(240, 192, 90, 0.15);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
}

.card-header-icon.blue {
  background: rgba(30, 96, 255, 0.15);
  color: var(--blue-accent);
  border: 1px solid var(--blue-accent);
}

.card-header-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--crimson-loss);
  border: 1px solid var(--crimson-loss);
}

.card-header-titles {
  flex: 1;
}

.card-header-titles h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.card-header-titles span {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-toggle-card {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.param-card-body {
  padding: 20px;
  background: rgba(11, 25, 54, 0.5);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.input-with-hint {
  position: relative;
  display: flex;
  align-items: center;
}

.input-unit {
  position: absolute;
  right: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  pointer-events: none;
}

.form-hint {
  font-size: 10px;
  color: var(--text-muted);
}

/* Subgroup Box */
.subgroup-box {
  background: rgba(6, 14, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
}

.subgroup-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group-dual {
  display: flex;
  gap: 8px;
}

.mt-3 {
  margin-top: 16px !important;
}

/* Toggle Switch */
.toggle-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.toggle-checkbox {
  display: none;
}

.toggle-label {
  width: 42px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toggle-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.toggle-checkbox:checked + .toggle-label {
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

.toggle-checkbox:checked + .toggle-label::after {
  transform: translateX(20px);
  background: #060e20;
}

.toggle-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===================================================================
   TAB 3: ANALYTICS & CHARTS
   =================================================================== */
.analytics-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 20px;
}

.chart-main-card {
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--gold-border);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.chart-timeframe-selector {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: 6px;
}

.btn-timeframe {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-timeframe.active {
  background: var(--gold-primary);
  color: #060e20;
}

.chart-canvas-wrapper {
  position: relative;
  height: 400px;
  width: 100%;
}

.analytics-side-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-card {
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(240, 192, 90, 0.2);
}

.card-title-sm {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doughnut-canvas-wrap {
  position: relative;
  height: 180px;
  margin-bottom: 14px;
}

.strategy-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.risk-meter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.risk-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.risk-score {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.risk-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.risk-stats-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.risk-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

/* ===================================================================
   TAB 4: ORDERS & POSITIONS
   =================================================================== */
.orders-panel {
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--gold-border);
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.orders-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.orders-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-filter-row input {
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  width: 250px;
}

.orders-table-wrapper {
  overflow-x: auto;
}

/* ===================================================================
   TAB 5: BRIDGE INTEGRATION
   =================================================================== */
.bridge-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.bridge-card {
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--gold-border);
}

.card-header-bridge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.card-header-bridge i {
  font-size: 28px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-item {
  display: flex;
  gap: 14px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #060e20;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content strong {
  color: var(--gold-bright);
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 8px 0;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #02050e;
  border: 1px solid rgba(240, 192, 90, 0.3);
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-primary);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.copy-btn:hover {
  color: var(--gold-bright);
}

.api-endpoints-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-endpoint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 14, 32, 0.7);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.http-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.http-badge.post {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-profit);
}

.http-badge.get {
  background: rgba(30, 96, 255, 0.2);
  color: var(--blue-accent);
}

/* ===================================================================
   MODALS
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--border-radius);
  max-width: 580px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
  from { transform: translateY(20px) scale(0.97); }
  to { transform: translateY(0) scale(1); }
}

.modal-danger {
  border-color: #ef4444;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.danger-icon-large {
  font-size: 28px;
  color: #ef4444;
  margin-right: 14px;
}

.modal-icon-gold {
  font-size: 24px;
  color: var(--gold-primary);
  margin-right: 14px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
}

.alert-warning-text {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.6;
}

.summary-stats-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.stat-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-pair:last-child {
  margin-bottom: 0;
}

.safety-confirm-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.safety-confirm-wrap label {
  font-size: 12px;
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glass Panel Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  box-shadow: var(--glass-shadow);
}

/* ===================================================================
   TOAST NOTIFICATIONS
   =================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--gold-glow);
  padding: 12px 18px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
  max-width: 380px;
}

.toast.danger {
  border-color: #ef4444;
  box-shadow: 0 0 15px var(--crimson-glow);
}

.toast.success {
  border-color: #10b981;
  box-shadow: 0 0 15px var(--emerald-glow);
}

@keyframes toastIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(50px); opacity: 0; }
}

/* Dropdown Menu */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  min-width: 240px;
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 6px 0;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background: rgba(240, 192, 90, 0.12);
  color: var(--gold-bright);
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* ===================================================================
   RESPONSIVE QUERIES
   =================================================================== */
@media (max-width: 1440px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .analytics-layout {
    grid-template-columns: 1fr;
  }
  .form-row-4 {
    grid-template-columns: 1fr 1fr;
  }
  .bridge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .top-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-center-actions {
    justify-content: center;
  }
  .form-row-3, .form-row-2 {
    grid-template-columns: 1fr;
  }
  .fleet-cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .global-control-pill {
    flex-direction: column;
    width: 100%;
  }
}

/* --- INFO PARAMETER (Lot / Add Lot / Pengali) DI FLEET MONITOR --- */
.param-info-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.param-info-label {
  width: 52px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  flex-shrink: 0;
}

.param-info-stack .input-lot-sm {
  width: 48px;
  font-size: 12px;
}

.param-info-stack .btn-lot-step,
.param-info-stack .btn-lot-save {
  width: 22px;
  height: 22px;
}