/* ==========================================================================
   InnocentInvestor.in - Demo Trading Terminal (With Glass Order Window)
   ========================================================================== */

#ii-gyan-footer-teaser,
.ii-gyan-teaser-card,
.ii-gyan-fab-btn {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}
body.single-screen-app {
  height: 100vh;
  overflow: hidden !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:root {
  --trade-bg: #070c18;
  --trade-card-bg: #0e172a;
  --trade-sidebar-bg: #0b1222;
  --trade-border: rgba(255, 255, 255, 0.1);
  --trade-text: #f3f4f6;
  --trade-text-muted: #9ca3af;
  --trade-input-bg: #070d1a;
  --trade-accent-gold: #f59e0b;
  --trade-green: #10b981;
  --trade-red: #ef4444;
  --trade-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body.light-theme {
  --trade-bg: #f8fafc;
  --trade-card-bg: #ffffff;
  --trade-sidebar-bg: #ffffff;
  --trade-border: rgba(0, 0, 0, 0.12);
  --trade-text: #0f172a;
  --trade-text-muted: #64748b;
  --trade-input-bg: #f1f5f9;
  --trade-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Light Mode contrast fixes for Header Pills */
body.light-theme .istreamer-dropdown-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .clean-ark-ai-label span {
  color: #0284c7 !important;
}

body.light-theme .clean-ark-ai-label sup {
  color: #059669 !important;
}

body.light-theme .istreamer-dropdown-pill > span:nth-child(2) {
  background: rgba(0, 0, 0, 0.18) !important;
}

body.light-theme #istreamer-filter-dropdown {
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  color: #0f172a !important;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%230f172a" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
}

body.light-theme #istreamer-pnl-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme #istreamer-pnl-pill span:nth-child(2) {
  color: #475569 !important;
}

body.single-screen-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: var(--trade-bg);
  color: var(--trade-text);
}

header.notranslate {
  position: relative !important;
  z-index: 100 !important;
  background: var(--trade-sidebar-bg) !important;
  border-bottom: 1px solid var(--trade-border) !important;
  padding: 10px 16px !important;
  height: auto !important;
}

.trade-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.header-logo-section {
  display: flex;
  align-items: center;
  width: 264px; /* 280px left sidebar - 16px header padding = 264px exact vertical alignment */
  min-width: 264px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .header-logo-section {
    width: auto;
    min-width: 0;
  }
}

.logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: 'Outfit', sans-serif !important;
  font-size: 23.2px !important; /* Reduced by 20% from 29px */
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
}


/* Premium header sign-in button */
.header-signin-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--trade-text) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.18s ease-in-out !important;
  line-height: 1 !important;
  margin-top: 1px !important;
  width: fit-content !important;
}

.header-signin-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-0.5px) !important;
}

body.light-theme .header-signin-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: var(--trade-text) !important;
}
body.light-theme .header-signin-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
}

.demo-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px 9px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.8px !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

/* Continuous Rainbow Flow Keyframe Animation (Zero Glow) */
@keyframes rainbow-border-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

nav[aria-label="Trading Navigation"] {
  margin-left: 0 !important;
}

.trading-nav-options {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--trade-input-bg, #0b1222) !important;
  padding: 6px 12px !important;
  border-radius: 36px;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--trade-border, rgba(255, 255, 255, 0.14)) !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

.trading-nav-options::-webkit-scrollbar {
  display: none;
}

.nav-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--trade-text-muted, #94a3b8);
  font-family: 'Outfit', sans-serif;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  padding: 9px 20px !important;
  border-radius: 25px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.nav-option-btn:hover {
  color: var(--trade-text, #ffffff);
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px);
}

.nav-option-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #60a5fa !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

/* ── Light Theme High-Contrast Top Navigation & Header Row ── */
body.light-theme .trading-nav-options {
  background: #ffffff !important;
  border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  filter: none !important;
  animation: none !important;
}

body.light-theme .nav-option-btn {
  color: #475569 !important;
}

body.light-theme .nav-option-btn:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

body.light-theme .nav-option-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), 0 0 8px rgba(37, 99, 235, 0.25) !important;
}

body.light-theme .nav-option-btn {
  color: #334155 !important;
  font-weight: 700 !important;
}

body.light-theme .nav-option-btn:hover {
  color: #1e3a8a !important;
  background: rgba(59, 130, 246, 0.12) !important;
}

body.light-theme .nav-option-btn.active {
  color: #1e40af !important;
  background: #ffffff !important;
  border: 1.5px solid #3b82f6 !important;
  box-shadow: 0 3px 12px rgba(59, 130, 246, 0.28), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  font-weight: 800 !important;
  animation: none !important;
}

body.light-theme .top-cash-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .top-cash-label {
  color: #475569 !important;
  font-weight: 700 !important;
}

body.light-theme .top-cash-amount {
  color: #059669 !important;
  font-weight: 800 !important;
}

body.light-theme .theme-toggle,
body.light-theme .right-sidebar-toggle-btn {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

@keyframes nav-active-glow {
  0% {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.12),
                inset 0 0 4px rgba(255, 255, 255, 0.15);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.28),
                inset 0 0 10px rgba(255, 255, 255, 0.3);
  }
}

.top-cash-card, #top-cash-card-gate {
  display: none !important;
}

.top-cash-label {
  color: var(--trade-text-muted);
  font-weight: 500;
}

.top-cash-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto !important;
    height: auto !important;
  }

  header.notranslate {
    padding: 8px 10px !important;
  }

  .trade-header-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .header-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .header-top-row .logo {
    order: 1 !important;
  }

  .header-top-row .nav-actions {
    order: 2 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .header-top-row nav {
    order: 3 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 4px !important;
  }

  .logo-wordmark {
    font-size: 20px !important;
  }

  .top-cash-card {
    display: none !important;
  }

  .trading-nav-options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    margin: 6px 0 0 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    padding: 3px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border-radius: 18px !important; /* 25% more rounded */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
  }
  .trading-nav-options::-webkit-scrollbar {
    display: none !important;
  }
  .trading-nav-options li {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    display: block !important;
  }
  .trading-nav-options li.desktop-only-tab {
    display: none !important;
  }
  .nav-option-btn {
    padding: 7px 4px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    width: 100% !important;
    border-radius: 13px !important; /* 25% more rounded (10px -> 13px) */
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }
  
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 8px !important;
  }

  .clean-trade-table {
    min-width: 600px !important;
    font-size: 11px !important;
  }

  .clean-trade-table th,
  .clean-trade-table td {
    padding: 8px 6px !important;
  }

  .terminal-workspace {
    grid-template-columns: 1fr !important;
    overflow-y: visible !important;
    width: 100% !important;
  }

  .left-sidebar {
    border-right: none !important;
    border-bottom: 1.5px solid var(--trade-border) !important;
    padding: 10px !important;
  }

  .main-content-panel {
    padding: 10px !important;
    gap: 10px !important;
  }

  .order-ticket-panel,
  .holdings-panel-card,
  .daily-warning-card {
    padding: 10px !important;
    border-radius: 10px !important;
  }
}

.right-sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--trade-input-bg);
  border: 1px solid var(--trade-border);
  color: var(--trade-text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.right-sidebar-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #3b82f6;
}

.right-sidebar-toggle-btn.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.terminal-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
  min-height: 0;
  position: relative;
  transition: grid-template-columns 0.25s ease;
}

.terminal-workspace.show-right-sidebar {
  grid-template-columns: 280px minmax(0, 1fr) 280px;
}

@media (max-width: 1200px) {
  .terminal-workspace.show-right-sidebar {
    grid-template-columns: 260px minmax(0, 1fr) 250px;
  }
}

@media (max-width: 900px) {
  .terminal-workspace {
    grid-template-columns: 1fr;
    overflow-y: visible;
  }
  .right-sidebar {
    display: none !important;
  }
  .terminal-workspace.show-right-sidebar .right-sidebar {
    display: flex !important;
    position: fixed;
    top: 56px; /* height of header */
    bottom: 0;
    right: 0;
    left: 0;
    width: 100% !important;
    z-index: 99990;
    border-left: none;
  }
}

.left-sidebar {
  background: var(--trade-sidebar-bg);
  border-right: 1.5px solid var(--trade-border);
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
  overflow-y: auto;
}

.right-sidebar {
  background: var(--trade-sidebar-bg);
  border-left: 1.5px solid var(--trade-border);
  display: none;
  flex-direction: column;
  padding: 14px;
  gap: 14px;
  overflow-y: auto;
}

.terminal-workspace.show-right-sidebar .right-sidebar {
  display: flex;
}

.sidebar-portfolio-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.spc-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1.2;
}

.spc-grid {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--trade-text-muted);
  margin-top: 2px;
}

.sidebar-search-box {
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--trade-input-bg);
  border: 1px solid var(--trade-border);
  border-radius: 8px;
  padding: 9px 12px 9px 36px;
  color: var(--trade-text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #3b82f6;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--trade-text-muted);
  width: 16px;
  height: 16px;
}

.search-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background: var(--trade-card-bg);
  border: 1px solid var(--trade-border);
  border-radius: 8px;
  box-shadow: var(--trade-shadow);
  z-index: 1000;
  display: none;
}

.search-item {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid var(--trade-border);
}

.search-item:hover {
  background: rgba(59, 130, 246, 0.1);
}

.search-add-btn {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.search-add-btn:hover {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.15);
}

.sidebar-watchlist-container {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
}

