* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    background: #0a0e17;
    color: #e8f0fe;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.5s ease;
    position: relative;
    padding: 1rem;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 23, 0.7);
    z-index: 0;
    backdrop-filter: blur(2px);
}

body.bg-anime::before { background: rgba(10, 14, 23, 0.5); }
body.bg-monkey::before { background: rgba(10, 14, 23, 0.5); }
body.bg-meme::before { background: rgba(10, 14, 23, 0.5); }
body.bg-hacker::before { background: rgba(10, 14, 23, 0.5); }
body.bg-dexter::before { background: rgba(10, 14, 23, 0.5); }

body.bg-anime {
    background: url('https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExZnhjcjVjeHlrd2MzYjV1enlhdnVrdGl1eTRvYzAyamZiZ25vdjdrbSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/EHBb378eCcNNgrZbYu/giphy.gif') center/cover no-repeat fixed;
}
body.bg-monkey {
    background: url('https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExdXU5bnl2NjhlajRqZWUxZnc0bmN3eTJjOTdiNHgxcTVxbXljMW96eSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/ysG462b0577AoZVyhl/giphy.gif') center/cover no-repeat fixed;
}
body.bg-meme {
    background: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcGJhcDB5Y2N6bnVmbjMxenZwZmVyOTc5ZDduNHlzMmszcXMyM2Z1NCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/e7CD41ekE5ZUSgTnkn/giphy.gif') center/cover no-repeat fixed;
}
body.bg-hacker {
    background: url('https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExN29jNnZxMXJxczd0NXRwM3U0djByN2c4dDdicXhvN3E1NGh4aTFzaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/YQitE4YNQNahy/giphy.gif') center/cover no-repeat fixed;
}
body.bg-dexter {
    background: url('https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExajk3cXE2aDd0ZjUxa3hrdDJvZ2dyYmxyMDk3emlsa3Q4ZzE4OGhjNSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/HAi4i45T0pAdGERov4/giphy.gif') center/cover no-repeat fixed;
}

.glass-card {
    position: relative;
    z-index: 1;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 200, 200, 0.12);
    border-radius: 28px;
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 30px 60px -15px rgba(0, 200, 200, 0.08);
    animation: fadeInUp 0.6s ease;
    max-height: 95vh;
    overflow-y: auto;
}

.glass-card::-webkit-scrollbar {
    width: 3px;
}

.glass-card::-webkit-scrollbar-track {
    background: transparent;
}

.glass-card::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 200, 0.2);
    border-radius: 10px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00d4d4, #00b4b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
    text-align: center;
}

.subtitle {
    color: rgba(232, 240, 254, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

.input-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: rgba(232, 240, 254, 0.6);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.input-group label i {
    margin-right: 6px;
    color: #00d4d4;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 200, 200, 0.15);
    border-radius: 12px;
    color: #e8f0fe;
    font-size: 0.95rem;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #00d4d4;
    background: rgba(0, 200, 200, 0.05);
    box-shadow: 0 0 20px rgba(0, 200, 200, 0.05);
}

.input-group input::placeholder {
    color: rgba(232, 240, 254, 0.25);
}

.input-group.error input {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.04);
}

.captcha-container {
    background: rgba(0, 212, 212, 0.04);
    border: 1px solid rgba(0, 212, 212, 0.08);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.captcha-container.verified {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.04);
}

.captcha-container.failed {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
    animation: shake 0.5s ease;
}

.captcha-container.blocked {
    opacity: 0.5;
    pointer-events: none;
    border-color: #ff6b6b;
    background: rgba(239, 68, 68, 0.04);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

.captcha-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: rgba(232, 240, 254, 0.4);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.captcha-header i {
    color: #00d4d4;
    font-size: 0.9rem;
}

.captcha-refresh {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(232, 240, 254, 0.2);
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
}

.captcha-refresh:hover {
    color: #00d4d4;
    background: rgba(0, 212, 212, 0.04);
}

.captcha-display {
    text-align: center;
    padding: 0.5rem 0;
}

.captcha-image-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.captcha-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    background: #0a0e17;
}

.captcha-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 240px;
    margin: 0 auto;
}

.captcha-input-group input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 200, 200, 0.15);
    border-radius: 10px;
    color: #e8f0fe;
    font-size: 0.9rem;
    transition: 0.3s;
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.captcha-input-group input:focus {
    outline: none;
    border-color: #00d4d4;
    background: rgba(0, 200, 200, 0.05);
}

.captcha-input-group input.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.04);
}

.captcha-input-group input.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
    animation: shake 0.4s ease;
}

.captcha-verify-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #00d4d4, #00b4b4);
    border: none;
    border-radius: 10px;
    color: #0a0e17;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.captcha-verify-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 200, 200, 0.2);
}

.captcha-status {
    text-align: center;
    font-size: 0.75rem;
    min-height: 20px;
    margin-top: 0.5rem;
    color: rgba(232, 240, 254, 0.4);
}

.captcha-status.success {
    color: #22c55e;
}

.captcha-status.error {
    color: #ef4444;
}

.captcha-status.info {
    color: #00d4d4;
}

.captcha-status.warning {
    color: #f59e0b;
}

.btn-primary {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #00d4d4, #00b4b4);
    color: #0a0e17;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 200, 0.25);
}

.btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled .btn-lock {
    display: inline-block;
}

.btn-primary:disabled.blocked-btn {
    background: #4a4a5a;
    color: #8a8a9a;
    cursor: not-allowed;
}

.btn-lock {
    display: none;
    margin-right: 6px;
}

.toggle-link {
    text-align: center;
    margin-top: 1.2rem;
    color: rgba(232, 240, 254, 0.5);
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.toggle-link strong {
    color: #00d4d4;
    font-weight: 600;
}

.toggle-link:hover strong {
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
    min-height: 20px;
    transition: 0.3s;
}

.error-message.success {
    color: #22c55e;
}

.error-message.warning {
    color: #f59e0b;
}

.bg-selector {
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(0, 200, 200, 0.08);
}

.bg-label {
    color: rgba(232, 240, 254, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    text-align: center;
}

.bg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.bg-option {
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 200, 200, 0.08);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.75rem;
    color: rgba(232, 240, 254, 0.5);
    letter-spacing: 0.3px;
}

.bg-option:hover {
    background: rgba(0, 200, 200, 0.08);
    color: #e8f0fe;
    border-color: rgba(0, 200, 200, 0.2);
}

.bg-option.active {
    border-color: #00d4d4;
    background: rgba(0, 200, 200, 0.12);
    color: #00d4d4;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(10, 14, 23, 0.2);
    border-top-color: #0a0e17;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 20px;
        max-width: 100%;
        margin: 0.5rem;
        max-height: 98vh;
    }
    
    .brand-title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .bg-options {
        gap: 0.3rem;
    }
    
    .bg-option {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .captcha-image-wrapper {
        min-height: 50px;
        padding: 0.3rem;
    }
    
    .captcha-input-group {
        max-width: 200px;
    }
}

@media (max-width: 360px) {
    .glass-card {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
    
    .input-group input {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-primary {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .captcha-image-wrapper {
        min-height: 40px;
    }
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 200, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 200, 200, 0.3);
}

::selection {
    background: rgba(0, 200, 200, 0.2);
    color: #e8f0fe;
}