/* Global base */
:root {
  --radius-card: 0.875rem; /* 14px */
  --radius-btn: 0.625rem;  /* 10px */
  --shadow-card: 0 6px 18px rgba(2,6,23,.35);
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(180deg,#10131B 0%, #0B0F18 100%);
  color: #E5E7EB;
}

/* Layout helpers */
.safe-area {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Cards */
.card {
  background:
    radial-gradient(120% 120% at -15% -20%, rgba(124,58,237,.12) 0%, rgba(124,58,237,0) 55%),
    radial-gradient(110% 110% at 120% -10%, rgba(34,211,238,.10) 0%, rgba(34,211,238,0) 50%),
    linear-gradient(180deg, #151A24 0%, #101722 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card-solid {
  background: linear-gradient(180deg, #131822 0%, #0F1520 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  color: #fff;
  border-radius: var(--radius-btn);
  padding: .75rem 1rem;
  border: 1px solid transparent;
  transition:
    transform .08s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease;
  will-change: transform;
}

.btn-sm {
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 700;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.tab:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid #22D3EE;
  outline-offset: 2px;
  border-radius: calc(var(--radius-btn) + 2px);
}

.btn-grad {
  background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 45%, #22D3EE 100%);
  box-shadow: 0 6px 18px rgba(124,58,237,.28);
  border-color: rgba(255,255,255,.14);
}

.btn-grad:hover {
  box-shadow: 0 10px 24px rgba(124,58,237,.34);
}

.btn-aurum {
  background: linear-gradient(180deg, #FFE680 0%, #FCD535 55%, #F5C100 100%);
  color: #101317;
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 6px 18px rgba(252,213,53,.24);
}

.btn-aurum:hover {
  box-shadow: 0 10px 24px rgba(252,213,53,.32);
}

.btn-ghost {
  background: #0F1520;
  color: #E5E7EB;
  border-color: rgba(255,255,255,.14);
}

.btn-ghost:hover {
  background: #121A28;
}

/* Tabs */
.tab {
  padding: .375rem .75rem;
  border-radius: .5rem;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.tab-active {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
}

/* Tooltip for charts */
.chart-tooltip {
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -110%);
  background: #0E1420;
  color: #F8FAFC;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 22px rgba(2,6,23,.45);
  padding: .5rem .625rem;
  font-size: .75rem;
  border-radius: .5rem;
  white-space: nowrap;
  z-index: 50;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: .25rem .5rem;
  border-radius: .5rem;
  font-size: .75rem;
}

/* Progress bars */
.progress {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #FCD535, #8B5CF6);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Utility: hide when needed */
.hidden {
  display: none !important;
}