/* ============================================
   Live Oil Prices — Design System
   Dark financial dashboard theme
   ============================================ */

:root {
  --bg-primary: #06080F;
  --bg-secondary: #0B1120;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-surface: #0f172a;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

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

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);

  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --gold: #f59e0b;
  --gold-bg: rgba(245, 158, 11, 0.1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);

  --nav-height: 64px;
  --ticker-height: 40px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--ticker-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1003;
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(6, 8, 15, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo-icon {
  color: var(--accent);
  font-size: 22px;
}

.logo-text {
  color: var(--text-heading);
  letter-spacing: 0.05em;
}

.logo-accent {
  color: var(--accent);
}

.nav-links {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1004;
  pointer-events: auto;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Ticker Bar
   ============================================ */

.ticker-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: var(--ticker-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
  padding: 0 24px;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
}

a.ticker-item:hover .ticker-symbol {
  color: var(--accent);
}

.ticker-symbol {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.ticker-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.ticker-change {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-change.positive {
  color: var(--green);
  background: var(--green-bg);
}

.ticker-change.negative {
  color: var(--red);
  background: var(--red-bg);
}

.ticker-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--ticker-height) + 48px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 18px;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-heading);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 40%, #c084fc 70%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  align-self: center;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ============================================
   Price Cards
   ============================================ */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.price-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.price-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.price-card-symbol {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.price-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 2px;
}

.price-card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.price-card-badge.positive {
  color: var(--green);
  background: var(--green-bg);
}

.price-card-badge.negative {
  color: var(--red);
  background: var(--red-bg);
}

.price-card-price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.price-card-change {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.price-card-change.positive {
  color: var(--green);
}

.price-card-change.negative {
  color: var(--red);
}

.price-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.price-meta-item {
  display: flex;
  flex-direction: column;
}

.price-meta-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.price-meta-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================
   Chart Section
   ============================================ */

.chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.chart-symbols {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.chart-symbol-btn {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.chart-symbol-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.chart-symbol-btn.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.chart-timeframes {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.chart-tf-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  transition: all 0.2s;
  font-family: var(--font-mono);
}

.chart-tf-btn:hover {
  color: var(--text-primary);
}

.chart-tf-btn.active {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.08);
}

.chart-container {
  height: 480px;
  width: 100%;
}

.chart-info {
  display: flex;
  gap: 24px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.chart-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.chart-info-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================
   AI Analysis Section
   ============================================ */

.analysis-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.sentiment-card,
.technical-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sentiment-card h3,
.technical-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.sentiment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sentiment-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sentiment-badge.bullish {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.sentiment-badge.bearish {
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.sentiment-badge.neutral {
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.sentiment-gauge {
  margin-bottom: 20px;
}

.gauge-bar {
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--green) 100%);
  border-radius: 100px;
  margin-bottom: 8px;
}

.gauge-fill {
  position: absolute;
  inset: 0;
  border-radius: 100px;
}

.gauge-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--text-heading);
  border: 3px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.sentiment-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tech-signal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.tech-signal-row:last-child {
  border-bottom: none;
}

.tech-signal-name {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.tech-signal-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tech-signal-value.buy {
  color: var(--green);
}

.tech-signal-value.sell {
  color: var(--red);
}

.tech-signal-value.neutral {
  color: var(--gold);
}

/* Key Insights */

.key-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.insight-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.insight-item:hover {
  border-color: var(--border-hover);
}

.insight-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 14px;
}

.insight-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Predictions */

.predictions-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-heading);
}

.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}

.prediction-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.prediction-symbol {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}

.prediction-timeframe {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
}

.prediction-prices {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.prediction-current,
.prediction-target {
  display: flex;
  flex-direction: column;
}

.prediction-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.prediction-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}

.prediction-current .prediction-value {
  color: var(--text-secondary);
}

.prediction-target .prediction-value.bullish {
  color: var(--green);
}

.prediction-target .prediction-value.bearish {
  color: var(--red);
}

.prediction-arrow {
  color: var(--text-muted);
  font-size: 20px;
}

.prediction-confidence {
  margin-bottom: 16px;
}

.confidence-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  margin-bottom: 6px;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent);
  transition: width 1s ease;
}

.confidence-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.confidence-label span:first-child {
  color: var(--text-muted);
}

.confidence-label span:last-child {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}

