/* components.css - Modern Institutional Terminal UI Components */

/* --- Top Header & Live Ticker Bar --- */
.terminal-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10000;
  overflow: visible !important;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 12px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* White squircle brand logo badge */
.terminal-brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25), 0 0 14px rgba(0, 229, 255, 0.35);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.terminal-brand-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 0 18px rgba(0, 229, 255, 0.5);
}

.terminal-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Stylized Brand Typography matching Photo 1 */
.tmo-brand-text {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  line-height: 1;
}

.tmo-the {
  color: #ffffff;
  font-weight: 800;
}

.tmo-money {
  color: #00e5ff;
  /* Cyan / Money */
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.tmo-ocean {
  color: #38bdf8;
  /* Ocean Blue */
  background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 55%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.brand-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Sleek Minimalist Market Status Pill */
.market-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: help;
  transition: all 0.2s ease;
  user-select: none;
}

.market-status-pill.pill-closed {
  background: rgba(255, 82, 82, 0.12);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.market-status-pill.pill-open {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.status-dot-closed {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5252;
  display: inline-block;
}

.status-pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  display: inline-block;
  box-shadow: 0 0 6px #00e676;
  animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

.header-center-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-header-plans,
button.btn-header-plans,
#headerPlansBtn {
  background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%) !important;
  border: 1px solid #ffd54f !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  padding: 3px 7px !important;
  height: 26px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  box-shadow: 0 0 10px rgba(255, 128, 8, 0.3) !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-header-plans:hover,
#headerPlansBtn:hover {
  background: linear-gradient(135deg, #ffe066 0%, #ff9933 100%) !important;
  box-shadow: 0 0 15px rgba(255, 128, 8, 0.55) !important;
  transform: translateY(-1px) !important;
}

.btn-header-plans span {
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
}

.btn-header-plans .badge-plan-upgrade {
  background: #000000 !important;
  color: #ffd166 !important;
  font-weight: 800 !important;
  font-size: 8.5px !important;
  padding: 1px 4px !important;
  border-radius: 2px !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Ticker Bar */
.ticker-bar {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 6px 16px;
  gap: 16px;
  background: #080c14;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  transition: all 0.2s ease;
}

.ticker-item:hover {
  background: #192233;
  border-color: var(--aqua-border);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
  transform: translateY(-1px);
}

.ticker-name {
  font-weight: 600;
  color: var(--text-secondary);
}

.ticker-val {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* --- Layout & Workspace --- */
.workspace-container {
  padding: 16px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Tab Lock & Paywall Frosted Glass Overlay */
.tab-pane.tab-locked {
  position: relative !important;
  min-height: 520px !important;
}

.tab-pane.tab-locked>*:not(.tab-paywall-overlay) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.tab-paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(6, 11, 20, 0.72) 0%, rgba(4, 7, 13, 0.94) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-md);
  animation: fadeIn 0.3s ease;
}

.paywall-card {
  background: rgba(10, 15, 26, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.15);
  border-radius: 14px;
  padding: 34px 30px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1000;
}

.paywall-icon-badge {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(255, 171, 0, 0.15));
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
}

.paywall-title {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.paywall-message {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.paywall-highlight-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.paywall-highlight-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #e2e8f0;
}

.btn-paywall-upgrade {
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
  color: #040914;
  border: none;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.2s;
}

.btn-paywall-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 229, 255, 0.6);
  background: linear-gradient(135deg, #33ebff 0%, #60a5fa 100%);
}

.tab-lock-badge {
  font-size: 10px;
  opacity: 0.8;
  margin-left: 2px;
}

.tab-btn.tab-locked-btn {
  opacity: 0.82;
}

.tab-btn.tab-locked-btn:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.metric-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Control Bar / Filters */
.control-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Forms & Inputs */
input,
select,
textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--aqua-main);
  box-shadow: 0 0 0 2px var(--aqua-glow);
}

/* Buttons */
.btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  border: 1px solid #00e5ff;
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00e5ff 0%, #0096c7 100%);
  box-shadow: 0 0 12px var(--aqua-glow);
}

.btn-green {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-main);
}

.btn-green:hover {
  background: rgba(0, 230, 118, 0.2);
}

.btn-red {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-main);
}

.btn-red:hover {
  background: rgba(255, 23, 68, 0.2);
}

