:root {
  --bg: #070b12;
  --emerald: #34d399;
  --gold: #f3ba2f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: #e2e8f0;
  scroll-behavior: smooth;
}

.tabular { font-feature-settings: "tnum"; direction: ltr; unicode-bidi: plaintext; display: inline-block; }

/* Backgrounds */
body {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(52,211,153,0.10), transparent 60%),
    radial-gradient(900px 400px at 10% 10%, rgba(243,186,47,0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.hero-bg {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(52,211,153,0.12), transparent 70%);
}

.nav-glass {
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.8);
}

.result-box {
  background: linear-gradient(135deg, rgba(52,211,153,0.10), rgba(243,186,47,0.06));
  border: 1px solid rgba(52,211,153,0.25);
}

.grad-text {
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-btn {
  background: linear-gradient(135deg, var(--emerald), #10b981);
  color: #04120b;
  box-shadow: 0 10px 30px -12px rgba(52,211,153,0.7);
  transition: transform .15s, box-shadow .15s;
}
.gold-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(52,211,153,0.85); }
.gold-btn:active { transform: translateY(0); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Floating candlesticks */
.candles { position: absolute; inset: 0; overflow: hidden; opacity: 0.35; pointer-events: none; }
.candle {
  position: absolute; bottom: 0; width: 8px; border-radius: 3px;
  background: linear-gradient(to top, rgba(52,211,153,0.5), rgba(52,211,153,0.1));
  animation: float 4s ease-in-out infinite;
}
.candle:nth-child(even) { background: linear-gradient(to top, rgba(251,113,133,0.4), rgba(251,113,133,0.08)); }
@keyframes float {
  0%,100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-25px); opacity: 0.7; }
}

select option { background: #0f172a; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0a0f18; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }