/* ========================================
   SECRET KEY MODAL STYLES
   ======================================== */

.secret-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.secret-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.secret-modal {
    background: var(--bg-secondary, #12121a);
    border: 1px solid var(--border, #2a2a40);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(108, 92, 231, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.secret-modal-overlay.visible .secret-modal {
    transform: scale(1) translateY(0);
}

.secret-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
    animation: secretPulse 2s ease-in-out infinite;
}

@keyframes secretPulse {
    0%, 100% { 
        box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 20px 60px rgba(108, 92, 231, 0.6);
        transform: scale(1.05);
    }
}

.secret-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.secret-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary, #8888a8);
    margin-bottom: 32px;
    line-height: 1.6;
}

.secret-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.secret-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    background: var(--bg-tertiary, #1a1a2e);
    border: 2px solid var(--border, #2a2a40);
    border-radius: 14px;
    color: var(--text-primary, #e8e8f0);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-align: center;
    transition: all 0.2s ease;
}

.secret-input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}

.secret-input::placeholder {
    letter-spacing: 1px;
    color: var(--text-muted, #55556a);
}

.secret-input.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
    animation: shake 0.5s ease;
}

.secret-input.success {
    border-color: #00d68f;
    box-shadow: 0 0 0 4px rgba(0, 214, 143, 0.2);
}

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

.secret-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #55556a);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color 0.2s;
}

.secret-toggle-btn:hover {
    color: var(--text-primary, #e8e8f0);
}

.secret-error-msg {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-bottom: 16px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secret-error-msg:empty {
    display: none;
}

.secret-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.secret-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(108, 92, 231, 0.5);
}

.secret-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secret-submit-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.secret-hint {
    margin-top: 24px;
    padding: 14px 18px;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary, #8888a8);
    line-height: 1.5;
}

.secret-hint-icon {
    color: #00b4d8;
    margin-right: 6px;
}

.secret-user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: var(--bg-tertiary, #1a1a2e);
    border-radius: 12px;
}

.secret-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.secret-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.secret-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #e8e8f0);
}

.secret-user-email {
    font-size: 0.75rem;
    color: var(--text-muted, #55556a);
}

.secret-logout-btn {
    margin-top: 20px;
    background: none;
    border: none;
    color: var(--text-muted, #55556a);
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.secret-logout-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .secret-modal {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .secret-modal-title {
        font-size: 1.5rem;
    }

    .secret-modal-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
}