.watchlist-row {
  position: relative;
  background: var(--trade-card-bg);
  border: 1px solid var(--trade-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.watchlist-row:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.watchlist-hover-actions {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  padding: 0 6px;
}

body.light-theme .watchlist-hover-actions {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.watchlist-row:hover .watchlist-hover-actions,
.watchlist-row.show-actions .watchlist-hover-actions {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.btn-hover-chart {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #3b82f6 !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hover-chart:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4) !important;
}

.btn-hover-buy {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-hover-sell {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-watchlist-remove {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}

.btn-watchlist-remove:hover {
  background: #ef4444;
  color: #ffffff;
}

.watchlist-symbol {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--trade-text);
}

.watchlist-name {
  font-size: 10px;
  color: var(--trade-text-muted);
}

.watchlist-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
}

.watchlist-change {
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

.sidebar-other-tools {
  border-top: 1px solid var(--trade-border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--trade-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.sidebar-tool-btn:hover {
  color: var(--trade-text);
  background: rgba(59, 130, 246, 0.08);
}

.sidebar-tool-btn.active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.main-content-panel {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 10px;
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
  flex: 1;
  box-sizing: border-box;
}

.daily-warning-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.dw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding-bottom: 6px;
}

.dw-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
}

.dw-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--trade-text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

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

.dw-body {
  font-size: 12px;
  color: var(--trade-text);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dw-body p {
  margin: 0;
}

.dw-footer {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 4px;
}

.order-ticket-panel {
  background: var(--trade-card-bg);
  border: 1px solid var(--trade-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--trade-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.symbol-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--trade-text);
}

.company-name {
  font-size: 12px;
  color: var(--trade-text-muted);
}

.price-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.order-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.holdings-panel-card {
  background: var(--trade-card-bg);
  border: 1px solid var(--trade-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--trade-shadow);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 0;
}

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--trade-border);
  flex-wrap: wrap;
  gap: 6px;
}

.card-title-bar h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--trade-text);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clean-trade-table {
  width: 100%;
  table-layout: fixed !important;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.clean-trade-table th {
  padding: 9px 10px;
  color: var(--trade-text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--trade-border);
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.clean-trade-table td {
  padding: 10px;
  color: var(--trade-text);
  border-bottom: 1px solid var(--trade-border);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

/* Explicit column width percentages & text alignments for Active Positions Table */
.active-positions-table th:nth-child(1), .active-positions-table td:nth-child(1),
.clean-trade-table th:nth-child(1), .clean-trade-table td:nth-child(1) { width: 22% !important; text-align: center !important; }

.active-positions-table th:nth-child(2), .active-positions-table td:nth-child(2),
.clean-trade-table th:nth-child(2), .clean-trade-table td:nth-child(2) { width: 10% !important; text-align: center !important; }

.active-positions-table th:nth-child(3), .active-positions-table td:nth-child(3),
.clean-trade-table th:nth-child(3), .clean-trade-table td:nth-child(3) { width: 14% !important; text-align: right !important; }

.active-positions-table th:nth-child(4), .active-positions-table td:nth-child(4),
.clean-trade-table th:nth-child(4), .clean-trade-table td:nth-child(4) { width: 16% !important; text-align: right !important; }

.active-positions-table th:nth-child(5), .active-positions-table td:nth-child(5),
.clean-trade-table th:nth-child(5), .clean-trade-table td:nth-child(5) { width: 16% !important; text-align: right !important; }

.active-positions-table th:nth-child(6), .active-positions-table td:nth-child(6),
.clean-trade-table th:nth-child(6), .clean-trade-table td:nth-child(6) { width: 12% !important; text-align: right !important; }

.active-positions-table th:nth-child(7), .active-positions-table td:nth-child(7),
.clean-trade-table th:nth-child(7), .clean-trade-table td:nth-child(7) { width: 10% !important; text-align: center !important; overflow: visible !important; position: relative !important; }

/* Explicit column width percentages & text alignments for Closed Trades Table */
.closed-positions-table th:nth-child(1), .closed-positions-table td:nth-child(1) { width: 20% !important; text-align: center !important; }
.closed-positions-table th:nth-child(2), .closed-positions-table td:nth-child(2) { width: 14% !important; text-align: center !important; }
.closed-positions-table th:nth-child(3), .closed-positions-table td:nth-child(3) { width: 10% !important; text-align: center !important; }
.closed-positions-table th:nth-child(4), .closed-positions-table td:nth-child(4) { width: 18% !important; text-align: right !important; }
.closed-positions-table th:nth-child(5), .closed-positions-table td:nth-child(5) { width: 18% !important; text-align: right !important; }
.closed-positions-table th:nth-child(6), .closed-positions-table td:nth-child(6) { width: 12% !important; text-align: right !important; }
.closed-positions-table th:nth-child(7), .closed-positions-table td:nth-child(7) { width: 8% !important; text-align: center !important; }

.text-positive { color: #10b981 !important; }
.text-negative { color: #ef4444 !important; }

.btn-sm-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn-sm-buy {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-sm-sell {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Flexible Responsive Expansion for Orders, Holdings, and Watchlist Panels */
.main-view-panel { display: none; }
.main-view-panel.active { 
  display: flex !important; 
  flex-direction: column !important; 
  width: 100% !important; 
  height: auto !important; 
  min-height: auto !important;
  gap: 16px !important;
}

#portfolio-subcontent-positions,
#portfolio-subcontent-holdings {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

#view-pending.active .holdings-panel-card,
#view-holdings.active .holdings-panel-card,
#view-watchlist.active .holdings-panel-card,
#card-orders-pending,
#card-orders-executed {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  flex: none !important;
}

#view-pending .table-responsive,
#view-holdings .table-responsive,
#view-watchlist .table-responsive,
.holdings-panel-card .table-responsive {
  width: 100% !important;
  max-height: 480px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.bottom-status-bar {
  background: var(--trade-sidebar-bg);
  border-top: 1px solid var(--trade-border);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--trade-text-muted);
}

.btn-reset-discreet {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--trade-text-muted);
  font-size: 10px;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.7;
  line-height: 1.2;
}

.btn-reset-discreet:hover {
  opacity: 1;
  color: #ef4444;
}

/* Modals Backdrop */
.trade-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 5, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.trade-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* LIVE ANIMATED MARKET TICKER BAR (Identical to Homepage) */
.market-ticker {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 998 !important;
  background: rgba(5, 8, 22, 0.96) !important;
  border-top: 1px solid rgba(59, 130, 246, 0.18) !important;
  overflow: hidden !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

.market-ticker.ticker-loaded {
  opacity: 1 !important;
  visibility: visible !important;
}

.ticker-track {
  animation: tickerScroll 162s linear infinite !important;
  transform: translateZ(0) !important;
}

#ticker-status {
  position: absolute !important;
  right: 16px !important;
  top: -26px !important;
  transform: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 1000 !important;
  padding: 0 !important;
}

body.light-theme .market-ticker {
  background: rgba(248, 250, 255, 0.98) !important;
  border-top-color: rgba(37, 99, 235, 0.12) !important;
}

.ticker-track {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  white-space: nowrap !important;
  animation: tickerScroll 117s linear infinite !important;
  transform: translate3d(0, 0, 0) !important;
  will-change: transform !important;
  padding: 0 14px !important;
}

.ticker-track:hover {
  animation-play-state: paused !important;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.ticker-item strong {
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
}

.ticker-positive { color: #34d399 !important; }
.ticker-negative { color: #f87171 !important; }
.ticker-sep { color: #f59e0b !important; font-size: 14px !important; padding: 0 8px !important; }

/* VIBRANT BOLD COLORFUL ARK TOP DROPDOWN PILL BUTTON */
.ark-dropdown-pill-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
  border: 2px solid #ffffff !important;
  border-radius: 50px !important;
  padding: 10px 42px 10px 26px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: 0.9px !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5), 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer !important;
  outline: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 14px 14px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.light-theme .ark-dropdown-pill-select {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55), 0 4px 12px rgba(180, 83, 9, 0.3) !important;
}

.ark-dropdown-pill-select:hover, .ark-dropdown-pill-select:focus {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.7) !important;
}

.ark-dropdown-pill-select option {
  background: #0f172a !important;
  color: #f59e0b !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  padding: 10px !important;
}

/* Order Modal Specific Backdrop - Transparent Floating Container preserving 100% page visibility */
#modal-glass-order-ticket,
#modal-glass-order-ticket.order-ticket-backdrop,
.order-ticket-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  opacity: 0;
  pointer-events: none !important;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#modal-glass-order-ticket.active,
#modal-glass-order-ticket.order-ticket-backdrop.active,
.order-ticket-backdrop.active {
  opacity: 1 !important;
  pointer-events: none !important;
  visibility: visible !important;
}

/* SIGN IN GLASS MODAL BACKDROP (PC & Mobile Centering) */
#modal-glass-signin {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999999 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

#modal-glass-signin.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#modal-glass-signin .apple-glass-signin {
  max-width: 92vw !important;
  margin: auto !important;
}

.order-ticket-backdrop.is-exit-ticket #group-trigger-price,
.order-ticket-backdrop.is-exit-ticket #group-target-price,
#modal-glass-order-ticket.is-exit-ticket #group-trigger-price,
#modal-glass-order-ticket.is-exit-ticket #group-target-price {
  display: none !important;
}



/* BEAUTIFUL BOLD COLORFUL ARK TOP DROPDOWN PILL BUTTON */
.ark-colorful-pill-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 30px !important;
  padding: 6px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45), 0 0 18px rgba(245, 158, 11, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ark-colorful-pill-btn:hover {
  transform: translateY(-1.5px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.55), 0 0 22px rgba(245, 158, 11, 0.45) !important;
}

.ark-colorful-dropdown {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.9px !important;
  cursor: pointer !important;
  outline: none !important;
  text-transform: uppercase !important;
  padding: 2px 4px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.ark-colorful-dropdown option {
  background: #0f172a !important;
  color: #f59e0b !important;
  font-weight: 900 !important;
}

/* GENERAL GLASS ORDER TICKET MODAL (Centered for Sign In / Onboarding) */
.glass-order-modal {
  background: linear-gradient(145deg, rgba(14, 23, 42, 0.85) 0%, rgba(6, 11, 24, 0.92) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  width: 380px !important;
  max-width: 94vw !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  color: #ffffff !important;
}

body.light-theme .glass-order-modal {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 25px rgba(59, 130, 246, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  color: #0f172a !important;
}

/* GORGEOUS HIGH-CONTRAST COMPACT GLASS ORDER TICKET MODAL (Draggable, 50% More Rounded, 45% Larger Buy/Sell Font) */
.order-ticket-backdrop .glass-order-modal {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  background: rgba(11, 18, 33, 0.95) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 45px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 0 30px rgba(59, 130, 246, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  width: 296px !important;
  max-width: 92vw !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  color: #ffffff !important;
  pointer-events: auto !important;
}

.order-ticket-backdrop .glass-order-modal .glass-modal-header {
  padding-bottom: 4px !important;
  cursor: grab;
  user-select: none;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.order-ticket-backdrop .glass-order-modal .glass-modal-header:active {
  cursor: grabbing;
}
.glass-drag-handle {
  font-size: 25px !important;
  line-height: 1 !important;
  letter-spacing: 0.5px;
  color: #10b981 !important;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 6px;
  cursor: grab;
  font-weight: 900 !important;
  transition: color 0.2s ease !important;
}
.order-ticket-backdrop.is-sell-order .glass-drag-handle {
  color: #ef4444 !important;
}
.order-ticket-backdrop .glass-order-modal .glass-modal-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}
.order-ticket-backdrop .glass-order-modal .glass-symbol-ltp-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  text-align: left !important;
}
.order-ticket-backdrop .glass-order-modal .glass-stock-symbol {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: left !important;
}
.order-ticket-backdrop .glass-order-modal .glass-stock-ltp {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #10b981 !important;
  text-align: left !important;
}
.order-ticket-backdrop .glass-order-modal .glass-stock-name {
  font-size: 9.5px !important;
  margin-top: 2px !important;
  padding-left: 0 !important;
  text-align: left !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.order-ticket-backdrop .glass-order-modal .glass-close-btn {
  width: 24px !important;
  height: 24px !important;
  font-size: 14px !important;
  border-radius: 50% !important;
}
.order-ticket-backdrop .glass-order-modal .glass-pill-selector {
  padding: 3px !important;
  gap: 3px !important;
  border-radius: 16px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-pill-btn {
  padding: 4px 6px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  letter-spacing: 0.5px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-pill-btn.buy,
.order-ticket-backdrop .glass-order-modal .glass-pill-btn.sell {
  padding: 5px 10px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}
.order-ticket-backdrop .glass-order-modal .glass-pill-selector {
  border-radius: 22px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-pill-btn.prod,
.order-ticket-backdrop .glass-order-modal .glass-pill-btn.kind {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 4px 4px !important;
  border-radius: 18px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-input-stepper {
  gap: 2px !important;
  border-radius: 19px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-input-field {
  font-size: 11px !important;
  padding: 4px 7px !important;
  height: 28px !important;
  border-radius: 19px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-stepper-btn {
  width: 16px !important;
  font-size: 8.5px !important;
  padding: 0 !important;
  border-radius: 10px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-input-label {
  font-size: 8.5px !important;
  margin-bottom: 1px !important;
  text-align: left !important;
}
.order-ticket-backdrop .glass-order-modal .glass-input-grid {
  gap: 4px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-input-group {
  gap: 2px !important;
  text-align: left !important;
}
.order-ticket-backdrop .glass-order-modal .glass-summary-card {
  padding: 7px 10px !important;
  border-radius: 25px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-summary-card strong {
  font-size: 11px !important;
}
.order-ticket-backdrop .glass-order-modal .glass-summary-card span {
  font-size: 9px !important;
}
.order-ticket-backdrop .glass-order-modal #btn-glass-submit-order {
  width: 67% !important;
  max-width: 67% !important;
  margin: 10px auto 0 auto !important;
  display: block !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  border-radius: 14px !important;
}

/* Active Pill Button Color Pattern (BUY=Green, SELL=Red, PROD=Blue, KIND=Yellow) */
.order-ticket-backdrop .glass-pill-btn.buy.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.order-ticket-backdrop .glass-pill-btn.sell.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}

.order-ticket-backdrop .glass-pill-btn.prod.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}

.order-ticket-backdrop .glass-pill-btn.kind.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

/* Light Theme Order Modal Visibility & High Contrast Colorful Buttons */
body.light-theme .order-ticket-backdrop .glass-order-modal {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  color: #0f172a !important;
}
body.light-theme .order-ticket-backdrop .glass-stock-symbol {
  color: #0f172a !important;
}
body.light-theme .order-ticket-backdrop .glass-stock-name {
  color: #475569 !important;
}
body.light-theme .order-ticket-backdrop .glass-close-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}
body.light-theme .order-ticket-backdrop .glass-pill-selector {
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .order-ticket-backdrop .glass-pill-btn {
  color: #475569 !important;
}
body.light-theme .order-ticket-backdrop .glass-pill-btn.prod.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}
body.light-theme .order-ticket-backdrop .glass-pill-btn.kind.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}
body.light-theme .order-ticket-backdrop .glass-pill-btn.buy.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}
body.light-theme .order-ticket-backdrop .glass-pill-btn.sell.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}
body.light-theme .order-ticket-backdrop .glass-input-label {
  color: #475569 !important;
}
body.light-theme .order-ticket-backdrop .glass-input-field {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  color: #0f172a !important;
}
body.light-theme .order-ticket-backdrop .glass-summary-card {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .order-ticket-backdrop .glass-summary-card span {
  color: #475569 !important;
}
body.light-theme .order-ticket-backdrop .glass-summary-card strong {
  color: #0f172a !important;
}
body.light-theme .order-ticket-backdrop #btn-glass-submit-order.buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
}
body.light-theme .order-ticket-backdrop #btn-glass-submit-order.sell {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4) !important;
}

/* Mobile responsive overrides for order ticket chatbox layout */
@media (max-width: 768px) {
  .order-ticket-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
  }
  .order-ticket-backdrop .glass-order-modal {
    margin: 0 auto !important;
    max-width: 320px !important;
    width: 90vw !important;
    padding: 12px 14px !important;
    gap: 8px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-modal-title {
    font-size: 12px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-stock-symbol {
    font-size: 18px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-stock-ltp {
    font-size: 16px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-pill-btn {
    font-size: 9.5px !important;
    padding: 4px 8px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-input-group {
    gap: 3px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-input-field {
    font-size: 13px !important;
    padding: 5px 8px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-input-label {
    font-size: 9px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-summary-card {
    padding: 8px 10px !important;
  }
  .order-ticket-backdrop .glass-order-modal .glass-summary-card strong {
    font-size: 13px !important;
  }
  .order-ticket-backdrop .glass-order-modal #btn-glass-submit-order {
    width: 100% !important;
    margin-top: 8px !important;
    display: block !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
}

body.light-theme .glass-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .glass-stock-symbol {
  color: #0f172a !important;
}

body.light-theme .glass-stock-name {
  color: #64748b !important;
}

body.light-theme .glass-close-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

body.light-theme .glass-close-btn:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

body.light-theme .glass-pill-selector {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .glass-pill-btn {
  color: #64748b !important;
}

body.light-theme .glass-pill-btn:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .glass-input-label {
  color: #475569 !important;
}

body.light-theme .glass-input-field {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
}

body.light-theme .glass-summary-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

body.light-theme .glass-summary-card span {
  color: #64748b !important;
}

body.light-theme .glass-summary-card strong {
  color: #0f172a !important;
}

/* Itemized Charges Popover Theme Rules */
.glass-charges-popover {
  background: #0f172a !important;
  border: 1.5px solid rgba(59, 130, 246, 0.4) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body.light-theme .glass-charges-popover {
  background: #ffffff !important;
  border: 1.5px solid rgba(59, 130, 246, 0.4) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
}

body.light-theme .glass-charges-popover div {
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .glass-charges-popover span {
  color: #64748b !important;
}

body.light-theme .glass-charges-popover strong {
  color: #0f172a !important;
}

.glass-modal-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-bottom: 8px !important;
}

.glass-stock-symbol {
  font-family: 'Outfit', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
}

.glass-stock-name {
  font-size: 10.5px !important;
  color: #9ca3af !important;
  margin-top: 1px !important;
}

.glass-close-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.glass-close-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

.glass-pill-selector {
  display: flex !important;
  background: #070d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 3px !important;
  border-radius: 8px !important;
  gap: 3px !important;
}

.glass-pill-btn {
  flex: 1 !important;
  padding: 5px 6px !important;
  border: none !important;
  background: transparent !important;
  color: #9ca3af !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 9.5px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-align: center !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.glass-pill-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.glass-pill-btn.buy.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.45) !important;
  font-weight: 800 !important;
}

.glass-pill-btn.sell.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.45) !important;
  font-weight: 800 !important;
}

.glass-pill-btn.prod.active {
  background: #3b82f6 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4) !important;
}

.glass-pill-btn.kind.active {
  background: #f59e0b !important;
  color: #070c18 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
}

.glass-input-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.glass-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.glass-input-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #9ca3af !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.glass-input-field {
  width: 100% !important;
  background: #070d1a !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  padding: 7px 10px !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}

.glass-input-field:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) !important;
}

.glass-summary-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

@keyframes glass-shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.btn-execute-order {
  width: 67% !important;
  max-width: 67% !important;
  margin: 10px auto 0 auto !important;
  display: block !important;
  padding: 10px 12px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease !important;
}

.btn-execute-order.buy {
  background: linear-gradient(120deg, #10b981 0%, #059669 40%, #a7f3d0 50%, #059669 60%, #10b981 100%) !important;
  background-size: 200% auto !important;
  animation: glass-shine 20s linear infinite !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45) !important;
}

.btn-execute-order.sell {
  background: linear-gradient(120deg, #ef4444 0%, #dc2626 40%, #fecaca 50%, #dc2626 60%, #ef4444 100%) !important;
  background-size: 200% auto !important;
  animation: glass-shine 20s linear infinite !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.45) !important;
}

body.light-theme .glass-drag-handle {
  color: #10b981 !important;
}
body.light-theme .order-ticket-backdrop.is-sell-order .glass-drag-handle {
  color: #ef4444 !important;
}
body.light-theme .ticker-sep {
  color: #64748b !important;
}

.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.toast {
  background: var(--trade-card-bg);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--trade-text);
  font-size: 12px;
}

/* Enforced Dark Glassmorphic Theme specifically for Account Access popup */
.apple-glass-signin {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.apple-glass-signin .glass-stock-symbol {
  color: #ffffff !important;
}

.apple-glass-signin .glass-stock-name {
  color: rgba(255, 255, 255, 0.6) !important;
}

.apple-glass-signin .glass-input-field {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.apple-glass-signin .glass-input-label {
  color: rgba(255, 255, 255, 0.5) !important;
}

.apple-glass-signin .glass-close-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.apple-glass-signin .glass-close-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

/* GLOBAL SHINING SIGN-IN BUTTON & USER NAME BADGE */
.global-auth-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 3px !important;
  text-align: center !important;
}

.shining-signin-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(16, 185, 129, 0.2) 50%, rgba(59, 130, 246, 0.2) 100%) !important;
  border: 1.5px solid transparent !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  background-image: linear-gradient(#0b1329, #0b1329), linear-gradient(90deg, #f59e0b, #10b981, #3b82f6, #f59e0b) !important;
  background-size: 200% auto !important;
  border-radius: 20px !important;
  padding: 4px 14px !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  transition: all 0.25s ease !important;
  animation: shiningBtnShimmer 3.5s infinite linear !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35) !important;
}

.shining-signin-btn:hover {
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.55) !important;
}

body.light-theme .shining-signin-btn {
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(90deg, #f59e0b, #10b981, #3b82f6, #f59e0b) !important;
  color: #0f172a !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15) !important;
}

@keyframes shiningBtnShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* SHINING USER NAME BADGE */
.shining-user-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 3px 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.shining-user-badge:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.shining-user-name {
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 33%, #3b82f6 66%, #f59e0b 100%) !important;
  background-size: 200% auto !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  animation: textShimmer 4s infinite linear !important;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* PROFILE DROPDOWN MENU */
.profile-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-5px) !important;
  margin-top: 6px !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  width: 200px !important;
  display: none !important;
  flex-direction: column !important;
  z-index: 100000 !important;
  padding: 10px !important;
  color: #ffffff !important;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.profile-dropdown-menu.active {
  display: flex !important;
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

.profile-dropdown-header {
  display: flex !important;
  flex-direction: column !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding-bottom: 6px !important;
  margin-bottom: 6px !important;
  text-align: left !important;
}

.profile-dropdown-header strong {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.profile-dropdown-header span {
  font-size: 10px !important;
  color: rgba(255,255,255,0.5) !important;
  word-break: break-all !important;
  line-height: 1.2 !important;
}

.profile-dropdown-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  margin-bottom: 8px !important;
  text-align: left !important;
}

.profile-info-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 10.5px !important;
  gap: 4px !important;
}

.profile-info-item span {
  color: rgba(255,255,255,0.5) !important;
}

.profile-info-item strong {
  color: #ffffff !important;
  text-align: right !important;
}

.profile-dropdown-footer {
  display: flex !important;
  gap: 6px !important;
}

.profile-dropdown-footer button {
  flex: 1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.profile-dropdown-footer button:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.profile-dropdown-footer button.btn-logout {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}

.profile-dropdown-footer button.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25) !important;
}

/* =========================================================
   Unified Header Ticker Styles
   ========================================================= */
.header-ticker-wrapper {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}
.header-ticker-wrapper .header-datetime {
  height: 20px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  display: inline-flex !important;
}
@media (max-width: 992px) {
  .header-ticker-wrapper {
    gap: 0 !important;
  }
  .header-ticker-wrapper .header-datetime {
    display: none !important;
  }
}
#header-ticker {
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 5px 12px !important;
  border-radius: 12px !important;
  font-family: 'Outfit', sans-serif !important;
  height: 42px !important;
  width: 180px !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
  opacity: 0;
  transform: translateY(3px);
  white-space: nowrap !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
body.light-theme #header-ticker {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#header-ticker.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.header-ticker-row-top {
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  color: var(--text-primary) !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
}
.header-ticker-row-bottom {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin-top: 3px !important;
}
.header-ticker-price {
  color: var(--text-primary) !important;
}
.header-ticker-change {
  font-size: 13px !important;
}
.header-ticker-up { color: #10b981 !important; }
.header-ticker-down { color: #ef4444 !important; }

@media (max-width: 992px) {
  #header-ticker {
    display: none !important;
  }
}

/* Mobile-only Watchlist Tab Switcher Styles */
.mobile-only-tab {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only-tab {
    display: inline-block !important;
  }

  /* Hide left sidebar by default on mobile; display main content panel */
  .left-sidebar {
    display: none !important;
  }
  .main-content-panel {
    display: flex !important;
    width: 100% !important;
  }

  /* Show Left Sidebar (Watchlist) and hide Main Content Panel if watchlist tab is active */
  body:has(.nav-option-btn[data-target="view-watchlist"].active) .left-sidebar,
  body:has(.sidebar-tool-btn[data-target="view-watchlist"].active) .left-sidebar {
    display: flex !important;
    width: 100% !important;
  }
  body:has(.nav-option-btn[data-target="view-watchlist"].active) .main-content-panel,
  body:has(.sidebar-tool-btn[data-target="view-watchlist"].active) .main-content-panel {
    display: none !important;
  }
}

/* Gentle Sign-In Prompt Card Styles */
.gentle-signin-prompt {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 99999 !important;
  transform: translateY(150%) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
}

body.light-theme .gentle-signin-prompt {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

.gentle-signin-prompt.active {
  transform: translateY(0) !important;
}

.prompt-text {
  font-weight: 500 !important;
}

.prompt-btn {
  background: #10b981 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  transition: background 0.2s !important;
  white-space: nowrap !important;
}

.prompt-btn:hover {
  background: #059669 !important;
}

.prompt-close {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 4px !important;
}

body.light-theme .prompt-close {
  color: rgba(15, 23, 42, 0.5) !important;
}

.prompt-close:hover {
  color: #ffffff !important;
}

body.light-theme .prompt-close:hover {
  color: #0f172a !important;
}

@media (max-width: 768px) {
  .gentle-signin-prompt {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    font-size: 12px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    justify-content: space-between !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* FEATURE GATE OVERLAYS */
.gate-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  pointer-events: none !important; /* Click through overlay by default */
}

.gate-overlay .prompt-btn {
  pointer-events: auto !important; /* Make only the button clickable */
  position: relative !important;
  z-index: 10000 !important;
  cursor: pointer !important;
}

/* BEAUTIFUL PROFESSIONAL COLORFUL SIGN IN WINDOW */
.apple-glass-signin {
  width: 350px !important;
  max-width: 95vw !important;
  background: linear-gradient(135deg, rgba(13, 27, 56, 0.95) 0%, rgba(5, 11, 23, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(16, 185, 129, 0.15) !important; /* Soft Emerald Glow */
  border-radius: 20px !important;
  padding: 24px 28px !important;
  gap: 16px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.signin-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 6px;
}

.signin-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.signin-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.signin-brand-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.signin-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 10px 0;
}

.signin-divider::before,
.signin-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}

.signin-divider:not(:empty)::before {
  margin-right: .5em;
}

.signin-divider:not(:empty)::after {
  margin-left: .5em;
}

.signin-input-field {
  width: 100% !important;
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  padding: 11px 14px !important;
  font-size: 13.5px !important;
  transition: all 0.25s ease !important;
  outline: none !important;
}

.signin-input-field:focus {
  border-color: #10b981 !important;
  background: rgba(15, 23, 42, 0.75) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2) !important;
}

.signin-submit-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.signin-submit-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45) !important;
}

.signin-submit-btn:active {
  transform: translateY(0.5px) !important;
}

/* Force dark theme style for sign-in modal in all modes */
.apple-glass-signin {
  background: linear-gradient(135deg, rgba(13, 27, 56, 0.96) 0%, rgba(5, 11, 23, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(16, 185, 129, 0.2) !important;
}

.apple-glass-signin .signin-brand-desc {
  color: rgba(255, 255, 255, 0.8) !important;
}

.apple-glass-signin .signin-divider {
  color: rgba(255, 255, 255, 0.6) !important;
}

.apple-glass-signin .glass-input-label {
  color: rgba(255, 255, 255, 0.65) !important;
}

.apple-glass-signin .signin-input-field {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.apple-glass-signin .signin-input-field::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Bottom Marquee Animation */
.status-marquee-content {
  display: inline-block;
  will-change: transform;
  font-weight: 700 !important;
}

.status-marquee-wrapper:hover .status-marquee-content {
  animation-play-state: paused;
  cursor: pointer;
}

@keyframes statusMarquee {
  0% { transform: translate3d(100vw, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Symbol Pill Styling */
.symbol-pill-box {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--trade-text, #ffffff);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  line-height: 1.25;
}

body.light-theme .symbol-pill-box {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #111827 !important;
}

.symbol-pill-box:hover {
  border-color: #10b981 !important;
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

/* Position Row Action Symbol & Dropdown Popup Menu */
.pos-action-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin: 0 auto;
  overflow: visible !important;
}

.pos-action-trigger-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #10b981 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.pos-action-dropdown-wrapper:hover .pos-action-trigger-btn,
.pos-action-trigger-btn:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #34d399 !important;
  transform: scale(1.2);
}

.pos-action-menu-popup {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 4px);
  min-width: 155px;
  background: var(--trade-card-bg, #1a1e29);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  padding: 6px;
  z-index: 99999;
  flex-direction: column;
  gap: 3px;
}

.pos-action-dropdown-wrapper:hover .pos-action-menu-popup,
.pos-action-dropdown-wrapper.active .pos-action-menu-popup {
  display: flex !important;
}

.pos-action-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: none !important;
  background: transparent !important;
  color: var(--trade-text, #ffffff) !important;
  cursor: pointer !important;
  text-align: left !important;
  width: 100% !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.pos-action-menu-item.add:hover { color: #10b981 !important; background: rgba(16, 185, 129, 0.15) !important; }
.pos-action-menu-item.sl:hover { color: #ef4444 !important; background: rgba(239, 68, 68, 0.15) !important; }
.pos-action-menu-item.target:hover { color: #10b981 !important; background: rgba(16, 185, 129, 0.15) !important; }
.pos-action-menu-item.exit:hover { color: #ffffff !important; background: #ef4444 !important; }

/* Table Hover Actions inside last cell (Centered alignment under Actions header) */
.table-hover-actions {
  display: flex !important;
  gap: 6px !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}

.clean-trade-table td:last-child {
  text-align: center !important;
}

.clean-trade-table th:last-child {
  text-align: center !important;
  padding-left: 0 !important;
}

/* Always Light Mode Sign-In Modal styling */
.apple-glass-signin {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 250, 0.98) 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 40px rgba(16, 185, 129, 0.05) !important;
  color: #1f2937 !important;
}

.apple-glass-signin .signin-brand-desc {
  color: #4b5563 !important;
}

.apple-glass-signin .signin-divider {
  color: #6b7280 !important;
}

.apple-glass-signin .signin-divider::before,
.apple-glass-signin .signin-divider::after {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

.apple-glass-signin .glass-input-label {
  color: #374151 !important;
  font-weight: 700 !important;
}

.apple-glass-signin .signin-input-field {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #111827 !important;
}

.apple-glass-signin .signin-input-field::placeholder {
  color: #9ca3af !important;
}

.apple-glass-signin .glass-close-btn {
  color: rgba(0, 0, 0, 0.6) !important;
}

.apple-glass-signin .glass-close-btn:hover {
  color: #000000 !important;
}

/* Siri-like Advanced Liquid Plasma Orb */
.aii-siri-orb-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.aii-siri-orb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #818cf8 25%, #c084fc 50%, #f472b6 75%, #fbbf24 100%);
  box-shadow: 0 0 25px rgba(167, 139, 250, 0.8), 0 0 50px rgba(56, 189, 248, 0.5), inset 0 0 18px rgba(255, 255, 255, 0.7);
  animation: siri-orb-morph 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate, siri-orb-hue 8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Inner Plasma Fluid Swirl */
.aii-siri-orb-plasma {
  position: absolute;
  inset: 2px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: conic-gradient(from 0deg, #38bdf8, #818cf8, #f472b6, #fbbf24, #10b981, #38bdf8);
  mix-blend-mode: overlay;
  opacity: 0.85;
  filter: blur(3px);
  animation: siri-plasma-rotate 3s linear infinite;
}

/* Glowing Pulsing Core */
.aii-siri-orb-core {
  position: relative;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(255, 255, 255, 0.95) 45%, rgba(244, 114, 182, 0.6) 80%, transparent 100%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9), 0 0 24px rgba(192, 132, 252, 0.8);
  filter: blur(0.5px);
  animation: siri-core-pulse 1.6s ease-in-out infinite alternate;
}

/* Sparkling Star Rays Effect */
.aii-siri-orb-sparkle {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.aii-siri-orb-sparkle::before,
.aii-siri-orb-sparkle::after {
  content: '';
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffffff, 0 0 16px #38bdf8;
  animation: siri-sparkle-flash 1.8s ease-in-out infinite alternate;
}

.aii-siri-orb-sparkle::before {
  width: 2px;
  height: 26px;
}

.aii-siri-orb-sparkle::after {
  width: 26px;
  height: 2px;
}

/* Ambient Backlight Glow */
.aii-siri-orb-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.45) 0%, rgba(129, 140, 248, 0.35) 45%, rgba(56, 189, 248, 0.2) 75%, transparent 100%);
  filter: blur(12px);
  animation: siri-glow-pulse 2.2s ease-in-out infinite alternate;
}

@keyframes siri-orb-morph {
  0% { transform: scale(0.9) rotate(0deg); border-radius: 42% 58% 65% 35% / 45% 55% 45% 55%; }
  33% { transform: scale(1.08) rotate(120deg); border-radius: 65% 35% 45% 55% / 55% 45% 60% 40%; }
  66% { transform: scale(0.96) rotate(240deg); border-radius: 50% 50% 35% 65% / 40% 60% 50% 50%; }
  100% { transform: scale(1.04) rotate(360deg); border-radius: 58% 42% 55% 45% / 50% 45% 55% 50%; }
}

@keyframes siri-orb-hue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes siri-plasma-rotate {
  0% { transform: rotate(0deg) scale(0.95); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(0.95); }
}

@keyframes siri-core-pulse {
  0% { transform: scale(0.75); opacity: 0.7; box-shadow: 0 0 10px #ffffff; }
  100% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 22px #ffffff, 0 0 30px #f472b6; }
}

@keyframes siri-sparkle-flash {
  0% { opacity: 0.3; transform: rotate(0deg) scale(0.7); }
  100% { opacity: 1; transform: rotate(90deg) scale(1.2); }
}

@keyframes siri-glow-pulse {
  0% { opacity: 0.35; transform: scale(0.85); }
  100% { opacity: 0.9; transform: scale(1.2); }
}

@keyframes siri-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo pulse glow animation */
@keyframes logoGlowShine {
  0% {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2), 0 0 0px rgba(59, 130, 246, 0.1);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4), 0 0 15px rgba(59, 130, 246, 0.3);
    transform: scale(1.03);
  }
}

/* Inputs colorful focus ring styles */
#signin-email:focus, #onboard-name:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25) !important;
}
#signin-password:focus, #onboard-exp:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25) !important;
}
#onboard-dob:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25) !important;
}
#onboard-city:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25) !important;
}

/* Bottom Ticker Layout Overrides for Single Screen App */
html body.single-screen-app {
  padding-bottom: 0 !important;
}

html body.single-screen-app .bottom-status-bar {
  margin-bottom: 0 !important;
}

body.single-screen-app #nifty-stocks-ticker {
  position: static !important;
  height: 32px !important;
  border-top: 1px solid var(--trade-border) !important;
  background: var(--trade-sidebar-bg) !important;
  box-shadow: none !important;
}

/* Hide Stocks Ticker (but keep Index Ticker visible) */
#nifty-stocks-ticker, .nifty-stocks-ticker {
  display: none !important;
}

/* Glass Stock Chart Inline Container (Beside Watchlist) */
.main-content-panel:has(#view-chart.active) {
  padding: 10px 12px 12px 12px !important;
  overflow: hidden !important;
}

#view-chart.main-view-panel.active {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.glass-chart-container {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--trade-border) !important;
  background: var(--trade-card-bg, #0b1222) !important;
  display: flex;
  flex-direction: column;
  color: var(--trade-text) !important;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}

body.light-theme .glass-chart-container {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

.clickable-stock-symbol {
  cursor: pointer;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.clickable-stock-symbol:hover {
  color: #10b981 !important;
  text-decoration: underline !important;
}

.chart-tf-btn, .chart-ind-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--trade-text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-tf-btn:hover, .chart-ind-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--trade-text);
  border-color: rgba(255, 255, 255, 0.25);
}

.chart-tf-btn.active, .chart-ind-btn.active {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

body.light-theme .chart-tf-btn, body.light-theme .chart-ind-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #4b5563;
}

body.light-theme .chart-tf-btn:hover, body.light-theme .chart-ind-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1f2937;
}

body.light-theme .chart-tf-btn.active, body.light-theme .chart-ind-btn.active {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #059669 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.shining-ai-sup {
  color: #10b981 !important;
  -webkit-text-fill-color: #10b981 !important; /* CRITICAL FIX: Override parent text-fill-color: transparent */
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.8) !important;
  font-size: 0.68em !important;
  font-weight: 800 !important;
  margin-left: 1px !important;
  vertical-align: super !important;
  line-height: 0 !important;
  display: inline-block !important;
  opacity: 1 !important;
  animation: ai-pulse 2s infinite ease-in-out !important;
  text-transform: lowercase !important;
}

body.light-theme .shining-ai-sup {
  color: #059669 !important;
  -webkit-text-fill-color: #059669 !important;
  text-shadow: 0 0 6px rgba(5, 150, 105, 0.5) !important;
}

@keyframes ai-pulse {
  0%, 100% {
    opacity: 0.6;
    text-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(16, 185, 129, 1);
  }
}

.ark-level-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
}

body.light-theme .ark-level-box {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.ark-level-box.completed {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.ark-level-box.active {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  color: #3b82f6 !important;
  animation: level-pulse 2s infinite ease-in-out;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.ark-level-box.locked {
  opacity: 0.35;
  color: var(--trade-text-muted);
}

@keyframes level-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
    border-color: rgba(59, 130, 246, 0.8);
  }
}

.siri-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, rgba(59, 130, 246, 0.6) 40%, rgba(16, 185, 129, 0) 70%);
  filter: blur(2px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(59, 130, 246, 0.3);
  animation: siri-pulse 4s infinite linear;
}

@keyframes siri-pulse {
  0% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.85;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, rgba(59, 130, 246, 0.6) 40%, rgba(16, 185, 129, 0) 70%);
  }
  33% {
    transform: scale(1.1) rotate(120deg);
    opacity: 1;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(16, 185, 129, 0.6) 40%, rgba(239, 68, 68, 0) 70%);
  }
  66% {
    transform: scale(0.95) rotate(240deg);
    opacity: 0.9;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.8) 0%, rgba(239, 68, 68, 0.6) 40%, rgba(59, 130, 246, 0) 70%);
  }
  100% {
    transform: scale(0.9) rotate(360deg);
    opacity: 0.85;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, rgba(59, 130, 246, 0.6) 40%, rgba(16, 185, 129, 0) 70%);
  }
}

.shining-gold-text {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  animation: gold-shine 3s linear infinite;
}

@keyframes gold-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.claim-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  border: none !important;
  color: #070c18 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
  animation: claim-pulse 2s infinite ease-in-out;
  cursor: pointer;
}

@keyframes claim-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6);
  }
}