.btn-coral-save {
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  border: 1px solid #ff4d6d;
  color: #ffffff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}

.btn-coral-save:hover {
  background: linear-gradient(135deg, #ff4d6d 0%, #e63946 100%);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.4);
}

/* Data Tables */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: auto;
  max-height: 600px;
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.terminal-table th {
  background: #0c121d;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

.terminal-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.terminal-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.terminal-table tr.atm-row {
  background: rgba(0, 229, 255, 0.08) !important;
  border-left: 3px solid var(--aqua-main);
}

/* Clickable Stock Symbol Link with Google Chart Search */
.stock-symbol-link,
.stock-symbol-link:link,
.stock-symbol-link:visited,
.stock-symbol-link:active,
.stock-symbol-link:focus,
a.stock-symbol-link,
a.stock-symbol-link:link,
a.stock-symbol-link:visited,
a.stock-symbol-link:active,
a.stock-symbol-link:focus {
  color: var(--aqua-main, #00e5ff) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-family: var(--font-mono, monospace) !important;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 4px;
  border-radius: 3px;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  background: transparent;
}

.stock-symbol-link:hover,
a.stock-symbol-link:hover {
  background: rgba(0, 229, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
  text-decoration: underline !important;
}

.stock-symbol-link span,
a.stock-symbol-link span {
  color: inherit !important;
}

.stock-symbol-link svg,
a.stock-symbol-link svg {
  opacity: 0.65;
  stroke: currentColor;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.stock-symbol-link:hover svg,
a.stock-symbol-link:hover svg {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Modal Dialog - Upper surface / navbar anchored */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 55px;
  padding-bottom: 25px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.modal-overlay.open {
  display: flex !important;
}

#terminalAlertModal {
  z-index: 2147483647 !important;
}

#terminalAlertModal.open {
  display: flex !important;
  z-index: 2147483647 !important;
}

#allPlansModal {
  z-index: 1000000 !important;
}

#allPlansModal.open {
  display: flex !important;
}

#subscriptionPaymentModal {
  z-index: 1000005 !important;
}

#subscriptionPaymentModal.open {
  display: flex !important;
}

@keyframes alertPopIn {
  0% {
    transform: scale(0.92) translateY(12px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 550px;
  margin: 15px auto 25px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* --- Plan Catalogue Accordions & Forms --- */
.plan-group-header {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-accordion {
  background: #0b0f17;
  border: 1px solid #1c2436;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.plan-accordion:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.plan-accordion-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid transparent;
}

.plan-accordion.open .plan-accordion-header {
  border-bottom-color: #1c2436;
  background: rgba(255, 255, 255, 0.04);
}

.plan-accordion-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-accordion-body {
  padding: 16px;
  display: none;
  background: #070a10;
}

.plan-accordion.open .plan-accordion-body {
  display: block;
}

.plan-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.included-tabs-container {
  margin-top: 14px;
  margin-bottom: 16px;
}

.included-tabs-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.included-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.included-tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #ffffff;
  cursor: pointer;
}

.included-tab-item input[type="checkbox"] {
  accent-color: #e63946;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Switch Toggle */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .2s;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked+.switch-slider {
  background-color: #e63946;
}

/* ================= SUBSCRIPTION PLANS & CUSTOM BUILDER ================= */
.duration-switcher-bar {
  display: flex;
  background: #080c14;
  border: 1px solid #1c2638;
  border-radius: 30px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.duration-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.duration-pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.duration-pill-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.08) 100%);
  color: var(--aqua-main);
  border: 1px solid var(--aqua-border);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.savings-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.best-value-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.4px;
}

.custom-builder-box {
  background: linear-gradient(180deg, #090e18 0%, #060910 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.custom-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.custom-tool-card {
  background: #0d131f;
  border: 1px solid #1a2436;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.custom-tool-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: #111a2b;
}

.custom-tool-card.selected {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--aqua-main);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.custom-tool-card.cash-card.selected {
  background: rgba(0, 230, 118, 0.09);
  border-color: #00e676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.custom-tool-card.fno-card.selected {
  background: rgba(0, 229, 255, 0.09);
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.segment-container {
  background: #080c14;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid #1a2438;
}

.segment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-summary-bar {
  background: #080c14;
  border: 1px solid #1c2638;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-tool-pricing-card {
  background: #090e17;
  border: 1px solid #1c2638;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}


input:checked+.switch-slider:before {
  transform: translateX(16px);
}

/* ================= F&O DERIVATIVES MULTI-SUBTAB STYLES ================= */

.fno-subtab-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.fno-subtab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fno-subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.fno-subtab-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(0, 229, 255, 0.05) 100%);
  color: var(--aqua-main);
  border-color: var(--aqua-main);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.fno-subtab-pane {
  display: none;
}

.fno-subtab-pane.active {
  display: block;
  animation: fnoFadeIn 0.25s ease-out;
}

@keyframes fnoFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= CASH MARKET MULTI-SUBTAB STYLES ================= */
.cash-subtab-nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--bg-surface) !important;
  border: 1px solid rgba(0, 230, 118, 0.2) !important;
  border-radius: var(--radius-md) !important;
  padding: 6px !important;
  margin-bottom: 16px !important;
  overflow-x: auto !important;
  scrollbar-width: thin !important;
  white-space: nowrap !important;
}

.cash-subtab-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-secondary) !important;
  padding: 8px 16px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
}

