@charset "UTF-8";

/* --- VARIÁVEIS E RESET GERAL --- */
:root {
    --preto: #0D0D0D;
    --cinza-chumbo: #2F2F2F;
    --branco: #FFFFFF;
    --cinza-claro: #f4f4f4;
    --vermelho-perigo: #dc3545;
    --cor-plyr: #0D0D0D;
    --gold-1: #caa566;
    --gold-2: #b38b3a;
    --silver-1: #d9d9d9;
    --silver-2: #bfbfbf;
    --fonte-principal: 'Roboto', sans-serif;
    --header-height: 70px;
    --sidebar-width-collapsed: 80px;
    --sidebar-width-expanded: 250px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    background-color: #EFEFEF;
    color: var(--cinza-chumbo);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--cinza-chumbo);
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    color: var(--preto);
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 650px;
    margin: -1.5rem auto 3rem auto;
    text-align: center;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.page-content {
    padding-top: var(--header-height);
}


/* --- HEADER --- */
header {
    background-image: linear-gradient(to right, var(--cinza-chumbo), var(--preto));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--branco);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--branco);
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

#nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

#nav-content {
    display: flex;
    align-items: center;
}

#nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

#nav-links a {
    color: var(--branco);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 700;
    white-space: nowrap;
}

#nav-links a:not(.btn):hover,
#nav-links a.active {
    color: var(--preto);
    background-color: var(--branco);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.header-actions .btn {
    white-space: nowrap;
}

.social-icons-header {
    display: flex;
    gap: 1rem;
}

.social-icons-header a {
    color: var(--branco);
}

.social-icons-header a:hover {
    color: #ccc;
    transform: scale(1.1);
}


/* --- MENU MOBILE --- */
#menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--branco);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--branco);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

#nav-menu.active .hamburger {
    background-color: transparent;
}

#nav-menu.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

#nav-menu.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-mobile-action {
    display: none;
}


/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-image: linear-gradient(45deg, var(--cinza-chumbo) 0%, var(--preto) 100%);
    color: var(--branco);
    border: none;
}

.btn-secondary {
    background-color: var(--branco);
    color: var(--preto);
    border: 1px solid var(--cinza-chumbo);
}

