/* Dashboard Compradores - Estilos con degradados rojos */
:root {
    --buyer-red-500: #E84B50;
    --buyer-red-600: #D73744;
    --buyer-red-700: #B21E2E;
    --buyer-gradient-primary: linear-gradient(135deg, #E84B50, #D73744);
    --buyer-gradient-sidebar: linear-gradient(180deg, #D73744, #B21E2E);
    --buyer-white: #FFFFFF;
    --buyer-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --vme-top-offset: 0px; /* Temas con header fijo pueden cambiar este valor */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.vme-buyer-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar */
.vme-buyer-sidebar {
    width: 280px;
    background: var(--buyer-gradient-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--vme-top-offset, 0px);
    height: calc(100vh - var(--vme-top-offset, 0px));
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
    z-index: 100;
}

/* Asegurar texto blanco en todo el sidebar */
body.vme-active .vme-buyer-sidebar,
body.vme-active .vme-buyer-sidebar a,
body.vme-active .vme-buyer-sidebar span,
body.vme-active .vme-buyer-sidebar h4,
body.vme-active .vme-buyer-sidebar p,
body.vme-active .vme-buyer-sidebar .vme-buyer-nav-item,
body.vme-active .vme-buyer-sidebar .vme-buyer-home-btn,
body.vme-active .vme-buyer-sidebar .vme-buyer-logout-btn {
    color: #fff;
}

.vme-buyer-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.vme-buyer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vme-buyer-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

.vme-buyer-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vme-buyer-user-details h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #ffffff;
    font-weight: 600;
}

.vme-buyer-user-role {
    font-size: 13px;
    opacity: 0.8;
}

.vme-buyer-nav {
    flex: 1;
    padding: 20px 0;
}

.vme-buyer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
}

body.vme-active .vme-buyer-nav-item:hover,
body.vme-active .vme-buyer-nav-item.active {
    background: rgba(255,255,255,0.15);
    border-left-color: #fff;
    color: rgba(255,255,255,0.9);
}

.vme-buyer-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.vme-buyer-home-btn,
.vme-buyer-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.vme-buyer-home-btn {
    background: rgba(255,255,255,0.1);
}

.vme-buyer-logout-btn {
    background: rgba(0,0,0,0.2);
}

.vme-buyer-home-btn:hover,
.vme-buyer-logout-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Main */
.vme-buyer-main {
    flex: 1;
    margin: 0px;
    padding: 40px;
    background: #F9FAFB;
}

.vme-buyer-section {
    display: none;
    animation: fadeIn 0.3s;
}

.vme-buyer-section.active {
    display: block;
}

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

.vme-buyer-section-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vme-buyer-section-header h1 i {
    color: var(--buyer-red-600);
}

.vme-buyer-section-header p {
    color: #6B7280;
    font-size: 16px;
}

.vme-buyer-content-section {
    margin-bottom: 40px;
}

.vme-buyer-content-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Video Grid */
.vme-buyer-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.vme-buyer-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--buyer-shadow);
    transition: all 0.3s;
}

.vme-buyer-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.vme-buyer-video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #E5E7EB;
}

.vme-buyer-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vme-buyer-video-card:hover .vme-buyer-video-thumbnail img {
    transform: scale(1.05);
}

.vme-buyer-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.vme-buyer-video-card:hover .vme-buyer-video-overlay {
    opacity: 1;
}

.vme-buyer-play-btn,
.vme-buyer-view-btn {
    background: var(--buyer-gradient-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
    text-decoration: none;
}

.vme-buyer-play-btn:hover {
    transform: scale(1.05);
}

.vme-buyer-video-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--buyer-gradient-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.vme-buyer-purchase-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vme-buyer-video-info {
    padding: 16px;
}

.vme-buyer-video-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vme-buyer-video-creator,
.vme-buyer-video-sales {
    font-size: 13px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.vme-buyer-video-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
    margin-top: 10px;
}

.vme-buyer-favorite-btn {
    background: transparent;
    border: 2px solid #E5E7EB;
    color: #6B7280;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.vme-buyer-favorite-btn:hover,
.vme-buyer-favorite-btn.active {
    background: var(--buyer-gradient-primary);
    border-color: var(--buyer-red-600);
    color: #fff;
}

/* Historial */
.vme-buyer-purchase-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vme-buyer-purchase-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--buyer-shadow);
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s;
}

.vme-buyer-purchase-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.vme-buyer-purchase-thumbnail {
    border-radius: 8px;
    overflow: hidden;
}

