/* ==================== RESET Y BASE ==================== */
:root {
    --sidebar-width: 280px;
    --sidebar-collapsed: 0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #0d257a 50%, #0f172a 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* ==================== LAYOUT PRINCIPAL ==================== */
.container {
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    .container {
        flex-direction: row;
    }
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: visible;
}

@media (min-width: 1024px) {
    .sidebar {
        width: var(--sidebar-width);
        min-height: 100vh;
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.collapsed {
        --sidebar-width: 80px;
        padding: 1.5rem 0.75rem;
    }
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .logo {
        justify-content: center;
    }
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6, #5560f7);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(85, 96, 247, 0.5);
    flex-shrink: 0;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.logo-text {
    white-space: nowrap;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .logo-text {
        transition: all 0.3s;
    }
    
    .sidebar.collapsed .logo-text {
        opacity: 0;
        width: 0;
    }
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.75rem;
    color: #9ca3af;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

/* Botón para colapsar sidebar en desktop */
.collapse-toggle {
    display: none;
    position: absolute;
    right: -12px;
    top: 2rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border: 2px solid rgba(30, 30, 46, 0.7);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    transition: all 0.2s;
    z-index: 10;
}

.collapse-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.6);
}

.collapse-toggle svg {
    width: 14px;
    height: 14px;
    color: white;
    transition: transform 0.3s;
}

.sidebar.collapsed .collapse-toggle svg {
    transform: rotate(180deg);
}

@media (min-width: 1024px) {
    .collapse-toggle {
        display: flex;
    }
}

/* Navegación */
.nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.nav.active {
    display: flex;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
        flex: 1;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .nav-item {
        justify-content: center;
        padding: 0.875rem 0.5rem;
    }
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
    .sidebar:not(.collapsed) .nav-item:hover {
        transform: translateX(5px);
    }
}

.nav-item.active {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

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

@media (min-width: 1024px) {
    .sidebar.collapsed .nav-item span {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }
}

.badge {
    margin-left: auto;
    background: #ef4444;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
}

.badge.warning {
    background: #f59e0b;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .badge {
        opacity: 0;
        width: 0;
        padding: 0;
    }
}

/* Separador de navegación */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .nav-divider {
        margin: 0.5rem 0;
    }
}

/* Coming Soon Badge */
.coming-soon-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coming-soon-item {
    opacity: 0.75;
    cursor: pointer;
}

.coming-soon-item:hover {
    opacity: 1;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .coming-soon-badge {
        opacity: 0;
        width: 0;
        padding: 0;
    }
}

/* Feature Active Icon */
.feature-active-icon {
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.5));
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
    }
}

@media (min-width: 1024px) {
    .sidebar.collapsed .feature-active-icon {
        display: none;
    }
}

/* Coming Soon Modal */
.coming-soon-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.coming-soon-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.coming-soon-content {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.98) 0%, rgba(24, 24, 38, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.coming-soon-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.coming-soon-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden; /* ← Para que la imagen no se salga */
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
}



.coming-soon-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain; /* ← Mantiene proporciones */
}
.coming-soon-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.coming-soon-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
}

.coming-soon-content > p {
    color: #9ca3af;
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
}

.coming-soon-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.feature-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
}

.feature-preview svg {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

.feature-preview span {
    color: #e5e7eb;
    font-size: 0.9375rem;
}

.coming-soon-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.coming-soon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* Tooltip para sidebar colapsado */
@media (min-width: 1024px) {
    .nav-item::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 1rem);
        background: rgba(30, 30, 46, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s;
        z-index: 100;
    }

    .sidebar.collapsed .nav-item:hover::after {
        opacity: 1;
    }
}

/* ==================== SUBMENU DESPLEGABLE ==================== */
.nav-item-wrapper {
    position: relative;
}

.nav-item-wrapper .nav-item {
    cursor: pointer;
}

.submenu-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.2s;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .submenu-arrow {
        opacity: 0;
        width: 0;
    }
}

.nav-item-wrapper.active .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-item-wrapper.active .submenu {
    max-height: 300px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #d1d5db;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

@media (min-width: 1024px) {
    .sidebar:not(.collapsed) .submenu-item:hover {
        transform: translateX(5px);
    }
}

.submenu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .submenu-item {
        justify-content: center;
        padding: 0.75rem 0.5rem;
    }
    
    .sidebar.collapsed .submenu-item span {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }
    
    /* Tooltip para items del submenu en sidebar colapsado */
    .submenu-item::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 1rem);
        background: rgba(30, 30, 46, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s;
        z-index: 100;
    }

    .sidebar.collapsed .submenu-item:hover::after {
        opacity: 1;
    }
}

/* Responsive: Submenu en móvil */
@media (max-width: 1023px) {
    .submenu {
   
        border-radius: 0.5rem;
      
    }
    
    .submenu-item {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
}

/* Perfil de usuario */
.user-profile {
    margin-top: 2.5rem;
    padding: 1rem;
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    display: none;
    overflow: hidden;
}

.nav.active ~ .user-profile {
    display: block;
}

@media (min-width: 1024px) {
    .user-profile {
        display: block;
        margin-top: 1.5rem;  /* justo después del nav */
        flex-shrink: 0;
    }

    
    .sidebar.collapsed .user-profile {
        padding: 0.75rem 0.5rem;
    }
}

.user-profile-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .user-profile-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.user-avatar {
    position: relative;
    flex-shrink: 0;
}

.user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    border: 2px solid #06b6d4;
    object-fit: contain;
}

.user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid rgba(30, 30, 46, 0.7);
}

.user-info {
    flex: 1;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .user-info {
        opacity: 0;
        width: 0;
        height: 0;
    }
}

.user-info p:first-child {
    font-size: 0.875rem;
    font-weight: 600;
}

.user-info p:last-child {
    font-size: 0.75rem;
    color: #9ca3af;
}

.logout-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .sidebar.collapsed .logout-btn {
        opacity: 0;
        width: 0;
        padding: 0;
    }
}

.logout-btn:hover {
    color: white;
    background: rgba(239, 68, 68, 0.2);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

/* Usuario en header móvil */
.mobile-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-user {
        display: none;
    }
}

.mobile-user-avatar {
    position: relative;
}

.mobile-user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: 2px solid #06b6d4;
    cursor: pointer;
}

.mobile-user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid rgba(30, 30, 46, 0.7);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        max-width: calc(100vw - var(--sidebar-width));
        transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Header */
.header {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.header-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .header-title h2 {
        font-size: 1.875rem;
    }
}

.header-title p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-box {
    position: relative;
    flex: 1;
}