.claim-btn:disabled {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--trade-text-muted) !important;
  box-shadow: none !important;
  animation: none !important;
  cursor: not-allowed !important;
}

.ark-two-column-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .ark-two-column-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.shining-colorful-ark {
  background: linear-gradient(120deg, #10b981, #3b82f6, #8b5cf6, #ec4899, #10b981);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-gradient 3s linear infinite;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  display: inline-block;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

@keyframes shine-gradient {
  to { background-position: 200% center; }
}

.welcome-glass-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25),
              inset 0 0 12px rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  animation: card-border-glow 4s infinite alternate;
}

@keyframes card-border-glow {
  0% {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25),
                0 0 10px rgba(59, 130, 246, 0.06);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(139, 92, 246, 0.15);
  }
}

/* GPU Compositing & Layer Isolation Optimization */
#istreamer-stocks-grid {
  contain: layout style paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* iStreamer Glassmorphic Stock Cards & Tick Flash Animation */
.istreamer-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 0 110px;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.istreamer-hover-actions {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.94) !important;
  border-radius: 10px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  padding: 6px;
  z-index: 99;
}

body.light-theme .istreamer-hover-actions {
  background: rgba(255, 255, 255, 0.95) !important;
}

.istreamer-card:hover .istreamer-hover-actions {
  opacity: 1;
  pointer-events: auto;
}

