/* -------------------
   VARIABLES & SETUP
------------------- */
:root {
    --bg-color: #05050A;
    --bg-secondary: #0A0A12;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --primary: #4361EE;
    --secondary: #7209B7;
    --accent: #F72585;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* -------------------
   TYPOGRAPHY & UTILS
------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(67, 97, 238, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

/* -------------------
   BUTTONS
------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #25D366; /* WhatsApp Color */
    color: #fff;
}

.btn-secondary:hover {
    background: #1EBE5A;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* -------------------
   HEADER / NAV
------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1002;
    padding: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--glass-border);
}

.mobile-menu.active {
    right: 0;
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-size: 1.2rem;
    font-weight: 500;
}

/* -------------------
   HERO SECTION
------------------- */
.hero {
    position: relative;
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.3) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-bg-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.2) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    padding: 1rem;
    padding-bottom: 0.5rem;
}

.image-wrapper img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.floating-badge {
    position: absolute;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: -20px;
    right: -20px;
    color: #25D366;
}

.floating-badge.badge-2 {
    bottom: 20px;
    left: -30px;
    color: var(--accent);
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* -------------------
   DESAFIOS SECTION
------------------- */
.desafios {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    text-align: left;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.red {
    background: rgba(247, 37, 133, 0.1);
    color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* -------------------
   SOLUÇÕES SECTION
------------------- */
.solucoes {
    padding: 8rem 0;
}

.solucoes-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solucoes-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.solucoes-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.check-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tool-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.tool-card:hover i {
    color: var(--primary);
}

/* -------------------
   CTA SECTION
------------------- */
.cta-section {
    padding: 4rem 0 8rem;
}

.cta-card {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------
   FOOTER
------------------- */
footer {
    background: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

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

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

/* -------------------
   ANIMATIONS (SCROLL REVEAL)
------------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* -------------------
   RESPONSIVE DESIGN
------------------- */
@media (max-width: 992px) {
    .hero-container, .solucoes-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .check-list {
        align-items: center;
    }
    
    .floating-badge {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand p {
        margin: 1rem auto 0;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .desktop-nav, header .btn-outline {
        display: none;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding-top: 8rem;
    }

    .section-header h2, .solucoes-text h2, .cta-card h2 {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 3rem 1.5rem;
    }
}

/* -------------------
   SUB-PAGES STYLES
------------------- */
.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(5, 5, 10, 1) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--glass-border);
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 6rem 0;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.text-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: var(--text-secondary);
}

.text-content li {
    margin-bottom: 0.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    text-align: center;
    padding: 1rem;
}

.project-card .img-placeholder {
    width: 100%;
    height: 200px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}
/* -------------------
   CLIENTS SECTION
------------------- */
.clients-section {
    padding: 4rem 0;
    background: var(--bg-color);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.clients-section .section-header {
    margin-bottom: 3rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.client-logo, .integration-logo {
    width: 130px; /* Tamanho fixo para garantir que todas as caixas fiquem iguais */
    height: 55px; /* Tamanho fixo */
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover, .integration-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* -------------------
   INTEGRATIONS SECTION
------------------- */
.integrations-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.integrations-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.integration-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}



/* -------------------
   CLIENTS SECTION (AJUSTE)
------------------- */
.clients-section {
    padding: 6rem 0;
    background: var(--bg-color);
    border-top: 1px solid var(--glass-border);
}

.clients-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* -------------------
   RESPONSIVE DESIGN (UPDATES)
------------------- */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===================================
   TRAINING PAGE STYLES
=================================== */
.nav-active {
    color: var(--primary) !important;
}

.training-hero {
    position: relative;
    overflow: hidden;
}

.training-hero .badge {
    margin-bottom: 1.5rem;
}

.training-hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Stats */
.training-stats {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Course Catalog */
.courses-catalog {
    padding: 6rem 0;
}

.courses-filter {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
}

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

.courses-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

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

/* Course Card */
.course-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
}

.course-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(114, 9, 183, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary);
}

.course-badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-badge-level {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.course-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.course-meta i {
    margin-right: 0.3rem;
    color: var(--primary);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.course-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #10b981;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Benefits */
.training-benefits {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

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

.benefit-card .icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(114, 9, 183, 0.15));
    color: var(--primary);
    font-size: 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 0.8rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===================================
   AUTH PAGES
=================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
}

.auth-card {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem;
}

.auth-card:hover {
    transform: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 0.3rem;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-group select option {
    background: var(--bg-color);
}

.form-group textarea {
    resize: vertical;
}

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

.btn-full {
    width: 100%;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    background: var(--bg-color);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--accent);
}

/* ===================================
   MEMBERS AREA
=================================== */
.member-header {
    background: rgba(5, 5, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.member-greeting {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-badge {
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.member-dashboard {
    padding: 8rem 0 4rem;
    min-height: 100vh;
}

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

.dashboard-header h1 {
    font-size: 2.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* My Courses Grid */
.my-courses-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-course-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
}

.my-course-card:hover {
    border-color: var(--primary);
}

.my-course-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(114, 9, 183, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.my-course-info {
    flex: 1;
}

.my-course-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.my-course-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s;
}

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

/* Progress Bar */
.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-bar-wrapper span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 35px;
}

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

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

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===================================
   COURSE PLAYER
=================================== */
.course-player {
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

.player-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}

.player-main {
    min-width: 0;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    gap: 1rem;
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary);
}

.lesson-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lesson-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Player Sidebar */
.player-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
    top: 6rem;
}

.player-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.player-sidebar-header h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.module-item {
    border-bottom: 1px solid var(--glass-border);
}

.module-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.module-header i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.lessons-list {
    padding: 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.lesson-item:hover {
    background: rgba(67, 97, 238, 0.08);
}

.lesson-item.active {
    background: rgba(67, 97, 238, 0.12);
    border-left: 3px solid var(--primary);
}

.lesson-item.completed .lesson-status {
    color: #10b981;
}

.lesson-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.lesson-text {
    flex: 1;
    min-width: 0;
}

.lesson-name {
    display: block;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.lesson-duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.lesson-free-badge {
    padding: 0.15rem 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===================================
   ADMIN PANEL
=================================== */
.admin-section {
    padding: 7rem 0 4rem;
    min-height: 100vh;
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

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

.stat-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0;
}

.admin-tab {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.admin-tab:hover, .admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-toolbar h2 {
    font-size: 1.5rem;
}

.admin-toolbar h3 {
    font-size: 1.2rem;
}

.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.table-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(67, 97, 238, 0.15);
    color: var(--primary);
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

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

.badge-purple {
    background: rgba(114, 9, 183, 0.15);
    color: #a855f7;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

/* Admin Modules Manager */
.admin-module {
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
}

.admin-module:hover {
    transform: none;
}

.admin-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.admin-module-header h4 {
    font-size: 1rem;
}

.admin-module-header h4 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.admin-lessons {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.5rem;
}

.admin-lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

/* ===================================
   MODALS
=================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal:hover {
    transform: none;
}

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

.modal-header h3 {
    font-size: 1.3rem;
}

.modal-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-header button:hover {
    color: var(--text-primary);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS (NEW)
=================================== */
@media (max-width: 992px) {
    .player-layout {
        grid-template-columns: 1fr;
    }
    .player-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .training-hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    .dashboard-header h1 {
        font-size: 2rem;
    }
    .my-course-card {
        flex-direction: column;
        text-align: center;
    }
    .my-course-action {
        display: none;
    }
    .member-actions {
        display: none;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .admin-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
