/* ===== VARIABLES CSS ===== */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --primary-color: #f53003;
    --primary-gradient: linear-gradient(90deg, #f53003 0%, #ff8c42 100%);
    --secondary-color: #ff8c42;
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f8fafc;
    --border-color: #f0f0f0;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.lead {
    font-weight: 400;
    font-size: 1.25rem;
}

.navbar-brand,
.btn,
.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ===== TYPOGRAPHY RESPONSIVE ===== */
h1,
.h1 {
    font-size: calc(1.5rem + 1.5vw);
    line-height: 1.2;
}

h2,
.h2 {
    font-size: calc(1.3rem + 1.1vw);
    line-height: 1.25;
}

h3,
.h3 {
    font-size: calc(1.1rem + 0.8vw);
    line-height: 1.3;
}

.lead {
    font-size: calc(1rem + 0.3vw);
    line-height: 1.5;
}

.section-title {
    font-size: calc(1.4rem + 1.2vw) !important;
    margin-bottom: 2rem !important;
    color: var(--primary-color);
}

.card-title {
    font-size: calc(1rem + 0.4vw);
    font-weight: 600;
    color: var(--text-dark);
}

.card-text {
    font-size: calc(0.9rem + 0.1vw);
}

.btn {
    font-size: calc(0.8rem + 0.3vw);
    padding: 0.5rem 1.25rem;
}

.btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: calc(0.9rem + 0.3vw) !important;
}

/* ===== COMPONENTS ===== */

/* Cards */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy) !important;
}

/* Buttons */
.btn-main {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 2rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-main:hover,
.btn-main:focus {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 48, 3, 0.3);
}

.btn-outline-main {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-main:hover,
.btn-outline-main:focus {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: rgba(245, 48, 3, 0.05);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    height: 70px;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    height: 100%;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.mobile-bottom-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(245, 48, 3, 0.05);
}

.mobile-bottom-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(245, 48, 3, 0.1);
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-link:hover i,
.mobile-bottom-nav .nav-link.active i {
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-link span {
    font-size: 0.7rem;
    line-height: 1;
}

/* Ajuster le padding bottom pour le contenu principal sur mobile */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }

    main {
        padding-bottom: 70px;
    }
}

/* ===== MAIN SITE NAVBAR ===== */
.navbar {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px 0 rgba(245, 48, 3, 0.08);
}

.navbar .navbar-brand {
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Centrer le menu de navigation */
.navbar .navbar-nav {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.navbar .navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: white !important;
    opacity: 0.9;
}

.navbar .nav-link.active {
    color: white !important;
    position: relative;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: white;
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--primary-color) !important;
    background-color: rgba(245, 48, 3, 0.05);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Pour le bouton de déconnexion sur mobile */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        width: auto;
        justify-content: flex-start;
    }
}

/* ===== ADMIN LAYOUT ===== */
body {
    background: var(--bg-light);
}

.sidebar {
    background: white;
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    box-shadow: 2px 0 8px 0 rgba(245, 48, 3, 0.03);
}

