/* ===============================================
   SELLER PROFILE - ESTILOS COMPLETOS
   =============================================== */

:root {
    --profile-primary: #06b6d4;
    --profile-secondary: #3b82f6;
    --profile-success: #10b981;
    --profile-error: #ef4444;
    --profile-bg: #0f0f23;
    --profile-card: rgba(30, 30, 46, 0.7);
    --profile-border: rgba(255, 255, 255, 0.1);
    --profile-text: #ffffff;
    --profile-text-secondary: #9ca3af;
    --profile-input-bg: rgba(55, 65, 81, 0.5);
}

.seller_profile_container {
    min-height: 100vh;
    background: var(--profile-bg);
}

/* Header */
.seller_profile_header {
    position: relative;
    height: 280px;
    overflow: hidden;
    margin-bottom: -100px;
}

.profile_header_bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    opacity: 0.2;
}

.profile_header_bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
}

.profile_header_content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    height: 100%;
}

.profile_avatar_wrapper {
    position: relative;
    z-index: 10;
}

.profile_avatar {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border: 6px solid var(--profile-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar_initials {
    font-size: 4rem;
    font-weight: 700;
    color: white;
}

.avatar_edit_btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.avatar_edit_btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.avatar_edit_btn svg {
    width: 20px;
    height: 20px;
}

.profile_header_info {
    flex: 1;
    padding-bottom: 1.5rem;
}

.profile_header_info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--profile-text);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile_role {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--profile-text-secondary);
}

.profile_role svg {
    width: 20px;
    height: 20px;
}

.status_badge {
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status_badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status_badge.inactive {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* Main Layout */
.seller_profile_main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Sidebar */
.seller_profile_sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile_nav {
    background: var(--profile-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav_item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--profile-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    position: relative;
}

.nav_item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav_item:hover {
    background: rgba(55, 65, 81, 0.3);
    color: var(--profile-text);
}

.nav_item.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    color: var(--profile-primary);
}

.nav_item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--profile-primary), var(--profile-secondary));
    border-radius: 0 999px 999px 0;
}

/* Quick Stats */
.profile_stats_card {
    background: var(--profile-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.profile_stats_card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--profile-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.stat_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--profile-border);
}

.stat_item:first-child {
    border-top: none;
    padding-top: 0;
}

.stat_item svg {
    width: 24px;
    height: 24px;
    color: var(--profile-primary);
    flex-shrink: 0;
}

.stat_item > div {
    display: flex;
    flex-direction: column;
}

.stat_value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--profile-text);
}

.stat_label {
    font-size: 0.75rem;
    color: var(--profile-text-secondary);
}

/* Content Area */
.seller_profile_content {
    background: var(--profile-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    padding: 2rem;
}

.profile_tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile_tab.active {
    display: block;
}

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

.tab_header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--profile-border);
}

.tab_header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--profile-text);
    margin-bottom: 0.5rem;
}

.tab_header p {
    font-size: 0.875rem;
    color: var(--profile-text-secondary);
}

/* Forms */
.form_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form_group {
    display: flex;
    flex-direction: column;
}

.form_group.full {
    grid-column: 1 / -1;
}

.form_group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: 0.625rem;
}

.form_group label svg {
    width: 16px;
    height: 16px;
    color: var(--profile-primary);
}

.required {
    color: var(--profile-error);
}