.cash-subtab-btn:hover {
  color: #ffffff !important;
  background: rgba(0, 230, 118, 0.06) !important;
  border-color: rgba(0, 230, 118, 0.25) !important;
}

.cash-subtab-btn.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18) 0%, rgba(0, 230, 118, 0.04) 100%) !important;
  color: #00e676 !important;
  border-color: #00e676 !important;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.25) !important;
}

.cash-subtab-pane {
  display: none !important;
}

.cash-subtab-pane.active {
  display: block !important;
  animation: cashFadeIn 0.25s ease-out !important;
}

/* ================= ADMIN DESK MULTI-SUBTAB STYLES ================= */
.admin-subtab-nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  padding-bottom: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(245, 158, 11, 0.5) rgba(0, 0, 0, 0.4) !important;
}

.admin-subtab-nav::-webkit-scrollbar {
  height: 5px;
}

.admin-subtab-nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.admin-subtab-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f59e0b, #00e5ff);
  border-radius: 4px;
}

.admin-subtab-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

@keyframes cashFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= F&O SECTOR HEATMAP STYLES ================= */

.heat-legend-pill {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: inline-block;
}

.sector-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sector-summary-card:hover {
  border-color: var(--aqua-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sector-summary-card.active-sector-card {
  border-color: var(--aqua-main);
  background: rgba(0, 229, 255, 0.08);
}

.fno-sector-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fno-sector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.fno-sector-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fno-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.fno-heatmap-tile {
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.fno-heatmap-tile:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  border-color: #ffffff;
  z-index: 10;
}

.heat-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heat-tile-symbol {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

.heat-tile-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.heat-tile-mid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.heat-tile-price {
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

.heat-tile-pct {
  font-size: 13px;
  font-weight: 900;
  font-family: var(--font-mono);
}

.heat-tile-bot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 4px;
}

/* Heatmap Background Gradient Classes */
.heat-strong-green {
  background: linear-gradient(135deg, #054428 0%, #00e676 140%) !important;
  color: #ffffff;
}

.heat-med-green {
  background: linear-gradient(135deg, #093420 0%, #00b050 140%) !important;
  color: #ffffff;
}

.heat-soft-green {
  background: linear-gradient(135deg, #0c2618 0%, #1b5e20 140%) !important;
  color: #ffffff;
}

.heat-neutral {
  background: #151c28 !important;
  color: #cbd5e1;
}

.heat-soft-red {
  background: linear-gradient(135deg, #2b1214 0%, #5c1d24 140%) !important;
  color: #ffffff;
}

.heat-med-red {
  background: linear-gradient(135deg, #3d1014 0%, #991b1b 140%) !important;
  color: #ffffff;
}

.heat-strong-red {
  background: linear-gradient(135deg, #4a0d13 0%, #ff1744 140%) !important;
  color: #ffffff;
}

/* ================= HEADER SITEMAP BUTTON ================= */
.btn-header-sitemap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(59, 130, 246, 0.18) 100%);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  padding: 3px 10px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-header-sitemap:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25) 0%, rgba(59, 130, 246, 0.35) 100%);
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

/* ================= SITEMAP / TERMINAL MAP MODAL ================= */
.sitemap-category-section {
  margin-bottom: 22px;
}

.sitemap-cat-title {
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitemap-cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.sitemap-card {
  background: #0b101b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sitemap-card:hover {
  border-color: var(--aqua-main);
  background: #0e1524;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.15);
}

.sitemap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sitemap-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sitemap-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 12px;
}

.sitemap-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.sitemap-tag {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.sitemap-jump-btn {
  width: 100%;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sitemap-jump-btn:hover {
  background: var(--aqua-main);
  color: #06090e;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* ================= LEGAL, TERMS & FAQ WORKSPACE STYLING ================= */
.legal-container {
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.legal-header-banner {
  background: linear-gradient(135deg, rgba(13, 20, 33, 0.9) 0%, rgba(19, 31, 51, 0.9) 100%);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-pills-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap !important;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
}

.legal-nav-pill {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.legal-nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.legal-nav-pill.active {
  color: #06090e;
  background: var(--aqua-main);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.legal-section-card {
  background: #0b101b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.legal-alert-box {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #ef4444;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.legal-alert-title {
  font-size: 14px;
  font-weight: 800;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.legal-alert-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
}

.legal-text-block {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-subtitle {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 18px 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* FAQ Accordion */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #080d16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.faq-item.open {
  border-color: var(--aqua-main);
  background: #0d1422;
}

.faq-question {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-toggle-icon {
  font-size: 14px;
  color: var(--aqua-main);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 18px 16px 18px;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.6;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ================= 4 SUPER-CATEGORY + ADMIN DROPDOWN NAVIGATION ================= */
.tab-nav-container {
  background: #080c14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  z-index: 10000;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(0, 229, 255, 0.45) rgba(0, 0, 0, 0.4) !important;
}

.tab-nav-container::-webkit-scrollbar {
  height: 4px;
}

.tab-nav-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
}

.tab-nav-container::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.45);
  border-radius: 4px;
}

.tab-nav-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.85);
}

.super-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  flex-wrap: nowrap;
  overflow: visible !important;
  position: relative;
  flex-shrink: 0 !important;
}

.nav-dropdown,
.nav-single-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 10001;
  flex-shrink: 0 !important;
}

.nav-dropdown.open {
  z-index: 999999 !important;
}

.nav-dropdown-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.nav-dropdown-btn:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.nav-dropdown.open .nav-dropdown-btn,
.nav-dropdown-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18) 0%, rgba(0, 150, 255, 0.1) 100%);
  border-color: var(--aqua-main);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.28);
}

.nav-dropdown-btn.btn-admin-nav {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.nav-dropdown-btn.btn-admin-nav:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.nav-dropdown.open .nav-dropdown-btn.btn-admin-nav,
.nav-dropdown-btn.btn-admin-nav.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.nav-dropdown-btn .nav-icon {
  font-size: 14px;
}

.nav-dropdown-btn .nav-chevron {
  font-size: 10px;
  color: #94a3b8;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.nav-dropdown.open .nav-dropdown-btn .nav-chevron {
  transform: rotate(180deg);
  color: var(--aqua-main);
}

.nav-active-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.18);
  color: var(--aqua-main);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: none;
}

.nav-active-pill.visible {
  display: inline-block;
}

/* Dropdown Menu Container (Floating Popup Modal) */
.nav-dropdown-menu {
  position: fixed !important;
  top: calc(100% + 8px);
  left: 0;
  background: #090e18 !important;
  border: 1.5px solid rgba(0, 229, 255, 0.4) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  padding: 8px;
  min-width: 320px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.96), 0 0 30px rgba(0, 229, 255, 0.2) !important;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 9999999 !important;
  pointer-events: auto !important;
  animation: dropdownSlideDown 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-menu.dropdown-right {
  left: auto;
  right: 0;
}

.nav-dropdown-menu.show {
  display: flex !important;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Divided Dropdown (Cash & F&O 2 Divisions) */
.nav-dropdown-menu.nav-dropdown-divided {
  min-width: 580px;
  max-width: 92vw;
  display: none;
  flex-direction: row;
  padding: 12px;
  gap: 14px;
}

.nav-dropdown-menu.nav-dropdown-divided.show {
  display: flex !important;
}

/* Balanced Horizontal Scanners Dropdown (3 Divisions: AI Alerts, Cash, F&O) */
#navDropdown_scanners {
  width: 740px !important;
  max-width: calc(100vw - 24px) !important;
  min-width: unset !important;
  padding: 12px 14px !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}

#navDropdown_scanners .dropdown-division {
  flex: 1;
  min-width: 210px;
}

.dropdown-division {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-division-divider {
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.02) 100%);
  margin: 4px 0;
}

.division-header {
  padding: 4px 8px 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.div-tag {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-block;
}

.div-tag.cash-tag {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.div-tag.fno-tag {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

/* Dropdown Tab Button Item */
.dropdown-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 10px;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.dropdown-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(2px);
}

.dropdown-tab-btn.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  color: #ffffff;
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.1);
}

.dropdown-tab-btn.active .dd-title {
  color: var(--aqua-main);
  font-weight: 800;
}

.dropdown-tab-btn .dd-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-tab-btn .dd-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.dropdown-tab-btn .dd-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.dropdown-tab-btn .dd-desc {
  font-size: 10.5px;
  color: var(--text-muted);
}

.dropdown-tab-btn.tab-locked-btn {
  opacity: 0.75;
}

.dropdown-tab-btn.tab-locked-btn .tab-lock-badge {
  font-size: 11px;
  margin-left: auto;
}

.nav-current-workspace {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0 !important;
}

.current-ws-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.current-ws-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--aqua-main);
}

