:root {
  --bg-black: #000000;
  --bg-surface: #070a12;
  --bg-card: #0d1322;
  --bg-card-hover: #131c30;
  --bg-input: #101828;
  --border-dim: #1a253c;
  --border-active: #0284c7;
  --cyan-bright: #00b0ff;
  --cyan-glow: rgba(0, 176, 255, 0.35);
  --emerald-neon: #00c853;
  --emerald-glow: rgba(0, 200, 83, 0.3);
  --rose-neon: #ff3d00;
  --rose-glow: rgba(255, 61, 0, 0.3);
  --gold-star: #f59e0b;
  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --bottom-bar-height: 62px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea, select {
  user-select: text;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  overflow: hidden;
  position: fixed;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

#app-viewport {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-black);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

/* ========================================================= */
/* TOP APP BAR (Analyses: ∞ | Plan: FREE/PRO | Chats: 0/5)   */
/* ========================================================= */
.chartai-top-bar {
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
  padding-left: 14px;
  padding-right: 14px;
  background: #000000;
  border-bottom: 1px solid #141b2b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  font-size: 11px;
  font-weight: 700;
}

.top-bar-counters {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #e2e8f0;
}

.top-counter-item span:first-child {
  color: var(--text-dim);
  font-weight: 500;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-circle-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f1523;
  border: 1px solid #1c263c;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}

.top-circle-icon-btn:active {
  transform: scale(0.92);
  background: #19253d;
}

/* Main Content Screens */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px calc(var(--bottom-bar-height) + env(safe-area-inset-bottom) + 12px) 14px;
  -webkit-overflow-scrolling: touch;
}

.tab-screen {
  display: none;
  animation: fadeInFast 0.18s ease-out;
}

.tab-screen.active {
  display: block;
}

@keyframes fadeInFast {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================= */
/* TAB 1: ANALYZE (CHART SCREENSHOT UPLOAD)                  */
/* ========================================================= */
.pro-banner-card {
  background: linear-gradient(135deg, #1e1333 0%, #150f24 100%);
  border: 1px solid #7c3aed;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pro-banner-text h5 {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  color: #fff;
}

.pro-banner-text p {
  font-size: 11px;
  color: #c084fc;
  margin: 2px 0 0 0;
}

.upload-zone-box {
  background: #070d18;
  border: 1.5px dashed #0284c7;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.upload-zone-box:active {
  background: #0b1526;
  border-color: var(--cyan-bright);
}

.upload-arrow-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0c1c30;
  border: 1px solid #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: var(--cyan-bright);
  font-size: 22px;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.upload-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: #fff;
}

.upload-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin: 4px 0 14px 0;
}

.upload-tags-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-pill {
  background: #0d1526;
  border: 1px solid #1a2740;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}

/* How It Works Card */
.how-it-works-card {
  background: #0a0f1d;
  border: 1px solid #162035;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.how-it-works-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.how-it-works-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.how-it-works-list li {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  display: flex;
  gap: 8px;
}

.how-it-works-list li span.step-num {
  font-weight: 800;
  color: var(--cyan-bright);
}

/* ========================================================= */
/* TAB 2: CHARTS (LIVE CANDLESTICK SCREEN)                   */
/* ========================================================= */
.analysis-mode-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.mode-toggle-btn {
  background: #0b111e;
  border: 1px solid #1c263c;
  color: var(--text-dim);
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.mode-toggle-btn.active {
  background: #091a30;
  border-color: #00b0ff;
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(0, 176, 255, 0.25);
}

#btn-mode-trading-signal.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

#btn-mode-trading-signal.active i {
  color: #f59e0b;
}

.style-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.style-pill {
  background: #0a0f1d;
  border: 1px solid #1c263c;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.style-pill.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
  font-weight: 700;
}

/* Chart Canvas Card */
.chart-container-card {
  background: #060911;
  border: 1px solid #162035;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.chart-pair-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.chart-tf-buttons {
  display: flex;
  gap: 4px;
  background: #0f1523;
  padding: 2px;
  border-radius: 6px;
}

.tf-item {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.tf-item.active {
  background: #1e293b;
  color: #fff;
}

.chart-price-line {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn-analyze-chart-big {
  width: 100%;
  background: #00b0ff;
  color: #000;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.1s;
}

.btn-analyze-chart-big:active {
  transform: scale(0.97);
}

.btn-analyze-chart-big.is-signal-mode {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45);
}

.btn-sub-note {
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 5px;
}

.btn-sm-notify {
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-sm-notify.is-active {
  background: #f59e0b;
  color: #000000;
}

.btn-sm-copy {
  background: #151f32;
  color: #38bdf8;
  border: 1px solid #233554;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-sm-copy:active {
  transform: scale(0.93);
  background: #0284c7;
  color: #fff;
}

.status-badge-wrap {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
}

.status-tp1, .status-tp2, .status-tp3 {
  color: #00c853 !important;
  font-weight: 800;
}

.status-sl {
  color: #ff3d00 !important;
  font-weight: 800;
}

.status-profit {
  color: #38bdf8 !important;
  font-weight: 700;
}

.status-floating {
  color: #f59e0b !important;
  font-weight: 700;
}

/* ========================================================= */
/* TAB 3: SIGNALS (SCALPING LIST & SMC DETAIL MODAL)         */
/* ========================================================= */
.signal-lock-timer-card {
  background: #090e1a;
  border: 1px solid #1a2740;
  border-radius: 10px;
  padding: 8px 12px;
}

.lock-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.timer-countdown-badge {
  background: #0f1c30;
  border: 1px solid #1e3a5f;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.signals-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.scalp-card {
  background: #0d1322;
  border: 1px solid #1a253c;
  border-left: 4px solid var(--emerald-neon);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}

.scalp-card.is-sell {
  border-left-color: var(--rose-neon);
}

.scalp-card:active {
  transform: scale(0.98);
}

.scalp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scalp-asset-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scalp-meta-sub {
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-top: 2px;
}

.scalp-asset-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #141c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.badge-ai-chip {
  background: #1a253d;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-signal-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.pill-buy {
  background: var(--emerald-neon);
  color: #000;
}

.pill-sell {
  background: var(--rose-neon);
  color: #fff;
}

.scalp-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.scalp-level-box {
  background: #070b14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
}

.scalp-level-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
}

.scalp-level-val {
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}

.scalp-card-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #141c2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

#detail-modal-overlay {
  z-index: 100050 !important;
}

#history-modal-overlay {
  z-index: 100000 !important;
}

.detail-modal-overlay {
  z-index: 100050 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  pointer-events: none;
  opacity: 0;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
}

.detail-modal-overlay.open {
  display: flex !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

.detail-modal-sheet {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #000000;
  overflow-y: auto;
  padding: max(10px, env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)) 14px;
  transform: translateY(30px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

.detail-modal-overlay.open .detail-modal-sheet {
  transform: translateY(0);
}

.modal-top-screen-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #6e7681;
  padding: 2px 0 8px 0;
  letter-spacing: 0.3px;
}

.detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-asset-box-icon {
  width: 32px;
  height: 32px;
  background: #141a24;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}


/* ========================================================= */
/* UPGRADED DETAIL MODAL CLOSE CROSS BUTTON (MOBILE OPTIMIZED)*/
/* ========================================================= */

.detail-close-btn:hover {
  background: rgba(239, 68, 68, 0.35) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}
.detail-close-btn:active {
  transform: scale(0.92) !important;
  background: rgba(239, 68, 68, 0.5) !important;
}
.radar-timer-pill {
  font-size: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 8px;
  border-radius: 8px;
  color: #e2e8f0;
}

.detail-close-btn-old-hover {
  color: #ffffff;
}

.setup-heading-cyan {
  font-size: 13px;
  font-weight: 800;
  color: #00b0ff;
  margin: 10px 0 6px 0;
  letter-spacing: 0.3px;
}

/* Entry Zone Card */
.clean-entry-card {
  background: linear-gradient(135deg, rgba(0, 176, 255, 0.14) 0%, rgba(8, 20, 38, 0.85) 100%) !important;
  border: 1px solid rgba(0, 176, 255, 0.45) !important;
  box-shadow: 0 0 18px rgba(0, 176, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.clean-card-lbl {
  font-size: 9.5px;
  color: #8b949e;
  font-weight: 600;
  margin-bottom: 2px;
}

.clean-entry-val {
  font-size: 19px;
  font-weight: 800;
  color: #00e5ff !important;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.clean-entry-btn {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  background: #00c853;
  color: #000000;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.4);
}

.clean-entry-btn.entry-btn-sell {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
}

.clean-entry-btn.entry-btn-buy {
  background: #00c853 !important;
  color: #000000 !important;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.4) !important;
}


/* Targets 2x2 Grid */
.clean-targets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.clean-target-box {
  background: #0d121c;
  border: 1px solid #1a2538;
  border-radius: 9px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.clean-target-box.target-sl {
  background: linear-gradient(180deg, rgba(255, 59, 87, 0.12) 0%, rgba(35, 12, 18, 0.7) 100%) !important;
  border: 1px solid rgba(255, 59, 87, 0.45) !important;
  box-shadow: inset 0 0 10px rgba(255, 59, 87, 0.1);
}
.clean-target-box.target-sl .clean-card-lbl {
  color: #ff6b81 !important;
  font-weight: 800;
}
.clean-target-box.target-sl .clean-target-val {
  color: #ff334b !important;
  font-size: 14.5px;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 51, 75, 0.35);
}

.clean-target-box.target-tp1,
.clean-target-box.target-tp2,
.clean-target-box.target-tp3 {
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.12) 0%, rgba(10, 35, 20, 0.7) 100%) !important;
  border: 1px solid rgba(0, 200, 83, 0.45) !important;
  box-shadow: inset 0 0 10px rgba(0, 200, 83, 0.1);
}
.clean-target-box.target-tp1 .clean-card-lbl,
.clean-target-box.target-tp2 .clean-card-lbl,
.clean-target-box.target-tp3 .clean-card-lbl {
  color: #4ade80 !important;
  font-weight: 800;
}
.clean-target-box.target-tp1 .clean-target-val,
.clean-target-box.target-tp2 .clean-target-val,
.clean-target-box.target-tp3 .clean-target-val {
  color: #00e676 !important;
  font-size: 14.5px;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.35);
}

.clean-target-val {
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}

/* Support / Resistance */
.clean-section-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #8b949e;
  margin: 10px 0 5px 0;
}

.clean-sr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.clean-sr-box {
  background: #0c1017;
  border: 1px solid #1a2333;
  border-radius: 8px;
  padding: 6px 11px;
}

.clean-sr-lbl {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.clean-sr-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

/* Analysis Pillar Cards */
.clean-pillar-card {
  background: #0c1017;
  border: 1px solid #1a2333;
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 7px;
}

.clean-pillar-card.pillar-blue { border-left: 3px solid #00b0ff; }
.clean-pillar-card.pillar-green { border-left: 3px solid #00c853; }
.clean-pillar-card.pillar-yellow { border-left: 3px solid #eab308; }
.clean-pillar-card.pillar-purple { border-left: 3px solid #a855f7; }

.clean-pillar-title {
  font-size: 11px;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clean-pillar-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-pillar-bullets li {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  line-height: 1.45;
  color: #b1bac4;
  margin-bottom: 4px;
  position: relative;
  padding-left: 13px;
}

.clean-pillar-bullets li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #8b949e;
  font-size: 11px;
}

.clean-pillar-bullets li:last-child {
  margin-bottom: 0;
}

/* Advice Box */
.clean-advice-box {
  background: rgba(0, 176, 255, 0.05);
  border: 1px solid rgba(0, 176, 255, 0.22);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
}

.clean-advice-title {
  font-size: 11px;
  font-weight: 700;
  color: #00b0ff;
  margin-bottom: 4px;
}

.clean-advice-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  line-height: 1.45;
  color: #c9d1d9;
}

/* Quick Share Bar */
.clean-share-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.btn-clean-share {
  background: #111722;
  border: 1px solid #1d2738;
  color: #fff;
  border-radius: 6px;
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-clean-share:hover {
  background: #192334;
}

.clean-disclaimer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 9px;
  color: #484f58;
  text-align: center;
  margin-top: 12px;
  line-height: 1.35;
}

/* ========================================================= */
/* TAB 4: AI CHAT (TRADING ASSISTANT)                        */
/* ========================================================= */
.chat-hero-section {
  text-align: center;
  padding: 16px 8px;
}

.chat-avatar-glow {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: #000;
  font-size: 26px;
  box-shadow: 0 0 25px var(--cyan-glow);
}

.chat-hero-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}

.chat-hero-sub {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 320px;
  margin: 0 auto 16px auto;
  line-height: 1.4;
}

.chat-chips-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: left;
}

.chat-chips-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.chat-prompt-pill {
  background: #090e1a;
  border: 1px solid #162238;
  border-radius: 10px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.chat-prompt-pill:active {
  background: #0f1c30;
  border-color: #0284c7;
  color: #38bdf8;
}

.chat-prompt-pill i {
  color: #38bdf8;
  font-size: 13px;
}

.chat-messages-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-msg-bubble {
  max-width: 85%;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
}

.msg-user {
  background: #0284c7;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.msg-ai {
  background: #0c1424;
  border: 1px solid #1a2740;
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-input-sticky {
  position: absolute;
  bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #141b2b;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 90;
}

.chat-input-box {
  flex: 1;
  background: #0c1322;
  border: 1px solid #1c2942;
  border-radius: 20px;
  padding: 8px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.chat-input-box:focus {
  border-color: #0284c7;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00b0ff;
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

/* ========================================================= */
/* TAB 5: MORE & SETTINGS MENU                               */
/* ========================================================= */
.more-heading-row {
  margin-bottom: 14px;
}

.more-section-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.more-tools-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.more-tool-item {
  background: #0c1322;
  border: 1px solid #1a253c;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.tool-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-circle-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tool-name-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.tool-desc-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin: 2px 0 0 0;
}

/* Bottom Navigation Bar (Image 1 - 5 Icons) */
/* FIXED BOTTOM NAVBAR (Analyze, Charts, Signals, AI Chat, More) */
.bottom-navbar {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 500px !important;
  height: 64px !important;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom)) 0 !important;
  background: #000000 !important;
  border-top: 1px solid #141b2b !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  z-index: 99999 !important;
}

.nav-tab-item {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  user-select: none !important;
}

.nav-tab-item i {
  font-size: 18px !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.nav-tab-item span {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  display: block !important;
  letter-spacing: 0.3px !important;
}

.nav-tab-item:active {
  transform: scale(0.92) !important;
}

.nav-tab-item.active {
  color: #38bdf8 !important;
}

.nav-tab-item.active i {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6) !important;
}

.nav-tab-item.active span {
  color: #38bdf8 !important;
}

.nav-tab-item.active {
  color: #38bdf8;
}

.nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  background: var(--rose-neon);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
}

#mobile-toast {
  position: absolute;
  top: 50px;
  left: 16px;
  right: 16px;
  background: rgba(13, 19, 34, 0.96);
  border: 1px solid #0284c7;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 999;
  transform: translateY(-90px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

#mobile-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================= */
/* 🥇 GOLD SIGNALS & PROFESSIONAL SMC MOBILE UI                  */
/* ============================================================= */

.badge-gold-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.signals-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #090e1a;
  border: 1px solid #162238;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.stats-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-lbl {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.stats-val {
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}

.session-status-card {
  background: rgba(14, 21, 38, 0.7);
  border: 1px solid #1c2b48;
  border-radius: 8px;
  padding: 6px 10px;
}

.pulse-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00c853;
  box-shadow: 0 0 8px #00c853;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-quick-share {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-quick-share:active {
  transform: scale(0.9);
}

.btn-quick-share.btn-tg {
  background: rgba(0, 136, 204, 0.18);
  color: #38bdf8;
  border-color: rgba(0, 136, 204, 0.4);
}

.btn-quick-share.btn-wa {
  background: rgba(37, 211, 102, 0.18);
  color: #4ade80;
  border-color: rgba(37, 211, 102, 0.4);
}

.btn-quick-share.btn-cp {
  background: #182236;
  color: #e2e8f0;
  border-color: #273854;
}

.card-rationale-snippet {
  margin-top: 8px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.7);
  border-left: 2px solid #f59e0b;
  border-radius: 4px;
  font-size: 9.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.modal-share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.btn-telegram-share {
  background: #0088cc !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 11px;
  border-radius: 8px;
  padding: 9px 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.35);
  cursor: pointer;
}

.btn-whatsapp-share {
  background: #25d366 !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 11px;
  border-radius: 8px;
  padding: 9px 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  cursor: pointer;
}

.btn-copy-share {
  background: #1e293b !important;
  color: #38bdf8 !important;
  border: 1px solid #334155 !important;
  font-weight: 700;
  font-size: 11px;
  border-radius: 8px;
  padding: 9px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ========================================================= */
/* 🚀 3-SECOND ANIMATED APP INTRO SPLASH SCREEN              */
/* ========================================================= */
.intro-splash-screen {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -9999 !important;
}

@keyframes splashAutoDismiss {
  0% { opacity: 1; visibility: visible; }
  90% { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
}

.intro-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 320px;
}

.intro-logo-glow-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.intro-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 176, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 176, 255, 0.2);
  animation: introPulseRing 2.4s infinite ease-out;
}

.intro-radar-ring.ring-1 {
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.intro-radar-ring.ring-2 {
  width: 110px;
  height: 110px;
  border-color: rgba(245, 158, 11, 0.3);
  animation-delay: 0.8s;
}

@keyframes introPulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.intro-logo-box {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, #1e293b, #090e1a);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25), inset 0 0 15px rgba(0, 176, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: introLogoFloat 2.5s ease-in-out infinite;
}

@keyframes introLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.intro-logo-icon {
  font-size: 36px;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.6));
}