.btn-gold {
    background: linear-gradient(45deg, #d4af37, #caa566);
    color: var(--preto);
    border: none;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(45deg, #e6c84f, #d4af37);
    color: var(--preto);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

.btn-danger {
    background-image: linear-gradient(45deg, #c82333 0%, #a51825 100%);
    color: var(--branco);
    border: none;
}

.btn.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
}

.btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- HERO SECTION COM PARALLAX --- */
.hero {
    background-image: url('../imagens/banner.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--branco);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    position: relative;
    margin-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--branco);
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTAs só no HERO da home (o resto do site permanece igual) */
.hero .btn-primary {
    background: #d4af37;
    /* dourado */
    color: #111;
    border: 1px solid rgba(0, 0, 0, .15);
}

.hero .btn-primary:hover {
    filter: brightness(1.08);
}

.hero .btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .75);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
}


/* espaçamento entre botões do hero */
.hero .cta-buttons {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons .btn {
    margin: 0 10px;
}

/* --- BANNER RESPONSIVO PARA CELULAR (AJUSTE DE IMAGEM) --- */
@media (max-width: 768px) {
    .hero {
        background-image: url('../imagens/banner-mobile.png');
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;     /* <- importante para iPhone */
  }
}

@media (max-width: 992px) {
  .hero h1 { font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.15; }
  .hero .subtitle { font-size: 1.05rem; margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}

@media (max-width: 768px) {
  #nav-content {
    position: fixed;
    inset: 0;                 /* top/right/bottom/left:0 */
    background: rgba(0,0,0,.95);
  }
}

@supports (-webkit-touch-callout: none) {
  .hero { background-attachment: scroll; }
}

/* --- BOTÃO FLUTUANTE --- */
.fab-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background-image: linear-gradient(45deg, var(--cinza-chumbo) 0%, var(--preto) 100%);
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

@media (max-width: 600px) {
    .fab-home {
        width: 60px;
        height: 60px;
    }
}

.fab-home:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.fab-home .fab-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


/* --- SEÇÕES GERAIS --- */
.diferenciais {
    background-color: #EFEFEF;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.diferencial-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diferencial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

.diferencial-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.diferenciais .diferencial-card.destaque {
    background: linear-gradient(180deg, #fff7df, #f6e5b3);
    border: 1px solid #e8d28b;
    box-shadow: 0 16px 34px rgba(212, 175, 55, .25);
    max-width: 820px;
    margin: 0 auto 2rem;
    padding: 48px 36px;
    text-align: center;
}

.diferenciais .diferencial-card.destaque h3 {
    font-size: 1.6rem;
}

/* Prova Social */
.prova-social {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.prova-social h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.carousel-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 0 28px;
}

/* trilho dos cards */
.carousel-track {
    display: flex;
    gap: 30px;
    will-change: transform;
    transition: transform .4s ease;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    width: 260px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.testimonial-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.testimonial-content {
    padding: 15px;
    text-align: left;
}

.testimonial-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-content p {
    font-size: 0.9rem;
    color: #444;
}

/* Botões do carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
    transition: background .2s ease;
}

.carousel-btn:hover {
    background: #000;
}

.carousel-btn.prev {
    left: 6px;
}
.carousel-btn.next {
    right: 6px;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 80vw;
    }
}

/* COMO FUNCIONA – simples (título, vídeo e CTA) */
.como-funciona {
    background: #f6f6f6;
    padding: 80px 0;
}

.cf-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 22px;
    text-transform: none;
}

.video-wrapper {
    max-width: 980px;
    margin: 0 auto 24px auto;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

@supports not (aspect-ratio: 16 / 9) {
    .video-wrapper {
        position: relative;
        padding-top: 56.25%;
    }

    .video-frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

.cf-cta {
    text-align: center;
    margin-top: 10px;
}


/* RODAPE */

.site-footer {
    background: #111;
    color: #bbb;
    padding: 22px 0;
}

.site-footer .footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer .footer-links a {
    color: #ddd;
    margin-left: 14px;
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Sobre Nós */
.sobre-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
    grid-template-areas: "texto imagem";
}

.sobre-texto {
    grid-area: texto;
}

.sobre-grid .sobre-texto h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.sobre-imagem {
    grid-area: imagem;
    justify-self: end;
    align-self: start;
    max-width: 520px;
    width: 100%;
}

.sobre-imagem img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sobre-imagem h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.sobre-imagem p {
    font-size: 0.9rem;
}



.check-list,
.check-list-detailed {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.check-list li,
.check-list-detailed li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.check-list-detailed li {
    line-height: 1.5;
}

.check-list-detailed li strong {
    color: var(--preto);
}

blockquote {
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 5px solid var(--cinza-chumbo);
    background-color: var(--branco);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sobre-texto h2 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    max-width: 600px;
}

.sobre-texto h2 .destaque {
    display: block;
    font-size: 2.8rem;
    color: var(--cinza-chumbo);
    font-weight: 900;
}

.check-list-detailed li {
    position: relative;
    padding-left: 28px;
    display: block;
}

.check-list-detailed li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 18px;
    height: 18px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23caa566' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='6' fill='none' stroke='%23caa566' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23caa566'/%3E%3C/svg%3E");
}

.check-list-detailed li strong {
    color: var(--preto);
}


/* Cursos e Benefícios */
.beneficios-box {
    max-width: 650px;
    margin: 3rem auto 0 auto;
    background: var(--branco);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.beneficios-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.15);
}

.beneficios-box h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

.beneficios-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-image: linear-gradient(to right, var(--cinza-chumbo), var(--preto));
    border-radius: 2px;
}

.beneficios-box ul {
    list-style: none;
    padding: 0;
}

.beneficios-box li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.beneficios-box li svg {
    color: var(--preto);
    flex-shrink: 0;
}

.cta-central {
    text-align: center;
    margin-top: 3rem;
}

.cta-central p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* ===== PLANOS (NOVO) ===== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
    align-items: stretch;
    margin-top: 1rem;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: .25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}

/* Borda/prateleiras */
.pricing-card.is-silver {
    border-color: #dcdcdc;
    box-shadow: 0 0 0 1px rgba(220, 220, 220, .35), 0 8px 28px rgba(0, 0, 0, .08);
}

.pricing-card.is-featured {
    border-color: #caa566;
    box-shadow:
        0 0 0 1px rgba(202, 165, 102, .35),
        0 14px 46px rgba(0, 0, 0, .18),
        0 0 22px rgba(202, 165, 102, .28);
    transform: scale(1.04);
    z-index: 2;
}

/* Títulos e selo */
.pricing-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: .75rem;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.pricing-badge.gold {
    background: linear-gradient(45deg, #d6b36f, #b8903d);
    color: #1b1b1b;
}

/* Badge prata */
.pricing-badge.silver {
    background: linear-gradient(45deg, #dcdcdc, #a9a9a9);
    color: #1a1a1a;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Card prata (leve glow) */
.pricing-card.is-silver {
    border: 1px solid #c0c0c0;
    box-shadow: 0 0 0 1px rgba(192, 192, 192, 0.2),
        0 8px 28px rgba(0, 0, 0, 0.15),
        0 0 16px rgba(192, 192, 192, 0.2);
}

/* Preço riscado */
/* "De R$ 49,90" com risco diagonal vermelho estilo exemplo */
.pricing-strike {
    position: relative;
    display: inline-block !important;
    width: auto;
    font-weight: 900;
    font-size: 1.3rem;
    color: #3a3a3a;
    margin: 0 auto 8px;
    line-height: 1.15;
    padding: 0 2px;
}

/* número antigo em semibold (opcional) */
.pricing-strike span {
    font-weight: s800;
}

.pricing-strike::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    height: 2px;
    background: #e53935;
    transform: translateY(-50%) rotate(-9deg);
    border-radius: 1.5px;
    pointer-events: none;
}

/* Bloco de preço/condições */
.pricing-main {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pricing-avista,
.pricing-main .economy-inline {
    font-size: .95rem;
    color: #6b6b6b;
}
.economy-inline {
    white-space: nowrap;
}

.pricing-12x {
    font-size: 1.4rem;
    margin-bottom: .25rem;
}

.pricing-12x.goldgrad strong {
    background: linear-gradient(45deg, #d6b36f, #b8903d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pricing-12x strong {
    font-size: 2.2rem;
}

.pricing-avista {
    color: #666;
    font-size: .98rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 18px 0 14px;
}

.pricing-features li {
    margin: 10px 0;
    position: relative;
    padding-left: 24px;
}

.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 16px;
    height: 16px;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230c8f3e' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

.pricing-payicons {
    display: flex;
    gap: 12px;
    margin: 14px 0 18px;
    align-items: center;
}

.pricing-payicons .pay {
    width: 42px;
    height: 28px;
    border-radius: 6px;
    background: #e9eef5;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.pricing-payicons .pay.visa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='54' viewBox='0 0 80 54'%3E%3Crect rx='6' ry='6' width='80' height='54' fill='%23ffffff'/%3E%3Crect width='60' height='8' x='10' y='12' fill='%231b3a8a'/%3E%3Crect width='40' height='6' x='10' y='32' fill='%236b7aa8'/%3E%3C/svg%3E");
}
.pricing-payicons .pay.pix {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='54' viewBox='0 0 80 54'%3E%3Crect rx='6' ry='6' width='80' height='54' fill='%23ffffff'/%3E%3Cg fill='%2300bfa6'%3E%3Cpath d='M28 27 40 15l12 12-12 12z'/%3E%3Cpath d='M24 27 36 15l4 4-12 12 12 12-4 4-12-12z' fill-opacity='.25'/%3E%3C/g%3E%3C/svg%3E");
}
.pricing-payicons .pay.boleto {
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='54' viewBox='0 0 80 54'%3E%3Crect rx='6' ry='6' width='80' height='54' fill='%23ffffff'/%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Cline x1='20' y1='12' x2='20' y2='42'/%3E%3Cline x1='28' y1='12' x2='28' y2='42'/%3E%3Cline x1='36' y1='12' x2='36' y2='42'/%3E%3Cline x1='48' y1='12' x2='48' y2='42'/%3E%3Cline x1='56' y1='12' x2='56' y2='42'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 88%;
}

.pricing-alert {
    text-align: center;
    margin: 18px 0 4px;
    color: #444;
}

.risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
}

.risk-card {
    background: #fff;
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

.risk-card h3 {
    margin-bottom: .35rem;
}

.risk-bullets {
    margin: .5rem 0 0;
    padding-left: 1.1rem;
}

.risk-bullets li {
    margin: .25rem 0;
}

.included {
    margin-top: 32px;
    background: linear-gradient(180deg, #fff7df, #f6e5b3);
    border: 1px solid #e8d28b;
    box-shadow: 0 16px 34px rgba(212, 175, 55, .25);
    border-radius: 14px;
    padding: 20px 22px;

}

.included h3 {
    text-align: center;
    margin-bottom: .5rem;
}

.included ul {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.included li {
    margin: .4rem 0;
    padding-left: 24px;
    position: relative;
}

.included li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .38em;
    width: 16px;
    height: 16px;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230c8f3e' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* FAQ */
.faq {
    margin-top: 26px;
}

.faq h3 {
    text-align: center;
    margin-bottom: 12px;
}

.faq details {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    margin: 10px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}
.btn-wide {
    width: 100%;
}
.btn-gold {
    background: linear-gradient(45deg, #d6b36f, #b8903d);
    border: none;
    color: #1b1b1b;
    font-weight: 900;
}

.btn-gold:hover {
    filter: brightness(.95);
    transform: translateY(-5px) scale(1.05);
}

.btn-whatsapp {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    color: #fff;
    background: #25d366;
    border: none;
    text-align: center;
    margin-top: 30px;
}

.btn-whatsapp:hover {
    filter: brightness(.95);
    transform: translateY(-3px);
}

/* Responsivo */
@media (max-width:900px) {
    .pricing-card.is-featured {
        transform: none;
    }
}

/* ===== Responsividade das caixas abaixo dos cards ===== */
@media (max-width: 900px) {
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 600px) {
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .risk-card {
        padding: 18px 16px;
    }
}
.risk-grid>* {
    min-width: 0;
}



/* Contato */
.contato-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: start;
    margin-top: 16px;
}

.contato-form,
.contato-info {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    padding: 22px;
}
.contato .subtitle {
    margin-bottom: 12px;
}

.contato-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--branco);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.contato-link:hover {
    transform: translateX(5px);
    background-color: #e9e9e9;
}
.contato-link svg {
    flex-shrink: 0;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a svg {
    width: 36px;
    height: 36px;
    color: var(--cinza-chumbo);
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-links a:hover svg {
    color: var(--preto);
    transform: scale(1.1);
}
.contato-meta {
    color: #666;
}

.contato-priv {
    margin-top: 10px;
    font-size: .95rem;
    color: #666;
}
.btn-silver {
    background: linear-gradient(180deg, #f2f2f2, #e6e6e6);
    color: #111;
    border: 1px solid #d0d0d0;
    font-weight: 800;
}

.btn-silver:hover {
    filter: brightness(.97);
    transform: translateY(-5px) scale(1.05);
}
.contato-info h3 {
    margin-bottom: .8rem;
}

.faq-mini {
    margin-top: 18px;
}

.faq-mini details {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.faq-mini summary {
    cursor: pointer;
    font-weight: 700;
}
.contato-cta-final {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.contato-cta-final .btn {
    min-width: 280px;
}

/* ====== Toast (sucesso) ====== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 9999;
    font-weight: 800;
}

.toast--success {
    background: #0c8f3e;
}
.toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* RESPONSIVO: empilha as colunas no mobile */
@media (max-width: 960px) {
    .contato-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .contato-form,
    .contato-info {
        padding: 18px;
    }

    .contato-cta-final {
        justify-content: stretch;
    }

    .contato-cta-final .btn {
        width: 100%;
    }
}

@media (min-width: 961px) {
    .contato-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 420px !important;
        gap: 40px !important;
        align-items: start;
    }
    .contato-form,
    .contato-info {
        min-width: 0;
    }
}

/* --- PÁGINAS INTERNAS (Login, Pagamento, etc.) --- */
.form-box,
.confirmation-box {
    max-width: 480px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input[disabled] {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

.form-box .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 15px;
}

.form-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer a {
    font-weight: 700;
    text-decoration: underline;
}

.form-feedback {
    margin-top: 1rem;
    color: var(--cinza-chumbo);
    font-weight: 700;
    min-height: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-feedback.success {
    color: #28a745;
    padding: 1rem;
    border: 1px solid #28a745;
    background-color: #e9f7ef;
    border-radius: 8px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 14px;
    font-size: .95rem;
}

.form-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.form-check label {
    margin: 0;
    font-weight: 400;
    line-height: 1.45;
}

.form-check a {
    font-weight: 700;
    text-decoration: underline;
}


.form-feedback.error { color: var(--vermelho-perigo); }


.confirmation-box h2 {
    margin-top: 1.5rem;
}

.confirmation-box p {
    margin-bottom: 1.5rem;
}

.confirmation-icon {
    color: var(--cinza-chumbo);
}
.confirmation-box {
    text-align: center;
}

.confirmation-box h2 {
    margin-top: 1.25rem;
}

.confirmation-box p {
    margin-bottom: 1rem;
}

.confirmation-box .note {
    color: #666;
    font-size: .95rem;
    margin-top: -.25rem;
    margin-bottom: 1.25rem;
}

.confirmation-icon {
    color: var(--cinza-chumbo);
}

.btn-wide {
    width: 100%;
}
@media (max-width: 480px) {
    .form-check {
        align-items: flex-start;
    }

    .form-check input[type="checkbox"] {
        margin-top: 3px;
    }
}

/* Hero do login/cadastro: cresce com o conteúdo */
.hero--login {
  height: auto; /* <-- remove a altura fixa do .hero */
  min-height: calc(100vh - var(--header-height)); /* ainda cobre a primeira dobra */
  display: flex;
  align-items: flex-start; /* evita "esmagar" o topo quando o form é grande */
  padding: 40px 0 60px;   /* respiro vertical */
}

.hero--login .container {
  display: flex;
  justify-content: center; /* centraliza o card na largura */
}

.hero--login .form-box {
  position: relative;
  z-index: 1;
  max-width: 560px; /* um pouquinho mais largo se quiser */
}


/* --- DASHBOARD LAYOUT --- */
.dashboard-body {
    background-color: var(--cinza-claro);
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width-collapsed);
    background-image: linear-gradient(to bottom, var(--cinza-chumbo), var(--preto));
    color: var(--branco);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.3s ease-in-out;
    position: fixed;
    height: 100%;
    z-index: 1100;
}

.sidebar:hover {
    width: var(--sidebar-width-expanded);
}

.sidebar-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.sidebar-logo a {
    color: var(--branco);
    font-weight: 900;
    font-size: 2rem;
}

.sidebar-nav {
    width: 100%;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    color: #ccc;
    padding: 1rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--branco);
}

.nav-item svg {
    flex-shrink: 0;
    margin: 0 0.7rem;
}

.nav-text {
    margin-left: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.sidebar:hover .nav-text {
    opacity: 1;
    transition-delay: 0.1s;
}

.sidebar-footer {
    width: 100%;
}

.dashboard-content {
    margin-left: var(--sidebar-width-collapsed);
    width: calc(100% - var(--sidebar-width-collapsed));
    transition: margin-left 0.3s ease-in-out;
    padding: 2rem;
}

.sidebar:hover~.dashboard-content {
    margin-left: var(--sidebar-width-expanded);
}

.dashboard h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.dashboard .subtitle {
    text-align: left;
    margin: 0 0 2rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--branco);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    background-color: var(--cinza-chumbo);
    border-radius: 5px;
}

.quick-links a {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
    text-decoration: underline;
}

.status-concluido {
    color: #28a745;
    font-weight: bold;
}

.status-em-andamento {
    color: #fd7e14;
    font-weight: bold;
}

.status-nao-iniciado {
    color: #6c757d;
    font-weight: bold;
}

/* --- ESTILOS DO NOVO DASHBOARD --- */
.motivational-card {
    background-image: linear-gradient(to right, var(--cinza-chumbo), var(--preto));
    color: var(--branco);
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
}

.motivational-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
    color: var(--branco);
}

#simulado-result-text {
    font-size: 1.1rem;
    min-height: 2.5em;
}

#simulado-result-text strong {
    font-size: 1.5rem;
}
/*Estilos do dados de acesso em Dashboard*/
/* --- ESTILO DO CARD DE ÚLTIMO ACESSO --- */
#last-access-card {
    background: var(--branco);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

#last-access-card h3 {
    margin-bottom: 1rem;
    color: var(--cinza-chumbo);
    font-size: 1.2rem;
}

#last-access-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

#last-access-card strong {
    color: #ff416c;
    font-weight: bold;
}

.study-status {
    font-style: italic;
    font-size: small;
    color: var(--cinza-chumbo);
    margin-top: 0.5rem;
}

/* --- ESTILOS DO ESTATISTICAS DO FLASHCARD --- */
.flashcard-summary p {
    margin-bottom: 0.5rem;
}

.flashcard-progress-bar {
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    height: 14px;
    margin: 0.5rem 0 1rem 0;
}

.flashcard-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    transition: width 0.5s ease;
}

.flashcard-stats {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.flashcard-stats li {
    display: flex;
    justify-content: space-between;
}

#flashcard-summary .flashcard-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
}

#flashcard-summary .flashcard-stats div {
    width: 48%;
    margin-bottom: 8px;
    background-color: #f7f7f7;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ----- Card de Exercícios no Dashboard ----- */
#exercise-summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.exercise-progress {
    margin-bottom: 1rem; 
}
#exercise-summary a {
    margin-top: auto; 
}
.exercise-progress .progress{
  background: linear-gradient(90deg, #ff1e56 0%, #ff4b2b 60%, #ff7a48 100%);
  box-shadow: 0 0 8px rgba(255, 30, 86, .55), 0 0 16px rgba(255, 75, 43, .35);
  transition: width .35s ease;
}

.exercise-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .5rem;
  margin-top: .5rem;
  font-size: .95rem;
}
.exercise-stats > div{
  background: #f7f7f7;
  border-radius: 6px;
  padding: .5rem .65rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* --- Estilos da Página de Ranking --- */
.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 1rem;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.ranking-table th,
.ranking-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.ranking-table th {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.ranking-table tr:last-child td {
    border-bottom: none;
}
.ranking-table tr.current-user-top {
    background-color: #FFFBEA; 
    font-weight: 700;
}

.current-user-footer {
    padding: 1rem;
    background-color: #f7f7f7;
    border-top: 1px solid #eee;
    margin-top: auto; 
    font-size: 0.9rem;
}

.current-user-footer strong {
    font-size: 1rem;
}
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    width: 100%;
}
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #333; 
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
.current-user-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    background-color: #f7f7f7;
    border-top: 1px solid #eee;
    margin-top: auto;
}
.footer-stat {
    text-align: center;
}
.footer-stat span {
    font-size: 0.8rem;
    color: #666;
    display: block;
}
.footer-stat strong {
    font-size: 1.2rem;
    color: #333;
}
.ranking-explanation {
    text-align: center;
    padding: 1rem;
    margin: 0.5rem auto 1.5rem auto;
    max-width: 700px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid #eee;
}
.ranking-divider {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 2rem 0;
}
.dashboard-card.card-principal h3 {
    background-color: #343a40; 
    color: #ffffff;
}
.ranking-table thead th {
    color: #6c757d; 
    text-transform: uppercase;
    font-size: 0.8rem;
}

.ranking-table tbody tr:hover {
    background-color: var(--gold-1); 
}
.dashboard-card.card-principal h3 {
    background-color: transparent; 
    color: inherit;         
    border-radius: 0;      
    padding-left: 0;             
}
.dashboard-card.card-principal {
    background-color: #fffbef;
    border: 1px solid #f2e7c3;  
    box-shadow: 0 4px 12px rgba(212, 182, 94, 0.15); 
}
.dashboard-card.card-principal h3 {
    color: #493b0a; 
}

.card-principal .ranking-table tr.current-user-top {
    background-color: #fff6d4; 
    border-left: 3px solid #e6c86e; 
    border-right: 3px solid #e6c86e;
}

.card-principal .current-user-footer {
    background-color: #fff9e6; 
    border-top: 1px solid #f2e7c3; 
}

.card-principal .ranking-table tbody tr:hover {
    background-color: var(--gold-2); 
    cursor: default; 
}
.card-principal .ranking-table tr.current-user-top:hover {
    background-color: var(--gold-2); 
}
.rank-icon {
    margin-right: 6px;
}
.ranking-table tbody tr {
    transition: background-color 0.3s ease-in-out;
}

.ranking-table td:last-child strong {
    font-weight: 700; 
    color: #111;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Página Minha Conta */
.account-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.info-card,
.subscription-card {
    background: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3,
.subscription-card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.subscription-card p {
    margin-bottom: 1rem;
}

.subscription-card .btn {
    width: 100%;
    margin-top: 1rem;
}

/* --- ESTILOS DA TABELA DE HISTÓRICO --- */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table th,
.history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.history-table th {
    background-color: var(--cinza-claro);
    font-weight: 700;
}

.history-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-box h3 {
    margin-bottom: 1rem;
}

.modal-box p {
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.text-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--branco);
    padding: 40px;
    border-radius: 15px;
}

.text-content h3 {
    margin-top: 2rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--preto);
    color: #a0a0a0;
    text-align: center;
    padding: 3rem 0;
}

footer a {
    color: var(--branco);
    text-decoration: underline;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {

    #menu-btn {
        display: block;
    }

    #nav-content {
        position: absolute;
        top: var(--header-height);
        right: 0;
        width: 100%;
        background: linear-gradient(to right, var(--cinza-chumbo), var(--preto));
        display: none;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #nav-menu.active #nav-content {
        display: block;
    }

    #nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    #nav-links a {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .header-actions {
        display: none;
    }

    .nav-mobile-action {
        display: block;
    }
}

.sobre-grid,
.contato-grid,
.account-details-grid {
    grid-template-columns: 1fr;
}

.sobre-imagem {
    order: -1;
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

.plano-card.destaque {
    transform: scale(1);
}


@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    #menu-btn {
        display: block;
        z-index: 1001;
    }

    #nav-menu {
        justify-content: flex-end;
    }

    #nav-content {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    #nav-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        height: 100%;
    }

    #nav-menu.active #nav-content {
        display: block;
    }

    .nav-mobile-action {
        display: block;
        margin-top: 1.5rem;
    }

    .nav-mobile-action .btn {
        width: auto;
        padding: 12px 30px;
    }

    .header-actions {
        display: none;
    }

    .hero {
        height: auto;
        padding: 120px 0;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-buttons .btn {
        margin: 0;
        width: 100%;
        max-width: 300px;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: var(--header-height);
        flex-direction: row;
        padding: 0 1rem;
    }

    .sidebar:hover {
        width: 100%;
    }

    .sidebar-logo {
        margin: 0;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        flex-grow: 1;
    }

    .nav-item {
        padding: 0 0.5rem;
        height: 100%;
    }

    .nav-text {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .dashboard-content {
        margin-left: 0;
        width: 100%;
        padding-top: var(--header-height);
    }

    .sidebar:hover~.dashboard-content {
        margin-left: 0;
    }
}

/* ===== Mobile/Tablet estreito – empilha com a foto em cima ===== */
@media (max-width: 992px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "imagem"
            "texto";
        gap: 28px;
    }

    .sobre-imagem {
        justify-self: center;
        max-width: 420px;
    }
}