@media (min-width: 768px) {
    .search-box {
        flex: initial;
        width: 256px;
    }
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    color: white;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.search-box svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.notification-btn {
    position: relative;
    padding: 0.75rem;
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
       grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.stat-card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.cyan {
    border-left: 4px solid #06b6d4;
}

.stat-card.purple {
    border-left: 4px solid #a855f7;
}

.stat-card.pink {
    border-left: 4px solid #ec4899;
}

.stat-card.green {
    border-left: 4px solid #10b981;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.stat-icon.cyan {
    background: rgba(6, 182, 212, 0.2);
}

.stat-icon.purple {
    background: rgba(168, 85, 247, 0.2);
}

.stat-icon.pink {
    background: rgba(236, 72, 153, 0.2);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.2);
}

.stat-icon svg {
    width: 32px;
    height: 32px;
}

.stat-icon.cyan svg {
    color: #06b6d4;
}

.stat-icon.purple svg {
    color: #a855f7;
}

.stat-icon.pink svg {
    color: #ec4899;
}

.stat-icon.green svg {
    color: #10b981;
}

.stat-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

.stat-progress {
    margin-top: 1rem;
    height: 4px;
    background: #374151;
    border-radius: 9999px;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    border-radius: 9999px;
}

.stat-progress-bar.cyan {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.stat-progress-bar.purple {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.stat-progress-bar.pink {
    background: linear-gradient(90deg, #ec4899, #ef4444);
}

.stat-progress-bar.green {
    background: linear-gradient(90deg, #10b981, #059669);
}
.green {
   color: #059669 !important;
}
/* ==================== QUICK ACTIONS ==================== */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

.action-card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: white;
    text-align: left;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-icon.blue {
    background: rgba(59, 130, 246, 0.2);
}

.action-icon.purple {
    background: rgba(168, 85, 247, 0.2);
}

.action-icon.pink {
    background: rgba(236, 72, 153, 0.2);
}

.action-icon svg {
    width: 24px;
    height: 24px;
}

.action-icon.blue svg {
    color: #3b82f6;
}

.action-icon.purple svg {
    color: #a855f7;
}

.action-icon.pink svg {
    color: #ec4899;
}

.action-text h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.action-text p {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ==================== TABLE ==================== */
.table-container {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    width: 100%;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
}

.table-header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .table-header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.table-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.table-title p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(55, 65, 81, 0.5);
    color: #d1d5db;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: #374151;
}

.filter-btn svg {
    width: 20px;
    height: 20px;
}

.add-btn {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.add-btn:hover {
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead {
    background: rgba(31, 41, 55, 0.5);
}

th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    transition: all 0.2s;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

td {
    padding: 1rem 1rem;
}

@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: visible;
    }
    
    table {
        min-width: auto;
    }
    
    .table-wrapper table,
    .table-wrapper thead,
    .table-wrapper tbody,
    .table-wrapper tr,
    .table-wrapper td {
        display: block;
    }
    
    .table-wrapper thead {
        display: none;
    }
    
    .table-wrapper tr {
        margin-bottom: 1rem;
        background: rgba(30, 30, 46, 0.7);
        border-radius: 0.75rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .table-wrapper td {
        padding: 0.75rem 0;
        border: none;
        white-space: normal;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .table-wrapper td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #9ca3af;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .table-wrapper td:last-child {
        border-bottom: none;
    }
}

.product-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.product-avatar.cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.product-avatar.pink {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.product-avatar.purple {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.product-avatar.green {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.product-avatar svg {
    width: 24px;
    height: 24px;
}

.product-details p:first-child {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-details p:last-child {
    font-size: 0.75rem;
    color: #6b7280;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.category-badge.cyan {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
    margin-top: 10px;
}

.category-badge.pink {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.category-badge.purple {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.category-badge.green {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.price {
    font-weight: 600;
    font-size: 1rem;
}

.stock-info {
  text-align: center;
}

.stock-bar {
    width: 80px;
    height: 8px;
    background: #374151;
    border-radius: 9999px;
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    border-radius: 9999px;
}

.stock-fill.green {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stock-fill.yellow {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.yellow {
    color: yellow !important;
}
.stock-count {
    font-size: 0.875rem;
    color: #9ca3af;
}

.stock-count.low {
    color: #fbbf24;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.status-badge.low-stock {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.paused {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-dot.active {
    background: #10b981;
}

.status-dot.low-stock {
    background: #fbbf24;
}

.status-dot.paused {
    background: #ef4444;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.action-btn.edit {
    color: #3b82f6;
}

.action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.2);
}

.action-btn.delete {
    color: #ef4444;
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

/* Paginación */
.table-footer {
    padding: 1rem 1.5rem;
    background: rgba(31, 41, 55, 0.3);
    border-top: 1px solid #374151;
}

.pagination {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .pagination {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.pagination-info {
    font-size: 0.875rem;
    color: #9ca3af;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
    color: #d1d5db;
}

.page-btn.active {
    background: #06b6d4;
    color: white;
}

.page-btn:not(.active) {
    background: rgba(55, 65, 81, 0.5);
}

.page-btn:not(.active):hover:not(:disabled) {
    background: #374151;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 0.5rem;
    color: #6b7280;
}

/* ==================== FOOTER ==================== */
.footer {
    margin-top: auto;
    padding: 1.5rem;
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-brand:hover {
    color: #06b6d4;
}

.footer-brand svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.footer-link:hover {
    color: #06b6d4;
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .hide-tablet {
        display: none;
    }
}
/* ==================== PRODUCT EDIT STYLES ==================== */

/* Header de Edición */
.product_edit-header {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.product_edit-header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Breadcrumb */
.product_edit-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product_edit-breadcrumb svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.product_edit-breadcrumb-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.product_edit-breadcrumb-link:hover {
    color: #06b6d4;
}

.product_edit-breadcrumb-current {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Título y Acciones */
.product_edit-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product_edit-title-left {
    flex: 1;
}

.product_edit-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product_edit-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
}

.product_edit-subtitle span {
    color: #06b6d4;
    font-weight: 600;
}

/* Botones */
.product_edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.product_edit-btn svg {
    width: 20px;
    height: 20px;
}

.product_edit-btn-primary {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.product_edit-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.product_edit-btn-secondary {
    background: rgba(55, 65, 81, 0.5);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product_edit-btn-secondary:hover {
    background: #374151;
}

/* Barra de acciones fija en la parte inferior */
.product_edit-actions-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    margin-top: 2rem;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border-radius: 1rem;
}

.product_edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .product_edit-actions {
        justify-content: stretch;
    }
    
    .product_edit-actions .product_edit-btn {
        flex: 1;
        justify-content: center;
    }
}

.product_edit-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.5rem;
    color: #06b6d4;
    cursor: pointer;
    transition: all 0.2s;
}

.product_edit-btn-icon:hover {
    background: rgba(6, 182, 212, 0.3);
    transform: scale(1.05);
}

.product_edit-btn-icon svg {
    width: 20px;
    height: 20px;
}

.product_edit-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: #06b6d4;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.product_edit-btn-link:hover {
    color: #22d3ee;
}

.product_edit-btn-link svg {
    width: 16px;
    height: 16px;
}

/* Grid Layout */
.product_edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .product_edit-grid {
        grid-template-columns: 1fr 380px;
    }
}

.product_edit-main-column,
.product_edit-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards */
.product_edit-card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.product_edit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product_edit-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.product_edit-card-body {
    padding: 1.5rem;
}

.product_edit-card-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Form Elements */
.product_edit-form-group {
    margin-bottom: 1.5rem;
}

.product_edit-form-group:last-child {
    margin-bottom: 0;
}

.product_edit-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product_edit-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .product_edit-form-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product_edit-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
}

.product_edit-input,
.product_edit-textarea,
.product_edit-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

/* Quitar fondo blanco de las flechas de input number */
.product_edit-input[type="number"] {
    -moz-appearance: textfield;
}

.product_edit-input[type="number"]::-webkit-inner-spin-button,
.product_edit-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Flechas personalizadas para input number */
.product_edit-input[type="number"] {
    position: relative;
}

.product_edit-input:focus,
.product_edit-textarea:focus,
.product_edit-select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    background: rgba(31, 41, 55, 0.7);
}

.product_edit-textarea {
    resize: vertical;
    min-height: 100px;
}

.product_edit-select {
    cursor: pointer;
}

.product_edit-hint {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
}

/* Input Group (para prefijos como $) */
.product_edit-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.product_edit-input-prefix {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.product_edit-input-with-prefix {
    padding-left: 2.5rem;
}

/* Variantes */
.product_edit-variants-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product_edit-variant-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
}

.product_edit-variant-item input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    outline: none;
}

.product_edit-variant-item input::placeholder {
    color: #6b7280;
}

.product_edit-variant-remove {
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.product_edit-variant-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

.product_edit-variant-remove svg {
    width: 16px;
    height: 16px;
}

/* Especificaciones */
.product_edit-specs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product_edit-spec-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
}

.product_edit-spec-item input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding: 0.5rem;
}

.product_edit-spec-item input::placeholder {
    color: #6b7280;
}

.product_edit-spec-remove {
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.product_edit-spec-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

.product_edit-spec-remove svg {
    width: 16px;
    height: 16px;
}

/* Estado vacío */
.product_edit-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.product_edit-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Categorías */
.product_edit-categories-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product_edit-category-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.75rem;
    color: #06b6d4;
    font-size: 0.875rem;
}

.product_edit-category-remove {
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.product_edit-category-remove:hover {
    transform: scale(1.1);
}

.product_edit-category-remove svg {
    width: 16px;
    height: 16px;
}

/* Upload Zone */
.product_edit-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(31, 41, 55, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.product_edit-upload-zone:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.05);
}

.product_edit-upload-zone svg {
    width: 48px;
    height: 48px;
    color: #06b6d4;
    margin-bottom: 1rem;
}

.product_edit-upload-zone p {
    color: #d1d5db;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product_edit-upload-zone span {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Imágenes Grid */
.product_edit-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .product_edit-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product_edit-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product_edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product_edit-image-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.product_edit-image-item:hover .product_edit-image-remove {
    opacity: 1;
}

.product_edit-image-remove:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.product_edit-image-remove svg {
    width: 16px;
    height: 16px;
}

.product_edit-image-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.9);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Info Items */
.product_edit-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.product_edit-info-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product_edit-info-item svg {
    width: 20px;
    height: 20px;
    color: #06b6d4;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.product_edit-info-label {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.product_edit-info-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .product_edit-header {
        padding: 1rem;
    }

    .product_edit-title {
        font-size: 1.5rem;
    }

    .product_edit-card-body {
        padding: 1rem;
    }

    .product_edit-actions {
        width: 100%;
    }

    .product_edit-btn {
        flex: 1;
        justify-content: center;
    }
}
a {
    text-decoration: none !important;
}
.category-badge {
    display: inline-block;
    white-space: nowrap;
}
/* Agregar al CSS existente */

.product_edit-image-item.image-error {
    border: 2px dashed #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.product_edit-image-item.image-error img {
    opacity: 0.3;
}

.product_edit-image-item.image-error::after {
    content: "Error al cargar";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    z-index: 10;
}

/* Mejorar feedback visual del drag & drop */
.product_edit-image-item {
    transition: all 0.2s ease;
}

.product_edit-image-item:hover {
    cursor: move;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.product_edit-image-badge {
    pointer-events: none;
} 
/*landing page*/
/* ==================== LANDING PAGE ESPECÍFICO ==================== */

/* Body específico para landing */
body.landing_page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.landing_page * {
    box-sizing: border-box;
}

/* Container específico para landing */
.landing_container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: block !important;
}

/* Asegurar que logo-container dentro de landing funcione correctamente */
.landing_header .logo-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

/* Partículas de fondo */
.landing_particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.landing_particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    animation: landing_float 10s infinite ease-in-out;
}

@keyframes landing_float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, -50px) scale(1.5);
        opacity: 0.6;
    }
}

@keyframes landing_fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing_header {
    text-align: center;
    margin-bottom: 3rem;
    animation: landing_fadeInDown 0.8s ease-out;
}

@keyframes landing_pulse {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(85, 96, 247, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 25px 50px rgba(85, 96, 247, 0.7);
        transform: scale(1.05);
    }
}

.landing_logo_icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6, #5560f7);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(85, 96, 247, 0.5);
    animation: landing_pulse 2s infinite;
}

.landing_logo_icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.landing_header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.landing_header p {
    font-size: 1.25rem;
    color: #9ca3af;
    font-weight: 300;
}

/* Mensaje de bienvenida especial */
.landing_welcome_banner {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    animation: landing_fadeIn 1s ease-out 0.3s backwards;
}

@keyframes landing_fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.landing_welcome_banner h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing_welcome_banner p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grid de vistas duales */
.landing_dual_view_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .landing_dual_view_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.landing_view_card {
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: landing_fadeInUp 0.8s ease-out backwards;
}

.landing_view_card:nth-child(1) {
    animation-delay: 0.4s;
}

.landing_view_card:nth-child(2) {
    animation-delay: 0.6s;
}

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

.landing_view_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.5);
}

.landing_view_header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing_view_header_content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing_view_icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

.landing_view_icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.landing_view_title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.landing_view_title p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.landing_view_image {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #1a1a2e;
}

.landing_view_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 10px #00eaff) drop-shadow(0 0 20px #00eaff);
}

.landing_view_card:hover .landing_view_image img {
    transform: scale(1.05);
}

.landing_view_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.landing_view_card:hover .landing_view_overlay {
    opacity: 1;
}

.landing_view_overlay_content {
    width: 100%;
}

.landing_view_overlay_content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.landing_view_overlay_content p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.landing_view_action_btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.landing_view_action_btn:hover {
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

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

/* Features Grid */
.landing_features_section {
    margin-top: 4rem;
    animation: landing_fadeIn 1s ease-out 0.8s backwards;
}

.landing_features_section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing_features_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.landing_feature_card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.landing_feature_card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
}

.landing_feature_icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing_feature_icon svg {
    width: 32px;
    height: 32px;
    color: #06b6d4;
}

.landing_feature_card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.landing_feature_card p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .landing_header h1 {
        font-size: 2rem;
    }

    .landing_welcome_banner h2 {
        font-size: 1.5rem;
    }

    .landing_view_image {
        height: 300px;
    }
}

/* Botón pausar */
.action-btn.pause {
    color: #f59e0b;
}

.action-btn.pause:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

/* Botón activar */
.action-btn.activate {
    color: #10b981;
}

.action-btn.activate:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}
/* Badge para borrador */
.status-badge.draft {
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #6b7280;
}