.istreamer-hover-actions button {
  height: 25px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  border: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.istreamer-hover-actions .btn-hover-chart {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #3b82f6 !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
}

.istreamer-hover-actions .btn-hover-chart:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.45) !important;
}

.istreamer-hover-actions .btn-hover-buy {
  background: #10b981 !important;
  color: #ffffff !important;
}

.istreamer-hover-actions .btn-hover-buy:hover {
  background: #059669 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45) !important;
}

.istreamer-hover-actions .btn-hover-sell {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.istreamer-hover-actions .btn-hover-sell:hover {
  background: #dc2626 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.45) !important;
}

/* iStreamer theme-specific overrides to fix visibility in Dark/Light Modes */
body.light-theme .istreamer-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  content-visibility: auto;
  contain-intrinsic-size: 80px;
}

body:not(.light-theme) .istreamer-card {
  background: rgba(15, 23, 42, 0.88) !important; /* Premium dark background */
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  content-visibility: auto;
  contain-intrinsic-size: 80px;
}

.istreamer-card.tick-up {
  border-color: rgba(16, 185, 129, 0.85) !important;
  background-color: rgba(16, 185, 129, 0.16) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45), inset 0 0 12px rgba(16, 185, 129, 0.25) !important;
  will-change: border-color, background-color, box-shadow;
}

