body { background: radial-gradient(circle at 20% 10%, #eef2ff, #f4f6f9 55%); min-height: 100vh; }

.sim-layout {
  display: flex; gap: 48px; justify-content: center; align-items: center;
  min-height: 100vh; padding: 32px 16px; flex-wrap: wrap;
}
.sim-side { max-width: 340px; }
.sim-side h1 { margin: 10px 0 8px; font-size: 26px; letter-spacing: -.3px; }
.sim-side p { color: var(--muted); }
.sim-side code { font-family: var(--mono); font-size: 12.5px; background: #fff; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.sim-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--brand-b); background: #f1ebff; padding: 4px 10px; border-radius: 999px; }
.sim-notes { padding-left: 18px; color: var(--muted); font-size: 14px; }
.sim-notes li { margin-bottom: 8px; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.server-line { font-size: 13.5px; }
.server-line strong.live { color: var(--ok); }
.sim-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Phone frame ─────────────────────────────────────── */
.phone {
  position: relative; width: 380px; height: 780px; max-width: 100%;
  background: #fff; border-radius: 52px; border: 12px solid #11151c;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .28), inset 0 0 0 2px #2a3140;
  overflow: hidden; display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 32px; background: #11151c; border-radius: 20px; z-index: 5; }
.phone-status { display: flex; justify-content: space-between; padding: 14px 28px 6px; font-size: 13.5px; font-weight: 600; }
.phone-home-bar { width: 130px; height: 5px; border-radius: 3px; background: #11151c; margin: 8px auto 10px; flex: none; }
.screen { flex: 1; overflow-y: auto; padding: 18px 22px; }
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mt { margin-top: 12px; }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.strong { font-weight: 600; }
.muted { color: var(--muted); }
.btn-link { background: none; border: none; color: var(--brand-a); padding: 10px 0; width: 100%; font-weight: 600; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); background: #f6f7fb; border-radius: 8px; padding: 8px 10px; }
.hint code { font-family: var(--mono); font-size: 11px; }

/* register */
.app-hero { text-align: center; margin: 24px 0 28px; }
.app-logo { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 26px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); box-shadow: 0 10px 24px rgba(124, 58, 237, .3); }
.app-hero h2 { margin: 0 0 4px; font-size: 22px; }
.app-hero p { margin: 0; color: var(--muted); }
.code-input { text-align: center; letter-spacing: 10px; font-size: 22px; font-weight: 700; }

/* home */
.home-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.home-email { font-weight: 700; word-break: break-all; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: #eef2ff; color: var(--brand-b); display: grid; place-items: center; font-weight: 800; flex: none; }
.id-card { border-radius: 18px; padding: 18px; color: #fff; margin-bottom: 16px; background: linear-gradient(135deg, #1f3b73, #4f2c9b); box-shadow: 0 10px 24px rgba(31, 59, 115, .3); }
.id-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .9; font-weight: 600; }
.level { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.id-name { font-size: 22px; font-weight: 700; margin-top: 26px; }
.id-sub { font-size: 13px; opacity: .8; }
.scan-box { margin-top: 12px; }
.profile { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.profile summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.profile-fields label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.profile-fields .input { padding: 8px 10px; font-size: 13.5px; }

/* push banner */
.push {
  position: absolute; top: 50px; left: 10px; right: 10px; z-index: 10; cursor: pointer;
  background: rgba(245, 246, 250, .97); backdrop-filter: blur(10px); border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .22); animation: drop .35s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes drop { from { transform: translateY(-130%); } to { transform: none; } }
.push-app { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.push-icon { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 8.5px; font-weight: 800; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.push-time { margin-left: auto; font-weight: 400; }
.push-title { font-weight: 700; font-size: 14.5px; margin-top: 4px; }
.push-body { font-size: 13.5px; color: var(--ink); }

/* request sheet */
.req-head { text-align: center; margin: 10px 0 18px; }
.req-logo { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 16px; background: #f5b400; color: var(--navy); font-weight: 900; font-size: 26px; display: grid; place-items: center; }
.req-name { font-size: 19px; font-weight: 700; }
.live-photo { display: flex; gap: 12px; align-items: center; background: #f6f7fb; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.face { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: #fff; border: 2px dashed var(--brand-a); }
.face.ok { border-style: solid; border-color: var(--ok); }
.section-label { margin: 4px 0 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; font-size: 11.5px; }
.req-fields { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.req-field { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.req-field:last-child { border-bottom: none; }
.req-field input { width: 18px; height: 18px; accent-color: var(--brand-b); }
.req-field .k { color: var(--muted); width: 42%; flex: none; }
.req-field .v { font-weight: 600; word-break: break-word; }
.req-field .v.empty { color: var(--bad); font-weight: 500; }
.req-actions { display: grid; gap: 10px; margin-top: 18px; }

/* done */
.done { text-align: center; padding-top: 70px; }
.done-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 40px; font-weight: 800; background: var(--ok-bg); color: var(--ok); }
.done-icon.bad { background: var(--bad-bg); color: var(--bad); }
.done h2 { margin: 0 0 6px; }
.done .btn { margin-top: 26px; }

@media (max-width: 440px) {
  .phone { border-width: 8px; border-radius: 36px; height: 720px; }
}