.status-dot.draft {
    background: #6b7280;
}

/* Botón pausar */
.action-btn.pause {
    color: #f59e0b;
}

.action-btn.pause:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

/* Botón activar */
.action-btn.activate {
    color: #10b981;
}

.action-btn.activate:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}
/* ==================== CATEGORÍAS ==================== */

.product_edit-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.product_edit-category-tag-wrapper {
    position: relative;
}

.product_edit-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.75rem;
    color: #06b6d4;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
    position: relative;
}

/* Badges de tipo de categoría - inline con el nombre */
.category-type-badge-base,
.category-type-badge-propia {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-type-badge-base {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.category-type-badge-propia {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.product_edit-category-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #06b6d4;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.product_edit-category-remove:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.product_edit-category-remove svg {
    width: 16px;
    height: 16px;
}
  /* ==================== ORDERS STYLES ==================== */
        .order-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .order-header {
            background: rgba(30, 30, 46, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .order-title {
            font-size: 1.875rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #fff;
        }

        .order-subtitle {
            color: #9ca3af;
            font-size: 0.875rem;
        }

        /* Filter Section */
        .order-filter-section {
            background: rgba(30, 30, 46, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 1.25rem 1.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .order-filter-label {
            color: #d1d5db;
            font-size: 0.875rem;
            font-weight: 500;
        }

        .order-filter-select {
            padding: 0.75rem 1rem;
            background: rgba(31, 41, 55, 0.5);
            border: 1px solid #374151;
            border-radius: 0.75rem;
            color: white;
            font-size: 0.875rem;
            outline: none;
            cursor: pointer;
            transition: all 0.2s;
            min-width: 200px;
        }

        .order-filter-select:focus {
            border-color: #06b6d4;
            box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
            background: rgba(31, 41, 55, 0.7);
        }

        /* Orders List */
        .order-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .order-card {
            background: rgba(30, 30, 46, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .order-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
            border-color: rgba(6, 182, 212, 0.5);
        }

        /* Order Header */
        .order-card-header {
            padding: 1.25rem 1.5rem;
            background: rgba(31, 41, 55, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .order-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .order-id {
            font-size: 1rem;
            font-weight: 600;
            color: #06b6d4;
        }

        .order-date {
            font-size: 0.75rem;
            color: #9ca3af;
        }

        .order-manage-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 1.25rem;
            background: linear-gradient(90deg, #06b6d4, #3b82f6);
            color: white;
            border: none;
            border-radius: 0.75rem;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
        }

        .order-manage-btn:hover {
            box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
            transform: translateY(-2px);
        }

        /* Products Section */
        .order-products {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .order-product-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: rgba(31, 41, 55, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.75rem;
            transition: all 0.2s;
        }

        .order-product-item:hover {
            background: rgba(31, 41, 55, 0.5);
        }

        .order-product-image {
            width: 80px;
            height: 80px;
            border-radius: 0.75rem;
            object-fit: cover;
            border: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .order-product-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .order-product-name {
            font-size: 1rem;
            font-weight: 600;
            color: #fff;
        }

        .order-product-info {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .order-product-info-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .order-product-label {
            font-size: 0.75rem;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .order-product-value {
            font-size: 0.875rem;
            font-weight: 600;
            color: #06b6d4;
        }

        /* Order Footer */
        .order-card-footer {
            padding: 1.25rem 1.5rem;
            background: rgba(31, 41, 55, 0.3);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        /* Status Badges */
        .order-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            font-weight: 600;
        }

        .order-status-badge.processing {
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 1px solid rgba(251, 191, 36, 0.3);
        }

        .order-status-badge.shipped {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .order-status-badge.delivered {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .order-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .order-status-badge.processing .order-status-dot {
            background: #fbbf24;
        }

        .order-status-badge.shipped .order-status-dot {
            background: #3b82f6;
        }

        .order-status-badge.delivered .order-status-dot {
            background: #10b981;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

        .order-total {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.25rem;
        }

        .order-total-label {
            font-size: 0.75rem;
            color: #9ca3af;
            text-transform: uppercase;
        }

        .order-total-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
        }

        /* Empty State */
        .order-empty-state {
            background: rgba(30, 30, 46, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 4rem 2rem;
            text-align: center;
            color: #9ca3af;
        }

        .order-empty-state svg {
            width: 80px;
            height: 80px;
            margin-bottom: 1.5rem;
            opacity: 0.5;
        }

        .order-empty-state h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: #d1d5db;
        }

        /* Responsive */
        @media (max-width: 768px) {
           

            .order-title {
                font-size: 1.5rem;
            }

            .order-card-header,
            .order-card-footer {
                flex-direction: column;
                align-items: flex-start;
            }

            .order-manage-btn {
                width: 100%;
                justify-content: center;
            }

            .order-product-item {
                flex-direction: column;
                text-align: center;
            }

            .order-product-info {
                justify-content: center;
            }

            .order-total {
                align-items: flex-start;
            }
        }
        /* ===========================
   CHECKOUT & ORDERS STYLES
   =========================== */

/* Modal Overlay */
.checkout-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.checkout-modal-overlay.show {
    opacity: 1;
}

/* Modal Container */
.checkout-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

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

/* Modal Header */
.checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.checkout-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    padding: 5px;
    line-height: 1;
}

.checkout-modal-close:hover {
    color: #000;
}

/* Modal Body */
.checkout-modal-body {
    padding: 25px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Checkout Summary */
.checkout-summary {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.checkout-summary h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.checkout-summary-row.checkout-total {
    border-top: 2px solid #ddd;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
}

/* Checkout Form */
.checkout-form h4 {
    margin: 25px 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: #000;
    background: #f9f9f9;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
}

.payment-method span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.payment-method input[type="radio"]:checked + span {
    font-weight: 600;
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-cancel,
.btn-confirm-order {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-confirm-order {
    background: #000;
    color: white;
}

.btn-confirm-order:hover {
    background: #333;
}

.btn-confirm-order:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Modal */
.success-modal {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
    margin: 20px 0;
}

.success-modal h2 {
    margin: 20px 0 10px;
    font-size: 24px;
    color: #333;
}

.order-number {
    background: #f5f5f5;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 20px 0;
    letter-spacing: 1px;
}

.order-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.order-details p {
    margin: 5px 0;
    font-size: 14px;
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #ffc107;
    color: #000;
}

.order-info {
    font-size: 14px;
    color: #666;
    margin: 20px 0;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.btn-view-orders,
.btn-continue-shopping {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-view-orders {
    background: #000;
    color: white;
}

.btn-view-orders:hover {
    background: #333;
}

.btn-continue-shopping {
    background: #f5f5f5;
    color: #333;
}

.btn-continue-shopping:hover {
    background: #e0e0e0;
}

/* ===========================
   ORDERS LIST
   =========================== */

.empty-orders {
    text-align: center;
    padding: 60px 20px;
}

.empty-orders i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-orders h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.empty-orders p {
    color: #666;
    margin-bottom: 25px;
}

.btn-start-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-start-shopping:hover {
    background: #333;
}

/* Order Card */

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-number {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.status-processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.status-shipped {
    background: #d4edda;
    color: #155724;
}

.order-status.status-delivered {
    background: #d4edda;
    color: #155724;
}

.order-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.order-info > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-tracking {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
}

/* Order Details Modal */
.order-details-modal {
    max-width: 700px;
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.order-number-large {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.order-section {
    margin-bottom: 25px;
}

.order-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Order Item in Details */
.order-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.order-item-info {
    flex: 1;
}

.order-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-meta {
    font-size: 13px;
    color: #666;
}

.order-item-price {
    font-weight: 600;
    color: #000;
}

/* Order Summary in Details */
.order-summary-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-row.total {
    border-top: 2px solid #ddd;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 16px;
}

/* Shipping Details */
.shipping-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.shipping-details p {
    margin: 5px 0;
    font-size: 14px;
}

/* Tracking Info */
.tracking-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
}

.tracking-info p {
    margin: 0;
    font-size: 14px;
}

/* Order Dates */
.order-dates {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.order-dates p {
    margin: 8px 0;
    font-size: 14px;
}

/* Order Actions */
.order-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.btn-cancel-order {
    padding: 10px 25px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel-order:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-modal {
        max-width: 95%;
        margin: 20px;
    }

    .checkout-modal-body {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .order-info {
        flex-direction: column;
        gap: 10px;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-item img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
}

/* ========================================
   ORDER PRO - Product Item Styles
   ======================================== */

.order_pro-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.6), rgba(20, 20, 36, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order_pro-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order_pro-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

.order_pro-item:hover::before {
    opacity: 1;
}

/* Imagen del producto */
.order_pro-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.order_pro-item:hover .order_pro-image-wrapper {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.order_pro-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Contenido del producto */
.order_pro-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.order_pro-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order_pro-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.order_pro-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.order_pro-sku {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 0.05em;
}

.order_pro-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.order_pro-icon-sm {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.order_pro-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #06b6d4;
    padding: 0.375rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 0.5rem;
}

/* Variantes del producto */
.order_pro-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.order_pro-variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.order_pro-variant-color {
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

.order_pro-variant-size {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.order_pro-variant-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Resumen (cantidad y subtotal) */
.order_pro-summary {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    align-items: center;
}

.order_pro-quantity-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    border: 1.5px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.order_pro-subtotal-box {
    text-align: right;
    padding: 0.5rem 0;
}

.order_pro-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.375rem;
}

.order_pro-value {
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.order_pro-value-qty {
    font-size: 1.75rem;
    color: #06b6d4;
    text-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.order_pro-value-amount {
    font-size: 1.5rem;
    color: #10b981;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .order_pro-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .order_pro-image-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .order_pro-name {
        font-size: 1rem;
    }
    
    .order_pro-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .order_pro-quantity-box,
    .order_pro-subtotal-box {
        text-align: center;
    }
    
    .order_pro-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .order_pro-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .order_pro-image-wrapper {
        margin: 0 auto;
    }
    
    .order_pro-meta {
        justify-content: center;
        align-items: center;
    }
    
    .order_pro-variants {
        justify-content: center;
    }
}


/* ================================================================ */
/* REPORTES - ESTILOS ADICIONALES */
/* Agregar al final de style.css */
/* ================================================================ */

.reports-page {
    width: 100%;
    max-width: 100%;
}

/* ================================================================ */
/* HEADER DE REPORTES */
/* ================================================================ */

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-left {
    flex: 1;
    min-width: 300px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-title svg {
    color: #06b6d4;
}

.page-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 0.5rem;
    background: rgba(30, 30, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.25rem;
}

.quick-filter {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-filter:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.quick-filter.active {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Date Range Selector */
.date-range-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 30, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.date-range-selector svg {
    color: #9ca3af;
}

.date-range-selector input[type="date"] {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #fff;
    cursor: pointer;
}

.date-range-selector input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.date-range-selector span {
    color: #6b7280;
}

.btn-apply {
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply:hover {
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
}

/* Export Dropdown */
.export-dropdown {
    position: relative;
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(30, 30, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.export-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.export-menu.show {
    display: block;
}

.export-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.export-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.export-menu button svg {
    color: #06b6d4;
}

/* ================================================================ */
/* KPI CARDS */
/* ================================================================ */

.kpi-section {
    margin-bottom: 2rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.kpi-card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.kpi-card:hover {
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    transform: translateY(-5px);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.kpi-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Colores específicos por tipo de KPI */
.kpi-card.revenue .kpi-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.kpi-card.orders .kpi-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.3);
}

.kpi-card.avg-ticket .kpi-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.kpi-card.conversion .kpi-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 8px 20px rgba(67, 233, 123, 0.3);
}

.kpi-card.commissions .kpi-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 8px 20px rgba(250, 112, 154, 0.3);
}

.kpi-card.customers .kpi-icon {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    box-shadow: 0 8px 20px rgba(48, 207, 208, 0.3);
}

.kpi-content {
    margin-bottom: 1rem;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.kpi-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.kpi-trend.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.kpi-trend.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.kpi-trend svg {
    width: 14px;
    height: 14px;
}

.kpi-compare {
    color: #6b7280;
}

.kpi-detail {
    color: #9ca3af;
    font-size: 0.8125rem;
}

/* ================================================================ */
/* CHARTS */
/* ================================================================ */

.charts-section {
    margin-bottom: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.25rem;
}

.chart-card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.chart-card.large {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.chart-subtitle {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.chart-body {
    height: 400px;
}

.chart-legend {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 0.25rem;
}

.legend-label {
    flex: 1;
    font-size: 0.875rem;
    color: #fff;
    font-weight: 500;
}

.legend-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.legend-percent {
    font-size: 0.8125rem;
    color: #9ca3af;
    min-width: 50px;
    text-align: right;
}

/* ================================================================ */
/* TABS */
/* ================================================================ */

.analysis-tabs {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1.5rem;
    background: rgba(31, 41, 55, 0.3);
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #06b6d4;
}

.tab-btn.active {
    color: #06b6d4;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    border-radius: 3px 3px 0 0;
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.tab-grid {
    display: grid;
    gap: 1.5rem;
}

/* ================================================================ */
/* DATA CARDS Y TABLAS */
/* ================================================================ */

.data-card {
    background: rgba(30, 30, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
}

.performance-table th {
    text-align: left;
    padding: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.performance-table td {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.performance-table tbody tr {
    transition: background 0.2s;
}

.performance-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e09856 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) {
    background: rgba(55, 65, 81, 0.5);
    color: #9ca3af;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-name {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.125rem;
}

.product-category {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.revenue-value {
    font-weight: 700;
    color: #10b981;
}

.percentage-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.percentage-fill {
    height: 8px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    border-radius: 4px;
    position: relative;
    flex: 1;
}

.percentage-bar span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9ca3af;
}

/* ================================================================ */
/* INSIGHTS */
/* ================================================================ */

.insights-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insights-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(31, 41, 55, 0.3);
}

.insight-item.highlight {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.insight-item.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
}

.insight-item.info {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

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

.insight-item.highlight svg {
    color: #10b981;
}

.insight-item.warning svg {
    color: #f59e0b;
}

.insight-item.info svg {
    color: #3b82f6;
}

.insight-item h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.insight-item p {
    font-size: 0.8125rem;
    color: #d1d5db;
    line-height: 1.5;
}

/* ================================================================ */
/* SEGMENTACIÓN DE CLIENTES */
/* ================================================================ */

.segmentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.segment-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: rgba(31, 41, 55, 0.3);
    transition: all 0.3s;
}

.segment-card:hover {
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

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

.segment-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.segment-count {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.segment-description {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.segment-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.segment-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.6875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.retention-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.metric-value.success {
    color: #10b981;
}

.metric-value.danger {
    color: #ef4444;
}

/* ================================================================ */
/* MLM STATS */
/* ================================================================ */

.mlm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mlm-stat-card {
    display: flex;
    gap: 1rem;
    background: rgba(30, 30, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s;
}

.mlm-stat-card:hover {
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

.mlm-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.mlm-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.mlm-stat-content {
    flex: 1;
}

.mlm-stat-content p {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.mlm-stat-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.mlm-detail {
    font-size: 0.75rem;
    color: #6b7280;
}

.seller-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.seller-name {
    display: block;
    font-weight: 600;
    color: #fff;
}

.seller-email {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.sales-value {
    display: block;
    font-weight: 700;
    color: #fff;
}

.sales-count {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

.commission-value {
    font-weight: 700;
    color: #10b981;
    font-size: 1rem;
}

.referrals-badge {
    display: flex;
    gap: 0.5rem;
}

.referral-level1,
.referral-level2 {
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.referral-level1 {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.referral-level2 {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ================================================================ */
/* RESPONSIVE */
/* ================================================================ */

@media (max-width: 768px) {
    .reports-header {
        flex-direction: column;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .quick-filters,
    .date-range-selector {
        width: 100%;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    
    .tabs-header {
        padding: 0 1rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    
    .performance-table {
        font-size: 0.8125rem;
    }
}

/* ================================================================ */
/* UTILIDADES */
/* ================================================================ */

.badge-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-primary {
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-warning {
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================================
   DASHBOARD OWNER / ADMIN — clases compartidas
   ============================================================ */

.admin_dashboard_container {
    max-width: 1400px;
}

/* Two Columns Layout */
.dashboard_two_columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .dashboard_two_columns { grid-template-columns: 1fr; }
}

/* Dashboard Card */
.dashboard_card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card_header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0;
}

.card_header p {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0.2rem 0 0 0;
}

.card_body { padding: 1.5rem; }

.view_all_link {
    color: #06b6d4;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.view_all_link:hover { color: #0891b2; }

/* Commission Summary */
.commission_summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}
.commission_item { display: flex; flex-direction: column; gap: .35rem; }
.commission_label { color: #9ca3af; font-size: 0.8rem; }
.commission_value { font-size: 1.5rem; font-weight: 700; color: #f9fafb; }
.commission_value.green  { color: #10b981; }
.commission_value.purple { color: #a855f7; }

/* Top Sellers */
.top_sellers_list,
.top_products_list { display: flex; flex-direction: column; gap: .75rem; }

.top_seller_item,
.top_product_item {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .875rem 1rem;
    border-radius: .75rem;
    transition: background .2s;
}
.top_seller_item  { background: rgba(6, 182, 212, 0.05); }
.top_product_item { background: rgba(139, 92, 246, 0.05); }
.top_seller_item:hover  { background: rgba(6, 182, 212, 0.1); }
.top_product_item:hover { background: rgba(139, 92, 246, 0.1); }

.seller_rank,
.product_rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}
.seller_rank  { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.product_rank { background: linear-gradient(135deg, #a855f7, #7c3aed); }

.seller_info_dash,
.product_info_dash { flex: 1; min-width: 0; }
.seller_info_dash strong,
.product_info_dash strong {
    display: block;
    color: #f9fafb;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seller_info_dash small,
.product_info_dash small { color: #9ca3af; font-size: .75rem; }

.seller_stats_dash { text-align: right; flex-shrink: 0; }
.seller_revenue  { display: block; color: #10b981; font-weight: 700; font-size: 1rem; }
.seller_commission { display: block; color: #a855f7; font-size: .72rem; margin-top: .15rem; }
.product_revenue { color: #10b981; font-weight: 700; font-size: 1rem; flex-shrink: 0; }

.product_thumb {
    width: 44px; height: 44px;
    border-radius: .5rem;
    object-fit: cover;
    flex-shrink: 0;
}
.product_thumb_placeholder {
    width: 44px; height: 44px;
    background: rgba(107,114,128,.2);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Activity List */
.activity_list { display: flex; flex-direction: column; gap: .75rem; }
.activity_item {
    display: flex;
    gap: .875rem;
    padding: .875rem 1rem;
    background: rgba(255,255,255,.02);
    border-radius: .75rem;
}
.activity_icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.activity_icon.completed  { background: rgba(16,185,129,.2);  color: #10b981; }
.activity_icon.pending    { background: rgba(245,158,11,.2);  color: #fbbf24; }
.activity_icon.processing { background: rgba(6,182,212,.2);   color: #06b6d4; }

.activity_content { flex: 1; min-width: 0; }
.activity_content strong { display: block; color: #f9fafb; font-size: .9rem; margin-bottom: .2rem; }
.activity_content p { color: #9ca3af; font-size: .825rem; margin: 0; }
.activity_time { display: block; color: #6b7280; font-size: .72rem; margin-top: .2rem; }

/* Quick Actions */
.quick_actions_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.quick_action_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .625rem;
    padding: 1.1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .875rem;
    color: #f9fafb;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    font-size: inherit;
}
.quick_action_btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.08);
}
.quick_action_btn.blue:hover   { border-color: #06b6d4; }
.quick_action_btn.purple:hover { border-color: #a855f7; }
.quick_action_btn.pink:hover   { border-color: #ec4899; }
.quick_action_btn.green:hover  { border-color: #10b981; }
.quick_action_btn svg   { width: 28px; height: 28px; }
.quick_action_btn span  { font-size: .825rem; font-weight: 500; }

/* Toggle Vendedores */
.sellers-toggle-wrap { display: flex; align-items: center; gap: .5rem; }
.sellers-toggle-label { font-size: .72rem; font-weight: 600; color: #6b7280; transition: color .2s; }
.sellers-toggle-label.active { color: #06b6d4; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px; height: 22px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.1);
    border-radius: 22px;
    transition: background .25s;
}
.toggle-track::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
}
.toggle-switch input:checked + .toggle-track { background: #06b6d4; }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(18px); }

.sellers-disabled-text { color: #4b5563; }
.sellers-disabled-hint { font-size: .72rem; color: #6b7280; margin-top: .25rem; }

/* Empty State */
.empty_state_small {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
    font-size: .875rem;
}

/* ============================================================
   SUPER ADMIN — clases compartidas (.sa-*)
   ============================================================ */

.sa-page { padding: 0 0 3rem; }

.sa-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.sa-topbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff 30%, #00eaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 .2rem;
}
.sa-topbar p { color: rgba(255,255,255,.4); font-size: .85rem; margin: 0; }
.sa-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* Botones super admin */
.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    border-radius: .625rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .2s;
    font-family: inherit;
}
.sa-btn-primary {
    background: linear-gradient(135deg, #00eaff, #3b82f6);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0,234,255,.25);
}
.sa-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,234,255,.4); }
.sa-btn-ghost {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
}
.sa-btn-ghost:hover { background: rgba(255,255,255,.08); }
.sa-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Stats rápidos super admin */
.sa-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.sa-stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .875rem;
    padding: 1.1rem 1.25rem;
}
.sa-stat-num { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: .35rem; }
.sa-stat-label { font-size: .78rem; color: rgba(255,255,255,.4); }

/* Grid 2 columnas super admin */
.sa-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 900px) { .sa-grid-2 { grid-template-columns: 1fr; } }

/* Tabla card super admin */
.sa-table-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .875rem;
    overflow: hidden;
}
.sa-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sa-table-head h3 { font-size: .95rem; font-weight: 700; margin: 0; }
.sa-table-head a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    color: #00eaff;
    text-decoration: none;
    transition: color .2s;
}
.sa-table-head a:hover { color: #22d3ee; }
.sa-table-head a svg { width: 14px; height: 14px; }

.sa-table { width: 100%; border-collapse: collapse; }
.sa-table th {
    padding: .7rem 1.25rem;
    text-align: left;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255,255,255,.35);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sa-table td {
    padding: .9rem 1.25rem;
    font-size: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: rgba(255,255,255,.85);
    vertical-align: middle;
}
.sa-table tbody tr:last-child td { border-bottom: none; }
.sa-table tbody tr:hover td { background: rgba(255,255,255,.03); }

/* Badge super admin */
.sa-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.sa-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.sa-badge.cyan   { background: rgba(0,234,255,.12);  color: #00eaff;  border: 1px solid rgba(0,234,255,.2); }
.sa-badge.purple { background: rgba(168,85,247,.12); color: #c084fc;  border: 1px solid rgba(168,85,247,.2); }
.sa-badge.green  { background: rgba(16,185,129,.12); color: #34d399;  border: 1px solid rgba(16,185,129,.2); }
.sa-badge.red    { background: rgba(239,68,68,.12);  color: #f87171;  border: 1px solid rgba(239,68,68,.2); }
.sa-badge.amber  { background: rgba(245,158,11,.12); color: #fbbf24;  border: 1px solid rgba(245,158,11,.2); }

/* Welcome bar super admin */
.sa-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}
.sa-welcome-left { display: flex; flex-direction: column; gap: .4rem; }
.sa-welcome-left h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.sa-welcome-left p  { color: #9ca3af; font-size: .875rem; margin: 0; }
.sa-nav-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.sa-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .9rem;
    border-radius: .625rem;
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.sa-nav-link:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.sa-nav-link svg { width: 16px; height: 16px; }
.sa-nav-link.purple { border-color: rgba(168,85,247,.4); color: #c084fc; }
.sa-nav-link.purple:hover { background: rgba(168,85,247,.12); }

/* Store card super admin */
.sa-store-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .875rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all .2s;
    text-decoration: none;
    color: inherit;
}
.sa-store-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(0,234,255,.25);
    transform: translateY(-2px);
}
.sa-store-logo {
    width: 48px; height: 48px;
    border-radius: .625rem;
    object-fit: contain;
    background: rgba(255,255,255,.06);
    flex-shrink: 0;
}
.sa-store-logo-placeholder {
    width: 48px; height: 48px;
    border-radius: .625rem;
    background: rgba(0,234,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.sa-store-info { flex: 1; min-width: 0; }
.sa-store-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-store-slug { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: .1rem; }
.sa-store-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.sa-icon-btn {
    width: 32px; height: 32px;
    border-radius: .5rem;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.sa-icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.sa-icon-btn svg { width: 15px; height: 15px; }

/* Stores grid */
.sa-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Search / filter bar */
.sa-filter-bar {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
}
.sa-search {
    flex: 1;
    min-width: 200px;
    padding: .55rem 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .625rem;
    color: #fff;
    font-size: .875rem;
    outline: none;
    transition: border-color .2s;
}
.sa-search::placeholder { color: rgba(255,255,255,.3); }
.sa-search:focus { border-color: rgba(0,234,255,.4); }



/* ============================================================
   SUPER ADMIN STORES
   ============================================================ */

.sa-stat-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .875rem;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.sa-stat-card .label { font-size: .72rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .05em; }
.sa-stat-card .value { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1.1; }
.sa-stat-card .sub   { font-size: .72rem; color: rgba(255,255,255,.3); }
.sa-stat-card.stat-cyan   { border-top: 2px solid #06b6d4; }
.sa-stat-card.stat-green  { border-top: 2px solid #10b981; }
.sa-stat-card.stat-blue   { border-top: 2px solid #3b82f6; }
.sa-stat-card.stat-amber  { border-top: 2px solid #f59e0b; }
.sa-stat-card.stat-purple { border-top: 2px solid #a855f7; }

/* Toolbar buscador */
.sa-toolbar {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
}
.sa-toolbar .sa-search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .625rem;
}
.sa-toolbar .sa-search svg { width: 16px; height: 16px; color: rgba(255,255,255,.35); flex-shrink: 0; }
.sa-toolbar .sa-search input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: .875rem;
    width: 100%;
}
.sa-toolbar .sa-search input::placeholder { color: rgba(255,255,255,.3); }

.sa-filter-select {
    padding: .55rem .875rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .625rem;
    color: #fff;
    font-size: .85rem;
    cursor: pointer;
    outline: none;
}
.sa-filter-select option { background: #1e1e2e; }

/* Grid de tiendas */
.sa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Store card */
.store-card {
    background: rgba(30,30,46,0.6);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.store-card:hover {
    border-color: rgba(0,234,255,.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    background: rgba(30,30,46,0.8);
}

.store-card-header {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.store-logo {
    width: 44px; height: 44px;
    border-radius: .625rem;
    object-fit: contain;
    background: rgba(255,255,255,.06);
    flex-shrink: 0;
}
.store-logo-placeholder {
    width: 44px; height: 44px;
    border-radius: .625rem;
    background: rgba(0,234,255,.1);
    color: #00eaff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}
.store-header-info { flex: 1; min-width: 0; }
.store-header-info h3 {
    font-size: .9rem;
    font-weight: 600;
    margin: 0 0 .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-header-info span { font-size: .72rem; color: rgba(255,255,255,.35); }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .625rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    flex-shrink: 0;
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
}
.badge-active  { background: rgba(16,185,129,.15); color: #10b981; }
.badge-active .badge-dot  { background: #10b981; }
.badge-inactive { background: rgba(107,114,128,.15); color: #9ca3af; }
.badge-inactive .badge-dot { background: #9ca3af; }

.store-card-body {
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    flex: 1;
}
.store-stat { display: flex; flex-direction: column; gap: .15rem; }
.store-stat .slabel { font-size: .7rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .04em; }
.store-stat .sval   { font-size: 1.1rem; font-weight: 700; color: #fff; }
.store-stat .ssub   { font-size: .78rem; color: rgba(255,255,255,.5); }

.store-domain {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    color: #06b6d4;
    text-decoration: none;
    grid-column: span 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.store-domain svg { width: 12px; height: 12px; flex-shrink: 0; }
.store-domain:hover { color: #22d3ee; }

.store-card-footer {
    display: flex;
    gap: .5rem;
    padding: .875rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.store-card-footer .sc-btn {
    flex: 1;
    justify-content: center;
}
.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid transparent;
    cursor: pointer;
}
.sc-btn svg { width: 13px; height: 13px; }
.sc-btn-view  { background: rgba(6,182,212,.1);   color: #06b6d4;  border-color: rgba(6,182,212,.2); }
.sc-btn-dash  { background: rgba(139,92,246,.1);  color: #a855f7;  border-color: rgba(139,92,246,.2); }
.sc-btn-edit  { background: rgba(245,158,11,.1);  color: #f59e0b;  border-color: rgba(245,158,11,.2); }
.sc-btn-danger{ background: rgba(239,68,68,.1);   color: #ef4444;  border-color: rgba(239,68,68,.2); }
.sc-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }

/* Empty state super admin */
.sa-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255,255,255,.3);
}
.sa-empty svg { width: 48px; height: 48px; margin: 0 auto 1rem; display: block; opacity: .3; }
.sa-empty p   { font-size: .9rem; }

/* ============================================================
   SUPER ADMIN SELLERS — clases específicas
   ============================================================ */

.seller-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all .2s;
}
.seller-card:hover {
    border-color: rgba(168,85,247,.3);
    background: rgba(168,85,247,.05);
}
.seller-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    flex-shrink: 0;
}
.seller-info { flex: 1; min-width: 0; }
.seller-info strong { display: block; font-size: .9rem; font-weight: 600; }
.seller-info small  { font-size: .75rem; color: rgba(255,255,255,.4); }
.seller-store-tag {
    font-size: .7rem;
    padding: .2rem .6rem;
    border-radius: 9999px;
    background: rgba(6,182,212,.1);
    color: #06b6d4;
    border: 1px solid rgba(6,182,212,.2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   SUPER ADMIN MARKETPLACES — clases específicas
   ============================================================ */

.marketplace-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all .2s;
}
.marketplace-card:hover {
    border-color: rgba(168,85,247,.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.marketplace-card-header {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.marketplace-logo {
    width: 44px; height: 44px;
    border-radius: .625rem;
    object-fit: contain;
    background: rgba(255,255,255,.06);
    flex-shrink: 0;
}
.marketplace-logo-placeholder {
    width: 44px; height: 44px;
    border-radius: .625rem;
    background: rgba(168,85,247,.1);
    color: #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}
.marketplace-card-body {
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
.marketplace-card-footer {
    display: flex;
    gap: .5rem;
    padding: .875rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06);
}



/* ============================================================
   SUPER ADMIN — Variables CSS globales
   ============================================================ */
:root {
    --cyan:   #00eaff;
    --muted:  rgba(255,255,255,0.4);
    --border: rgba(255,255,255,0.08);
    --glass:  rgba(255,255,255,0.04);
}

/* ============================================================
   SUPER ADMIN SELLERS — tabla completa
   ============================================================ */

.sa-table-wrap {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    overflow: hidden;
    overflow-x: auto;
}

.sa-empty-row td {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255,255,255,.3);
}
.sa-empty-row svg {
    width: 40px; height: 40px;
    margin: 0 auto .75rem;
    display: block;
    opacity: .3;
}

/* Seller cell */
.seller-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.seller-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.seller-avatar-placeholder {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
    text-transform: uppercase;
}
.seller-name  { font-size: .875rem; font-weight: 600; color: #f9fafb; }
.seller-email { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: .1rem; }

/* Store chip */
.store-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 9999px;
    background: rgba(6,182,212,.1);
    color: #06b6d4;
    border: 1px solid rgba(6,182,212,.2);
    font-size: .75rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}
.store-chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.store-chip:hover { background: rgba(6,182,212,.18); }

/* Status badges sellers */
.s-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .625rem;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}
.s-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
}
.s-badge-active  { background: rgba(16,185,129,.15);  color: #10b981; }
.s-badge-active .s-badge-dot  { background: #10b981; }
.s-badge-pending { background: rgba(245,158,11,.15);  color: #f59e0b; }
.s-badge-pending .s-badge-dot { background: #f59e0b; }
.s-badge-inactive { background: rgba(107,114,128,.15); color: #9ca3af; }
.s-badge-inactive .s-badge-dot { background: #9ca3af; }

/* Action cell */
.action-cell {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: nowrap;
}
.act-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .65rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}
.act-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.act-analyze { background: rgba(6,182,212,.1);  color: #06b6d4;  border-color: rgba(6,182,212,.2); }
.act-edit    { background: rgba(245,158,11,.1); color: #f59e0b;  border-color: rgba(245,158,11,.2); }
.act-delete  { background: rgba(239,68,68,.1);  color: #ef4444;  border-color: rgba(239,68,68,.2); }
.act-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }

/* ============================================================
   SUPER ADMIN MARKETPLACES — cards completas
   ============================================================ */

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.mp-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .2s;
}
.mp-card:hover {
    border-color: rgba(168,85,247,.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Cover */
.mp-cover {
    height: 80px;
    background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(6,182,212,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.mp-logo-wrap {
    position: absolute;
    bottom: -20px;
    left: 1.25rem;
}
.mp-logo {
    width: 44px; height: 44px;
    border-radius: .75rem;
    object-fit: contain;
    background: #1e1e2e;
    border: 2px solid rgba(255,255,255,.12);
}
.mp-logo-placeholder {
    width: 44px; height: 44px;
    border-radius: .75rem;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid rgba(255,255,255,.12);
    text-transform: uppercase;
}

/* Header */
.mp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    padding: 1.75rem 1.25rem .75rem;
}
.mp-name { font-size: .95rem; font-weight: 700; color: #f9fafb; }
.mp-slug { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: .1rem; }
.mp-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .625rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Body stats */
.mp-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    padding: .75rem 1.25rem;
}
.mp-stat { display: flex; flex-direction: column; gap: .15rem; }
.mp-stat .slabel { font-size: .68rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .04em; }
.mp-stat .sval   { font-size: 1.1rem; font-weight: 700; color: #fff; }

/* Descripción */
.mp-desc {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    line-height: 1.5;
    padding: 0 1.25rem .75rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dominio */
.mp-domain {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    color: #a855f7;
    text-decoration: none;
    padding: 0 1.25rem .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-domain svg { width: 12px; height: 12px; flex-shrink: 0; }
.mp-domain:hover { color: #c084fc; }

/* Footer */
.mp-footer {
    display: flex;
    gap: .5rem;
    padding: .875rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
    margin-top: auto;
}
.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid transparent;
    cursor: pointer;
}
.mp-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.mp-btn-view   { background: rgba(6,182,212,.1);  color: #06b6d4; border-color: rgba(6,182,212,.2); }
.mp-btn-stores { background: rgba(16,185,129,.1);  color: #10b981; border-color: rgba(16,185,129,.2); }
.mp-btn-edit   { background: rgba(245,158,11,.1); color: #f59e0b; border-color: rgba(245,158,11,.2); }
.mp-btn:hover  { filter: brightness(1.2); transform: translateY(-1px); }

/* Empty mp */
.mp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255,255,255,.3);
}
.mp-empty svg { width: 48px; height: 48px; margin: 0 auto 1rem; display: block; opacity: .3; }
.mp-empty p   { font-size: .9rem; }

/* stat-pink */
.sa-stat-card.stat-pink { border-top: 2px solid #ec4899; }



/* ============================================================
   SUPER ADMIN DASHBOARD — stats-grid, stat-card, order-status
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

.stat-card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card.cyan   { border-left: 4px solid #06b6d4; }
.stat-card.purple { border-left: 4px solid #a855f7; }
.stat-card.pink   { border-left: 4px solid #ec4899; }
.stat-card.green  { border-left: 4px solid #10b981; }
.stat-card.amber  { border-left: 4px solid #f59e0b; }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon svg         { width: 32px; height: 32px; }
.stat-icon.cyan        { background: rgba(6, 182, 212, 0.2);   color: #06b6d4; }
.stat-icon.cyan svg    { color: #06b6d4; }
.stat-icon.purple      { background: rgba(168, 85, 247, 0.2);  color: #a855f7; }
.stat-icon.purple svg  { color: #a855f7; }
.stat-icon.pink        { background: rgba(236, 72, 153, 0.2);  color: #ec4899; }
.stat-icon.pink svg    { color: #ec4899; }
.stat-icon.green       { background: rgba(16, 185, 129, 0.2);  color: #10b981; }
.stat-icon.green svg   { color: #10b981; }
.stat-icon.amber       { background: rgba(245, 158, 11, 0.2);  color: #f59e0b; }
.stat-icon.amber svg   { color: #f59e0b; }

.stat-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f9fafb;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

.stat-progress {
    margin-top: 1rem;
    height: 4px;
    background: #374151;
    border-radius: 9999px;
    overflow: hidden;
}
.stat-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width .6s ease;
}
.stat-progress-bar.cyan   { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.stat-progress-bar.purple { background: linear-gradient(90deg, #a855f7, #ec4899); }
.stat-progress-bar.pink   { background: linear-gradient(90deg, #ec4899, #ef4444); }
.stat-progress-bar.green  { background: linear-gradient(90deg, #10b981, #059669); }

/* ---- Order status bar ---- */
.order-status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.order-status-tile {
    background: rgba(30,30,46,0.6);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .875rem;
}
.order-status-dot-lg {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.order-status-dot-lg svg { width: 20px; height: 20px; }
.ost-pending    { background: rgba(245,158,11,.15); color: #f59e0b; }
.ost-processing { background: rgba(59,130,246,.15); color: #3b82f6; }
.ost-done       { background: rgba(16,185,129,.15); color: #10b981; }
.ost-cancelled  { background: rgba(239,68,68,.15);  color: #ef4444; }

.ost-label { font-size: .7rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .04em; }
.ost-value { font-size: 1.4rem; font-weight: 700; color: #f9fafb; line-height: 1.2; }

/* ---- Tabla dashboard celdas ---- */
.store-name-cell {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.store-name-cell span:first-child { font-size: .875rem; font-weight: 600; color: #f9fafb; }
.store-name-cell span:last-child  { font-size: .72rem; color: rgba(255,255,255,.35); }

.store-status-active  { font-size: .75rem; color: #10b981; font-weight: 600; }
.store-status-inactive { font-size: .75rem; color: #9ca3af; font-weight: 600; }

.order-store-link {
    color: #06b6d4;
    text-decoration: none;
    font-size: .8rem;
}
.order-store-link:hover { color: #22d3ee; }

.pay-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
}
.pay-completed { background: rgba(16,185,129,.15); color: #10b981; }
.pay-pending   { background: rgba(245,158,11,.15); color: #f59e0b; }
.pay-cancelled { background: rgba(239,68,68,.15);  color: #ef4444; }

/* table-wrapper scroll horizontal */
.table-wrapper { overflow-x: auto; }



/* ============================================================
   SUPER ADMIN USUARIOS — panel de edición
   ============================================================ */

.usr-edit-panel {
    background: rgba(30,30,46,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6,182,212,.25);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.usr-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-wrap: wrap;
}
.usr-edit-head h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .1rem; }
.usr-edit-head span { font-size: .75rem; color: rgba(255,255,255,.4); }

.usr-avatar-lg {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.usr-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* Membresías */
.usr-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .875rem;
}
.usr-section-title svg { width: 14px; height: 14px; flex-shrink: 0; }

.usr-membership-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }

.usr-membership-row {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .75rem 1rem;
    background: rgba(15,23,42,.45);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: .75rem;
    flex-wrap: wrap;
}
.usr-mem-store { flex: 1; min-width: 120px; }
.usr-mem-name  { font-size: .875rem; font-weight: 600; color: #f9fafb; }
.usr-mem-slug  { font-size: .72rem; color: rgba(255,255,255,.35); display: block; }
.usr-mem-select { padding: .35rem .6rem; font-size: .78rem; min-width: 110px; }

.usr-add-membership {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-wrap: wrap;
    padding: .875rem 1rem;
    background: rgba(6,182,212,.04);
    border: 1px dashed rgba(6,182,212,.2);
    border-radius: .75rem;
}
.usr-add-membership .nt-select { font-size: .82rem; padding: .45rem .75rem; }


/* ============================================================
   SUPER ADMIN — PAGINACIÓN
   ============================================================ */

.sa-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.07);
}
.sa-pag-info {
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}
.sa-pag-controls {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}
.sa-pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 .5rem;
    border-radius: .5rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    line-height: 1;
}
.sa-pag-btn svg { width: 14px; height: 14px; }
.sa-pag-btn:hover {
    background: rgba(6,182,212,.15);
    border-color: rgba(6,182,212,.4);
    color: #06b6d4;
}
.sa-pag-btn.active {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 10px rgba(6,182,212,.35);
}
.sa-pag-btn.disabled {
    opacity: .3;
    pointer-events: none;
    cursor: default;
}
.sa-pag-dots {
    color: rgba(255,255,255,.3);
    font-size: .85rem;
    padding: 0 .2rem;
    line-height: 34px;
}

/* Layout edición usuario */
.usr-edit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .usr-edit-layout { grid-template-columns: 1fr; }
}
.usr-edit-card {
    background: rgba(30,30,46,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}