.intro-app-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 0 0 4px 0;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.intro-app-version {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 600;
}

.intro-app-tagline {
  font-size: 11.5px;
  color: #64748b;
  margin: 0 0 24px 0;
  line-height: 1.4;
}

.intro-progress-wrap {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.intro-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00b0ff, #ffd700);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 176, 255, 0.6);
  transition: width 0.1s linear;
}

.intro-status-text {
  font-size: 10.5px;
  color: #38bdf8;
  letter-spacing: 0.3px;
  min-height: 16px;
}

/* ========================================================= */
/* 📱 MAIN SIGNALS SCREEN (Exact media_1792573430251 Match)  */
/* ========================================================= */
.ref-top-header {
  text-align: center;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  padding: 12px 14px 6px 14px;
  background: #000000;
  letter-spacing: 0.2px;
}

.ref-signals-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 4px 14px 4px;
}
.ref-headline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ref-headline-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: -0.2px;
}

.ref-headline-sub {
  font-size: 12px;
  color: #8e8e99;
  line-height: 1.3;
}

.ref-headline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #11141c;
  border: 1px solid rgba(0, 176, 255, 0.25);
  color: #00b0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.ref-circle-btn:active {
  transform: rotate(180deg) scale(0.92);
}

.ref-upgrade-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.ref-upgrade-btn:active {
  transform: scale(0.96);
}

