/**
 * Account Modal - Luxury Redesign
 * Reutiliza variables globales y clases existentes
 */

/* ===== Modal Específico ===== */
#account-modal .modal {
    max-width: 580px;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-heavy), 0 0 100px rgba(255, 215, 0, 0.05);
}

#account-modal .modal-header {
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.08) 0%,
            rgba(184, 134, 11, 0.05) 100%);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

#account-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-accent);
    opacity: 0.6;
}

/* ===== Profile Header ===== */
.profile-header-redesign {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.05) 0%,
            rgba(184, 134, 11, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
    position: relative;
}

.profile-header-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
            rgba(255, 215, 0, 0.08) 0%,
            transparent 70%);
    pointer-events: none;
}

/* Avatar */
.avatar-large-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid var(--border-medium);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.avatar-large-wrapper:hover .avatar-large {
    transform: scale(1.05);
    border-color: var(--gold-main);
    box-shadow: var(--shadow-heavy), 0 0 20px rgba(255, 215, 0, 0.3);
}

.avatar-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    color: var(--gold-main);
}

.avatar-large-wrapper:hover .avatar-edit-overlay:not(.hidden) {
    opacity: 1;
}

/* Profile Details */
.profile-details {
    flex: 1;
    z-index: 1;
}

.profile-details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.profile-email {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin: 0 0 12px 0;
}

.account-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold-main);
}

.account-badge.premium {
    background: var(--grad-accent);
    border-color: var(--gold-light);
    color: var(--bg-core);
}

/* ===== Action Grid ===== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.action-btn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-main);
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.08) 0%,
            var(--bg-input) 100%);
    box-shadow: var(--shadow-medium), 0 0 20px rgba(255, 215, 0, 0.15);
}

.action-btn-card .icon-mask {
    width: 28px;
    height: 28px;
    background-color: var(--gold-main);
    transition: transform 0.3s ease;
}

.action-btn-card:hover .icon-mask {
    transform: scale(1.1);
}

.action-btn-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ===== Settings Section ===== */
.settings-section {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.settings-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-main);
}

/* ===== Danger Zone ===== */
.danger-zone {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 14px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--hover-light);
    border-color: var(--border-medium);
}

.btn-delete-account {
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-account:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* ===== Auth Tabs ===== */
.tabs-nav {
    display: flex;
    gap: 8px;
    background: var(--bg-input);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--grad-accent);
    color: var(--bg-core);
    box-shadow: var(--shadow-light);
}

.auth-tab:hover:not(.active) {
    background: var(--hover-light);
    color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .profile-header-redesign {
        flex-direction: column;
        text-align: center;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .avatar-large {
        width: 80px;
        height: 80px;
    }
}