.vme-buyer-purchase-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.vme-buyer-purchase-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.vme-buyer-purchase-creator,
.vme-buyer-purchase-meta span {
    font-size: 14px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.vme-buyer-purchase-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

body.vme-active .vme-buyer-purchase-price {
    font-weight: 700;
    color: var(--buyer-red-600);
}

.vme-buyer-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

.vme-buyer-status-success {
    background: #D1FAE5;
    color: #065F46;
}

.vme-buyer-status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.vme-buyer-purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Perfil */
.vme-buyer-profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.vme-buyer-content-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--buyer-shadow);
    margin-bottom: 20px;
}

.vme-buyer-content-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: black;
}

.vme-buyer-profile-photo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.vme-buyer-profile-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vme-buyer-profile-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--buyer-gradient-primary);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.vme-buyer-profile-photo-wrapper:hover .vme-buyer-profile-photo-overlay {
    opacity: 0.9;
}

.vme-buyer-upload-icon {
    color: #fff;
    text-align: center;
}

.vme-buyer-profile-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 24px;
}

.vme-buyer-profile-tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6B7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vme-buyer-profile-tab-btn.active {
    color: var(--buyer-red-600);
    border-bottom-color: var(--buyer-red-600);
}

.vme-buyer-profile-tab-content {
    display: none;
}

.vme-buyer-profile-tab-content.active {
    display: block;
}

/* Forms */
.vme-buyer-form-group {
    margin-bottom: 20px;
}

.vme-buyer-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.vme-buyer-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.vme-buyer-input:focus {
    outline: none;
    border-color: var(--buyer-red-600);
    box-shadow: 0 0 0 3px rgba(215,55,68,0.1);
}

.vme-buyer-password-input-wrapper {
    position: relative;
}

.vme-buyer-password-input-wrapper .vme-buyer-input {
    padding-right: 45px;
}

.vme-buyer-toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 8px;
}

.vme-buyer-hint {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}

/* Buttons */
.vme-buyer-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

.vme-buyer-btn-primary {
    background: var(--buyer-gradient-primary);
    color: #fff;
}

.vme-buyer-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(215,55,68,0.3);
}

.vme-buyer-btn-secondary {
    background: #fff;
    color: var(--buyer-red-600);
    border: 2px solid var(--buyer-red-600);
}

.vme-buyer-btn-success {
    background: var(--buyer-gradient-primary);
    color: #fff;
}

/* Switch */
.vme-buyer-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vme-buyer-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.vme-buyer-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vme-buyer-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #E5E7EB;
    border-radius: 26px;
    transition: 0.3s;
    cursor: pointer;
}

.vme-buyer-switch-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.vme-buyer-switch input:checked + .vme-buyer-switch-slider {
    background: var(--buyer-gradient-primary);
}

.vme-buyer-switch input:checked + .vme-buyer-switch-slider:before {
    transform: translateX(24px);
}

/* Modal */
.vme-buyer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vme-buyer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.vme-buyer-modal-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

.vme-buyer-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

