body { min-height: 100vh; background: radial-gradient(circle at 15% 0%, #e9e8ff 0, transparent 34%), radial-gradient(circle at 100% 20%, #e4f2ff 0, transparent 30%), var(--bg); }
.site-header { height: 82px; max-width: 1180px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #7374f0, #4d4ecb); color: white; font-size: 21px; font-weight: 800; box-shadow: 0 8px 20px #5b5ce233; }
.brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #27b68a; box-shadow: 0 0 0 4px #27b68a18; }
.self-main { width: min(760px, calc(100% - 32px)); margin: 34px auto 60px; }
.hero { text-align: center; margin-bottom: 28px; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.hero h1 { margin: 9px 0 8px; font-size: clamp(28px, 5vw, 38px); letter-spacing: -.04em; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }
.self-card { background: rgba(255,255,255,.94); border: 1px solid #ffffff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.code-input { text-transform: uppercase; letter-spacing: .12em; font-size: 18px; text-align: center; padding: 15px; }
.code-summary { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.code-summary span { display: block; color: var(--muted); font-size: 10px; }
.code-summary strong { display: block; margin-top: 3px; font-size: 12px; word-break: break-all; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--surface-soft); margin-bottom: 22px; }
.tab { flex: 1; border: 0; border-radius: 9px; padding: 10px; background: transparent; color: var(--muted); font-weight: 650; }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: 0 3px 12px #26324b0c; }
.scan-paste { margin: -4px 0 18px; color: var(--muted); font-size: 12px; }
.scan-paste summary { cursor: pointer; }
.qr-box { width: 230px; height: 230px; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder { text-align: center; color: var(--muted); font-size: 12px; }
.qr-placeholder .spinner { width: 26px; height: 26px; }
.qr-status { text-align: center; min-height: 24px; color: var(--primary); font-weight: 650; font-size: 13px; }
.qr-actions { display: flex; justify-content: center; gap: 8px; margin: 8px 0 18px; }
.bind-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.identity-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-soft); margin-bottom: 18px; }
.avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; }
.identity-card > div:nth-child(2) { min-width: 0; flex: 1; }
.identity-card small { display: block; color: var(--muted); font-size: 11px; }
.identity-card strong { display: block; font-family: Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.save-actions { margin-bottom: 20px; }
.reward-modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 20px; background: #11162988; backdrop-filter: blur(6px); }
.reward-card { width: min(420px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 32px 28px 26px; border: 1px solid #fff; border-radius: 24px; background: linear-gradient(180deg, #fff, #f7f7ff); box-shadow: 0 28px 90px #1116294d; text-align: center; animation: reward-in .22s ease-out; }
.reward-icon { width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); box-shadow: 0 0 0 10px #159a720a; }
.reward-icon span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-size: 26px; font-weight: 800; line-height: 1; }
.reward-kicker { margin: 0 0 4px; color: var(--success); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.reward-card h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.reward-message { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.reward-content { margin: 22px 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-align: left; }
.reward-content-title { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.package-items-list { display: grid; }
.package-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.package-item:first-child { padding-top: 2px; }
.package-item:last-child { padding-bottom: 2px; border-bottom: 0; }
.package-fixed { flex: 0 0 auto; color: var(--primary); font-weight: 800; }
body.reward-open { overflow: hidden; }
@keyframes reward-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.trust-row { display: flex; justify-content: center; gap: 24px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.trust-row span::before { content: "✓"; color: var(--success); margin-right: 5px; }
.site-footer { text-align: center; padding: 0 20px 28px; color: #9aa3b5; font-size: 11px; }
@media (max-width: 600px) {
  .site-header { height: 70px; padding: 0 18px; }
  .self-main { margin-top: 18px; }
  .self-card { padding: 22px 18px; border-radius: 19px; }
  .code-summary { grid-template-columns: 1fr; }
  .reward-card { padding: 28px 22px 22px; }
  .package-item { align-items: flex-start; }
  .package-fixed { text-align: right; }
  .identity-card { flex-wrap: wrap; }
  .identity-card .btn { margin-left: 54px; }
  .trust-row { gap: 10px; flex-wrap: wrap; }
}
