/* ==========================================================================
   REMstocks - Components CSS
   Notion & Linear Inspired Clean UI System
   Includes Zero-State Hub, Google Sign-In, P&L Calendar, and Ingestion Tiers
   ========================================================================== */

@import url('tokens.css');

/* Page View Switching */
.page-view {
  display: none;
  animation: fadeIn 0.15s ease-out;
}

.page-view.active {
  display: block;
}

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

/* Page Header */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

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

/* ==================== ZERO-STATE ONBOARDING HUB ==================== */
.zero-state-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.zero-state-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), #60A5FA, var(--accent-primary));
}

.zero-state-header {
  max-width: 680px;
  margin-bottom: 24px;
}

.zero-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.zero-state-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.zero-state-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.zero-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.zero-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
}

.zero-card:hover {
  background: var(--bg-card-elevated);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.zero-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.zero-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zero-card-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.zero-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

.zero-card-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.zero-state-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.demo-opt-link {
  color: var(--accent-primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.demo-opt-link:hover {
  color: var(--accent-primary-hover);
}

/* Ingestion Dropzone (Compact Clean Banner) */
.upload-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-active);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-banner-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upload-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 6-Item Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-box-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-box-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-box-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==================== INTERACTIVE P&L CALENDAR ==================== */
.calendar-card {
  margin-bottom: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-month-select {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.calendar-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-pill.pill-green { color: var(--color-profit); border-color: rgba(34, 197, 94, 0.2); }
.cal-pill.pill-red   { color: var(--color-loss); border-color: rgba(239, 68, 68, 0.2); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-cell {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 76px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.calendar-day-cell:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-hover);
}

.calendar-day-cell.other-month {
  opacity: 0.25;
  pointer-events: none;
}

.calendar-day-cell.day-profit {
  border-left: 3px solid var(--color-profit);
  background: linear-gradient(180deg, var(--color-profit-subtle) 0%, var(--bg-card) 100%);
}

.calendar-day-cell.day-loss {
  border-left: 3px solid var(--color-loss);
  background: linear-gradient(180deg, var(--color-loss-subtle) 0%, var(--bg-card) 100%);
}

.cell-date-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.cell-pnl-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cell-trade-count {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cell-bottom-block {
  width: 100%;
  overflow: hidden;
}

.pnl-compact, .trade-count-compact {
  display: none;
}

.pnl-full, .trade-count-full {
  display: inline;
}

/* ==================== BEHAVIORAL DIAGNOSTICS & COACH ==================== */
.behavior-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
}

.gauge-svg {
  width: 170px;
  height: 95px;
}

.gauge-score {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 800;
  margin-top: -15px;
}

.gauge-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.diagnostic-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  font-size: 13px;
}

.diagnostic-item.alert-danger {
  background-color: var(--color-loss-subtle);
  border-color: rgba(239, 68, 68, 0.25);
}

.diagnostic-item.alert-warning {
  background-color: var(--color-warning-subtle);
  border-color: rgba(245, 158, 11, 0.25);
}

.diagnostic-item.alert-success {
  background-color: var(--color-profit-subtle);
  border-color: rgba(34, 197, 94, 0.25);
}

.diag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.diag-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
  flex-wrap: wrap;
}

.diag-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.diag-count-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-loss);
  border: 1px solid rgba(239, 68, 68, 0.3);
  white-space: nowrap;
}

.diag-impact-val {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==================== CONTRACT NOTE BREAKDOWN ==================== */
.contract-note-card {
  margin-bottom: 24px;
}

.charges-table {
  width: 100%;
  border-collapse: collapse;
}

.charges-table tr {
  border-bottom: 1px solid var(--border);
}

.charges-table td {
  padding: 10px 14px;
  font-size: 13px;
  word-break: normal;
}

.charge-label {
  color: var(--text-muted);
}

.charge-amount {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap !important;
}

/* ==================== BROKER CONNECT HUB ==================== */
.broker-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.broker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

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

.broker-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 3px;
  border: 1px solid var(--border);
}

/* ==================== TABLES ==================== */
.table-container {
  overflow-x: auto;
}

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

.data-table th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
  background-color: var(--bg-hover);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-profit { background: var(--color-profit-subtle); color: var(--color-profit); }
.badge-loss   { background: var(--color-loss-subtle); color: var(--color-loss); }
.badge-alert  { background: var(--color-warning-subtle); color: var(--color-warning); }

/* Phase 11: Multi-Broker Badges & Filter Toolbar */
.broker-badge {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
}
.broker-badge.broker-dhan {
  color: #FF6B00;
  background: rgba(255, 107, 0, 0.14);
  border: 1px solid rgba(255, 107, 0, 0.3);
}
.broker-badge.broker-zerodha {
  color: #387ED1;
  background: rgba(56, 126, 209, 0.14);
  border: 1px solid rgba(56, 126, 209, 0.3);
}
.broker-badge.broker-groww {
  color: #00D09C;
  background: rgba(0, 208, 156, 0.14);
  border: 1px solid rgba(0, 208, 156, 0.3);
}
.broker-badge.broker-angelone {
  color: #A855F7;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.broker-badge.broker-upstox {
  color: #EC4899;
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.broker-badge.broker-manual {
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Multi-Broker Filter Toolbar */
.multi-broker-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
}
.broker-filter-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 4px;
}
.broker-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.broker-pill-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}
.broker-pill-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
.broker-pill-count {
  font-size: 10px;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 5px;
  border-radius: 9999px;
}
.broker-pill-btn.active .broker-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Broker Dots for Filter Bar Buttons */
.cal-broker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.cal-broker-dot.dot-dhan { background: #FF6B00; }
.cal-broker-dot.dot-zerodha { background: #387ED1; }
.cal-broker-dot.dot-groww { background: #00D09C; }
.cal-broker-dot.dot-angelone { background: #A855F7; }
.cal-broker-dot.dot-upstox { background: #EC4899; }
.cal-broker-dot.dot-manual { background: #94A3B8; }

/* Reimagined Calendar Multi-Broker UI: Bottom Accent Stripe & Micro Chips */
.cal-broker-stripe {
  display: flex;
  height: 3px;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  gap: 1px;
  background: transparent;
  pointer-events: none;
}
.cal-stripe-segment {
  height: 100%;
  transition: opacity 0.15s ease;
}
.stripe-dhan { background: #FF6B00; }
.stripe-zerodha { background: #387ED1; }
.stripe-groww { background: #00D09C; }
.stripe-angelone { background: #A855F7; }
.stripe-upstox { background: #EC4899; }
.stripe-manual { background: #64748B; }

.cell-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4px;
  margin-top: 3px;
}
.cal-broker-chips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.cal-chip {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  padding: 1.5px 3.5px;
  border-radius: 3px;
  text-transform: uppercase;
}
.chip-dhan {
  background: rgba(255, 107, 0, 0.12);
  color: #FF8A3D;
  border: 1px solid rgba(255, 107, 0, 0.3);
}
.chip-zerodha {
  background: rgba(56, 126, 209, 0.12);
  color: #5B9BF5;
  border: 1px solid rgba(56, 126, 209, 0.3);
}
.chip-groww {
  background: rgba(0, 208, 156, 0.12);
  color: #00E5AA;
  border: 1px solid rgba(0, 208, 156, 0.3);
}
.chip-angelone {
  background: rgba(168, 85, 247, 0.12);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.chip-upstox {
  background: rgba(236, 72, 153, 0.12);
  color: #F472B6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.chip-manual {
  background: rgba(148, 163, 184, 0.12);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
}

.btn-secondary {
  background-color: var(--bg-card);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-active);
}

/* Google Sign-In Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background-color: #FFFFFF;
  color: #1F2937;
  border: 1px solid #D1D5DB;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-google:hover {
  background-color: #F9FAFB;
  border-color: #9CA3AF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.btn-google:active {
  transform: translateY(0);
}

.google-logo-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==================== MODAL OVERLAY & CONTENT ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==================== SETTINGS COMPONENTS ==================== */
.settings-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-section:hover {
  border-color: rgba(59, 130, 246, 0.2);
}

.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  gap: 16px;
}

.settings-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.settings-section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-section-header p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 3px 0 0 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.settings-row-info {
  flex: 1;
  min-width: 220px;
}

.settings-row-info strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  margin-bottom: 3px;
}

.settings-row-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.settings-row-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.settings-input {
  background: var(--bg-app);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: all 0.15s ease;
  height: 38px;
  box-sizing: border-box;
}

.settings-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

.settings-textarea {
  background: var(--bg-app);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: all 0.15s ease;
  min-height: 76px;
  height: auto;
  box-sizing: border-box;
  line-height: 1.45;
  resize: vertical;
}

.settings-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

.settings-select {
  background: var(--bg-app);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  height: 38px;
  box-sizing: border-box;
}

.settings-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

.settings-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  gap: 16px;
  margin-top: 14px;
}

.settings-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  border: 2px solid var(--accent-primary);
  flex-shrink: 0;
}

.settings-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.settings-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-danger-subtle {
  background-color: var(--color-loss-subtle);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-loss);
  transition: all 0.15s ease;
}

.btn-danger-subtle:hover {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: var(--color-loss);
}

.btn-danger-solid {
  background-color: var(--color-loss);
  border: 1px solid var(--color-loss);
  color: #ffffff !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger-solid:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.btn-danger-solid:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 768px) {
  .settings-section {
    padding: 18px 16px;
  }
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .settings-row-control {
    width: 100%;
    justify-content: flex-start;
  }
  .settings-user-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-user-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .settings-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (State-of-the-Art Obsidian App Navigation)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: rgba(8, 11, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 9999;
  padding: 0 10px max(6px, env(safe-area-inset-bottom, 6px));
  align-items: center;
  justify-content: space-around;
  user-select: none;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s ease, transform 0.1s ease;
  padding: 8px 0 4px;
  text-decoration: none;
  position: relative;
  outline: none;
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

.mobile-nav-item span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.mobile-nav-item svg {
  stroke-width: 2;
  transition: transform 0.15s ease, stroke 0.15s ease, filter 0.15s ease;
}

.mobile-nav-item:hover {
  color: var(--text-main);
}

.mobile-nav-item.active {
  color: var(--accent-primary) !important;
  font-weight: 700;
}

.mobile-nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--accent-primary) !important;
  filter: drop-shadow(0 0 8px var(--accent-primary-glow));
}

.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24%;
  right: 24%;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 10px var(--accent-primary);
}

.mobile-nav-item[data-page="import"] svg {
  stroke-width: 2.2;
}

/* ==========================================================================
   Desktop Defaults for Mobile Drawer Elements
   ========================================================================== */
.mobile-sidebar-toggle,
.mobile-sidebar-close,
.sidebar-backdrop {
  display: none !important;
}

/* ==========================================================================
   State-of-the-Art Animated Navigation Icons (Institutional Micro-Animations)
   ========================================================================== */
.nav-item .nav-item-icon,
.mobile-nav-item svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              stroke 0.2s ease,
              filter 0.25s ease;
  will-change: transform;
}

.nav-item:hover .nav-item-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}

.nav-item.active .nav-item-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.65));
}