/* ================= TRADER DIRECTIVE / ACTION BOX ================= */
.trader-directive-card {
  margin-top: 16px;
  background: #080d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.trader-directive-card.strong-bull {
  border-color: rgba(0, 230, 118, 0.5);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.08) 0%, rgba(8, 13, 22, 0.95) 100%);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.18);
}

.trader-directive-card.mild-bull {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.06) 0%, rgba(8, 13, 22, 0.95) 100%);
}

.trader-directive-card.neutral {
  border-color: rgba(255, 183, 3, 0.35);
  background: linear-gradient(180deg, rgba(255, 183, 3, 0.05) 0%, rgba(8, 13, 22, 0.95) 100%);
}

.trader-directive-card.mild-bear {
  border-color: rgba(251, 133, 0, 0.4);
  background: linear-gradient(180deg, rgba(251, 133, 0, 0.06) 0%, rgba(8, 13, 22, 0.95) 100%);
}

.trader-directive-card.strong-bear {
  border-color: rgba(255, 23, 68, 0.5);
  background: linear-gradient(180deg, rgba(255, 23, 68, 0.08) 0%, rgba(8, 13, 22, 0.95) 100%);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.18);
}

.directive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.directive-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.directive-icon {
  font-size: 26px;
  line-height: 1;
}