/* Toast */
#vme-buyer-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vme-buyer-toast {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.vme-buyer-toast-success { border-left: 4px solid #10B981; }
.vme-buyer-toast-error { border-left: 4px solid #EF4444; }
.vme-buyer-toast-warning { border-left: 4px solid #F59E0B; }

.vme-buyer-toast-icon { font-size: 20px; }
.vme-buyer-toast-success .vme-buyer-toast-icon { color: #10B981; }
.vme-buyer-toast-error .vme-buyer-toast-icon { color: #EF4444; }
.vme-buyer-toast-warning .vme-buyer-toast-icon { color: #F59E0B; }

.vme-buyer-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.vme-buyer-empty-state i {
    font-size: 64px;
    color: #D1D5DB;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .vme-buyer-main { margin: 0px; padding: 30px; }
    .vme-buyer-profile-container { grid-template-columns: 250px 1fr; }
}

@media (max-width: 768px) {
    .vme-buyer-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .vme-buyer-main {
        margin-left: 0;
        padding: 20px;
    }
    .vme-buyer-video-grid {
        grid-template-columns: 1fr;
    }
    .vme-buyer-profile-container {
        grid-template-columns: 1fr;
    }
    .vme-buyer-purchase-item {
        grid-template-columns: 1fr;
    }
}

/* Fix para select - asegurar que el texto no se corte */
body.vme-active select.vme-buyer-input {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    padding: 14px 35px 14px 16px;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    min-width: 250px;
    line-height: 1.5;
    height: auto;
    min-height: 48px;
}

select.vme-buyer-input option {
    padding: 12px 15px;
    white-space: normal;
    overflow: visible;
    line-height: 1.5;
}

/* ========================================
   RESPONSIVE MÓVIL - BOTTOM NAVIGATION
======================================== */

@media (max-width: 768px) {
    /* Ocultar sidebar vertical en móvil */
    .vme-buyer-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 65px;
        z-index: 1000;
        padding: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    /* Ocultar header y footer del sidebar en móvil */
    .vme-buyer-sidebar-header,
    .vme-buyer-sidebar-footer {
        display: none;
    }
    
    /* Navegación horizontal en la parte inferior */
    .vme-buyer-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        background: var(--buyer-red-600);
        height: 68px; /* MEJORADO: Era 65px, ahora 68px para mejor touch */
        position: relative; /* Para los gradientes */
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scroll en iOS */
        scrollbar-width: none; /* Firefox */
    }
    
    /* Ocultar scrollbar en Chrome/Safari */
    .vme-buyer-nav::-webkit-scrollbar {
        display: none;
    }
    
    /* NUEVO: Fade gradient derecha (indica más items) */
    .vme-buyer-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to left, var(--buyer-red-600) 0%, transparent 100%);
        pointer-events: none;
        z-index: 1;
    }
    
    /* NUEVO: Fade gradient izquierda (cuando hay scroll) */
    .vme-buyer-nav.scrolled::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, var(--buyer-red-600) 0%, transparent 100%);
        pointer-events: none;
        z-index: 1;
    }
    
    .vme-buyer-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 8px; /* MEJORADO: Era 8px 4px, ahora más área de tap */
        gap: 5px; /* MEJORADO: Era 4px */
        border-left: none;
        border-bottom: 3px solid transparent;
        height: 100%;
        font-size: 11px; /* MEJORADO: Era 10px */
        min-width: 75px; /* MEJORADO: Era no especificado */
        position: relative;
    }
    
    .vme-buyer-nav-item i {
        font-size: 22px; /* MEJORADO: Era 18px - mejor touch target */
        margin-bottom: 2px;
    }
    
    .vme-buyer-nav-item span {
        font-size: 11px; /* MEJORADO: Era 10px - más legible */
        text-align: center;
        line-height: 1.2;
        font-weight: 500; /* NUEVO: Más bold para mejor lectura */
    }
    
    .vme-buyer-nav-item.active {
        background: rgba(0, 0, 0, 0.2);
        border-left: none;
        border-bottom: 3px solid #fff;
    }
    
    /* NUEVO: Indicador adicional para item activo */
    .vme-buyer-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }
    
    .vme-buyer-nav-item:hover {
        background: rgba(0, 0, 0, 0.15);
    }
    
    /* NUEVO: Ripple effect en tap */
    .vme-buyer-nav-item:active {
        background: rgba(0, 0, 0, 0.25);
        transform: scale(0.98);
        transition: all 0.1s;
    }
    
    /* Ajustar contenido principal para móvil */
    .vme-buyer-main {
        margin-left: 0;
        margin-bottom: 68px; /* MEJORADO: Era 65px, ajustado a nueva altura */
        padding: 15px;
        width: 100%;
    }
    
    /* NUEVO: Padding extra al final para evitar que botones queden ocultos */
    .vme-buyer-section {
        padding-bottom: 30px;
    }
    
    .vme-buyer-dashboard-wrapper {
        flex-direction: column;
    }
    
    /* Ajustar headers en móvil */
    .vme-buyer-section-header h1 {
        font-size: 24px;
        margin-top: 70px;
    }
    
    .vme-buyer-section-header p {
        font-size: 14px;
    }
    
    /* Ajustar cards en móvil */
    .vme-buyer-content-card {
        padding: 15px;
    }
    
    /* Video grid más compacto en móvil */
    .vme-buyer-video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Purchase items en columna en móvil */
    .vme-buyer-purchase-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Botones más pequeños en móvil */
    .vme-buyer-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Mobile muy pequeño (menos de 480px) */
@media (max-width: 480px) {
    .vme-buyer-nav-item span {
        font-size: 10px; /* MEJORADO: Era 9px */
    }
    
    .vme-buyer-nav-item i {
        font-size: 20px; /* MEJORADO: Era 16px */
    }
    
    .vme-buyer-section-header h1 {
        font-size: 20px;
    }
}

