:root {
  --bg: #020617;
}

* {
  font-family: 'Vazirmatn', system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: #f1f5f9;
  min-height: 100vh;
  /* Subtle grid texture for the trading-terminal atmosphere */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.06), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(244, 63, 94, 0.05), transparent 40%);
  background-attachment: fixed;
}

/* Monospace for numbers/data */
.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Fade-in for content */
main > * {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Select dropdown dark styling */
select option {
  background: #0f172a;
  color: #f1f5f9;
}

/* Smooth transitions on interactive elements */
button, a, select {
  transition: all 0.2s ease;
}

/* RTL-aware number rendering keeps prices LTR */
td .font-mono, .font-mono {
  direction: ltr;
  unicode-bidi: plaintext;
}