.ref-owner-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}

/* Reference Signal Card */
.ref-card {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 13px 13px 10px 13px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.ref-card:active {
  transform: scale(0.985);
  background: #14141a;
}

.ref-card.is-sell {
  border: 1.5px solid rgba(255, 59, 87, 0.45) !important;
  border-left: 5px solid #ff3b57 !important;
  box-shadow: 0 4px 18px rgba(255, 59, 87, 0.08);
}

.ref-card.is-buy {
  border: 1.5px solid rgba(0, 200, 83, 0.45) !important;
  border-left: 5px solid #00c853 !important;
  box-shadow: 0 4px 18px rgba(0, 200, 83, 0.08);
}

.ref-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-asset-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #191922;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ref-pair-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.ref-ai-badge {
  background: #1a1e28;
  border: 1px solid rgba(112, 160, 255, 0.25);
  color: #70a0ff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.ref-dir-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.ref-dir-badge.dir-buy {
  background: #00c853;
  color: #ffffff;
}

.ref-dir-badge.dir-sell {
  background: #ff3b57;
  color: #ffffff;
}

.ref-pro-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #888899;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
}

.ref-notify-btn {
  background: #181822;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ref-notify-btn:active {
  transform: scale(0.92);
  background: #252535;
}

.ref-notify-btn.armed {
  background: rgba(0, 176, 255, 0.15);
  border-color: rgba(0, 176, 255, 0.5);
  color: #00b0ff;
}

