.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.6);
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.login-divider span {
    padding: 0 10px;
    font-size: 0.9rem;
}

.google-login-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #444;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.google-login-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.google-login-btn:active {
    transform: translateY(0);
}

#profile-modal .guest-card-modal-content {
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    margin: auto;
    border-radius: 12px;
    border: 2px solid rgba(139, 0, 0, 0.3);
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

#profile-modal .modal-close-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
    background: #8b0000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

#profile-modal .modal-close-btn:hover {
    background: #a00000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

#profile-modal .guest-card-modal-content h2 {
    text-align: center;
    padding: 1.2rem 1rem;
    margin: 0;
    color: #8b0000;
    font-size: 1.3rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

#profile-data {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.2rem;
}

#profile-data::-webkit-scrollbar {
    width: 6px;
}

#profile-data::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

#profile-data::-webkit-scrollbar-thumb {
    background: #8b0000;
    border-radius: 3px;
}

.profile-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(139, 0, 0, 0.5);
}

.profile-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid rgba(139, 0, 0, 0.5);
}

.profile-info {
    margin-top: 0.5rem;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.profile-field label {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.profile-field span {
    color: #fff;
    font-size: 0.9rem;
    text-align: right;
    word-break: break-word;
}

.profile-password-section {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.profile-password-section h3 {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.profile-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.password-form input {
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}

.password-form input:focus {
    outline: none;
    border-color: #8b0000;
}

.profile-btn {
    padding: 0.6rem;
    background: #8b0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.profile-btn:hover {
    background: #a00000;
}

.profile-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

#profile-password-message,
#profile-set-password-message {
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: none;
}

#profile-password-message.success,
#profile-set-password-message.success {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    display: block;
}

#profile-password-message.error,
#profile-set-password-message.error {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
    display: block;
}

.profile-danger-zone {
    margin-top: 1.2rem;
    padding: 1rem;
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 6px;
    background: rgba(244, 67, 54, 0.08);
}

.profile-danger-zone h3 {
    margin-bottom: 0.5rem;
    color: #f44336;
    font-size: 0.95rem;
}

.profile-danger-warning {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.profile-danger-btn {
    padding: 0.6rem 1rem;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.profile-danger-btn:hover {
    background: #d32f2f;
}

.profile-danger-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

@media (max-width: 600px) {
    #profile-modal {
        padding: 0;
    }
    
    #profile-modal .guest-card-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    
    #profile-modal .modal-close-btn {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
        border: none;
    }
    
    #profile-modal .guest-card-modal-content h2 {
        padding: 1.5rem 1rem 1rem;
        font-size: 1.4rem;
    }
    
    #profile-data {
        padding: 1.5rem;
    }
    
    .profile-avatar img,
    .profile-placeholder {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .google-login-btn {
        padding: 15.6px;
    }
}
