/* ===== CSS VARIABLES ===== */
        :root {
            --primary-red: #CC0000;
            --primary-red-bright: #E80000;
            --primary-yellow: #FFD700;
            --primary-yellow-dark: #E6C200;
            --dark-bg: #0D1117;
            --dark-secondary: #161B22;
            --dark-tertiary: #21262D;
            --text-primary: #FFFFFF;
            --text-secondary: #C9D1D9;
            --text-muted: #8B949E;
            --gradient-red: linear-gradient(135deg, #CC0000 0%, #FF4444 100%);
            --gradient-yellow: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            --gradient-red-yellow: linear-gradient(135deg, #CC0000 0%, #FFD700 100%);
            --gradient-cultural: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
            --gradient-hero: linear-gradient(135deg, rgba(204, 0, 0, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

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

        html {
            scroll-behavior: smooth;
        }

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

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            line-height: 1.2;
        }

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

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

        button {
            font-family: inherit;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }

        /* ===== UTILITY CLASSES ===== */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section-padding {
            padding: 100px 0;
        }

        .btn {
            display: inline-block;
            padding: 14px 32px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 16px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

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

        .btn-primary:hover {
            background: var(--primary-red-bright);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(204, 0, 0, 0.4);
        }

        .btn-yellow {
            background: var(--primary-yellow);
            color: #1a1a1a;
            font-weight: 700;
        }

        .btn-yellow:hover {
            background: var(--primary-yellow-dark);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

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

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

        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ===== HEADER & NAVBAR ===== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: var(--transition);
            background: transparent;
        }

        header.scrolled {
            background: rgba(13, 17, 23, 0.97);
            backdrop-filter: blur(20px);
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid rgba(204, 0, 0, 0.2);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 0;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 26px;
            font-weight: 800;
            font-family: 'Poppins', sans-serif;
            color: white;
        }

        .logo-img {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: contain;
        }

        .logo-text span {
            display: block;
            font-size: 9px;
            font-weight: 400;
            color: var(--primary-yellow);
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .nav-links {
            display: flex;
            gap: 35px;
            list-style: none;
            align-items: center;
        }

        .nav-links a {
            color: var(--text-secondary);
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-red);
            transition: var(--transition);
        }

        .nav-links a:hover {
            color: white;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links li {
            position: relative;
            padding-bottom: 10px; /* cobre o gap entre o item e o submenu */
        }

        .submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: rgba(13, 17, 23, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(204, 0, 0, 0.3);
            border-radius: 12px;
            padding: 10px 0 15px 0; /* padding-top substitui margin-top para não criar gap */
            min-width: 250px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            list-style: none;
            margin-top: 0; /* era 10px — esse gap fazia o menu fechar ao mover o mouse */
            animation: slideDown 0.3s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

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

        .nav-links li:hover .submenu {
            display: flex;
            flex-direction: column;
        }

        .submenu li {
            padding: 0;
        }

        .submenu a {
            display: block;
            padding: 12px 20px;
            color: var(--text-secondary);
            font-weight: 500;
            transition: var(--transition);
            border-left: 3px solid transparent;
        }

        .submenu a:hover {
            color: white;
            background: rgba(204, 0, 0, 0.1);
            border-left-color: var(--primary-red);
            padding-left: 23px;
        }

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

        .btn-login {
            color: white;
            font-weight: 600;
            padding: 10px 20px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: var(--transition);
        }

        .btn-login:hover {
            border-color: var(--primary-yellow);
            color: var(--primary-yellow);
            background: rgba(255, 215, 0, 0.05);
        }

        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 1001;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: white;
            border-radius: 3px;
            transition: var(--transition);
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(8px, -8px);
        }

        /* ===== HERO SECTION ===== */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: var(--dark-bg);
            padding-top: 80px;
        }

        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(ellipse at top left, rgba(204, 0, 0, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(255, 215, 0, 0.15), transparent 50%),
                radial-gradient(circle at center, rgba(204, 0, 0, 0.08), transparent 70%);
            z-index: 0;
        }

        .hero-shapes {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.25;
            animation: float 20s infinite ease-in-out;
        }

        .shape-1 {
            width: 500px;
            height: 500px;
            background: var(--primary-red);
            top: -200px;
            left: -200px;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 400px;
            height: 400px;
            background: var(--primary-yellow);
            bottom: -150px;
            right: -150px;
            animation-delay: 5s;
        }

        .shape-3 {
            width: 300px;
            height: 300px;
            background: #CC0000;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation-delay: 10s;
        }

        @keyframes float {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
            }

            33% {
                transform: translate(50px, -50px) scale(1.1);
            }

            66% {
                transform: translate(-50px, 50px) scale(0.9);
            }
        }

        .hero-content {
            position: relative;
            z-index: 1;
            text-align: center;
            max-width: 900px;
            padding: 0 20px;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(204, 0, 0, 0.15);
            color: #FF6666;
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 30px;
            border: 1px solid rgba(204, 0, 0, 0.3);
        }

        .hero h1 {
            font-size: clamp(40px, 6vw, 72px);
            margin-bottom: 25px;
            background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-yellow) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-size: clamp(18px, 2vw, 24px);
            color: var(--text-secondary);
            margin-bottom: 40px;
            line-height: 1.6;
        }

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

        .typewriter {
            display: inline-block;
            border-right: 3px solid var(--primary-yellow);
            animation: blink 0.7s infinite;
        }

        @keyframes blink {

            0%,
            50% {
                border-color: var(--primary-yellow);
            }

            51%,
            100% {
                border-color: transparent;
            }
        }

        /* ===== STATS SECTION ===== */
        .stats {
            background: var(--dark-secondary);
            padding: 60px 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            text-align: center;
        }

        .stat-item {
            padding: 20px;
        }

        .stat-number {
            font-size: 48px;
            font-weight: 800;
            background: var(--gradient-red-yellow);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 16px;
            font-weight: 500;
        }

        /* ===== COURSES FEATURED SECTION ===== */
        .courses-featured {
            background: var(--dark-bg);
            position: relative;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title {
            font-size: clamp(32px, 4vw, 48px);
            margin-bottom: 15px;
        }

        .section-subtitle {
            color: var(--text-secondary);
            font-size: 18px;
            max-width: 600px;
            margin: 0 auto;
        }

        .section-accent {
            color: var(--primary-yellow);
        }

        .courses-carousel {
            position: relative;
            overflow: hidden;
            padding: 20px 0;
        }

        .courses-track {
            display: flex;
            gap: 30px;
            transition: transform 0.5s ease;
        }

        .course-card {
            min-width: 400px;
            background: var(--dark-secondary);
            border-radius: 16px;
            overflow: hidden;
            transition: var(--transition);
            cursor: pointer;
            box-shadow: var(--shadow);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .course-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: var(--shadow-hover);
            border-color: rgba(204, 0, 0, 0.3);
        }

        .course-banner {
            height: 250px;
            position: relative;
            overflow: hidden;
        }

        .course-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
            z-index: 1;
        }

        .banner-empreendedorismo {
            background: linear-gradient(135deg, #CC0000 0%, #FF6B35 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .banner-agroecologia {
            background: linear-gradient(135deg, #8B0000 0%, #CC0000 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .banner-cultural {
            background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .banner-icon {
            font-size: 80px;
            opacity: 0.3;
            position: absolute;
        }

        .course-content {
            padding: 25px;
        }

        .course-tags {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .tag {
            background: rgba(204, 0, 0, 0.2);
            color: #FF8888;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .tag-yellow {
            background: rgba(255, 215, 0, 0.15);
            color: var(--primary-yellow);
        }

        .course-title {
            font-size: 22px;
            margin-bottom: 12px;
            color: white;
        }

        .course-description {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .course-rating {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stars {
            color: var(--primary-yellow);
            font-size: 14px;
        }

        .rating-number {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .course-students {
            color: var(--text-secondary);
            font-size: 14px;
        }

        /* ===== DETAILED COURSES SECTION ===== */
        .courses-detailed {
            background: var(--dark-bg);
        }

        .detailed-courses-grid {
            display: grid;
            gap: 40px;
        }

        .detailed-card {
            background: var(--dark-secondary);
            border-radius: 20px;
            overflow: hidden;
            display: grid;
            grid-template-columns: 400px 1fr;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .detailed-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
            border-color: rgba(204, 0, 0, 0.3);
        }

        .detailed-banner {
            height: 100%;
            min-height: 300px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .detailed-content {
            padding: 40px;
        }

        .detailed-title {
            font-size: 32px;
            margin-bottom: 15px;
        }

        .detailed-description {
            color: var(--text-secondary);
            font-size: 16px;
            line-height: 1.8;
            margin-bottom: 25px;
        }

        .curriculum-list {
            list-style: none;
            margin-bottom: 30px;
        }

        .curriculum-list li {
            padding: 12px 0;
            padding-left: 30px;
            position: relative;
            color: var(--text-secondary);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .curriculum-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--primary-yellow);
            font-weight: bold;
            font-size: 18px;
        }

        .instructor-info {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: rgba(204, 0, 0, 0.1);
            border-radius: 12px;
            margin-bottom: 25px;
            border: 1px solid rgba(204, 0, 0, 0.2);
        }

        .instructor-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
        }

        .instructor-details h4 {
            font-size: 16px;
            margin-bottom: 3px;
        }

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

        /* ===== WHY UNIPOP SECTION ===== */
        .why-unipop {
            background: var(--dark-secondary);
        }

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

        .feature-card {
            text-align: center;
            padding: 40px 30px;
            background: var(--dark-tertiary);
            border-radius: 16px;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary-red);
            box-shadow: 0 20px 40px rgba(204, 0, 0, 0.2);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 25px;
            background: var(--gradient-red);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
        }

        .feature-title {
            font-size: 22px;
            margin-bottom: 15px;
        }

        .feature-description {
            color: var(--text-secondary);
            line-height: 1.8;
        }

        /* ===== TESTIMONIALS SECTION ===== */
        .testimonials {
            background: var(--dark-bg);
        }

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

        .testimonial-card {
            background: var(--dark-secondary);
            padding: 35px;
            border-radius: 16px;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .testimonial-card:hover {
            border-color: var(--primary-yellow);
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
        }

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

        .testimonial-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
        }

        .testimonial-info h4 {
            font-size: 18px;
            margin-bottom: 5px;
        }

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

        .testimonial-stars {
            color: var(--primary-yellow);
            margin-bottom: 15px;
            font-size: 18px;
        }

        .testimonial-text {
            color: var(--text-secondary);
            line-height: 1.8;
            font-style: italic;
        }

        /* ===== CTA SECTION ===== */
        .cta-section {
            background: linear-gradient(135deg, #CC0000 0%, #8B0000 100%);
            padding: 100px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            width: 500px;
            height: 500px;
            background: rgba(255, 215, 0, 0.1);
            border-radius: 50%;
            top: -200px;
            right: -200px;
        }

        .cta-section::after {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
            bottom: -100px;
            left: -100px;
        }

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

        .cta-title {
            font-size: clamp(32px, 4vw, 48px);
            margin-bottom: 20px;
        }

        .cta-subtitle {
            font-size: 20px;
            margin-bottom: 40px;
            opacity: 0.95;
        }

        /* ===== FOOTER ===== */
        footer {
            background: var(--dark-secondary);
            padding: 60px 0 30px;
            border-top: 2px solid rgba(204, 0, 0, 0.3);
        }

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

        .footer-brand {
            max-width: 350px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 20px;
        }

        .footer-description {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 25px;
        }

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

        .social-link {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .social-link:hover {
            background: var(--primary-red);
            transform: translateY(-3px);
        }

        .footer-column h3 {
            font-size: 18px;
            margin-bottom: 20px;
            color: var(--primary-yellow);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

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

        .footer-links a:hover {
            color: var(--primary-red);
            padding-left: 5px;
        }

        .footer-bottom {
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            color: var(--text-muted);
        }

        /* ===== SCROLL TO TOP ===== */
        .scroll-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary-red);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
            box-shadow: var(--shadow);
        }

        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-top:hover {
            background: var(--primary-red-bright);
            transform: translateY(-5px);
        }

        /* ===== MODAL BASE ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(8px);
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: var(--dark-secondary);
            border-radius: 20px;
            padding: 50px 45px;
            width: 100%;
            max-width: 480px;
            position: relative;
            border: 1px solid rgba(204, 0, 0, 0.3);
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
            animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.85) translateY(-20px);
            }

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

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-muted);
            font-size: 18px;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: var(--primary-red);
            color: white;
        }

        .modal-logo {
            text-align: center;
            margin-bottom: 30px;
        }

        .modal-logo img {
            width: 70px;
            height: 70px;
            margin: 0 auto 12px;
            border-radius: 50%;
        }

        .modal-logo h2 {
            font-size: 26px;
            margin-bottom: 5px;
        }

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

        .modal-logo p {
            color: var(--text-muted);
            font-size: 15px;
        }

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

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

        .form-input {
            width: 100%;
            padding: 14px 16px;
            background: var(--dark-tertiary);
            border: 1.5px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: white;
            font-size: 15px;
            font-family: inherit;
            transition: var(--transition);
            outline: none;
        }

        .form-input:focus {
            border-color: var(--primary-red);
            box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.15);
        }

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

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

        .form-submit {
            width: 100%;
            padding: 16px;
            background: var(--primary-red);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 5px;
        }

        .form-submit:hover {
            background: var(--primary-red-bright);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(204, 0, 0, 0.4);
        }

        .modal-divider {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 22px 0;
            color: var(--text-muted);
            font-size: 13px;
        }

        .modal-divider::before,
        .modal-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        .modal-switch {
            text-align: center;
            color: var(--text-muted);
            font-size: 14px;
            margin-top: 20px;
        }

        .modal-switch a {
            color: var(--primary-yellow);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .modal-switch a:hover {
            color: white;
        }

        .form-forgot {
            text-align: right;
            margin-top: -12px;
            margin-bottom: 16px;
        }

        .form-forgot a {
            color: var(--primary-yellow);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
        }

        .form-forgot a:hover {
            text-decoration: underline;
        }

        .password-wrapper {
            position: relative;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: var(--text-muted);
            font-size: 18px;
            user-select: none;
        }

        .password-toggle:hover {
            color: white;
        }

        .terms-check {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 20px;
        }

        .terms-check input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary-red);
            margin-top: 3px;
            cursor: pointer;
        }

        .terms-check label {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.5;
            cursor: pointer;
        }

        .terms-check label a {
            color: var(--primary-yellow);
        }

        /* Success message */
        .alert {
            padding: 14px 18px;
            border-radius: 10px;
            margin-bottom: 20px;
            font-size: 14px;
            font-weight: 500;
            display: none;
        }

        .alert.show {
            display: block;
        }

        .alert-success {
            background: rgba(0, 200, 83, 0.15);
            border: 1px solid rgba(0, 200, 83, 0.3);
            color: #4CAF50;
        }

        .alert-error {
            background: rgba(204, 0, 0, 0.15);
            border: 1px solid rgba(204, 0, 0, 0.3);
            color: #FF6666;
        }

        /* ===== ÁREA DO ALUNO ===== */
        .student-area {
            display: none;
            min-height: 100vh;
            background: var(--dark-bg);
            padding-top: 80px;
        }

        .student-area.active {
            display: block;
        }

        .student-topbar {
            background: var(--dark-secondary);
            border-bottom: 1px solid rgba(204, 0, 0, 0.2);
            padding: 0;
        }

        .student-topbar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 0;
        }

        .student-welcome {
            font-size: 15px;
            color: var(--text-secondary);
        }

        .student-welcome strong {
            color: var(--primary-yellow);
        }

        .student-nav {
            display: flex;
            gap: 5px;
        }

        .student-nav-btn {
            padding: 9px 18px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            background: transparent;
            color: var(--text-secondary);
            border: none;
        }

        .student-nav-btn.active,
        .student-nav-btn:hover {
            background: rgba(204, 0, 0, 0.2);
            color: white;
        }

        .student-nav-btn.active {
            color: var(--primary-yellow);
        }

        .student-content {
            padding: 50px 0;
        }

        /* Dashboard Cards */
        .dashboard-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }

        .dash-stat-card {
            background: var(--dark-secondary);
            border-radius: 16px;
            padding: 28px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .dash-stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-red-yellow);
        }

        .dash-stat-card:hover {
            transform: translateY(-4px);
            border-color: rgba(204, 0, 0, 0.2);
        }

        .dash-stat-icon {
            font-size: 32px;
            margin-bottom: 12px;
        }

        .dash-stat-value {
            font-size: 36px;
            font-weight: 800;
            color: var(--primary-yellow);
            margin-bottom: 5px;
        }

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

        /* My Courses */
        .my-courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 25px;
        }

        .my-course-card {
            background: var(--dark-secondary);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.06);
            transition: var(--transition);
        }

        .my-course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .my-course-banner {
            height: 140px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 50px;
        }

        .my-course-body {
            padding: 22px;
        }

        .my-course-title {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .my-course-instructor {
            color: var(--text-muted);
            font-size: 13px;
            margin-bottom: 18px;
        }

        .progress-bar-wrap {
            background: var(--dark-tertiary);
            border-radius: 100px;
            height: 8px;
            margin-bottom: 8px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            border-radius: 100px;
            background: var(--gradient-red-yellow);
            transition: width 1s ease;
        }

        .progress-label {
            display: flex;
            justify-content: space-between;
            color: var(--text-muted);
            font-size: 12px;
            margin-bottom: 18px;
        }

        .my-course-footer {
            display: flex;
            gap: 10px;
        }

        .btn-continue {
            flex: 1;
            padding: 11px;
            background: var(--primary-red);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
        }

        .btn-continue:hover {
            background: var(--primary-red-bright);
        }

        .btn-cert {
            padding: 11px 16px;
            background: rgba(255, 215, 0, 0.15);
            color: var(--primary-yellow);
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-cert:hover {
            background: rgba(255, 215, 0, 0.25);
        }

        .btn-cert:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* Certificates */
        .certificates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 25px;
        }

        .certificate-card {
            background: var(--dark-secondary);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(255, 215, 0, 0.2);
            transition: var(--transition);
        }

        .certificate-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
        }

        .certificate-header {
            background: linear-gradient(135deg, #CC0000, #FFD700);
            padding: 30px;
            text-align: center;
        }

        .certificate-seal {
            font-size: 48px;
            margin-bottom: 10px;
        }

        .certificate-header h3 {
            font-size: 18px;
            color: white;
        }

        .certificate-body {
            padding: 25px;
        }

        .certificate-info {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 5px;
        }

        .certificate-info strong {
            color: white;
        }

        .certificate-date {
            color: var(--text-muted);
            font-size: 13px;
            margin-top: 15px;
            margin-bottom: 20px;
        }

        /* Profile Section */
        .profile-grid {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 30px;
        }

        .profile-card {
            background: var(--dark-secondary);
            border-radius: 16px;
            padding: 35px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.06);
            height: fit-content;
        }

        .profile-avatar-big {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: var(--gradient-red);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            font-weight: 800;
            margin: 0 auto 20px;
            border: 3px solid var(--primary-yellow);
        }

        .profile-name {
            font-size: 22px;
            margin-bottom: 5px;
        }

        .profile-email {
            color: var(--text-muted);
            font-size: 14px;
            margin-bottom: 20px;
        }

        .profile-badge {
            display: inline-block;
            background: rgba(204, 0, 0, 0.2);
            color: #FF8888;
            padding: 5px 14px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
        }

        .profile-stats {
            margin-top: 25px;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .profile-stat-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
        }

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

        .profile-stat-value {
            color: var(--primary-yellow);
            font-weight: 700;
            font-size: 14px;
        }

        .profile-edit-card {
            background: var(--dark-secondary);
            border-radius: 16px;
            padding: 35px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .profile-edit-card h3 {
            font-size: 22px;
            margin-bottom: 25px;
        }

        .profile-edit-card h3 span {
            color: var(--primary-yellow);
        }

        /* Tab panels */
        .tab-panel {
            display: none;
        }

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

        /* ===== TOAST NOTIFICATION ===== */
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--dark-secondary);
            color: white;
            padding: 14px 24px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14px;
            z-index: 99999;
            border: 1px solid rgba(204, 0, 0, 0.3);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            white-space: nowrap;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
        }

        .toast.success {
            border-color: rgba(0, 200, 83, 0.4);
        }

        .toast.error {
            border-color: rgba(204, 0, 0, 0.5);
        }

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

        

        

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }
    


            .courses-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 24px;
                margin-top: 40px;
            }


            .courses-grid-cursos {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
                margin-top: 40px;
            }


            .courses-grid-cursos-tendacultural {
                display: grid;
                grid-template-columns: repeat(1, 1fr);
                gap: 24px;
                margin-top: 40px;
            }

            /* Opcional: Se você já tem estilos base, eles serão respeitados. 
       Este bloco garante que o grid funcione mesmo sem CSS prévio. * /
            .course-card {
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                height: 100%;
                display: flex;
                flex-direction: column;
            }

            .course-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            }

            .course-banner img {
                width: 100%;
                height: 180px;
                object-fit: cover;
                display: block;
            }

            .course-content {
                padding: 20px;
                display: flex;
                flex-direction: column;
                flex: 1;
            }

            .course-description {
                flex: 1;
                margin-bottom: 15px;
            }

            /* Responsividade automática */