.ref-meta-sub {
  font-size: 11px;
  color: #7f7f8f;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 4-Box Levels Row */
.ref-levels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.ref-level-box {
  background: #141724;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 4px 7px 4px;
  text-align: center;
  transition: all 0.2s ease;
}

.ref-level-lbl {
  font-size: 9px;
  font-weight: 800;
  color: #686878;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.ref-level-dots {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.ref-level-val {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ENTRY BOX: Cyan Electric Glow */
.ref-level-box.box-entry {
  background: linear-gradient(180deg, rgba(0, 176, 255, 0.14) 0%, rgba(10, 25, 45, 0.8) 100%) !important;
  border: 1px solid rgba(0, 176, 255, 0.45) !important;
  box-shadow: inset 0 0 10px rgba(0, 176, 255, 0.12);
}
.ref-level-box.box-entry .ref-level-lbl {
  color: #38bdf8 !important;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.ref-level-box.box-entry .ref-level-val {
  color: #00e5ff !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* SL BOX: Neon Coral Red Glow */
.ref-level-box.box-sl {
  background: linear-gradient(180deg, rgba(255, 59, 87, 0.14) 0%, rgba(45, 12, 18, 0.8) 100%) !important;
  border: 1px solid rgba(255, 59, 87, 0.45) !important;
  box-shadow: inset 0 0 10px rgba(255, 59, 87, 0.12);
}
.ref-level-box.box-sl .ref-level-lbl {
  color: #ff6b81 !important;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.ref-level-box.box-sl .ref-level-val {
  color: #ff334b !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 0 8px rgba(255, 51, 75, 0.4);
}

/* TP1 BOX: Neon Emerald Green Glow */
.ref-level-box.box-tp1 {
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.14) 0%, rgba(10, 35, 20, 0.8) 100%) !important;
  border: 1px solid rgba(0, 200, 83, 0.45) !important;
  box-shadow: inset 0 0 10px rgba(0, 200, 83, 0.12);
}
.ref-level-box.box-tp1 .ref-level-lbl {
  color: #4ade80 !important;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.ref-level-box.box-tp1 .ref-level-val {
  color: #00e676 !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

/* TP2 BOX: Vivid Mint Green Glow */
.ref-level-box.box-tp2 {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(10, 35, 25, 0.8) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.12);
}
.ref-level-box.box-tp2 .ref-level-lbl {
  color: #34d399 !important;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.ref-level-box.box-tp2 .ref-level-val {
  color: #10b981 !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Unlock / Ad Banner Footer */
.ref-unlock-banner {
  margin-top: 9px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  letter-spacing: 0.1px;
}

.ref-unlock-banner.banner-ad {
  color: #ff3b57;
}

.ref-unlock-banner.banner-green {
  color: #00c853;
}

.ref-unlock-banner.banner-red {
  color: #ff3b57;
}

/* ========================================================= */
/* ⚡ ANIMATED SCANNER OVERLAY (media_1792573764927 Match)   */
/* ========================================================= */
.chart-scan-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(4, 7, 14, 0.95) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: scanOverlayFadeIn 0.3s ease;
  pointer-events: auto !important;
}

@keyframes scanOverlayFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.scan-hologram-box {
  width: 100%;
  max-width: 310px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(0, 176, 255, 0.08), rgba(0, 0, 0, 0.7));
  border: 1px solid rgba(0, 176, 255, 0.25);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    linear-gradient(rgba(0, 176, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 176, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.scan-corner-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #00b0ff;
  border-style: solid;
}

.scan-corner-bracket.top-left {
  top: 8px; left: 8px;
  border-width: 2px 0 0 2px;
}
.scan-corner-bracket.top-right {
  top: 8px; right: 8px;
  border-width: 2px 2px 0 0;
}
.scan-corner-bracket.bottom-left {
  bottom: 8px; left: 8px;
  border-width: 0 0 2px 2px;
}
.scan-corner-bracket.bottom-right {
  bottom: 8px; right: 8px;
  border-width: 0 2px 2px 0;
}

.scan-ai-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 176, 255, 0.15);
  border: 1px solid rgba(0, 176, 255, 0.4);
  color: #00b0ff;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scan-dot {
  width: 6px;
  height: 6px;
  background: #00b0ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00b0ff;
  animation: scanDotBlink 1s infinite;
}