.directive-super-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.directive-main-status {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.directive-summary-quote {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--aqua-main);
  margin-bottom: 8px;
}

.directive-reason {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.directive-trap-banner {
  background: rgba(255, 23, 68, 0.16);
  border: 1px solid rgba(255, 23, 68, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #ff5252;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  animation: pulseGlow 2s infinite;
}

.directive-rules-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.directive-rules-heading {
  font-size: 11px;
  font-weight: 800;
  color: #ffd54f;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.directive-rules-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.6;
}

.directive-layers-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

/* ================= SECTOR HEATMAP QUICK TOGGLE & SPOTLIGHTS ================= */
.sec-quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sec-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sec-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.sec-toggle-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--aqua-main);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.sec-toggle-btn.btn-bull.active {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--green-main);
  color: var(--green-main);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.sec-toggle-btn.btn-bear.active {
  background: rgba(255, 23, 68, 0.15);
  border-color: var(--red-main);
  color: #ff5252;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.2);
}

.sector-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.sector-spotlight-card {
  background: #080d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sector-spotlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.sector-spotlight-card.gainer-spotlight {
  border-left: 4px solid var(--green-main);
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.08) 0%, #080d16 100%);
}

.sector-spotlight-card.drifter-spotlight {
  border-left: 4px solid var(--red-main);
  background: linear-gradient(90deg, rgba(255, 23, 68, 0.08) 0%, #080d16 100%);
}

.spotlight-info-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spotlight-sector-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.spotlight-sector-pct {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
}

/* ================= TIME MACHINE TRAP ALERTS & BADGES ================= */
.tm-trap-alert-banner {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.45);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: #ff5252;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  animation: pulseGlow 1.8s infinite;
}

.tm-canvas-tooltip {
  position: absolute;
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(255, 23, 68, 0.6);
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 11px;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 23, 68, 0.3);
  display: none;
  max-width: 220px;
}

/* ================= AI INSTITUTIONAL ALERTS & EOD EDGE ================= */
.btn-ai-alerts-nav {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16) 0%, rgba(124, 58, 237, 0.22) 100%) !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2) !important;
  transition: all 0.2s ease !important;
}

.btn-ai-alerts-nav:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.28) 0%, rgba(124, 58, 237, 0.35) 100%) !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.45) !important;
  transform: translateY(-1px) !important;
}

.btn-ai-alerts-nav.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.35) 0%, rgba(124, 58, 237, 0.45) 100%) !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.6) !important;
}

.ai-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  font-family: inherit;
}

.ai-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.ai-filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.06) 100%);
  border-color: #00e5ff;
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.ai-eod-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.ai-eod-card:hover {
  transform: translateY(-3px);
  border-color: #00e5ff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 229, 255, 0.2) !important;
}