.sidebar .nav-link,
.nav-link-admin {
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: background 0.2s, color 0.2s;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    color: #4a5568 !important;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    margin: 0.125rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover,
.nav-link-admin:hover,
.nav-link-admin:focus {
    background: var(--primary-gradient);
    color: white !important;
}

.nav-link-admin.active {
    background-color: var(--primary-color);
    color: white !important;
}

.nav-link-admin i {
    width: 1.25rem;
    text-align: center;
}

.nav-link-admin.active i {
    color: white;
}

.nav-link-admin.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.sidebar .sidebar-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.navbar {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px 0 rgba(245, 48, 3, 0.08);
}

.navbar .navbar-brand {
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar .dropdown-menu {
    min-width: 180px;
}

.content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.sidebar .nav-link svg {
    margin-right: 8px;
    vertical-align: middle;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff2f2;
}

/* ===== FEATURE CARDS ===== */
.feature-game,
.feature-access,
.feature-certified {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1), rgba(255, 140, 66, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-bg {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.2), rgba(255, 140, 66, 0.2));
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.feature-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
}

.feature-text {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Styles spécifiques pour chaque carte */
.feature-game,
.feature-access,
.feature-certified {
    border-top: 4px solid var(--primary-color);
}

/* Animation au survol */
.feature-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05), rgba(255, 140, 66, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Styles pour les éléments statistiques */
.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(245, 48, 3, 0.1),
            rgba(245, 48, 3, 0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 0;
    padding: 1rem;
    text-align: center;
}

/* Suppression des styles spécifiques inutiles car même couleur pour tous */

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.feature-access .stat-number {
    color: var(--primary-color);
}

.feature-certified .stat-number {
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Grille d'appareils */
.device-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.device-item {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(245, 48, 3, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover .device-item {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Badge certifié */
.badge-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1), rgba(245, 48, 3, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 0;
    padding: 1rem;
    text-align: center;
}

.badge-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation au survol des cartes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== STYLES DES CATÉGORIES ===== */
.categories {
    position: relative;
    overflow: hidden;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.03), rgba(255, 140, 66, 0.03));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-image {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon i,
.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.category-card:hover .category-content h3 {
    color: var(--primary-color);
}

.category-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===== STYLES DU PROFIL ===== */
.profile-container {
    padding: 2rem 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 72px);
}

.profile-header {
    position: relative;
    margin-bottom: 6rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1), rgba(255, 140, 66, 0.1));
    border-radius: 0 0 30% 30%;
    overflow: hidden;
}

.avatar-profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: -75px auto 1.5rem;
    z-index: 2;
    background-color: #fff;
    object-fit: cover;
}

.profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.profile-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-card .card-header h5 i {
    font-size: 1.25rem;
}

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

.personal-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.personal-info p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.personal-info i {
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

.credits-badge {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(245, 48, 3, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin: 0.5rem 0;
}

.transaction-item,
.consultation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.transaction-item:last-child,
.consultation-item:last-child {
    border-bottom: none;
}

.transaction-item i,
.consultation-item i {
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.transaction-item p,
.consultation-item p {
    margin: 0;
    font-size: 0.9rem;
}

.transaction-item .badge {
    margin-left: auto;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
}

.btn-edit-profile {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

/* Animation des icônes */
.feature-card:hover .feature-icon {
    animation: float 3s ease-in-out infinite;
}

.feature-game:hover,
.feature-access:hover,
.feature-certified:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    color: white;
    font-size: 2rem;
}

.feature-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-devices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
}

/* ===== CONTENT CARDS ===== */
.content-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.content-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
}

.content-placeholder i {
    font-size: 3rem;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.content-card:hover .content-image img {
    transform: scale(1.05);
}

/* ===== TIMELINE & PROGRESS ===== */
.step-timeline {
    position: relative;
    padding: 2rem 0;
}

.step-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    background: var(--primary-gradient);
    z-index: 1;
    display: none;
}

@media (min-width: 768px) {
    .step-timeline::before {
        display: block;
    }
}

.step-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 0;
}

.step-circle-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(245, 48, 3, 0.3);
    margin: 0 auto;
    position: relative;
    transition: var(--transition);
}

.step-item:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 48, 3, 0.4);
}

.step-info {
    background: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-info {
    transform: translateY(-3px);
}

.step-item:hover .step-info::before {
    opacity: 1;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: white;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 102, 0, 0.1);
    transform: translateY(0);
}

.stats-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.15);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(214, 69, 0, 0.9) 0%,
            rgba(255, 140, 0, 0.95) 50%,
            rgba(214, 69, 0, 0.9) 100%);
    background-size: 200% 200%;
    z-index: 1;
    opacity: 0.97;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientPulse 10s ease infinite;
}