@keyframes scanDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.scan-laser-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00b0ff, #ffffff, #00b0ff, transparent);
  box-shadow: 0 0 12px rgba(0, 176, 255, 0.8), 0 0 20px rgba(0, 176, 255, 0.4);
  animation: scanLaserMove 2s infinite ease-in-out;
}

@keyframes scanLaserMove {
  0% { top: 0%; opacity: 0.4; }
  50% { top: 100%; opacity: 1; }
  100% { top: 0%; opacity: 0.4; }
}

.scan-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scan-candlesticks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.candle {
  width: 6px;
  height: 24px;
  background: #00b0ff;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 176, 255, 0.6);
}

.candle::before, .candle::after {
  content: '';
  position: absolute;
  width: 1.5px;
  left: 2.25px;
  background: #00b0ff;
}

.candle::before { top: -6px; height: 6px; }
.candle::after { bottom: -6px; height: 6px; }

.candle-1 {
  animation: candleGlow 1.5s infinite alternate ease-in-out;
}

.candle-2 {
  height: 20px;
  animation: candleGlow 1.5s infinite alternate ease-in-out 0.4s;
}

@keyframes candleGlow {
  0% { transform: scaleY(0.9); opacity: 0.7; }
  100% { transform: scaleY(1.15); opacity: 1; box-shadow: 0 0 15px #00b0ff; }
}

.scan-preview-lbl {
  font-size: 11px;
  color: #70a0ff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.scan-main-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.scan-subtitle-rotating {
  font-size: 13px;
  color: #00b0ff;
  margin-bottom: 20px;
  min-height: 20px;
  text-align: center;
}

.scan-progress-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.scan-progress-fill {
  height: 100%;
  width: 0%;
  background: #00b0ff;
  box-shadow: 0 0 10px #00b0ff;
  border-radius: 10px;
  transition: width 0.15s ease;
}

.scan-bottom-pill {
  background: rgba(0, 176, 255, 0.1);
  border: 1px solid rgba(0, 176, 255, 0.3);
  color: #94d8ff;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================= */
/* 📜 ANALYSIS HISTORY SETUP CARDS (Green BUY / Red SELL)   */
/* ========================================================= */
.history-setup-card {
  border-radius: 13px;
  margin-bottom: 12px;
  padding: 13px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.history-setup-card:active {
  transform: scale(0.985);
}

.history-setup-card.history-card-buy {
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.08) 0%, #0a141e 100%) !important;
  border: 1.5px solid #00c853 !important;
  border-left: 5px solid #00c853 !important;
  box-shadow: 0 4px 18px rgba(0, 200, 83, 0.15);
}

.history-setup-card.history-card-sell {
  background: linear-gradient(135deg, rgba(255, 59, 87, 0.08) 0%, #160d14 100%) !important;
  border: 1.5px solid #ff3b57 !important;
  border-left: 5px solid #ff3b57 !important;
  box-shadow: 0 4px 18px rgba(255, 59, 87, 0.15);
}

.history-levels-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 8px 0;
}

.history-level-chip {
  flex: 1;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
}

.history-level-chip.chip-entry {
  background: linear-gradient(180deg, rgba(0, 176, 255, 0.14) 0%, rgba(10, 25, 45, 0.7) 100%);
  border: 1px solid rgba(0, 176, 255, 0.45);
}
.history-level-chip.chip-entry .chip-lbl {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.history-level-chip.chip-entry .chip-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #00e5ff;
}

.history-level-chip.chip-sl {
  background: linear-gradient(180deg, rgba(255, 59, 87, 0.14) 0%, rgba(45, 12, 18, 0.7) 100%);
  border: 1px solid rgba(255, 59, 87, 0.45);
}
.history-level-chip.chip-sl .chip-lbl {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  color: #ff6b81;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.history-level-chip.chip-sl .chip-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #ff334b;
}

.history-level-chip.chip-tp {
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.14) 0%, rgba(10, 35, 20, 0.7) 100%);
  border: 1px solid rgba(0, 200, 83, 0.45);
}
.history-level-chip.chip-tp .chip-lbl {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.history-level-chip.chip-tp .chip-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #00e676;
}