/* ================= CYBER INSTITUTIONAL AUTH MODAL ================= */
.auth-overlay-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(0, 229, 255, 0.12) 0%, rgba(3, 7, 18, 0.95) 75%);
  backdrop-filter: blur(16px);
  z-index: 999999;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 16px 30px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.auth-card-container {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97) 0%, rgba(8, 12, 22, 0.99) 100%);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  margin: 12px auto 30px;
  padding: 30px 28px 24px;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.25), 0 25px 65px rgba(0, 0, 0, 0.95);
  position: relative;
  animation: alertPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.auth-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.auth-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

.auth-tabs-switcher {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 20px;
  gap: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
  width: 100%;
  box-sizing: border-box;
}

.auth-pill-btn {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 50% !important;
  padding: 9px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  box-sizing: border-box;
}

.auth-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.auth-pill-btn.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22) 0%, rgba(2, 132, 199, 0.35) 100%) !important;
  color: #00e5ff !important;
  border-color: rgba(0, 229, 255, 0.5) !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25) !important;
}

.auth-tab-divider {
  width: 1px !important;
  height: 22px !important;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.5), transparent) !important;
  flex-shrink: 0 !important;
  margin: auto 2px !important;
}

.auth-input-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s;
}

.auth-input-field {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  background: rgba(4, 7, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13.5px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-input-field:focus {
  outline: none;
  border-color: #00e5ff;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.auth-input-field:focus+.auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
  color: #00e5ff;
}

.btn-auth-submit {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  color: #020617;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.btn-auth-submit:hover {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
  transform: translateY(-1px);
}

/* Responsive Native Google Identity Services Button */
.google-auth-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  min-height: 44px;
}

.google-auth-container .g_id_signin {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.google-auth-container iframe {
  margin: 0 auto !important;
  max-width: 100% !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}

/* Modern TradingView-Style Google Sign-In Button */
.google-tradingview-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.btn-google-tradingview {
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 1px solid #d1d4dc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #131722;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-tradingview-wrapper:hover .btn-google-tradingview {
  background: #f7f9fd;
  border-color: #b2b5be;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.google-tradingview-wrapper:active .btn-google-tradingview {
  background: #edf0f7;
  transform: scale(0.995);
}

.google-tradingview-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.google-tradingview-text {
  letter-spacing: -0.01em;
  font-size: 14.5px;
  font-weight: 600;
  color: #131722;
}

.google-gsi-invisible-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.0001;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.google-gsi-invisible-layer iframe {
  cursor: pointer !important;
  transform: scale(1.4);
}

.google-auth-box {
  display: none;
}

/* ================= HEADER USER PROFILE AVATAR & RESPONSIVE NAVBAR ================= */
.header-user-profile-group {
  display: none;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.75);
  padding: 1px 6px 1px 2px;
  height: 26px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  cursor: pointer;
  flex-shrink: 0 !important;
  transition: all 0.2s ease;
  user-select: none;
}

.header-user-profile-group:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.user-avatar-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  border: 1.5px solid #38bdf8;
  flex-shrink: 0 !important;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.35);
  transition: transform 0.2s ease;
}

.header-user-profile-group:hover .user-avatar-circle {
  transform: scale(1.08);
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-avatar-circle span {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header & Logout High-Visibility Safeguards */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

#logoutBtn {
  flex-shrink: 0 !important;
  z-index: 100;
}

@media (max-width: 1380px) {

  .btn-header-plans .plans-text,
  .btn-header-sitemap span:last-child {
    display: none;
  }

  .btn-header-plans,
  .btn-header-sitemap {
    padding: 3px 6px !important;
  }
}

@media (max-width: 1200px) {
  .btn-header-trustpilot span:first-child {
    display: none;
    /* Hide 'Review us on' to save ~70px */
  }

  .btn-header-trustpilot {
    padding: 2px 6px !important;
  }
}

@media (max-width: 1080px) {
  .header-actions {
    gap: 4px !important;
    margin-right: 4px !important;
  }

  #userExpiryBadge {
    display: none !important;
    /* Conceal expiry badge in header on tight displays, retained in tooltip */
  }

  #headerTourBtn span:last-child {
    display: none;
    /* Icon only tour */
  }

  #headerTourBtn {
    padding: 3px 6px !important;
  }
}

@media (max-width: 980px) {
  .header-center-cta {
    gap: 3px !important;
  }

  .btn-header-trustpilot {
    display: none !important;
    /* Hide trustpilot on compact screens to safeguard Logout */
  }
}

/* ================= COMPACT ADMIN USERS TABLE & SMART FILTERS ================= */
.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}

