:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #141414;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #9a9a9a;
    --accent-green: #00ff88;
    --accent-blue: #00a8ff;
    --accent-red: #ff3b3b;
    --border-color: #2a2a2a;
    --sidebar-width: 250px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.logo svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-green);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-green);
}

/* --- NAVIGATION --- */
.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background-color: var(--bg-hover);
    color: var(--accent-green);
}

.nav-link svg {
    width: 20px;
    height: 20px;
}

.nav-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- STATS CARDS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-hover);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-green);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--accent-green);
    color: var(--bg-primary);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    background-color: #00cc6a;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #3a3a3a;
    border-color: var(--text-primary);
}

.btn-danger {
    background-color: rgba(255, 59, 59, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.btn-danger:hover {
    background-color: var(--accent-red);
    color: white;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-green);
}

/* --- UPLOAD AREA --- */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    background-color: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent-green);
    background-color: rgba(0, 255, 136, 0.05);
}

.upload-area.dragging {
    border-color: var(--accent-green);
    background-color: rgba(0, 255, 136, 0.1);
}

/* --- VIDEO GRID --- */
.videos-table {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

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

.videos-table th {
    background-color: var(--bg-secondary);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.videos-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* --- TABLES --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

/* =========================================
   NUEVOS ESTILOS PARA MEMBRESÍAS PREMIUM
   ========================================= */

.pricing-section {
    position: relative;
    padding: 40px 0;
    width: 100%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: center; /* Alinea verticalmente para que el destacado resalte */
}

/* Tarjeta Base */
.price-card {
    background: linear-gradient(145deg, #141414, #0f0f0f);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    height: 100%;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Tarjeta Destacada (Popular) */
.price-card.featured {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--accent-green); /* Borde Verde Neón */
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.3);
}

/* Badge "Más Elegido" */
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: #000;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* Encabezado del Plan */
.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 1.5rem;
    margin-top: 8px;
    color: var(--text-secondary);
}

.period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    align-self: flex-end;
    margin-bottom: 8px;
}

.featured .plan-price {
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Lista de Características */
.plan-features {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    font-size: 0.95rem;
}

/* Íconos de Check (Solución al ícono gigante) */
.check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px; /* Evita que se aplaste */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    display: block; /* Elimina espacios fantasma */
}

.featured .check-icon {
    background: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.featured .check-icon svg {
    fill: #000;
}

/* Botones de Plan */
.btn-plan {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-glow {
    background: var(--accent-green);
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
    border: none;
}

.btn-glow:hover {
    background: #00cc6a;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

/* Ajustes Responsivos para Planes */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 40px auto;
    }
    
    .price-card.featured {
        transform: scale(1);
        margin: 20px 0;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
}