/* 1. Dashboard Bento Block Wave Animation */
@keyframes bentoTilePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(4deg); }
  75% { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1.12); }
}
.nav-item[data-page="dashboard"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="dashboard"]:hover svg,
.mobile-nav-item[data-page="dashboard"].active svg {
  animation: bentoTilePulse 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. Trade Journal Page Write / Slide Animation */
@keyframes journalWriteFlip {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.16) rotate(-6deg); }
  70% { transform: scale(1.14) rotate(4deg); }
  100% { transform: scale(1.1) rotate(0deg); }
}
.nav-item[data-page="journal"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="journal"]:hover svg,
.mobile-nav-item[data-page="journal"].active svg {
  animation: journalWriteFlip 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 3. Import Trades Cloud Dip & Arrow Bounce */
@keyframes importCloudDip {
  0% { transform: translateY(0); }
  30% { transform: translateY(3px) scale(0.94); }
  65% { transform: translateY(-4px) scale(1.18); }
  100% { transform: translateY(0) scale(1.12); }
}
.nav-item[data-page="import"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="import"]:hover svg,
.mobile-nav-item[data-page="import"].active svg {
  animation: importCloudDip 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 4. Trading Suite Terminal Prompt Shift */
@keyframes suiteTerminalGlide {
  0% { transform: translateX(0) scale(1); }
  45% { transform: translateX(3px) scale(1.16); }
  75% { transform: translateX(-1px) scale(1.08); }
  100% { transform: translateX(0) scale(1.1); }
}
.nav-item[data-page="workspace"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="workspace"]:hover svg,
.mobile-nav-item[data-page="workspace"].active svg {
  animation: suiteTerminalGlide 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 5. Market Radar Sonar Signal Wave */
@keyframes radarWaveScan {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.3)); }
  50% { transform: scale(1.22); filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.85)); stroke: #38BDF8; }
  100% { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5)); }
}
.nav-item[data-page="radar"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="radar"]:hover svg,
.mobile-nav-item[data-page="radar"].active svg {
  animation: radarWaveScan 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-item[data-page="radar"].active .nav-item-icon svg,
.mobile-nav-item[data-page="radar"].active svg {
  animation: radarWaveScan 2.4s infinite ease-in-out;
}

/* 6. Report Card Victory Trophy Float & Wobble */
@keyframes trophyVictory {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-4px) scale(1.2) rotate(-8deg); filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.8)); stroke: #EAB308; }
  70% { transform: translateY(-2px) scale(1.15) rotate(8deg); }
  100% { transform: translateY(0) scale(1.12) rotate(0deg); }
}
.nav-item[data-page="reportcard"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="reportcard"]:hover svg,
.mobile-nav-item[data-page="reportcard"].active svg {
  animation: trophyVictory 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 7. AI Desk Coach Head Nod & Smart Pulse */
@keyframes aiCoachNod {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.15) translateY(-3px) rotate(5deg); }
  60% { transform: scale(1.15) translateY(1px) rotate(-4deg); }
  100% { transform: scale(1.12) translateY(0) rotate(0); }
}
.nav-item[data-page="coach"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="coach"]:hover svg,
.mobile-nav-item[data-page="coach"].active svg {
  animation: aiCoachNod 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 8. The Guardrail Security Shield Pulse */
@keyframes guardrailShieldDefend {
  0% { transform: scale(1); }
  30% { transform: scale(1.24); filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.85)); stroke: #10B981; }
  65% { transform: scale(1.08); }
  100% { transform: scale(1.12); filter: drop-shadow(0 0 7px rgba(16, 185, 129, 0.5)); }
}
.nav-item[data-page="pricing"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="pricing"]:hover svg,
.mobile-nav-item[data-page="pricing"].active svg {
  animation: guardrailShieldDefend 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 9. Settings Smooth Mechanical 90deg Spin */
@keyframes gearSpin90 {
  0% { transform: rotate(0deg) scale(1); }
  60% { transform: rotate(105deg) scale(1.18); }
  100% { transform: rotate(90deg) scale(1.12); }
}
.nav-item[data-page="settings"]:hover .nav-item-icon svg,
.mobile-nav-item[data-page="settings"]:hover svg,
.mobile-nav-item[data-page="settings"].active svg {
  animation: gearSpin90 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 10. Menu / More 3-Dots Interactive Pulse */
@keyframes menuDotsBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.25) rotate(90deg); stroke: var(--accent-primary); }
  100% { transform: scale(1); }
}
.mobile-nav-item[data-page="more"]:active svg,
.mobile-nav-item[data-page="more"]:hover svg {
  animation: menuDotsBounce 0.4s ease;
}

@media (max-width: 850px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    position: relative;
    overflow-x: hidden;
  }
  .sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 285px !important;
    max-width: 86vw !important;
    z-index: 10001 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 14px 0 48px rgba(0, 0, 0, 0.8) !important;
  }
  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }
  .sidebar-backdrop {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
  }
  .sidebar-backdrop.active {
    display: block !important;
  }
  .mobile-sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    margin-right: 8px;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }
  .mobile-sidebar-toggle:active {
    transform: scale(0.92);
  }
  .mobile-sidebar-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease;
  }
  .mobile-sidebar-close:hover {
    color: #FFFFFF;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  .content-body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 12px)) !important;
  }
  .topbar {
    padding: 0 12px;
    height: 50px;
  }
  .topbar-breadcrumb {
    font-size: 12.5px;
    gap: 4px;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
  }
  .topbar-breadcrumb span:first-child,
  .topbar-breadcrumb span:nth-child(2) {
    display: none !important;
  }
  .topbar-breadcrumb .current {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
  }
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .topbar-actions .btn {
    padding: 6px 8px;
    height: 32px;
    font-size: 12px;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .topbar-actions .btn span {
    display: none !important;
  }
  .topbar-actions .btn#authBtn {
    width: 32px;
    padding: 0;
  }
  .behavior-layout {
    grid-template-columns: 1fr;
  }

  /* Calendar Mobile Optimization */
  .calendar-card {
    padding: 14px 12px;
  }
  .calendar-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .calendar-header-left {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .calendar-month-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 2px;
  }
  .calendar-month-select {
    width: auto;
    min-width: 140px;
    padding: 5px 10px;
    font-size: 12px;
  }
  .calendar-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
  }
  .cal-pill {
    justify-content: center;
    padding: 6px 8px;
    font-size: 11px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .calendar-weekdays {
    gap: 2px;
    font-size: 10px;
  }
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }
  .calendar-day-cell {
    min-height: 52px;
    padding: 4px 2px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
  }
  .calendar-day-cell.day-profit {
    border-left-width: 2.5px;
  }
  .calendar-day-cell.day-loss {
    border-left-width: 2.5px;
  }
  .cell-date-num {
    font-size: 9.5px;
    padding-left: 2px;
  }
  .cell-pnl-val {
    font-size: 9.5px;
    line-height: 1.1;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cell-trade-count {
    font-size: 8.5px;
    line-height: 1.1;
    white-space: nowrap !important;
  }
  .pnl-full, .trade-count-full {
    display: none !important;
  }
  .pnl-compact, .trade-count-compact {
    display: inline !important;
  }

  /* Contract Note Table Mobile */
  .charges-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
  .charges-table .charge-amount {
    font-size: 12px;
    white-space: nowrap !important;
  }
  #noteNetPnl {
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  /* Cost of Emotion Banner Mobile */
  .cost-of-emotion-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px;
    gap: 12px;
  }
  .cost-of-emotion-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    width: 100%;
  }
  .cost-of-emotion-val {
    font-size: 18px;
    white-space: nowrap !important;
  }
}



/* ==========================================================================
   REMstocks High-Tech Toast Notification System
   ========================================================================== */
.rem-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (max-width: 850px) {
  .rem-toast-container {
    top: 12px;
    left: 12px;
    right: 12px;
    align-items: center;
  }
}

.rem-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rem-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rem-toast-icon.success {
  background: var(--color-profit-subtle);
  color: var(--color-profit);
}

.rem-toast-icon.info {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
}

.rem-toast-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.rem-toast-content {
  flex: 1;
}

.rem-toast-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.rem-toast-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.rem-toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rem-toast-close:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Phase 3 & Phase 4: Strategy Playbook, Cost of Emotion & Market Pulse Styles
   ========================================================================== */
.playbook-strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.playbook-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.playbook-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

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

.playbook-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.playbook-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}

.playbook-card-pnl {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.playbook-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Cost of Emotion Banner */
.cost-of-emotion-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.cost-of-emotion-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cost-of-emotion-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-loss);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cost-of-emotion-right {
  text-align: right;
  flex-shrink: 0;
}

.cost-of-emotion-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-loss);
  white-space: nowrap;
}

/* Market Pulse Grid */
.market-pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pulse-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

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

.pulse-metric-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.pulse-metric-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Trade Reflection Modal Custom Elements */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-hover);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  transition: background 0.15s ease;
}

.checklist-item:hover {
  background: var(--bg-active);
}

.checklist-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* ==========================================================================
   Prop Desk Risk Manager Briefing Suite
   ========================================================================== */
.prop-briefing-card {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.prop-briefing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, #6366F1 50%, var(--color-profit) 100%);
}

.prop-briefing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.prop-briefing-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.prop-avatar-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.prop-mandate-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}

.speech-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.speech-toggle-btn.speech-active {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--color-loss) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  animation: speechPulse 1.5s infinite;
}

@keyframes speechPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Empty State */
.prop-empty-briefing {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-hover);
  border-radius: 8px;
  border: 1px dashed var(--border);
  margin-bottom: 16px;
}

.prop-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 3-Pillar Executive Comparison Bar */
.prop-comparison-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.prop-comparison-pill {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.prop-comparison-pill:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.prop-comparison-pill.prop-pill-highlight {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.04));
  border-color: rgba(34, 197, 94, 0.3);
}

.prop-pill-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.prop-pill-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.15;
}

.prop-pill-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* Observations & Analysis Grid */
.prop-obs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.prop-obs-card {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  transition: all 0.15s ease;
}

.prop-obs-card.prop-obs-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), var(--bg-hover));
  border-color: rgba(239, 68, 68, 0.25);
}

.prop-obs-card.prop-obs-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), var(--bg-hover));
  border-color: rgba(34, 197, 94, 0.25);
}

