body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #0b1020; color: #e9ecf1; }
.container { max-width: 720px; margin: 48px auto; padding: 0 16px; }
h1 { margin: 0 0 24px; }
h2 { margin: 0 0 16px; font-size: 18px; }
.card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: rgba(233,236,241,0.9); }
input { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.25); color: #e9ecf1; outline: none; }
input:focus { border-color: rgba(124,92,255,0.9); box-shadow: 0 0 0 3px rgba(124,92,255,0.25); }
button { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.16); background: rgba(124,92,255,0.85); color: white; cursor: pointer; font-weight: 600; }
button:hover { background: rgba(124,92,255,1); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.muted { color: rgba(233,236,241,0.7); font-size: 13px; margin: 0 0 12px; }
.pre { white-space: pre-wrap; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px; overflow: auto; }
.error { border-color: rgba(255, 80, 80, 0.6); }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 8px; }
.tab-btn { padding: 8px 16px; border-radius: 8px 8px 0 0; border: none; background: transparent; color: rgba(233,236,241,0.6); cursor: pointer; font-weight: 500; transition: all 0.2s; }
.tab-btn:hover { background: rgba(255,255,255,0.05); color: rgba(233,236,241,0.9); }
.tab-btn.active { background: rgba(124,92,255,0.2); color: #e9ecf1; border-bottom: 2px solid rgba(124,92,255,0.9); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* QR Code */
.qr-display { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.qr-instructions { margin-bottom: 16px; padding: 12px; background: rgba(124,92,255,0.1); border-radius: 8px; border-left: 3px solid rgba(124,92,255,0.8); }
.qr-instructions p { margin: 4px 0; font-size: 13px; }
.qr-instructions strong { color: rgba(124,92,255,1); }
.qr-container { display: flex; justify-content: center; align-items: center; min-height: 280px; background: white; border-radius: 12px; padding: 20px; margin: 16px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.qr-container canvas { max-width: 100%; height: auto; display: block; }
.qr-status { text-align: center; margin: 16px 0; }
.status-text { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.status-text.success { color: #4ade80; }
.status-text.error { color: #f87171; }
.timer-text { font-size: 13px; color: rgba(233,236,241,0.6); margin-bottom: 12px; }