.history-rationale-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 10px;
  color: #cbd5e1;
  margin-top: 6px;
}

/* ========================================================= */
/* ⚡ INSTITUTIONAL CONFLUENCE MATRIX & CAPITAL GUARD        */
/* ========================================================= */
.clean-confluence-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(13, 19, 34, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 12px;
}

.confluence-title {
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.confluence-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.confluence-badge-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 3px;
  text-align: center;
}

.confluence-badge-box .tf-tag {
  display: block;
  font-size: 8px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.confluence-badge-box .tf-val {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

/* Pillar Cyan */
.clean-pillar-card.pillar-cyan {
  border-left: 4px solid #00b0ff;
  background: linear-gradient(135deg, rgba(0, 176, 255, 0.06) 0%, rgba(13, 19, 34, 0.8) 100%);
}

/* Capital Guard Card */
.capital-guard-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.guard-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.2px;
}

.calc-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 3px;
  display: block;
}

.calc-input {
  background: #090e17 !important;
  border: 1px solid #1e293b !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

.calc-chip {
  background: #111827;
  border: 1px solid #374151;
  color: #9ca3af;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
}

.calc-chip.active, .calc-chip:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.calc-output-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.calc-metric-box {
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 6px 3px;
  text-align: center;
}

.calc-metric-box .metric-lbl {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
}

.calc-metric-box .metric-val {
  font-size: 11.5px;
  font-weight: 800;
}

.calc-mini-copy-btn {
  background: none;
  border: none;
  color: #fbbf24;
  font-size: 9px;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}

/* Card Radar Bar */
.ref-radar-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  margin-bottom: 3px;
}

.radar-ote-pill {
  background: rgba(0, 176, 255, 0.12);
  border: 1px solid rgba(0, 176, 255, 0.35);
  color: #38bdf8;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.radar-rr-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.radar-conf-pill {
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.35);
  color: #4ade80;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

/* ========================================================= */
/* 🎯 LIVE TARGET & PIPS TRACKER BADGE ON SIGNAL CARDS       */
/* ========================================================= */
.ref-target-tracker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 36px;
  position: relative;
}

.tracker-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  height: 28px;
  box-sizing: border-box;
  transition: none !important; /* Fixed in place - zero jumping or shaking */
}

.tracker-live-badge.status-tp1,
.tracker-live-badge.status-tp2,
.tracker-live-badge.status-tp3 {
  background: rgba(0, 200, 83, 0.14) !important;
  border: 1px solid rgba(0, 200, 83, 0.45) !important;
  color: #00e676 !important;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.15);
}

.tracker-live-badge.status-sl {
  background: rgba(255, 59, 87, 0.14) !important;
  border: 1px solid rgba(255, 59, 87, 0.45) !important;
  color: #ff334b !important;
  box-shadow: 0 0 10px rgba(255, 59, 87, 0.15);
}

.tracker-live-badge.status-profit {
  background: rgba(0, 176, 255, 0.12) !important;
  border: 1px solid rgba(0, 176, 255, 0.4) !important;
  color: #38bdf8 !important;
}

.tracker-live-badge.status-floating {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
}

.tracker-pips-pill {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
}

.tracker-tap-detail {
  color: #58a6ff;
  font-size: 10.5px;
  font-weight: 600;
}






/* ========================================================= */
/* TAB 3: LIVE GOLD MARKET TICKER STRIP                      */
/* ========================================================= */
.signals-live-ticker-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 27, 36, 0.96), rgba(15, 18, 25, 0.98));
  border: 1px solid rgba(255, 214, 0, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 14px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 14px rgba(255, 214, 0, 0.08);
}

.slt-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slt-gold-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd600;
  box-shadow: 0 0 10px #ffd600;
  animation: pulseGoldDot 1.8s infinite;
}

@keyframes pulseGoldDot {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px #ffd600; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #ffd600; }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px #ffd600; }
}

.slt-title {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.4px;
}

.slt-badge-live {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00e676;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.slt-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.slt-price {
  font-size: 16.5px;
  font-weight: 900;
  color: #ffd600;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.slt-price.price-up {
  color: #00e676 !important;
  text-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
}

.slt-price.price-down {
  color: #ff334b !important;
  text-shadow: 0 0 12px rgba(255, 51, 75, 0.6);
}

.slt-change {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.slt-change.change-up {
  color: #00e676;
  background: rgba(0, 230, 118, 0.12);
}

.slt-change.change-down {
  color: #ff334b;
  background: rgba(255, 51, 75, 0.12);
}

/* ========================================================= */
/* TAB 5: MORE VIP PROMO CARD                                */
/* ========================================================= */
.more-vip-promo-card {
  background: linear-gradient(135deg, rgba(30, 25, 15, 0.95), rgba(18, 20, 26, 0.95));
  border: 1.5px solid rgba(255, 214, 0, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 214, 0, 0.12);
  transition: transform 0.15s ease;
}

.more-vip-promo-card:active {
  transform: scale(0.985);
}

.vip-crown-badge {
  background: rgba(255, 214, 0, 0.15);
  border: 1px solid rgba(255, 214, 0, 0.4);
  color: #ffd600;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

/* ========================================================= */
/* UPGRADE PLAN SCREEN (media_1792644198236_96bdd165)        */
/* ========================================================= */
.modal-plan-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 10000;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.upgrade-plan-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  padding: 16px 18px 45px 18px;
  display: flex;
  flex-direction: column;
}

.upgrade-plan-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0 20px 0;
}

.upgrade-back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.upgrade-back-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.upgrade-header-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.upgrade-plans-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.plan-card {
  position: relative;
  background: #11141a;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-card.selected {
  border-color: #ffd600;
  background: #14171f;
  box-shadow: 0 0 22px rgba(255, 214, 0, 0.16);
}

.plan-card-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.plan-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #555c68;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  background: #0d0f14;
}

