/* Telegram Theme Variables & Fallbacks */
:root {
  --tg-theme-bg-color: #0f172a;
  --tg-theme-secondary-bg-color: #1e293b;
  --tg-theme-text-color: #f8fafc;
  --tg-theme-hint-color: #94a3b8;
  --tg-theme-link-color: #38bdf8;
  --tg-theme-button-color: #2563eb;
  --tg-theme-button-text-color: #ffffff;
}

body {
  background-color: var(--tg-theme-bg-color, #0f172a);
  color: var(--tg-theme-text-color, #f8fafc);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Glassmorphism & Cards */
.card-glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-elevated {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}

/* Numeric input spinner removal */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Verdict Badges */
.badge-profitable {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-borderline {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-unprofitable {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Glow effects */
.glow-success {
  box-shadow: 0 0 25px -5px rgba(34, 197, 94, 0.25);
}
.glow-warning {
  box-shadow: 0 0 25px -5px rgba(234, 179, 8, 0.25);
}
.glow-danger {
  box-shadow: 0 0 25px -5px rgba(239, 68, 68, 0.25);
}

/* Smooth tab transitions */
.tab-active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* Touch responsiveness */
button:active, .btn-touch:active {
  transform: scale(0.97);
  transition: transform 0.08s ease-in-out;
}
