/* Shared authentication modal styles - Synchronized with Launcher 2026 Tactical Cyber Green */
.auth-modal[hidden] { display: none !important; }
.auth-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.auth-dialog { 
    position: relative; 
    z-index: 1; 
    width: min(100%, 430px); 
    max-height: min(92vh, 820px); 
    overflow: auto; 
    padding: 34px 32px 28px; 
    color: #fff; 
    background: #0F1219; 
    border: 1px solid rgba(255, 157, 43, 0.35); 
    border-radius: 4px; 
    box-shadow: 0 28px 100px rgba(0,0,0,.85), inset 0 2px 0 #ff9d2b, 0 0 30px rgba(255, 107, 0, 0.18); 
    animation: auth-modal-enter .18s ease-out; 
}
@keyframes auth-modal-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.09); border-radius: 4px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.66); font-size: 15px; cursor: pointer; transition: all .2s; }
.auth-close:hover { color: #050709; background: #ff9d2b; border-color: #ff9d2b; }
.auth-brand { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 14px; color: #ff9d2b; background: rgba(255, 157, 43, 0.1); border: 1px solid rgba(255, 157, 43, 0.3); border-radius: 4px; font-size: 24px; box-shadow: 0 0 26px rgba(255, 157, 43, 0.2); }
.auth-dialog h2 { margin: 0; text-align: center; font-size: 22px; font-weight: 900; letter-spacing: 2px; color: #FFFFFF; text-transform: uppercase; }
.auth-subtitle { margin: 7px 0 24px; color: #8F98AA; text-align: center; font-size: 12px; letter-spacing: .5px; }
.auth-form { display: flex; flex-direction: column; gap: 9px; }
.auth-form > label:not(.auth-check) { margin-top: 7px; color: #CBD5E1; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; }
.auth-input { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 14px; border: 1px solid #1C2332; border-radius: 4px; background: #07090E; color: rgba(255,255,255,.4); transition: border-color .2s, background .2s, box-shadow .2s; }
.auth-input:focus-within { border-color: #ff9d2b; background: rgba(255, 107, 0, 0.05); box-shadow: 0 0 12px rgba(255, 157, 43, 0.25); }
.auth-input > i { width: 16px; text-align: center; color: #ff9d2b; font-size: 13px; }
.auth-input input { flex: 1; width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; }
.auth-input input::placeholder { color: #5A6273; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; margin: 7px 0 5px; color: #8F98AA; font-size: 12px; cursor: pointer; }
.auth-check input { accent-color: #ff9d2b; width: 15px; height: 15px; border-radius: 2px; }
.auth-submit { 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    gap: 9px; 
    min-height: 48px; 
    margin-top: 10px; 
    border: 1px solid #ff9d2b; 
    border-radius: 4px; 
    background: linear-gradient(135deg, #ff9d2b, #ff6b00); 
    color: #0b0c0e; 
    font: inherit; 
    font-size: 13px; 
    font-weight: 900; 
    letter-spacing: 1px; 
    cursor: pointer; 
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4); 
    transition: transform .18s, box-shadow .18s, background .18s; 
}
.auth-submit:hover { background: linear-gradient(135deg, #ffaa40, #ff7a1a); transform: translateY(-1px); box-shadow: 0 6px 26px rgba(255, 107, 0, 0.6); }
.auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-switch { margin: 22px 0 0; text-align: center; color: #8F98AA; font-size: 12px; }
.auth-switch button { padding: 0; border: 0; background: none; color: #ff9d2b; font: inherit; font-weight: 800; cursor: pointer; }
.auth-switch button:hover { color: #ffaa40; text-decoration: underline; }
.auth-message { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 17px; padding: 11px 12px; border-radius: 4px; font-size: 12px; line-height: 1.55; }
.auth-message-error { color: #ffb4b4; background: rgba(255,0,0,.08); border: 1px solid rgba(255,50,50,.22); }
.auth-message i { margin-top: 2px; color: #ff5050; }
.auth-captcha-row { display: flex; align-items: center; gap: 10px; }
.auth-captcha-input { flex: 1; min-width: 0; }
.auth-captcha-code-wrap { display: flex; align-items: center; gap: 6px; }
.auth-captcha-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 84px; height: 46px; padding: 0 12px;
    background: #040608; border: 1px dashed #ff9d2b; border-radius: 4px;
    color: #ff9d2b; font-family: 'Consolas', 'Courier New', monospace; font-size: 19px; font-weight: 900;
    letter-spacing: 5px; user-select: none; box-shadow: inset 0 0 12px rgba(255, 157, 43, 0.15);
}
.auth-captcha-refresh {
    width: 40px; height: 46px; border: 1px solid #1C2332; border-radius: 4px;
    background: #07090E; color: #8F98AA; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.auth-captcha-refresh:hover { color: #ff9d2b; border-color: #ff9d2b; background: rgba(255, 157, 43, 0.1); }
body.auth-modal-open { overflow: hidden; }
@media (max-width: 480px) { .auth-modal { padding: 12px; align-items: center; } .auth-dialog { padding: 28px 20px 22px; border-radius: 4px; } .auth-dialog h2 { font-size: 20px; } }


/* ==========================================================================
   CF V3 TACTICAL HUD: REAL-TIME NOTIFICATION BELL & DROPDOWN (MASTER SOLID)
   ========================================================================== */
.header-notif-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
}

.header-notif-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    outline: none !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.header-notif-btn:hover,
.header-notif-btn.is-active {
    background: rgba(255, 107, 0, 0.16) !important;
    border-color: rgba(255, 107, 0, 0.5) !important;
    color: #ff9d2b !important;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.3) !important;
}

.header-notif-btn.has-new-alert i {
    animation: notif-bell-ring 0.8s ease-in-out infinite !important;
    color: #ff9d2b !important;
}

@keyframes notif-bell-ring {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(14deg); }
    40%, 80% { transform: rotate(-14deg); }
}

.notif-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: linear-gradient(135deg, #ff4757, #ff6b00) !important;
    color: #fff !important;
    border-radius: 9px !important;
    border: 1.5px solid #0d121a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.5) !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.notif-badge-mini {
    display: inline-block !important;
    padding: 1px 5px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff4757, #ff6b00) !important;
    border-radius: 3px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    box-shadow: 0 0 6px rgba(255, 107, 0, 0.4) !important;
}

.notif-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: 360px !important;
    max-width: calc(100vw - 24px) !important;
    background: #0d121a !important;
    border: 1px solid rgba(255, 107, 0, 0.35) !important;
    border-radius: 6px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 24px rgba(255, 107, 0, 0.15) !important;
    z-index: 99999 !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    animation: notifDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.notif-dropdown:not(.is-open) {
    display: none !important;
}

.notif-dropdown.is-open {
    display: flex !important;
}

@keyframes notifDropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #111722 !important;
    box-sizing: border-box !important;
}

.notif-header-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    color: #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
}

.notif-mark-all {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    transition: all 0.15s ease !important;
}

.notif-mark-all:hover {
    color: #ff9d2b !important;
    background: rgba(255, 107, 0, 0.1) !important;
}

.notif-tabs {
    display: flex !important;
    padding: 6px 10px !important;
    gap: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: #090d14 !important;
    box-sizing: border-box !important;
}

.notif-tab {
    flex: 1 !important;
    background: none !important;
    border: 1px solid transparent !important;
    color: #8fa0b5 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
}

.notif-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.notif-tab.is-active {
    color: #ff9d2b !important;
    background: rgba(255, 107, 0, 0.14) !important;
    border-color: rgba(255, 107, 0, 0.3) !important;
}

.notif-list {
    max-height: 320px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: #0d121a !important;
    box-sizing: border-box !important;
}

.notif-empty {
    padding: 32px 16px !important;
    text-align: center !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.notif-loading {
    padding: 28px 16px !important;
    text-align: center !important;
    color: #8fa0b5 !important;
    font-size: 12px !important;
}

.notif-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
    background: transparent !important;
    transition: background 0.15s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.notif-item:hover {
    background: rgba(255, 107, 0, 0.06) !important;
}

.notif-item.is-unread {
    background: rgba(255, 107, 0, 0.09) !important;
    border-left: 3px solid #ff9d2b !important;
}

.notif-item-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.notif-item-icon.type-event {
    background: rgba(255, 107, 0, 0.15) !important;
    color: #ff9d2b !important;
    border: 1px solid rgba(255, 107, 0, 0.3) !important;
}

.notif-item-icon.type-system {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.notif-item-icon.type-reward {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #facc15 !important;
    border: 1px solid rgba(234, 179, 8, 0.3) !important;
}

.notif-item-body {
    flex: 1 !important;
    min-width: 0 !important;
}

.notif-item-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin-bottom: 3px !important;
    line-height: 1.35 !important;
}

.notif-item-content {
    font-size: 11px !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.notif-item-time {
    font-size: 10px !important;
    color: #64748b !important;
    margin-top: 4px !important;
}

.notif-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    background: #111722 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    box-sizing: border-box !important;
}

.notif-footer-text {
    font-size: 11px !important;
    color: #8fa0b5 !important;
    display: inline-flex !important;
    align-items: center !important;
}

@media (max-width: 900px) {
    .header-notif-wrapper {
        position: relative !important;
    }
    .notif-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        width: min(340px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
    }
}



/* ==========================================================================
   CF V3 AUTH MODAL ABSOLUTE CLEAN INPUT RESET (ELIMINATES DOUBLE BOX EFFECT)
   ========================================================================== */
.auth-dialog .auth-input,
.auth-modal .auth-input,
.auth-input {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 4px !important;
    background: #07090e !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    position: relative !important;
}

.auth-dialog .auth-input:focus-within,
.auth-modal .auth-input:focus-within,
.auth-input:focus-within {
    border-color: #ff9d2b !important;
    background: #07090e !important;
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.28) !important;
}

.auth-input > i {
    width: 18px !important;
    text-align: center !important;
    color: #ff9d2b !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}

/* Force inner <input> to be 100% borderless, transparent, and seamless */
.auth-dialog .auth-input input,
.auth-modal .auth-input input,
.auth-form .auth-input input,
.auth-input input,
#modal-login-user,
#modal-login-pass,
#modal-register-user,
#modal-register-email,
#modal-register-pass,
#modal-register-captcha {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    box-sizing: border-box !important;
}

.auth-dialog .auth-input input:focus,
.auth-modal .auth-input input:focus,
.auth-form .auth-input input:focus,
.auth-input input:focus,
#modal-login-user:focus,
#modal-login-pass:focus,
#modal-register-user:focus,
#modal-register-email:focus,
#modal-register-pass:focus,
#modal-register-captcha:focus {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* WebKit Autofill seamless fix */
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #07090e inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

