/* ==========================================================================
   XAUUSD INFO - Professional AI Trading Terminal Stylesheet
   Theme: Institutional Dark Terminal / Cyberpunk Glassmorphic Trading View
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1523;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(24, 32, 51, 0.85);
  --bg-card-border: rgba(45, 62, 80, 0.45);
  --bg-input: #151c2e;

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-gold-light: #fbbf24;

  --color-bullish: #10b981;
  --color-bullish-glow: rgba(16, 185, 129, 0.4);
  --color-bullish-dark: rgba(16, 185, 129, 0.15);

  --color-bearish: #ef4444;
  --color-bearish-glow: rgba(239, 68, 68, 0.4);
  --color-bearish-dark: rgba(239, 68, 68, 0.15);

  --color-neutral: #64748b;
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.02) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Container Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  background: rgba(15, 21, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-gold-glow);
  font-weight: 800;
  font-size: 20px;
  color: #000;
}

.brand-title h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, #fbbf24, #f59e0b, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-title .subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-bullish);
  box-shadow: 0 0 8px var(--color-bullish);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.price-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.price-hero .price-pair {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-hero .price-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s ease;
}

.price-hero .price-change {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.price-change.positive {
  color: var(--color-bullish);
  background: var(--color-bullish-dark);
}

.price-change.negative {
  color: var(--color-bearish);
  background: var(--color-bearish-dark);
}

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

.timeframe-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-terminal {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-terminal:hover {
  background: #334155;
  border-color: #475569;
}

.btn-terminal.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Global Session Status Bar */
.session-bar {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.session-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-tag {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
}

.session-item.active .session-tag {
  background: var(--color-bullish);
  box-shadow: 0 0 6px var(--color-bullish);
}

.session-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.market-timer {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 600;
}

/* Main Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 16px;
  padding: 16px 20px;
  flex: 1;
}

@media (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: 320px 1fr;
  }
  .column-right {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .column-right {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .app-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .header-center {
    width: 100%;
    justify-content: space-between;
  }
}

/* Card Component */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title svg {
  color: var(--accent-gold);
}

/* AI Signal Hero Card */
.signal-hero-card {
  border: 1px solid rgba(245, 158, 11, 0.3);
  position: relative;
}

.signal-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #10b981, #06b6d4);
}