.form_group input {
    padding: 0.875rem 1rem;
    background: var(--profile-input-bg);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    color: var(--profile-text);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form_group input:focus {
    outline: none;
    background: rgba(55, 65, 81, 0.7);
    border-color: var(--profile-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form_group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.field_hint {
    font-size: 0.75rem;
    color: var(--profile-text-secondary);
    margin-top: 0.375rem;
}

/* Addresses */
.addresses_list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address_card {
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.address_card:hover {
    background: rgba(55, 65, 81, 0.5);
    transform: translateX(4px);
}

.address_card.default {
    border-color: var(--profile-primary);
    background: rgba(6, 182, 212, 0.1);
}

.address_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.default_badge {
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    color: var(--profile-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn_icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid var(--profile-border);
    color: var(--profile-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn_icon:hover {
    background: rgba(55, 65, 81, 0.8);
    color: var(--profile-text);
    border-color: var(--profile-primary);
}

.btn_icon svg {
    width: 18px;
    height: 18px;
}

.address_content {
    color: var(--profile-text);
}

.address_street {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.address_details,
.address_country {
    font-size: 0.875rem;
    color: var(--profile-text-secondary);
}

.empty_state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--profile-text-secondary);
}

.empty_state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.btn_add_address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(55, 65, 81, 0.3);
    border: 2px dashed var(--profile-border);
    border-radius: 12px;
    color: var(--profile-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn_add_address:hover {
    background: rgba(55, 65, 81, 0.5);
    border-color: var(--profile-primary);
    color: var(--profile-primary);
}

.btn_add_address svg {
    width: 20px;
    height: 20px;
}

/* Seller Info */
.seller_info_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info_card {
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.info_icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info_icon svg {
    width: 24px;
    height: 24px;
    color: var(--profile-primary);
}

.info_content {
    flex: 1;
}

.info_content label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--profile-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info_value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--profile-text);
    margin-bottom: 0.25rem;
}

.info_hint {
    font-size: 0.75rem;
    color: var(--profile-text-secondary);
}

.info_link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--profile-primary);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.info_link:hover {
    color: var(--profile-secondary);
}

.link_display {
    display: flex;
    gap: 0.5rem;
}

.link_display input {
    flex: 1;
}

.btn_copy {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-secondary));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn_copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn_copy svg {
    width: 20px;
    height: 20px;
}

/* Security */
.security_section {
    max-width: 600px;
}

.password_requirements {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
}

.password_requirements h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: 1rem;
}

.password_requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password_requirements li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--profile-text-secondary);
}

.password_requirements li::before {
    content: '○';
    color: var(--profile-text-secondary);
}

.password_requirements li.valid {
    color: var(--profile-success);
}

.password_requirements li.valid::before {
    content: '✓';
    color: var(--profile-success);
}

/* Form Actions */
.form_actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--profile-border);
}

.btn_secondary,
.btn_primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn_secondary {
    background: rgba(55, 65, 81, 0.5);
    color: var(--profile-text);
    border: 1px solid var(--profile-border);
}

.btn_secondary:hover {
    background: rgba(55, 65, 81, 0.7);
}

.btn_primary {
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-secondary));
    color: white;
}

.btn_primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn_primary svg,
.btn_secondary svg {
    width: 18px;
    height: 18px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .seller_profile_main {
        grid-template-columns: 1fr;
    }
    
    .seller_profile_sidebar {
        order: 2;
    }
    
    .seller_profile_content {
        order: 1;
    }
    
    .profile_nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .nav_item {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .seller_profile_main {
        padding: 0 1rem 2rem;
    }
    
    .profile_header_content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem 0;
    }
    
    .profile_avatar {
        width: 120px;
        height: 120px;
    }
    
    .avatar_initials {
        font-size: 3rem;
    }
    
    .profile_header_info h1 {
        font-size: 1.75rem;
    }
    
    .seller_profile_content {
        padding: 1.5rem;
    }
    
    .form_grid {
        grid-template-columns: 1fr;
    }
    
    .seller_info_grid {
        grid-template-columns: 1fr;
    }
    
    .form_actions {
        flex-direction: column;
    }
    
    .form_actions button {
        width: 100%;
    }
}
/* ===============================================
   FIX PARA HEADER - Evitar que quede tapado
   =============================================== */

/* Ajustar el header para que no quede tapado */
.seller_profile_header {
    position: relative;
    height: 280px;
    overflow: hidden;
    margin-bottom: 0; /* Cambiar de -100px a 0 */
    z-index: 1; /* Asegurar que esté debajo */
}

/* Ajustar el main para que no solape */
.seller_profile_main {
    max-width: 1400px;
    margin: 2rem auto 0; /* Agregar margen superior */
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    position: relative;
    z-index: 10; /* Asegurar que esté encima */
}

/* Ajustar avatar para que no solape el texto */
.profile_avatar_wrapper {
    position: relative;
    z-index: 5; /* Menor que el main */
    margin-bottom: 1rem; /* Espacio extra */
}

/* Alternativa: Si quieres mantener el efecto de solapamiento
   pero que el texto sea visible */
.seller_profile_header {
    position: relative;
    height: 200px; /* Reducir altura */
    overflow: visible; /* Cambiar a visible */
    margin-bottom: 0;
    z-index: 1;
}

.profile_header_content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    display: flex;
    align-items: flex-start; /* Cambiar de flex-end a flex-start */
    gap: 2rem;
    height: 100%;
}

/* Asegurar que el contenido principal tenga fondo */
.seller_profile_content {
    background: var(--profile-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    z-index: 10; /* Encima del header */
}

.seller_profile_sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10; /* Encima del header */
}