/* ===== CSS Reset y Variables ===== */
:root {
    --primary-color: #2A9D8F;
    --secondary-color: #D4A843;
    --accent-color: #1a1a2e;
    --bg-color: #0f0f1a;
    --text-color: #ffffff;
    --text-muted: #a0a0b0;
    --card-bg: #1a1a2e;
    --border-color: #2a2a4a;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utilidades ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-muted {
    color: var(--text-muted);
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* ===== Header ===== */
.header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1e8c80);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(42, 157, 143, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--bg-color);
}

.btn-secondary:hover {
    background: #c99a3a;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

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

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== Alertas ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--error-color);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid var(--success-color);
    color: #6bff8a;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid var(--warning-color);
    color: #ffc107;
}

/* ===== Cards ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, #151530 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232A9D8F' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Features Section ===== */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #1e8c80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Plans Section ===== */
.plans-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #151530 0%, var(--bg-color) 100%);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.plan-card.featured {
    border-color: var(--primary-color);
}

.plan-card.featured::before {
    content: 'Mas Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.plan-price span {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-description {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header img {
    height: 60px;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== Dashboard ===== */
.dashboard {
    padding: 100px 20px 40px;
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #1e8c80);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Content Grid ===== */
.content-section {
    padding: 100px 20px 40px;
    min-height: 100vh;
}

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

.content-header h1 {
    font-size: 32px;
}

.content-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.content-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--border-color);
}

.content-info {
    padding: 20px;
}

.content-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.content-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.content-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.content-badge.premium {
    background: var(--secondary-color);
    color: var(--bg-color);
}