.prediction-analysis {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Market Data Table
   ============================================ */

.market-table-wrapper {
  margin-top: 56px;
}

.subsection-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.market-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.market-table-scroll::-webkit-scrollbar {
  height: 6px;
}

.market-table-scroll::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.market-table-scroll::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 14px;
  min-width: 600px;
}

.market-table thead {
  background: rgba(255, 255, 255, 0.02);
  position: sticky;
  top: 0;
}

.market-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.market-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.market-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}

.market-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.market-table tbody tr:last-child td {
  border-bottom: none;
}

.table-commodity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-commodity-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.table-commodity-name {
  font-weight: 600;
  color: var(--text-heading);
}

.table-commodity-symbol {
  font-size: 12px;
  color: var(--text-muted);
}

.table-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-heading);
}

.table-change {
  font-family: var(--font-mono);
  font-weight: 600;
}

.table-change.positive { color: var(--green); }
.table-change.negative { color: var(--red); }

.table-pct {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
}

.table-pct.positive {
  color: var(--green);
  background: var(--green-bg);
}

.table-pct.negative {
  color: var(--red);
  background: var(--red-bg);
}

.table-secondary {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 13px;
}

/* ============================================
   Chart Stats
   ============================================ */

.chart-stats {
  display: flex;
  gap: 24px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  flex-wrap: wrap;
}

.chart-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.chart-stat-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.chart-stat-val.positive { color: var(--green); }
.chart-stat-val.negative { color: var(--red); }

/* ============================================
   News Section
   ============================================ */

.news-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.news-filter-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.news-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.news-filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.news-featured {
  margin-bottom: 24px;
}

.news-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.news-featured-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), var(--shadow);
}

.news-featured-content {
  min-width: 0;
}

.news-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin-bottom: 16px;
}

.news-featured-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.news-featured-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 12px;
}