.prop-obs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.prop-obs-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.prop-obs-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.prop-obs-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

/* Head of Risk Directive Quote Box */
.prop-directive-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.04));
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-right: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.prop-directive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.prop-directive-quote {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  font-style: italic;
}

/* Execution Directives / Rules for Tomorrow */
.prop-rules-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.prop-rules-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prop-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.prop-rule-card {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
}

.prop-rule-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-active);
  transform: translateX(2px);
}

.prop-rule-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.prop-rule-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.25);
  white-space: nowrap;
}

.prop-rule-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-main);
  font-weight: 500;
}

.prop-rule-check {
  color: var(--color-profit);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Responsive Optimization for Prop Desk Briefing */
@media (max-width: 768px) {
  .prop-briefing-card {
    padding: 16px 14px;
  }
  .prop-briefing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .prop-briefing-actions {
    width: 100%;
  }
  .speech-toggle-btn {
    width: 100%;
    justify-content: center;
  }
  .prop-comparison-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .prop-comparison-pill {
    padding: 12px 14px;
  }
  .prop-pill-val {
    font-size: 18px;
  }
  .prop-rules-grid {
    grid-template-columns: 1fr;
  }
  .prop-rule-card {
    padding: 10px 12px;
  }
}

/* ==========================================================================
   Phase 3: Trading Workspace Suite Components
   ========================================================================== */

.workspace-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.workspace-nav-bar::-webkit-scrollbar {
  display: none;
}

.workspace-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.workspace-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-hover);
}

.workspace-tab-btn.active {
  color: #FFFFFF;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
}

.workspace-panel {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.workspace-panel.active {
  display: block;
}

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

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1.2fr);
  gap: 24px;
  align-items: flex-start;
}

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

.workspace-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.workspace-form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-form-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.workspace-field-group {
  margin-bottom: 16px;
}

.workspace-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.workspace-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.workspace-input-prefix {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  pointer-events: none;
}

.workspace-input {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 13.5px;
  font-family: var(--font-mono);
  transition: border-color 0.15s ease;
  outline: none;
}

.workspace-input.with-prefix {
  padding-left: 28px;
}

.workspace-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.workspace-select {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Sizer Hero Result Card */
.sizer-hero-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-hover));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.sizer-hero-cap-box {
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.sizer-hero-lots {
  font-size: 38px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.sizer-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.sizer-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sizer-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

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

.sizer-stat-val {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 4px;
}

.workspace-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.workspace-alert.alert-success {
  background: var(--color-profit-subtle);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--text-main);
}

.workspace-alert.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--text-main);
}

.workspace-alert.alert-danger {
  background: var(--color-loss-subtle);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--text-main);
}

/* Quick SL Chips */
.quick-chips-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.quick-sl-btn {
  padding: 3px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-sl-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--accent-primary);
}

/* CPR Level Cards */
.cpr-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

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

.cpr-level-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.cpr-level-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.cpr-level-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 4px;
}

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

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

.cam-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.cam-box.cam-long {
  border-left: 3px solid var(--color-profit);
}

.cam-box.cam-short {
  border-left: 3px solid var(--color-loss);
}

.cam-box.cam-neutral {
  border-left: 3px solid var(--color-warning);
}

/* Pre-Flight Checklist */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.checklist-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-profit);
  margin-top: 2px;
}

.checklist-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.checklist-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Playbook Strategy Flashcards */
.playbook-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.strategy-flashcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.strategy-flashcard:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

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

.strategy-flashcard-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.strategy-flashcard-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.strategy-rules-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.strategy-rule-point {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= NATIVE FINANCIAL SPONSOR TILE (DASHBOARD) ================= */
.sponsor-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  position: relative;
  transition: all 0.2s ease;
}

.sponsor-banner-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08);
}

.sponsor-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sponsor-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.sponsor-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  flex-wrap: wrap;
}

.sponsor-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 820px;
}

.sponsor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sponsor-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  text-decoration: none;
}

.sponsor-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sponsor-dismiss-btn:hover {
  color: var(--text-main);
  background: var(--bg-hover);
}

@media (max-width: 768px) {
  .sponsor-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .sponsor-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ================= MODERN NUMBER STEPPER CONTROLS ================= */
/* Bulletproof Suppression of Browser Default Spin Controls */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  right: -9999px !important;
}
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.workspace-input-wrap.has-stepper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.workspace-input.with-stepper {
  padding-right: 32px !important;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.input-stepper-controls {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  display: flex;
  flex-direction: column;
  width: 22px;
  gap: 1px;
  z-index: 3;
  user-select: none;
}

.micro-step-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.15s ease;
  line-height: 1;
}

.micro-step-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
}

.micro-step-btn:active {
  background: var(--accent-primary);
  color: #FFFFFF;
  transform: scale(0.92);
}

.micro-step-btn svg {
  pointer-events: none;
}

