* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: linear-gradient(160deg, #1b0f2e 0%, #3a1257 25%, #7d1e8a 55%, #3a2fb0 85%, #14082b 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; }
.screen { min-height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }

.topbar {
  height: 56px; display: flex; align-items: center; padding: 0 16px;
  background: rgba(0,0,0,0.25);
}
.topbar.plain { justify-content: flex-start; }
.topbar-title { flex: 1; text-align: center; font-weight: 700; font-size: 17px; }
.topbar-spacer { width: 28px; }
.back-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 16px;
}

.content { padding: 16px; flex: 1; }

.card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}

.profile-card { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #5b4a86; }
.avatar.sm { width: 40px; height: 40px; }
.profile-name { font-weight: 700; font-size: 17px; }

.stat-row { display: flex; align-items: center; }
.stat { flex: 1; text-align: center; }
.stat-value { font-size: 22px; font-weight: 800; }
.stat-label { font-size: 12px; opacity: 0.75; margin-top: 4px; }
.stat-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.2); }

.list-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; color: #fff; font-size: 15px;
}
.chev { opacity: 0.6; }

.primary-btn {
  width: 100%; height: 52px; border-radius: 16px; border: none; margin-top: 8px;
  background: linear-gradient(90deg, #e91e8c, #7c2fd6);
  color: #fff; font-weight: 700; font-size: 16px;
}
.primary-btn:disabled { opacity: 0.5; }
.primary-btn:active { transform: translateY(1px); }

.field { margin-bottom: 14px; }
.field label, .content label { display: block; font-size: 13px; opacity: 0.8; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=number] {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; padding: 0 14px; font-size: 15px;
}
input::placeholder { color: rgba(255,255,255,0.45); }

.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
.search-row button {
  width: 46px; height: 46px; border-radius: 12px; border: none;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 18px;
}

.found-user {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: rgba(255,255,255,0.08); border-radius: 14px; padding: 10px 12px;
}
.found-user-name { font-weight: 700; }
.found-user-id { font-size: 12px; opacity: 0.7; }
.check { margin-left: auto; color: #4be07a; font-size: 18px; }

.error-text { color: #ff8a8a; font-size: 13px; min-height: 18px; margin: 4px 2px 8px; }
.empty-text { text-align: center; opacity: 0.6; margin-top: 40px; font-size: 14px; }

.center-content { align-items: center; text-align: center; padding-top: 40px; }
.check-circle {
  width: 76px; height: 76px; border-radius: 50%; border: 3px solid #4aa8ff;
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: #4aa8ff;
  margin-bottom: 16px;
}
.completed-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.details-card { width: 100%; text-align: left; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
.detail-row:last-child { border-bottom: none; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab {
  flex: 1; padding: 10px 0; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 12px;
}
.tab.active { background: linear-gradient(90deg, #e91e8c, #7c2fd6); border-color: transparent; }

.order-total-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; opacity: 0.9; }

.order-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border-radius: 14px; padding: 12px; margin-bottom: 10px;
}
.order-item .avatar { width: 42px; height: 42px; }
.order-item-name { font-weight: 700; font-size: 14px; }
.order-item-id { font-size: 12px; opacity: 0.7; }
.order-item-coin { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.order-item-status { margin-left: auto; text-align: right; font-size: 13px; color: #4aa8ff; }

/* ---- Registration wizard ---- */
.stepper { display: flex; align-items: center; margin: 4px 4px 18px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); font-size: 13px; font-weight: 700;
}
.step.active .step-dot { background: linear-gradient(90deg, #e91e8c, #7c2fd6); }
.step.done .step-dot { background: rgba(255,255,255,0.25); }
.step-label { font-size: 10px; opacity: 0.75; white-space: nowrap; }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.2); margin: 0 4px 16px; }
.step-line.done { background: #e91e8c; }

.wizard-title { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.wizard-sub { font-size: 13px; opacity: 0.75; margin: 0 0 16px; line-height: 1.4; }

select {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; padding: 0 14px; font-size: 15px;
}
select option { color: #222; }

.upload-row { display: flex; gap: 12px; }
.upload-box {
  flex: 1; height: 110px; border: 2px dashed rgba(255,255,255,0.35); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; opacity: 0.85; cursor: pointer; background-size: cover; background-position: center;
}
.upload-box.wide { flex-direction: row; height: 52px; font-size: 13px; }
.upload-box.has-image { border-style: solid; border-color: #4be07a; }
.upload-plus { font-size: 22px; line-height: 1; }

.confirm-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 12px; opacity: 0.85; }
.confirm-row input { margin-top: 2px; }

.deny-icon { font-size: 46px; margin-bottom: 14px; }
.muted-text { font-size: 14px; opacity: 0.75; line-height: 1.5; max-width: 320px; }
