/* Modern SaaS / Fintech Dashboard Design System & Theme Engine for Arcade FX Trading Platform */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CYGRE TYPOGRAPHY SYSTEM ---
   cdnfonts.com URLs for Cygre have been removed (provider returned 404).
   The font-family fallback chain (Plus Jakarta Sans → Inter → system-ui)
   below is unchanged so the visual design is preserved.
   If Cygre is installed on the end-user OS it will be picked up via local().
*/
@font-face {
  font-family: 'Cygre';
  src: local('Cygre'), local('Cygre-Regular');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cygre';
  src: local('Cygre Bold'), local('Cygre-Bold');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

body, html, input, button, select, textarea, h1, h2, h3, h4, h5, h6, .top-header, .sidebar, .landing-body {
  font-family: 'Cygre', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* --- MINIMALIST BLACK & WHITE THEME TOKENS --- */
/* --- PHANTOM-INSPIRED NATIVE iOS FINTECH THEME TOKENS --- */
:root {
  /* --- CENTRALIZED ARCADEFX DESIGN TOKENS --- */
  --arcade-persian-blue: #0038BC;
  --arcade-platinum: #EEEEEE;
  --arcade-powder-blue: #D0E6FD;
  --arcade-persian-blue-hover: #002e9c;
  --arcade-persian-blue-soft: rgba(0, 56, 188, 0.10);
  --arcade-powder-blue-soft: rgba(208, 230, 253, 0.20);

  /* LIGHT MODE FOUNDATION (Preserved Canvas #F5F5F7 & Surface #FFFFFF) */
  --bg-app: #F5F5F7;
  --app-atmosphere: #F5F5F7;
  --arcade-page-bg: #F5F5F7;
  --arcade-page-bg-secondary: #F0F0F3;
  --bg-primary: #F5F5F7;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0F0F3;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-secondary: #F0F0F3;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-tertiary: #64748B;
  --text-muted-semantic: #334155;
  --border: rgba(0, 56, 188, 0.10);
  --border-card: rgba(0, 56, 188, 0.10);
  --border-subtle: rgba(0, 56, 188, 0.06);
  --border-sidebar: rgba(0, 56, 188, 0.08);
  --accent: var(--arcade-persian-blue);
  --accent-secondary: #002e9c;
  --gold-primary: #D4AF37;
  --gold-bright: #E5C158;
  --gold-soft: #C9A227;
  --gold-dark: #8F6B18;
  --success: #20C997;
  --warning: #FFB020;
  --danger: #FF453A;
  --gradient-primary: linear-gradient(135deg, #0038BC 0%, #1261D6 100%);
  --bg-sidebar: #FFFFFF;
  --bg-sidebar-hover: rgba(208, 230, 253, 0.30);
  --bg-card: #FFFFFF;
  --text-dark: #0F172A;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  --card-radius: 24px;
  --sheet-radius: 32px;
  --pill-radius: 9999px;
  --card-shadow: 0 4px 20px rgba(0, 56, 188, 0.04);
  --card-shadow-hover: 0 8px 30px rgba(0, 56, 188, 0.08);
  --ios-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"], body.dark {
  /* DARK MODE FOUNDATION (Preserved Obsidian Canvas #08090B & Dark Surface #111214) */
  --bg-app: #08090B;
  --app-atmosphere: #08090B;
  --arcade-page-bg: #08090B;
  --arcade-page-bg-secondary: #111214;
  --bg-primary: #08090B;
  --bg-secondary: #111214;
  --bg-tertiary: #18191D;
  --surface: #111214;
  --surface-elevated: #18191D;
  --surface-secondary: #18191D;
  --surface-glass: rgba(17, 18, 20, 0.85);
  --text-primary: var(--arcade-platinum);
  --text-secondary: var(--arcade-powder-blue);
  --text-tertiary: #7D8EAA;
  --text-muted-semantic: var(--arcade-powder-blue);
  --border: rgba(208, 230, 253, 0.12);
  --border-card: rgba(208, 230, 253, 0.12);
  --border-subtle: rgba(208, 230, 253, 0.06);
  --border-sidebar: rgba(208, 230, 253, 0.10);
  --accent: var(--arcade-persian-blue);
  --accent-secondary: #002e9c;
  --gold-primary: #D4AF37;
  --success: #20C997;
  --warning: #FFB020;
  --danger: #FF453A;
  --bg-sidebar: #111214;
  --bg-sidebar-hover: rgba(0, 56, 188, 0.20);
  --bg-card: #111214;
  --text-dark: var(--arcade-platinum);
  --text-main: var(--arcade-platinum);
  --text-muted: var(--arcade-powder-blue);
  --text-light: #7D8EAA;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);

  /* Preserved Trading Semantics (Emerald = Bullish/Profit, Crimson = Bearish/Loss) */
  --success: #10B981;
  --danger: #EF4444;
  --accent-bull: #10B981;
  --accent-bear: #EF4444;
  --accent-blue: #D4AF37;
  --accent-yellow: #E5C158;
  --accent-purple: #D4AF37;
  --accent-cyan: #00F2FE;

  --pastel-blue: rgba(212, 175, 55, 0.10);
  --pastel-blue-text: #E5C158;
  --pastel-green: rgba(16, 185, 129, 0.12);
  --pastel-green-text: #34D399;
  --pastel-amber: rgba(212, 175, 55, 0.12);
  --pastel-amber-text: #E5C158;
  --pastel-purple: rgba(212, 175, 55, 0.12);
  --pastel-purple-text: #E5C158;
  --pastel-rose: rgba(239, 68, 68, 0.12);
  --pastel-rose-text: #FCA5A5;

  --gradient-primary: linear-gradient(135deg, #8F6B18 0%, #D4AF37 50%, #E5C158 100%);
  --gradient-secondary: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(13, 17, 29, 0.9));

  --bg-sidebar: #070911;
  --bg-sidebar-hover: rgba(212, 175, 55, 0.08);
  --bg-sidebar-promo: linear-gradient(135deg, rgba(143, 107, 24, 0.2), rgba(13, 17, 29, 0.9));
  --text-sidebar: var(--text-secondary);
  --text-sidebar-title: var(--text-primary);
  --text-promo-title: #E5C158;
  --text-promo-desc: #9CA3AF;
  --bg-sidebar-pwa-btn: rgba(212, 175, 55, 0.15);
  --text-sidebar-pwa-btn: #ffffff;

  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.08);
  --card-shadow-hover: 0 18px 45px -12px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.10);
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--arcade-page-bg, #070911);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
}

/* Sidebar */
.sidebar {
  width: 232px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-sidebar);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 10px;
  flex-shrink: 0;
  z-index: 100;
  transition: width 200ms cubic-bezier(0.4, 0, 0.2, 1), padding 200ms cubic-bezier(0.4, 0, 0.2, 1), transform 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(18px);
}

.sidebar-logo-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 8px;
}

.sidebar-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.sidebar-brand-clock-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.sidebar-live-time {
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  color: #38ef7d;
  letter-spacing: 0.5px;
}

.sidebar-live-date {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-tz-select {
  background: var(--bg-card-subtle, rgba(255, 255, 255, 0.06));
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  cursor: pointer;
  outline: none;
}
.sidebar-tz-select:focus {
  border-color: #3b82f6;
}

.sidebar-collapse-control {
  display: flex;
  justify-content: flex-end;
  margin: 0 2px 6px;
}

.sidebar-toggle-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-sidebar);
  background: var(--bg-app);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle-btn:hover { background: var(--bg-sidebar-hover); color: var(--text-sidebar-title); }
.sidebar-toggle-icon { font-size: 18px; line-height: 1; transition: transform 200ms ease; }

body.sidebar-collapsed .sidebar {
  width: 64px;
  padding-inline: 8px;
}

body.sidebar-collapsed .sidebar-brand-clock-wrap { display: none !important; }
body.sidebar-collapsed .sidebar-logo-brand { justify-content: center; }
body.sidebar-collapsed .sidebar-collapse-control { justify-content: center; }
body.sidebar-collapsed .sidebar-toggle-icon { transform: rotate(180deg); }
body.sidebar-collapsed .sidebar-section-title { height: 12px; padding: 8px 0 0; overflow: hidden; font-size: 0; }
body.sidebar-collapsed .nav-item { justify-content: center; gap: 0; padding: 10px; }
body.sidebar-collapsed .nav-item > span { display: none; }
body.sidebar-collapsed .sidebar-nav { overflow-x: visible; }

@media (prefers-reduced-motion: reduce) {
  .sidebar, .main-wrapper, .nav-item, .sidebar-toggle-icon { transition: none !important; }
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  padding: 12px 8px 4px 8px;
  opacity: 0.8;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-sidebar);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item:focus,
.nav-item:visited {
  text-decoration: none !important;
}

.nav-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-sidebar-title);
}

.nav-item.active {
  background: var(--arcade-persian-blue-soft);
  border-left: 3px solid var(--arcade-persian-blue);
  color: var(--arcade-persian-blue);
  font-weight: 700;
  box-shadow: 0 4px 16px -6px rgba(0, 56, 188, 0.25);
  text-decoration: none !important;
}

.dark .nav-item.active {
  color: var(--arcade-powder-blue);
  background: rgba(0, 56, 188, 0.22);
}

.nav-icon,
.nav-svg-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.nav-item:hover .nav-svg-icon {
  transform: translateX(2px);
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.4));
}