.stats-section:hover::before {
    opacity: 1;
    animation: gradientPulse 5s ease infinite;
    background: linear-gradient(-45deg,
            rgba(255, 102, 0, 0.9) 0%,
            rgba(255, 165, 0, 0.95) 25%,
            rgba(255, 102, 0, 0.9) 50%,
            rgba(255, 165, 0, 0.95) 75%,
            rgba(255, 102, 0, 0.9) 100%);
    background-size: 200% 200%;
}

@keyframes gradientPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stat-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.stats-section:hover .stat-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.stat-number h3 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: white;
    font-weight: bold;
}

.stat-label p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.stat-description p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== PROGRESS BARS ===== */
.level-progress .progress {
    height: 10px;
    background-color: var(--bg-light);
    border-radius: 5px;
}

.level-progress .progress-bar {
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

.progress-label {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

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

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

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.testimonial-author h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.badge i {
    animation: float 2s ease-in-out infinite;
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-light {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
}

.object-fit-cover {
    object-fit: cover;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 576px) {

    h1,
    .h1 {
        font-size: 1.75rem;
    }

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

    .lead {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.4rem 1rem;
    }

    .sidebar {
        min-height: auto;
    }
}

@media (min-width: 576px) and (max-width: 992px) {

    h1,
    .h1 {
        font-size: 2.25rem;
    }

    h2,
    .h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .step-timeline {
        padding: 40px 0;
    }

    .step-item {
        display: flex;
        align-items: center;
        margin-bottom: 60px;
    }

    .step-circle-wrapper {
        margin-bottom: 0;
        flex: 0 0 auto;
        width: 60px;
    }

    .step-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .step-info {
        flex: 1;
        margin: 0 30px;
    }

    .step-item:nth-child(odd) .step-info {
        margin-left: 40px;
        margin-right: 0;
    }

    .step-item:nth-child(even) .step-info {
        margin-right: 40px;
        margin-left: 0;
    }

    .step-item:nth-child(even) {
        flex-direction: row-reverse;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        min-height: auto;
    }
}

/* ===== CONTENT PAGE STYLES ===== */
.content-hero {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
    padding: 4rem 0;
}

.content-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.content-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    min-width: 100px;
}

.content-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.content-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Filters Card */
.filters-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    overflow: hidden;
    position: sticky;
    top: 2rem;
}

.filters-card .card-header {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.filters-card .card-header h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

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

/* Filter Groups */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.875rem;
}

.filter-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 48, 3, 0.25);
}