/* ================= SETTINGS CLOUD SYNC CARD ================= */
.cloud-sync-card {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cloud-sync-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.cloud-sync-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cloud-sync-meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.cloud-sync-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   LIGHT THEME COMPREHENSIVE COMPONENT ELEVATION & CONTRAST
   Linear & Stripe Inspired Crisp Minimalist Aesthetic
   ========================================================================== */

/* 1. Dashboard Metrics & Surface Polish */
[data-theme="light"] .metric-box {
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .metric-box-label {
  color: #475569 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .metric-box-sub {
  color: #64748B !important;
}

/* 2. Native Financial Sponsor Card (No Dark Blob in Light Mode) */
[data-theme="light"] .sponsor-banner-card {
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%) !important;
  border: 1px solid #BAE6FD !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06) !important;
}

[data-theme="light"] .sponsor-tag {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border: 1px solid #7DD3FC !important;
}

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

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

[data-theme="light"] .sponsor-cta-btn {
  background: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .sponsor-dismiss-btn {
  color: #94A3B8 !important;
}

[data-theme="light"] .sponsor-dismiss-btn:hover {
  color: #0F172A !important;
  background: #F1F5F9 !important;
}

/* 3. Interactive P&L Calendar */
[data-theme="light"] .calendar-card {
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .calendar-header-left span {
  color: #475569 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .calendar-month-select {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .calendar-day {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .calendar-day.empty {
  background: #F8FAFC !important;
  border-color: #F1F5F9 !important;
}

[data-theme="light"] .calendar-day.profit {
  background: #F0FDF4 !important;
  border: 1px solid #86EFAC !important;
}

[data-theme="light"] .calendar-day.profit .cal-pnl {
  color: #15803D !important;
  font-weight: 700 !important;
}

[data-theme="light"] .calendar-day.loss {
  background: #FEF2F2 !important;
  border: 1px solid #FCA5A5 !important;
}

[data-theme="light"] .calendar-day.loss .cal-pnl {
  color: #B91C1C !important;
  font-weight: 700 !important;
}

[data-theme="light"] .calendar-day-header {
  color: #334155 !important;
}

[data-theme="light"] .cal-trades-count {
  color: #64748B !important;
}

[data-theme="light"] .calendar-legend-item {
  color: #475569 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .streak-pill {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  border: 1px solid #BFDBFE !important;
}

/* 4. Trading Workspace Suite: Cards, Clean White Inputs & Micro-Steppers */
[data-theme="light"] .workspace-form-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .workspace-form-title {
  color: #0F172A !important;
}

[data-theme="light"] .workspace-form-sub {
  color: #64748B !important;
}

[data-theme="light"] .workspace-field-label {
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .workspace-input,
[data-theme="light"] .workspace-select {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .workspace-input:focus,
[data-theme="light"] .workspace-select:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .workspace-input-prefix {
  color: #64748B !important;
  font-weight: 600 !important;
}

[data-theme="light"] .micro-step-btn {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}

[data-theme="light"] .micro-step-btn:hover {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  border-color: #93C5FD !important;
}

[data-theme="light"] .micro-step-btn:active {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .quick-sl-btn {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .quick-sl-btn:hover {
  background: #EFF6FF !important;
  border-color: #2563EB !important;
  color: #1D4ED8 !important;
}

/* 5. Workspace Tab Switcher Buttons & Result Hero Cards */
[data-theme="light"] .workspace-tab-btn {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #334155 !important;
}

[data-theme="light"] .workspace-tab-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

[data-theme="light"] .workspace-tab-btn.active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .sizer-hero-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sizer-hero-cap-box {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .sizer-hero-lots {
  color: #2563EB !important;
}

[data-theme="light"] .sizer-hero-sub {
  color: #475569 !important;
}

[data-theme="light"] .sizer-stat-box {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .sizer-stat-label {
  color: #64748B !important;
  font-weight: 600 !important;
}

[data-theme="light"] .sizer-stat-val {
  color: #0F172A !important;
}

[data-theme="light"] .workspace-alert.alert-success {
  background: #F0FDF4 !important;
  border: 1px solid #BBF7D0 !important;
  color: #166534 !important;
}

[data-theme="light"] .workspace-alert.alert-danger {
  background: #FEF2F2 !important;
  border: 1px solid #FECACA !important;
  color: #991B1B !important;
}

[data-theme="light"] .workspace-alert.alert-warning {
  background: #FFFBEB !important;
  border: 1px solid #FDE68A !important;
  color: #92400E !important;
}

/* 6. Settings Page: Clean White Surfaces & High-Contrast Typography */
[data-theme="light"] .settings-section {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .settings-header-left h3 {
  color: #0F172A !important;
}

[data-theme="light"] .settings-header-left p {
  color: #64748B !important;
}

[data-theme="light"] .settings-row-info strong {
  color: #0F172A !important;
}

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

[data-theme="light"] .settings-input,
[data-theme="light"] .settings-select,
[data-theme="light"] .settings-textarea {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .settings-input:focus,
[data-theme="light"] .settings-select:focus,
[data-theme="light"] .settings-textarea:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .cloud-sync-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .cloud-sync-meta-grid {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .cloud-sync-meta-label {
  color: #64748B !important;
}

[data-theme="light"] .cloud-sync-meta-val {
  color: #0F172A !important;
}

[data-theme="light"] .guest-profile-card,
[data-theme="light"] .account-guest-tile {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

/* 7. Zero-State Container & Cards */
[data-theme="light"] .zero-state-container {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .zero-state-title {
  color: #0F172A !important;
}

[data-theme="light"] .zero-state-subtitle {
  color: #475569 !important;
}

[data-theme="light"] .zero-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .zero-card:hover {
  background: #EFF6FF !important;
  border-color: #93C5FD !important;
}

[data-theme="light"] .zero-card-title {
  color: #0F172A !important;
}

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

/* ================= PHASE 4: TRADE CHART DROPZONE, BADGE & LIGHTBOX ================= */
.chart-dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg-hover);
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.chart-dropzone:hover,
.chart-dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .chart-dropzone {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

[data-theme="light"] .chart-dropzone:hover,
[data-theme="light"] .chart-dropzone.dragover {
  background: #EFF6FF !important;
  border-color: #2563EB !important;
}

.chart-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
  text-decoration: none;
}

.chart-badge:hover {
  transform: scale(1.05);
}

[data-theme="light"] .chart-badge {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border: 1px solid #BAE6FD !important;
}

#chartLightboxModal {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ================= TABLE PLAYBOOK & EMOTION TAG SELECTS ================= */
.table-tag-select {
  width: 148px !important;
  min-width: 148px !important;
  height: 26px !important;
  line-height: 20px !important;
  padding: 2px 20px 2px 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  background-position: right 6px center !important;
  background-size: 10px 10px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap !important;
}

.table-tag-select.tag-empty {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(255, 255, 255, 0.18) !important;
  color: var(--text-dim) !important;
}

.table-tag-select.tag-active {
  background-color: rgba(56, 189, 248, 0.10) !important;
  border: 1px solid rgba(56, 189, 248, 0.30) !important;
  color: #38BDF8 !important;
  font-weight: 600 !important;
}

.table-tag-select.emotion-calm {
  background-color: rgba(34, 197, 94, 0.10) !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
  color: #22C55E !important;
  font-weight: 600 !important;
}

.table-tag-select.emotion-tilted {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.30) !important;
  color: #EF4444 !important;
  font-weight: 600 !important;
}

.table-tag-select.emotion-neutral {
  background-color: var(--bg-hover) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
}

/* Light Theme Overrides for Table Tag Selects */
[data-theme="light"] .table-tag-select.tag-empty {
  background-color: #F8FAFC !important;
  border: 1px dashed #CBD5E1 !important;
  color: #64748B !important;
}

[data-theme="light"] .table-tag-select.tag-active {
  background-color: #EFF6FF !important;
  border: 1px solid #BFDBFE !important;
  color: #1D4ED8 !important;
}

[data-theme="light"] .table-tag-select.emotion-calm {
  background-color: #F0FDF4 !important;
  border: 1px solid #BBF7D0 !important;
  color: #16A34A !important;
}

[data-theme="light"] .table-tag-select.emotion-tilted {
  background-color: #FEF2F2 !important;
  border: 1px solid #FECACA !important;
  color: #DC2626 !important;
}

[data-theme="light"] .table-tag-select.emotion-neutral {
  background-color: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #334155 !important;
}

/* Reflection Column Chart Button */
.chart-view-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
  background: rgba(56, 189, 248, 0.10) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-view-btn:hover {
  background: rgba(56, 189, 248, 0.20) !important;
  transform: translateY(-1px);
}

[data-theme="light"] .chart-view-btn {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  border: 1px solid #BFDBFE !important;
}

[data-theme="light"] .chart-view-btn:hover {
  background: #DBEAFE !important;
}

/* ==========================================================================
   PHASE 5: INSTITUTIONAL LIVE FEEDS, MARKET RADAR & WEBHOOK INGESTION
   ========================================================================== */

/* Topbar Market Ticker Strip */
.market-ticker-strip {
  display: flex;
  align-items: center;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 38px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  z-index: 90;
}

.market-ticker-strip::-webkit-scrollbar {
  display: none;
}

.ticker-items-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 11px;
  transition: background-color 0.25s ease, transform 0.15s ease;
  cursor: pointer;
}

.ticker-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ticker-symbol {
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-size: 10.5px;
}

.ticker-price {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.ticker-change {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ticker-change.up {
  color: #22C55E;
}

.ticker-change.down {
  color: #EF4444;
}

/* Tick Glow Animation */
@keyframes tickGlowUp {
  0% { background-color: rgba(34, 197, 94, 0.35); }
  100% { background-color: transparent; }
}

@keyframes tickGlowDown {
  0% { background-color: rgba(239, 68, 68, 0.35); }
  100% { background-color: transparent; }
}

.ticker-item.flash-up {
  animation: tickGlowUp 0.6s ease-out;
}

.ticker-item.flash-down {
  animation: tickGlowDown 0.6s ease-out;
}

.ticker-feed-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  padding-left: 12px;
}

.ticker-feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.ticker-feed-badge.paused {
  color: var(--text-dim);
}

.pulse-dot-green,
.feed-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-muted);
  box-shadow: none;
  animation: none;
}

/* Light Theme Overrides for Market Ticker Strip */
[data-theme="light"] .market-ticker-strip {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
}

[data-theme="light"] .ticker-item:hover {
  background: #F1F5F9;
}

[data-theme="light"] .ticker-symbol {
  color: #64748B;
}

[data-theme="light"] .ticker-price {
  color: #0F172A;
}

[data-theme="light"] .ticker-change.up {
  color: #16A34A;
}

[data-theme="light"] .ticker-change.down {
  color: #DC2626;
}

[data-theme="light"] .ticker-feed-badge {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #15803D;
}

/* FII & DII Institutional Radar Card */
.fii-dii-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fii-dii-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.fii-dii-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

[data-theme="light"] .fii-dii-bar-container {
  background: #E2E8F0;
}

.fii-dii-bar-dii {
  background: #22C55E;
  height: 100%;
  transition: width 0.4s ease;
}

.fii-dii-bar-fii {
  background: #EF4444;
  height: 100%;
  transition: width 0.4s ease;
}

/* Sector Heatmap Grid */
.sector-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

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

.sector-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.sector-pct-pill {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.sector-pct-pill.bullish {
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.30);
}

.sector-pct-pill.bearish {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.30);
}

.sector-pct-pill.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

[data-theme="light"] .sector-pct-pill.bullish {
  background: #F0FDF4;
  color: #16A34A;
  border-color: #BBF7D0;
}

[data-theme="light"] .sector-pct-pill.bearish {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.sector-details {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

/* Automated Broker Webhook Ingestion Hub */
.webhook-hub-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[data-theme="light"] .webhook-hub-card {
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
  border: 1px solid #BAE6FD;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.webhook-endpoint-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: #38BDF8;
  overflow-x: auto;
}

[data-theme="light"] .webhook-endpoint-box {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #1D4ED8;
}

.webhook-sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  transition: all 0.15s ease;
}

.webhook-sim-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

[data-theme="light"] .webhook-sim-btn {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

[data-theme="light"] .webhook-sim-btn:hover {
  background: #DBEAFE;
}

/* Broker Setup Guide Accordion & Tabs */
.webhook-guide-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] .webhook-guide-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.guide-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.guide-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.guide-tab-btn {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.guide-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.guide-tab-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.30);
}

[data-theme="light"] .guide-tab-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

[data-theme="light"] .guide-tab-btn.active {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

/* Quick Navigation Route Banner */
.guide-route-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 11.5px;
}

[data-theme="light"] .guide-route-banner {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.route-label {
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.route-trail {
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.route-link {
  color: #38BDF8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.15s ease;
}

.route-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

[data-theme="light"] .route-link {
  color: #1D4ED8;
}

/* 3-Step Simple Card Grid */
.simple-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.simple-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.simple-step-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .simple-step-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .simple-step-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.08);
}

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

.simple-step-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}

[data-theme="light"] .simple-step-badge {
  background: #DBEAFE;
  color: #1D4ED8;
}

.simple-step-icon {
  font-size: 16px;
}

.simple-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.simple-step-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.simple-step-desc strong {
  color: var(--text-main);
}

.guide-callout {
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid #22C55E;
  padding: 9px 13px;
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

[data-theme="light"] .guide-callout {
  background: #F0FDF4;
  color: #166534;
}

/* ==========================================================================
   PHASE 6: MULTI-LEG OPTIONS PAYOFF STUDIO & GREEKS WORKSTATION
   ========================================================================== */

/* Top Command Bar */
.payoff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

[data-theme="light"] .payoff-toolbar {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.payoff-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
}

.payoff-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  border-right: 1px solid var(--border);
}

.payoff-brand-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  white-space: nowrap;
}

.payoff-control-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.payoff-control-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.payoff-toolbar .workspace-select {
  height: 36px;
  border-radius: 8px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  width: auto !important;
  min-width: 210px;
  max-width: 320px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.payoff-toolbar .workspace-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.payoff-spot-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.payoff-spot-input-wrap .currency-prefix {
  position: absolute;
  left: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  pointer-events: none;
}

.payoff-spot-input-wrap .workspace-input {
  height: 36px;
  border-radius: 8px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0 10px 0 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  width: 96px !important;
  text-align: left;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.payoff-spot-input-wrap .workspace-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.payoff-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 6-Card Executive Full-Width KPI Metrics Strip */
.payoff-stats-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}

@media (max-width: 1250px) {
  .payoff-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .payoff-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.payoff-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 68px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.payoff-stat-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .payoff-stat-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.payoff-stat-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  white-space: nowrap;
}

.payoff-stat-value {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.payoff-stat-sub {
  font-size: 9.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Two-Column Studio Layout */
.payoff-layout {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .payoff-layout {
    grid-template-columns: 1fr;
  }
}

.payoff-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.payoff-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Strategy Legs Table */
.payoff-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  overflow: hidden;
}

[data-theme="light"] .payoff-table-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.payoff-table-wrap {
  overflow-x: auto;
  margin: -6px -14px -6px -14px;
}

.payoff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.payoff-table thead th {
  padding: 6px 4px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
  white-space: nowrap;
}

[data-theme="light"] .payoff-table thead th {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.payoff-table tbody td {
  padding: 5px 3px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

[data-theme="light"] .payoff-table tbody td {
  border-color: #E2E8F0;
}

.payoff-table tbody tr:last-child td {
  border-bottom: none;
}

.payoff-table tbody tr:hover {
  background: var(--bg-hover);
}

.leg-toggle-btn {
  padding: 2px 5px;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 38px;
  text-align: center;
  line-height: 1.3;
}

.leg-toggle-btn.buy {
  background: rgba(16, 185, 129, 0.16);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.4);
}

.leg-toggle-btn.buy:hover {
  background: rgba(16, 185, 129, 0.28);
}

.leg-toggle-btn.sell {
  background: rgba(239, 68, 68, 0.16);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.leg-toggle-btn.sell:hover {
  background: rgba(239, 68, 68, 0.28);
}

.type-toggle-btn {
  padding: 2px 4px;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 30px;
  text-align: center;
  line-height: 1.3;
}

.type-toggle-btn.ce {
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
}

.type-toggle-btn.ce:hover {
  background: rgba(56, 189, 248, 0.28);
}

.type-toggle-btn.pe {
  background: rgba(245, 158, 11, 0.16);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.4);
}

.type-toggle-btn.pe:hover {
  background: rgba(245, 158, 11, 0.28);
}

.leg-expiry-select {
  padding: 2px 4px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-sidebar);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  width: 88px;
  min-width: 88px;
  box-sizing: border-box;
}

[data-theme="light"] .leg-expiry-select {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.leg-stepper-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-sidebar);
  vertical-align: middle;
  transition: border-color 0.15s ease;
}

.leg-stepper-wrap:focus-within {
  border-color: var(--accent-primary);
}

[data-theme="light"] .leg-stepper-wrap {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.leg-step-btn {
  width: 17px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: all 0.15s ease;
}

.leg-step-btn:hover {
  background: var(--bg-hover);
  color: var(--accent-primary);
}

.leg-step-btn:active {
  background: rgba(56, 189, 248, 0.2);
}

.leg-strike-input {
  width: 50px;
  height: 22px;
  padding: 0 1px;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}

.leg-strike-input::-webkit-outer-spin-button,
.leg-strike-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.leg-prem-input {
  width: 42px;
  height: 22px;
  padding: 0 1px;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}

.leg-prem-input::-webkit-outer-spin-button,
.leg-prem-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.leg-lots-input {
  width: 24px;
  height: 22px;
  padding: 0 1px;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}

.leg-lots-input::-webkit-outer-spin-button,
.leg-lots-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.leg-del-btn {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.leg-del-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

/* Payoff Canvas Container */
.payoff-canvas-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px 16px 16px;
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

[data-theme="light"] .payoff-canvas-wrap {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.payoff-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

[data-theme="light"] .payoff-canvas-header {
  border-color: #E2E8F0;
}

.payoff-canvas-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.payoff-canvas-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.payoff-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Portfolio Greeks 4-Grid & Cards */
.greeks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1050px) {
  .greeks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.greek-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-height: 115px;
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.greek-card:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .greek-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.greek-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.greek-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.greek-symbol-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  flex-shrink: 0;
}

.greek-symbol-badge.delta {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}

.greek-symbol-badge.theta {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.greek-symbol-badge.gamma {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
}

.greek-symbol-badge.vega {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.greek-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.greek-name {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.greek-subtitle {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1.2;
}

.greek-val {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: var(--text-main);
  line-height: 1.2;
  margin-top: 3px;
  letter-spacing: -0.01em;
}

.greek-desc {
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--text-muted);
  margin-top: auto;
}

/* Margin Relief Banner */
.margin-relief-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.4;
}

[data-theme="light"] .margin-relief-banner {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

/* ==========================================================================
   PHASE 6: SEBI 2026 HARD TILT LOCKOUT TERMINAL OVERLAY
   ========================================================================== */

.tilt-lockout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 23, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInLockout 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInLockout {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.tilt-modal-card {
  background: #0F172A;
  border: 2px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 60px rgba(239, 68, 68, 0.35), 0 20px 40px rgba(0, 0, 0, 0.8);
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  color: #F8FAFC;
  position: relative;
}

[data-theme="light"] .tilt-modal-card {
  background: #FFFFFF;
  border-color: #EF4444;
  color: #0F172A;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.25), 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tilt-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.18);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.tilt-timer-wrap,
.tilt-timer-container {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  flex-shrink: 0;
}

.tilt-svg-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
  overflow: visible;
}

.tilt-ring-bg {
  fill: none !important;
  stroke: rgba(239, 68, 68, 0.15);
  stroke-width: 8;
}

.tilt-ring-progress,
.tilt-ring-fg {
  fill: none !important;
  stroke: #EF4444;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.tilt-timer-content,
.tilt-ring-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.tilt-timer-digits,
.tilt-ring-time {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #EF4444;
  line-height: 1;
}

.tilt-timer-sub,
.tilt-ring-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.tilt-reason-box {
  width: 100%;
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="light"] .tilt-reason-box {
  background: #FEF2F2;
  border-color: #FECACA;
}

.tilt-speech-quote {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  max-width: 480px;
}

.tilt-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  width: 100%;
  justify-content: center;
}

.tilt-whatsapp-btn:hover {
  background: #22C55E;
  transform: translateY(-1px);
}

.tilt-reflection-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.tilt-reflection-textarea {
  width: 100%;
  height: 56px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-sidebar);
  color: var(--text-main);
  font-size: 12px;
  resize: none;
}

body.lockout-active .btn-primary:not(#lockoutConfirmUnlockBtn),
body.lockout-active #zeroManualTradeBtn,
body.lockout-active #zeroUploadCsvBtn {
  pointer-events: none !important;
  opacity: 0.5 !important;
}

#lockoutConfirmUnlockBtn {
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  background: var(--brand-primary, #3B82F6) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4) !important;
  transition: all 0.15s ease !important;
}

#lockoutConfirmUnlockBtn:hover {
  background: #2563EB !important;
  transform: translateY(-1px);
}

#lockoutConfirmUnlockBtn:active {
  transform: translateY(0);
}

#lockoutEmergencyBypassBtn {
  pointer-events: auto !important;
  cursor: pointer !important;
  color: var(--text-dim) !important;
  transition: color 0.15s ease !important;
}

#lockoutEmergencyBypassBtn:hover {
  color: #EF4444 !important;
  text-decoration: underline !important;
}

/* ================= PAYOFF STUDIO ASSET SEARCH COMBOBOX ================= */
.payoff-search-combo-wrap {
  position: relative;
}

.payoff-search-combo {
  position: relative;
  min-width: 240px;
  width: 250px;
}

.payoff-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  height: 36px;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.payoff-search-input-wrap:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .payoff-search-input-wrap {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.payoff-search-input-wrap .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.payoff-search-input {
  flex: 1;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 !important;
  outline: none !important;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payoff-search-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
}

.payoff-search-toggle-btn:hover {
  color: var(--text-main);
  background: var(--bg-hover);
}

.payoff-asset-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  z-index: 200;
  margin-top: 4px;
}

[data-theme="light"] .payoff-asset-dropdown {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.payoff-dropdown-section-title {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 10px 4px 10px;
  letter-spacing: 0.05em;
  background: var(--bg-sidebar);
}

[data-theme="light"] .payoff-dropdown-section-title {
  background: #F8FAFC;
}

.payoff-asset-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

.payoff-asset-option:last-child {
  border-bottom: none;
}

.payoff-asset-option:hover {
  background: var(--bg-hover);
}

.payoff-asset-option.selected {
  background: rgba(56, 189, 248, 0.12);
}

.payoff-asset-option-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.payoff-asset-sym {
  font-weight: 800;
  font-size: 12px;
  color: var(--text-main);
}

.payoff-asset-name {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payoff-asset-option-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payoff-asset-spot {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-mono, monospace);
}

.payoff-asset-lot {
  font-size: 10px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
}

[data-theme="light"] .payoff-asset-lot {
  background: rgba(0, 0, 0, 0.05);
}

.payoff-asset-empty {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ================= INTERACTIVE OPTION CHAIN WORKSTATION MODAL ================= */
.chain-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.chain-modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .chain-modal-container {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.chain-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}

[data-theme="light"] .chain-modal-header {
  background: #F8FAFC;
}

.chain-asset-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

[data-theme="light"] .chain-asset-badge {
  background: #FFFFFF;
}

.chain-range-btn {
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chain-range-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.chain-range-btn.active {
  background: var(--accent-primary);
  color: #000000;
  border-color: var(--accent-primary);
}

.chain-kpi-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 18px;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

[data-theme="light"] .chain-kpi-bar {
  background: #F1F5F9;
}

.chain-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chain-kpi-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.chain-kpi-val {
  font-size: 12.5px;
  font-weight: 800;
}

.chain-kpi-tip {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

.chain-table-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  min-height: 300px;
}

.chain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.chain-head-call {
  text-align: center;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  font-weight: 800;
  padding: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-right: 1px solid var(--border);
}

.chain-head-put {
  text-align: center;
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  font-weight: 800;
  padding: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-left: 1px solid var(--border);
}

.chain-head-strike {
  text-align: center;
  background: var(--bg-sidebar);
  color: var(--text-muted);
  font-weight: 800;
  padding: 6px;
  font-size: 11px;
}

.chain-subhead th {
  padding: 5px 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}

[data-theme="light"] .chain-subhead th {
  background: #F8FAFC;
}

.chain-row td {
  padding: 4px 3px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.chain-row:hover {
  background: var(--bg-hover);
}

.chain-atm-row {
  background: rgba(56, 189, 248, 0.09) !important;
  border-top: 1.5px solid var(--accent-primary) !important;
  border-bottom: 1.5px solid var(--accent-primary) !important;
}

.chain-strike-col {
  background: var(--bg-sidebar);
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

[data-theme="light"] .chain-strike-col {
  background: #F8FAFC;
}

.chain-strike-col.atm-highlight {
  color: var(--accent-primary);
  font-weight: 800;
}

.chain-atm-badge {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 800;
  background: var(--accent-primary);
  color: #000000;
  padding: 1px 3px;
  border-radius: 2px;
  margin-left: 3px;
  vertical-align: middle;
}

.chain-act-col {
  white-space: nowrap;
}

.chain-act-btn {
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 3px;
  cursor: pointer;
  margin: 0 1px;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.chain-act-btn.buy {
  background: rgba(16, 185, 129, 0.16);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.35);
}

.chain-act-btn.buy:hover {
  background: #10B981;
  color: #FFFFFF;
}

.chain-act-btn.sell {
  background: rgba(239, 68, 68, 0.16);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.35);
}

.chain-act-btn.sell:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.itm-call {
  background: rgba(16, 185, 129, 0.04);
}

.itm-put {
  background: rgba(245, 158, 11, 0.04);
}

.chain-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-sidebar);
}

[data-theme="light"] .chain-modal-footer {
  background: #F8FAFC;
}

/* ==========================================================================
   Phase 7: Indian Tax P&L, Section 44AB Audit & Verified Certificate Styles
   ========================================================================== */

.tax-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

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

@media (max-width: 600px) {
  .tax-hero-grid {
    grid-template-columns: 1fr;
  }
}

.tax-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tax-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.tax-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tax-kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tax-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.tax-kpi-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.tax-turnover-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin: 6px 0 4px 0;
  overflow: hidden;
}

[data-theme="light"] .tax-turnover-progress-wrap {
  background: rgba(0, 0, 0, 0.06);
}

.tax-turnover-bar {
  height: 100%;
  background: linear-gradient(90deg, #38BDF8 0%, #10B981 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.tax-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.tax-schedule-table th {
  background: var(--bg-hover);
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px 14px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.tax-schedule-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.tax-schedule-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.03);
}

.tax-schedule-table tfoot td {
  background: var(--bg-hover);
  font-weight: 700;
  border-top: 2px solid var(--border);
}

.tax-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 950px) {
  .tax-split-grid {
    grid-template-columns: 1fr;
  }
}

.tax-audit-banner {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 12px;
}

.tax-audit-banner.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.tax-audit-banner.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.tax-audit-banner-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #10B981;
  margin-bottom: 4px;
}

.tax-audit-banner.warning .tax-audit-banner-title {
  color: #F59E0B;
}

.tax-audit-banner.danger .tax-audit-banner-title {
  color: #EF4444;
}

.tax-audit-banner-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

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

.tax-turnover-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.tax-deduct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .tax-deduct-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.tax-deduction-summary-bar {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-hover);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Cryptographic Verified P&L Modal Styles
   ========================================================================== */

.verified-cert-card {
  background: var(--bg-card) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(56, 189, 248, 0.15) !important;
  border-radius: 12px !important;
}

.verified-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
}

.verified-cert-hero {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

[data-theme="light"] .verified-cert-hero {
  background: #F8FAFC;
}

.verified-hash-box {
  background: #06090E;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
}

[data-theme="light"] .verified-hash-box {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

/* ==========================================================================
   Phase 8: Multimodal Vision AI Technical Execution Auditor Styles
   ========================================================================== */

.vision-audit-container {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
}

[data-theme="light"] .vision-audit-container {
  background: #F0F9FF;
  border-color: #BAE6FD;
}

.vision-audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vision-ai-icon {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vision-audit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.vision-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.vision-critique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.vision-critique-item {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
}

.vision-critique-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.vision-critique-val {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
}

/* ==========================================================================
   Phase 8: 60-Second Daily Coaching Podcast Studio Styles
   ========================================================================== */

.podcast-studio-card {
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.podcast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.podcast-waveform-wrap {
  background: #06090E;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .podcast-waveform-wrap {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.podcast-waveform-canvas {
  width: 100%;
  height: 64px;
  display: block;
}

.podcast-transport-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.podcast-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #080B10;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.podcast-play-btn:hover {
  transform: scale(1.06);
}

.podcast-timeline-wrap {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.podcast-time-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 32px;
}

.podcast-scrub-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.podcast-scrub-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
}

.podcast-speed-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-hover);
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.podcast-speed-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
}

.podcast-speed-btn.active {
  background: var(--accent-primary);
  color: #080B10;
}

.podcast-teleprompter {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.podcast-teleprompter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.podcast-tab-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.podcast-tab-btn.active {
  color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.12);
}

.podcast-tab-pane {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-main);
  min-height: 48px;
}

/* ==========================================================================
   Phase 8: Push Notification & Mobile Security Simulator Styles
   ========================================================================== */

.push-sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.push-sim-card {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.push-sim-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.push-sim-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   PROGRESSIVE CLOUD PROMPT & PERSISTENCE STYLES
   ========================================================================== */
.cloud-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cloud-status-btn .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.cloud-status-btn .status-dot-amber {
  background-color: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
  animation: pulse-amber-glow 2.2s infinite ease-in-out;
}

.cloud-status-btn .status-dot-green {
  background-color: #10B981;
  box-shadow: 0 0 7px rgba(16, 185, 129, 0.8);
}

@keyframes pulse-amber-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

.cloud-status-guest {
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: var(--text-main);
}

.cloud-status-guest:hover {
  border-color: #F59E0B !important;
  background: rgba(245, 158, 11, 0.08) !important;
}

.cloud-status-synced {
  border-color: rgba(16, 185, 129, 0.35) !important;
}

/* Progressive Cloud Persistence Banner */
.progressive-cloud-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(56, 189, 248, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  animation: bannerSlideIn 0.25s ease-out;
}

.progressive-cloud-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.progressive-cloud-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.16);
  color: #F59E0B;
  flex-shrink: 0;
}

.progressive-cloud-banner-text {
  line-height: 1.4;
}

.progressive-cloud-banner-text strong {
  color: var(--text-bright);
}

.progressive-cloud-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

/* Generic Spinner & Status Indicators */
@keyframes rem-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rem-spin {
  animation: rem-spin 0.8s linear infinite !important;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.status-dot-green {
  background-color: #10B981 !important;
  box-shadow: 0 0 7px rgba(16, 185, 129, 0.8);
}

.status-dot-amber, .status-dot-yellow {
  background-color: #F59E0B !important;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}

.status-dot-red {
  background-color: #EF4444 !important;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

/* ==========================================================================
   REIMAGINED WORKSPACE RESET CONFIRMATION MODAL (PIXEL PERFECT)
   ========================================================================== */
.reset-workspace-card {
  max-width: 470px !important;
  width: 92% !important;
  background: #111726 !important;
  background: linear-gradient(180deg, #151d2e 0%, #0d1322 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 26px 28px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(239, 68, 68, 0.08) !important;
  color: #F8FAFC !important;
}

.reset-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reset-modal-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.12) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reset-modal-title {
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.reset-modal-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #EF4444;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.reset-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reset-user-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  flex-shrink: 0;
}

.reset-user-label {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 500;
  line-height: 1.2;
}

.reset-user-email {
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  margin-top: 2px;
  line-height: 1.2;
  word-break: break-all;
}

.reset-modal-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 18px 0;
}

.reset-breakdown-card {
  background: rgba(18, 26, 43, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.reset-breakdown-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.reset-item-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reset-item-icon-pill.red {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #F87171;
}

.reset-item-icon-pill.blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60A5FA;
}

.reset-item-icon-pill.slate {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94A3B8;
}

.reset-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.3;
}

.reset-item-subtitle {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 3px;
  line-height: 1.4;
}

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

.reset-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.reset-btn-danger {
  background: #EF4444;
  border: none;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}

.reset-btn-danger:hover {
  background: #DC2626;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
}

.reset-btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   RESET WORKSPACE MODAL - LIGHT THEME ADAPTATIONS (PIXEL PERFECT)
   ========================================================================== */
[data-theme="light"] .reset-workspace-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 30px rgba(239, 68, 68, 0.06) !important;
  color: #0F172A !important;
}

[data-theme="light"] .reset-modal-title {
  color: #0F172A !important;
}

[data-theme="light"] .reset-modal-subtitle {
  color: #DC2626 !important;
}

[data-theme="light"] .reset-modal-icon-box {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.06) inset !important;
}

[data-theme="light"] .reset-user-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .reset-user-icon-box {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #64748B !important;
}

[data-theme="light"] .reset-user-label {
  color: #64748B !important;
}

[data-theme="light"] .reset-user-email {
  color: #0F172A !important;
}

[data-theme="light"] .reset-modal-desc {
  color: #475569 !important;
}

[data-theme="light"] .reset-breakdown-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .reset-item-icon-pill.red {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  color: #DC2626 !important;
}

[data-theme="light"] .reset-item-icon-pill.blue {
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  color: #2563EB !important;
}

[data-theme="light"] .reset-item-icon-pill.slate {
  background: rgba(100, 116, 139, 0.08) !important;
  border: 1px solid rgba(100, 116, 139, 0.22) !important;
  color: #475569 !important;
}

[data-theme="light"] .reset-item-title {
  color: #0F172A !important;
}

[data-theme="light"] .reset-item-subtitle {
  color: #64748B !important;
}

[data-theme="light"] .reset-btn-cancel {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
}

[data-theme="light"] .reset-btn-cancel:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

/* ==========================================================================
   PHASE 12.1: NEXT-GEN INSTITUTIONAL TRADE LOGGING SUITE MODAL
   ========================================================================== */
.trade-logger-modal {
  max-width: 820px !important;
  width: 95% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 24px 28px !important;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(37, 99, 235, 0.1) !important;
  color: var(--text-main) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.trade-logger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.trade-logger-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trade-logger-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(30, 64, 175, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.trade-logger-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.trade-logger-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.trade-logger-close-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trade-logger-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border);
}

/* Quick Presets Bar */
.trade-logger-presets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.trade-logger-presets-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.trade-preset-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.trade-preset-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-primary-subtle);
  transform: translateY(-1px);
}

/* Form Grid */
.trade-logger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 680px) {
  .trade-logger-grid {
    grid-template-columns: 1fr;
  }
}

.trade-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trade-field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade-field-hint {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-dim);
}

.trade-field input,
.trade-field select,
.trade-field textarea {
  width: 100%;
  background: var(--bg-app);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.trade-field input:focus,
.trade-field select:focus,
.trade-field textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

/* Side Toggle Buttons */
.trade-side-toggle-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.trade-side-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-app);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.trade-side-btn.buy.active {
  background: #16A34A;
  border-color: #15803D;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35);
}

.trade-side-btn.sell.active {
  background: #DC2626;
  border-color: #B91C1C;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

/* Quantity Stepper Helpers */
.qty-stepper-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}

.qty-step-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.qty-step-btn:hover {
  background: var(--accent-primary-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Real-Time Live Calculation & Friction Card */
.trade-logger-live-calc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
}

@media (max-width: 640px) {
  .trade-logger-live-calc {
    grid-template-columns: 1fr;
  }
}

.calc-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-tile-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.calc-tile-val {
  font-size: 17px;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.calc-tile-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* Tag Taxonomy Sections (Pills) */
.trade-tag-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-tag-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trade-taxonomy-pill {
  background: var(--bg-app);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.trade-taxonomy-pill:hover {
  border-color: var(--border-active);
  color: var(--text-main);
}

.trade-taxonomy-pill.setup-pill.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 700;
}

.trade-taxonomy-pill.emotion-pill.active {
  background: rgba(168, 85, 247, 0.12);
  border-color: #A855F7;
  color: #A855F7;
  font-weight: 700;
}

.trade-taxonomy-pill.mistake-pill.active {
  background: rgba(239, 68, 68, 0.12);
  border-color: #EF4444;
  color: #EF4444;
  font-weight: 700;
}

/* Clipboard Image Dropzone */
.trade-image-dropzone {
  border: 1.5px dashed var(--border-active);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: var(--bg-app);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.trade-image-dropzone:hover,
.trade-image-dropzone.dragover {
  border-color: var(--accent-primary);
  background: var(--accent-primary-subtle);
}

.trade-image-preview-box {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.trade-image-preview-box img {
  max-height: 120px;
  display: block;
  object-fit: cover;
}

.trade-image-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
}

/* Modal Actions */
.trade-logger-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Phase 13: Executive Command Center & Multi-Broker Intelligence Suite
   Linear & Notion Inspired Minimalist Architecture (Dark & Light Theme)
   ========================================================================== */

/* 13.1 Multi-Broker Performance Attribution Strip */
.broker-attribution-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.broker-attrib-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.broker-attrib-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.broker-attrib-card.active-broker {
  border-color: var(--accent-primary);
  background: var(--accent-primary-subtle);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.attrib-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.attrib-broker-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.attrib-broker-name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.attrib-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.attrib-status-pill.driver {
  background: var(--color-profit-subtle);
  color: var(--color-profit);
}

.attrib-status-pill.drag {
  background: var(--color-loss-subtle);
  color: var(--color-loss);
}

.attrib-pnl-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.attrib-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  gap: 8px;
}

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

.attrib-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.attrib-stat-val {
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* 13.2 "True Cost of Trading" Statutory Friction Gauge */
.friction-gauge-card {
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 12px;
}

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

.friction-ratio-pill {
  text-align: right;
}

.friction-ratio-num {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.1;
  display: block;
}

.friction-ratio-sub {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.friction-comparison-wrap {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.friction-comparison-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.friction-meter-track {
  height: 10px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  width: 100%;
}

.friction-meter-net {
  background: linear-gradient(90deg, #16A34A, #22C55E);
  height: 100%;
  transition: width 0.4s ease;
}

.friction-meter-toll {
  background: linear-gradient(90deg, #EF4444, #DC2626);
  height: 100%;
  transition: width 0.4s ease;
}

.friction-breakdown-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.friction-sub-item {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}

.friction-sub-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 3px;
}

.friction-sub-val {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.friction-directive-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 13.4 Behavioral Tilt Radar & Intraday Time-of-Day Curve */
.time-of-day-card {
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 12px;
}

.tod-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.tod-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.tod-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tod-session-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tod-session-card:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.tod-session-card.golden-card {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.04);
}

.tod-session-card.tilt-card {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.04);
}

.tod-sess-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.tod-sess-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tod-sess-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.tod-tag-golden {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  white-space: nowrap;
}

.tod-tag-tilt {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  white-space: nowrap;
}

.tod-sess-pnl {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tod-sess-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.tod-winrate-pill {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.tod-winrate-pill.profit {
  background: var(--color-profit-subtle);
  color: var(--color-profit);
}

.tod-winrate-pill.loss {
  background: var(--color-loss-subtle);
  color: var(--color-loss);
}

.tod-tilt-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.tilt-alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.tilt-alert-content strong {
  display: block;
  font-size: 13px;
  color: #EF4444;
  font-weight: 700;
}

.tilt-alert-content p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* 13.5 One-Click Day Reflection Quick Notes in Calendar */
.cell-note-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  font-size: 11px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.cell-note-btn.has-note {
  opacity: 1;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 4px;
}

.cell-note-btn.has-note:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  transform: scale(1.15);
}

.cell-note-btn.add-note-hover {
  opacity: 0;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
}

.calendar-day-cell:hover .cell-note-btn.add-note-hover {
  opacity: 0.7;
}

.cell-note-btn.add-note-hover:hover {
  opacity: 1;
  color: var(--accent-primary);
  transform: scale(1.2);
}

/* Day Reflection Drawer / Modal */
.day-reflection-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.day-reflection-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: zoomIn 0.15s ease-out;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

.reflection-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reflection-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reflection-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.reflection-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.reflection-pnl-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
}

.reflection-pnl-pill.profit {
  background: var(--color-profit-subtle);
  color: var(--color-profit);
}

.reflection-pnl-pill.loss {
  background: var(--color-loss-subtle);
  color: var(--color-loss);
}

.reflection-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.reflection-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.day-reflection-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.refl-form-group {
  display: flex;
  flex-direction: column;
}

.refl-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.refl-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.refl-textarea {
  width: 100%;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-main);
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.refl-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

.refl-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.refl-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.refl-chip-icon {
  display: inline-block;
  flex-shrink: 0;
  pointer-events: none;
  stroke: currentColor;
  transition: transform 0.15s ease;
}

.refl-chip span {
  pointer-events: none;
}

.refl-chip:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-hover, #64748B);
  transform: translateY(-1px);
}

.refl-chip:hover .refl-chip-icon {
  transform: scale(1.1);
}

/* Specific Active Colors in Dark Mode */
.refl-chip.active {
  font-weight: 700 !important;
  transform: translateY(0);
}

.refl-chip.refl-chip-flow.active {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
  box-shadow: 0 0 0 1px #10B981, 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

.refl-chip.refl-chip-discipline.active {
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: #3B82F6 !important;
  color: #60A5FA !important;
  box-shadow: 0 0 0 1px #3B82F6, 0 2px 8px rgba(59, 130, 246, 0.25) !important;
}

.refl-chip.refl-chip-hesitant.active {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: #F59E0B !important;
  color: #FBBF24 !important;
  box-shadow: 0 0 0 1px #F59E0B, 0 2px 8px rgba(245, 158, 11, 0.25) !important;
}

.refl-chip.refl-chip-fomo.active {
  background: rgba(249, 115, 22, 0.18) !important;
  border-color: #F97316 !important;
  color: #FB923C !important;
  box-shadow: 0 0 0 1px #F97316, 0 2px 8px rgba(249, 115, 22, 0.25) !important;
}

.refl-chip.refl-chip-tilt.active {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: #EF4444 !important;
  color: #F87171 !important;
  box-shadow: 0 0 0 1px #EF4444, 0 2px 8px rgba(239, 68, 68, 0.25) !important;
}

.refl-chip.refl-chip-overconfident.active {
  background: rgba(168, 85, 247, 0.18) !important;
  border-color: #A855F7 !important;
  color: #C084FC !important;
  box-shadow: 0 0 0 1px #A855F7, 0 2px 8px rgba(168, 85, 247, 0.25) !important;
}

.refl-input {
  width: 100%;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-main);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.refl-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-subtle);
}

.refl-rule-check-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.refl-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.refl-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.day-reflection-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* ==========================================================================
   Phase 13 Light Theme Overrides
   ========================================================================== */
[data-theme="light"] .day-reflection-overlay {
  background: rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .day-reflection-modal {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .day-reflection-header,
[data-theme="light"] .day-reflection-footer {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .refl-textarea,
[data-theme="light"] .refl-input {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .cell-note-btn.has-note {
  color: #0284C7;
  background: #E0F2FE;
  border-color: #BAE6FD;
}

[data-theme="light"] .cell-note-btn.has-note:hover {
  background: #BAE6FD;
  border-color: #0284C7;
}

[data-theme="light"] .refl-chip {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

[data-theme="light"] .refl-chip:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #94A3B8;
}

[data-theme="light"] .refl-chip.refl-chip-flow.active {
  background: #ECFDF5 !important;
  border-color: #059669 !important;
  color: #065F46 !important;
  box-shadow: 0 0 0 1px #059669, 0 2px 6px rgba(5, 150, 105, 0.2) !important;
}

[data-theme="light"] .refl-chip.refl-chip-discipline.active {
  background: #EFF6FF !important;
  border-color: #2563EB !important;
  color: #1E40AF !important;
  box-shadow: 0 0 0 1px #2563EB, 0 2px 6px rgba(37, 99, 235, 0.2) !important;
}

[data-theme="light"] .refl-chip.refl-chip-hesitant.active {
  background: #FFFBEB !important;
  border-color: #D97706 !important;
  color: #92400E !important;
  box-shadow: 0 0 0 1px #D97706, 0 2px 6px rgba(217, 119, 6, 0.2) !important;
}

[data-theme="light"] .refl-chip.refl-chip-fomo.active {
  background: #FFF7ED !important;
  border-color: #EA580C !important;
  color: #9A3412 !important;
  box-shadow: 0 0 0 1px #EA580C, 0 2px 6px rgba(234, 88, 12, 0.2) !important;
}

[data-theme="light"] .refl-chip.refl-chip-tilt.active {
  background: #FEF2F2 !important;
  border-color: #DC2626 !important;
  color: #991B1B !important;
  box-shadow: 0 0 0 1px #DC2626, 0 2px 6px rgba(220, 38, 38, 0.2) !important;
}

[data-theme="light"] .refl-chip.refl-chip-overconfident.active {
  background: #FAF5FF !important;
  border-color: #7C3AED !important;
  color: #5B21B6 !important;
  box-shadow: 0 0 0 1px #7C3AED, 0 2px 6px rgba(124, 58, 237, 0.2) !important;
}

[data-theme="light"] .friction-comparison-wrap {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .friction-meter-track {
  background: #E2E8F0;
}

[data-theme="light"] .friction-sub-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

[data-theme="light"] .tod-session-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

[data-theme="light"] .tod-session-card.golden-card {
  background: #F0FDF4;
  border-color: #86EFAC;
}

[data-theme="light"] .tod-session-card.tilt-card {
  background: #FEF2F2;
  border-color: #FECACA;
}

[data-theme="light"] .tod-streak-pill {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

/* ==========================================================================
   Phase 15.2: Social Follow Graph & Public Trader Dossier Styling
   ========================================================================== */

.profile-dossier-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.profile-hero-banner {
  height: 120px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(16, 185, 129, 0.15) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.profile-hero-body {
  padding: 0 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -50px;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-avatar-xl {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-btn-follow {
  min-width: 110px;
  height: 34px;
  padding: 0 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px !important;
  box-sizing: border-box;
  transition: all 0.2s ease;
  line-height: 1;
}

.profile-action-btn {
  height: 34px !important;
  width: 36px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  box-sizing: border-box;
}

.profile-btn-follow.following {
  background: var(--card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.profile-btn-follow.following:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.profile-title-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-display-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.profile-verified-badge.sebi {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}

.profile-handle-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono, monospace);
}

.profile-specialization-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--card-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.profile-bio-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 680px;
}

.profile-social-counters {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.profile-stat-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.profile-stat-link:hover {
  opacity: 0.8;
}

.profile-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-stat-lbl {
  font-size: 13px;
  color: var(--text-dim);
}

/* Stealth Mode Performance Matrix */
.stealth-bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.stealth-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stealth-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card-subtle);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.stealth-toggle-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.stealth-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stealth-metric-box {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stealth-metric-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stealth-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono, monospace);
}

/* Follower Directory Modal */
.social-directory-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.social-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  transition: background 0.15s ease;
}

.social-user-item:hover {
  background: var(--card-subtle);
}

.social-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.social-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Light Mode Overrides */
[data-theme="light"] .profile-hero-card,
[data-theme="light"] .stealth-bar-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .profile-hero-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(16, 185, 129, 0.1) 100%) !important;
  border-bottom-color: #E2E8F0 !important;
}

[data-theme="light"] .profile-avatar-xl {
  border-color: #FFFFFF !important;
  background: #EFF6FF !important;
  color: #2563EB !important;
}

[data-theme="light"] .stealth-metric-box,
[data-theme="light"] .social-user-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .profile-btn-follow.following {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .profile-btn-follow.following:hover {
  background: #FEE2E2 !important;
  border-color: #FCA5A5 !important;
  color: #DC2626 !important;
}

/* ==========================================================================
   Phase 15.3: Community Trading Desks & Verified Setup Stream
   ========================================================================== */

/* General Modal & View Form Elements */
.form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.form-input {
  width: 100% !important;
  background: var(--bg-app) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-main) !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-family: var(--font-sans) !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.form-input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 2px var(--accent-primary-subtle) !important;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  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='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
}

textarea.form-input {
  resize: vertical;
  line-height: 1.5;
  font-family: var(--font-sans);
}

.community-directory-wrap {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.community-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 4px;
}

.community-header-titles {
  flex: 1;
  min-width: 280px;
}

.community-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 4px;
  margin-bottom: 6px;
}

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

@media (max-width: 580px) {
  .form-row-3col {
    grid-template-columns: 1fr;
  }
}

.trade-linker-box {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trade-linker-box select.form-input {
  background-color: var(--bg-card) !important;
}

.input-addon-wrap {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.input-addon-prefix {
  display: inline-flex !important;
  align-items: center !important;
  background: var(--card-subtle) !important;
  border: 1px solid var(--border) !important;
  border-right: none !important;
  padding: 0 12px !important;
  border-radius: 8px 0 0 8px !important;
  color: var(--text-dim) !important;
  font-size: 12.5px !important;
  font-family: var(--font-mono) !important;
  white-space: nowrap !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.input-addon-field {
  border-radius: 0 8px 8px 0 !important;
  font-family: var(--font-mono) !important;
  flex: 1 !important;
  width: auto !important;
}

.setup-lead-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.setup-action-btn {
  height: 28px;
  width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.setup-action-btn:hover {
  background: var(--card-subtle);
  color: var(--text-main);
  border-color: var(--accent-primary);
}

.setup-action-btn.delete {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.setup-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
}

.community-filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.community-filter-pill:hover {
  background: var(--card-subtle);
  color: var(--text-main);
}

.community-filter-pill.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.community-desks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.desk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.desk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.4);
}

.desk-card-banner {
  height: 80px;
  position: relative;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  border-bottom: 1px solid var(--border);
}

.desk-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

.desk-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.desk-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.desk-card-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desk-card-host-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.desk-card-host-strip:hover {
  background: var(--card-subtle);
}

.desk-host-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.desk-host-verified {
  color: #3B82F6;
  font-size: 11px;
}

.desk-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.desk-members-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

/* Desk Room Styling */
.desk-room-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desk-room-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.desk-room-hero-banner {
  height: 110px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.desk-room-hero-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desk-room-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.desk-members-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.desk-room-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.02em;
}

.desk-room-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 760px;
}

.desk-room-host-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  max-width: 380px;
}

.desk-manifesto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.desk-manifesto-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.desk-feed-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setup-stream-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease;
}

.setup-post-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.setup-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.setup-author-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.setup-dir-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.setup-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.setup-symbol-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  font-family: var(--font-mono, monospace);
}

.setup-rr-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-primary-subtle);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-family: var(--font-mono, monospace);
}

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

.setup-param-box {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setup-param-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setup-param-val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
}

.setup-thesis-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Verified Journal Execution Badge */
.verified-journal-badge {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.vj-body {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-main);
  flex-wrap: wrap;
}

.sebi-compliance-note {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-dim);
  background: var(--bg-app);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 8px 12px;
}

/* Light Mode Overrides for Community Desks */
[data-theme="light"] .desk-card,
[data-theme="light"] .desk-room-hero,
[data-theme="light"] .desk-manifesto-card,
[data-theme="light"] .setup-post-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .community-filter-pill {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

[data-theme="light"] .community-filter-pill.active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .desk-card-host-strip,
[data-theme="light"] .desk-room-host-card,
[data-theme="light"] .setup-param-box,
[data-theme="light"] .sebi-compliance-note {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .verified-journal-badge {
  background: #F0FDF4 !important;
  border-color: #BBF7D0 !important;
}

[data-theme="light"] .form-input {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .form-input:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] select.form-input {
  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='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="light"] .trade-linker-box {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

[data-theme="light"] .trade-linker-box select.form-input {
  background-color: #FFFFFF !important;
}

[data-theme="light"] .input-addon-prefix {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #64748B !important;
}

[data-theme="light"] .setup-action-btn {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #64748B !important;
}

[data-theme="light"] .setup-action-btn:hover {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #2563EB !important;
}

/* Public Profile Hosted Trading Desk Card */
.profile-desk-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-desk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.profile-desk-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
}

.profile-desk-header {
  height: 64px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.profile-desk-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="light"] .profile-desk-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   Phase 15.4: Community Activity Feed & Interactive Setup Streams
   ========================================================================== */

.community-top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.community-tabs-list {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.community-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.community-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.community-tab-btn.active {
  color: var(--text-main);
  background: var(--bg-app);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.community-tab-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  box-shadow: none;
}

.community-feed-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.community-feed-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.community-feed-pulse-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  box-shadow: none;
}

.community-feed-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-filter-pill {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-app);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.feed-filter-pill:hover {
  color: var(--text-main);
  border-color: rgba(59, 130, 246, 0.4);
}

.feed-filter-pill.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
}

.community-sebi-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
}

/* Setup Card Origin Banner */
.setup-origin-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  padding: 4px 10px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: fit-content;
  cursor: pointer;
  transition: all 0.15s ease;
}

.setup-origin-strip:hover {
  color: var(--accent-primary);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
}

/* Setup Chart Preview Thumbnail */
.setup-chart-preview-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  max-height: 240px;
  background: #0A0D14;
}

.setup-chart-preview-wrap img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.setup-chart-preview-wrap:hover img {
  transform: scale(1.02);
}

.setup-chart-zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Setup Card Footer & Interactive Action Buttons */
.setup-interact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.setup-interact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.setup-interact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-app);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.setup-interact-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: rgba(59, 130, 246, 0.3);
}