@media (max-width: 1200px) {
    .logo {
        font-size: 1.4rem;
    }
    #nav-links {
        gap: 0.6rem;
    }
    #nav-links a {
        padding: 0.35rem 0.7rem;
        font-size: 0.95rem;
    }

    .header-actions {
        margin-left: 1rem;
    }
    .btn {
        padding: 10px 18px;
    }
}

/* --- RESPONSIVIDADE DA TABELA DE HISTÓRICO --- */
.history-table thead {
    display: none;
}

.history-table,
.history-table tbody,
.history-table tr,
.history-table td {
    display: block;
    width: 100%;
}

.history-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--branco);
}

.history-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border-bottom: 1px solid #eee;
}

.history-table td:last-child {
    border-bottom: none;
}

.history-table td::before {
    position: absolute;
    left: 15px;
    width: calc(50% - 30px);
    text-align: left;
    font-weight: 700;
    content: attr(data-label);
}

.history-table td:nth-of-type(1)::before {
    content: "Data:";
}

.history-table td:nth-of-type(2)::before {
    content: "Ação:";
}

.history-table td:nth-of-type(3)::before {
    content: "Detalhes:";
}
:root {
    --plyr-color-main: var(--cinza-chumbo);
}

/* --- ESTILOS DO PROGRESSO DE AULA --- */
.lesson-item.watched .lesson-status {
    background-image: none;
    background-color: #28a745;
    color: var(--branco);
}