.signal-main-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.signal-type-banner {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.signal-type-banner.buy {
  color: var(--color-bullish);
  text-shadow: 0 0 20px var(--color-bullish-glow);
}

.signal-type-banner.sell {
  color: var(--color-bearish);
  text-shadow: 0 0 20px var(--color-bearish-glow);
}

.signal-type-banner.neutral {
  color: var(--color-neutral);
}

.signal-meta-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Precision Entry, SL, TP Boxes */
.trade-levels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.level-box {
  background: rgba(15, 21, 35, 0.7);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border-left: 3px solid #64748b;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.level-box.entry {
  border-left-color: var(--color-cyan);
}

.level-box.sl {
  border-left-color: var(--color-bearish);
  background: rgba(239, 68, 68, 0.08);
}

.level-box.tp {
  border-left-color: var(--color-bullish);
  background: rgba(16, 185, 129, 0.08);
}

.level-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.level-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.level-pips {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Confluence Score Gauge */
.confluence-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.confluence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.confluence-percent {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.confluence-bar-bg {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.confluence-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Multi-Method Checklist */
.methods-checklist {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.method-name {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.method-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.method-tag.bullish {
  background: var(--color-bullish-dark);
  color: var(--color-bullish);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.method-tag.bearish {
  background: var(--color-bearish-dark);
  color: var(--color-bearish);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.method-tag.neutral {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

/* Center Column: Chart & Control */
.column-center {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-card {
  flex: 1;
  min-height: 480px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.chart-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-tab-btn.active, .chart-tab-btn:hover {
  color: var(--accent-gold-light);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.chart-ohlc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
}

.chart-ohlc span b {
  color: #fff;
  font-weight: 600;
}

.chart-container-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 480px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#tradingview-chart {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}

/* Right Column: Global Order Flow & World Sentiment */
.column-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Global Buyer vs Seller Power Gauge */
.global-sentiment-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.sentiment-ratio-bar {
  display: flex;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.buyer-side {
  background: linear-gradient(90deg, #059669, #10b981);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
  transition: width 0.4s ease;
  white-space: nowrap;
}

.seller-side {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  transition: width 0.4s ease;
  white-space: nowrap;
}

.sentiment-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* World Live Order Flow Tape */
.orderflow-tape-container {
  max-height: 250px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.orderflow-tape-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(18, 24, 38, 0.95), transparent);
  pointer-events: none;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.25);
  animation: slide-in-order 0.25s ease-out;
  border-left: 3px solid transparent;
}

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

.order-item.buy {
  border-left-color: var(--color-bullish);
  background: rgba(16, 185, 129, 0.05);
}

.order-item.sell {
  border-left-color: var(--color-bearish);
  background: rgba(239, 68, 68, 0.05);
}

.order-desk {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.order-price {
  font-weight: 700;
  color: #fff;
}

.order-lot {
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.order-item.buy .order-lot {
  color: var(--color-bullish);
  background: var(--color-bullish-dark);
}

.order-item.sell .order-lot {
  color: var(--color-bearish);
  background: var(--color-bearish-dark);
}

/* Order Book DOM Depth */
.dom-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.dom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  height: 22px;
}

.dom-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0.25;
  transition: width 0.3s ease;
  pointer-events: none;
}

.dom-row.ask .dom-bar {
  background-color: var(--color-bearish);
}

.dom-row.bid .dom-bar {
  background-color: var(--color-bullish);
}

.dom-row.spread-separator {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  font-weight: 700;
  text-align: center;
  justify-content: center;
  font-size: 0.68rem;
  border: 1px dashed rgba(245, 158, 11, 0.3);
  margin: 3px 0;
}

/* Safe Risk & Lot Size Calculator Card */
.calc-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-field-group label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-field-group input, .input-field-group select {
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-field-group input:focus, .input-field-group select:focus {
  border-color: var(--accent-gold);
}

.calc-results-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-res-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.calc-res-item b {
  font-family: var(--font-mono);
  color: #fff;
}

.calc-res-item.highlight b {
  color: var(--accent-gold);
  font-size: 0.95rem;
}

/* Footer */
.app-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-card-border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent-gold);
}

/* Modal for Help / Instructions */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #111827;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.1rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.modal-body h4 {
  color: #fff;
  margin: 16px 0 6px 0;
  font-size: 0.95rem;
}

.modal-body ul, .modal-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.code-pill {
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: #38bdf8;
  font-size: 0.8rem;
}

/* ==========================================================================
   GAYA KHUSUS POLA CANDLE, TREN HARIAN, & ALASAN MASUK PASAR
   ========================================================================== */

/* Trend Pill */
.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trend-pill.bullish {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.trend-pill.bearish {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.trend-pill.sideways, .trend-pill.netral {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}

/* Pattern Tag */
.pattern-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.pattern-tag.bullish {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pattern-tag.bearish {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.pattern-tag.netral {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
}

/* Reasons List */
.reasons-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--accent-gold);
}

.reason-num {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reason-text {
  flex: 1;
}

.reason-text b, .reason-text strong {
  color: #fbbf24;
}

/* ==========================================================================
   GAYA KHUSUS BANNER NEWS FLASH & KALENDER BERITA EKONOMI EMAS
   ========================================================================== */

/* Top Flash News Alert Banner */
.top-alert-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  font-size: 0.78rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 60;
}

.top-alert-banner.active {
  display: flex;
}

.top-alert-banner.danger {
  background: linear-gradient(90deg, #7f1d1d, #b91c1c, #991b1b);
  color: #fff;
  border-bottom: 2px solid #ef4444;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  animation: pulse-danger-banner 2s infinite;
}

@keyframes pulse-danger-banner {
  0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.7); }
  100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
}

.top-alert-banner.warning {
  background: linear-gradient(90deg, #78350f, #b45309, #d97706);
  color: #fff;
  border-bottom: 2px solid #f59e0b;
}

.top-alert-banner.info {
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  color: #94a3b8;
  border-bottom: 1px solid #334155;
}

.news-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.news-countdown-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

/* Market Weekend Status Pill */
.market-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.market-status-pill.weekend {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.market-status-pill.open {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Economic News Calendar Table */
.news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 10px;
}

.news-table th {
  background: #1e293b;
  color: #94a3b8;
  font-weight: 700;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid #334155;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.news-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.news-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.news-impact-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.news-impact-tag.high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.news-impact-tag.medium_high, .news-impact-tag.medium {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.news-impact-tag.low {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

/* ==========================================================================
   GAYA KHUSUS LEVEL KUNCI NYATA (PIVOT & FIBO) & KONTRAIAN SENTIMEN
   ========================================================================== */

.key-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.level-tag {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.level-tag.resist {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.level-tag.pivot {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.level-tag.fibo {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.key-level-row b {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
}

.transparency-note {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
