/* ==========================================================================
   RECOMMENDATION DRAWER CSS (Minimalist Terminal Style)
   Smart Running Trade - IDX Realtime Terminal
   STRICT RULE: Zero Emojis / Zero Icons. No Chunky Boxes. Minimalist Rows.
   ========================================================================== */

.recom-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.recom-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.recom-drawer {
  position: fixed;
  top: 0;
  right: 44px;
  width: 860px;
  max-width: calc(100vw - 44px);
  height: 100vh;
  background: #090d16;
  border-left: 1px solid #1e293b;
  border-right: 1px solid #1e293b;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  transform: translateX(calc(100% + 44px));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Courier New', monospace;
  box-sizing: border-box;
}

.recom-drawer.open {
  transform: translateX(0);
}

/* Minimalist Header */
.recom-drawer-header {
  padding: 12px 18px;
  background: #0d1322;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.recom-hdr-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recom-hdr-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.recom-hdr-count {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.recom-btn-close {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recom-btn-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Tabs Bar */
.recom-tabs-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 18px;
  background: #090e1a;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}

.recom-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.recom-tab-btn:hover:not(.disabled) {
  color: #cbd5e1;
}

.recom-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.recom-tab-btn.disabled {
  color: #334155;
  cursor: not-allowed;
}

/* Body Container */
.recom-drawer-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0;
}

/* Minimalist Table */
.recom-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}

.recom-thead {
  background: #0b1120;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #1e293b;
}

.recom-th {
  padding: 8px 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom: 1px solid #1e293b;
}

.recom-th.text-right,
.recom-td.text-right {
  text-align: right;
}

.recom-th.text-center,
.recom-td.text-center {
  text-align: center;
}

.recom-th:last-child,
.recom-td:last-child {
  padding-right: 18px;
}

.recom-tr {
  border-bottom: 1px solid #131d2e;
  transition: background 0.12s ease;
  cursor: pointer;
}

.recom-tr:hover {
  background: rgba(30, 41, 59, 0.45);
}

.recom-td {
  padding: 9px 12px;
  color: #cbd5e1;
  vertical-align: middle;
}

/* Column Styles */
.recom-col-emiten {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.recom-symbol {
  font-weight: 800;
  font-size: 12px;
  color: #f1f5f9;
  letter-spacing: 0.04em;
}

.recom-name {
  font-size: 9.5px;
  color: #64748b;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recom-price {
  font-weight: 700;
  color: #f8fafc;
}

.recom-chg {
  font-weight: 700;
}

.recom-chg.up,
.text-up {
  color: #34d399;
}

.recom-chg.down,
.text-down {
  color: #f87171;
}

/* Probabilitas */
.recom-prob-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.recom-prob-pct {
  font-weight: 800;
  font-size: 12px;
  color: #38bdf8;
}

.recom-prob-tier {
  font-size: 8.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
}

/* Targets */
.recom-buy-area {
  color: #94a3b8;
}

.recom-tp-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recom-tp-val {
  color: #34d399;
  font-weight: 600;
}

.recom-tp-divider {
  color: #334155;
}

.recom-sl-val {
  color: #f87171;
  font-weight: 600;
}

/* Action Button */
.recom-btn-broksum {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.12s ease;
}

.recom-btn-broksum:hover {
  background: #1e293b;
  color: #38bdf8;
  border-color: #38bdf8;
}

/* Minimalist Empty & Loading States */
.recom-empty-text {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.6;
}

/* Minimalist BSJP Execution Guide */
.recom-guide-box {
  margin: 18px 14px 14px 14px;
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 12px 14px;
}

.recom-guide-hdr {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin-bottom: 10px;
}

.recom-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.recom-guide-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-num {
  font-size: 9.5px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.04em;
}

.guide-txt {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   Tab 3: AI RUMUS PRIBADI & TELEGRAM STYLES
   Strictly Clean Minimalist Terminal Aesthetics (No Emojis / No Icons)
   ========================================================================== */

.ai-strat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Sub-navigation bar */
.ai-strat-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #0b1120;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}

.ai-subnav-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.ai-subnav-btn:hover {
  background: #1e293b;
  color: #f1f5f9;
}

.ai-subnav-btn.active {
  background: #1e293b;
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Quick Suggestion Chips */
.ai-chips-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #090e1a;
  border-bottom: 1px solid #1e293b;
  overflow-x: auto;
  flex-shrink: 0;
}

.ai-chips-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ai-chip-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #94a3b8;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.ai-chip-item:hover {
  background: #1e293b;
  color: #38bdf8;
  border-color: #38bdf8;
}

/* Chat Messages Box */
.ai-chat-history {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #020617;
}

.ai-msg-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 82%;
}