.lesson-item.watched .lesson-status svg {
    vertical-align: middle;
    margin-right: 5px;
}

/* --- ESTILOS DO SISTEMA DE EXERCÍCIOS --- */
#quiz-selection-screen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.quiz-topic-card {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quiz-topic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quiz-topic-card .quiz-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.quiz-topic-card .quiz-result {
    font-size: 1.1rem;
    font-weight: bold;
}

.quiz-topic-card .quiz-result .score {
    color: #28a745;
}

#quiz-main-screen {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
}

#question-progress {
    font-weight: bold;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

#question-text {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

#options-container .option {
    display: block;
    background-color: var(--cinza-claro);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

#options-container .option:hover {
    border-color: var(--cinza-chumbo);
}

#options-container .option.selected {
    background-color: var(--cinza-chumbo);
    color: var(--branco);
    border-color: var(--preto);
}

#back-to-topics-btn {
    margin-bottom: 2rem;
}

#quiz-results-screen {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
}

#quiz-results-screen h3 {
    text-align: center;
    font-size: 1.8rem;
}

#quiz-results-screen p {
    text-align: center;
    font-size: 1.2rem;
}

#results-details {
    margin-top: 3rem;
}

.result-item {
    padding: 1.5rem;
    background-color: var(--cinza-claro);
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 5px solid;
}

