.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: opacity 0.5s;
}

.error-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.banned-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.banned-alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.banned-alert .banned-text {
    flex: 1;
}

.banned-alert .banned-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.info-alert {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: opacity 0.5s;
}

.info-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.warning-alert {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.warning-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.rate-limited .login-btn,
.rate-limited input {
    pointer-events: none;
    opacity: 0.5;
    user-select: none;
}

.rate-limited .password-toggle {
    display: none;
}

.maintenance-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(8,8,12,.85)}
.maintenance-modal{width:100%;max-width:440px;background:var(--surface,#15151b);border:1px solid var(--border,#2a2a33);border-radius:16px;padding:32px 28px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.maintenance-icon{width:64px;height:64px;margin:0 auto 18px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(16,185,129,.12);color:#10b981;font-size:26px}
.maintenance-modal h2{margin:0 0 10px;font-size:22px;font-weight:700;color:var(--text,#f2f2f5)}
.maintenance-lead{margin:0 0 18px;font-size:14px;line-height:1.6;color:var(--text-muted,#a9a9b4)}
.maintenance-lead strong{color:var(--text,#f2f2f5)}
.website-closed .login-card {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.redeem_code-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
    padding: 16px;
    box-sizing: border-box;
}

.redeem_code-modal-card {
    background: #000000;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

.redeem_code-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.redeem_code-modal-icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.redeem_code-modal-icon i {
    font-size: 24px;
    color: #000000;
}

.redeem_code-modal-header h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
}

.redeem_code-modal-header p {
    color: #999999;
    font-size: 13px;
    margin: 0;
}

.redeem_code-input-group {
    margin-bottom: 24px;
}

.redeem_code-input-group label {
    display: block;
    color: #cccccc;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.redeem_code-input-wrapper {
    position: relative;
}

.redeem_code-input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.redeem_code-input-wrapper input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: #222222;
}

.redeem_code-input-wrapper input::placeholder {
    color: #666666;
    letter-spacing: 0;
    font-size: 14px;
    font-family: inherit;
}

.redeem_code-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    transition: color 0.2s ease;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redeem_code-toggle:hover {
    color: #999999;
}

.redeem_code-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #666666;
    font-size: 11px;
}

.redeem_code-hint i {
    font-size: 11px;
}

.redeem_code-submit-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.redeem_code-submit-btn:hover {
    background: #e0e0e0;
}

.redeem_code-submit-btn:active {
    background: #cccccc;
}

.redeem_code-cancel-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #999999;
    border: 1px solid #444444;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.redeem_code-cancel-btn:hover {
    background: #1a1a1a;
    color: #cccccc;
    border-color: #666666;
}

.redeem_code-cancel-btn:active {
    background: #333333;
}

@media (max-width: 480px) {
    .redeem_code-modal-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .redeem_code-modal-header {
        margin-bottom: 24px;
    }
    
    .redeem_code-modal-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    
    .redeem_code-modal-icon i {
        font-size: 20px;
    }
    
    .redeem_code-modal-header h2 {
        font-size: 18px;
    }
    
    .redeem_code-modal-header p {
        font-size: 12px;
    }
    
    .redeem_code-input-group label {
        font-size: 12px;
    }
    
    .redeem_code-input-wrapper input {
        font-size: 16px;
        padding: 12px 40px 12px 12px;
        letter-spacing: 0;
    }
    
    .redeem_code-submit-btn {
        font-size: 14px;
        padding: 12px;
    }
    
    .redeem_code-cancel-btn {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .redeem_code-modal-card {
        padding: 20px 16px;
    }
    
    .redeem_code-modal-header h2 {
        font-size: 16px;
    }
    
    .redeem_code-input-wrapper input {
        font-size: 15px;
        letter-spacing: 0;
    }
}

[data-theme="light"] .redeem_code-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .redeem_code-modal-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .redeem_code-modal-header h2 {
    color: #111827;
}

[data-theme="light"] .redeem_code-modal-header p {
    color: #6b7280;
}

[data-theme="light"] .redeem_code-modal-icon {
    background: #111827;
}

[data-theme="light"] .redeem_code-modal-icon i {
    color: #ffffff;
}

[data-theme="light"] .redeem_code-input-group label {
    color: #374151;
}

[data-theme="light"] .redeem_code-input-wrapper input {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

[data-theme="light"] .redeem_code-input-wrapper input:focus {
    border-color: #0d6efd;
    background: #ffffff;
}

[data-theme="light"] .redeem_code-input-wrapper input::placeholder {
    color: #9ca3af;
}

[data-theme="light"] .redeem_code-toggle {
    color: #9ca3af;
}

[data-theme="light"] .redeem_code-toggle:hover {
    color: #6b7280;
}

[data-theme="light"] .redeem_code-hint {
    color: #9ca3af;
}

[data-theme="light"] .redeem_code-submit-btn {
    background: #111827;
    color: #ffffff;
    transition: background 0.2s ease;
}

[data-theme="light"] .redeem_code-submit-btn:hover {
    background: #1f2937;
}

[data-theme="light"] .redeem_code-submit-btn:active {
    background: #374151;
}

[data-theme="light"] .redeem_code-cancel-btn {
    color: #6b7280;
    border-color: #d1d5db;
}

[data-theme="light"] .redeem_code-cancel-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

[data-theme="light"] .redeem_code-cancel-btn:active {
    background: #e5e7eb;
}

.captcha-container { margin: 0 0 18px; width: 100%; }
.captcha-widget { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.captcha-image-wrap { display: flex; align-items: stretch; gap: 10px; width: 100%; }
.captcha-image { flex: 1 1 auto; width: 100%; min-width: 0; height: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); display: block; image-rendering: auto; }
.captcha-refresh { flex: 0 0 auto; width: 48px; align-self: stretch; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.captcha-refresh:hover { background: rgba(255,255,255,0.10); }
.captcha-input { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: inherit; letter-spacing: 6px; text-transform: none; font-size: 18px; }
.captcha-input:focus { outline: none; border-color: #4a9eff; }
.captcha-input::placeholder { text-transform: none !important; letter-spacing: normal !important; font-size: 14px; opacity: 0.7; }
@media (max-width: 480px) { .captcha-input { letter-spacing: 4px; font-size: 16px; } .captcha-refresh { width: 44px; } }
.pin-digits { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: nowrap; width: 100%; }
.pin-digit {
    flex: 1 1 0; min-width: 0; height: 48px; text-align: center; font-size: 18px; font-weight: 600;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    outline: none; font-family: inherit; padding: 0; transition: border-color 0.15s, box-shadow 0.15s; -moz-appearance: textfield;
}
.pin-digit::-webkit-outer-spin-button, .pin-digit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pin-digit:focus { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface-hover); }
.pin-digits .redeem_code-toggle {
    flex: 0 0 auto; width: 40px; height: 48px; margin-left: 4px; padding: 0; position: static; transform: none;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); border-radius: 10px;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; font-family: inherit;
}
.pin-digits .redeem_code-toggle:hover { background: var(--surface-hover); color: var(--text); }
@media (max-width: 480px) {
    .pin-digits { gap: 4px; }
    .pin-digit { height: 44px; font-size: 16px; }
    .pin-digits .redeem_code-toggle { width: 34px; height: 44px; }
}

.maintenance-sub {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #a9a9b4);
}

.maintenance-telegram {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    text-align: left;
}
.maintenance-telegram-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.maintenance-telegram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(45, 180, 120, .12);
    color: #2db478;
    font-size: 1.05rem;
}
.maintenance-telegram-head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.maintenance-telegram-label {
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .6;
}
.maintenance-telegram-handle {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2db478;
    word-break: break-all;
}
.maintenance-telegram-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #a9a9b4);
}
.maintenance-telegram-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #a9a9b4);
}
.maintenance-telegram-note i {
    margin-top: 2px;
    flex-shrink: 0;
    color: #e0a93a;
}
.maintenance-telegram-note strong {
    color: #f3d79a;
    font-weight: 600;
}