.wallet-page {
  max-width: 1140px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 22px 34px;
}

.back-link {
  padding: 8px 14px;
  border: 2px solid var(--tile-border);
  border-radius: 999px;
  color: var(--navy);
  background: white;
  font-weight: 700;
  text-decoration: none;
}

.wallet-main {
  display: grid;
  gap: 20px;
}

.wallet-heading {
  padding: 28px;
  border: 2px solid var(--tile-border);
  border-radius: 18px;
  color: white;
  background:
    radial-gradient(circle at 88% 16%, rgba(246, 196, 83, 0.34), transparent 26%),
    linear-gradient(135deg, #0a1a5e, #1d3dbb 58%, #0f849b);
  box-shadow: var(--tile-shadow);
}

.wallet-tag,
.wallet-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.wallet-tag {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.wallet-heading h1 {
  margin: 12px 0 6px;
  font-family: "Sora", sans-serif;
  font-size: clamp(30px, 5vw, 48px);
}

.wallet-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.wallet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.wallet-card {
  min-height: 190px;
  padding: 22px;
  border: 2px solid var(--tile-border);
  border-radius: 16px;
  background: white;
  box-shadow: var(--tile-shadow);
}

.wallet-card-balance {
  background: linear-gradient(145deg, #ffffff, #eef2ff);
}

.wallet-card-history {
  grid-column: 1 / -1;
}

.wallet-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 20px;
}

.wallet-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-badge {
  border: 1px solid rgba(10, 26, 94, 0.2);
  color: var(--navy);
  background: #e8edff;
}

.wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 24px;
  color: var(--navy);
  font-family: "Sora", sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
}

.wallet-balance-unit {
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.wallet-status {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.wallet-status[data-tone="error"] {
  color: #a11212;
}

.wallet-coming-soon {
  min-height: 100px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  border: 2px dashed #c8ccda;
  border-radius: 12px;
  color: var(--muted);
  background: #f7f7fb;
  font-weight: 700;
}

@media (max-width: 820px) {
  .wallet-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wallet-card-history {
    grid-column: auto;
  }

  .wallet-card {
    min-height: 160px;
  }
}

@media (max-width: 520px) {
  .wallet-page {
    padding: 18px 14px 26px;
  }

  .wallet-heading {
    padding: 22px 18px;
  }
}