.setup-interact-btn.agreed {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.setup-interact-btn.simulate {
  color: var(--accent-primary);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
}

.setup-interact-btn.simulate:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: var(--accent-primary);
}

/* Inline Discussion Drawer */
.setup-discussion-drawer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
}

.setup-discussion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.setup-comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setup-comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.setup-comment-text {
  font-size: 12.5px;
  color: var(--text-main);
  margin: 0;
  line-height: 1.45;
}

.setup-comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.setup-comment-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
}

.setup-comment-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Light Theme Overrides for Phase 15.4 Components */
[data-theme="light"] .community-tabs-list,
[data-theme="light"] .community-feed-control-bar,
[data-theme="light"] .chart-lightbox-card,
[data-theme="light"] .setup-comment-item {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .community-tab-btn:hover {
  background: #F1F5F9 !important;
}

[data-theme="light"] .community-tab-btn.active {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .feed-filter-pill,
[data-theme="light"] .setup-interact-btn,
[data-theme="light"] .setup-origin-strip,
[data-theme="light"] .setup-discussion-drawer {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .feed-filter-pill:hover,
[data-theme="light"] .setup-interact-btn:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

[data-theme="light"] .feed-filter-pill.active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .setup-interact-btn.agreed {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #059669 !important;
}

[data-theme="light"] .setup-interact-btn.simulate {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
  color: #2563EB !important;
}

[data-theme="light"] .setup-comment-input {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* Phase 15.4: Community Feed Composer Card */
.community-feed-composer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}

.community-feed-composer-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.composer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #8B5CF6 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-prompt-box {
  flex: 1;
  padding: 9px 14px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.composer-prompt-box:hover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
}

.composer-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Post Type Selector Segmented Strip */
.post-type-selector-strip {
  display: flex;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.post-type-toggle-btn {
  flex: 1;
  padding: 7px 12px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.post-type-toggle-btn:hover {
  color: var(--text-main);
}

.post-type-toggle-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Discussion Comment Action Buttons (Modify & Delete) */
.setup-comment-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.comment-action-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.comment-action-btn.delete:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

.comment-inline-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.comment-edit-textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-app);
  color: var(--text-main);
  resize: vertical;
  min-height: 54px;
  box-sizing: border-box;
}

.comment-edit-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.comment-edited-tag {
  font-size: 10px;
  color: var(--text-dim);
  font-style: italic;
  margin-left: 4px;
}

/* Light theme overrides */
[data-theme="light"] .community-feed-composer-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .composer-prompt-box {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

[data-theme="light"] .composer-prompt-box:hover {
  border-color: #2563EB !important;
  background: #EFF6FF !important;
}

[data-theme="light"] .post-type-selector-strip {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

[data-theme="light"] .post-type-toggle-btn.active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .comment-action-btn:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

[data-theme="light"] .comment-edit-textarea {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* ==================== PHASE 16: ENCRYPTED PDF CONTRACT NOTE DROPZONE & MODAL STYLES ==================== */
.contract-note-dropzone-card {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border) !important;
}

.contract-note-dropzone-card:hover {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 4px 20px -2px rgba(59, 130, 246, 0.12);
}

.dropzone-drag-over {
  border-color: #3B82F6 !important;
  background: rgba(59, 130, 246, 0.08) !important;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-2px);
}

.pdf-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.migration-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.migration-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.migration-chip:hover {
  color: var(--text-main);
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.06);
}

/* ================= IMPORT PATHWAYS BALANCED GRID (PHASE 16 POLISH) ================= */
.import-pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
  align-items: stretch;
}

.import-pathway-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.import-pathway-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.28);
}