.result-item.correct {
    border-left-color: #28a745;
}

.result-item.incorrect {
    border-left-color: #dc3545;
}

.result-item p {
    text-align: left;
    font-size: 1rem;
}

.result-item .explanation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-style: italic;
    color: #555;
}

#redo-quiz-btn {
    display: block;
    margin: 2rem auto 0 auto;
}

#exercise-performance .progress {
    background: linear-gradient(90deg, #ff1e56 0%, #ff4b2b 60%, #ff7a48 100%);
}

#exercise-performance .dashboard-card h3 {
    margin-bottom: .75rem;
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.lp-table thead th {
    text-align: left;
    background: #f7f7f7;
    color: #333;
    padding: .8rem;
    border-bottom: 1px solid #e9e9e9;
}

.lp-table thead th,
.chartjs-legend li { white-space: nowrap; }

.lp-table tbody td {
    padding: .75rem;
    border-bottom: 1px solid #f0f0f0;
}

.lp-table tbody tr:hover {
    background: #fafafa;
}

.lp-table .pct-badge {
    display: inline-block;
    min-width: 52px;
    text-align: center;
    padding: .2rem .5rem;
    border-radius: 999px;
    font-weight: 700;
    background: #eef7ee;
    color: #1d7a2f;
}

button.btn-zerar {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .45rem .7rem;
    cursor: pointer;
    font-weight: 700;
}

button.btn-zerar:hover {
    filter: brightness(.95);
}

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.dashboard .container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(12px, 3vw, 24px);
    padding-bottom: 1rem;
}

/* ====== GRID NOVO DO PAINEL ====== */
.exercise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    margin-inline: auto;
}
.exercise-grid > * { min-width: 0; }
.exercise-grid .dashboard-card { overflow: hidden; }
.card-total { overflow: visible; }
.chart-box { height: clamp(200px, 45vw, 280px); }
.chart-box--short { height: clamp(180px, 40vw, 240px); }
.chart-box--tall  { height: clamp(220px, 50vw, 320px); } 
.chart-box canvas { width: 100% !important; height: 100% !important; display: block; }
.card-pie .chart-box,
.card-bars .chart-box,
.card-monthly .chart-box { padding-bottom: .25rem; } 
.card-pie,
.card-bars,
.card-monthly { overflow: hidden; }

/* mobile: reduza as alturas para não ficar gigante */
@media (max-width: 899px) {
    .chart-box {
        height: 220px;
    }

    .chart-box--short {
        height: 200px;
    }

    .chart-box--tall {
        height: 240px;
    }
}
@media (min-width: 900px) {
    .exercise-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .exercise-grid .card-total {
        grid-column: 1 / -1;
    }

    .exercise-grid .card-monthly {
        grid-column: 1 / -1;
    }

    .exercise-grid .card-table {
        grid-column: 1 / -1;
    }

    .exercise-grid .card-pie {
        grid-column: span 6;
    }

    .exercise-grid .card-bars {
        grid-column: span 6;
    }

    #wrong-review-card { grid-column: 1 / -1; }
}

@media (min-width: 720px) and (max-width: 1199px) {
  .dashboard-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.exercise-grid .dashboard-card {
    background: var(--branco);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .06);
}

.exercise-grid .dashboard-card h3 {
    margin: 0 0 .75rem 0;
    font-size: 1.05rem;
    font-weight: 900;
}

#chartByDiscipline,
#chartHitsErrors,
#chartMonthlyPerf {
    max-width: 100%;
    display: block;
}

#exercise-performance .progress-bar {
    height: 12px;
    border-radius: 999px;
    background: #ececec;
    overflow: hidden;
}

#exercise-performance .progress {
    height: 100%;
    background: linear-gradient(90deg, #ff1e56 0%, #ff4b2b 60%, #ff7a48 100%);
    box-shadow: 0 0 8px rgba(255, 30, 86, .55), 0 0 16px rgba(255, 75, 43, .35);
    border-radius: 999px;
    transition: width .35s ease;
}

#discipline-details-card .table-responsive { padding-bottom: .25rem; }
#discipline-details-card { overflow: visible; }
.card-total .total-header{
  display:flex; align-items:center; justify-content:space-between; gap:.75rem;
  margin-bottom:.5rem;
}
.card-total .total-header h3{ margin:0; }

.jump-to-quiz{
  display: inline-block;
  background:#c82333;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px; 
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition:transform .2s ease, filter .2s ease;
  text-decoration: none;
}
.jump-to-quiz:hover{ filter:brightness(1.05); transform:translateY(-3px); }

.kpis{ 
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap:1rem; margin:.5rem 0 1rem 0;
}
.kpi{
  background:#fff; border-radius:14px; padding:.75rem 1rem; 
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
  text-align:center;
}
.kpi-number{
  display:block; line-height:1; font-weight:900; letter-spacing:.5px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}