/* NUEVO: Prevenir zoom en iOS - TODOS los inputs >= 16px */
@media (max-width: 768px) {
    body.vme-active input[type="text"],
body.vme-active input[type="email"],
body.vme-active input[type="password"],
body.vme-active input[type="tel"],
body.vme-active input[type="number"],
body.vme-active input[type="search"],
body.vme-active textarea,
body.vme-active select,
body.vme-active .vme-buyer-input {
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Labels más grandes también */
    body.vme-active .vme-buyer-form-label,
body.vme-active label {
        font-size: 14px;
    }
    
    /* Botones con mejor touch target */
    body.vme-active .vme-buyer-btn {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* v6.1.4 - Asegurar que Mi Perfil NO use color lila, solo blanco */
body.vme-active .vme-buyer-nav-item[data-section="perfil"]:hover,
body.vme-active .vme-buyer-nav-item[data-section="perfil"].active {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    body.vme-active .vme-buyer-nav-item[data-section="perfil"]:hover,
body.vme-active .vme-buyer-nav-item[data-section="perfil"].active {
        background: rgba(0, 0, 0, 0.2);
        color: rgba(255,255,255,0.9);
    }
}

/* v6.1.5 - Forzar color blanco en hover (íconos y texto) */
body.vme-active .vme-buyer-nav-item:hover i,
body.vme-active .vme-buyer-nav-item.active i,
body.vme-active .vme-buyer-nav-item:hover span,
body.vme-active .vme-buyer-nav-item.active span {
    color: rgba(255,255,255,0.9);
}

/* Asegurar en móvil también */
@media (max-width: 768px) {
    body.vme-active .vme-buyer-nav-item:hover,
body.vme-active .vme-buyer-nav-item.active {
        color: rgba(255,255,255,0.9);
    }
    
    body.vme-active .vme-buyer-nav-item:hover i,
body.vme-active .vme-buyer-nav-item.active i,
body.vme-active .vme-buyer-nav-item:hover span,
body.vme-active .vme-buyer-nav-item.active span {
        color: rgba(255,255,255,0.9);
    }
}

/* v6.1.6 - Fecha debajo del estado "Completado" */
.vme-buyer-purchase-date-below {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vme-buyer-purchase-date-below i {
    font-size: 12px;
    color: #999;
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .vme-buyer-purchase-date-below {
        font-size: 12px;
        margin-top: 6px;
    }
}

/* v6.1.7 - Nombre de usuario más visible */
body.vme-active .vme-buyer-user-details h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

/* ========================================
   MEJORAS MÓVILES v6.4.0 - TABLE CARDS
   ======================================== */

@media (max-width: 768px) {
    /* Ocultar tablas tradicionales en móvil */
    body.vme-active .vme-buyer-purchase-table,
body.vme-active .vme-buyer-videos-table {
        display: none;
    }
    
    /* Mostrar versión cards */
    body.vme-active .vme-mobile-cards {
        display: block;
    }
}

/* Cards para móvil */
.vme-mobile-cards {
    display: none; /* Oculto por defecto en desktop */
}

.vme-mobile-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.vme-mobile-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.vme-mobile-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.vme-mobile-card-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.vme-mobile-card-info {
    flex: 1;
    min-width: 0;
}

.vme-mobile-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vme-mobile-card-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vme-mobile-card-meta i {
    font-size: 12px;
    color: #999;
}

.vme-mobile-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.vme-mobile-card-stat {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.vme-mobile-card-stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.vme-mobile-card-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.vme-mobile-card-stat.highlight .vme-mobile-card-stat-value {
    color: var(--buyer-red-600);
}

.vme-mobile-card-actions {
    display: flex;
    gap: 8px;
}

.vme-mobile-card-btn {
    flex: 1;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
}

.vme-mobile-card-btn i {
    font-size: 16px;
}

.vme-mobile-card-btn.primary {
    background: var(--buyer-red-600);
    color: white;
}

.vme-mobile-card-btn.primary:active {
    background: var(--buyer-red-700);
}

.vme-mobile-card-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.vme-mobile-card-btn.secondary:active {
    background: #e0e0e0;
}

.vme-mobile-card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.vme-mobile-card-badge.success {
    background: #d4edda;
    color: #155724;
}

.vme-mobile-card-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.vme-mobile-card-badge.danger {
    background: #f8d7da;
    color: #721c24;
}
