/* Minimalist Split-Screen Authentication Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-canvas: #0b0f19;
  --card-bg: #0b0f19;
  
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-light: #64748b;
  
  --brand-blue: #38bdf8;
  --brand-blue-hover: #0284c7;
  --link-blue: #38bdf8;
  
  --border-color: rgba(255, 255, 255, 0.12);
  --input-focus: #38bdf8;
  
  --radius-card: 28px;
  --radius-btn: 16px;
  --radius-input: 16px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  height: auto;
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
  overflow-y: visible;
}

section[id],
div[id] {
  scroll-margin-top: 95px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #0b0f19;
  color: #ffffff;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

/* Page Outer Wrapper - Full Screen */
.page-container {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-width: 100%;
  background: #0b0f19;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

/* Left Form Column */
.form-section {
  padding: 1.5rem 2.5rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-y: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.06) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
              #0b0f19;
}

.form-wrapper {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

/* Page Header Title */
.auth-header {
  margin-bottom: 1.25rem;
}

.auth-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: #9ca3af;
  font-weight: 400;
}

/* Forms & View Switching */
.auth-views-container {
  position: relative;
}

.auth-view {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-view.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Form Groups & Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.input-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f3f4f6;
}

.input-field {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.input-field::placeholder {
  color: #64748b;
}

.input-field:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* Checkbox & Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.88rem;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: #0284c7;
  border-color: #38bdf8;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.forgot-link {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Primary Blue Button */
.btn-primary {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

/* Or Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  color: #64748b;
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Social Login Grid */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.social-btn {
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: #f3f4f6;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 0.85rem;
  white-space: nowrap;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Switcher Footer Text */
.auth-switch-footer {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.88rem;
  color: #9ca3af;
}

.auth-switch-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

/* Right Hero Image Column - Seamless Integrated Viewport */
.hero-section {
  padding: 0;
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0b0f19;
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #0b0f19;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0f19 0%, rgba(11, 15, 25, 0.45) 25%, transparent 65%),
              linear-gradient(180deg, #0b0f19 0%, transparent 15%, transparent 85%, #0b0f19 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 12%, black 35%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 12%, black 35%);
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.toast {
  padding: 0.75rem 1.25rem;
  background: #111827;
  color: #ffffff;
  border-radius: 30px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 0.3s ease;
}

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

/* Mobile & Tablet Responsiveness */
@media (max-width: 860px) {
  .page-container {
    grid-template-columns: 1fr;
    max-width: 480px;
    border-radius: 20px;
  }
  .hero-section {
    display: none;
  }
  .form-section {
    padding: 2.25rem 1.75rem;
  }
  .social-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
 * ENGINE SETUP WIZARD & STEPPER STYLES
 * ------------------------------------------------------------- */
.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.stepper-header::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--card-bg);
  padding: 0 0.5rem;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-node.active .step-circle {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 132, 200, 0.35);
}

.step-node.active .step-label {
  color: var(--brand-blue);
}

.step-node.completed .step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Multi-Select Chips */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.chip-btn {
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chip-btn:hover {
  border-color: var(--brand-blue);
}

.chip-btn.selected {
  border-color: var(--brand-blue);
  background-color: rgba(0, 132, 200, 0.08);
  color: var(--brand-blue);
}

/* Step Button Actions */
.wizard-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-secondary {
  height: auto;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Live Engine Active View */
.live-engine-card {
  background: #0d131f;
  border-radius: 20px;
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.engine-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 30px;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981, 0 0 10px rgba(16, 185, 129, 0.6);
  animation: pulseDot 1.5s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px #10b981, 0 0 10px rgba(16, 185, 129, 0.7);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
    box-shadow: 0 0 2px #10b981, 0 0 4px rgba(16, 185, 129, 0.2);
  }
}

.engine-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.metric-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-blue);
}

/* -------------------------------------------------------------
 * FOREX_BOT COMMAND CENTER MAIN DASHBOARD STYLES (#0084c8 Theme)
 * ------------------------------------------------------------- */
.dashboard-page-body {
  background-color: #090d16;
  color: #f3f4f6;
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Sidebar Navigation */
.dash-sidebar {
  width: 260px;
  background: #0d131f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  height: 65px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-badge-square {
  width: 36px;
  height: 36px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 132, 200, 0.4);
}

.brand-text-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-text-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.sidebar-nav {
  padding: 1.2rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(0, 132, 200, 0.15);
  border: 1px solid rgba(0, 132, 200, 0.35);
  color: var(--brand-blue);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Dashboard Main Content Area */
.dash-content-area {
  flex: 1;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.top-telemetry-header {
  height: 52px;
  background: #0d131f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.header-title-group h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.header-title-group p {
  font-size: 0.7rem;
  color: #9ca3af;
  margin: 1px 0 0 0;
}

.header-status-pills {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* KPI Summary Cards Grid */
.dashboard-grid-container {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}

.kpi-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
}

.kpi-card {
  background: #0d131f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: var(--transition);
}

.kpi-card:hover {
  border-color: rgba(0, 132, 200, 0.4);
  transform: translateY(-2px);
}

.kpi-label {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.kpi-value.accent-blue {
  color: var(--brand-blue);
}

.kpi-value.accent-green {
  color: #10b981;
}

.kpi-subtext {
  font-size: 0.7rem;
  color: #10b981;
  font-weight: 600;
}

/* Main Dashboard Cards 2-Col Layout */
.cards-two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.65rem;
}

.dash-panel-card {
  background: #0d131f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* AI Model Prediction Confidence Bar */
.ml-confidence-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ml-pair-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ml-pair-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.confidence-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.confidence-fill.buy { background: linear-gradient(90deg, #10b981, #34d399); }
.confidence-fill.sell { background: linear-gradient(90deg, #ef4444, #f87171); }
.confidence-fill.hold { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* Live Positions Table */
.positions-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.positions-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.positions-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.badge-side {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-side.buy { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-side.sell { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.atr-target-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: rgba(0, 132, 200, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* System Feed Log */
.execution-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.log-entry-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.82rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border-left: 3px solid var(--brand-blue);
}

/* -------------------------------------------------------------
 * TRADE HISTORY & SUMMARY ANALYTICS STYLES
 * ------------------------------------------------------------- */
.history-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #0d131f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.5rem;
  flex-wrap: wrap;
}

.filter-inputs-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  height: 44px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 132, 200, 0.2);
}

.exit-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.exit-tag.tp { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.exit-tag.ml { background: rgba(0, 132, 200, 0.12); color: var(--brand-blue); border: 1px solid rgba(0, 132, 200, 0.25); }
.exit-tag.sl { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }

.pnl-positive { color: #10b981; font-weight: 700; font-family: monospace; }
.pnl-negative { color: #ef4444; font-weight: 700; font-family: monospace; }

/* -------------------------------------------------------------
 * LIVE FOREX PAIR PROBABILITY CHART STYLES
 * ------------------------------------------------------------- */
.prob-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.prob-pair-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
}

.prob-pair-box:hover {
  border-color: rgba(0, 132, 200, 0.4);
}

.prob-score-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.prob-score-val.bullish { color: #10b981; }
.prob-score-val.bearish { color: #ef4444; }
.prob-score-val.neutral { color: #f59e0b; }

/* -------------------------------------------------------------
 * DAILY HISTORICAL PERFORMANCE SELECTOR STYLES
 * ------------------------------------------------------------- */
.history-date-picker-input {
  height: 44px;
  padding: 0 1.25rem;
  background: rgba(0, 132, 200, 0.08);
  border: 1.5px solid var(--brand-blue);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.history-date-picker-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(5) hue-rotate(185deg);
  cursor: pointer;
}

.daily-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.daily-metric-title {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}

.daily-metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.daily-metric-sub {
  font-size: 0.75rem;
  font-weight: 600;
}

/* -------------------------------------------------------------
 * ZERO-SCROLL 100% VIEWPORT FIT GRID LAYOUT
 * ------------------------------------------------------------- */
.dash-grid-fit {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.85rem;
  overflow: hidden;
  min-height: 0;
}

.col-left-fit, .col-right-fit {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  min-height: 0;
}

.card-fit-flex {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* -------------------------------------------------------------
 * FOREX_BOT BROKER CONNECTION DASHBOARD STYLES
 * ------------------------------------------------------------- */
.broker-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.broker-preset-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.broker-preset-card:hover {
  border-color: var(--brand-blue);
  background: rgba(0, 132, 200, 0.06);
}

.broker-preset-card.active {
  border-color: var(--brand-blue);
  background: rgba(0, 132, 200, 0.12);
  box-shadow: 0 0 12px rgba(0, 132, 200, 0.25);
}

.health-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.health-metric-row:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(56, 189, 248, 0.2);
}

.health-metric-label {
  color: #cbd5e1;
  font-weight: 600;
}

.health-metric-status {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 6px;
}

/* Dashboard High-Contrast Labels & Informative Field Hints */
.dashboard-page-body .input-label {
  color: #f3f4f6 !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.field-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.35;
  margin-top: 0.3rem;
  display: block;
}

/* -------------------------------------------------------------
 * AI MODEL INSIGHTS DASHBOARD STYLES
 * ------------------------------------------------------------- */
.param-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 0.8rem;
}

.param-key {
  color: #9ca3af;
  font-family: monospace;
}

.param-val {
  color: var(--brand-blue);
  font-weight: 700;
  font-family: monospace;
}

.ml-threshold-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #f59e0b;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* -------------------------------------------------------------
 * TOP RIGHT USER PROFILE AVATAR WIDGET STYLES
 * ------------------------------------------------------------- */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-profile-badge:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
  flex-shrink: 0;
}

.profile-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.profile-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.profile-role-badge {
  font-size: 0.62rem;
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 7px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1px;
}

/* -------------------------------------------------------------
 * USER PROFILE DASHBOARD STYLES
 * ------------------------------------------------------------- */
.avatar-large-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), #005682);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.75rem;
  box-shadow: 0 0 20px rgba(0, 132, 200, 0.4);
  border: 2.5px solid rgba(255, 255, 255, 0.15);
}

.profile-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pro-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 0.4rem;
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 1.2rem;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* -------------------------------------------------------------
 * BOT EXECUTION ENGINE SESSION TOGGLE STYLES (CLEAN SAAS UI)
 * ------------------------------------------------------------- */
.session-btn-stop {
  margin-top: auto !important;
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-shadow: none !important;
}

.session-btn-stop svg,
.session-btn-stop i,
.session-btn-stop span {
  color: #ef4444 !important;
  stroke: #ef4444 !important;
  font-weight: 600 !important;
}

.session-btn-stop:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-1px);
}

.session-btn-stop:hover svg,
.session-btn-stop:hover i,
.session-btn-stop:hover span {
  color: #dc2626 !important;
  stroke: #dc2626 !important;
}

.session-btn-start {
  margin-top: auto !important;
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-shadow: none !important;
}

.session-btn-start svg,
.session-btn-start i,
.session-btn-start span {
  color: #10b981 !important;
  stroke: #10b981 !important;
  font-weight: 600 !important;
}

.session-btn-start:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-1px);
}

.session-btn-start:hover svg,
.session-btn-start:hover i,
.session-btn-start:hover span {
  color: #059669 !important;
  stroke: #059669 !important;
}

/* Light Theme Overrides for Session Buttons */
[data-theme="light"] .session-btn-stop,
body.light-theme .session-btn-stop,
.light-theme .session-btn-stop {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

[data-theme="light"] .session-btn-stop svg,
[data-theme="light"] .session-btn-stop i,
[data-theme="light"] .session-btn-stop span,
body.light-theme .session-btn-stop svg,
body.light-theme .session-btn-stop i,
body.light-theme .session-btn-stop span,
.light-theme .session-btn-stop svg,
.light-theme .session-btn-stop i,
.light-theme .session-btn-stop span {
  color: #dc2626 !important;
  stroke: #dc2626 !important;
}

[data-theme="light"] .session-btn-stop:hover,
body.light-theme .session-btn-stop:hover,
.light-theme .session-btn-stop:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

[data-theme="light"] .session-btn-start,
body.light-theme .session-btn-start,
.light-theme .session-btn-start {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #16a34a !important;
}

[data-theme="light"] .session-btn-start svg,
[data-theme="light"] .session-btn-start i,
[data-theme="light"] .session-btn-start span,
body.light-theme .session-btn-start svg,
body.light-theme .session-btn-start i,
body.light-theme .session-btn-start span,
.light-theme .session-btn-start svg,
.light-theme .session-btn-start i,
.light-theme .session-btn-start span {
  color: #16a34a !important;
  stroke: #16a34a !important;
}

[data-theme="light"] .session-btn-start:hover,
body.light-theme .session-btn-start:hover,
.light-theme .session-btn-start:hover {
  background: #dcfce7 !important;
  border-color: #86efac !important;
}

/* -------------------------------------------------------------
 * RISK & ASSET FILTER DASHBOARD STYLES
 * ------------------------------------------------------------- */
.symbol-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.symbol-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d1d5db;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: monospace;
  cursor: pointer;
  transition: var(--transition);
}

.symbol-chip:hover {
  border-color: var(--brand-blue);
  color: #ffffff;
}

.symbol-chip.active {
  background: rgba(0, 132, 200, 0.18);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 0 10px rgba(0, 132, 200, 0.25);
}

.symbol-chip.active::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981, 0 0 10px rgba(16, 185, 129, 0.6);
  margin-right: 4px;
  flex-shrink: 0;
}

.symbol-chip:not(.active)::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
  margin-right: 4px;
  flex-shrink: 0;
}

.symbol-chip.locked-chip::before {
  display: none !important;
}

.symbol-chip.blacklisted {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.symbol-chip.locked-chip {
  opacity: 0.7;
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px dashed rgba(245, 158, 11, 0.45) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.symbol-chip.locked-chip:hover {
  border-color: rgba(245, 158, 11, 0.7) !important;
}

.symbol-chip .pair-lock-icon {
  display: none;
}

.symbol-chip.locked-chip .pair-lock-icon {
  display: inline-flex !important;
  color: #f59e0b !important;
  align-items: center;
}

.risk-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.radio-mode-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-mode-btn {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  transition: var(--transition);
}

.radio-mode-btn.active.whitelist {
  background: rgba(0, 132, 200, 0.2);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 132, 200, 0.4);
}

.radio-mode-btn.active.blacklist {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* -------------------------------------------------------------
 * TIMEFRAME DROPDOWN SELECT STYLES
 * ------------------------------------------------------------- */
.timeframe-dropdown {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 8px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.timeframe-dropdown:hover,
.timeframe-dropdown:focus {
  border-color: var(--brand-blue);
  color: #ffffff;
  background: rgba(0, 132, 200, 0.12);
  box-shadow: 0 0 8px rgba(0, 132, 200, 0.2);
}

.timeframe-dropdown option {
  background: #0f172a;
  color: #ffffff;
  padding: 6px;
}

/* -------------------------------------------------------------
 * HIGH-VISIBILITY CUSTOM SCROLLBAR STYLES
 * ------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 15, 25, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #0084c8, #10b981);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 132, 200, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #38bdf8, #34d399);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

/* Firefox Scrollbar Fallback */
* {
  scrollbar-width: thin;
  scrollbar-color: #0084c8 rgba(11, 15, 25, 0.9);
}

/* -------------------------------------------------------------
 * PROFILE CARD LOGOUT BUTTON STYLES
 * ------------------------------------------------------------- */
.btn-logout-card {
  width: 100%;
  height: 42px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-logout-card:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

/* -------------------------------------------------------------
 * BACKDROP BLUR MODAL WINDOW STYLES
 * ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.modal-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-card-box {
  width: 92%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 132, 200, 0.25);
  padding: 1.6rem;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
  color: #ffffff;
}

.modal-overlay.modal-open .modal-card-box {
  transform: translateY(0) scale(1);
}

/* -------------------------------------------------------------
 * LANDING PAGE MARKETING WEBSITE STYLES
 * ------------------------------------------------------------- */
.landing-nav-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4%;
  background: rgba(11, 15, 25, 0.95) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-nav-link {
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-nav-link:hover {
  color: #ffffff;
}

.hero-marketing-section {
  position: relative;
  padding: 4.5rem 4% 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(0, 132, 200, 0.18) 0%, rgba(11, 15, 25, 0) 70%);
  overflow: hidden;
}

.ticker-marquee-bar {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.85rem 0;
  display: flex;
}

.ticker-marquee-content {
  display: inline-flex;
  gap: 2.5rem;
  animation: tickerMarquee 28s linear infinite;
}

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

.landing-feature-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.landing-feature-card:hover {
  border-color: rgba(0, 132, 200, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 132, 200, 0.15);
}

.pricing-card-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card-box.popular {
  border-color: var(--brand-blue);
  box-shadow: 0 0 30px rgba(0, 132, 200, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.floating-glass-badge {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  position: absolute;
  z-index: 10;
}

.section-tagline {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.btn-pill-green {
  background: #10b981;
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 50px;
  padding: 0 22px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.btn-pill-green:hover {
  background: #059669;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 5% 3.5rem;
  box-sizing: border-box;
  width: 100%;
}

.landing-hero-chart-box {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 132, 200, 0.15);
  overflow: visible;
}

@media (max-width: 992px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    padding: 3rem 4% 2.5rem;
    gap: 2.5rem;
  }

  .landing-nav-links {
    display: none;
  }
}

/* -------------------------------------------------------------
 * LANDING PAGE DEDICATED BODY & BUTTON OVERRIDES
 * ------------------------------------------------------------- */
.landing-page-body {
  background-color: #0b0f19 !important;
  color: #f3f4f6 !important;
  font-family: var(--font-sans) !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 100vh !important;
  display: block !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  position: relative !important;
}

.landing-btn-secondary {
  margin: 0;
  text-decoration: none;
  padding: 0 16px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  cursor: pointer;
}

.landing-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.landing-btn-primary {
  margin: 0;
  text-decoration: none;
  padding: 0 18px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  border-radius: 20px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-btn-primary:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 0 15px rgba(0, 132, 200, 0.4);
}

/* =============================================================
   UNIVERSAL DYNAMIC LIGHT MODE DESIGN SYSTEM — PREMIUM EDITION
   Complete overrides for every page: Login, Dashboard, Landing,
   Billing, Trade History, ML Insights, Risk Settings, Profile,
   Broker Connection, Help Center, Pricing, Contact, Partners
   ============================================================= */

/* ─── ROOT VARIABLES ─── */
[data-theme="light"] {
  --bg-canvas: #f1f5f9;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --brand-blue: #0284c7;
  --brand-blue-hover: #0369a1;
  --link-blue: #0284c7;
  --border-color: #e2e8f0;
}

/* ─── GLOBAL BODY & HTML ─── */
[data-theme="light"] body,
[data-theme="light"] html,
[data-theme="light"] .dashboard-page-body,
[data-theme="light"] .landing-page-body {
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%) !important;
  color: #0f172a !important;
}

/* ─── CUSTOM SCROLLBAR (Light) ─── */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #94a3b8, #cbd5e1) !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #64748b, #94a3b8) !important;
  box-shadow: none !important;
}

/* ─── LOGIN / SIGNUP PAGE (SEAMLESS UNIFIED LIGHT BACKGROUND) ─── */
[data-theme="light"] .page-container,
[data-theme="light"] .form-section,
[data-theme="light"] .hero-section,
[data-theme="light"] .hero-image-wrapper {
  background: #ffffff !important;
}

[data-theme="light"] .hero-image-wrapper::before {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 15%, rgba(255, 255, 255, 0.3) 40%, transparent 80%),
              linear-gradient(180deg, #ffffff 0%, transparent 12%, transparent 88%, #ffffff 100%) !important;
}

/* ─── AUTH HERO IMAGE LIGHT / DARK SWITCH ─── */
html:not([data-theme="light"]) .hero-img-light {
  display: none !important;
}

html:not([data-theme="light"]) .hero-img-dark {
  display: block !important;
}

[data-theme="light"] .hero-img-dark {
  display: none !important;
}

[data-theme="light"] .hero-img-light {
  display: block !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 15%, black 45%) !important;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 15%, black 45%) !important;
}

[data-theme="light"] .auth-title {
  color: #0f172a !important;
}

[data-theme="light"] .auth-subtitle {
  color: #64748b !important;
}

[data-theme="light"] .input-label {
  color: #334155 !important;
}

[data-theme="light"] .input-field {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .input-field::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] .input-field:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .checkbox-label input[type="checkbox"] {
  background: #e2e8f0;
  border-color: #94a3b8;
}

[data-theme="light"] .checkbox-label input[type="checkbox"]:checked {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .checkbox-label input[type="checkbox"]:checked::after {
  color: #ffffff !important;
}

[data-theme="light"] .forgot-link {
  color: #0284c7 !important;
}

[data-theme="light"] .social-btn {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .social-btn:hover {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .auth-switch-footer {
  color: #64748b !important;
}

[data-theme="light"] .auth-switch-link {
  color: #0284c7 !important;
}

[data-theme="light"] .divider {
  color: #94a3b8 !important;
}

[data-theme="light"] .divider::before,
[data-theme="light"] .divider::after {
  background-color: #e2e8f0 !important;
}



/* ─── AUTH HERO IMAGE LIGHT / DARK SWITCH ─── */
html:not([data-theme="light"]) .hero-img-light {
  display: none !important;
}

html:not([data-theme="light"]) .hero-img-dark {
  display: block !important;
}

[data-theme="light"] .hero-img-dark {
  display: none !important;
}

[data-theme="light"] .hero-img-light {
  display: block !important;
}

[data-theme="light"] .back-home-btn {
  color: #334155 !important;
}

/* ─── SIDEBAR ─── */
[data-theme="light"] .dash-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.03) !important;
}

/* ─── SIDEBAR TRADING ACCOUNT SELECTOR (LIGHT MODE) ─── */
[data-theme="light"] .dash-sidebar [style*="background: linear-gradient(135deg, rgba(15, 23, 42"],
[data-theme="light"] .dash-sidebar [style*="background:linear-gradient(135deg, rgba(15, 23, 42"],
[data-theme="light"] .sidebar-account-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 1.5px solid #7dd3fc !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .dash-sidebar label[style*="color: #38bdf8"],
[data-theme="light"] .dash-sidebar label[style*="color:#38bdf8"],
[data-theme="light"] .sidebar-account-card label {
  color: #0284c7 !important;
}

[data-theme="light"] #sidebarAccountSwitcher,
[data-theme="light"] select#sidebarAccountSwitcher {
  background: #ffffff !important;
  border: 1.5px solid #0284c7 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1) !important;
}

[data-theme="light"] #sidebarAccountSwitcher option {
  background: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] .dash-sidebar .sidebar-brand .brand-text-title {
  color: #0f172a !important;
}

[data-theme="light"] .dash-sidebar .nav-item {
  color: #64748b !important;
}

[data-theme="light"] .dash-sidebar .nav-item:hover {
  background: rgba(2, 132, 199, 0.06) !important;
  color: #0284c7 !important;
}

[data-theme="light"] .dash-sidebar .nav-item.active {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  font-weight: 700;
  border-left: 3px solid #0284c7;
}

[data-theme="light"] .dash-sidebar .sidebar-footer {
  border-top-color: #e2e8f0 !important;
}

/* ─── TOP TELEMETRY HEADER ─── */
[data-theme="light"] .top-telemetry-header {
  background: rgba(241, 245, 249, 0.88) !important;
  border-bottom: none !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: none !important;
}

[data-theme="light"] .top-telemetry-header h1 {
  color: #0f172a !important;
}

[data-theme="light"] .top-telemetry-header p {
  color: #64748b !important;
}

[data-theme="light"] .status-pill-badge {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}

[data-theme="light"] .user-profile-badge {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08) !important;
}

[data-theme="light"] .user-profile-badge:hover {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.18) !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .avatar-circle {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35) !important;
}

[data-theme="light"] .profile-name {
  color: #0f172a !important;
}

[data-theme="light"] .profile-role-badge {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.1) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

/* ─── DASHBOARD PANELS & CARDS ─── */
[data-theme="light"] .dash-panel-card,
[data-theme="light"] .card-fit-flex {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02) !important;
  color: #0f172a !important;
}

[data-theme="light"] .panel-title {
  color: #0f172a !important;
}

[data-theme="light"] .panel-title i {
  color: #0284c7 !important;
}

/* ─── KPI CARDS ─── */
[data-theme="light"] .kpi-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .kpi-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08) !important;
}

[data-theme="light"] .kpi-label {
  color: #64748b !important;
}

[data-theme="light"] .kpi-value {
  color: #0f172a !important;
}

[data-theme="light"] .kpi-subtext {
  color: #047857 !important;
}

/* ─── TABLES ─── */
[data-theme="light"] .positions-table-wrapper {
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .positions-table th {
  background: #f8fafc !important;
  color: #64748b !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .positions-table td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
}

[data-theme="light"] .positions-table tr:hover td {
  background: #f8fafc !important;
}

/* ─── TRADE HISTORY FILTER BAR ─── */
[data-theme="light"] .history-filter-bar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .filter-select {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .filter-select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
  color: #0f172a !important;
}

[data-theme="light"] .filter-select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] .history-date-picker-input {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0f172a !important;
}

[data-theme="light"] .history-date-picker-input::-webkit-calendar-picker-indicator {
  filter: none !important;
}

/* ─── ML INSIGHTS & PROBABILITY CARDS ─── */
[data-theme="light"] .prob-pair-box,
[data-theme="light"] .daily-metric-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .prob-pair-box:hover,
[data-theme="light"] .daily-metric-card:hover {
  border-color: #0284c7 !important;
}

[data-theme="light"] .daily-metric-title {
  color: #64748b !important;
}

[data-theme="light"] .daily-metric-value {
  color: #0f172a !important;
}

[data-theme="light"] .confidence-track {
  background: #e2e8f0 !important;
}

[data-theme="light"] .param-pill {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .param-key {
  color: #64748b !important;
}

[data-theme="light"] .log-entry-item {
  background: #f8fafc !important;
  border-left-color: #0284c7 !important;
}

/* ─── BROKER CONNECTION (LIGHT MODE TEXT VISIBILITY FIX) ─── */
[data-theme="light"] .broker-preset-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .broker-preset-card span {
  color: #0f172a !important;
}

[data-theme="light"] .broker-preset-card span[style*="color: #fff"],
[data-theme="light"] .broker-preset-card span[style*="color:#fff"],
[data-theme="light"] .broker-preset-card span[style*="color: #ffffff"],
[data-theme="light"] .broker-preset-card span[style*="color:#ffffff"] {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .broker-preset-card span[style*="color: #9ca3af"],
[data-theme="light"] .broker-preset-card span[style*="color:#9ca3af"] {
  color: #475569 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .broker-preset-card i[style*="color: #9ca3af"],
[data-theme="light"] .broker-preset-card i[style*="color:#9ca3af"] {
  color: #0284c7 !important;
}

[data-theme="light"] .broker-preset-card:hover {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
}

[data-theme="light"] .broker-preset-card.active {
  border: 2px solid #0284c7 !important;
  background: #e0f2fe !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .broker-preset-card.active span {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .broker-preset-card.active span[style*="color: #10b981"] {
  color: #047857 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .health-metric-row {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .health-metric-label {
  color: #334155 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .field-hint,
[data-theme="light"] small,
[data-theme="light"] .hint-text {
  color: #334155 !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

[data-theme="light"] .field-hint code,
[data-theme="light"] code {
  background: transparent !important;
  color: inherit !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-weight: inherit !important;
  font-family: inherit !important;
}

/* ─── TIMEFRAME DROPDOWN ─── */
[data-theme="light"] .timeframe-dropdown {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .timeframe-dropdown:hover,
[data-theme="light"] .timeframe-dropdown:focus {
  border-color: #0284c7 !important;
  color: #0f172a !important;
  background: #f0f9ff !important;
}

[data-theme="light"] .timeframe-dropdown option {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* ─── PROFILE PAGE ─── */
[data-theme="light"] .avatar-large-circle {
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .profile-card-header {
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .btn-logout-card {
  background: rgba(239, 68, 68, 0.06) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

/* ─── RISK SETTINGS LIGHT MODE TEXT VISIBILITY ─── */
[data-theme="light"] .risk-checkbox-label {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .emergency-actions-box {
  background: #fff5f5 !important;
  border-color: #fca5a5 !important;
}

[data-theme="light"] .emergency-actions-title {
  color: #dc2626 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .symbol-chip {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .symbol-chip.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .symbol-chip.blacklisted {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
  font-weight: 800 !important;
}

/* ─── BILLING & PLAN TIER CARDS ─── */
[data-theme="light"] .plan-tier-card,
[data-theme="light"] .pricing-card-box,
[data-theme="light"] .metric-ribbon-box,
[data-theme="light"] .clean-search-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02) !important;
  color: #0f172a !important;
}

[data-theme="light"] .pricing-card-box.popular {
  border-color: #0284c7 !important;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.12) !important;
  background: #f0f9ff !important;
}

/* ─── MODALS ─── */
[data-theme="light"] .modal-overlay {
  background: rgba(241, 245, 249, 0.75) !important;
}

[data-theme="light"] .modal-card-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

/* ─── TOAST ─── */
[data-theme="light"] .toast {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ─── HEADINGS & TEXT ─── */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #0f172a !important;
}

[data-theme="light"] p {
  color: #475569 !important;
}

[data-theme="light"] strong {
  color: #0f172a !important;
}

/* ─── INPUTS & SELECTS (GLOBAL) ─── */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
  background-color: #ffffff !important;
}

/* ─── LANDING HEADER & NAV ─── */
.landing-nav-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.landing-nav-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.landing-nav-link {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

.landing-dropdown-container {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

[data-theme="light"] .landing-nav-header {
  background: rgba(241, 245, 249, 0.88) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

[data-theme="light"] .landing-nav-link {
  color: #475569 !important;
}

[data-theme="light"] .landing-nav-link:hover {
  color: #0284c7 !important;
}

[data-theme="light"] .landing-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .landing-dropdown-item {
  color: #334155 !important;
}

[data-theme="light"] .landing-btn-secondary,
[data-theme="light"] .btn-secondary,
[data-theme="light"] a.landing-btn-secondary,
[data-theme="light"] a.btn-secondary {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

[data-theme="light"] .landing-btn-secondary:hover,
[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0284c7 !important;
}

/* ─── ACTION PILL BUTTONS (LIGHT MODE) ─── */
[data-theme="light"] .btn-action-pill,
[data-theme="light"] button.btn-action-pill,
[data-theme="light"] [onclick*="runPingDiagnostic"] {
  background: #f0f9ff !important;
  border: 1.5px solid #7dd3fc !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08) !important;
}

[data-theme="light"] .btn-action-pill:hover,
[data-theme="light"] button.btn-action-pill:hover,
[data-theme="light"] [onclick*="runPingDiagnostic"]:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18) !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .btn-action-primary {
  background: #38bdf8 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4) !important;
}

[data-theme="light"] .btn-action-primary:hover {
  background: #0ea5e9 !important;
  color: #0f172a !important;
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.5) !important;
}

[data-theme="light"] .landing-btn-primary {
  background: #38bdf8 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4) !important;
}

[data-theme="light"] .landing-btn-primary:hover {
  background: #0ea5e9 !important;
  color: #0f172a !important;
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.5) !important;
}

/* ─── UNIFORM LIGHT MODE BLUE BUTTON ENGINE ─── */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-glass-blue,
[data-theme="light"] .btn-pill-blue,
[data-theme="light"] button.btn-primary,
[data-theme="light"] a.btn-primary,
[data-theme="light"] [style*="background: linear-gradient(135deg, #0284c7"],
[data-theme="light"] [style*="background: #0284c7"],
[data-theme="light"] [style*="background:#0284c7"] {
  background: #38bdf8 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4) !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-glass-blue:hover,
[data-theme="light"] button.btn-primary:hover,
[data-theme="light"] a.btn-primary:hover {
  background: #0ea5e9 !important;
  color: #0f172a !important;
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.5) !important;
}

/* ─── LANDING HERO SECTION ─── */
[data-theme="light"] .hero-marketing-section {
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.06) 0%, transparent 70%) !important;
}

[data-theme="light"] .landing-hero-chart-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .floating-glass-badge {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .section-tagline {
  color: #0284c7 !important;
}

/* ─── LANDING FEATURE CARDS ─── */
[data-theme="light"] .landing-feature-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .landing-feature-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.08) !important;
  transform: translateY(-4px);
}

/* ─── TICKER MARQUEE BAR ─── */
[data-theme="light"] .ticker-marquee-bar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* ─── FOOTER ─── */
[data-theme="light"] footer,
[data-theme="light"] .landing-footer {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] footer a,
[data-theme="light"] .landing-footer a {
  color: #475569 !important;
}

[data-theme="light"] footer a:hover,
[data-theme="light"] .landing-footer a:hover {
  color: #0284c7 !important;
}

/* ─── BTN PILL GREEN (CTA) ─── */
[data-theme="light"] .btn-pill-green {
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}

/* ─── INLINE STYLE OVERRIDES ─── */
/* White text on dark backgrounds → dark text on light backgrounds */
[data-theme="light"] [style*="color: #ffffff"],
[data-theme="light"] [style*="color:#ffffff"],
[data-theme="light"] [style*="color: #e2e8f0"],
[data-theme="light"] [style*="color:#e2e8f0"],
[data-theme="light"] [style*="color: #cbd5e1"],
[data-theme="light"] [style*="color:#cbd5e1"],
[data-theme="light"] [style*="color: #f3f4f6"],
[data-theme="light"] [style*="color:#f3f4f6"],
[data-theme="light"] [style*="color: #d1d5db"] {
  color: #0f172a !important;
}

[data-theme="light"] [style*="color: #9ca3af"],
[data-theme="light"] [style*="color:#9ca3af"],
[data-theme="light"] [style*="color: #64748b"],
[data-theme="light"] [style*="color:#64748b"] {
  color: #475569 !important;
}

/* Dark card & box backgrounds → white with subtle border */
[data-theme="light"] [style*="background: rgba(15, 23, 42"],
[data-theme="light"] [style*="background:rgba(15, 23, 42"],
[data-theme="light"] [style*="background: rgba(11, 15, 25"],
[data-theme="light"] [style*="background:rgba(11, 15, 25"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.03)"],
[data-theme="light"] [style*="background: rgba(255, 255, 255, 0.02)"],
[data-theme="light"] [style*="background: #0f172a"],
[data-theme="light"] [style*="background:#0f172a"],
[data-theme="light"] [style*="background: #0b0f19"],
[data-theme="light"] [style*="background:#0b0f19"],
[data-theme="light"] [style*="background: #0d131f"],
[data-theme="light"] [style*="background:#0d131f"],
[data-theme="light"] [style*="background: #090d16"],
[data-theme="light"] [style*="background:#090d16"],
[data-theme="light"] [style*="background: #111827"],
[data-theme="light"] [style*="background:#111827"] {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Dark border overrides */
[data-theme="light"] [style*="border: 1px solid rgba(255, 255, 255"],
[data-theme="light"] [style*="border:1px solid rgba(255, 255, 255"],
[data-theme="light"] [style*="border-color: rgba(255, 255, 255"] {
  border-color: #e2e8f0 !important;
}

/* Light Mode Timeline Step Numbers & Badges */
[data-theme="light"] [style*="background: #0f172a; border: 1px solid rgba(56, 189, 248"] {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* ─── LIGHT MODE FLOWCHART DOWN ARROW OVERRIDES (REMOVE DARK CIRCLE) ─── */
[data-theme="light"] .flowchart-down-arrow-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #0284c7 !important;
}

[data-theme="light"] .flowchart-down-arrow-icon.green {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #059669 !important;
}

[data-theme="light"] .flowchart-down-arrow-icon.amber {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #d97706 !important;
}

/* ─── GRADIENT TEXT FIX ─── */
[data-theme="light"] [style*="background: linear-gradient"][style*="-webkit-background-clip: text"] {
  -webkit-text-fill-color: unset !important;
  color: #0f172a !important;
  background: none !important;
}

/* ─── GLASSMORPHIC & PRICING BUTTON OVERRIDES ─── */
.btn-active-plan,
[data-theme="light"] .btn-active-plan {
  border-radius: 50px !important;
  padding: 0.55rem 1.2rem !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

[data-theme="light"] .btn-glass-secondary {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-glass-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

[data-theme="light"] .btn-glass-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.btn-glass-gold,
[data-theme="light"] .btn-glass-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1px solid #fbbf24 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4) !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
}

.btn-glass-gold:hover,
[data-theme="light"] .btn-glass-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55) !important;
}

[data-theme="light"] .btn-glass-secondary:hover {
  background: #e2e8f0 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .btn-glass-blue:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  color: #ffffff !important;
}

/* ─── HELP CENTER / CONTACT / PARTNER PAGES ─── */
[data-theme="light"] .faq-accordion-item,
[data-theme="light"] .faq-question {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .faq-answer {
  color: #475569 !important;
}

[data-theme="light"] .kb-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .kb-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.1) !important;
}

[data-theme="light"] .kb-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .kb-card p {
  color: #475569 !important;
}

[data-theme="light"] .faq-item {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .article-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .article-card:hover {
  background: #f8fafc !important;
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08) !important;
}

[data-theme="light"] .article-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .article-card p {
  color: #475569 !important;
}

[data-theme="light"] section[style*="background: linear-gradient(180deg, rgba(6, 78, 59"] {
  background: linear-gradient(180deg, #e0f2fe 0%, #f1f5f9 100%) !important;
  border-bottom-color: #cbd5e1 !important;
}

[data-theme="light"] input[placeholder*="Search guides"] {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  color: #0f172a !important;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.1) !important;
}

/* ─── CONTACT US, PARTNER, AFFILIATE & AGENCY LIGHT MODE RULES ─── */
[data-theme="light"] .contact-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .contact-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.1) !important;
}

[data-theme="light"] .contact-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .contact-card p {
  color: #475569 !important;
}

[data-theme="light"] .partner-visual-card,
[data-theme="light"] .tier-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .partner-visual-card:hover,
[data-theme="light"] .tier-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12) !important;
}

[data-theme="light"] .partner-visual-card h3,
[data-theme="light"] .tier-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .affiliate-form-input,
[data-theme="light"] .agency-form-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .affiliate-form-input:focus,
[data-theme="light"] .agency-form-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .affiliate-form-label,
[data-theme="light"] .agency-form-label {
  color: #334155 !important;
}

[data-theme="light"] .compare-table-wrapper,
[data-theme="light"] .compare-table {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .compare-table th {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] .compare-table td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

/* ─── SECTION BACKGROUNDS ─── */
[data-theme="light"] [style*="background: #090d16"],
[data-theme="light"] [style*="background: #0b0f19"],
[data-theme="light"] [style*="background-color: #0b0f19"],
[data-theme="light"] [style*="background-color: #090d16"] {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
}

/* ─── BOT SESSION CONTROLS (CLEAN LIGHT MODE) ─── */
[data-theme="light"] .session-btn-stop {
  background: rgba(239, 68, 68, 0.06) !important;
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  color: #dc2626 !important;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.05) !important;
}

[data-theme="light"] .session-btn-stop svg,
[data-theme="light"] .session-btn-stop i,
[data-theme="light"] .session-btn-stop span {
  color: #dc2626 !important;
  stroke: #dc2626 !important;
}

[data-theme="light"] .session-btn-stop:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.38) !important;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.1) !important;
}

[data-theme="light"] .session-btn-start {
  background: rgba(16, 185, 129, 0.06) !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  color: #059669 !important;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.05) !important;
}

[data-theme="light"] .session-btn-start svg,
[data-theme="light"] .session-btn-start i,
[data-theme="light"] .session-btn-start span {
  color: #059669 !important;
  stroke: #059669 !important;
}

[data-theme="light"] .session-btn-start:hover {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.1) !important;
}



/* =============================================================
   SMALL COMPACT SLIDING SWITCH WIDGET (iOS STYLE)
   ============================================================= */
.mini-theme-switch {
  width: 40px;
  height: 22px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.25s ease;
  user-select: none;
  box-sizing: border-box;
}

[data-theme="light"] .mini-theme-switch {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  justify-content: flex-end !important;
}

.mini-switch-knob {
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

html:not([data-theme="light"]) .mini-switch-knob .icon-sun {
  display: none !important;
}

html:not([data-theme="light"]) .mini-switch-knob .icon-moon {
  display: block !important;
}

[data-theme="light"] .mini-switch-knob {
  background: #f59e0b !important;
  color: #ffffff !important;
}

[data-theme="light"] .mini-switch-knob .icon-moon {
  display: none !important;
}

[data-theme="light"] .mini-switch-knob .icon-sun {
  display: block !important;
}
.theme-switch-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 3px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  position: relative;
}

[data-theme="light"] .theme-switch-pill {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

.theme-switch-track {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.theme-opt {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #9ca3af;
  border-radius: 20px;
  transition: color 0.25s ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 20px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 0;
}

html:not([data-theme="light"]) .theme-switch-thumb {
  transform: translateX(0);
}

[data-theme="light"] .theme-switch-thumb {
  transform: translateX(100%) !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* =============================================================
   NOTIFICATIONS & SYSTEM ALERTS DASHBOARD STYLES
   ============================================================= */
.sidebar-unread-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.notif-tab-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.notif-tab-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.notif-tab-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.2);
}

.notif-tab-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 12px;
  font-size: 0.7rem;
}

.notif-tab-btn.active .notif-tab-count {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.notification-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.notification-card.unread {
  background: rgba(15, 23, 42, 0.95);
  border-left: 4px solid #38bdf8;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  border-right: 1px solid rgba(56, 189, 248, 0.25);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.notification-card.unread.type-warning {
  border-left-color: #ef4444;
}

.notification-card.unread.type-success {
  border-left-color: #10b981;
}

.notification-card.unread.type-billing {
  border-left-color: #a855f7;
}

.notification-card:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
}

.notif-icon-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon-avatar.info {
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #38bdf8;
}

.notif-icon-avatar.warning {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.notif-icon-avatar.success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.notif-icon-avatar.billing {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.notif-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.notif-time {
  font-size: 0.72rem;
  color: #9ca3af;
  font-family: monospace;
}

.notif-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.notif-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notif-link-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.notif-link-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
}

.notif-dismiss-btn {
  font-size: 0.75rem;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.notif-dismiss-btn:hover {
  color: #ef4444;
}

/* Light Theme Overrides for Notifications */
[data-theme="light"] .notif-tab-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .notif-tab-btn.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .notification-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .notification-card.unread {
  background: #f8fafc;
  border-left: 4px solid #0284c7;
  border-top-color: #cbd5e1;
  border-right-color: #cbd5e1;
  border-bottom-color: #cbd5e1;
}

[data-theme="light"] .notif-title {
  color: #0f172a;
}

[data-theme="light"] .notif-desc {
  color: #334155;
}

/* Telegram Gateway Card Styling & Light-Mode Overrides */
.telegram-gateway-card {
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 132, 199, 0.12) 100%);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.telegram-prefs-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
}

.pref-label-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.pref-label-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0284c7;
  cursor: pointer;
}