.plan-card.selected .plan-radio-circle {
  border-color: #ffd600;
}

.plan-card.selected .plan-radio-circle::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffd600;
}

.plan-info {
  flex: 1;
}

.plan-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 23px;
  font-weight: 900;
  color: #ffffff;
}

.plan-period {
  font-size: 13.5px;
  color: #8b949e;
  font-weight: 500;
}

.plan-feature-line {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 3px;
}

.plan-sub-line {
  font-size: 11.5px;
  color: #8b949e;
  margin-bottom: 8px;
}

.plan-discount-badge {
  display: inline-block;
  background: rgba(0, 200, 83, 0.16);
  border: 1px solid rgba(0, 200, 83, 0.35);
  color: #00e676;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Big Yellow Upgrade Button */
.btn-upgrade-cta {
  width: 100%;
  background: #ffd600;
  color: #000000;
  border: none;
  border-radius: 30px;
  padding: 16px 20px;
  font-size: 17.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(255, 214, 0, 0.38);
  transition: transform 0.15s ease, background 0.15s ease;
  margin-bottom: 8px;
}

.btn-upgrade-cta:active {
  transform: scale(0.98);
  background: #ffcc00;
}

.upgrade-sub-text {
  text-align: center;
  font-size: 11.5px;
  color: #8b949e;
  margin-bottom: 14px;
}

.btn-restore-purchase {
  background: transparent;
  border: none;
  color: #00b0ff;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  margin: 0 auto 24px auto;
  padding: 6px 14px;
}

.btn-restore-purchase:active {
  opacity: 0.7;
}

/* What's included card */
.whats-included-card {
  background: #11141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 26px;
}

.whats-included-title {
  font-size: 17.5px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 18px;
}

.included-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.included-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1.45;
}

.included-item i {
  color: #00e676;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Footer Support */
.upgrade-footer {
  margin-top: auto;
  text-align: center;
  padding: 16px 0 10px 0;
}

.upgrade-footer-text {
  font-size: 12px;
  color: #8b949e;
  margin-bottom: 4px;
}

.upgrade-support-email {
  color: #00b0ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}


/* -------------------------------------------------------------
   Active vs Closed Scalping Cards Enhancements
   ------------------------------------------------------------- */
.ref-card.is-closed {
  opacity: 0.62;
  filter: grayscale(0.25);
  border-left: 5px solid #6b7280 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.ref-active-banner {
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.35);
  color: #00e676;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 7px;
  margin-bottom: 9px;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ref-closed-banner {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ff6b81;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 9px;
  letter-spacing: 0.4px;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
  display: inline-block;
  animation: pulseLiveDot 1.2s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.7; }
}

.ref-level-box.box-disabled {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.ref-level-box.box-disabled .ref-level-lbl {
  color: #ef4444 !important;
}

.ref-level-box.box-disabled .ref-level-val {
  color: #9ca3af !important;
  text-decoration: line-through;
}

/* -------------------------------------------------------------
   Google Gemini AI Integration Styles
   ------------------------------------------------------------- */
.btn-gemini-scan {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
  white-space: nowrap;
}

.btn-gemini-scan:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.32));
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

.btn-gemini-scan:active {
  transform: scale(0.96);
}

.badge-gemini-powered {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
}

/* -------------------------------------------------------------
   Gemini AI Market Radar & Next Setup HUD
   ------------------------------------------------------------- */
.gemini-radar-card {
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.75));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(56, 189, 248, 0.08);
}
.gemini-radar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.radar-brand {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}
.radar-tag {
  font-size: 9px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}
.gemini-radar-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.radar-status-msg {
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.4;
  flex: 1;
  min-width: 180px;
}
.btn-scan-next-setup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-scan-next-setup:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}
.btn-scan-next-setup:active {
  transform: scale(0.96);
}
.ref-clock-time {
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
}
.chart-gemini-status {
  text-align: center;
  font-size: 10px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  padding: 6px 10px;
  border-radius: 8px;
  margin: 10px 0 6px 0;
}

/* ========================================================= */
/* DAILY SMC PERFORMANCE SUMMARY & DATE-WISE HISTORY        */
/* ========================================================= */
.daily-summary-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.95));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.metric-mini-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 4px;
}
.metric-mini-box .lbl {
  display: block;
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.metric-mini-box .val {
  display: block;
  font-size: 14px;
  font-weight: 800;
}
.btn-copy-daily-summary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-weight: 800;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}
.btn-copy-daily-summary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}
.btn-copy-daily-summary:active {
  transform: scale(0.98);
}
.history-date-header {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0 10px 0;
}