.kpi-number.good{ color:#2f80ed; }  
.kpi-number.bad{ color:#eb5757; }   
.kpi-label{
  display:block; margin-top:.35rem; color:#666; font-weight:700; font-size:.92rem;
}
.wrong-list { list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.wrong-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.wrong-row .btn[disabled] { opacity:.5; cursor:not-allowed; }

.total-actions { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }

.jump-to-wrong{
  display:inline-block; background: linear-gradient(45deg, #d4af37, #caa566); color:#fff; font-weight:700;
  border:none; border-radius:8px; padding:.6rem 1.2rem; cursor:pointer;
  text-decoration:none; transition:transform .2s ease, filter .2s ease;
}
.jump-to-wrong:hover{ filter:brightness(1.05); transform:translateY(-3px); }

#wrong-count-badge{
  display:inline-block; min-width:22px; padding:0 .45rem; margin-left:.4rem;
  border-radius:999px; background:rgba(0,0,0,.18); color:#fff; font-weight:900;
  text-align:center; line-height:1.2;
}

.jump-to-wrong[aria-disabled="true"]{
  opacity:.55; pointer-events:none; filter:grayscale(.2);
}
.jump-to-wrong:focus-visible,
.jump-to-quiz:focus-visible{
  outline: 3px solid #2f80ed; outline-offset: 2px;
}
#wrong-review-card .wrong-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
}
#wrong-review-card .wrong-row{
  background: #f7f7f7;
  padding: .75rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#wrong-review-card .wrong-row .btn{
  min-width: 120px;
  font-weight: 800;
}

/* Mobile: botões em coluna e 100% */
@media (max-width: 640px){
  .total-actions { width:100%; }
  .total-actions .btn { width:100%; text-align:center; }
}
.progress-bar.neon{
  position:relative; height:14px; border-radius:999px; overflow:hidden;
  background: #e9e9e9;
}
.progress-bar.neon .progress{
  height:100%; border-radius:999px; 
  background: linear-gradient(90deg, #ff1e56 0%, #ff4b2b 60%, #ff7a48 100%);
  box-shadow: 0 0 8px rgba(255, 30, 86, .55), 0 0 16px rgba(255, 75, 43, .35);
  transition: width .4s ease-in-out;
}
.card-total .aproveitamento-text{ display:block; margin-top:.45rem; }

.aproveitamento-text {
  display: block;
  text-align: center;
  font-weight: 900;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.container {
  max-width: 1150px;    
  margin: 0 auto;
  padding: 0 18px;           
}
@media (min-width: 1200px){
  .container{ padding: 0 24px; }
}
#chartByDiscipline{ height: 240px !important; }
#chartHitsErrors{  height: 240px !important; }
#chartMonthlyPerf{ height: 280px !important; }

@media (max-width: 640px){
  .card-total .total-header { flex-direction:column; align-items:stretch; }
  .jump-to-quiz { width:100%; text-align:center; }
  .exercise-grid .dashboard-card { padding: 1rem 1rem; }
}

@media (max-width: 480px){
  .kpis { grid-template-columns: 1fr; }
}

.aproveitamento-text {
  display:block; text-align:center; font-weight:900; font-size:1rem; margin-top:.5rem;
}

/* --- ESTILOS DO FILTRO DE DISCIPLINAS --- */
.filter-container {
    margin-bottom: 1.5rem;
    position: relative;
    max-width: 300px; /* Ou o tamanho que preferir */
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown-button {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.filter-dropdown-button:hover,
.filter-dropdown-button:focus {
    border-color: #007bff;
}

.filter-dropdown-button::after {
    content: '▼';
    font-size: 0.8em;
    color: #888;
}

.filter-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 0.25rem;
    padding: 0.5rem;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-dropdown-list.active {
    display: block;
}

.filter-dropdown-list label {
    display: block;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-dropdown-list label:hover {
    background-color: #f5f5f5;
}

.filter-dropdown-list label input {
    margin-right: 0.5rem;
}

/* --- ESTILOS DO SISTEMA DE SIMULADO --- */
#simulado-container .info-card {
    background-color: var(--branco);
    padding: 2rem;
}

.simulado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 8px;
}

#simulado-timer {
    color: var(--vermelho-perigo);
}

.question-box {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

#simulado-question-text {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: left;
}

#simulado-options-container .option {
    display: block;
    background-color: var(--cinza-claro);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

#simulado-options-container .option:hover {
    border-color: var(--cinza-chumbo);
}

#simulado-options-container .option.selected {
    background-color: var(--cinza-chumbo);
    color: var(--branco);
    border-color: var(--preto);
}

.simulado-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.summary-item span {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.summary-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--preto);
}

/* --- ESTILOS DO GRÁFICO DE SIMULADO (CORREÇÃO DEFINITIVA) --- */
.results-chart {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.chart-container {
    position: relative;
    height: 350px;
    max-height: 40vh;
    width: 100%;
}


#performance-chart {
    max-height: 100%;
}

/* --- ESTILOS DO GABARITO COMENTADO --- */
#gabarito-detalhado {
    margin-top: 3rem;
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
}

#gabarito-detalhado h4 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.gabarito-item {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-left-width: 5px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.gabarito-item.correct {
    border-left-color: #28a745;
    background-color: #f0fff4;
}

.gabarito-item.incorrect {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.gabarito-item p {
    margin-bottom: 0.5rem;
}

.gabarito-item .gabarito-question {
    font-weight: 700;
}

.gabarito-item .user-answer.incorrect {
    color: #dc3545;
    text-decoration: line-through;
}

.gabarito-item .correct-answer {
    color: #28a745;
    font-weight: 700;
}

.gabarito-explanation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
}
/* ==   ESTILOS DA NOVA PÁGINA DE AULAS   == */

#course-tabs-container {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd; 
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent; 
    background-color: transparent;
    color: #555; 
    margin-bottom: -2px; 
    transition: all 0.2s ease-in-out;
}

.tab-button:hover {
    background-color: #f0f0f0;
    color: var(--preto);
}

.tab-button.active {
    color: var(--preto);
    background-color: var(--branco); 
    border-color: #ddd;
    border-bottom-color: var(--branco); 
    border-radius: 8px 8px 0 0; 
}
.tab-button:not(.active):hover {
    background-color: #f0f0f0; 
    color: var(--preto);
    border-radius: 8px 8px 0 0;
}

/* --- 2. Painel Principal do Curso --- */
.course-main-panel {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.course-main-panel h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.course-main-panel p {
    margin-bottom: 1.5rem;
    color: #555;
}

.course-progress-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-progress-box .progress-bar {
    flex-grow: 1; 
    margin-top: 0;
}

.course-progress-box span {
    font-weight: 700;
}

#continue-watching-btn {
    font-size: 1.1rem;
}

.module-accordion {
    background-color: var(--branco);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9e9e9;
}

.module-accordion summary {
    padding: 1.2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
}

.module-accordion summary::-webkit-details-marker {
    display: none; 
}

.module-accordion summary::before {
    content: '▶';
    margin-right: 1rem;
    font-size: 0.8rem;
    transition: transform 0.2s ease-in-out;
}

.module-accordion[open] > summary::before {
    transform: rotate(90deg);
}

.module-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.module-progress {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    background-color: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.module-content {
    padding: 0 1.5rem 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.module-content .lesson-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.module-content .lesson-item:hover {
    background-color: #f9f9f9;
}

.lesson-icon {
    margin-right: 1rem;
    font-size: 0.8rem;
}

.lesson-title {
    flex-grow: 1;
}

.lesson-duration {
    color: #777;
    font-size: 0.9rem;
}

.module-content .lesson-item.watched {
    color: #888;
}

.module-content .lesson-item.watched .lesson-title {
    text-decoration: line-through;
}
.video-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.video-player-content {
    background: var(--branco);
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.video-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
}

.video-player-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

#close-player-btn {
    font-size: 1.8rem;
    font-weight: 700;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.module-progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--preto) calc(var(--progress) * 1%), #e0e0e0 0);
    transition: background 0.3s;
}
.module-progress-circle .progress-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #555;
}
.module-content .lesson-item.playing {
    background-color: var(--cinza-chumbo);
    color: var(--branco);
}
.module-content .lesson-item.playing .lesson-duration {
    color: #ccc;
}
/* --- ESTILOS FINAIS E UNIFICADOS PARA O PLANO DE ESTUDOS --- */