.import-card-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.import-card-sublabel {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.broker-status-connected {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.webhook-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.import-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.import-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 38px;
}

.import-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  min-height: 60px;
  align-content: flex-start;
}

.import-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.import-chip:hover {
  color: var(--text-main);
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
}

.import-card-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-action-primary {
  width: 100%;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  padding: 0 10px;
}

.import-action-primary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-card-actions .secondary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.import-action-sub {
  height: 32px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border-radius: 6px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
  background: var(--bg-card, #111C35);
  border: 1px solid var(--border, #283756);
  transition: all 0.15s ease;
}

.import-action-sub span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-action-sub:hover {
  color: #FFFFFF;
  background: #1E293B;
  border-color: #475569;
}

.import-action-sub svg,
.import-action-primary svg {
  flex-shrink: 0;
}

[data-theme="light"] .contract-note-dropzone-card {
  border-color: var(--border) !important;
  background: #FFFFFF !important;
}

[data-theme="light"] .import-pathway-card {
  background: #FFFFFF !important;
  border-color: var(--border) !important;
}

[data-theme="light"] .import-pathway-card:hover {
  border-color: #2563EB !important;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12) !important;
}

[data-theme="light"] .import-chip {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #64748B !important;
}

[data-theme="light"] .import-chip:hover {
  background: #EFF6FF !important;
  color: #1E293B !important;
  border-color: #2563EB !important;
}

[data-theme="light"] .dropzone-drag-over {
  background: #EFF6FF !important;
  border-color: #2563EB !important;
}