/* ========================================================= */
/* SET PRICE ALERT MODAL & MY ALERTS DRAWER (EXACT MATCH)    */
/* ========================================================= */
.set-alert-card {
  background: #111827;
  border: 1.5px solid #1f2937;
  border-radius: 18px;
  padding: 22px;
  width: 92%;
  max-width: 380px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.alert-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.btn-close-alert-dialog {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}
.btn-close-alert-dialog:hover {
  color: #ffffff;
}
.alert-pair-box {
  background: #1f2937;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.alert-box-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}
.alert-pair-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px 0;
  letter-spacing: 0.5px;
}
.alert-current-price {
  font-size: 12px;
  color: #94a3b8;
}
.btn-dir-select {
  background: #1f2937;
  border: 1.5px solid #374151;
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-dir-select.active-below {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}
.btn-dir-select.active-above {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #a7f3d0 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.alert-target-input {
  background: #0f172a !important;
  border: 1.5px solid #334155 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  height: 48px;
  border-radius: 10px;
}
.alert-target-input:focus {
  border-color: #00a3ff !important;
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.25) !important;
}
.alert-stars-list {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.5;
}
.star-item {
  display: flex;
  align-items: flex-start;
}
.btn-execute-set-alert {
  background: #00a3ff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  height: 48px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 163, 255, 0.4);
  transition: all 0.2s ease;
}
.btn-execute-set-alert:hover {
  background: #0284c7;
  transform: translateY(-1px);
}
.btn-execute-set-alert:active {
  transform: scale(0.98);
}
.alert-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.alert-item-card.triggered {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}


/* ========================================================= */
/* GEMINI MULTI-TIMEFRAME (1m-4h) CONFLUENCE MATRIX          */
/* ========================================================= */
.gemini-mtf-matrix-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.85));
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0 12px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.mtf-chips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.mtf-chip-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 5px 2px;
  text-align: center;
}
.tf-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}
.tf-dir {
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 1px;
}
.mtf-narrative-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #38bdf8;
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  font-size: 11px;
  line-height: 1.45;
  color: #e2e8f0;
}


/* ========================================================= */
/* 1. INSTITUTIONAL KILLZONES HUD                            */
/* ========================================================= */
.killzones-hud-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(24, 24, 27, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 10px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.killzones-sessions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.kz-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 3px;
  text-align: center;
  transition: all 0.2s ease;
}
.kz-item.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}
.kz-name {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
}
.kz-item.active .kz-name {
  color: #fbbf24;
}
.kz-time {
  display: block;
  font-size: 8.5px;
  color: #64748b;
  margin-top: 1px;
}
.kz-item.active .kz-time {
  color: #fde68a;
  font-weight: 700;
}

/* ========================================================= */
/* 2. HIGH-IMPACT NEWS GUARD                                 */
/* ========================================================= */
.news-guard-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(153, 27, 27, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 10px;
  padding: 9px 12px;
  margin: 6px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  animation: pulseNews 2s infinite ease-in-out;
}
@keyframes pulseNews {
  0%, 100% { border-color: rgba(239, 68, 68, 0.45); }
  50% { border-color: rgba(239, 68, 68, 0.9); box-shadow: 0 0 12px rgba(239, 68, 68, 0.25); }
}
.news-guard-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #fca5a5;
  font-weight: 600;
}
.news-warning-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ========================================================= */
/* 3. VISUAL PnL JOURNAL & EQUITY CURVE CHART                */
/* ========================================================= */
.equity-curve-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(24, 24, 27, 0.95));
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.equity-chart-box {
  position: relative;
  width: 100%;
  height: 180px;
  margin-top: 10px;
}
.equity-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ========================================================= */
/* 4. IN-APP PASSCODE & BIOMETRIC LOCK SCREEN                */
/* ========================================================= */
.passcode-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #030712;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
}
.passcode-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}
.passcode-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.passcode-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 24px;
}
.pin-dots-container {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #475569;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pin-dot.filled {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  transform: scale(1.15);
}
.pin-pad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 280px;
}
.pin-key-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin: 0 auto;
}
.pin-key-btn:active {
  background: rgba(245, 158, 11, 0.3);
  border-color: #f59e0b;
  transform: scale(0.92);
}
.pin-key-btn.action-btn {
  font-size: 18px;
  color: #94a3b8;
}

/* ========================================================= */
/* 5. MULTI-IMAGE CAROUSEL / UPLOAD THUMBNAILS (TAB 1)       */
/* ========================================================= */
.multichart-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.thumb-slot {
  position: relative;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-slot .thumb-del-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: #ef4444;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --- VIP Telegram & Share Dispatch Buttons --- */
.btn-share-dispatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  min-height: 42px;
}
.btn-share-dispatch:active {
  transform: scale(0.97);
}
.btn-share-wa {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
}
.btn-share-wa:hover, .btn-share-wa:active {
  background: #25d366;
  color: #000;
}
.btn-share-tg {
  background: rgba(0, 136, 204, 0.18);
  color: #00a3ff;
  border: 1px solid rgba(0, 136, 204, 0.4);
}
.btn-share-tg:hover, .btn-share-tg:active {
  background: #0088cc;
  color: #fff;
}
.btn-share-copy {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-share-copy:hover, .btn-share-copy:active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-share-snap {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}
.btn-share-snap:hover, .btn-share-snap:active {
  background: #f59e0b !important;
  color: #000 !important;
}

#trade-snapshot-modal { z-index: 110000 !important; }

/* TP3 BOX: Institutional Gold Crown Glow */
.ref-level-box.box-tp3 {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, rgba(20, 23, 36, 0.8) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.12);
}
.ref-level-box.box-tp3 .ref-level-lbl {
  color: #fbbf24 !important;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.ref-level-box.box-tp3 .ref-level-val {
  color: #f59e0b !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.ref-level-box:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


.detail-close-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 100070 !important;
  touch-action: manipulation !important;
}

.detail-close-btn:hover {
  background: rgba(239, 68, 68, 0.45) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
}

.detail-close-btn:active {
  transform: scale(0.92) !important;
  background: rgba(239, 68, 68, 0.7) !important;
}