.ai-msg-row.user {
  align-self: flex-end;
  align-items: flex-end;
}

.ai-msg-row.ai {
  align-self: flex-start;
  align-items: flex-start;
}

.ai-msg-author {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 0 4px;
  text-transform: uppercase;
}

.ai-msg-row.user .ai-msg-author {
  text-align: right;
  color: #38bdf8;
}

.ai-msg-row.ai .ai-msg-author {
  text-align: left;
  color: #10b981;
}

.ai-msg-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ai-msg-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.ai-msg-row.user .ai-msg-bubble {
  background: #182234;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-top-right-radius: 2px;
  color: #f8fafc;
}

.ai-msg-row.ai .ai-msg-bubble {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-top-left-radius: 2px;
  color: #cbd5e1;
}

.ai-msg-bubble.loading {
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 8px 12px;
}

.ai-msg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Confirmation & Machine Formula Card */
.ai-confirm-card {
  margin-top: 10px;
  background: #090e1a;
  border: 1px solid #0284c7;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-confirm-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.ai-confirm-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.ai-confirm-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ai-confirm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ai-confirm-param {
  background: #0b1120;
  border: 1px solid #1e293b;
  padding: 6px 8px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-param-label {
  font-size: 8.5px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ai-param-val {
  font-size: 11px;
  color: #f1f5f9;
  font-weight: 700;
}

.ai-confirm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

/* Action Buttons */
.ai-btn-action {
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.ai-btn-action.test {
  background: #0284c7;
  color: #ffffff;
}

.ai-btn-action.test:hover {
  background: #0369a1;
}

.ai-btn-action.save {
  background: #059669;
  color: #ffffff;
}

.ai-btn-action.save:hover {
  background: #047857;
}

/* Clean AI Formula Code Block & Copy Button */
.ai-formula-code-box {
  margin-top: 10px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 4px;
  overflow: hidden;
}

.ai-formula-code-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #090e1a;
  border-bottom: 1px solid #1e293b;
}

.ai-formula-code-title {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.04em;
}

.ai-btn-copy-formula {
  background: #0f172a;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-btn-copy-formula:hover {
  background: #38bdf8;
  color: #020617;
}

.ai-formula-pre {
  margin: 0;
  padding: 10px 12px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: #a7f3d0;
  background: #020617;
  overflow-x: auto;
  line-height: 1.45;
}

/* Tab 2 Paste Scanner Box */
.ai-paste-scanner-box {
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.ai-paste-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-paste-title {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.ai-btn-quickpaste {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.ai-btn-quickpaste:hover {
  background: #1e293b;
  color: #f1f5f9;
}

.ai-paste-textarea {
  width: 100%;
  min-height: 110px;
  background: #020617;
  border: 1px solid #334155;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 3px;
  box-sizing: border-box;
  resize: vertical;
}

.ai-paste-textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

.ai-paste-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Scan Empty Result Box */
.ai-scan-empty-box {
  padding: 28px 20px;
  text-align: center;
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* Save & Schedule Box */
.ai-save-schedule-box {
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.ai-save-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.ai-save-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-save-label {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.ai-form-input {
  background: #0b1120;
  border: 1px solid #334155;
  color: #f8fafc;
  font-family: inherit;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 3px;
  box-sizing: border-box;
}

.ai-form-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.ai-btn-action.secondary {
  background: transparent;
  border-color: #334155;
  color: #94a3b8;
}

.ai-btn-action.secondary:hover {
  background: #1e293b;
  color: #f1f5f9;
}

.ai-btn-action.danger {
  background: transparent;
  border-color: #ef4444;
  color: #f87171;
}

.ai-btn-action.danger:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Chat Input Bar */
.ai-input-bar {
  padding: 12px 18px;
  background: #0d1322;
  border-top: 1px solid #1e293b;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}

.ai-textarea {
  flex: 1;
  background: #090e1a;
  border: 1px solid #334155;
  color: #f8fafc;
  font-family: inherit;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 4px;
  resize: none;
  min-height: 38px;
  max-height: 80px;
  box-sizing: border-box;
}

.ai-textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

.ai-btn-send {
  background: #38bdf8;
  border: none;
  color: #090d16;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
  height: 38px;
}

.ai-btn-send:hover {
  background: #7dd3fc;
}

.ai-btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Live Scan Results Box */
.ai-scan-wrap {
  margin: 12px 18px 18px;
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 4px;
  overflow: hidden;
}

.ai-scan-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.ai-scan-title {
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.04em;
}

.ai-scan-stats {
  font-size: 10px;
  color: #94a3b8;
}

/* Saved Strategies View */
.ai-saved-container {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-saved-card {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.ai-saved-card:hover {
  border-color: #334155;
}

.ai-saved-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-saved-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-saved-name {
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
}

.ai-saved-cat {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  background: #1e293b;
  color: #38bdf8;
}

.ai-saved-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.ai-saved-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9.5px;
  color: #64748b;
  padding: 6px 0;
  border-top: 1px solid #1e293b;
}

.ai-saved-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Telegram Settings View */
.ai-tg-container {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 650px;
}

.ai-tg-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.05em;
}

.ai-tg-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.6;
}

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

.ai-tg-label {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.04em;
}

.ai-tg-input {
  background: #090e1a;
  border: 1px solid #334155;
  color: #f8fafc;
  font-family: inherit;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 4px;
  box-sizing: border-box;
}

.ai-tg-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.ai-tg-help {
  font-size: 9px;
  color: #64748b;
  line-height: 1.4;
}

.ai-tg-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.ai-tg-status {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
}

.ai-tg-status.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ai-tg-status.err {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* =======================================================
   RECOMMENDATIONS DRAWER - LIGHT THEME (MODE SIANG)
   ======================================================= */
body.theme-light .recom-drawer-backdrop {
  background: rgba(15, 23, 42, 0.35);
}

body.theme-light .recom-drawer {
  background: #ffffff;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

body.theme-light .recom-drawer-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .recom-hdr-title {
  color: #0f172a;
}

body.theme-light .recom-hdr-count {
  color: #64748b;
}

body.theme-light .recom-btn-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
}

body.theme-light .recom-btn-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

body.theme-light .recom-tabs-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .recom-tab-btn {
  color: #64748b;
}

body.theme-light .recom-tab-btn:hover:not(.disabled) {
  color: #0f172a;
}

body.theme-light .recom-tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

body.theme-light .recom-drawer-body {
  background: #f8fafc;
  scrollbar-color: #cbd5e1 transparent;
}

body.theme-light .recom-row-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

body.theme-light .recom-row-item:hover {
  background: #ffffff;
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

body.theme-light .recom-filter-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .recom-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.theme-light .recom-symbol {
  color: #0f172a;
}

.recom-broker-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: normal;
}

body.theme-light .recom-broker-badge {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.ai-paste-select-saved {
  background: #1e293b;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  max-width: 220px;
}

body.theme-light .ai-paste-select-saved {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

body.theme-light .recom-table {
  background: #ffffff;
}

body.theme-light .recom-thead {
  background: #f8fafc;
}

body.theme-light .recom-th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
  border-bottom: 1px solid #cbd5e1;
}

body.theme-light .recom-td {
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .recom-tr:hover {
  background: #f8fafc;
}

body.theme-light .recom-name {
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .recom-empty-text {
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .recom-guide-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .recom-guide-hdr {
  color: #0284c7;
  font-weight: 900;
}

body.theme-light .guide-num {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .guide-txt {
  color: #0f172a;
  font-weight: 600;
}

/* Tab 3: AI Builder & Chat Light Theme */
body.theme-light .ai-strat-subnav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .ai-subnav-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .ai-subnav-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.theme-light .ai-subnav-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

body.theme-light .ai-chips-wrap {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .ai-chips-label {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .ai-chip-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .ai-chip-item:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

body.theme-light .ai-chat-history {
  background: #f8fafc;
}

body.theme-light .ai-msg-row.user .ai-msg-bubble {
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0f172a;
}

body.theme-light .ai-msg-row.ai .ai-msg-bubble {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .ai-msg-text {
  color: #0f172a;
  font-weight: 600;
}

body.theme-light .ai-confirm-card {
  background: #ffffff;
  border: 1px solid #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .ai-confirm-hdr {
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .ai-confirm-title {
  color: #0284c7;
  font-weight: 900;
}

body.theme-light .ai-confirm-param {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.theme-light .ai-param-label {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .ai-param-val {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .ai-formula-code-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

body.theme-light .ai-formula-code-hdr {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
}

body.theme-light .ai-formula-code-title {
  color: #0284c7;
  font-weight: 800;
}

body.theme-light .ai-formula-pre {
  background: #f8fafc;
  color: #065f46;
  font-weight: 700;
}

body.theme-light .ai-paste-scanner-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

body.theme-light .ai-paste-title {
  color: #0284c7;
  font-weight: 900;
}

body.theme-light .ai-btn-quickpaste {
  border-color: #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .ai-paste-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
}

body.theme-light .ai-scan-wrap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

body.theme-light .ai-scan-hdr {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .ai-scan-title {
  color: #059669;
  font-weight: 900;
}

body.theme-light .ai-scan-stats {
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .ai-save-schedule-box,
body.theme-light .ai-save-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

body.theme-light .ai-save-label {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .ai-form-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .ai-input-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

body.theme-light .ai-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
}

body.theme-light .ai-saved-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .ai-saved-name {
  color: #0f172a;
  font-weight: 900;
}

body.theme-light .ai-saved-desc {
  color: #0f172a;
  font-weight: 600;
}

body.theme-light .ai-saved-meta {
  color: #0f172a;
  font-weight: 700;
  border-top: 1px solid #e2e8f0;
}

body.theme-light .ai-tg-container {
  color: #0f172a;
}

body.theme-light .ai-tg-title {
  color: #0f172a;
  font-weight: 900;
}

body.theme-light .ai-tg-desc {
  color: #0f172a;
  font-weight: 600;
}

body.theme-light .ai-tg-label {
  color: #0f172a;
  font-weight: 800;
}

body.theme-light .ai-tg-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}

body.theme-light .ai-tg-help {
  color: #475569;
}


/* ══════════════════════════════════════════════════════════════════════
 * AUDIT HASIL REKOMENDASI KEMARIN (TRACK RECORD & EVALUASI REAL-TIME)
 * ══════════════════════════════════════════════════════════════════════ */
.recom-audit-card {
  margin-top: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.recom-audit-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.recom-audit-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.recom-audit-title {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.recom-audit-time {
  color: #64748b;
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
}

.recom-audit-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0 14px 0;
}

.recom-kpi-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recom-kpi-item .kpi-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.recom-kpi-item .kpi-val {
  font-size: 18px;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
}

.recom-kpi-item .kpi-desc {
  font-size: 10px;
  color: #64748b;
}

.recom-audit-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  font-family: var(--font-mono, monospace);
}

.recom-audit-badge.super-cuan,
.recom-audit-badge.cuan {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.recom-audit-badge.cutloss {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.recom-audit-badge.neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.recom-table.audit-table th {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recom-table.audit-table tr:hover {
  background: rgba(56, 189, 248, 0.06);
}

/* Light Mode Overrides */
body.theme-light .recom-audit-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.theme-light .recom-audit-hdr {
  border-bottom-color: #e2e8f0;
}

body.theme-light .recom-audit-title {
  color: #0f172a;
}

body.theme-light .recom-audit-time {
  color: #475569;
}

body.theme-light .recom-kpi-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.theme-light .recom-kpi-item .kpi-lbl {
  color: #475569;
}

body.theme-light .recom-table.audit-table th {
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-color: #cbd5e1;
}

body.theme-light .recom-table.audit-table tr:hover {
  background: #f8fafc;
}