.news-featured-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-featured-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.news-featured-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-featured-aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.news-featured-category {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.news-category {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.news-time {
  font-size: 12px;
  color: var(--text-muted);
}

.news-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.news-source {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.news-readtime {
  font-size: 12px;
  color: var(--text-muted);
}

.news-read-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.news-card:hover .news-read-link {
  text-decoration: underline;
}

.news-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card-link .news-card {
  cursor: pointer;
}

/* (Pricing section removed) */

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links-group h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links-group a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 20px;
  opacity: 0.7;
}

/* ============================================
   Loading States
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.price-card-skeleton {
  height: 200px;
}

/* ============================================
   Responsive — Tablet
   ============================================ */

@media (max-width: 1024px) {
  .analysis-overview {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-stat {
    padding: 0 24px;
  }
}

/* ============================================
   Responsive — Mobile
   ============================================ */

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --ticker-height: 36px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
  }

  /* Mobile Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    transform: none;
    background: #06080F;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 8px;
    z-index: 9999;
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 16px 18px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
  }

  .nav-link:hover,
  .nav-link:active {
    background: var(--bg-card-hover);
    color: #ffffff;
    border-color: var(--border-hover);
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--ticker-height) + 40px);
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 52px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 48px;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding: 0;
  }

  .hero-stat-divider {
    display: none;
  }

  /* Price Grid */
  .price-grid {
    grid-template-columns: 1fr;
  }

  /* Chart */
  .chart-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .chart-symbols {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .chart-symbols::-webkit-scrollbar {
    display: none;
  }

  .chart-timeframes {
    align-self: flex-start;
  }

  .chart-container {
    height: 320px;
  }

  .chart-info {
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chart-info::-webkit-scrollbar {
    display: none;
  }

  /* Analysis */
  .analysis-overview {
    grid-template-columns: 1fr;
  }

  .key-insights {
    grid-template-columns: 1fr;
  }

  .predictions-grid {
    grid-template-columns: 1fr;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-featured-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .news-featured-aside {
    flex-direction: row;
    align-items: center;
  }

  .news-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .news-filters::-webkit-scrollbar { display: none; }

  .news-filter-btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 18px;
  }

  .chart-symbol-btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .chart-tf-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .price-card {
    min-height: 44px;
  }

  .market-table tr {
    min-height: 48px;
  }

  /* Table */
  .hide-mobile {
    display: none;
  }

  .market-table th,
  .market-table td {
    padding: 12px 14px;
  }

  /* Chart Stats */
  .chart-stats {
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chart-stats::-webkit-scrollbar { display: none; }

  .chart-stat-item { flex-shrink: 0; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ============================================
   Small phone
   ============================================ */

@media (max-width: 380px) {
  .hero-title {
    font-size: 28px;
  }

  .price-card-price {
    font-size: 26px;
  }

  .price-amount {
    font-size: 36px;
  }

  .ticker-track {
    gap: 20px;
  }
}

/* ============================================
   Clickable Price Card Active State
   ============================================ */

.price-card:active {
  transform: translateY(0);
  background: var(--bg-card-hover);
}

.market-table tbody tr:active {
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================
   News Expanded State
   ============================================ */

.news-expand-hint {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.news-card.expanded .news-expand-hint {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.news-card.expanded .news-summary {
  -webkit-line-clamp: unset;
  display: block;
}

.news-card.expanded {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.news-featured-card.expanded .news-featured-summary {
  -webkit-line-clamp: unset;
  display: block;
}

.news-featured-card.expanded {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), var(--shadow);
}

/* ============================================
   Detail / Commodity Page
   ============================================ */

.detail-page {
  padding-top: calc(var(--nav-height) + 32px);
  padding-bottom: 64px;
  min-height: 100vh;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s;
}

.breadcrumb-link:hover {
  opacity: 0.8;
}

.breadcrumb-sep {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-secondary);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-symbol-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.detail-name {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.detail-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.detail-header-right {
  text-align: right;
}

.detail-price {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.detail-change {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}

.detail-change.positive { color: var(--green); }
.detail-change.negative { color: var(--red); }

.detail-stats {
  display: flex;
  gap: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.detail-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.detail-stat-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-chart-container {
  height: 520px;
}

.chart-controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}

/* Prediction card on detail page */

.detail-prediction {
  margin: 32px 0;
}

.detail-prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.detail-prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.detail-prediction-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
}

.detail-prediction-tf {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-prediction-body {
  padding: 24px;
}

.detail-prediction-prices {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.detail-prediction-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-prediction-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
}

.detail-prediction-val.bullish { color: var(--green); }
.detail-prediction-val.bearish { color: var(--red); }

.detail-prediction-arrow {
  font-size: 24px;
  color: var(--text-muted);
  padding-top: 16px;
}

.detail-prediction-conf {
  margin-left: auto;
}

.detail-prediction-text {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Related news */

.detail-news-section {
  margin-bottom: 48px;
}

.detail-news-section .subsection-title {
  margin-bottom: 20px;
}

/* Other commodities */

.detail-related {
  margin-bottom: 32px;
}

.detail-related .subsection-title {
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.related-card-top {
  margin-bottom: 12px;
}

.related-symbol {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.related-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 2px;
}

.related-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
}

.related-change {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.related-change.positive {
  color: var(--green);
  background: var(--green-bg);
}

.related-change.negative {
  color: var(--red);
  background: var(--red-bg);
}

/* Detail page mobile */

@media (max-width: 768px) {
  .detail-page {
    padding-top: calc(var(--nav-height) + 20px);
  }

  .detail-header {
    flex-direction: column;
  }

  .detail-header-right {
    text-align: left;
  }

  .detail-stats {
    gap: 20px;
    padding: 16px 18px;
  }

  .detail-chart-container {
    height: 360px;
  }

  .detail-prediction-prices {
    gap: 16px;
  }

  .detail-prediction-val {
    font-size: 20px;
  }

  .detail-prediction-conf {
    margin-left: 0;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Hide TradingView / Lightweight Charts branding
   ============================================ */

.chart-container a[href*="tradingview"],
.chart-container div[class*="attribution"],
.tv-lightweight-charts a,
.chart-container a[target="_blank"] {
  display: none !important;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in-up 0.6s ease forwards;
}

.price-card {
  opacity: 0;
  animation: fade-in-up 0.5s ease forwards;
}

.price-card:nth-child(1) { animation-delay: 0.05s; }
.price-card:nth-child(2) { animation-delay: 0.1s; }
.price-card:nth-child(3) { animation-delay: 0.15s; }
.price-card:nth-child(4) { animation-delay: 0.2s; }
.price-card:nth-child(5) { animation-delay: 0.25s; }
.price-card:nth-child(6) { animation-delay: 0.3s; }
