/* =====================
   NEXORA V9 ULTRA POLISH
   SaaS FINANCIAL UI
===================== */

:root {
  --bg: #070A12;
  --panel: rgba(20, 26, 45, 0.65);
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);

  --green: #00ff88;
  --red: #ff4d4d;
  --blue: #4da3ff;
  --yellow: #ffd700;

  --text: #e8eaf0;
  --muted: #8b92a5;

  --radius: 16px;
  --shadow: 0 10px 35px rgba(0,0,0,0.55);

  --glow-green: 0 0 18px rgba(0, 255, 136, 0.25);
}

/* =====================
   GLOBAL
===================== */

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top left, rgba(77,163,255,.12), transparent 40%),
              radial-gradient(circle at bottom right, rgba(0,255,136,.08), transparent 40%),
              var(--bg);
  color: var(--text);
}

/* =====================
   HERO
===================== */

.hero {
  text-align: center;
  padding: 70px 20px 30px;
}

.hero h1 {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--green);
  text-shadow: 0 0 25px rgba(0,255,136,.25);
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin-top: 10px;
}

/* =====================
   BUTTONS (SaaS STYLE)
===================== */

button {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s ease;
  backdrop-filter: blur(10px);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
  border-color: rgba(0,255,136,0.3);
}

/* =====================
   CARDS GRID
===================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  margin-top: 10px;
}

/* =====================
   CARD PREMIUM
===================== */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
}

.card h2 {
  margin: 0;
  font-size: 20px;
  color: var(--green);
}

/* asset label */
.asset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.asset-symbol {
  font-size: 12px;
  color: var(--muted);
}

/* =====================
   PRICES
===================== */

.card p {
  margin: 4px 0;
  font-size: 14px;
}

/* =====================
   CHART
===================== */

.chart-container {
  padding: 20px;
}

#tradingview_chart {
  height: 620px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* =====================
   OVERVIEW PANEL
===================== */

.overview {
  padding: 20px;
}

.overview h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* =====================
   AI ENGINE CARD
===================== */

.nexora-ai-card {
  margin: 20px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

#nexora-score {
  font-size: 18px;
  font-weight: bold;
  color: var(--yellow);
}

/* =====================
   SIGNAL
===================== */

#nexora-signal {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  text-align: center;
}

/* =====================
   SCORE BAR
===================== */

.score-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  margin-top: 10px;
  overflow: hidden;
}

#score-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  transition: width 0.5s ease;
}

/* =====================
   HEATMAP
===================== */

.heat-card {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: 0.2s;
}

.heat-card:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-green);
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 40px;
  }

  #tradingview_chart {
    height: 420px;
  }
}