.screen-auth { padding-bottom: calc(40px + var(--safe-bottom)); }
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--s4);
  position: sticky;
  top: var(--safe-top);
  z-index: 20;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--divider);
}
.auth-title { font-size: 17px; font-weight: 600; }

.auth-body { padding: 24px var(--s4); }
.auth-hero {
  text-align: center;
  margin-bottom: 36px;
}
.auth-logo-ring {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,66,0.2) 0%, rgba(245,197,66,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.auth-logo-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), transparent 40%, var(--gold) 80%, transparent 100%);
  animation: logoRingSpin 4s linear infinite;
  z-index: -1;
  opacity: 0.4;
}
@keyframes logoRingSpin {
  to { transform: rotate(360deg); }
}
.auth-logo {
  width: 64px; height: 64px;
  color: var(--gold);
}
.auth-hero h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.auth-hero p {
  font-size: 14px;
  color: var(--text-2);
}

.auth-form {
  max-width: 100%;
}
.auth-form .form-picker { cursor: pointer; }
.code-input-row { position: relative; }
.code-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.code-box {
  height: 52px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SF Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  transition: all 160ms ease;
}
.code-box.filled { border-color: var(--gold); background: rgba(245,197,66,0.06); }
.code-box.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,197,66,0.12);
  animation: codeBoxPulse 1.2s ease-in-out infinite;
}
@keyframes codeBoxPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(245,197,66,0.12); }
  50%     { box-shadow: 0 0 0 8px rgba(245,197,66,0.04); }
}
.auth-submit { margin-top: 8px; }
.auth-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.auth-note a { color: var(--gold); }
.auth-login {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}
.auth-login a { color: var(--gold); font-weight: 600; margin-left: 2px; }

/* picker */
.picker-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  display: flex;
  align-items: flex-end;
}
.picker-mask.show {
  opacity: 1;
  pointer-events: auto;
}
.picker-panel {
  width: 100%;
  max-height: 70vh;
  background: #0c0c10;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding-bottom: var(--safe-bottom);
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
}
.picker-mask.show .picker-panel { transform: translateY(0); }
.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--s5);
  border-bottom: 0.5px solid var(--divider);
}
.picker-title { font-size: 16px; font-weight: 600; }
.picker-btn {
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
}
.picker-confirm { color: var(--gold); font-weight: 600; }
.picker-body {
  overflow-y: auto;
  padding: 8px var(--s4) 16px;
  -webkit-overflow-scrolling: touch;
}
.picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  transition: background 140ms ease;
  position: relative;
}
.picker-item:active { background: rgba(255,255,255,0.04); }
.picker-item.selected {
  background: rgba(245,197,66,0.08);
}
.picker-item .pi-check {
  position: absolute;
  right: 16px;
  color: var(--gold);
  opacity: 0;
  font-weight: 700;
}
.picker-item.selected .pi-check { opacity: 1; }
.pi-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3a3a45, #1a1a22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pi-info { flex: 1; min-width: 0; }
.pi-name { font-size: 15px; font-weight: 600; }
.pi-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- Auth wallet (optional) ---------- */
.auth-wallet {
  margin: 10px 0 18px;
  border-radius: var(--r-card);
  background: linear-gradient(160deg, rgba(245,197,66,0.08), rgba(245,197,66,0.01));
  border: 1px solid var(--gold-border);
  overflow: hidden;
}
.aw-head {
  padding: 14px 14px 14px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer;
  transition: background 140ms ease;
}
.aw-head:active { background: rgba(255,255,255,0.03); }
.aw-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.aw-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(245,197,66,0.25), rgba(245,197,66,0.05));
  border: 1px solid var(--gold-border);
}
.aw-title { font-size: 13.5px; font-weight: 700; color: var(--text-1); line-height: 1.4; }
.aw-sub { margin-top: 2px; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.aw-caret { color: var(--text-3); transition: transform 280ms ease; flex: 0 0 18px; }
.auth-wallet.open .aw-caret { transform: rotate(180deg); color: var(--gold); }

.aw-body {
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.22,1,0.36,1);
  padding: 0 14px;
}
.aw-tiers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 4px 0 12px;
}
.aw-tier {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--card-border);
  font-size: 10.5px; color: var(--text-2);
}
.aw-tier > span:last-child { font-family: "SF Mono", ui-monospace, monospace; font-weight: 700; color: var(--text-1); }

.aw-status {
  margin: 12px 0 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(48,209,88,0.08);
  border: 0.5px solid rgba(48,209,88,0.35);
  font-size: 11.5px; color: var(--success);
}
.aw-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(48,209,88,0.2);
}