.admin-users-table th {
  background: #090e17;
  color: #94a3b8;
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

.admin-users-table td {
  padding: 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  white-space: nowrap;
  vertical-align: middle;
  height: 36px;
}

.admin-users-table tr:hover {
  background: rgba(0, 229, 255, 0.04);
}

.admin-perm-pill {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.admin-perm-pill:hover {
  background: rgba(0, 229, 255, 0.22);
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
  transform: translateY(-0.5px);
}

.admin-filter-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.admin-filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-filter-pill-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
  color: #00e5ff;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.activity-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

/* ================= MOBILE RESPONSIVE MODALS & DIALOGS ================= */
@media (max-width: 768px) {

  /* Prevent horizontal layout blow-out on mobile browsers */
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Overlay Backdrops - anchor to upper surface near navbar */
  .auth-overlay-backdrop,
  .modal-overlay {
    padding: 30px 10px 20px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  /* Auth / Login Modal Container */
  .auth-card-container {
    width: 100% !important;
    max-width: min(420px, calc(100vw - 20px)) !important;
    margin: 8px auto 20px !important;
    padding: 20px 14px 18px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 45px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .auth-card-container h2 {
    font-size: 17px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .auth-card-container p {
    font-size: 11px !important;
  }

  .auth-tabs-switcher {
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .auth-pill-btn {
    font-size: 12px !important;
    padding: 8px 6px !important;
  }

  /* Prevent iOS Safari auto-zoom on input focus */
  .auth-input-field,
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    font-size: 16px !important;
  }

  /* Google Sign-in button wrapper */
  .google-auth-container {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .google-auth-container .g_id_signin {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .google-auth-container iframe {
    max-width: calc(100vw - 48px) !important;
  }

  .google-tradingview-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .btn-google-tradingview {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
  }

  .google-gsi-invisible-layer {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .google-gsi-invisible-layer .g_id_signin {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* Fyers API Modal */
  #fyersModal .modal-content {
    width: 100% !important;
    max-width: 95vw !important;
    margin: 10px auto !important;
    padding: 18px 14px !important;
    box-sizing: border-box !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
  }

  #fyersModal input {
    height: 38px !important;
    font-size: 16px !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
  }

  /* Logout Confirmation Modal - Upper Surface Anchored */
  #logoutConfirmModal .modal-content {
    width: 100% !important;
    max-width: 92vw !important;
    margin: 12px auto 20px !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
  }

  /* Theme Customizer Modal */
  #tmThemeModal .modal-content {
    width: 100% !important;
    max-width: 95vw !important;
    margin: 10px auto !important;
    padding: 16px 14px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  /* Dual Chart Container Stacking */
  #tmDualChartContainer {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #tmDualControlsBar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  #tmDualControlsBar>div {
    justify-content: space-between !important;
    width: 100% !important;
  }
}

/* ================= MOBILE "DESKTOP VIEW" ADVISORY BANNER & MODAL ================= */
.mobile-desktop-banner {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(8, 12, 22, 0.99) 100%);
  border-bottom: 1.5px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 229, 255, 0.15);
  padding: 8px 12px;
  position: relative;
  z-index: 9999;
  animation: slideDownBanner 0.3s ease-out;
}

@keyframes slideDownBanner {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mdb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.mdb-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.5px;
}

.mdb-body {
  flex: 1 1 280px;
  min-width: 240px;
}

.mdb-title {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.mdb-instructions {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.mdb-browser-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

.mdb-browser-tag.chrome {
  background: rgba(66, 133, 244, 0.18);
  border: 1px solid rgba(66, 133, 244, 0.4);
  color: #93c5fd;
}

.mdb-browser-tag.safari {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #38bdf8;
}

.mdb-sep {
  color: #475569;
  margin: 0 4px;
}

.mdb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mdb-btn-guide {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.mdb-btn-guide:hover {
  background: rgba(124, 58, 237, 0.35);
  color: #ffffff;
}

.mdb-btn-gotit {
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  color: #020617;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.mdb-btn-gotit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.mdb-btn-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.mdb-btn-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Header button for mobile desktop view */
.btn-header-mobile-desktop {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-header-mobile-desktop:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  border-color: #38bdf8;
}

/* ================= PLATFORM-WIDE UNIVERSAL MOBILE RESPONSIVENESS & ANTI-CLIPPING ================= */
.table-responsive,
.table-container-responsive,
.table-wrapper,
.data-table-container,
.terminal-table-container,
[id$="TableContainer"],
[id$="ListContainer"],
.inst-filter-row,
.sec-quick-actions-bar {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(0, 229, 255, 0.4) rgba(0, 0, 0, 0.3) !important;
}

.table-responsive::-webkit-scrollbar,
.table-container-responsive::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar,
.terminal-table-container::-webkit-scrollbar,
[id$="TableContainer"]::-webkit-scrollbar,
[id$="ListContainer"]::-webkit-scrollbar {
  height: 5px;
}

.table-responsive::-webkit-scrollbar-thumb,
.table-container-responsive::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb,
.terminal-table-container::-webkit-scrollbar-thumb,
[id$="TableContainer"]::-webkit-scrollbar-thumb,
[id$="ListContainer"]::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.45);
  border-radius: 4px;
}

/* Ensure data tables inside scrollable containers never squeeze or wrap columns awkwardly */
.terminal-table,
.data-table,
.admin-users-table,
.table-responsive > table,
.table-container-responsive > table,
.table-wrapper > table,
.terminal-table-container table,
[id$="TableContainer"] > table,
[id$="ListContainer"] > table {
  min-width: max-content !important;
  white-space: nowrap !important;
}

/* Toolbar buttons must never shrink */
.inst-tbl-filter,
.inst-filter-btn,
.admin-filter-pill-btn,
.sec-toggle-btn,
.tm-shocker-index-btn,
.tm-shocker-filter-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Adaptive Grids for Mobile & Tablet Screen Sizes */
@media (max-width: 900px) {
  .workspace-container {
    padding: 10px 8px !important;
  }

  /* Automatically convert 2-column fixed grids to single column on mobile */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr;"] {
    grid-template-columns: 1fr !important;
  }

  .fno-gainers-losers-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: unset !important;
    box-sizing: border-box !important;
    z-index: 9999999 !important;
  }

  .nav-dropdown-menu.nav-dropdown-divided,
  #navDropdown_scanners {
    flex-direction: column !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: unset !important;
  }

  .dropdown-division-divider {
    width: 100% !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .header-top {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


/* ============================================================
   ADMIN SEARCHABLE UNDERLYING COMBOBOX (INDICES & F&O STOCKS)
   ============================================================ */
.bulk-searchable-combobox {
  position: relative;
  width: 100%;
}

.bulk-combobox-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090e18;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 6px;
  padding: 7px 11px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  min-height: 38px;
  box-sizing: border-box;
}

.bulk-combobox-trigger:hover,
.bulk-combobox-trigger.active {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  background: #0c1422;
}

.bulk-combobox-popover {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  min-width: 300px;
  max-width: 380px;
  background: #070c16;
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 229, 255, 0.15);
  z-index: 999999;
  padding: 10px;
  box-sizing: border-box;
}

.bulk-combobox-search-wrap {
  position: relative;
  margin-bottom: 8px;
}

.bulk-combobox-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #64748b;
  pointer-events: none;
}

.bulk-combobox-search-input {
  width: 100%;
  padding: 8px 30px 8px 32px;
  background: #03060c;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 6px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.bulk-combobox-search-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.bulk-combobox-search-wrap .clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 3px 6px;
}

.bulk-combobox-search-wrap .clear-btn:hover {
  color: #ef4444;
}

.bulk-combobox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 6px;
  font-size: 10.5px;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.bulk-combobox-list {
  max-height: 290px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.45) #03060c;
}

.bulk-combobox-list::-webkit-scrollbar {
  width: 6px;
}

.bulk-combobox-list::-webkit-scrollbar-track {
  background: #03060c;
  border-radius: 3px;
}

.bulk-combobox-list::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.45);
  border-radius: 3px;
}

.bulk-combobox-list::-webkit-scrollbar-thumb:hover {
  background: #00e5ff;
}

.bulk-combobox-section-title {
  padding: 6px 8px 4px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #070c16;
  position: sticky;
  top: 0;
  z-index: 2;
}

.bulk-combobox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin-bottom: 2px;
  border-radius: 5px;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
}

.bulk-combobox-item:hover,
.bulk-combobox-item.focused {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
}

.bulk-combobox-item.selected {
  background: rgba(0, 229, 255, 0.22);
  color: #00e5ff;
  border-left: 3px solid #00e5ff;
}

.bulk-combobox-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.bulk-combobox-badge-step {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.bulk-combobox-badge-atm {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 202, 40, 0.12);
  color: #ffca28;
}

@media (max-width: 768px) {
  .bulk-combobox-popover {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 92vw !important;
    max-width: 370px !important;
    min-width: 280px !important;
    max-height: 80vh !important;
    z-index: 9999999 !important;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.75), 0 20px 40px rgba(0,0,0,0.9) !important;
  }
  .bulk-combobox-list {
    max-height: 55vh !important;
  }
}