.plan-generator-header { margin-bottom: 1.5rem; }
#plan-generator-form h4 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.3rem; margin-bottom: 1.25rem; }
#plan-generator-form .form-step { margin-bottom: 2rem; padding-bottom: 2rem; }
.radio-group-cards input[type="radio"], .checkbox-calendar input[type="checkbox"] { display: none; }
.radio-group-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.radio-group-cards label { display: flex; flex-direction: column; text-align: left; background-color: #f8f9fa; padding: 1.25rem; border-radius: 12px; border: 2px solid #eee; cursor: pointer; transition: all 0.2s ease-in-out; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.radio-group-cards label:hover { border-color: #d0d0d0; transform: translateY(-2px); }
.radio-group-cards .course-title { font-weight: 900; font-size: 1.1rem; color: var(--preto); }
.radio-group-cards .course-desc { font-size: 0.9rem; color: #666; margin-top: 0.25rem; }
.radio-group-cards .check-icon { position: absolute; top: 1rem; right: 1rem; width: 24px; height: 24px; background-color: #e0e0e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease-in-out; transform: scale(0.8); opacity: 0; }
.radio-group-cards input[type="radio"]:checked + label .check-icon { transform: scale(1); opacity: 1; background-color: var(--preto); color: white; }
.radio-group-cards input[type="radio"]:checked + label { border-color: var(--preto); background-color: var(--branco); box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 0 0 2px var(--preto); }
.stepper-input { display: flex; align-items: center; gap: 0.5rem; background: #f7f7f7; padding: 0.5rem; border-radius: 10px; border: 1px solid #ddd; max-width: 200px; }
.stepper-btn { border: none; background: #e0e0e0; color: var(--preto); font-size: 1.5rem; font-weight: bold; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.stepper-btn:hover { background-color: #d0d0d0; }
.stepper-display { width: 100%; text-align: center; font-size: 1.5rem; font-weight: 700; border: none; background: transparent; color: var(--preto); }
.quick-hours-selector, .day-shortcuts { display: flex; gap: 0.75rem; margin-top: 1rem; }
.btn-chip { background: #e9ecef; border: 1px solid transparent; padding: 0.5rem 1rem; border-radius: 20px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-chip:hover { background-color: #d0d0d0; }
.btn-chip.active { background-color: var(--preto); color: var(--branco); }
.checkbox-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.75rem; margin-top: 1rem; }
.checkbox-calendar label { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #f7f7f7; padding: 0.8rem 0.5rem; border-radius: 10px; border: 2px solid #eee; cursor: pointer; transition: all 0.2s ease-in-out; text-align: center; font-weight: 700; min-height: 70px; }
.checkbox-calendar label:hover { border-color: #ccc; }
.checkbox-calendar input[type="checkbox"]:checked + label { border-color: var(--preto); background-color: var(--preto); color: var(--branco); }
.checkbox-calendar .day-letter { font-size: 1.2rem; font-weight: 900; }
.checkbox-calendar .day-name { font-size: 0.8rem; font-weight: 400; }
.plan-summary-review { background-color: #f8f9fa; border-radius: 12px; padding: 1rem 1.5rem; margin-top: 1.5rem; border: 1px solid #eee; }
.plan-summary-review p { margin: 0; font-weight: 700; }
.plan-summary-review span { font-weight: 400; }
#weekly-hours-text { display: block; text-align: right; font-size: 0.9rem; color: #555; font-weight: 700; }
#generate-plan-btn:disabled { background-image: none; background-color: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.plan-generator-grid { display: block; }
@media (min-width: 900px) { .plan-generator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: flex-start; } }
@media (max-width: 600px) { .checkbox-calendar .day-name { display: none; } }

/* --- TELA DE VISUALIZAÇÃO DO PLANO (VERSÃO FINAL) --- */
.dashboard-content .container.plan-view-container { max-width: 1440px; padding: 0 1rem; }
.plan-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.plan-calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #ddd; flex-wrap: wrap; gap: 1rem; }
.calendar-nav { display: flex; gap: 0.5rem; }
.plan-progress-container { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.plan-progress-container .progress-bar { flex-grow: 1; margin-top: 0; background-color: #e9ecef; border-radius: 99px; height: 14px; }
.plan-progress-container .progress-bar .progress {
    background: linear-gradient(90deg, #ff1e56 0%, #ff4b2b 60%, #ff7a48 100%);
    box-shadow: 0 0 8px rgba(255, 30, 86, 0.55), 0 0 16px rgba(255, 75, 43, 0.35);
    border-radius: 99px;
    height: 100%;
}

.plan-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    align-content: start;
}
.plan-calendar-day { background-color: #fdfdfd; border-radius: 12px; border: 1px solid #eee; display: flex; flex-direction: column; }
.plan-calendar-day.is-today { border-color: var(--preto); background-color: #fff; box-shadow: 0 0 15px rgba(0,0,0,0.08); }
.day-header { padding: 0.5rem 0.75rem; font-weight: 700; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.day-header .day-name { font-size: 0.8rem; color: var(--preto); }
.day-header .day-number { font-size: 1rem; margin-left: 0.25rem; }
.day-task-count { font-size: 0.75rem; background-color: #e9ecef; color: #495057; padding: 2px 8px; border-radius: 10px; }
.plan-calendar-day.is-today .day-header { background-color: var(--preto); color: var(--branco); border-radius: 11px 11px 0 0; }
.plan-calendar-day.is-today .day-header .day-name,
.plan-calendar-day.is-today .day-header .day-number { color: var(--branco); }

.tasks-list { padding: 0.5rem; flex-grow: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.plan-task-item {
    background-color: var(--branco); border-radius: 8px; padding: 0.6rem;
    display: flex; align-items: center; gap: 0.5rem;
    border-left: 4px solid #ccc; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.task-content { flex-grow: 1; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.task-title { font-size: 0.85rem; font-weight: 700; color: var(--preto); display: flex; align-items: center; gap: 0.4rem; }
.task-description { font-size: 0.75rem; color: #666; padding-left: 1.7em; }
.task-meta { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.task-chip { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 10px; background-color: #eee; white-space: nowrap; flex-shrink: 0; }
.task-actions { opacity: 1; }
.task-action-btn {
    background: #e9ecef; border: none; border-radius: 6px; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: #495057; font-size: 0.9rem; line-height: 1;
}
.task-action-btn:hover { background-color: #ced4da; }
.plan-task-item.is-completed .complete-btn { background-color: #28a745; color: white; }

.plan-task-item.is-lesson { border-left-color: #3498db; }
.plan-task-item.is-exercise { border-left-color: #f39c12; }
.plan-task-item.is-habit { border-left-color: #9b59b6; }
.plan-task-item.is-milestone { border-left-color: #e74c3c; }
.plan-task-item.is-lesson .task-chip { background-color: #eaf4fc; color: #3498db; }
.plan-task-item.is-exercise .task-chip { background-color: #fef5e7; color: #f39c12; }
.plan-task-item.is-habit .task-chip { background-color: #f4ecf7; color: #9b59b6; }
.plan-task-item.is-milestone .task-chip { background-color: #fdedec; color: #e74c3c; font-weight: 900; }

.plan-task-item.is-completed { opacity: 0.65; }
.plan-task-item.is-completed .task-title,
.plan-task-item.is-completed .task-description { text-decoration: line-through; color: #888; }
.plan-calendar-day.is-free-day { min-height: 100px; height: 100px; justify-content: center; align-items: center; }
.plan-task-item.is-free { box-shadow: none; background: transparent; border: none; }
.plan-task-item.is-free .task-content { width: 100%; text-align: center; justify-content: center; }

@media (max-width: 1399px) {
    .plan-calendar-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
    .dashboard-content .container.plan-view-container { max-width: 100%; padding: 0 0.75rem; }
}
@media (max-width: 768px) {
    .plan-calendar-grid { grid-template-columns: 1fr; }
    .plan-calendar-header { flex-direction: column; gap: 1rem; }
    .plan-calendar-day.is-today { order: -1; }
}
/* --- ESTILOS DA PÁGINA DE APOSTILAS --- */

.apostilas-section {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.apostilas-section h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    color: var(--preto);
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-list-item .item-icon svg {
    width: 32px;
    height: 32px;
    color: var(--cinza-chumbo);
}

.dashboard-list-item .item-content {
    flex-grow: 1;
}

.dashboard-list-item .item-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.dashboard-list-item .item-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.dashboard-list-item .btn {
    flex-shrink: 0;
    padding: 10px 24px;
}

@media (max-width: 600px) {
    .dashboard-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dashboard-list-item .btn {
        width: 100%;
    }
}

/* --- ESTILOS REATORADOS DO DASHBOARD --- */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; 
    align-items: stretch; 
}

.dashboard-column-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.dashboard-card {
    background: var(--branco);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex; 
    flex-direction: column; 
}

.dashboard-card .card-content {
    flex-grow: 1; 
}

.dashboard-card > .btn {
    margin-top: auto;
}

.dashboard-card h3 {
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.dashboard-card p, .dashboard-card .description {
    font-weight: 400;
    margin-bottom: 1rem;
    color: #555;
}

.dashboard-ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.dashboard-ranking-table th,
.dashboard-ranking-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.dashboard-ranking-table thead th {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    border-bottom-width: 2px;
}

.dashboard-ranking-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-ranking-table td:last-child {
    text-align: right;
    font-weight: 900;
    font-size: 1rem;
    color: var(--preto);
}

#study-plan-summary .tasks-for-today {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    max-height: 120px; 
    overflow-y: auto;
}

#study-plan-summary .task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    background-color: #f8f9fa;
    margin-bottom: 0.5rem;
}

#study-plan-summary .task-item .task-title {
    font-weight: 500;
    font-size: 0.9rem;
}

#study-plan-summary .plan-progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 0.5rem 0;
}

#study-plan-summary .plan-progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #ff1e56, #ff4b2b);
    border-radius: 5px;
}

#study-plan-summary .plan-progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

#study-plan-summary .no-tasks-message {
    font-style: italic;
    color: #6c757d;
    text-align: center;
    padding: 1.5rem 0;
}

.btn-discord {
    background-color: #5865F2; 
    color: var(--branco);
    border: none;
}

.btn-discord:hover {
    background-color: #4f5bda;
}

.skeleton-loader {
    width: 100%;
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line {
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
#ranking-summary .dashboard-ranking-table {
    margin-bottom: 0;
}
/* --- AJUSTES FINAIS DO DASHBOARD (v3) --- */

.dashboard-ranking-table th,
.dashboard-ranking-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem; 
}

.dashboard-ranking-table td:last-child strong {
    font-size: 1.1rem; 
}

.highlight-red {
    color: var(--vermelho-perigo);
    font-weight: 700;
}

.dashboard-social-icons {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    margin-top: 1rem;
}

.dashboard-social-icons a {
    color: var(--cinza-chumbo);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-social-icons a:hover {
    transform: scale(1.15);
    color: var(--preto);
}


/* 1. Aumenta a tipografia do Ranking de volta */
.dashboard-ranking-table th,
.dashboard-ranking-table td {
    padding: 0.6rem 0.5rem;
    font-size: 1rem; /* Aumenta um pouco a fonte base */
}

.dashboard-ranking-table td:last-child strong {
    font-size: 1.1rem; /* Aumenta a fonte da posição */
}

/* 2. Estilo para destacar números e textos em vermelho */
.highlight-red {
    color: var(--vermelho-perigo);
    font-weight: 700;
}

/* 3. Card de Redes Sociais */
.dashboard-social-icons {
    display: flex;
    justify-content: space-around; /* Espaça os ícones igualmente */
    align-items: center;
    margin-top: 1rem;
}

.dashboard-social-icons a {
    color: var(--cinza-chumbo);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-social-icons a:hover {
    transform: scale(1.15);
    color: var(--preto);
}

/* 4. Remove estilo inconsistente do aproveitamento do simulado */
#simulado-result-text strong {
    font-size: inherit; /* Faz o strong herdar o tamanho da fonte do parágrafo */
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- ESTILOS DO BANNER DE COOKIES --- */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(13, 13, 13, 0.95); /* Fundo escuro, aproveitando sua paleta */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--branco);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);

    /* Lógica de aparição */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.cookie-consent-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: #f1f1f1; /* Cor do texto um pouco mais suave */
}

.cookie-consent-banner a {
    color: var(--gold-1); /* Dourado para o link */
    text-decoration: underline;
    font-weight: 700;
}

.cookie-consent-banner .btn-container {
    display: flex;
    gap: 1rem;
    flex-shrink: 0; /* Impede que os botões quebrem linha */
}

/* Link para gerenciar cookies no rodapé */
.footer-cookie-link {
    cursor: pointer;
    text-decoration: underline;
}

/* Responsividade para o banner */
@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .cookie-consent-banner .btn-container {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Drawer/Hambúrguer para a área restrita (<=498px) ===== */
@media (max-width: 498px) {
  /* Botão */
  .dash-menu-btn{
    position: fixed; top: 10px; left: 12px;
    width: 42px; height: 42px; z-index: 2002;
    display: grid; place-items: center;
    background: rgba(0,0,0,.75); border: 0; border-radius: 10px;
    cursor: pointer;
  }
  .dash-menu-btn .bar{
    position: relative; width: 22px; height: 2px; background: #fff; display: block;
  }
  .dash-menu-btn .bar::before,
  .dash-menu-btn .bar::after{
    content:""; position:absolute; left:0; width:22px; height:2px; background:#fff; transition:.2s;
  }
  .dash-menu-btn .bar::before{ top:-7px; }
  .dash-menu-btn .bar::after { top: 7px; }
  .dash-menu-btn.active .bar{ background: transparent; }
  .dash-menu-btn.active .bar::before{ top:0; transform: rotate(45deg); }
  .dash-menu-btn.active .bar::after { top:0; transform: rotate(-45deg); }

  /* Drawer (sobrepõe regras do @media 768px) */
  .dashboard-body .sidebar{
    position: fixed !important;
    left: 0; top: 0;
    height: 100% !important;
    width: min(80vw, 280px) !important;
    transform: translateX(-100%);
    background-image: linear-gradient(to bottom, var(--cinza-chumbo), var(--preto));
    padding: 1rem 0 !important;
    overflow: hidden;
    transition: transform .25s ease-in-out;
    z-index: 2001;
    /* desliga o "expandir ao passar o mouse" no mobile */
  }
  .dashboard-body .sidebar:hover{ width: min(80vw, 280px) !important; }

  .dashboard-body .sidebar.open{ transform: translateX(0); }

  .dashboard-body .sidebar-logo{ margin: 0 1rem 1rem; }
  .dashboard-body .sidebar-nav{
    display: flex !important; flex-direction: column !important;
    overflow-y: auto; height: calc(100% - 140px);
  }
  .dashboard-body .nav-item{
    height: auto !important; padding: .85rem 1rem !important;
  }
  .dashboard-body .nav-text{ display: inline !important; opacity: 1 !important; }

  .dashboard-body .sidebar-footer{ display:block !important; }

  .dashboard-body .dashboard-content{
    margin-left: 0 !important; width: 100% !important;
    padding-top: 56px; /* respiro pro botão */
  }

  /* Backdrop */
  .sidebar-backdrop{
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 2000; opacity: 0; visibility: hidden; transition: .2s;
  }
  .dashboard-body .sidebar.open + .sidebar-backdrop{
    opacity: 1; visibility: visible;
  }
}
@media (min-width: 769px){
  .sidebar{
    top: 0;              /* fixa no topo da janela */
    left: 0;             /* garante alinhamento à esquerda */
    padding-top: 6px;    /* tira o respiro extra de cima */
  }

  .sidebar-logo{
    height: 48px;        /* altura do bloco do LP (ajuste se quiser) */
    margin: 2px 0 6px;   /* quase sem folga acima, pouca abaixo */
  }

  .sidebar-logo a{
    line-height: 48px;   /* centraliza verticalmente o "LP" */
  }

  .sidebar-nav{
    padding-top: 0;      /* cola a “casinha” no logo */
  }

  .nav-item{
    padding: .7rem 1rem; /* itens um pouco mais compactos */
  }
}