body { padding: .75rem; }
.landing { display: flex; gap: 1rem; align-items: flex-start; width: 100%; }
.disclaimer-area { flex: 1; min-width: 0; }
.disclaimer-card { padding: 1.5rem 2rem; background: #0f172a; border: 1px solid #334155;
    border-radius: .75rem; color: #cbd5e1; font-size: .85rem; line-height: 1.6; }
.disclaimer-card h1, .disclaimer-card h2, .disclaimer-card h3 {
    color: #f8fafc; margin: 0 0 .5rem; text-align: left; }
.disclaimer-card h2 { font-size: 1.1rem; margin-top: 1rem; }
.disclaimer-card h3 { font-size: .95rem; margin-top: .8rem; }
.disclaimer-card p { margin: .4rem 0; }
.disclaimer-card ul, .disclaimer-card ol { margin: .4rem 0 .4rem 1.2rem; padding: 0; }
.disclaimer-card li { margin-bottom: .2rem; }
.disclaimer-card a { color: #93c5fd; }
.disclaimer-loading { color: #64748b; padding: 2rem; text-align: center; }
.login-panel { width: 340px; flex-shrink: 0; position: sticky; top: calc(140px + .75rem); }
.card { padding: 1.5rem; width: 100%; max-width: none; }
.card h1 { font-size: 1.3rem; margin-bottom: 1rem; text-align: center; }
.btn { width: 100%; }
.msg { margin-top: .8rem; text-align: center; font-size: .85rem; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.tabs button {
    flex: 1; padding: .6rem; border: none; border-radius: .5rem;
    cursor: pointer; font-size: .9rem; font-weight: 600;
    background: #334155; color: #94a3b8; transition: all .2s;
}
.tabs button.active { background: #3b82f6; color: #fff; }
.profile { text-align: center; }
.profile p { margin: .4rem 0; color: #94a3b8; }
.profile .role { display: inline-block; margin-top: .5rem; padding: .3rem .8rem; background: #22c55e; color: #0f172a; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.btn-discord {
    width: 100%; padding: .7rem; border: none; border-radius: .5rem;
    background: #5865F2; color: #fff; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-discord:hover { background: #4752c4; }
.btn-discord svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 768px) {
    .landing { flex-direction: column-reverse; }
    .login-panel { width: 100%; position: static; }
}
/* ── Language toggle (login page) ── */
#login-lang-btn { position: fixed; top: 1rem; right: 4rem; z-index: 10500;
    width: 40px; height: 40px; border: 2px solid #334155; border-radius: 50%;
    background: #0f172a; cursor: pointer; padding: 0; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: border-color .2s; }
#login-lang-btn:hover { border-color: #3b82f6; }
#login-lang-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
#login-lang-dropdown { position: fixed; top: 4rem; right: .5rem; z-index: 10500;
    min-width: 140px; background: #1e293b; border: 1px solid #334155;
    border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.5);
    padding: .5rem 0; display: none; }
#login-lang-dropdown.open { display: block; }
#login-lang-dropdown a { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; color: #e2e8f0;
    text-decoration: none; font-size: .9rem; transition: background .15s; }
#login-lang-dropdown a:hover { background: #334155; }
#login-lang-dropdown a.active { color: #3b82f6; font-weight: 600; }
#login-lang-dropdown a img { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; }
/* ── Email mismatch modal ── */
.em-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 10500;
    display: flex; align-items: center; justify-content: center; }
.em-modal { background: #1e293b; border: 1px solid #334155; border-radius: .75rem;
    padding: 2rem; max-width: 440px; width: 90%; color: #e2e8f0; max-height: 85vh; overflow-y: auto; }
.em-modal h2 { margin: 0 0 1rem; font-size: 1.1rem; color: #f8fafc; }
.em-modal p { margin: .6rem 0; font-size: .9rem; line-height: 1.5; color: #94a3b8; }
.em-modal .em-emails { margin: 1rem 0; }
.em-modal .em-email-row { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; font-size: .9rem; }
.em-modal .em-email-row .em-label { color: #64748b; min-width: 70px; }
.em-modal .em-email-row .em-value { color: #e2e8f0; font-weight: 500; }
.em-modal .em-buttons { display: flex; gap: .75rem; margin-top: 1.5rem; }
.em-modal .em-buttons button { flex: 1; padding: .7rem; border: none; border-radius: .5rem;
    font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.em-modal .em-btn-yes { background: #3b82f6; color: #fff; }
.em-modal .em-btn-yes:hover { background: #2563eb; }
.em-modal .em-btn-no { background: #334155; color: #94a3b8; }
.em-modal .em-btn-no:hover { background: #475569; }
.em-modal .em-dismiss { display: flex; align-items: center; gap: .5rem; margin-top: 1rem;
    font-size: .8rem; color: #64748b; cursor: pointer; }
.em-modal .em-dismiss input { accent-color: #3b82f6; }

/* ── 2FA modal ── */
.tfa-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 10500;
    display: flex; align-items: center; justify-content: center; }
.tfa-overlay.hidden { display: none; }
.tfa-modal { background: #1e293b; border: 1px solid #334155; border-radius: .75rem;
    padding: 2rem 2.5rem; max-width: 400px; width: 90%; text-align: center; color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: tfa-appear .2s ease-out; }
@keyframes tfa-appear { from { opacity: 0; transform: scale(.95) translateY(-10px); } to { opacity: 1; transform: none; } }
.tfa-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.tfa-modal h2 { font-size: 1.15rem; margin: 0 0 .5rem; color: #f8fafc; }
.tfa-modal p { font-size: .88rem; color: #94a3b8; margin: 0 0 1rem; line-height: 1.5; }
.tfa-code-input { font-size: 1.5rem; text-align: center; letter-spacing: .35em; max-width: 220px;
    width: 100%; padding: .6rem; border-radius: .5rem; border: 2px solid #334155;
    background: #0f172a; color: #f8fafc; outline: none; transition: border-color .2s; }
.tfa-code-input:focus { border-color: #3b82f6; }
.tfa-recovery-link { margin-top: .8rem; font-size: .82rem; }
.tfa-recovery-link a { color: #64748b; text-decoration: none; }
.tfa-recovery-link a:hover { color: #94a3b8; }
.tfa-recovery-input { font-size: 1rem; text-align: center; letter-spacing: .15em;
    max-width: 220px; width: 100%; text-transform: uppercase; }
.tfa-recovery-btn { margin-top: .5rem; }
.tfa-cancel { margin-top: 1rem; background: none; border: none; color: #64748b;
    font-size: .82rem; cursor: pointer; padding: .3rem .6rem; }
.tfa-cancel:hover { color: #94a3b8; }