.nav-item.active .nav-svg-icon {
  stroke: var(--arcade-persian-blue, #3B82F6);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.sidebar-promo {
  background: var(--bg-sidebar-promo);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 14px;
  color: var(--text-sidebar-title);
  box-shadow: var(--card-shadow);
}

.promo-title { font-size: 12px; font-weight: 700; color: var(--text-promo-title); margin-bottom: 4px; }
.promo-desc { font-size: 11px; color: var(--text-promo-desc); margin-bottom: 10px; line-height: 1.4; }

.btn-promo {
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, #8F6B18 0%, #D4AF37 100%);
  color: #050505;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  background-color: var(--arcade-page-bg, #070911);
  transition: min-width 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- GLOBAL SHARED COMPACT HEADER SYSTEM --- */
.top-header {
  min-height: 48px;
  margin: 0;
  padding: 6px 16px;
  background-color: var(--header-bg, #FFFFFF);
  border-bottom: 1px solid var(--header-border, #E2E8F0);
  box-shadow: var(--header-shadow, 0 1px 2px rgba(0, 0, 0, 0.04));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
  position: relative;
  z-index: 20;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-title-group h1 {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 800;
  color: var(--header-text-main, #0F172A);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.header-leading-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--header-text-main, #0F172A);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.header-nav {
  display: flex;
  align-items: stretch;
  align-self: auto;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
}

.header-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--pill-radius);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: color 280ms ease, background-color 280ms ease, transform 280ms ease;
  white-space: nowrap;
}

.header-nav-item:hover { color: var(--text-dark); background: var(--bg-card); }

.header-nav-item::after {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-bear);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-nav-item.active { color: var(--text-dark); font-weight: 800; background: var(--bg-card); }
.header-nav-item.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: static;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
  margin-left: auto;
}

/* Compact Search Bar */
.search-box {
  display: flex;
  align-items: center;
  background: var(--header-input-bg, #FFFFFF);
  border: 1px solid var(--header-input-border, #CBD5E1);
  border-radius: 10px;
  padding: 5px 12px;
  width: clamp(190px, 24vw, 320px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: #0038BC;
  box-shadow: 0 0 0 3px rgba(0, 56, 188, 0.15);
}

.search-box span {
  font-size: 13px;
  color: var(--header-text-muted, #64748B);
}

.search-box input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 12px;
  font-weight: 500;
  color: var(--header-text-main, #0F172A) !important;
  width: 100%;
  margin-left: 6px;
  box-shadow: none !important;
}

.search-box input::placeholder {
  color: var(--header-text-placeholder, #94A3B8) !important;
  font-size: 12px;
}

/* Live Market Intelligence Status Badge */
.live-badge {
  display: none !important;
}

.live-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Control Buttons & Avatars */
.notifications-wrapper {
  position: relative;
}

.btn-icon-badge {
  background: var(--header-badge-bg, #FFFFFF);
  border: 1px solid var(--header-input-border, #CBD5E1);
  color: var(--header-text-main, #0F172A);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon-badge:hover {
  border-color: var(--arcade-persian-blue, #0038BC);
  color: var(--arcade-persian-blue, #0038BC);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-profile .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--header-avatar-bg, #F1F5F9);
  border: 1px solid var(--header-input-border, #CBD5E1);
  color: var(--header-text-main, #0F172A);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-balance-label {
  font-size: 10px;
  color: var(--header-text-muted, #64748B);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.header-balance-val {
  color: var(--header-text-main, #0F172A);
  font-weight: 800;
  font-size: 13px;
}

/* --- THEME VARIABLE MAPPINGS FOR COMPACT HEADER --- */
:root {
  --header-bg: #FFFFFF;
  --header-text-main: #0F172A;
  --header-text-muted: #64748B;
  --header-text-placeholder: #94A3B8;
  --header-border: #E2E8F0;
  --header-input-bg: #FFFFFF;
  --header-input-border: #CBD5E1;
  --header-badge-bg: #FFFFFF;
  --header-avatar-bg: #F1F5F9;
  --header-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"], body.dark {
  --header-bg: #08090B;
  --header-text-main: var(--arcade-platinum, #EEEEEE);
  --header-text-muted: var(--arcade-powder-blue, #D0E6FD);
  --header-text-placeholder: #7D8EAA;
  --header-border: rgba(208, 230, 253, 0.10);
  --header-input-bg: #111214;
  --header-input-border: rgba(208, 230, 253, 0.12);
  --header-badge-bg: #111214;
  --header-avatar-bg: #18191D;
  --header-shadow: none;
}

.badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #0038BC;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notifications-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  padding: 12px;
  width: 280px;
  z-index: 900;
}

.notifications-popover.show {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popover-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.popover-item {
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--bg-app);
  cursor: pointer;
  transition: background 0.15s ease;
}

.popover-item:hover {
  background: var(--pastel-blue);
}

.popover-item-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
}

.popover-item-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  color: var(--pastel-green-text);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--pill-radius);
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-bull);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-bull);
  animation: pulse-dot 1.8s infinite;
}

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

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.avatar {
  width: 34px;
  height: 34px;
  background: var(--pastel-blue);
  color: var(--pastel-blue-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.workspace-container {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Pastel Cards */
.pastel-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pastel-card {
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pastel-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.pastel-card.blue { background-color: var(--pastel-blue); color: var(--pastel-blue-text); }
.pastel-card.green { background-color: var(--pastel-green); color: var(--pastel-green-text); }
.pastel-card.amber { background-color: var(--pastel-amber); color: var(--pastel-amber-text); }
.pastel-card.purple { background-color: var(--pastel-purple); color: var(--pastel-purple-text); }

.pastel-card-header { display: flex; justify-content: center; font-size: 14px; font-weight: 800; letter-spacing: -0.1px; opacity: 0.9; }
.pastel-card-val { font-size: 20px; font-weight: 800; text-align: center; line-height: 1.1; margin-top: -2px; }
.pastel-card-sub { font-size: 11px; opacity: 0.85; text-align: center; margin-top: 4px; }

/* SVG CIRCULAR INTELLIGENCE GAUGE STYLES */
.circular-card {
  align-items: center;
  text-align: center;
}

.circular-gauge-wrapper {
  width: min(100%, 130px);
  aspect-ratio: 1.22;
  margin: 10px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gauge-bg {
  stroke: rgba(30, 48, 80, 0.2);
  stroke-width: 7;
  fill: none;
  stroke-linecap: round;
}

.gauge-ring {
  --gauge-color: #22a06b;
  stroke: var(--gauge-color);
  stroke-width: 7;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 50 100;
  filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--gauge-color) 35%, transparent));
  will-change: stroke-dasharray;
}

.gauge-ring.bull {
  --gauge-color: #1f9d69;
}

.gauge-ring.bear {
  --gauge-color: #e05a47;
}

.gauge-ring.amber {
  --gauge-color: #d89a2b;
}

.gauge-ring.purple { --gauge-color: #6975c8; }

.gauge-needle {
  stroke: #253657;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: #fff;
  filter: drop-shadow(0 2px 2px rgba(25, 42, 70, 0.22));
  will-change: transform;
}

.gauge-needle circle {
  stroke: var(--gauge-color, #253657);
  stroke-width: 2.5;
}

@media (prefers-reduced-motion: reduce) {
  .gauge-ring, .gauge-needle { will-change: auto; }
}

/* GAUGE-BASED DASHBOARD PANEL CARD STYLES */
.panel-gauge-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.mini-gauges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.mini-gauge-box {
  background: rgba(11, 16, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.mini-gauge-title {
  color: var(--text-muted);
  font-weight: 600;
}

.gauge-track-bar {
  width: 100%;
  height: 6px;
  background: rgba(30, 48, 80, 0.5);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.gauge-track-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--accent-blue);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-track-fill.bull { background: linear-gradient(90deg, #00f2fe, #10b981); }
.gauge-track-fill.bear { background: linear-gradient(90deg, #f87171, #ef4444); }
.gauge-track-fill.cyan { background: linear-gradient(90deg, #38bdf8, #00f2fe); }
.gauge-track-fill.amber { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.gauge-track-fill.purple { background: linear-gradient(90deg, #c084fc, #8b5cf6); }

.range-gauge-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.range-gauge-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 11px;
}

.range-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.range-track-bar {
  width: 100%;
  height: 8px;
  background: rgba(30, 48, 80, 0.5);
  border-radius: 9999px;
  position: relative;
}

.range-track-fill {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, #38bdf8, #10b981);
}

.range-track-fill.cyan { background: linear-gradient(90deg, #00f2fe, #38bdf8); }
.range-track-fill.purple { background: linear-gradient(90deg, #c084fc, #8b5cf6); }

.range-marker-pin {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 16px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
}

.range-status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.account-gauge-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.account-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.gauge-center-content {
  position: absolute;
  top: 33%; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  pointer-events: none;
}

/* Chart & Cards Workspace */
.chart-workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: calc(var(--card-radius) + 4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12), var(--card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Fullscreen Chart Card State */
.chart-card:fullscreen, .chart-card.is-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 99999 !important;
}

.chart-card:fullscreen .tradingview-viewport,
.chart-card.is-fullscreen .tradingview-viewport {
  height: calc(100vh - 110px) !important;
}

/* LIVE INSTRUMENT HEADER BAR (Reference Image 2 Elevated Surface) */
.instrument-header-bar {
  padding: 16px 20px;
  background: var(--bg-card-header, linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(30, 58, 138, 0.45) 100%));
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.instrument-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inst-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inst-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.inst-symbol {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-blue);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

.market-status-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--pastel-green);
  color: var(--pastel-green-text);
  padding: 2px 8px;
  border-radius: var(--pill-radius);
}

.inst-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.inst-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  font-family: 'Inter', monospace;
}

.inst-change.up { color: var(--accent-bull); font-weight: 700; }
.inst-change.down { color: var(--accent-bear); font-weight: 700; }

.bid-ask-readout {
  font-size: 11px;
  color: var(--text-muted);
}

/* Header Quick Action Controls */
.header-quick-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.engine-mode-switcher {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 2px;
  border-radius: var(--pill-radius);
  gap: 2px;
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: var(--pill-radius);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.btn-header-action {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: var(--pill-radius);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-header-action:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

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

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  padding: 8px;
  width: 220px;
  z-index: 900;
}

.dropdown-menu.show {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.dropdown-item {
  border: none;
  background: transparent;
  color: var(--text-dark);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--pastel-blue);
  color: var(--pastel-blue-text);
  font-weight: 600;
}

/* TradingView Viewport Container */
.tradingview-viewport {
  width: 100%;
  height: 520px;
  background: #0b0e14;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.chart-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-card);
}

.chart-controls-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.segmented-control {
  display: flex;
  background: var(--bg-app);
  padding: 3px;
  border-radius: var(--pill-radius);
  border: 1px solid var(--border-subtle);
  gap: 2px;
  overflow-x: auto;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: var(--pill-radius);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.seg-btn.active {
  background: var(--bg-card);
  color: var(--accent-blue);
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.12);
}

select {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-dark);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.chart-viewport { height: 380px; background: #0b0e14; position: relative; width: 100%; }
.subpanel-viewport { height: 120px; background: #090d16; border-top: 1px solid #1e293b; position: relative; width: 100%; }
canvas { width: 100%; height: 100%; display: block; }

.right-panel-stack { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.3px;
}

.watchlist-list { display: flex; flex-direction: column; gap: 6px; }

.watchlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-app);
  cursor: pointer;
  transition: all 0.15s;
}

.watchlist-item:hover, .watchlist-item.active {
  background: var(--pastel-blue);
  border-left: 3px solid var(--accent-blue);
}

.wl-code { font-weight: 700; font-size: 12px; color: var(--text-dark); }
.wl-name { font-size: 10px; color: var(--text-muted); display: block; }
.wl-price { font-weight: 600; font-size: 12px; text-align: right; color: var(--text-dark); }
.wl-change.up { color: var(--accent-bull); font-size: 10px; font-weight: 700; }
.wl-change.down { color: var(--accent-bear); font-size: 10px; font-weight: 700; }

.analysis-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Intelligence workspace: data is populated only from the active analysis engine. */
.intelligence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.intelligence-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.intelligence-card .card-title { margin-bottom: 0; }
.intelligence-empty, .unavailable-card p { color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.confluence-list { display: flex; flex-direction: column; gap: 6px; }
.confluence-factor { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 6px; color: var(--text-muted); background: var(--bg-app); font-size: 11px; }
.confluence-factor.is-active { color: var(--text-dark); background: var(--pastel-green); }
.confluence-factor strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-grid div { min-width: 0; }
.plan-grid dt { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.plan-grid dd { color: var(--text-dark); font-size: 12px; font-weight: 700; margin-top: 3px; overflow-wrap: anywhere; }
.risk-calculator { grid-column: span 2; }
.risk-input-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.risk-input-grid label { display: flex; flex-direction: column; gap: 4px; color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.risk-input-grid input, .copilot-form input { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--border-card); border-radius: 6px; color: var(--text-dark); background: var(--bg-app); font: inherit; }
.risk-results { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--text-main); font-size: 12px; }
.risk-results small { flex-basis: 100%; color: var(--text-muted); }
.copilot-card { grid-column: span 1; }
.copilot-response { min-height: 58px; color: var(--text-main); font-size: 12px; line-height: 1.55; }
.copilot-form { display: flex; gap: 8px; margin-top: auto; }
.copilot-form .btn-primary { white-space: nowrap; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.badge-item {
  background: var(--bg-app);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.badge-val { font-size: 12px; font-weight: 700; color: var(--text-dark); }
.range-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); font-size: 12px; }

.data-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
  overflow-x: auto;
}

.data-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; min-width: 600px; }
.data-table th { text-align: left; padding: 10px 12px; background: var(--bg-app); color: var(--text-muted); font-weight: 700; font-size: 10px; letter-spacing: 0.5px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); color: var(--text-dark); font-weight: 500; }

.table-badge { padding: 4px 10px; border-radius: var(--pill-radius); font-weight: 700; font-size: 10px; display: inline-block; }
.table-badge.LONG { background: var(--pastel-green); color: var(--pastel-green-text); }
.table-badge.SHORT { background: var(--pastel-rose); color: var(--pastel-rose-text); }

/* SETTINGS CENTER STYLING */
.settings-workspace { display: flex; flex-direction: column; gap: 16px; }
.settings-header { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); padding: 16px 20px; border: 1px solid var(--border-card); border-radius: var(--card-radius); flex-wrap: wrap; gap: 12px; }
.settings-title { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.settings-subtitle { font-size: 12px; color: var(--text-muted); }
.settings-search { display: flex; align-items: center; background: var(--bg-app); border: 1px solid var(--border-card); border-radius: var(--pill-radius); padding: 6px 14px; width: 260px; }
.settings-search input { border: none; background: transparent; outline: none; font-size: 12px; color: var(--text-dark); width: 100%; margin-left: 8px; }
.settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.settings-tabs { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--card-radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.settings-tab-btn { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: none; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; transition: all 0.15s; }
.settings-tab-btn:hover { background: var(--bg-app); color: var(--text-dark); }
.settings-tab-btn.active { background: var(--pastel-blue); color: var(--pastel-blue-text); font-weight: 700; }
.settings-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--card-radius); padding: 20px; box-shadow: var(--card-shadow); margin-bottom: 16px; }
.card-heading { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.card-subheading { font-size: 11px; color: var(--text-muted); margin-bottom: 16px; }
.theme-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.theme-radio-card { border: 2px solid var(--border-card); border-radius: 10px; padding: 12px; cursor: pointer; transition: all 0.15s; background: var(--bg-app); }
.theme-radio-card:hover, .theme-radio-card.active { border-color: var(--accent-blue); background: var(--bg-card); }
.theme-radio-card input { display: none; }
.theme-preview { height: 60px; border-radius: 6px; margin-bottom: 10px; display: flex; overflow: hidden; border: 1px solid var(--border-card); }
.theme-preview.light { background: #f8fafc; }
.theme-preview.light .tp-sidebar { width: 30%; background: #ffffff; border-right: 1px solid #e2e8f0; }
.theme-preview.light .tp-content { flex: 1; padding: 6px; }
.theme-preview.light .tp-card { background: #ffffff; height: 100%; border-radius: 4px; border: 1px solid #e2e8f0; }
.theme-preview.dark { background: #090d16; }
.theme-preview.dark .tp-sidebar { width: 30%; background: #0f172a; border-right: 1px solid #1e293b; }
.theme-preview.dark .tp-content { flex: 1; padding: 6px; }
.theme-preview.dark .tp-card { background: #0f172a; height: 100%; border-radius: 4px; border: 1px solid #1e293b; }
.theme-preview.system { background: linear-gradient(135deg, #f8fafc 50%, #090d16 50%); }
.theme-title { font-size: 12px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.theme-desc { font-size: 10px; color: var(--text-muted); line-height: 1.3; }
.form-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-dark); }
.form-help { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.form-control { background: var(--bg-app); border: 1px solid var(--border-card); border-radius: 6px; padding: 6px 10px; font-size: 12px; color: var(--text-dark); outline: none; }
.toggle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg-app); border-radius: 8px; }
.toggle-label { font-size: 12px; font-weight: 500; color: var(--text-dark); }
.toggle-switch { width: 36px; height: 20px; appearance: none; background: var(--border-card); border-radius: 9999px; position: relative; cursor: pointer; outline: none; transition: background 0.2s; }
.toggle-switch:checked { background: var(--accent-bull); }
.toggle-switch::after { content: ''; width: 16px; height: 16px; background: #ffffff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: transform 0.2s; }
.toggle-switch:checked::after { transform: translateX(16px); }

/* Buttons & Toast */
.btn-primary { background: var(--accent-blue); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.btn-primary:hover { background: #2563eb; }
.btn-secondary { background: var(--bg-app); color: var(--text-dark); border: 1px solid var(--border-card); padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-danger-outline { background: transparent; color: var(--accent-bear); border: 1px solid var(--accent-bear); padding: 8px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; width: 100%; transition: background 0.15s; }
.btn-danger-outline:hover { background: rgba(239, 68, 68, 0.1); }
.settings-toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg-sidebar); color: var(--text-white); padding: 10px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); transform: translateY(100px); opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 9999; }
.settings-toast.show { transform: translateY(0); opacity: 1; }

/* Modal Backdrop */
.modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--card-radius); padding: 24px; width: 400px; max-width: 90%; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3); }
.modal-card h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.modal-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-danger { background: var(--accent-bear); color: #fff; border: none; padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }

/* Debug Panel */
.debug-panel { background: var(--bg-sidebar); color: var(--text-sidebar-title); border-radius: var(--card-radius); padding: 14px 18px; margin-top: 10px; font-size: 11px; border: 1px solid var(--border-sidebar); }
.debug-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.debug-title { font-weight: 700; color: var(--accent-cyan); }
.debug-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.debug-card { background: var(--bg-app); padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-card); }
.debug-card-title { font-weight: 600; color: var(--text-muted); margin-bottom: 4px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 2px; }
.debug-row { display: flex; justify-content: space-between; margin-bottom: 2px; color: var(--text-main); }
.text-green { color: var(--accent-bull); }
.text-red { color: var(--accent-bear); }

/* PWA STYLES */
.btn-pwa-install { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%); color: #ffffff; border: none; padding: 7px 14px; border-radius: var(--pill-radius); font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); letter-spacing: 0.2px; white-space: nowrap; }
.btn-pwa-install:hover { transform: translateY(-1.5px); box-shadow: 0 4px 14px rgba(59, 130, 246, 0.5); filter: brightness(1.1); }
.btn-pwa-install.installed { background: rgba(16, 185, 129, 0.15); color: var(--accent-bull); border: 1px solid rgba(16, 185, 129, 0.4); box-shadow: none; }
.btn-sidebar-pwa { margin-top: 10px; width: 100%; background: var(--bg-sidebar-pwa-btn); border: 1px solid var(--border-card); color: var(--text-sidebar-pwa-btn); padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.2s ease; }
.pwa-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(9, 13, 22, 0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 99999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.pwa-modal-overlay.active { opacity: 1; pointer-events: auto; }
.pwa-modal-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px; padding: 28px; width: 90%; max-width: 480px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pwa-modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-card); color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.pwa-modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-card); }
.pwa-modal-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.pwa-modal-header h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.pwa-modal-header p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pwa-steps-container h4 { font-size: 13px; font-weight: 600; color: var(--accent-blue); margin-bottom: 12px; }
.pwa-steps { padding-left: 20px; font-size: 13px; color: var(--text-main); line-height: 1.8; }
.pwa-steps li { margin-bottom: 8px; }
.icon-inline { display: inline-block; vertical-align: middle; margin: 0 2px; }
.already-installed-box { text-align: center; padding: 20px 10px; }
.already-installed-box .check-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: rgba(16, 185, 129, 0.15); color: var(--accent-bull); border-radius: 50%; font-size: 28px; font-weight: bold; margin-bottom: 12px; }
.pwa-modal-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-card); text-align: center; }
.pwa-badge { display: inline-block; background: var(--pastel-blue); color: var(--pastel-blue-text); padding: 6px 14px; border-radius: var(--pill-radius); font-size: 11px; font-weight: 600; }

/* LANDING PAGE STYLES */
body.landing-body {
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  background: var(--app-atmosphere);
  background-attachment: fixed;
  color: var(--text-main);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-sidebar);
  padding: 12px 32px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.landing-nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.landing-nav-brand .brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, var(--text-dark));
  letter-spacing: -0.5px;
}

.landing-nav-brand .brand-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.landing-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-sidebar);
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.landing-nav-links a:hover {
  color: var(--accent-blue);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-btn-login {
  color: var(--text-dark);
  background: transparent;
  border: 1px solid var(--border-card);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.landing-btn-login:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-white);
}

.landing-btn-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-btn-cta:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Landing Hero Section */
.landing-hero {
  padding: 90px 24px 60px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.landing-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}

.landing-hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-white);
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.landing-hero-title span {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
  font-weight: 400;
}

.landing-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.landing-hero-preview {
  background: var(--surface-glass);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--card-shadow-hover);
  backdrop-filter: blur(18px);
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-app);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green { background: #10b981; }

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

.preview-mini-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
}

.preview-mini-title { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.preview-mini-val { font-size: 16px; font-weight: 800; color: var(--text-white); }

/* Lightweight trading illustration for the landing-page terminal preview. */
.forex-chart-illustration {
  position: relative;
  height: 240px;
  padding: 12px 46px 28px 10px;
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: 8px;
}
.forex-chart-illustration svg { width: 100%; height: 100%; display: block; }
.forex-chart-grid path { stroke: var(--border-sidebar); stroke-width: 1; opacity: .7; }
.forex-crt-zone { fill: var(--accent-blue); opacity: .10; }
.forex-average-line { fill: none; stroke: var(--accent-yellow); stroke-width: 1.2; stroke-dasharray: 5 5; opacity: .85; }
.forex-candles { color: var(--accent-bull); fill: var(--accent-bull); stroke: var(--accent-bull); stroke-width: 2; opacity: .65; }
.forex-price-area { fill: url(#forexPriceFill); }
.forex-price-line { fill: none; stroke: var(--accent-blue); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.forex-last-price { fill: var(--accent-bull); stroke: var(--bg-card); stroke-width: 3; }
.forex-breakout { fill: none; stroke: var(--accent-bull); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.forex-chart-scale { position: absolute; top: 14px; right: 9px; bottom: 32px; display: flex; flex-direction: column; justify-content: space-between; color: var(--text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.forex-chart-legend { position: absolute; bottom: 8px; left: 12px; right: 12px; display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: 10px; }
.forex-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.forex-chart-legend i { width: 10px; height: 2px; display: inline-block; border-radius: 2px; }
.legend-price { background: var(--accent-blue); }.legend-range { background: var(--accent-blue); opacity: .45; height: 6px !important; }
.forex-chart-time { margin-left: auto; opacity: .75; }

.news-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.news-filters, .tool-form { display: flex; flex-wrap: wrap; gap: 10px; }
.news-filters select, .news-filters input, .tool-form input, .tool-form select { min-height: 38px; border: 1px solid #334155; border-radius: 8px; background: #0f172a; color: #f8fafc; padding: 8px 12px; font: inherit; font-size: 13px; }
.news-filters select:focus, .news-filters input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25); }
.news-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: #0b0f19; }
.news-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.news-table th, .news-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.news-table th { color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; background: rgba(15, 23, 42, 0.8); }
.news-table td { color: #f8fafc; font-weight: 500; }
.news-table td strong { color: #ffffff; font-weight: 700; }
.news-table tr:hover td { background: rgba(255, 255, 255, 0.04); }
.news-empty, .news-loading { padding: 36px 16px; color: #94a3b8; font-size: 14px; text-align: center; font-weight: 500; }
.impact-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
.impact-high { background: rgba(239, 68, 68, 0.18); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.impact-medium { background: rgba(245, 158, 11, 0.18); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.impact-low { background: rgba(34, 197, 94, 0.18); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.4); }
.news-disclosure { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: #0f172a; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 16px 20px; margin-top: 20px; }
.news-disclosure p { flex: 1 1 360px; color: #cbd5e1; font-size: 13px; line-height: 1.55; margin: 0; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.tool-card { display: flex; flex-direction: column; gap: 14px; }.tool-form label { flex: 1 1 120px; display: flex; flex-direction: column; gap: 5px; color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }.tool-result { color: var(--text-main); font-size: 12px; line-height: 1.55; }.tool-journal { grid-column: span 2; }

.landing-chart-panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border-sidebar);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 var(--surface-glass);
}

/* Landing Section Helper */
.landing-section {
  padding: 80px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Trust Bar Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.trust-card {
  text-align: center;
  padding: 12px;
}

.trust-icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: inline-block;
}

.trust-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.trust-lbl {
  font-size: 13px;
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 30px -10px rgba(59, 130, 246, 0.25);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}

.step-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.12);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.step-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card.featured {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.3);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
}

.pricing-name { font-size: 20px; font-weight: 800; color: var(--text-white); margin-bottom: 6px; }
.pricing-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-bull);
  font-weight: bold;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
}

.testimonial-quote {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pastel-blue);
  color: var(--pastel-blue-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-name { font-size: 13px; font-weight: 700; color: var(--text-white); }
.testimonial-role { font-size: 11px; color: var(--text-muted); }

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Landing CTA Banner */
.landing-cta-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-sidebar);
  border-radius: 24px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  margin-bottom: 80px;
}

.landing-cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.landing-cta-banner p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.landing-footer {
  background: #070b12;
  border-top: 1px solid var(--border-sidebar);
  padding: 60px 24px 30px;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s ease;
}

.footer-col ul a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.disclaimer-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* FLOATING MOTION ENGINE & SCROLL REVEAL (mobile-landing.daisyui.com Inspired) */
@keyframes floatSlow {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes floatMedium {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes floatFast {
  0% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
}

.float-slow {
  animation: floatSlow 8s ease-in-out infinite;
  will-change: transform;
}

.float-medium {
  animation: floatMedium 6s ease-in-out infinite;
  will-change: transform;
}

.float-fast {
  animation: floatFast 5s ease-in-out infinite;
  will-change: transform;
}

/* Floating Elements Positioning Container */
.hero-visual-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.floating-card {
  position: absolute;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.floating-card-1 {
  top: -24px;
  left: -20px;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 40px;
  right: -24px;
  animation-delay: -2s;
}

.floating-card-3 {
  bottom: 30px;
  left: -30px;
  animation-delay: -4s;
}

.floating-card-4 {
  bottom: -20px;
  right: 20px;
  animation-delay: -1s;
}

/* Scroll Reveal Observer Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating Feature Storytelling Sections */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.story-section.reverse {
  direction: rtl;
}

.story-section.reverse > * {
  direction: ltr;
}

.story-visual-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  box-shadow: var(--card-shadow);
}

/* Accessibility — Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .float-slow, .float-medium, .float-fast {
    animation: none !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* RESPONSIVE BREAKPOINTS FOR LANDING & DASHBOARD */
@media (max-width: 1400px) {
  .analysis-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-card-1 { left: 10px; }
  .floating-card-2 { right: 10px; }
  .floating-card-3 { left: 10px; }
}

/* Mobile Drawer Background Lock & Overflow Protection */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Touch Target Sizing & Accessible Focus Ring */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #38bdf8 !important;
  outline-offset: 2px !important;
}

@media (max-width: 1200px) {
  .pastel-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-workspace-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .intelligence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-section { grid-template-columns: 1fr; gap: 32px; }
  .story-section.reverse { direction: ltr; }
}

@media (max-width: 1024px) {
  .sidebar, body.sidebar-collapsed .sidebar { width: 232px; padding-inline: 10px; position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-100%); box-shadow: 10px 0 25px rgba(0,0,0,0.5); }
  .sidebar-collapse-control { display: none; }
  body.sidebar-collapsed .sidebar .nav-item { justify-content: flex-start; gap: 12px; padding: 9px 12px; }
  body.sidebar-collapsed .sidebar .nav-item > span { display: inline; }
  body.sidebar-collapsed .sidebar .sidebar-section-title { height: auto; padding: 12px 8px 4px; font-size: 10px; }
  body.sidebar-collapsed .sidebar-collapse-control { justify-content: flex-end; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .mobile-menu-btn { display: block; }
  .settings-grid { grid-template-columns: 1fr; }
  .theme-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-nav-links { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .floating-card { display: none; }
}

@media (max-width: 768px) {
  .top-header { min-height: 48px; margin: 0; padding: 6px 12px; flex-direction: row; justify-content: space-between; }
  .header-nav { display: none; }
  .header-actions { position: static; gap: 8px; margin-left: auto; }
  .search-box { width: 140px; }
  .live-badge span:not(.live-dot) { display: none; }
  .workspace-container { padding: 14px; gap: 14px; }
  .pastel-cards-grid { grid-template-columns: 1fr; }
  .analysis-cards-grid { grid-template-columns: 1fr; }
  .intelligence-grid { grid-template-columns: 1fr; }
  .risk-calculator, .copilot-card { grid-column: auto; }
  .risk-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-cards-grid { grid-template-columns: 1fr; }
  .toggle-grid { grid-template-columns: 1fr; }
  .debug-grid { grid-template-columns: repeat(2, 1fr); }
  .tradingview-viewport { height: 380px; }
  .forex-chart-illustration { height: 210px; padding-right: 40px; }
  .forex-chart-time { display: none !important; }
  .instrument-header-bar { flex-direction: column; align-items: flex-start; }
  .landing-hero-title { font-size: 34px; }
  .landing-hero-sub { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .top-header { margin: 0; padding: 6px 10px; min-height: 48px; gap: 8px; }
  .header-actions { gap: 8px; }
  .user-profile div:last-child { display: none; }
  .search-box { display: none; }
  .btn-pwa-install .btn-label { display: none; }
  .debug-grid { grid-template-columns: 1fr; }
  .landing-nav { padding: 12px 16px; }
  .landing-hero { padding: 50px 16px 40px; }
  .forex-chart-illustration { height: 185px; padding: 10px 36px 26px 6px; }
  .forex-chart-scale { right: 6px; font-size: 9px; }
}

/* ============================================================
   ARCADE FX — INSTITUTIONAL UI REDESIGN 2026
   Appended styles — no existing rules modified
   ============================================================ */

/* --- GLASS CARD SYSTEM --- */
.glass-card {
  background: var(--surface);
  border: 1px solid rgba(150, 133, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 20px 48px -14px rgba(0,0,8,0.78), inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  box-shadow: 0 28px 60px -14px rgba(0,0,8,0.92), 0 0 28px rgba(117,72,210,0.14), inset 0 1px 0 rgba(255,255,255,0.09);
  border-color: rgba(150,133,255,0.28);
}

.glass-card--glow {
  border-color: rgba(93,116,255,0.4);
  box-shadow: 0 20px 48px -14px rgba(0,0,8,0.78), 0 0 40px rgba(93,116,255,0.18), inset 0 1px 0 rgba(255,255,255,0.07);
}

.glass-card-inner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

:root:not([data-theme="dark"]) .glass-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(85,65,199,0.15);
  box-shadow: 0 10px 30px -14px rgba(39,64,128,0.18), 0 1px 2px rgba(85,65,199,0.05);
}
:root:not([data-theme="dark"]) .glass-card::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 60%);
}

/* --- DASHBOARD HEADER UPGRADE --- */
.dash-header-instrument {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.dash-header-inst-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-header-inst-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.dash-header-inst-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-blue);
  color: #fff;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.dash-header-mkt-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-bull);
  background: rgba(61, 215, 154, 0.13);
  border: 1px solid rgba(61, 215, 154, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dash-header-mkt-badge .live-dot {
  width: 6px;
  height: 6px;
}

.dash-header-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dash-header-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1;
}

.dash-header-change {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dash-header-change.up { color: var(--accent-bull); }
.dash-header-change.down { color: var(--accent-bear); }

.dash-header-bidask {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- MARKET TICKER STRIP (CONTINUOUS MARQUEE LOOP) --- */
.market-ticker-strip {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  width: 100%;
  padding: 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marketTickerMarquee 35s linear infinite;
  will-change: transform;
}

.market-ticker-strip:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-set {
  display: flex;
  flex-shrink: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-right: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
  min-width: 160px;
}

.ticker-item:hover {
  background: var(--bg-sidebar-hover);
}

.ticker-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticker-item__symbol {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.ticker-item__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.ticker-item__change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}
.ticker-item__change.up { color: var(--accent-bull); }
.ticker-item__change.down { color: var(--accent-bear); }

.ticker-item__sparkline {
  width: 60px;
  height: 28px;
  flex-shrink: 0;
}

.ticker-spark-path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ticker-spark-area {
  opacity: 0.18;
}

/* --- MARKET OVERVIEW CARD --- */
.market-overview-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

.market-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.market-overview-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.market-overview-greeting {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.market-overview-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7548d2, #5d74ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -6px rgba(93,116,255,0.5);
}

.cap-metrics-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cap-metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(150,133,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  flex: 1;
  min-width: 140px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cap-metric-card:hover,
.cap-metric-card.active {
  border-color: rgba(93,116,255,0.5);
  box-shadow: 0 0 24px rgba(93,116,255,0.15), inset 0 0 20px rgba(93,116,255,0.06);
  background: rgba(93,116,255,0.08);
}

.cap-metric-card__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.cap-metric-card__value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.cap-metric-card__change {
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}
.cap-metric-card__change.up { color: var(--accent-bull); }
.cap-metric-card__change.down { color: var(--accent-bear); }

.market-overview-chart-area {
  position: relative;
  height: 180px;
  margin: 0 -4px;
}

.market-overview-chart-area svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.moc-total-display {
  text-align: right;
}

.moc-total-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.moc-total-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.market-overview-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

/* --- MARKET INTELLIGENCE CARD REDESIGN --- */
.mi-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mi-card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mi-card-title-icon {
  font-size: 16px;
}

.mi-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.mi-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.mi-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mi-metric-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mi-metric-value {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.mi-metric-value.bullish, .mi-metric-value.bull { color: var(--accent-bull); }
.mi-metric-value.bearish, .mi-metric-value.bear { color: var(--accent-bear); }
.mi-metric-value.neutral { color: var(--accent-yellow); }
.mi-metric-value.cyan { color: var(--accent-cyan); }
.mi-metric-value.purple { color: var(--accent-purple); }

.mi-track {
  width: 100%;
  height: 4px;
  background: rgba(30,48,80,0.5);
  border-radius: 999px;
  overflow: hidden;
}

.mi-track-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00f2fe, #10b981);
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}
.mi-track-fill.bull { background: linear-gradient(90deg, #00f2fe, #10b981); }
.mi-track-fill.bear { background: linear-gradient(90deg, #ff6378, #ef4444); }
.mi-track-fill.cyan { background: linear-gradient(90deg, #38bdf8, #00f2fe); }
.mi-track-fill.amber { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.mi-track-fill.purple { background: linear-gradient(90deg, #c084fc, #8b5cf6); }

/* Strength Gauge (Center) */
.strength-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  flex-shrink: 0;
  width: 140px;
}

.strength-gauge-svg {
  width: 120px;
  height: 120px;
  overflow: visible;
}

.strength-gauge-bg {
  fill: none;
  stroke: rgba(30,48,80,0.5);
  stroke-width: 8;
  stroke-linecap: round;
}

.strength-gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke: url(#strengthGradient);
  filter: drop-shadow(0 0 8px rgba(0,242,254,0.45));
  transition: stroke-dasharray 0.8s cubic-bezier(0.4,0,0.2,1);
}

.strength-gauge-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: 'Inter', sans-serif;
}

.strength-gauge-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* Segmented strength gauge ticks */
.strength-gauge-ticks .tick {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 2;
  stroke-linecap: round;
}

/* --- CRT RADIAL GAUGES --- */
.crt-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crt-gauges-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-end;
}

.crt-radial-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.crt-gauge-svg {
  width: 100%;
  max-width: 110px;
  aspect-ratio: 1;
  overflow: visible;
}

.crt-arc-bg {
  fill: none;
  stroke: rgba(30,48,80,0.55);
  stroke-width: 7;
  stroke-linecap: round;
}

.crt-arc-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s cubic-bezier(0.4,0,0.2,1);
}

.crt-arc-fill.low {
  stroke: url(#crtLowGrad);
  filter: drop-shadow(0 0 5px rgba(0,242,254,0.4));
}

.crt-arc-fill.eq {
  stroke: url(#crtEqGrad);
  filter: drop-shadow(0 0 5px rgba(100,220,150,0.4));
}

.crt-arc-fill.high {
  stroke: url(#crtHighGrad);
  filter: drop-shadow(0 0 5px rgba(93,116,255,0.4));
}

.crt-gauge-needle-circle {
  fill: #fff;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.6));
}

.crt-gauge-tick-group line {
  stroke: rgba(255,255,255,0.15);
  stroke-linecap: round;
}

.crt-gauge-label-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.crt-gauge-label-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.crt-liquidity-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

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

.crt-liquidity-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.crt-liquidity-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(61,215,154,0.15);
  color: var(--accent-bull);
  border: 1px solid rgba(61,215,154,0.3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.crt-liq-track {
  width: 100%;
  height: 6px;
  background: rgba(30,48,80,0.5);
  border-radius: 999px;
  overflow: hidden;
}

.crt-liq-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5d74ff, #10b981);
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* --- DAILY & WEEKLY EQ CARDS --- */
.eq-card-split {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eq-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.eq-sub-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eq-sub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eq-sub-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eq-sub-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eq-sub-value {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  line-height: 1;
}

.eq-sub-value.daily { color: var(--accent-cyan); }
.eq-sub-value.weekly { color: var(--accent-purple); }

.eq-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.eq-ring-svg {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}

.eq-ring-bg {
  fill: none;
  stroke: rgba(30,48,80,0.55);
  stroke-width: 6;
}

.eq-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.8s cubic-bezier(0.4,0,0.2,1);
}

.eq-ring-fill.daily { stroke: var(--accent-cyan); filter: drop-shadow(0 0 4px rgba(0,242,254,0.5)); }
.eq-ring-fill.weekly { stroke: var(--accent-purple); filter: drop-shadow(0 0 4px rgba(192,132,252,0.5)); }

.eq-ring-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.eq-range-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eq-range-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.eq-range-values {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.eq-range-track {
  width: 100%;
  height: 4px;
  background: rgba(30,48,80,0.5);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.eq-range-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}
.eq-range-fill.daily { background: linear-gradient(90deg, #00f2fe, #38bdf8); }
.eq-range-fill.weekly { background: linear-gradient(90deg, #c084fc, #8b5cf6); }

.eq-weekly-scope {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.eq-weekly-scope-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eq-weekly-scope-track {
  width: 100%;
  height: 5px;
  background: rgba(30,48,80,0.5);
  border-radius: 999px;
  overflow: hidden;
}

.eq-weekly-scope-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5d74ff, #c084fc, #f59e0b);
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* --- ACCOUNT & RISK CARDS --- */
.account-risk-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.account-metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-metric-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-metric-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  line-height: 1;
}

.account-metric-value.positive { color: var(--accent-bull); }
.account-metric-value.negative { color: var(--accent-bear); }

.account-spark-svg {
  width: 100%;
  height: 36px;
  overflow: visible;
  display: block;
}

.account-spark-path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-spark-path.balance { stroke: var(--accent-bull); }
.account-spark-path.equity { stroke: var(--accent-cyan); }
.account-spark-path.pl-pos { stroke: var(--accent-bull); }
.account-spark-path.pl-neg { stroke: var(--accent-bear); }

.account-spark-area {
  opacity: 0.14;
}

/* Risk Sizing */
.risk-sizing-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

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

.risk-sizing-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.risk-sizing-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-bear);
}

.risk-sizing-track {
  width: 100%;
  height: 6px;
  background: rgba(30,48,80,0.5);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.risk-sizing-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #ef4444);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* --- LANDING TERMINAL CHART --- */
.landing-terminal-frame {
  background: rgba(6, 8, 28, 0.92);
  border: 1px solid rgba(93, 116, 255, 0.3);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(93,116,255,0.08),
    0 32px 80px -20px rgba(0,0,8,0.95),
    0 0 60px rgba(93,116,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

.landing-terminal-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93,116,255,0.5), rgba(0,242,254,0.3), transparent);
  pointer-events: none;
}

.landing-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-window-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.2px;
}

.terminal-live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

.terminal-live-status .live-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.landing-terminal-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 12px;
  background: rgba(255,255,255,0.02);
}

.terminal-chart-inst {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.terminal-chart-inst-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.terminal-chart-inst-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

.terminal-grade-badge {
  background: rgba(93,116,255,0.18);
  border: 1px solid rgba(93,116,255,0.4);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.landing-dual-chart-wrap {
  position: relative;
  padding: 12px 20px 8px;
  height: 340px;
}

.landing-dual-chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.dual-chart-y-label {
  position: absolute;
  top: 16px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  writing-mode: horizontal-tb;
}
.dual-chart-y-label.left { left: 22px; }
.dual-chart-y-label.right { right: 22px; }

.dual-chart-highlight {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 5;
}

.dual-chart-highlight-value {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.dual-chart-highlight-value .unit {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}

.dual-chart-grid line { stroke: rgba(255,255,255,0.06); stroke-width: 1; }
.dual-chart-avg-line { stroke: rgba(0,242,254,0.4); stroke-width: 1.5; stroke-dasharray: 6 4; fill: none; }
.dual-chart-avg-label { fill: rgba(0,242,254,0.75); font-size: 10px; font-weight: 700; font-family: 'Inter',sans-serif; }

.dual-chart-area-cyan { fill: url(#dualCyanFill); }
.dual-chart-area-orange { fill: url(#dualOrangeFill); }
.dual-chart-line-cyan { fill: none; stroke: #00f2fe; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(0,242,254,0.6)); }
.dual-chart-line-orange { fill: none; stroke: #f97316; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(249,115,22,0.55)); }

.dual-chart-point-cyan { fill: #00f2fe; stroke: rgba(0,0,0,0.5); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(0,242,254,0.9)); }
.dual-chart-point-orange { fill: #f97316; stroke: rgba(0,0,0,0.5); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(249,115,22,0.8)); }

.landing-chart-time-axis {
  display: flex;
  justify-content: space-between;
  padding: 4px 24px 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.landing-chart-x-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 24px 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

.landing-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 24px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chart-legend-dot.cyan { background: #00f2fe; box-shadow: 0 0 6px rgba(0,242,254,0.6); }
.chart-legend-dot.orange { background: #f97316; box-shadow: 0 0 6px rgba(249,115,22,0.6); }

.landing-terminal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 10px;
}

.terminal-footer-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.terminal-footer-pill-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.terminal-footer-pill-badge.crt { background: rgba(93,116,255,0.25); color: #a5b4fc; }
.terminal-footer-pill-badge.dxy { background: rgba(251,191,36,0.2); color: #fbbf24; }

.terminal-footer-pill-text {
  color: rgba(255,255,255,0.7);
}

.terminal-footer-pill-value {
  color: #6ee7b7;
  font-weight: 700;
}

.terminal-footer-pill-corr {
  color: rgba(255,255,255,0.85);
}

/* Light mode adjustments for new components */
:root:not([data-theme="dark"]) .market-ticker-strip {
  background: rgba(255,255,255,0.7);
  border-color: rgba(85,65,199,0.1);
}
:root:not([data-theme="dark"]) .mi-metric-box,
:root:not([data-theme="dark"]) .glass-card-inner,
:root:not([data-theme="dark"]) .eq-sub-card,
:root:not([data-theme="dark"]) .account-metric-card,
:root:not([data-theme="dark"]) .cap-metric-card {
  background: rgba(255,255,255,0.6);
  border-color: rgba(85,65,199,0.12);
}
:root:not([data-theme="dark"]) .strength-gauge-bg,
:root:not([data-theme="dark"]) .crt-arc-bg,
:root:not([data-theme="dark"]) .eq-ring-bg,
:root:not([data-theme="dark"]) .mi-track,
:root:not([data-theme="dark"]) .crt-liq-track,
:root:not([data-theme="dark"]) .eq-range-track,
:root:not([data-theme="dark"]) .risk-sizing-track,
:root:not([data-theme="dark"]) .gauge-track-bar {
  stroke: rgba(200,200,220,0.5);
  background: rgba(200,200,220,0.35);
}
:root:not([data-theme="dark"]) .mi-metric-name,
:root:not([data-theme="dark"]) .crt-gauge-label-name,
:root:not([data-theme="dark"]) .eq-sub-label,
:root:not([data-theme="dark"]) .account-metric-label,
:root:not([data-theme="dark"]) .cap-metric-card__label {
  color: var(--text-muted-semantic);
}
:root:not([data-theme="dark"]) .mi-metric-value,
:root:not([data-theme="dark"]) .crt-gauge-label-value,
:root:not([data-theme="dark"]) .eq-sub-value,
:root:not([data-theme="dark"]) .account-metric-value,
:root:not([data-theme="dark"]) .cap-metric-card__value,
:root:not([data-theme="dark"]) .dash-header-price,
:root:not([data-theme="dark"]) .market-overview-greeting {
  color: var(--text-primary);
}
:root:not([data-theme="dark"]) .landing-terminal-frame {
  background: rgba(14,18,40,0.95);
}

/* --- RESPONSIVE — NEW COMPONENTS --- */
@media (max-width: 1400px) {
  .cap-metrics-row { flex-wrap: wrap; }
  .cap-metric-card { min-width: 120px; }
}

@media (max-width: 1200px) {
  .mi-layout { grid-template-columns: 1fr; }
  .strength-gauge-container { width: 100%; flex-direction: row; padding: 0; }
  .account-metrics-row { grid-template-columns: 1fr; gap: 8px; }
  .market-overview-card { padding: 20px; }
  .market-overview-greeting { font-size: 22px; }
  .moc-total-value { font-size: 26px; }
}

@media (max-width: 1024px) {
  .market-ticker-strip { padding: 0 10px; }
  .ticker-item { min-width: 140px; padding: 8px 14px; }
  .crt-gauges-row { gap: 6px; }
  .crt-gauge-svg { max-width: 90px; }
  .eq-inner-grid { grid-template-columns: 1fr; }
  .account-metrics-row { grid-template-columns: repeat(3, 1fr); }
  .dash-header-price { font-size: 20px; }
}

@media (max-width: 768px) {
  .market-ticker-strip {
    padding: 0 8px;
  }
  .ticker-item {
    min-width: 130px;
    padding: 8px 10px;
  }
  .ticker-item__sparkline { display: none; }
  .mi-layout { grid-template-columns: 1fr; gap: 12px; }
  .strength-gauge-container { width: 100%; flex-direction: row; align-items: center; gap: 16px; }
  .strength-gauge-svg { width: 80px; height: 80px; }
  .crt-gauges-row { gap: 4px; }
  .crt-gauge-svg { max-width: 80px; }
  .crt-gauge-label-value { font-size: 11px; }
  .account-metrics-row { grid-template-columns: 1fr; }
  .market-overview-avatar { width: 44px; height: 44px; font-size: 18px; }
  .market-overview-greeting { font-size: 20px; }
  .cap-metrics-row { flex-direction: column; }
  .landing-dual-chart-wrap { height: 240px; }
  .dash-header-price { font-size: 18px; }
  .dash-header-change { font-size: 12px; }
}

@media (max-width: 480px) {
  .ticker-item { min-width: 110px; gap: 8px; }
  .crt-gauges-row { flex-direction: row; }
  .crt-gauge-svg { max-width: 70px; }
  .eq-sub-value { font-size: 15px; }
  .account-metric-value { font-size: 14px; }
  .landing-terminal-footer { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PREMIUM MOTION, AMBIENT LIGHTING & GLASS DEPTH SYSTEM (2026)
   ============================================================ */

/* --- SCROLL-DRIVEN REVEAL ANIMATIONS --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  will-change: opacity, transform;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays */
.scroll-reveal[data-reveal-delay="80"]  { transition-delay: 80ms; }
.scroll-reveal[data-reveal-delay="160"] { transition-delay: 160ms; }
.scroll-reveal[data-reveal-delay="240"] { transition-delay: 240ms; }

/* --- CINEMATIC AMBIENT LIGHTING & DEPTH --- */
.ambient-glow-wrapper {
  position: relative;
  --ambient-intensity: 0.5;
}

.ambient-glow-wrapper::before {
  content: '';
  position: absolute;
  inset: -18px;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(93, 116, 255, calc(0.18 * var(--ambient-intensity, 0.5))) 0%,
    rgba(0, 242, 254, calc(0.06 * var(--ambient-intensity, 0.5))) 50%,
    transparent 80%
  );
  filter: blur(36px);
  border-radius: 24px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Glass Surface Reflection Light Sweep */
.glass-card::after {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 55%
  );
  transform: rotate(25deg) translateY(-100%);
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* Hover Elevation & Depth */
.glass-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 28px 64px -14px rgba(0, 0, 8, 0.92),
              0 0 36px rgba(93, 116, 255, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Reduced Motion & Mobile Overrides */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.2s ease !important;
  }
  .glass-card::after { display: none; }
}

@media (max-width: 768px) {
  .ambient-glow-wrapper::before { filter: blur(20px); opacity: 0.4; }
  .glass-card:hover { transform: none; }
}

/* ==========================================================================
   ARCADEFX LIVE MULTI-ASSET SIGNAL GRID (VISUAL TARGET REFERENCE STYLES)
   ========================================================================== */

/* Top Market Scan Bar */
.scan-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 14px 24px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.scan-status-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.scan-status-dot .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd79a;
  box-shadow: 0 0 10px rgba(61, 215, 154, 0.6);
}

.btn-rescan-market {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: none;
  color: #FFFFFF;
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-rescan-market:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
  transform: translateY(-1.5px);
}

.btn-rescan-market:active {
  transform: scale(0.98);
}

.btn-rescan-market:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
}

.btn-rescan-market.is-scanning .rescan-icon,
.btn-rescan-market .spinner-icon {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

.scan-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.scan-countdown-val {
  color: #F5D76E;
  font-weight: 700;
  font-family: monospace;
  font-size: 14px;
}

/* Page Subtitle & Reference Attribution */
.signals-page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.signals-page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.signals-page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.5;
}

.signals-page-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* Signal Filter Controls Bar */
.signals-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(150, 133, 255, 0.3);
  color: var(--text-primary);
}

.filter-pill.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #090d1f;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.sort-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-pill.active, .sort-pill:hover {
  border-color: rgba(150, 133, 255, 0.4);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* 3-Column Signal Card Grid */
.signals-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .signals-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .signals-grid-v2 {
    grid-template-columns: 1fr;
  }
}

/* Individual Signal Card */
.signal-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.signal-card-v2:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.08);
}

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

.signal-pair-symbol {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.signal-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.signal-badge.buy {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.signal-badge.sell {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.signal-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.signal-bias-wrapper {
  display: flex;
  align-items: center;
}

.signal-bias-pill {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.signal-bias-pill.bullish {
  color: #22C55E;
}

.signal-bias-pill.bearish {
  color: #EF4444;
}

.signal-ref-levels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: monospace;
  padding: 4px 0;
}

.signal-ref-levels .ref-label {
  color: var(--text-muted);
  margin-right: 4px;
}

.signal-ref-levels .ref-val {
  color: var(--text-primary);
  font-weight: 600;
}

/* 2x2 Stats Grid Box */
.signal-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-card-subtle, rgba(0, 0, 0, 0.05));
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.stat-val {
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
}

.stat-val.entry {
  color: #22C55E;
}

.stat-val.sl {
  color: #EF4444;
}

.stat-val.tp {
  color: #22C55E;
}

/* Source Pill */
.signal-source-pill {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #F5D76E;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
}

/* Confluence Pills */
.confluence-pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.confluence-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
}

/* Card Footer */
.signal-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: 4px;
}

.confidence-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.confidence-score {
  font-size: 13px;
  font-weight: 800;
  color: #F5D76E;
}

.confidence-bar-bg {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

/* Unsaved Configuration Modal & Save Button Active Styles */
.btn-save-active {
  background: var(--gold-primary) !important;
  color: #070911 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35) !important;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-dialog {
  width: 90%;
  max-width: 440px;
  background: #0D111D;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.modal-dialog p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 12px 0 20px 0;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.confidence-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8F6B18, #D4AF37);
  border-radius: 2px;
}

/* Institutional Methodology Grid Section Styling */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 992px) {
  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .methodology-grid {
    grid-template-columns: 1fr;
  }
}

.methodology-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.methodology-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.35);
}

.methodology-step-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #F5D76E;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.methodology-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.methodology-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.setup-age {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

/* ========================================================
   ARCADE FX — SUPABASE BACKEND & WALLET SYSTEM STYLES
   ======================================================== */

/* Modal Overlays & Backdrops */
.arcadefx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

@media (min-width: 768px) {
  .arcadefx-modal-backdrop {
    align-items: center;
    padding: 24px;
  }
}

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

.arcadefx-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .arcadefx-modal-card {
    border-radius: 28px;
    transform: translateY(20px) scale(0.96);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
  }
}

.arcadefx-modal-backdrop.active .arcadefx-modal-card {
  transform: translateY(0) scale(1);
}

.arcadefx-modal-header {
  padding: 14px 24px 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  position: relative;
}

.arcadefx-modal-header::before {
  content: "";
  display: block;
  width: 36px;
  height: 5px;
  background-color: var(--text-tertiary, #98989F);
  opacity: 0.35;
  border-radius: 3px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.arcadefx-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.arcadefx-modal-close {
  background: var(--surface-secondary);
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.arcadefx-modal-close:active {
  transform: scale(0.92);
}

.arcadefx-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.arcadefx-modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 28, 0.6);
}

.arcadefx-tab-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.arcadefx-tab-btn.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.arcadefx-modal-body {
  padding: 24px;
}

.arcadefx-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arcadefx-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.arcadefx-input {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.arcadefx-input:focus {
  border-color: var(--arcade-persian-blue);
  box-shadow: 0 0 0 3px rgba(0, 56, 188, 0.25);
}

.arcadefx-btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--arcade-persian-blue);
  border: none;
  border-radius: 12px;
  color: var(--arcade-platinum);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 56, 188, 0.35);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, background-color 0.15s ease;
}

.arcadefx-btn-primary:hover {
  background-color: var(--arcade-persian-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 56, 188, 0.45);
}

.arcadefx-btn-primary:active {
  transform: scale(0.97);
}

.arcadefx-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.arcadefx-btn-secondary {
  padding: 8px 16px;
  background: var(--arcade-powder-blue-soft);
  border: 1px solid rgba(0, 56, 188, 0.20);
  border-radius: 10px;
  color: var(--arcade-persian-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.dark .arcadefx-btn-secondary {
  background: rgba(0, 56, 188, 0.25);
  border: 1px solid rgba(208, 230, 253, 0.25);
  color: var(--arcade-powder-blue);
}

.arcadefx-btn-secondary:hover {
  background: var(--arcade-powder-blue);
  color: var(--arcade-persian-blue);
}

.arcadefx-error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 16px;
}

.arcadefx-status-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
}

/* Wallet Action Triggers */
.wallet-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-deposit-trigger {
  flex: 1;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
}

.btn-deposit-trigger:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-withdraw-trigger {
  flex: 1;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
}

.btn-withdraw-trigger:hover {
  background: rgba(245, 158, 11, 0.25);
}

/* Account Drawer Overlay */
.account-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 380px;
  background: rgba(15, 23, 42, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcadefx-modal-backdrop.active .account-drawer {
  transform: translateX(0);
}

/* Transaction History Table */
.tx-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.tx-history-table th, .tx-history-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tx-history-table th {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tx-positive { color: #10b981; }
.tx-negative { color: #f43f5e; }

.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.status-completed { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-failed { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.status-refunded { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.tx-type-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* Spinner & Toast */
.spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15, 23, 42, 0.3);
  border-radius: 50%;
  border-top-color: #0f172a;
  animation: arcadefx-spin 0.8s linear infinite;
}

@keyframes arcadefx-spin {
  to { transform: rotate(360deg); }
}

.arcadefx-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #f59e0b;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.3);
  z-index: 1000000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcadefx-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   ARCADE FX — VIBRANT BLUE ANALYTICS CARD GRADIENTS (2026 REFINEMENT)
   ============================================================ */
.arcade-blue-hero-panel {
  background: linear-gradient(135deg, #021B79 0%, #0044C7 50%, #002E9C 100%) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 12px 36px rgba(2, 27, 121, 0.35) !important;
  color: #FFFFFF !important;
  position: relative;
  overflow: hidden;
}

.arcade-blue-card {
  background: linear-gradient(145deg, #00227B 0%, #0038BC 60%, #001B6B 100%) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 10px 30px rgba(0, 34, 123, 0.30) !important;
  color: #FFFFFF !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.arcade-blue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 34, 123, 0.45) !important;
}

.arcade-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.arcade-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.arcade-info-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #D0E6FD;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.arcade-info-badge:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* --- WATCHLIST TABLE & LANDMARK SESSION CARDS (PHANTOM FINTECH DESIGN SYSTEM) --- */
.watchlist-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.watchlist-table-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
}

.watchlist-table-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.watchlist-streaming-badge {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.watchlist-streaming-badge .streaming-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.watchlist-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.watchlist-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.watchlist-table th {
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-card);
}

.watchlist-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-subtle, var(--border-card));
  vertical-align: middle;
  transition: background 0.15s ease;
}

.watchlist-table tr:hover td {
  background: var(--arcade-powder-blue-soft, rgba(0, 56, 188, 0.04));
  cursor: pointer;
}

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

.asset-token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.asset-symbol-code {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.asset-symbol-name {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.watchlist-price-val {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
}

.watchlist-change-val {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.watchlist-pct-val {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

/* LANDMARK SESSION CARDS */
.session-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .session-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .session-cards-row {
    grid-template-columns: 1fr;
  }
}

.session-landmark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  min-height: 120px;
}

.session-landmark-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.session-card-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landmark-badge-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.session-card-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.session-card-status-badge {
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}

.session-card-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

.session-card-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

:root:not([data-theme="dark"]) .session-card-progress-track {
  background: rgba(0, 0, 0, 0.06);
}

.session-card-progress-fill {
  height: 100%;
  border-radius: 2px;
}

/* ==========================================================================
   ARCADE FX SIDEBAR ACTIVE SELECTION PILL (MATCHING REFERENCE IMAGE 1)
   ========================================================================== */
.nav-item.active {
  background: #E8EFFE !important;
  color: #2563EB !important;
  border-radius: 10px !important;
  border-left: none !important;
  font-weight: 700 !important;
}

:root[data-theme="dark"] .nav-item.active, body.dark .nav-item.active {
  background: rgba(37, 99, 235, 0.22) !important;
  color: #60A5FA !important;
}

.nav-item.active .nav-svg-icon {
  color: #2563EB !important;
}

:root[data-theme="dark"] .nav-item.active .nav-svg-icon, body.dark .nav-item.active .nav-svg-icon {
  color: #60A5FA !important;
}

/* ==========================================================================
   THEME FONT COLOR & VISIBILITY HARMONIZATION (MATCHING REFERENCE IMAGE 2)
   ========================================================================== */

/* LIGHT THEME FONT OVERRIDES */
:root:not([data-theme="dark"]), body:not(.dark) {
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-dark: #0F172A;
  --text-sidebar: #334155;
  --text-sidebar-title: #0F172A;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --border-card: #E2E8F0;
  --border-sidebar: #E2E8F0;
}

:root:not([data-theme="dark"]) .landing-body,
body:not(.dark) .landing-body {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .landing-nav-brand .brand-title,
:root:not([data-theme="dark"]) .landing-nav-links a,
:root:not([data-theme="dark"]) .landing-btn-login {
  color: #1E293B !important;
}

:root:not([data-theme="dark"]) .landing-hero-title {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .landing-hero-sub {
  color: #334155 !important;
}

:root:not([data-theme="dark"]) .landing-btn-cta {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

:root:not([data-theme="dark"]) .landing-hero-ctas .landing-btn-login {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
}

:root:not([data-theme="dark"]) .landing-section-title,
:root:not([data-theme="dark"]) .trust-val,
:root:not([data-theme="dark"]) .feature-title,
:root:not([data-theme="dark"]) .pricing-price,
:root:not([data-theme="dark"]) .faq-question {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .landing-section-sub,
:root:not([data-theme="dark"]) .trust-lbl,
:root:not([data-theme="dark"]) .feature-desc,
:root:not([data-theme="dark"]) .pricing-desc,
:root:not([data-theme="dark"]) .faq-answer {
  color: #334155 !important;
}

/* DARK THEME FONT OVERRIDES */
:root[data-theme="dark"], body.dark {
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #FFFFFF;
  --text-sidebar: #CBD5E1;
  --text-sidebar-title: #FFFFFF;
  --bg-card: #0F172A;
  --bg-sidebar: #08090B;
  --border-card: rgba(255, 255, 255, 0.1);
  --border-sidebar: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .landing-body,
body.dark .landing-body {
  background-color: #08090B !important;
  color: #F8FAFC !important;
}

:root[data-theme="dark"] .landing-nav-brand .brand-title,
:root[data-theme="dark"] .landing-nav-links a,
:root[data-theme="dark"] .landing-btn-login {
  color: #E2E8F0 !important;
}

:root[data-theme="dark"] .landing-hero-title {
  color: #FFFFFF !important;
}

:root[data-theme="dark"] .landing-hero-sub {
  color: #94A3B8 !important;
}

:root[data-theme="dark"] .landing-hero-ctas .landing-btn-login {
  background: #0F172A !important;
  border: 1px solid #334155 !important;
  color: #F8FAFC !important;
}

/* ==========================================================================
   DYNAMIC SIDEBAR THEME & HIGH CONTRAST VISIBILITY RULES
   ========================================================================== */

/* LIGHT MODE SIDEBAR */
:root:not([data-theme="dark"]) .sidebar,
:root[data-theme="light"] .sidebar,
body:not(.dark) .sidebar {
  background-color: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
}

:root:not([data-theme="dark"]) .sidebar-section-title,
:root[data-theme="light"] .sidebar-section-title,
body:not(.dark) .sidebar-section-title {
  color: #64748B !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item,
:root[data-theme="light"] .sidebar-nav .nav-item,
body:not(.dark) .sidebar-nav .nav-item {
  color: #1E293B !important;
  font-weight: 500 !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item .nav-svg-icon,
:root[data-theme="light"] .sidebar-nav .nav-item .nav-svg-icon,
body:not(.dark) .sidebar-nav .nav-item .nav-svg-icon {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item:hover,
:root[data-theme="light"] .sidebar-nav .nav-item:hover,
body:not(.dark) .sidebar-nav .nav-item:hover {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item.active,
:root[data-theme="light"] .sidebar-nav .nav-item.active,
body:not(.dark) .sidebar-nav .nav-item.active {
  background-color: #E8EFFE !important;
  color: #2563EB !important;
  font-weight: 700 !important;
  border-left: none !important;
  border-radius: 10px !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item.active .nav-svg-icon,
:root[data-theme="light"] .sidebar-nav .nav-item.active .nav-svg-icon,
body:not(.dark) .sidebar-nav .nav-item.active .nav-svg-icon {
  color: #2563EB !important;
}

/* DARK MODE SIDEBAR */
:root[data-theme="dark"] .sidebar,
body.dark .sidebar {
  background-color: #08090B !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root[data-theme="dark"] .sidebar-section-title,
body.dark .sidebar-section-title {
  color: #94A3B8 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-item,
body.dark .sidebar-nav .nav-item {
  color: #E2E8F0 !important;
  font-weight: 500 !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-item .nav-svg-icon,
body.dark .sidebar-nav .nav-item .nav-svg-icon {
  color: #94A3B8 !important;
  color: #60A5FA !important;
}

.nav-item.active .nav-svg-icon {
  color: #2563EB !important;
}

:root[data-theme="dark"] .nav-item.active .nav-svg-icon, body.dark .nav-item.active .nav-svg-icon {
  color: #60A5FA !important;
}

/* ==========================================================================
   ARCADE FX LANDING PAGE DYNAMIC THEME SYSTEM (LIGHT / DARK HIGH CONTRAST)
   ========================================================================== */

/* 1. Theme Variables for Landing Page & General App */
:root:not([data-theme="dark"]),
:root[data-theme="light"],
body:not(.dark) {
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-dark: #0F172A;
  --text-sidebar: #334155;
  --text-sidebar-title: #0F172A;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --border-card: #E2E8F0;
  --border-sidebar: #E2E8F0;

  --landing-bg: #FFFFFF;
  --landing-text-primary: #0F172A;
  --landing-text-secondary: #334155;
  --landing-text-muted: #64748B;
  --landing-card-bg: #F8FAFC;
  --landing-card-border: #E2E8F0;
  --landing-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --landing-nav-bg: rgba(255, 255, 255, 0.94);
  --landing-nav-border: #E2E8F0;
  --landing-floating-bg: rgba(255, 255, 255, 0.95);
  --landing-floating-border: #CBD5E1;
  --landing-floating-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --landing-terminal-bg: #F1F5F9;
  --landing-terminal-bar-bg: #E2E8F0;
  --landing-story-bg: #F8FAFC;
  --landing-alt-section-bg: #F1F5F9;
  --landing-disclaimer-bg: #FFFBEB;
  --landing-disclaimer-border: #FCD34D;
  --landing-disclaimer-text: #92400E;
}

:root[data-theme="dark"],
body.dark {
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #FFFFFF;
  --text-sidebar: #CBD5E1;
  --text-sidebar-title: #FFFFFF;
  --bg-card: #0F172A;
  --bg-sidebar: #08090B;
  --border-card: rgba(255, 255, 255, 0.1);
  --border-sidebar: rgba(255, 255, 255, 0.08);

  --landing-bg: #08090B;
  --landing-text-primary: #FFFFFF;
  --landing-text-secondary: #CBD5E1;
  --landing-text-muted: #94A3B8;
  --landing-card-bg: #0F172A;
  --landing-card-border: rgba(255, 255, 255, 0.1);
  --landing-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --landing-nav-bg: rgba(8, 9, 11, 0.92);
  --landing-nav-border: rgba(255, 255, 255, 0.08);
  --landing-floating-bg: rgba(15, 23, 42, 0.9);
  --landing-floating-border: rgba(255, 255, 255, 0.12);
  --landing-floating-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --landing-terminal-bg: rgba(14, 18, 40, 0.95);
  --landing-terminal-bar-bg: rgba(9, 13, 22, 0.9);
  --landing-story-bg: rgba(9, 13, 22, 0.9);
  --landing-alt-section-bg: rgba(15, 23, 42, 0.4);
  --landing-disclaimer-bg: rgba(245, 158, 11, 0.1);
  --landing-disclaimer-border: rgba(245, 158, 11, 0.25);
  --landing-disclaimer-text: #FBBF24;
}

/* 2. Base Landing Body & Header */
.landing-body {
  background-color: var(--landing-bg) !important;
  color: var(--landing-text-primary) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.landing-nav {
  background: var(--landing-nav-bg) !important;
  border-bottom: 1px solid var(--landing-nav-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.landing-nav-brand .brand-title {
  color: var(--landing-text-primary) !important;
}

.landing-nav-links a {
  color: var(--landing-text-secondary) !important;
  transition: color 0.15s ease;
}

.landing-nav-links a:hover {
  color: #2563EB !important;
}

.landing-btn-login {
  color: var(--landing-text-primary) !important;
  border: 1px solid var(--landing-card-border) !important;
  background: var(--landing-card-bg) !important;
  transition: all 0.15s ease;
}

.landing-btn-login:hover {
  border-color: #2563EB !important;
  color: #2563EB !important;
}

/* 3. Hero Section Typography & Floating Components */
.landing-hero-title {
  color: var(--landing-text-primary) !important;
}

.landing-hero-sub {
  color: var(--landing-text-secondary) !important;
}

.floating-card {
  background: var(--landing-floating-bg) !important;
  border: 1px solid var(--landing-floating-border) !important;
  box-shadow: var(--landing-floating-shadow) !important;
  color: var(--landing-text-primary) !important;
}

.floating-card strong {
  color: var(--landing-text-primary) !important;
}

/* 4. Showcase Terminal Window & Chart SVG */
.landing-hero-preview {
  background: var(--landing-terminal-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
}

.preview-bar {
  background: var(--landing-terminal-bar-bg) !important;
  color: var(--landing-text-primary) !important;
  border-bottom: 1px solid var(--landing-card-border) !important;
}

.preview-mini-card {
  background: var(--landing-card-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
}

.preview-mini-title {
  color: var(--landing-text-muted) !important;
}

.landing-terminal-frame {
  background: var(--landing-terminal-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
}

.landing-terminal-bar {
  background: var(--landing-terminal-bar-bg) !important;
  border-bottom: 1px solid var(--landing-card-border) !important;
}

.terminal-title {
  color: var(--landing-text-primary) !important;
}

.landing-terminal-chart-header {
  border-bottom: 1px solid var(--landing-card-border) !important;
}

.terminal-chart-inst-name {
  color: var(--landing-text-primary) !important;
}

.terminal-chart-inst-sub {
  color: var(--landing-text-muted) !important;
}

.dual-chart-y-label {
  color: var(--landing-text-muted) !important;
}

.chart-legend-item {
  color: var(--landing-text-secondary) !important;
}

.landing-terminal-footer {
  background: var(--landing-terminal-bar-bg) !important;
  border-top: 1px solid var(--landing-card-border) !important;
}

.terminal-footer-pill-text {
  color: var(--landing-text-secondary) !important;
}

.terminal-footer-pill-corr {
  color: var(--landing-text-primary) !important;
}

/* 5. Section Headers & Cards (Trust, Methodology, Features, Steps, Pricing, Testimonials, FAQ) */
.section-title,
.landing-section-title {
  color: var(--landing-text-primary) !important;
}

.section-subtitle,
.landing-section-sub {
  color: var(--landing-text-secondary) !important;
}

.trust-card {
  background: var(--landing-card-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
  box-shadow: var(--landing-card-shadow) !important;
}

.trust-val {
  color: var(--landing-text-primary) !important;
}

.trust-lbl {
  color: var(--landing-text-muted) !important;
}

.methodology-card {
  background: var(--landing-card-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
  box-shadow: var(--landing-card-shadow) !important;
}

.methodology-card h3 {
  color: var(--landing-text-primary) !important;
}

.methodology-card p {
  color: var(--landing-text-secondary) !important;
}

.landing-story-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--landing-text-primary) !important;
  margin-bottom: 12px;
}

.story-section p {
  color: var(--landing-text-secondary) !important;
}

.story-visual-card {
  background: var(--landing-story-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
  border-radius: 12px;
  padding: 18px;
  color: var(--landing-text-primary) !important;
}

.story-visual-card span,
.story-visual-card strong {
  color: var(--landing-text-primary) !important;
}

.landing-section-alt {
  background: var(--landing-alt-section-bg) !important;
  border-top: 1px solid var(--landing-card-border) !important;
  border-bottom: 1px solid var(--landing-card-border) !important;
}

.step-card {
  background: var(--landing-card-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
  box-shadow: var(--landing-card-shadow) !important;
}

.step-card h4 {
  color: var(--landing-text-primary) !important;
}

.step-card p {
  color: var(--landing-text-secondary) !important;
}

.pricing-card {
  background: var(--landing-card-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
  box-shadow: var(--landing-card-shadow) !important;
}

.pricing-card:not(.featured) .pricing-name {
  color: var(--landing-text-primary) !important;
}

.pricing-card:not(.featured) .pricing-price {
  color: var(--landing-text-primary) !important;
}

.pricing-card:not(.featured) .pricing-desc,
.pricing-card:not(.featured) .pricing-features li {
  color: var(--landing-text-secondary) !important;
}

/* Featured Pricing Card Always Vibrant High Contrast Blue */
.pricing-card.featured {
  background: linear-gradient(145deg, #1E40AF 0%, #1D4ED8 100%) !important;
  border: 1px solid #3B82F6 !important;
  color: #FFFFFF !important;
}

.pricing-card.featured .pricing-name,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-desc,
.pricing-card.featured .pricing-features li {
  color: #FFFFFF !important;
}

.testimonial-card {
  background: var(--landing-card-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
  box-shadow: var(--landing-card-shadow) !important;
}

.testimonial-quote {
  color: var(--landing-text-primary) !important;
}

.testimonial-name {
  color: var(--landing-text-primary) !important;
}

.testimonial-role {
  color: var(--landing-text-muted) !important;
}

.faq-item {
  background: var(--landing-card-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
}

.faq-question {
  color: var(--landing-text-primary) !important;
}

.faq-answer {
  color: var(--landing-text-secondary) !important;
}

/* 6. Footer & Disclaimer */
.landing-footer {
  background: var(--landing-bg) !important;
  border-top: 1px solid var(--landing-card-border) !important;
}

.disclaimer-box {
  background: var(--landing-disclaimer-bg) !important;
  border: 1px solid var(--landing-disclaimer-border) !important;
  color: var(--landing-disclaimer-text) !important;
}

.footer-brand p {
  color: var(--landing-text-muted) !important;
}

.footer-col h5 {
  color: var(--landing-text-primary) !important;
}

.footer-col a {
  color: var(--landing-text-secondary) !important;
}

.footer-col a:hover {
  color: #2563EB !important;
}

.footer-bottom {
  color: var(--landing-text-muted) !important;
  border-top: 1px solid var(--landing-card-border) !important;
}

/* 7. PWA Installation Modal */
.pwa-modal-card {
  background: var(--landing-card-bg) !important;
  border: 1px solid var(--landing-card-border) !important;
  color: var(--landing-text-primary) !important;
}

.pwa-modal-header h3,
.pwa-steps-container h4 {
  color: var(--landing-text-primary) !important;
}

.pwa-modal-header p,
.pwa-steps li {
  color: var(--landing-text-secondary) !important;
}

/* ==========================================================================
   DYNAMIC SIDEBAR THEME & HIGH CONTRAST VISIBILITY RULES
   ========================================================================== */

/* LIGHT MODE SIDEBAR */
:root:not([data-theme="dark"]) .sidebar,
:root[data-theme="light"] .sidebar,
body:not(.dark) .sidebar {
  background-color: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
}

:root:not([data-theme="dark"]) .sidebar-section-title,
:root[data-theme="light"] .sidebar-section-title,
body:not(.dark) .sidebar-section-title {
  color: #64748B !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item,
:root[data-theme="light"] .sidebar-nav .nav-item,
body:not(.dark) .sidebar-nav .nav-item {
  color: #1E293B !important;
  font-weight: 500 !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item .nav-svg-icon,
:root[data-theme="light"] .sidebar-nav .nav-item .nav-svg-icon,
body:not(.dark) .sidebar-nav .nav-item .nav-svg-icon {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item:hover,
:root[data-theme="light"] .sidebar-nav .nav-item:hover,
body:not(.dark) .sidebar-nav .nav-item:hover {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item.active,
:root[data-theme="light"] .sidebar-nav .nav-item.active,
body:not(.dark) .sidebar-nav .nav-item.active {
  background-color: #E8EFFE !important;
  color: #2563EB !important;
  font-weight: 700 !important;
  border-left: none !important;
  border-radius: 10px !important;
}

:root:not([data-theme="dark"]) .sidebar-nav .nav-item.active .nav-svg-icon,
:root[data-theme="light"] .sidebar-nav .nav-item.active .nav-svg-icon,
body:not(.dark) .sidebar-nav .nav-item.active .nav-svg-icon {
  color: #2563EB !important;
}

/* DARK MODE SIDEBAR */
:root[data-theme="dark"] .sidebar,
body.dark .sidebar {
  background-color: #08090B !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root[data-theme="dark"] .sidebar-section-title,
body.dark .sidebar-section-title {
  color: #94A3B8 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-item,
body.dark .sidebar-nav .nav-item {
  color: #E2E8F0 !important;
  font-weight: 500 !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-item .nav-svg-icon,
body.dark .sidebar-nav .nav-item .nav-svg-icon {
  color: #94A3B8 !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-item:hover,
body.dark .sidebar-nav .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-item.active,
body.dark .sidebar-nav .nav-item.active {
  background-color: rgba(37, 99, 235, 0.25) !important;
  color: #60A5FA !important;
  font-weight: 700 !important;
  border-left: none !important;
  border-radius: 10px !important;
}

:root[data-theme="dark"] .sidebar-nav .nav-item.active .nav-svg-icon,
body.dark .sidebar-nav .nav-item.active .nav-svg-icon {
  color: #60A5FA !important;
}

/* --- HIDE NETLIFY DEPLOY BADGE / DRAWER / BANNER OVERLAYS --- */
iframe[src*="netlify"],
iframe#netlify-drawer-iframe,
#netlify-drawer-root,
#netlify-modal-root,
.netlify-badge,
.netlify-feedback,
[data-netlify-deploy-id],
net-drawer-element,
net-badge,
div[class*="netlify-drawer"],
div[id*="netlify-drawer"],
a[href*="netlify.com"][class*="badge"],
a[href*="netlify.app"][class*="badge"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

/* ============================================================
   ARCADE FX — MOBILE OVERVIEW & BOTTOM NAV OPTIMIZATION 2026
   ============================================================ */

/* Desktop defaults */
#mobileOverviewSection {
  display: none;
}
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Show Mobile Overview Container on mobile viewports */
  #mobileOverviewSection {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }

  /* Hide Desktop-only Hero Greeting & Desktop Glass Cards on mobile */
  .desktop-only-hero,
  .analysis-glass-grid {
    display: none !important;
  }

  /* Safe bottom padding so content is never covered by bottom nav */
  .workspace-container {
    padding-bottom: 90px !important;
  }

  /* 1. Mobile Market Status Card */
  .mobile-market-status-card {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  .mobile-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .live-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: spinPulse 2s infinite;
  }
  .mobile-status-title {
    font-size: 13px;
    font-weight: 800;
    color: #10B981;
    letter-spacing: 0.5px;
  }
  .mobile-status-badge {
    font-size: 10px;
    font-weight: 700;
    color: #60A5FA;
    background: rgba(37, 99, 235, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.3);
  }
  .mobile-status-sub {
    font-size: 12px;
    color: #CBD5E1;
  }

  /* 2. Mobile Market Watchlist Section */
  .mobile-watchlist-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mobile-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #F8FAFC;
    margin: 0;
  }
  .mobile-see-all-link {
    font-size: 13px;
    color: #60A5FA;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-watchlist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-watchlist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-card, #0F172A);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
  }
  .mobile-symbol-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-symbol-code {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
  }
  .mobile-symbol-name {
    font-size: 11px;
    color: #94A3B8;
  }
  .mobile-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
  .mobile-price-val {
    font-size: 14px;
    font-weight: 800;
    font-family: monospace;
    color: #FFFFFF;
  }
  .mobile-change-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
  }
  .mobile-change-badge.pos {
    color: #38EF7D;
    background: rgba(16, 185, 129, 0.15);
  }
  .mobile-change-badge.neg {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
  }

  /* 3. Mobile Top Signal Card */
  .mobile-top-signal-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #002BB8 0%, #001666 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 24px rgba(0, 43, 184, 0.3);
  }
  .mobile-card-tag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .mobile-card-tag-title {
    font-size: 11px;
    font-weight: 800;
    color: #93C5FD;
    letter-spacing: 0.5px;
  }
  .mobile-signal-main-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
  }
  .mobile-signal-symbol {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
  }
  .mobile-signal-score {
    font-size: 11px;
    color: #60A5FA;
    font-weight: 700;
  }
  .mobile-signal-rr {
    font-size: 14px;
    font-weight: 800;
    color: #38EF7D;
  }
  .mobile-signal-age {
    font-size: 10px;
    color: #94A3B8;
  }
  .mobile-signal-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-stat-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
  }
  .mobile-stat-lbl {
    color: #94A3B8;
    font-weight: 600;
  }
  .mobile-stat-val {
    font-weight: 700;
    font-family: monospace;
  }
  .mobile-stat-val.entry { color: #60A5FA; }
  .mobile-stat-val.sl { color: #EF4444; }
  .mobile-stat-val.tp { color: #38EF7D; }

  /* 4. Rescan Market CTA Button */
  .mobile-rescan-wrapper {
    margin-top: 4px;
  }
  .mobile-rescan-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
  }
  .mobile-rescan-btn:active {
    transform: scale(0.98);
  }
  .mobile-rescan-btn.loading .rescan-icon {
    display: inline-block;
    animation: spin 1s linear infinite;
  }

  /* 5. Fixed Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(8, 9, 11, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0 env(safe-area-inset-bottom, 0px) 0;
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    min-height: 48px;
    transition: color 0.15s ease;
  }
  .mobile-nav-icon {
    width: 22px;
    height: 22px;
  }
  .mobile-nav-item.active {
    color: #60A5FA;
    font-weight: 800;
  }
  .mobile-nav-item.active .mobile-nav-icon {
    color: #60A5FA;
  }

  :root:not([data-theme="dark"]) .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid #E2E8F0;
  }
  :root:not([data-theme="dark"]) .mobile-nav-item {
    color: #64748B;
  }
  :root:not([data-theme="dark"]) .mobile-nav-item.active {
    color: #2563EB;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- LIGHT MODE COMPREHENSIVE TYPOGRAPHY CONTRAST OVERRIDES --- */
:root:not([data-theme="dark"]) .trust-val,
:root:not([data-theme="dark"]) .feature-card h3,
:root:not([data-theme="dark"]) .step-card h4,
:root:not([data-theme="dark"]) .methodology-card h3,
:root:not([data-theme="dark"]) .pricing-card:not(.featured) .pricing-name,
:root:not([data-theme="dark"]) .pricing-card:not(.featured) .pricing-price {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .methodology-step-badge {
  color: #B45309 !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

:root:not([data-theme="dark"]) .methodology-card p,
:root:not([data-theme="dark"]) .trust-lbl,
:root:not([data-theme="dark"]) .feature-card p,
:root:not([data-theme="dark"]) .step-card p,
:root:not([data-theme="dark"]) .pricing-card:not(.featured) .pricing-desc {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .mobile-section-title,
:root:not([data-theme="dark"]) .mobile-symbol-code,
:root:not([data-theme="dark"]) .mobile-price-val {
  color: #0F172A !important;
}

:root:not([data-theme="dark"]) .mobile-symbol-name,
:root:not([data-theme="dark"]) .mobile-stat-lbl,
:root:not([data-theme="dark"]) .mobile-status-sub {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .mobile-market-status-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 56, 188, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* ============================================================
   REAL-TIME TICKER FLASH ANIMATIONS (BULLISH & BEARISH TICKERS)
   ============================================================ */
@keyframes flashGreenTick {
  0% { background: rgba(16, 185, 129, 0.45); color: #10B981; font-weight: 800; }
  50% { background: rgba(16, 185, 129, 0.2); }
  100% { background: transparent; }
}

@keyframes flashRedTick {
  0% { background: rgba(239, 68, 68, 0.45); color: #EF4444; font-weight: 800; }
  50% { background: rgba(239, 68, 68, 0.2); }
  100% { background: transparent; }
}

.flash-up {
  animation: flashGreenTick 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 6px;
}

.flash-down {
  animation: flashRedTick 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 6px;
}

/* ============================================================
   FOREX CLASSES & GOOGLE MEET WIDGET & PDF DOWNLOADS STYLES
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ios-spring), box-shadow 0.25s var(--ios-spring), border-color 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 56, 188, 0.12);
  border-color: rgba(0, 56, 188, 0.25);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tool-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 56, 188, 0.08);
  border: 1px solid rgba(0, 56, 188, 0.15);
  color: var(--arcade-persian-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

:root[data-theme="dark"] .tool-icon-badge {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.25);
  color: #60A5FA;
}

.tool-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tool-form label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-form input,
.tool-form select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-form input:focus,
.tool-form select:focus {
  outline: none;
  border-color: var(--arcade-persian-blue);
  box-shadow: 0 0 0 3px rgba(0, 56, 188, 0.15);
}

.tool-card .btn-primary,
#btnCalcPip, #btnCalcRR, #btnCalcPosition, #btnCalcProfit, #btnCalcMargin, #btnCalcConvert {
  background: linear-gradient(135deg, #0038BC 0%, #1261D6 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 16px !important;
  box-shadow: 0 4px 14px rgba(0, 56, 188, 0.28) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.tool-card .btn-primary:hover,
#btnCalcPip:hover, #btnCalcRR:hover, #btnCalcPosition:hover, #btnCalcProfit:hover, #btnCalcMargin:hover, #btnCalcConvert:hover {
  background: linear-gradient(135deg, #002E9C 0%, #0038BC 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 56, 188, 0.38) !important;
}

.tool-result {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid var(--border-card);
  line-height: 1.5;
}

:root[data-theme="light"] .tool-result,
body:not(.dark) .tool-result {
  background: #F0F4FC !important;
  border: 1px solid rgba(0, 56, 188, 0.15) !important;
  color: #0F172A !important;
}

.classes-hero-banner {
  background: linear-gradient(135deg, #002BB8 0%, #001E85 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 32px 36px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 14px 40px rgba(0, 43, 184, 0.35);
  position: relative;
  overflow: hidden;
}

.classes-hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.classes-hero-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.classes-hero-sub {
  font-size: 14px;
  color: #D0E6FD;
  max-width: 620px;
  line-height: 1.55;
}

.google-meet-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.google-meet-widget-card:hover {
  border-color: rgba(0, 56, 188, 0.25);
  box-shadow: 0 12px 36px rgba(0, 56, 188, 0.1);
}

.meet-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-join-meet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1A73E8 0%, #1557B0 100%);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-join-meet:hover {
  background: linear-gradient(135deg, #1867D6 0%, #114B9B 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26, 115, 232, 0.5);
}

.pdf-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
}

.pdf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.25s var(--ios-spring), box-shadow 0.25s var(--ios-spring), border-color 0.25s ease;
}

.pdf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 56, 188, 0.12);
  border-color: rgba(0, 56, 188, 0.25);
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  color: var(--text-dark);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-download-pdf:hover {
  background: linear-gradient(135deg, #0038BC 0%, #1261D6 100%);
  color: #FFFFFF !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 56, 188, 0.3);
}

/* Referral & Attribution System Styles */
.referral-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.referral-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.referral-url-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  background: var(--bg-app);
  color: var(--text-dark);
  font-family: monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.btn-copy-ref {
  background: var(--arcade-persian-blue, #0038BC);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-copy-ref:hover {
  background: #2563EB;
}

.btn-copy-ref.copied {
  background: #10B981;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

@media (max-width: 768px) {
  .referral-stats-grid {
    grid-template-columns: 1fr;
  }
}

.ref-stat-card {
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ref-stat-card.success-card {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.ref-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.ref-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.referral-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.referral-history-table th,
.referral-history-table td {
  padding: 10px 12px;
  font-size: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.referral-history-table th {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.ref-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ref-status-badge.qualified {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ref-status-badge.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* FLOATING COMMUNITY WIDGET — WHATSAPP & TELEGRAM */
.floating-community-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  pointer-events: none;
}

.floating-community-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  position: relative;
  outline: none;
}

.floating-community-btn:hover,
.floating-community-btn:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.floating-community-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.floating-community-btn.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-community-btn.telegram-btn {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}

.floating-community-btn .community-icon {
  width: 26px;
  height: 26px;
}

.community-btn-tooltip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: rgba(15, 23, 42, 0.95);
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.12));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-community-btn:hover .community-btn-tooltip {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

@media (max-width: 768px) {
  .floating-community-widget {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }
  .floating-community-btn {
    width: 44px;
    height: 44px;
  }
  .floating-community-btn .community-icon {
    width: 22px;
    height: 22px;
  }
  .community-btn-tooltip {
    display: none;
  }
}

/* --- TRADING WORKSPACE ENHANCEMENTS --- */
body.trading-page #floatingCommunityWidget {
  display: none !important;
}

.trading-workspace-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: calc(100vh - 52px);
}

.chart-viewport-wrapper {
  flex: 1;
  height: 100%;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
}

#tradingview_chart_container {
  width: 100%;
  height: 100%;
  flex: 1;
}

.sim-positions-panel {
  width: clamp(300px, 26vw, 420px);
  min-width: 280px;
  max-width: 460px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.sim-positions-panel.collapsed {
  width: 44px;
  min-width: 44px;
}

.positions-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
  min-height: 44px;
}

.positions-tab-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pos-tab-btn {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.pos-tab-btn.active {
  color: var(--arcade-persian-blue, #3B82F6);
  background: rgba(0, 56, 188, 0.12);
  font-weight: 800;
  border-bottom: 2px solid #3B82F6;
}

.pos-tab-btn:not(.active) {
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.pos-tab-btn:not(.active):hover {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.04);
}

.positions-panel-metrics {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.positions-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  font-size: 12px;
  margin: 0 auto;
}

.positions-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-dark);
}

@media (max-width: 768px) {
  /* Omit symbol selector & timeframe control in header on mobile */
  .trading-page #symbolSelect,
  .trading-page .segmented-control {
    display: none !important;
  }

  /* Enhanced Mobile BUY & SELL Trading Buttons */
  .trading-page #simBuyBtn,
  .trading-page #simSellBtn {
    padding: 7px 18px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
  }

  .trading-page #simBuyBtn:active,
  .trading-page #simSellBtn:active {
    transform: scale(0.94) !important;
  }
}

.positions-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.terminal-table th {
  padding: 8px 6px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-card);
  letter-spacing: 0.5px;
}

.terminal-table td {
  padding: 6px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  font-size: 11px;
}

.terminal-table tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.terminal-table th.num-col,
.terminal-table td.num-col {
  text-align: right;
}

.sim-positions-panel.collapsed .positions-panel-body,
.sim-positions-panel.collapsed .positions-panel-metrics {
  display: none !important;
}

.sim-positions-panel.collapsed .positions-tab-group {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 10px 0;
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10B981;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .trading-workspace-main {
    flex-direction: column;
  }

  .chart-viewport-wrapper {
    height: 58vh;
    flex: 1;
  }

  .sim-positions-panel {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto;
    max-height: 42vh;
    border-left: none;
    border-top: 1px solid var(--border-card);
  }

  .sim-positions-panel.collapsed {
    height: 44px !important;
    max-height: 44px !important;
  }

  .sim-positions-panel.collapsed .positions-tab-group {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0;
  }
}





