/* ==========================================================================
   108IDO SMC SCALPER PRO — PUBLIC VIRAL CHART PAGE STYLING
   Theme: High-Tech Dark Mode / Glassmorphism / Institutional Fintech
   ========================================================================== */

:root {
  --bg-main: #050811;
  --bg-card: rgba(13, 19, 36, 0.75);
  --bg-card-hover: rgba(20, 29, 53, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7928ca;
  --accent-green: #00e676;
  --accent-red: #ff5252;
  --accent-gold: #ffd700;
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

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

html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -150px;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Main App Layout Container (No-Scroll Viewport) */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* Top App Header Navigation Bar */
.chart-navbar {
  height: 54px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050811;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Pair & Price Quick View */
.price-pill-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 4px 12px;
}

.pair-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  font-family: var(--font-sans);
}

.pair-select option {
  background: #090d16;
  color: #ffffff;
}

.live-price-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.live-pct-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}
.pct-up { background: rgba(0, 230, 118, 0.15); color: var(--accent-green); }
.pct-down { background: rgba(255, 82, 82, 0.15); color: var(--accent-red); }

/* Timeframe Selector */
.tf-group {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.tf-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tf-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.tf-btn.active {
  background: var(--accent-cyan);
  color: #050811;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* SMC Indicator Toggles Toolbar */
.smc-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.smc-tool-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.smc-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.smc-tool-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}

/* Compact Smart Promotional Banner (Non-Intrusive & Highly Converting) */
.smart-promo-banner {
  height: 48px;
  background: linear-gradient(90deg, rgba(13, 27, 62, 0.92) 0%, rgba(20, 18, 48, 0.92) 50%, rgba(9, 13, 26, 0.92) 100%);
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.banner-tag {
  background: linear-gradient(135deg, #ff007a 0%, #7928ca 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(255, 0, 122, 0.4);
  animation: pulse-glow 2s infinite;
}

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

.banner-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.banner-highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

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

.btn-cta-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #050811;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.btn-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Chart Canvas Viewport Area */
.chart-viewport-area {
  flex: 1;
  width: 100%;
  height: calc(100vh - 54px - 48px);
  position: relative;
  overflow: hidden;
}

#tv-chart-container {
  width: 100%;
  height: 100%;
}

/* Floating 21-Row Live SMC Status Table (Positioned at TOP-LEFT) */
.smc-hud-floating {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  width: 290px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  z-index: 50;
  background: rgba(9, 13, 24, 0.95);
  border: 1px solid #1e293b;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.smc-hud-floating::-webkit-scrollbar {
  width: 3px;
}
.smc-hud-floating::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 3px;
}

.smc-hud-card {
  padding: 6px 8px;
}

.smc-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d47a1;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.hud-tag-symbol {
  color: #ffd700;
  font-weight: 700;
}

.hud-tag-tf {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.7rem;
  color: #ffffff;
}

.hud-tag-usdt {
  color: #90caf9;
  font-size: 0.75rem;
}

.smc-hud-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.smc-hud-table td {
  padding: 2.5px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hud-lbl {
  color: #94a3b8;
  width: 42%;
}

.hud-val {
  font-weight: 600;
  text-align: left;
  width: 38%;
}

.hud-sub {
  color: #64748b;
  font-size: 0.7rem;
  text-align: right;
  width: 20%;
}

.hud-section-row td {
  background: rgba(13, 71, 161, 0.25);
  color: #ffd700;
  font-weight: 700;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding: 3px 0;
  border-top: 1px solid rgba(13, 71, 161, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .chart-navbar {
    height: auto;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .smart-promo-banner {
    height: auto;
    padding: 6px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .chart-viewport-area {
    height: calc(100vh - 120px);
  }

  .smc-toolbar {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }

  .smc-hud-floating {
    width: 240px;
    top: 5px;
    right: 5px;
    max-height: 250px;
  }
}

/* ==========================================================================
   EMBED MODE STYLING (For Member Portal Integration)
   ========================================================================== */
html.embed-mode .smart-promo-banner {
  display: none !important;
}

html.embed-mode .chart-navbar {
  height: 40px !important;
  padding: 2px 8px !important;
  background: rgba(5, 8, 17, 0.98) !important;
}

html.embed-mode .nav-brand {
  display: none !important;
}

html.embed-mode .chart-viewport-area {
  height: calc(100vh - 40px) !important;
}

html.embed-mode .smc-hud-floating {
  max-height: 300px;
  transform: scale(0.9);
  transform-origin: top left;
}
