
/* B"H */
:root {
  --bg: #100b06;
  --panel: rgba(255, 238, 191, .08);
  --line: rgba(255, 214, 125, .22);
  --gold: #ffd873;
  --gold2: #ffad3b;
  --red: #8d2f1e;
  --text: #fff6de;
  --muted: #d8c399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,216,115,.22), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(141,47,30,.3), transparent 34%),
    linear-gradient(135deg, #100b06, #28150b 52%, #090604);
}

.wallet-shell {
  width: min(1280px, calc(100vw - 28px));
  margin: auto;
  padding: 28px 0 80px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255,216,115,.14), transparent 42%),
    rgba(255,238,191,.07);
  box-shadow: 0 34px 120px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: clamp(24px, 6vw, 58px);
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 950;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 92px);
  line-height: .9;
  letter-spacing: -.07em;
}

h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.lead,
.muted,
p {
  color: var(--muted);
  line-height: 1.55;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button,
a {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0d03;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

input {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: rgba(0,0,0,.28);
  color: var(--text);
  font: inherit;
  font-weight: 850;
}

pre {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,.32);
  color: var(--text);
  white-space: pre-wrap;
  overflow: auto;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 22px;
}

.balance-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  background: rgba(0,0,0,.25);
}

.balance-card span,
.balance-card em {
  display: block;
  color: var(--muted);
}

.balance-card strong {
  display: block;
  font-size: 40px;
  margin: 8px 0;
  color: var(--gold);
}

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

.coin-card,
.ratio-card,
.tx-row {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: rgba(0,0,0,.22);
}

.coin {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #3b2105;
  background:
    radial-gradient(circle at 32% 28%, #fff7b0, var(--gold) 44%, var(--gold2));
  box-shadow: 0 0 30px rgba(255,216,115,.35);
  animation: coinSpin 4s ease-in-out infinite;
}

@keyframes coinSpin {
  0%,100% { transform: rotateY(0deg) translateY(0); }
  50% { transform: rotateY(180deg) translateY(-4px); }
}

.meter {
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  overflow: hidden;
}

.meter div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  box-shadow: 0 0 22px rgba(255,216,115,.5);
}

.meter-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tx-row {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.tx-row span {
  color: var(--gold);
  font-weight: 950;
}

.tx-row em,
.ratio-card em,
.ratio-card span,
.coin-card span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }
}