.istreamer-card.tick-down {
  border-color: rgba(239, 68, 68, 0.85) !important;
  background-color: rgba(239, 68, 68, 0.16) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45), inset 0 0 12px rgba(239, 68, 68, 0.25) !important;
  will-change: border-color, background-color, box-shadow;
}

.istreamer-price-up { color: #10b981 !important; }
.istreamer-price-down { color: #ef4444 !important; }
.light-theme .istreamer-price-up { color: #059669 !important; }
.light-theme .istreamer-price-down { color: #dc2626 !important; }

/* Siri Orb Continuous Animation Styles */


.siri-orb-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.7);
  z-index: 2;
}

.siri-orb-wave {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
  animation: siri-pulse 2s infinite ease-in-out;
  z-index: 1;
}

.siri-orb-wave.wave-1 {
  animation-delay: 0s;
}

.siri-orb-wave.wave-2 {
  animation-delay: 0.6s;
  border-color: rgba(59, 130, 246, 0.3);
}

.siri-orb-wave.wave-3 {
  animation-delay: 1.2s;
  border-color: rgba(236, 72, 153, 0.3);
}

@keyframes siri-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* iStreamer Full Screen Mode Layout & Theme Styling */
#subview-ark-istreamer:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 30px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  background: #070c18 !important; /* Default dark mode background */
}

body.light-theme #subview-ark-istreamer:fullscreen {
  background: #f8fafc !important; /* Normal light theme background */
}

