/* GENERAL VARIABLES & THEME */
:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 23, 36, 0.75);
  --bg-border: rgba(30, 41, 59, 0.8);
  --neon-green: #10b981;
  --neon-green-glow: rgba(16, 185, 129, 0.3);
  --neon-gold: #f59e0b;
  --neon-gold-glow: rgba(245, 158, 11, 0.3);
  --neon-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none; /* Disable copy/text selection */
  -webkit-touch-callout: none;
}

body.dark-theme {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.08) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(11, 17, 28, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-glow {
  font-size: 26px;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px var(--neon-green-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.gold-text {
  color: var(--neon-gold);
}

.brand-text .subtitle {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 36, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.vip-badge {
  background: linear-gradient(90deg, var(--neon-gold), #d97706);
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
}

/* WORKSPACE WRAPPER WITH LEFT SIDEBAR */
.workspace-wrapper {
  max-width: 1450px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}

.left-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 100px);
  position: sticky;
  top: 80px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--neon-gold);
  letter-spacing: 1px;
}

.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--bg-border);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.25s ease;
}

.search-box input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.sidebar-pair-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: calc(100vh - 230px);
  padding-right: 6px;
}

.sidebar-pair-list::-webkit-scrollbar {
  width: 5px;
}
.sidebar-pair-list::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 5px;
}
.sidebar-pair-list::-webkit-scrollbar-thumb:hover {
  background: var(--neon-green);
}

.pair-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pair-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateX(4px);
}

.pair-btn.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(15, 23, 36, 0.95));
  border-left: 4px solid var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
}

.pair-btn .name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.pair-btn .payout {
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.right-main-workspace {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* MOBILE RESPONSIVE SIDEBAR */
@media (max-width: 950px) {
  .workspace-wrapper {
    grid-template-columns: 1fr;
  }
  .left-sidebar {
    max-height: 380px;
    position: relative;
    top: 0;
  }
  .sidebar-pair-list {
    max-height: 250px;
  }
}

/* SIGNAL CARD */
.signal-card {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease;
}

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

.pair-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pair-info h2 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.payout-pill {
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

/* STRATEGY BADGE (Hinesh's Active Rule v2, v7, v8) */
.badge {
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.v8-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #000;
  border: 1px solid #34d399;
  box-shadow: 0 0 20px var(--neon-green-glow);
}

.v7-badge {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border: 1px solid #a78bfa;
}

.v2-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  border: 1px solid #60a5fa;
}

/* 1-CLICK STRATEGY SWITCHER STYLES */
.strategy-switcher {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.switcher-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.switcher-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.strat-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
}
.strat-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}
.strat-btn.active {
  background: linear-gradient(135deg, var(--neon-green), #059669);
  color: #000;
  border-color: #34d399;
  box-shadow: 0 0 15px var(--neon-green-glow);
  font-weight: 900;
}

/* SIGNAL BODY */
.signal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signal-direction {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.arrow-icon {
  font-size: 48px;
}

.direction-text {
  display: flex;
  flex-direction: column;
}

.call-put {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
}

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

.price-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: rgba(15, 23, 36, 0.6);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.price-item .label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.price-item .value {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.font-mono {
  font-family: var(--font-mono);
}

.target-gold { color: var(--neon-gold) !important; }
.confidence-green { color: var(--neon-green) !important; }

/* TIMER BAR */
.timer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timer-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.timer-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-gold));
  transition: width 1s linear;
}

.timer-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.status-live { color: var(--neon-green); }

/* CARD FOOTER BUTTONS */
.card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 8px;
}

.action-btn {
  padding: 14px;
  border-radius: 14px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.win-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #000;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.win-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.loss-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.loss-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* LEDGER TABLE */
.ledger-section {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.table-container {
  overflow-x: auto;
}

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

.ledger-table th {
  padding: 14px;
  color: var(--text-secondary);
  font-weight: 800;
  border-bottom: 1px solid var(--bg-border);
  letter-spacing: 0.5px;
}

.ledger-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

.status-active {
  color: var(--neon-green);
  font-size: 11px;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.win-rate-high {
  color: var(--neon-gold);
  font-weight: 800;
}

.profit-green {
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 800;
}

/* FOOTER */
.footer-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 20px 0;
  border-top: 1px solid var(--bg-border);
  line-height: 1.6;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .price-box { grid-template-columns: 1fr; }
  .card-footer { grid-template-columns: 1fr; }
  .navbar { flex-direction: column; gap: 12px; }
}

/* COMPLIANCE MODAL SHIELD */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(16px);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-box {
  background: linear-gradient(135deg, rgba(15, 23, 36, 0.95), rgba(11, 17, 28, 0.98));
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.2), 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-icon { font-size: 48px; filter: drop-shadow(0 0 10px var(--neon-green-glow)); }
.modal-box h3 { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 1px; }
.modal-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.modal-list { text-align: left; font-size: 12px; color: #cbd5e1; list-style: none; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,0.4); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.modal-btn { margin-top: 8px; width: 100%; font-size: 14px; padding: 16px; }

