:root {
  --wallet-burg: #7a2e4a;
  --wallet-burg-pale: #f4ecef;
  --wallet-success: #10b981;
}

.wallet-body {
  background: #f4f6fa;
  min-height: 100vh;
  font-family: 'Cairo', sans-serif;
}

.wallet-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.wallet-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.wallet-back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #eaeaef;
  background: #fff;
  color: var(--wallet-burg);
  cursor: pointer;
}

.wallet-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
}

.wallet-card {
  background: linear-gradient(135deg, #7a2e4a, #a84d72);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(122, 46, 74, 0.25);
  margin-bottom: 16px;
}

.wallet-card__label {
  font-size: 13px;
  opacity: 0.9;
}

.wallet-card__total {
  font-size: 34px;
  font-weight: 900;
  margin: 8px 0 16px;
}

.wallet-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wallet-breakdown__item {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px;
}

.wallet-breakdown__item span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.wallet-breakdown__item strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.wallet-expiry {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.9;
}

.wallet-panel {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.wallet-panel h2 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--wallet-burg);
}

.wallet-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ececf2;
  border-radius: 12px;
  font-size: 20px;
  letter-spacing: 3px;
  text-align: center;
  font-family: monospace;
}

.wallet-input:focus {
  outline: none;
  border-color: var(--wallet-burg);
}

.wallet-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #8a8aa8;
  text-align: center;
}

.wallet-lockout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.wallet-hidden-note {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #7a5b00;
  font-size: 14px;
  line-height: 1.6;
}

.wallet-hidden-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.wallet-lockout.hidden {
  display: none;
}

.wallet-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--wallet-burg);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.wallet-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wallet-msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
}

.wallet-msg.show { display: block; }
.wallet-msg.ok { background: #ecfdf5; color: #047857; }
.wallet-msg.err { background: #fef2f2; color: #b91c1c; }