/* Adjust Nifty 100 Grid max-height in Full Screen to fill screen space */
#subview-ark-istreamer:fullscreen #istreamer-stocks-grid {
  max-height: calc(100vh - 120px) !important;
}

/* ── Pill Shimmer Animation (Powered By pill) ── */
@keyframes pillShimmer {
  0%   { box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.09), 0 0 12px rgba(59,130,246,0.1); }
  50%  { box-shadow: 0 4px 28px rgba(0,0,0,0.3),  inset 0 1px 0 rgba(255,255,255,0.14), 0 0 26px rgba(99,102,241,0.3), 0 0 48px rgba(59,130,246,0.12); }
  100% { box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.09), 0 0 12px rgba(59,130,246,0.1); }
}

/* ── iStreamer bottom bar fullscreen adjustment ── */
#subview-ark-istreamer:fullscreen #istreamer-powered-pill,
#subview-ark-istreamer:fullscreen #istreamer-glass-pill {
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
}

/* Mobile Responsive Adjustments for Welcome Section */
@media (max-width: 576px) {
  .welcome-glass-card {
    padding: 16px 14px !important;
    text-align: center;
  }
  .welcome-top-left-actions {
    position: static !important;
    margin: 8px auto !important;
    display: inline-block !important;
  }
  .welcome-top-right-status {
    position: static !important;
    align-items: center !important;
    text-align: center !important;
    margin: 8px auto 16px auto !important;
  }
  #welcome-trading-insights {
    padding: 10px 12px !important;
    font-size: 11.5px !important;
    text-align: left;
  }
  #welcome-trading-insights div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  #ark-ai-levels-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  .ark-level-box {
    padding: 6px 2px !important;
  }
  .ark-level-box div:first-child {
    font-size: 8px !important;
  }
  .ark-level-box div:last-child {
    font-size: 10.5px !important;
  }
}

/* ── Green Blinking Live Dot ── */
.status-blink-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: status-pulse 1.5s infinite ease-in-out;
  margin-right: 4px;
}
@keyframes status-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ── Ark Ai Nav Button Enhancements ── */
.nav-option-btn[data-target="view-ark-ai"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ark-nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: status-pulse 1.5s infinite ease-in-out;
  box-shadow: 0 0 6px #10b981;
  margin-left: 2px;
}
.nav-option-btn.active .ark-nav-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ── ii Rewards Section ── */
.rewards-container {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rewards-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
}
.rewards-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(245,158,11,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(251,191,36,0.2);
}
.rewards-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rewards-header span {
  font-size: 11px;
  color: var(--trade-text-muted);
  font-weight: 400;
  -webkit-text-fill-color: var(--trade-text-muted);
}

.rewards-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.rewards-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.3s ease;
}
.rewards-stat-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.rewards-stat-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--trade-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.rewards-stat-value {
  font-size: 15px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.rewards-action-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.3s ease;
}
.rewards-action-card:hover {
  border-color: rgba(255,255,255,0.1);
}
.rewards-action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rewards-action-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rewards-action-label span:first-child {
  font-size: 20px;
}
.rewards-action-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--trade-text);
}
.rewards-action-sub {
  font-size: 10px;
  color: var(--trade-text-muted);
  margin-top: 1px;
}

/* Streak progress dots */
.streak-track {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
  justify-content: center;
}
.streak-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--trade-text-muted);
  background: rgba(255,255,255,0.02);
}
.streak-dot.completed {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
  color: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.15);
}
.streak-dot.active {
  background: rgba(251,191,36,0.15);
  border-color: rgba(251,191,36,0.5);
  color: #fbbf24;
  animation: streak-pulse 1.5s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(251,191,36,0.2);
}
.streak-dot.locked {
  opacity: 0.3;
  background: rgba(255,255,255,0.01);
}
.streak-dot-divider {
  width: 12px;
  height: 1.5px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.streak-dot.completed + .streak-dot-divider {
  background: rgba(16,185,129,0.3);
}

@keyframes streak-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(251,191,36,0.15); }
  50% { transform: scale(1.1); box-shadow: 0 0 14px rgba(251,191,36,0.35); }
}

/* Reward buttons base */
.rewards-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid;
  position: relative;
  overflow: hidden;
}
.rewards-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rewards-btn:hover::after {
  opacity: 1;
}
.rewards-btn:active {
  transform: scale(0.97);
}

.rewards-btn-daily {
  background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(245,158,11,0.1)) !important;
  border-color: rgba(251,191,36,0.35) !important;
  color: #fbbf24 !important;
  box-shadow: 0 4px 20px rgba(251,191,36,0.12) !important;
}
.rewards-btn-daily:hover {
  background: linear-gradient(135deg, rgba(251,191,36,0.25), rgba(245,158,11,0.15)) !important;
  border-color: rgba(251,191,36,0.5) !important;
  box-shadow: 0 6px 25px rgba(251,191,36,0.2) !important;
  transform: translateY(-1px);
}
.rewards-btn-daily:disabled {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: var(--trade-text-muted) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.rewards-btn-hourly {
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(99,102,241,0.1)) !important;
  border-color: rgba(59,130,246,0.35) !important;
  color: #60a5fa !important;
  box-shadow: 0 4px 20px rgba(59,130,246,0.12) !important;
}
.rewards-btn-hourly:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.28), rgba(99,102,241,0.18)) !important;
  border-color: rgba(59,130,246,0.5) !important;
  box-shadow: 0 6px 25px rgba(59,130,246,0.2) !important;
  transform: translateY(-1px);
}
.rewards-btn-hourly:disabled {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: var(--trade-text-muted) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.rewards-btn-claimed {
  background: rgba(16,185,129,0.12) !important;
  border-color: rgba(16,185,129,0.3) !important;
  color: #34d399 !important;
  box-shadow: 0 4px 15px rgba(16,185,129,0.1) !important;
  cursor: default !important;
}
.rewards-btn-claimed:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(16,185,129,0.1) !important;
}

.rewards-btn-loading {
  pointer-events: none !important;
  opacity: 0.8;
}
.rewards-btn-loading .btn-text {
  opacity: 0;
}
.rewards-btn-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  position: absolute;
}

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

.rewards-claim-info {
  font-size: 10px;
  color: var(--trade-text-muted);
  text-align: center;
  margin-top: 8px;
  transition: all 0.3s ease;
}
.rewards-claim-info.success {
  color: #34d399;
}

.rewards-footer {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--trade-text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 14px;
  text-align: center;
}

/* Hourly countdown ring */
.hourly-timer-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.hourly-timer-ring svg {
  transform: rotate(-90deg);
}
.hourly-timer-ring .bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 3;
}
.hourly-timer-ring .progress {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.hourly-timer-ring .progress.ready {
  stroke: #10b981;
}
.hourly-timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--trade-text);
}

@media (max-width: 768px) {
  .trading-nav-options li.mobile-only-tab,
  .trading-nav-options li {
    display: block !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }
  .trading-nav-options li.desktop-only-tab {
    display: none !important;
  }
  .trading-nav-options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px !important;
    border-radius: 18px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .nav-option-btn {
    padding: 7px 4px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 13px !important; /* 25% more rounded */
  }
}

/* Watchlist Round Pill Numbers 1, 2, 3, 4, 5 (10% Bigger on PC, 95% Bigger on Mobile) */
.wl-tab-btn {
  width: 31px !important;
  height: 31px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--trade-text-muted) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  touch-action: manipulation;
}

.wl-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--trade-text) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

.wl-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000000 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
  font-weight: 900 !important;
}

body.light-theme .wl-tab-btn {
  border-color: rgba(0, 0, 0, 0.15) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: #64748b !important;
}

body.light-theme .wl-tab-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

body.light-theme .wl-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
}

@media (max-width: 768px) {
  .wl-tab-btn {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    font-size: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 0 !important;
    transition: all 0.25s ease !important;
    color: transparent !important;
  }
  .wl-tab-btn.active {
    width: 24px !important;
    height: 10px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6) !important;
  }
  .watchlist-tabs-row {
    justify-content: center !important;
    gap: 8px !important;
    padding: 6px 0 !important;
  }
}

/* ── Quick Trade Position Panel ── */
@keyframes qt-border-glow {
  0% { border-color: #f59e0b; box-shadow: 0 0 30px rgba(245,158,11,0.15), 0 0 80px rgba(245,158,11,0.04); }
  33% { border-color: #10b981; box-shadow: 0 0 30px rgba(16,185,129,0.15), 0 0 80px rgba(16,185,129,0.04); }
  66% { border-color: #3b82f6; box-shadow: 0 0 30px rgba(59,130,246,0.15), 0 0 80px rgba(59,130,246,0.04); }
  100% { border-color: #f59e0b; box-shadow: 0 0 30px rgba(245,158,11,0.15), 0 0 80px rgba(245,158,11,0.04); }
}
#qt-position-panel {
  position: fixed;
  top: 70px;
  right: 16px;
  width: 340px;
  max-height: calc(100vh - 100px);
  background: #0b1121;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.06);
  z-index: 9995;
  display: none;
  flex-direction: column;
  padding: 0;
  gap: 0;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  overflow-y: auto;
  animation: qt-border-glow 6s ease-in-out infinite;
}
#qt-position-panel.active {
  display: flex;
}
#qt-position-panel.active {
  display: flex;
}
#qt-position-panel.minimized {
  display: none !important;
}
#qt-position-panel.pip-mode {
  position: fixed;
  top: auto;
  bottom: 80px;
  right: 20px;
  width: 200px;
  max-height: 120px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  cursor: grab;
  animation: none;
  border-color: rgba(245, 158, 11, 0.3);
  padding: 0;
  gap: 0;
  border-radius: 16px;
  resize: none;
}
#qt-position-panel.pip-mode:active {
  cursor: grabbing;
}
#qt-position-panel.pip-mode .qt-panel-header {
  margin: 0;
  padding: 6px 10px;
  border-radius: 16px 16px 0 0;
  cursor: grab;
  background: linear-gradient(135deg, #f59e0b 0%, #10b981 50%, #3b82f6 100%);
}
#qt-position-panel.pip-mode .qt-panel-title {
  font-size: 11px;
}
#qt-position-panel.pip-mode .qt-panel-header-actions {
  gap: 3px;
}
#qt-position-panel.pip-mode .qt-panel-btn,
#qt-position-panel.pip-mode .qt-panel-close {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
#qt-position-panel.pip-mode .qt-summary-row {
  padding: 8px 10px;
  gap: 6px;
}
#qt-position-panel.pip-mode .qt-summary-item {
  padding: 4px 4px;
  border-radius: 8px;
}
#qt-position-panel.pip-mode .qt-summary-label {
  font-size: 7px;
  margin-bottom: 1px;
}
#qt-position-panel.pip-mode .qt-summary-val {
  font-size: 11px;
}
#qt-position-panel.pip-mode .qt-panel-close {
  position: absolute;
  top: 4px;
  right: 4px;
}
#qt-position-panel.pip-mode .qt-tabs,
#qt-position-panel.pip-mode .qt-tab-content {
  display: none !important;
}

