body {
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: #e9ebf1;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(94,234,212,.10), transparent 55%),
    radial-gradient(900px 500px at 80% 20%, rgba(99,102,241,.10), transparent 55%),
    #0c0d12;
}

.walletWrap { max-width: 680px; padding-top: 32px; }

/* ── CONFIRMATION BANNER ── */
.confirm-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(124,255,178,.12);
  border-bottom: 1px solid rgba(124,255,178,.3);
  color: #7cffb2;
  font-size: 14px;
  font-weight: 700;
  animation: bannerSlide .3s ease;
}

@keyframes bannerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.confirm-close {
  background: none;
  border: none;
  color: rgba(124,255,178,.7);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

/* ── PANELS ── */
.panel {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  margin-bottom: 14px;
}

.panel-welcome {
  border-color: rgba(124,255,178,.18);
  background: rgba(124,255,178,.03);
}

.panel-status {
  background: transparent;
  border-color: rgba(255,255,255,.06);
  box-shadow: none;
}

.panel-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}

.welcome-heading {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
}

.welcome-sub {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
}

.divider {
  margin: 20px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ── CITIZEN HEADER ── */
.citizen-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.citizen-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(124,255,178,.3);
}

.citizen-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* ── FORM ── */
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .05em; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hint { font-size: 12px; color: #9aa0b3; min-height: 16px; }

input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #e9ebf1;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  flex: 1;
  transition: border-color .15s;
}

input:focus { border-color: rgba(124,255,178,.45); }

/* ── BUTTONS ── */
.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(124,255,178,.4);
  background: rgba(124,255,178,.1);
  color: #7cffb2;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}

.btn-primary:hover {
  background: rgba(124,255,178,.18);
  box-shadow: 0 0 24px rgba(124,255,178,.15);
}

.closeBtn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #e9ebf1;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: border-color .15s;
}

.closeBtn:hover { border-color: rgba(255,255,255,.28); }

/* ── REVEAL TOGGLE (masks recovery code from screenshots) ── */
.reveal-btn {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .15s, color .15s;
}
.reveal-btn:hover { border-color: rgba(124,255,178,.5); color: #7cffb2; }
.rec-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 520px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.tool-btn,
.tool-upload {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}

.tool-btn:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.05); }

.tool-icon  { font-size: 20px; }
.tool-label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.tool-hint  { font-size: 11px; color: rgba(255,255,255,.4); }

.tool-upload input[type="file"] {
  max-width: 100%;
  width: 100%;
  font-size: 11px;
}

/* ── STATUS ROW ── */
.status-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.status-label { font-size: 10px; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; }
.status-value { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }
.status-value.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }

/* ── AVATARS ── */
.avatarGrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}

.avatarChoice {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .08s ease, border-color .12s ease;
}

.avatarChoice:hover { border-color: rgba(255,255,255,.22); }
.avatarChoice:active { transform: translateY(1px); }
.avatarChoice.selected {
  border-color: rgba(124,255,178,.55);
  box-shadow: 0 0 0 2px rgba(124,255,178,.18) inset;
}

.avatarChoice img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.avatarChoice .cap { font-size: 11px; opacity: .8; text-align: center; }

@media (max-width: 520px) {
  .avatarGrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
/* ══════════════════════════════════════════════════════
   CITY EXCHANGE  —  append to wallet.css
   ══════════════════════════════════════════════════════ */

/* ── Panel ── */
.panel-exchange {
  border-color: rgba(255, 204, 74, .12);
  background:   rgba(255, 204, 74, .015);
}

.exchange-header   { margin-bottom: 18px; }
.exchange-title    { font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.exchange-sub      { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 3px; }

/* ── Sections ── */
.exchange-section {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 16px;
  margin-top:  16px;
}

.exchange-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,204,74,.65);
  margin-bottom: 10px;
}

.exchange-hint {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
}

.exchange-empty {
  font-size: 12px;
  color: rgba(255,255,255,.22);
  padding: 8px 0;
}

/* ── Stipend cards ── */
.claims-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.claim-card {
  border: 1px solid rgba(124,255,178,.14);
  background: rgba(124,255,178,.025);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.claim-card--gold {
  border-color: rgba(255,204,74,.18);
  background:   rgba(255,204,74,.025);
}

.claim-reward {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.claim-amount {
  font-size: 26px;
  font-weight: 900;
  color: #7cffb2;
  line-height: 1;
  letter-spacing: -.01em;
}

.claim-amount--gold { color: #ffcc4a; }

.claim-unit {
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

.claim-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.claim-status {
  font-size: 11px;
  color: rgba(255,255,255,.28);
  min-height: 14px;
  flex: 1;
}

.claim-btn {
  margin-top: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(124,255,178,.3);
  background: rgba(124,255,178,.07);
  color: #7cffb2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  width: 100%;
}

.claim-btn:hover:not(:disabled) {
  background: rgba(124,255,178,.14);
  box-shadow: 0 0 16px rgba(124,255,178,.1);
}

.claim-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.claim-btn--gold {
  border-color: rgba(255,204,74,.3);
  background:   rgba(255,204,74,.07);
  color: #ffcc4a;
}

.claim-btn--gold:hover:not(:disabled) {
  background: rgba(255,204,74,.14);
  box-shadow: 0 0 16px rgba(255,204,74,.1);
}

/* ── Sell list ── */
.sell-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(0,0,0,.15);
  margin-bottom: 8px;
}

.sell-row-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.sell-row-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}

.sell-row-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sell-row-rarity {
  font-size: 11px;
  margin-top: 2px;
}

.sell-row-rarity--mythic { color: #d96bff; }
.sell-row-rarity--rare   { color: #ffcc4a; }
.sell-row-rarity--common { color: rgba(255,255,255,.38); }

.sell-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sell-token-value {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.38);
  white-space: nowrap;
}

.sell-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255,138,138,.28);
  background: rgba(255,138,138,.05);
  color: #ff8a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.sell-btn:hover { background: rgba(255,138,138,.13); }

/* ── Sell confirmation overlay ── */
.sell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sell-confirm {
  background: #13141c;
  border: 1px solid rgba(255,138,138,.22);
  border-radius: 18px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.sell-confirm-title {
  font-size: 16px;
  font-weight: 900;
  color: #ff8a8a;
  margin-bottom: 10px;
  letter-spacing: .04em;
}

.sell-confirm-body {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.sell-confirm-yes {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,138,138,.38);
  background: rgba(255,138,138,.1);
  color: #ff8a8a;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background .15s;
}

.sell-confirm-yes:hover { background: rgba(255,138,138,.2); }

.sell-confirm-no {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s;
}

.sell-confirm-no:hover { border-color: rgba(255,255,255,.24); }

@media (max-width: 520px) {
  .claims-grid { grid-template-columns: 1fr; }
}