.filter-actions {
    margin-top: 2rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

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

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover .content-img {
    transform: scale(1.05);
}

.content-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

/* Card Badges */
.card-badges {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.badge-credits {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.badge-views {
    background: rgba(13, 110, 253, 0.9);
    color: white;
}

.badge-langue {
    background: rgba(25, 135, 84, 0.9);
    color: white;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-meta {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.meta-item {
    display: inline-block;
    background: rgba(245, 48, 3, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-actions {
    margin-top: auto;
}

.card-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    color: var(--primary-color);
    font-size: 2rem;
}

.empty-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-hero {
        padding: 2rem 0;
    }

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

    .content-stats .stat-item {
        min-width: auto;
    }

    .filters-card {
        position: static;
        margin-bottom: 2rem;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        height: calc(100% - 180px);
    }
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-hero {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
    padding: 4rem 0;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.avatar-img:hover {
    transform: scale(1.05);
}

.avatar-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: var(--shadow-light);
}

.avatar-status i {
    color: white;
    font-size: 0.8rem;
}

/* Profile Cards */
.profile-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    transition: var(--transition);
    overflow: hidden;
}

.profile-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.profile-card .card-header {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.profile-card .card-header h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

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

/* Info Items */
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--primary-color);
    font-size: 1rem;
}

.info-content {
    flex: 1;
}

.info-content label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.info-content p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

/* Credits Display */
.credits-display {
    text-align: center;
    padding: 1rem 0;
}

.credits-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.credits-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.credits-actions {
    margin-top: 1.5rem;
}

/* Transactions List */
.transactions-list {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 35px;
    height: 35px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.transaction-icon i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.transaction-details {
    flex: 1;
}

.transaction-amount {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

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

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: none;
}

.stat-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Consultations List */
.consultations-list {
    max-height: 400px;
    overflow-y: auto;
}

.consultation-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.consultation-item:hover {
    background: rgba(245, 48, 3, 0.02);
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.consultation-item:last-child {
    border-bottom: none;
}

.consultation-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.consultation-icon i {
    color: var(--primary-color);
    font-size: 1rem;
}

.consultation-details {
    flex: 1;
}

.consultation-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

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

.consultation-type {
    background: rgba(245, 48, 3, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.consultation-actions {
    margin-left: 1rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    color: var(--primary-color);
    font-size: 2rem;
}

.empty-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-subtext {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-hero {
        padding: 2rem 0;
    }

    .avatar-img {
        width: 120px;
        height: 120px;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .consultation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .consultation-actions {
        margin-left: 0;
        width: 100%;
    }

    .consultation-actions .btn {
        width: 100%;
    }
}

/* ===== GENERAL STYLES ===== */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.btn-main {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
    text-decoration: none;
}

.text-main {
    color: var(--primary-color) !important;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.section-title-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-badge {
    background: rgba(245, 48, 3, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITIES ===== */
.shadow-custom {
    box-shadow: var(--shadow-light);
}

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

.transition-all {
    transition: var(--transition);
}

/* ===== CONTENT DETAIL PAGE STYLES ===== */
.content-detail-hero {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.05) 0%, rgba(255, 140, 66, 0.02) 100%);
    padding: 4rem 0;
    position: relative;
}

.content-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: white;
}

.content-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.content-detail-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 4rem;
}

.content-info {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    height: 100%;
}

.content-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-type {
    background: rgba(245, 48, 3, 0.9);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
}

.badge-credits {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
}

.badge-langue {
    background: rgba(25, 135, 84, 0.9);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
}

.content-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.content-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-levels {
    margin-bottom: 2rem;
}

.levels-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.levels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.level-badge {
    background: rgba(245, 48, 3, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(245, 48, 3, 0.2);
}

.content-actions {
    margin-top: 2rem;
}

.credits-info {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.credits-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.credits-text {
    font-weight: 600;
    color: #856404;
    font-size: 1.1rem;
}

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

.login-required .alert {
    margin-bottom: 1rem;
    border: none;
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
}

/* Content Preview Card */
.content-preview-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.content-preview-card .card-header {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.content-preview-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
}

.content-preview-card .card-body {
    padding: 2rem;
}

.content-preview-wrapper {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 300px;
}

.content-preview {
    padding: 1rem;
    background: #f8f9fa;
    min-height: 300px;
}

.content-preview iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
}

.content-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
    background: #f8f9fa;
}

.content-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Sidebar Cards */
.content-stats-card,
.content-info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.content-stats-card .card-header,
.content-info-card .card-header {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.content-stats-card .card-title,
.content-info-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.content-stats-card .card-body,
.content-info-card .card-body {
    padding: 1.5rem;
}

/* Stats Items */
.stat-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.stat-icon i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Info Items */
.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 48, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--primary-color);
    font-size: 1rem;
}

.info-content {
    flex: 1;
}

.info-content label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.info-content p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: linear-gradient(135deg, rgba(245, 48, 3, 0.1) 0%, rgba(255, 140, 66, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-dark);
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-detail-hero {
        padding: 2rem 0;
    }

    .content-title {
        font-size: 2rem;
    }

    .content-detail-img,
    .content-detail-placeholder {
        height: 250px;
    }

    .content-info {
        padding: 1.5rem;
    }

    .content-badges {
        justify-content: center;
    }

    .levels-list {
        justify-content: center;
    }

    .content-preview-card .card-body {
        padding: 1rem;
    }

    .content-preview iframe {
        height: 300px;
    }
}