.qt-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  margin: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(16, 185, 129, 0.05) 50%, rgba(59, 130, 246, 0.03) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.qt-panel-title {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
  position: relative;
}
.qt-panel-title::after {
  content: '●';
  position: absolute;
  right: -16px;
  top: -2px;
  font-size: 8px;
  -webkit-text-fill-color: #10b981;
  color: #10b981;
  animation: qt-pulse-dot 2s ease-in-out infinite;
}
@keyframes qt-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.qt-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.qt-panel-btn {
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  border: 1.5px solid;
}
.qt-btn-minimize {
  background: #f59e0b20;
  border-color: #f59e0b40;
  color: #fbbf24;
}
.qt-btn-minimize:hover {
  background: #f59e0b40;
  color: #fcd34d;
  border-color: #f59e0b60;
  transform: scale(1.1);
}
.qt-btn-pip {
  background: #3b82f620;
  border-color: #3b82f640;
  color: #60a5fa;
}
.qt-btn-pip:hover {
  background: #3b82f640;
  color: #93c5fd;
  border-color: #3b82f660;
  transform: scale(1.1);
}
.qt-panel-close {
  background: #ef444420;
  border: 1.5px solid #ef444440;
  border-radius: 6px;
  color: #fca5a5;
  cursor: pointer;
  font-size: 15px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  font-weight: 700;
}
.qt-panel-close:hover {
  background: #ef444440;
  color: #f87171;
  border-color: #ef444460;
  transform: scale(1.1);
}

.qt-summary-row {
  display: flex;
  gap: 10px;
  padding: 16px 20px 0;
}
.qt-summary-item {
  flex: 1;
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.qt-summary-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0.08;
}
.qt-summary-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}
.qt-summary-item:nth-child(1) {
  background: #065f4620;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.qt-summary-item:nth-child(1)::after {
  background: #10b981;
  box-shadow: 0 0 20px #10b981;
}
.qt-summary-item:nth-child(2) {
  background: #1e40af20;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.qt-summary-item:nth-child(2)::after {
  background: #3b82f6;
  box-shadow: 0 0 20px #3b82f6;
}
.qt-summary-item:nth-child(3) {
  background: #5b21b620;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.qt-summary-item:nth-child(3)::after {
  background: #8b5cf6;
  box-shadow: 0 0 20px #8b5cf6;
}
.qt-summary-label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.qt-summary-val {
  font-size: 18px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}
.qt-summary-item:nth-child(1) .qt-summary-val { color: #34d399; text-shadow: 0 0 30px rgba(16, 185, 129, 0.3); }
.qt-summary-item:nth-child(2) .qt-summary-val { color: #60a5fa; text-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
.qt-summary-item:nth-child(3) .qt-summary-val { color: #c084fc; text-shadow: 0 0 30px rgba(139, 92, 246, 0.3); }

.qt-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
}
.qt-tab {
  flex: 1;
  background: #ffffff08;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff50;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.qt-tab.active {
  background: linear-gradient(135deg, #f59e0b20 0%, #10b98110 100%);
  border-color: #f59e0b40;
  color: #fbbf24;
}
.qt-tab:hover {
  background: #ffffff10;
  color: #ffffffcc;
}

.qt-tab-content {
  max-height: 320px;
  overflow-y: auto;
  border-radius: 14px;
  background: #ffffff05;
  margin: 10px 20px 16px;
  border: 1px solid #ffffff08;
}
.qt-tab-content table {
  width: 100%;
  border-collapse: collapse;
}
.qt-tab-content th {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff50;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ffffff10;
  position: sticky;
  top: 0;
  background: #0b1121;
}
.qt-tab-content td {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #ffffff06;
}
.qt-tab-content tbody tr:last-child td {
  border-bottom: none;
}
.qt-tab-content tbody tr {
  transition: all 0.15s ease;
}
.qt-tab-content tbody tr:hover {
  background: #ffffff08;
}
.text-positive { color: #34d399 !important; font-weight: 800 !important; }
.text-negative { color: #f87171 !important; font-weight: 800 !important; }

/* Mini P&L Badge */
#qt-mini-pnl {
  display: none;
  position: fixed;
  bottom: 75px;
  right: 20px;
  z-index: 9997;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #f59e0b40;
  box-shadow: 0 0 30px #f59e0b10;
  cursor: grab;
  user-select: none;
  align-items: center;
  justify-content: center;
  transition: none;
  color: #ffffff;
}
#qt-mini-pnl:active {
  cursor: grabbing;
}

/* Light theme overrides */
body.light-theme #qt-position-panel {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.3);
  color: #0f172a;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.04);
}
body.light-theme #qt-position-panel.pip-mode {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
body.light-theme .qt-panel-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(16, 185, 129, 0.02) 50%, rgba(59, 130, 246, 0.02) 100%);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .qt-panel-title {
  background: linear-gradient(135deg, #d97706, #059669, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-theme .qt-panel-title::after {
  -webkit-text-fill-color: #059669;
  color: #059669;
}
body.light-theme .qt-summary-item:nth-child(1) {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.15);
}
body.light-theme .qt-summary-item:nth-child(2) {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
}
body.light-theme .qt-summary-item:nth-child(3) {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.15);
}
body.light-theme .qt-summary-label {
  color: rgba(0, 0, 0, 0.4);
}
body.light-theme .qt-summary-item:nth-child(1) .qt-summary-val { color: #059669; }
body.light-theme .qt-summary-item:nth-child(2) .qt-summary-val { color: #2563eb; }
body.light-theme .qt-summary-item:nth-child(3) .qt-summary-val { color: #7c3aed; }
body.light-theme .qt-tab {
  color: rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}
body.light-theme .qt-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(16, 185, 129, 0.03) 100%);
  border-color: rgba(245, 158, 11, 0.2);
  color: #d97706;
}
body.light-theme .qt-tab:hover {
  color: rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.03);
}
body.light-theme .qt-tab-content {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}
body.light-theme .qt-tab-content th {
  background: #ffffff;
  color: rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
body.light-theme .qt-tab-content td {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}
body.light-theme .qt-tab-content tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}
body.light-theme .qt-btn-minimize { background: #f59e0b10; border-color: #d9770640; color: #d97706; }
body.light-theme .qt-btn-minimize:hover { background: #f59e0b20; color: #b45309; border-color: #d9770660; transform: scale(1.1); }
body.light-theme .qt-btn-pip { background: #3b82f610; border-color: #2563eb40; color: #2563eb; }
body.light-theme .qt-btn-pip:hover { background: #3b82f620; color: #1d4ed8; border-color: #2563eb60; transform: scale(1.1); }
body.light-theme .qt-panel-close { background: #ef444410; border-color: #ef444430; color: #ef4444; }
body.light-theme .qt-panel-close:hover { background: #ef444420; color: #dc2626; border-color: #ef444450; transform: scale(1.1); }
body.light-theme #qt-mini-pnl {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: #f59e0b40;
  color: #0f172a;
  box-shadow: 0 0 30px #f59e0b08;
}
body.light-theme #qt-mini-pnl span:first-child {
  color: #6b7280 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  #qt-position-panel {
    width: calc(100vw - 24px);
    right: 12px;
    top: 60px;
    max-height: calc(100vh - 80px);
  }
  .qt-panel-header {
    padding: 14px 16px 10px;
  }
  .qt-panel-title {
    font-size: 17px;
  }
  .qt-summary-row {
    padding: 14px 16px 0;
    gap: 8px;
  }
  .qt-summary-item {
    padding: 10px 6px;
  }
  .qt-summary-val {
    font-size: 15px;
  }
  .qt-tabs {
    padding: 12px 16px 0;
    gap: 6px;
  }
  .qt-tab {
    font-size: 10px;
    padding: 8px 6px;
  }
  .qt-tab-content {
    margin: 8px 16px 12px;
  }
  .qt-tab-content th {
    padding: 10px 10px;
    font-size: 9px;
  }
  .qt-tab-content td {
    padding: 10px 10px;
    font-size: 12px;
  }
  #qt-position-panel.pip-mode {
    width: calc(100vw - 24px);
    bottom: 70px;
  }
  #qt-mini-pnl {
    bottom: 75px !important;
    right: 12px !important;
  }
}

/* Ark AI View — Seamless Edge-to-Edge Full Width Without Outer Boundary */
#view-ark-ai {
  display: none;
}

#view-ark-ai.active {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

#subview-ark-welcome {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

#subview-ark-welcome .welcome-glass-card {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.light-theme #subview-ark-welcome .welcome-glass-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Floating 3-Section Sub-Tab Pill Bar at Bottom Right */
#view-ark-ai .sub-tab-bar {
  position: sticky !important;
  bottom: 8px !important;
  margin-left: auto !important;
  margin-top: auto !important;
  margin-right: 0 !important;
  margin-bottom: 4px !important;
  display: inline-flex !important;
  gap: 6px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1.5px solid rgba(59, 130, 246, 0.35) !important;
  padding: 4px 6px !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 999 !important;
}

body.light-theme #view-ark-ai .sub-tab-bar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

@media (min-width: 901px) {
  #view-ark-ai.active {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
}

/* ==========================================================================
   ARK AI SECTION — LIQUID GLASS DESIGN SYSTEM
   ========================================================================== */
.liquid-glass-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(59, 130, 246, 0.06) 100%) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-left: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 20px 40px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}

body.light-theme .liquid-glass-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.88) 100%) !important;
  border: 1.5px solid rgba(59, 130, 246, 0.25) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

/* Liquid Glass Cards */
.liquid-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.liquid-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
}

/* Card Variant Accents */
.liquid-card-violet {
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: inset 0 1px 1px rgba(139, 92, 246, 0.3), 0 10px 25px rgba(139, 92, 246, 0.18) !important;
}
.liquid-card-violet:hover {
  border-color: rgba(139, 92, 246, 0.75) !important;
  box-shadow: inset 0 1px 2px rgba(139, 92, 246, 0.5), 0 16px 36px rgba(139, 92, 246, 0.3) !important;
}