/* Light Theme Overrides for Telegram Gateway */
[data-theme="light"] .telegram-gateway-card {
  background: #ffffff !important;
  border: 1.5px solid #bae6fd !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.08) !important;
}

[data-theme="light"] .telegram-gateway-card .panel-title {
  color: #0f172a !important;
}

[data-theme="light"] .telegram-gateway-card p {
  color: #475569 !important;
}

[data-theme="light"] .telegram-gateway-card label.input-label {
  color: #1e293b !important;
}

[data-theme="light"] .telegram-gateway-card input.input-field {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .telegram-gateway-card input.input-field:focus {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .telegram-prefs-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pref-label-item {
  color: #1e293b !important;
}

[data-theme="light"] .telegram-gateway-card .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

[data-theme="light"] .telegram-gateway-card .btn-secondary {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .telegram-gateway-card .btn-secondary:hover {
  background: #f1f5f9 !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* -------------------------------------------------------------
 * CUSTOM ANIMATED ACCOUNT SWITCHER DROPDOWN
 * ------------------------------------------------------------- */
.custom-account-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.custom-account-trigger {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  user-select: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.custom-account-trigger:hover {
  border-color: #38bdf8;
  background: #131d33;
}

.custom-account-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0d131f;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 4px;
  gap: 2px;
  box-sizing: border-box;
}

.custom-account-menu.open {
  display: flex;
  animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-account-item {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.custom-account-item:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #ffffff;
}

.custom-account-item.active {
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  font-weight: 700;
}

.custom-account-item.add-new {
  color: #38bdf8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2px;
  padding-top: 0.6rem;
  font-weight: 700;
}

.custom-account-item.add-new:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

/* -------------------------------------------------------------
 * LIVE CHART PAGE STYLES (TradingView Lightweight Charts)
 * ------------------------------------------------------------- */

.chart-page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0.85rem 1.25rem;
  gap: 0.65rem;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.chart-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chart-symbol-selector {
  height: 34px;
  background: #111827;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.75rem;
  outline: none;
  cursor: pointer;
  font-family: var(--font-sans), 'Inter', sans-serif;
  min-width: 135px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  line-height: 1;
}

.chart-symbol-selector:hover,
.chart-symbol-selector:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.chart-info-badge {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-sans), 'Inter', sans-serif;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chart-info-badge.price {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.chart-info-badge.direction-buy {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.chart-info-badge.direction-sell {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.chart-info-badge.direction-hold {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.chart-info-badge.confidence {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.chart-info-badge.active-pos {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.chart-info-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Light Theme Overrides */
[data-theme="light"] .chart-symbol-selector {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .chart-symbol-selector:hover,
[data-theme="light"] .chart-symbol-selector:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .chart-info-badge.price {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .chart-info-badge.direction-buy {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #059669 !important;
}

[data-theme="light"] .chart-info-badge.direction-sell {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

[data-theme="light"] .chart-info-badge.direction-hold {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #d97706 !important;
}

[data-theme="light"] .chart-info-badge.confidence {
  background: #faf5ff !important;
  border: 1px solid #e9d5ff !important;
  color: #9333ea !important;
}

[data-theme="light"] .chart-info-badge.active-pos {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #2563eb !important;
}

.chart-container-wrapper {
  flex: 1;
  min-height: 0;
  background: #0d131f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.chart-container-wrapper #tradingChart {
  width: 100%;
  height: 100%;
}

.chart-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.78rem;
}

.chart-stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #9ca3af;
  font-weight: 600;
}

.chart-stat-item .stat-val {
  color: #f3f4f6;
  font-weight: 800;
  font-family: 'Inter', monospace;
}

.chart-stat-item .stat-val.green { color: #10b981; }
.chart-stat-item .stat-val.red { color: #ef4444; }
.chart-stat-item .stat-val.blue { color: #38bdf8; }

.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.chart-legend-line {
  width: 18px;
  height: 0;
  border-top: 2px dashed;
  display: inline-block;
}

/* Chart Timeframe Button Group */
.chart-tf-group {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2px;
  flex-shrink: 0;
}

.chart-tf-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chart-tf-btn:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.06);
}

.chart-tf-btn.active {
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}