/* ===== Admin Panel ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.admin-sidebar {
    width: 260px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
}

.admin-nav {
    list-style: none;
}

.admin-nav-section {
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 15px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(42, 157, 143, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

@media (max-width: 992px) {
    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
    }
}

/* ===== Tables ===== */
.table-container {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(42, 157, 143, 0.1);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.badge-warning {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.badge-info {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 22px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

/* ===== Footer ===== */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

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

.footer-brand img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* ===== Live Classes ===== */
.live-class-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.live-class-card .class-date {
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    min-width: 80px;
}

.class-date .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.class-date .month {
    font-size: 12px;
    text-transform: uppercase;
}

.live-class-card .class-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.live-class-card .class-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.class-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Profile Page ===== */
.profile-section {
    padding: 100px 20px 40px;
    min-height: 100vh;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

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

.profile-info h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-muted);
}

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

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

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== 404 Page ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-content h1 {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .plan-price {
        font-size: 36px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== Loader ===== */
.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Checkout ===== */
.checkout-section {
    padding: 100px 20px 40px;
    min-height: 100vh;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.order-summary {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.order-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--border-color);
    font-size: 20px;
    font-weight: 700;
}

/* ===== Quick Actions ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.quick-action-card .icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #1e8c80);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quick-action-card .text h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.quick-action-card .text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Progress Bar ===== */
.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* ===== Admin Panel Extended Styles ===== */
.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-sidebar-header h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 0;
}

.admin-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.admin-header p {
    color: var(--text-muted);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.admin-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* Role Badges */
.badge-admin {
    background: #dc2626;
    color: white;
}

.badge-webmaster {
    background: #7c3aed;
    color: white;
}

.badge-profesor {
    background: #2563eb;
    color: white;
}

.badge-user {
    background: #6b7280;
    color: white;
}

.badge-active {
    background: #22c55e;
    color: white;
}

.badge-pending {
    background: #eab308;
    color: black;
}

.badge-cancelled {
    background: #ef4444;
    color: white;
}

.badge-error {
    background: #ef4444;
    color: white;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: rgba(42, 157, 143, 0.1);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Card Styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.2rem;
    margin: 0;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Nav Icons */
.nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

@media (max-width: 900px) {
    .admin-tables {
        grid-template-columns: 1fr;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Button Styles */
.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.plan-card {
    text-align: center;
}

.plan-card.inactive {
    opacity: 0.6;
}

.plan-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.plan-price {
    margin-bottom: 15px;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.plan-price .period {
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
}

/* Flex utilities */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== User Dashboard ===== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.dashboard-layout .sidebar {
    width: 260px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
}

.dashboard-layout .sidebar-nav {
    list-style: none;
}

.dashboard-layout .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.dashboard-layout .sidebar-nav a:hover,
.dashboard-layout .sidebar-nav a.active {
    background: rgba(42, 157, 143, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.dashboard-layout .main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .dashboard-layout .sidebar {
        display: none;
    }

    .dashboard-layout .main-content {
        margin-left: 0;
    }
}

/* ===== Webmaster & Profesor Dashboard ===== */
.webmaster-dashboard,
.profesor-dashboard {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-danger .stat-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
}

.quick-actions h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-card:hover {
    border-color: var(--primary-color);
    background: rgba(42, 157, 143, 0.05);
    transform: translateY(-2px);
}

.action-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.action-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Dashboard Sections */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.dashboard-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

/* Data Lists */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-info strong {
    font-size: 0.95rem;
}

.item-info small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Content & Classes Lists */
.content-list,
.classes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-item,
.class-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.content-info,
.class-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.content-info h4,
.class-info h4 {
    font-size: 0.95rem;
    margin: 0;
}

.class-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.content-stats,
.class-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Admin Page Layout */
.admin-page {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-header h1 {
    font-size: 1.6rem;
    margin: 0;
}

/* Data Tables */
.data-table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(42, 157, 143, 0.08);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

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

.data-table tr:last-child td {
    border-bottom: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

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

.col-md-6 {
    width: 100%;
}

/* Badge Variants */
.badge-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

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

    .webmaster-dashboard,
    .profesor-dashboard,
    .admin-page {
        padding: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}

/* ===== Settings & Forms Pages ===== */
.settings-form {
    max-width: 900px;
}

.settings-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.settings-section h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Color Picker */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-picker-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.color-picker-group small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.color-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input-wrapper input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.color-input-wrapper .color-text {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Form Control */
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.form-control option {
    background: var(--card-bg);
    color: var(--text-color);
}

/* Thumbnail in table */
.thumb-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.content-title-cell {
    display: flex;
    align-items: center;
}

/* Modal Large */
.modal-lg {
    max-width: 800px;
}

/* Col sizes for forms */
.col-md-4 {
    width: 100%;
}

.col-md-6 {
    width: 100%;
}

.col-md-8 {
    width: 100%;
}

@media (min-width: 768px) {
    .form-row .col-md-4 {
        width: calc(33.33% - 10px);
    }

    .form-row .col-md-6 {
        width: calc(50% - 7.5px);
    }

    .form-row .col-md-8 {
        width: calc(66.66% - 5px);
    }
}

/* Text utilities */
.text-muted {
    color: var(--text-muted);
}

/* Button lg */
.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

/* ===== Pricing Section Styles ===== */
.pricing-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(42, 157, 143, 0.05) 50%, var(--bg-color) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(42, 157, 143, 0.2);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 25px 50px rgba(212, 168, 67, 0.25);
}

.pricing-card.featured::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--secondary-color), #f0c14b);
}

.pricing-card.featured::after {
    content: 'Mas Popular';
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--secondary-color), #f0c14b);
    color: #000;
    padding: 8px 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.pricing-card.featured .price {
    color: var(--secondary-color);
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    min-height: 50px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(42, 157, 143, 0.15);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.pricing-card.featured ul li::before {
    background: rgba(212, 168, 67, 0.15);
    color: var(--secondary-color);
}

.pricing-card .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pricing-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Empty Plans State */
.pricing-grid:empty::after {
    content: 'No hay planes disponibles en este momento.';
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Responsive pricing */
@media (max-width: 992px) {
    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-card .price {
        font-size: 2.8rem;
    }

    .pricing-card.featured::after {
        top: 15px;
        right: -40px;
        padding: 6px 40px;
        font-size: 10px;
    }
}

/* ===== Content View Page ===== */
.content-view-page {
    padding: 100px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-view-header {
    margin-bottom: 30px;
}

.content-view-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.content-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.content-player {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    aspect-ratio: 16 / 9;
}

.content-player video,
.content-player iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-description {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.content-description h3 {
    margin-bottom: 15px;
}

.related-content {
    margin-top: 40px;
}

.related-content h3 {
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* ===== Content Grid & Cards ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.content-card .thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.content-card .content-info {
    padding: 20px;
}

.content-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.content-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.content-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

/* Badge Variants */
.badge-free {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-beginner {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-intermediate {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

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

/* Alert info */
.alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 15px 20px;
    border-radius: var(--radius);
}

/* Text gold */
.text-gold {
    color: var(--secondary-color);
}