.liquid-card-emerald {
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: inset 0 1px 1px rgba(16, 185, 129, 0.3), 0 10px 25px rgba(16, 185, 129, 0.18) !important;
}
.liquid-card-emerald:hover {
  border-color: rgba(16, 185, 129, 0.75) !important;
  box-shadow: inset 0 1px 2px rgba(16, 185, 129, 0.5), 0 16px 36px rgba(16, 185, 129, 0.3) !important;
}

.liquid-card-blue {
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: inset 0 1px 1px rgba(59, 130, 246, 0.3), 0 10px 25px rgba(59, 130, 246, 0.18) !important;
}
.liquid-card-blue:hover {
  border-color: rgba(59, 130, 246, 0.75) !important;
  box-shadow: inset 0 1px 2px rgba(59, 130, 246, 0.5), 0 16px 36px rgba(59, 130, 246, 0.3) !important;
}

.liquid-card-amber {
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: inset 0 1px 1px rgba(245, 158, 11, 0.3), 0 10px 25px rgba(245, 158, 11, 0.18) !important;
}
.liquid-card-amber:hover {
  border-color: rgba(245, 158, 11, 0.75) !important;
  box-shadow: inset 0 1px 2px rgba(245, 158, 11, 0.5), 0 16px 36px rgba(245, 158, 11, 0.3) !important;
}

/* Light Theme Liquid Cards */
body.light-theme .liquid-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: inset 0 1px 1px #ffffff, 0 8px 20px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .liquid-card-violet { border-color: rgba(139, 92, 246, 0.4) !important; }
body.light-theme .liquid-card-emerald { border-color: rgba(16, 185, 129, 0.4) !important; }
body.light-theme .liquid-card-blue { border-color: rgba(59, 130, 246, 0.4) !important; }
body.light-theme .liquid-card-amber { border-color: rgba(245, 158, 11, 0.4) !important; }

/* Liquid Glass Insights Panel */
.liquid-insights-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(15, 23, 42, 0.5) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

body.light-theme .liquid-insights-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

/* High-Contrast Copyright Footer Pill in Light Mode */
body.light-theme .shining-footer-pill {
  background: #ffffff !important;
  border: 1.5px solid rgba(59, 130, 246, 0.55) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .shining-footer-pill a {
  color: #2563eb !important;
  font-weight: 800 !important;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.6) !important;
}

body.light-theme .shining-footer-pill .shining-colorful-ark {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
}
/* Semi-blurred Stop Loss & Target boxes until clicked/touched/focused */
#group-trigger-price,
#group-target-price {
  filter: blur(1.5px);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease, border-color 0.2s ease;
  cursor: pointer;
}

#group-trigger-price:hover,
#group-target-price:hover,
#group-trigger-price.is-active,
#group-target-price.is-active,
#group-trigger-price:focus-within,
#group-target-price:focus-within {
  filter: none !important;
  opacity: 1 !important;
}

/* Intraday & Moving Average Chart Dropdowns (Theme-Aware Light & Dark Mode) */
.chart-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 4px;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 6px !important;
  z-index: 100000 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}

.chart-dropdown-menu.active {
  display: block !important;
}

body.light-theme .chart-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.chart-tf-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #f8fafc !important;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

body.light-theme .chart-tf-option {
  color: #0f172a !important;
}

.chart-tf-option:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
}

body.light-theme .chart-dropdown-label {
  color: #0f172a !important;
  background: #f8fafc !important;
}

#btn-tf-dropdown,
.btn-intraday-tf {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
}

body.light-theme #btn-tf-dropdown,
body.light-theme .btn-intraday-tf {
  background: #2563eb !important; /* Deep Vibrant Royal Blue */
  color: #ffffff !important;      /* Pure White Crisp Text */
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

body.light-theme #btn-tf-dropdown span,
body.light-theme .btn-intraday-tf span {
  color: #ffffff !important;
}

/* ════════════════════════════════════════════════════════════════════
   ARK AI SECTION — shine/animations run ONLY on mouse hover (no loops)
   Scoped to #view-ark-ai and the Ark AI nav button.
   ════════════════════════════════════════════════════════════════════ */
#view-ark-ai .welcome-glass-card,
#view-ark-ai .shining-colorful-ark,
#view-ark-ai .shining-ai-sup,
#view-ark-ai .status-blink-dot,
#view-ark-ai .ark-level-box.active,
#view-ark-ai .siri-orb-wave,
#view-ark-ai .siri-orb-core,
#view-ark-ai .shining-gold-text,
#view-ark-ai .streak-dot.active,
#view-ark-ai .shining-footer-pill,
#view-ark-ai #istreamer-powered-pill,
#view-ark-ai .welcome-open-terminal-btn {
  animation: none !important;
}

.nav-option-btn[data-target="view-ark-ai"] .shining-colorful-ark,
.nav-option-btn[data-target="view-ark-ai"] .shining-ai-sup,
.nav-option-btn[data-target="view-ark-ai"] .ark-nav-dot,
.nav-option-btn[data-target="view-ark-ai"].active {
  animation: none !important;
}

/* Hover: restore each animation */
#view-ark-ai .welcome-glass-card:hover {
  animation: card-border-glow 4s infinite alternate !important;
}
#view-ark-ai .shining-colorful-ark:hover {
  animation: shine-gradient 3s linear infinite !important;
}
#view-ark-ai .shining-colorful-ark:hover .shining-ai-sup {
  animation: ai-pulse 2s infinite ease-in-out !important;
}
#view-ark-ai .welcome-top-right-status:hover .status-blink-dot {
  animation: status-pulse 1.5s infinite ease-in-out !important;
}
#view-ark-ai .ark-level-box.active:hover {
  animation: level-pulse 2s infinite ease-in-out !important;
}
#view-ark-ai .siri-orb-container:hover .siri-orb-wave {
  animation: siri-pulse 2s infinite ease-in-out !important;
}
#view-ark-ai .shining-gold-text:hover {
  animation: gold-shine 3s linear infinite !important;
}
#view-ark-ai .streak-dot.active:hover {
  animation: streak-pulse 1.5s infinite ease-in-out !important;
}
#view-ark-ai .shining-footer-pill:hover {
  animation: pillShimmer 4s infinite alternate !important;
}
#view-ark-ai #istreamer-powered-pill:hover {
  animation: pillShimmer 3s ease-in-out infinite !important;
}
#view-ark-ai .welcome-open-terminal-btn:hover {
  animation: pillShimmer 3s infinite alternate !important;
}
.nav-option-btn[data-target="view-ark-ai"]:hover .shining-colorful-ark {
  animation: shine-gradient 3s linear infinite !important;
}
.nav-option-btn[data-target="view-ark-ai"]:hover .shining-ai-sup {
  animation: ai-pulse 2s infinite ease-in-out !important;
}
.nav-option-btn[data-target="view-ark-ai"]:hover .ark-nav-dot {
  animation: status-pulse 1.5s infinite ease-in-out !important;
}
.nav-option-btn[data-target="view-ark-ai"].active:hover {
  transform: translateY(-1px);
}

/* ==========================================
   Mobile Responsive iStreamer Terminal Rules
   ========================================== */
@media (max-width: 768px) {
  /* 1. Hide center website logo on mobile */
  #subview-ark-istreamer .istreamer-center-logo {
    display: none !important;
  }

  #subview-ark-istreamer .istreamer-header-bar {
    justify-content: space-between !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    min-height: 32px !important;
  }

  /* 2. Dropdown Pill & P&L Pill on Mobile */
  #subview-ark-istreamer .istreamer-dropdown-pill {
    height: 32px !important;
    padding: 4px 12px !important;
    gap: 6px !important;
  }

  #subview-ark-istreamer .istreamer-dropdown-pill .shining-colorful-ark {
    font-size: 12px !important;
  }

  #istreamer-filter-dropdown {
    font-size: 11px !important;
    padding: 3px 20px 3px 8px !important;
    background-position: right 6px center !important;
  }

  #istreamer-pnl-pill {
    height: 32px !important;
    padding: 4px 12px !important;
    gap: 6px !important;
  }

  #istreamer-pnl-pill #istreamer-pnl-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }

  #istreamer-pnl-pill span {
    font-size: 11px !important;
  }

  #istreamer-pnl-value {
    font-size: 12px !important;
  }

  /* 3. Terminal Grid: 4 Columns on Mobile */
  #istreamer-stocks-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    padding: 4px !important;
    max-height: calc(100vh - 160px) !important;
  }

  .istreamer-card {
    padding: 6px 3px !important;
    min-width: 0 !important;
    border-radius: 6px !important;
    gap: 2px !important;
  }

  .istreamer-card > div:nth-child(1) {
    font-size: 9px !important; /* Stock Symbol */
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .istreamer-card > div:nth-child(2) {
    font-size: 10.5px !important; /* Price */
    font-weight: 800 !important;
    margin: 1px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .istreamer-card > div:nth-child(3) {
    font-size: 8.5px !important; /* Change Pct */
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .istreamer-hover-actions {
    padding: 4px !important;
    gap: 4px !important;
  }

  .istreamer-hover-actions button {
    height: 24px !important;
    font-size: 10.5px !important;
    padding: 0 8px !important;
  }

  /* 4. Orders, Positions, Holdings & Funds Tables Mobile Scale */
  .main-view-panel, .ark-subview-panel, .view-content-container {
    padding-bottom: 95px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .clean-trade-table {
    font-size: 13px !important;
    width: 100% !important;
  }

  .clean-trade-table th {
    padding: 10px 8px !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
  }

  .clean-trade-table td {
    padding: 12px 8px !important;
    font-size: 13px !important;
  }

  .liquid-card, .glass-card, .position-card, .subview-card {
    padding: 14px 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. Dock Bottom Ticker Always at Screen Bottom */
  .status-marquee-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: rgba(8, 12, 21, 0.98) !important;
  }

  #istreamer-glass-pill {
    position: fixed !important;
    bottom: 26px !important;
    z-index: 100000 !important;
  }
}

/* Global GPU Performance Optimization Overrides for Trade Terminal (All Desktop & Mobile Devices) */
*, *::before, *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.liquid-card, .liquid-insights-panel, .glass-card, .order-modal, .position-card, .trade-nav, .subview-card, #modal-glass-order-ticket {
  background-color: rgba(15, 23, 42, 0.96) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Strip heavy Gaussian box-shadows & pause GPU keyframe loops on Trade Page */
body.trade-page *, body.trade-terminal * {
  box-shadow: none !important;
  text-shadow: none !important;
}

header .logo-text-plain, header .logo-text-gold, .logo-text-plain, .logo-text-gold, .sparkRotate {
  animation: none !important;
}
