* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #0a0e1a; color: #c9d1d9; min-height: 100vh; }
.header { background: #0d1220; border-bottom: 1px solid #1c2940; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.header h1 { font-size: 1rem; font-weight: 600; color: #e6edf3; }
.badge { background: #1f6feb; color: #fff; font-size: 0.75rem; font-weight: 600; padding: 3px 12px; border-radius: 12px; }
.user { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: #8b949e; }
.lang { display: inline-flex; border: 1px solid #30363d; border-radius: 8px; overflow: hidden; }
.lang button { background: transparent; border: none; color: #8b949e; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; font-family: inherit; cursor: pointer; }
.lang button + button { border-left: 1px solid #30363d; }
.lang button:hover { background: #21262d; }
.lang button[aria-pressed="true"] { background: #1f6feb; color: #fff; }
.container { max-width: 720px; margin: 40px auto; padding: 0 16px; }
.card { background: #111827; border: 1px solid #1e2d4a; border-radius: 10px; padding: 28px; margin-bottom: 20px; }
label { display: block; font-size: 0.75rem; color: #586573; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
input[type=text], input[type=number] { width: 100%; background: #0d1220; border: 1px solid #1e2d4a; border-radius: 8px; padding: 11px 14px; color: #c9d1d9; font-size: 0.95rem; font-family: inherit; }
input:focus { outline: none; border-color: #2a3f6a; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.btn { display: inline-block; background: #238636; color: #fff; border: none; padding: 12px 28px; border-radius: 8px; font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer; margin-top: 20px; }
.btn:hover:not(:disabled) { background: #2ea043; }
.btn:disabled { background: #21262d; color: #586573; cursor: not-allowed; }
.btn-secondary { background: #21262d; border: 1px solid #30363d; }
.btn-secondary:hover:not(:disabled) { background: #30363d; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; margin-top: 0; }
.otp-panel { background: #0d1220; border: 1px solid #238636; border-radius: 10px; padding: 28px; margin-top: 24px; }
.otp-panel .btn-small { margin-top: 16px; }
.otp-code { font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 2.1rem; font-weight: 600; color: #3fb950; letter-spacing: 0.12em; word-break: break-all; }
.otp-hint { color: #8b949e; font-size: 0.85rem; margin-top: 14px; line-height: 1.6; }
.otp-warn { color: #d29922; font-size: 0.85rem; margin-top: 10px; }
.note { color: #586573; font-size: 0.85rem; line-height: 1.6; }
.msg { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 0.9rem; line-height: 1.5; }
.msg-error { background: #2d1418; border: 1px solid #4a2028; color: #f85149; }
.msg-info { background: #0d1b2e; border: 1px solid #1c3555; color: #58a6ff; }
.hidden { display: none !important; }
.signin-wrap { text-align: center; padding: 60px 20px; }
.signin-wrap p { color: #8b949e; margin-bottom: 8px; line-height: 1.6; }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
