:root {
    --bg-color: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-light: #e8f0fe;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-strong: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for Visual Interest */
.blob-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    animation: float 10s ease-in-out infinite alternate;
}

.blob-2 {
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.05); }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-strong {
    background: var(--glass-strong);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

/* Typography Highlights */
.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
button {
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

.btn-primary.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-secondary:hover {
    color: var(--accent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    background: var(--accent);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-dropdown-btn:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.04);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 270px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

.dropdown-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item strong {
    display: block;
    font-size: 0.86rem;
    color: #0f172a;
    font-weight: 600;
}

.dropdown-item small {
    display: block;
    font-size: 0.74rem;
    color: #64748b;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0.4rem 0.5rem;
}

.dropdown-header {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.85rem 0.2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hero Section */
.hero {
    padding: 8.5rem 5% 4.5rem;
    position: relative;
    overflow: visible;
}

.hero-container {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    position: relative;
    width: 100%;
}

/* Quando o mascote está ativo na tela */
.hero-container.has-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4.2rem;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-container.has-mascot .hero-mascot-wrapper {
    flex: 0 0 380px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-container.has-mascot .mascot-img {
    max-width: 360px;
}

.hero-container.has-mascot .hero-content {
    flex: 1 1 560px;
    max-width: 740px;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-container.has-mascot .hero-content h1 {
    font-size: clamp(2.35rem, 3.15vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #0f172a;
    max-width: 720px;
}

.hero-container.has-mascot .hero-subtext {
    font-size: 1.12rem;
    color: #475569;
    line-height: 1.62;
    margin: 0 0 2.2rem 0;
    max-width: 660px;
    text-align: justify;
    text-justify: inter-word;
}

.hero-container.has-mascot .search-bar {
    margin: 0 0 2.4rem 0;
    width: 100%;
    max-width: 660px;
}

.hero-container.has-mascot .hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.2rem;
    margin-top: 0.25rem;
    width: 100%;
    max-width: 660px;
}

.hero-container.has-mascot .stat {
    align-items: flex-start;
    text-align: left;
}

.hero-container.has-mascot .stat-divider {
    width: 1px;
    height: 38px;
    background: #cbd5e1;
}

/* Fallback padrão caso o mascote seja removido */
.hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================================ */
/* MASCOTE ROBÔ 3D & ANIMAÇÕES (PADRÃO DE MERCADO)             */
/* ============================================================ */
.hero-mascot-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    z-index: 5;
}

/* Balão de fala interativo com Glassmorphism */
.mascot-speech-bubble {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(0, 113, 227, 0.22);
    box-shadow: 0 10px 25px -5px rgba(0, 113, 227, 0.14), 0 4px 10px rgba(0, 0, 0, 0.04);
    border-radius: 50px;
    padding: 0.55rem 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: mascotBubbleFloat 4s ease-in-out infinite alternate;
    z-index: 10;
}

.mascot-speech-bubble:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #0071e3;
    box-shadow: 0 14px 30px rgba(0, 113, 227, 0.22);
}

.mascot-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 45%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.04));
}

.speech-emoji {
    font-size: 1.15rem;
    animation: mascotEmojiBounce 2.5s infinite ease-in-out;
}

.speech-text {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.speech-pulse {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: mascotPulseLive 2s infinite;
}

/* Palco do Mascote com profundidade 3D */
.mascot-stage {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding-bottom: 22px;
}

/* Brilho holográfico ambiente */
.mascot-ambient-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(56, 189, 248, 0.24) 0%, rgba(99, 102, 241, 0.16) 45%, transparent 70%);
    filter: blur(45px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: mascotGlowPulse 6s ease-in-out infinite alternate;
}

/* Imagem do mascote */
.mascot-img {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 16px 36px rgba(15, 23, 42, 0.12));
    animation: mascotFloat 5s ease-in-out infinite alternate;
    transform-origin: center bottom;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.mascot-stage:hover .mascot-img {
    transform: translateY(-8px) scale(1.025);
}

/* Sombra de chão 3D sincronizada */
.mascot-shadow {
    position: absolute;
    bottom: 12px;
    left: 48%;
    transform: translateX(-50%);
    width: 210px;
    height: 22px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.20) 0%, rgba(15, 23, 42, 0.06) 55%, transparent 75%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: mascotShadowBreathe 5s ease-in-out infinite alternate;
}

/* Selos orbitais flutuantes */
.mascot-orbit-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    padding: 0.38rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

.mascot-orbit-badge.badge-top-right {
    top: 20%;
    right: -12px;
    border-color: rgba(56, 189, 248, 0.45);
    animation: mascotBadgeFloatRight 4.5s ease-in-out infinite alternate;
}

.mascot-orbit-badge.badge-bottom-left {
    bottom: 22%;
    left: -8px;
    border-color: rgba(99, 102, 241, 0.4);
    animation: mascotBadgeFloatLeft 5s ease-in-out 0.6s infinite alternate;
}

.orbit-badge-icon {
    font-size: 0.9rem;
}

/* ============================================================ */
/* SELO OFICIAL HOLOGRÁFICO ENEM 2026 (ABAIXO DOS PÉS DO ROBÔ)  */
/* ============================================================ */
.mascot-enem-seal {
    position: relative;
    margin-top: -12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(2, 132, 199, 0.38);
    border-radius: 18px;
    padding: 0.52rem 1.1rem;
    box-shadow: 0 12px 28px -4px rgba(0, 113, 227, 0.20), 0 4px 14px rgba(245, 158, 11, 0.15);
    z-index: 5;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: enemSealFloat 4.6s ease-in-out 0.4s infinite alternate;
    user-select: none;
    display: inline-flex;
    align-items: center;
}

.mascot-enem-seal:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #0284c7;
    box-shadow: 0 18px 38px -4px rgba(0, 113, 227, 0.28), 0 6px 18px rgba(245, 158, 11, 0.22);
}

.enem-seal-aura {
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.26) 0%, rgba(245, 158, 11, 0.12) 48%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: enemAuraPulse 3.8s ease-in-out infinite alternate;
}

.enem-seal-shimmer {
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 3;
    animation: enemShimmerPass 4.2s infinite ease-in-out;
}

.enem-seal-ping {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: enemRadarPing 2s infinite cubic-bezier(0, 0, 0.2, 1);
    z-index: 4;
}

.enem-seal-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.enem-seal-icon-box {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(224, 242, 254, 0.85));
    border-radius: 10px;
    border: 1px solid rgba(186, 230, 253, 0.9);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(2, 132, 199, 0.12);
}

.enem-logo-svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 113, 227, 0.25));
    transition: transform 0.3s ease;
}

.mascot-enem-seal:hover .enem-logo-svg {
    transform: scale(1.12) rotate(-5deg);
}

.enem-seal-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.enem-seal-header-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.enem-brand-name {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
    text-transform: lowercase;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1;
}

.enem-year-tag {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
    line-height: 1.2;
}

.enem-seal-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.enem-live-beacon {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

.enem-meta-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@keyframes enemSealFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(-1px);
    }
}

@keyframes enemAuraPulse {
    0% {
        opacity: 0.35;
        transform: scale(0.92);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}

@keyframes enemShimmerPass {
    0%, 25% {
        left: -130%;
    }
    55%, 100% {
        left: 210%;
    }
}

@keyframes enemRadarPing {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Keyframes de animação de alto desempenho (GPU accelerated) */
@keyframes mascotFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-13px) rotate(0.6deg);
    }
    100% {
        transform: translateY(-3px) rotate(-0.4deg);
    }
}

@keyframes mascotShadowBreathe {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.45;
    }
    100% {
        transform: translateX(-50%) scale(0.95);
        opacity: 0.7;
    }
}

@keyframes mascotGlowPulse {
    0% {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(0.94);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes mascotBubbleFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

@keyframes mascotBadgeFloatRight {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-7px) rotate(1.5deg);
    }
}

@keyframes mascotBadgeFloatLeft {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(-1.5deg);
    }
}

@keyframes mascotEmojiBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(8deg);
    }
}

@keyframes mascotPulseLive {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.35);
        opacity: 0.6;
    }
}

/* Responsividade do Mascote */
@media (max-width: 1080px) {
    .hero-container.has-mascot {
        gap: 2.2rem;
    }
    .hero-container.has-mascot .hero-mascot-wrapper {
        flex: 0 0 340px;
        max-width: 340px;
    }
    .hero-container.has-mascot .hero-content h1 {
        font-size: 2.85rem;
    }
    .hero-container.has-mascot .mascot-img {
        max-width: 320px;
    }
}

@media (max-width: 880px) {
    .hero-container.has-mascot {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-container.has-mascot .hero-mascot-wrapper {
        flex: 0 0 auto;
        max-width: 290px;
        margin: 0 auto;
    }
    .hero-container.has-mascot .mascot-img {
        max-width: 260px;
    }
    .hero-container.has-mascot .hero-content {
        text-align: center;
        align-items: center;
        margin: 0 auto;
        max-width: 100%;
    }
    .hero-container.has-mascot .hero-content h1 {
        font-size: 2.4rem;
        max-width: 100%;
    }
    .hero-container.has-mascot .hero-subtext {
        margin: 0 auto 1.8rem;
    }
    .hero-container.has-mascot .search-bar {
        margin: 0 auto 1.8rem;
    }
    .hero-container.has-mascot .hero-stats {
        justify-content: center;
        gap: 1.8rem;
    }
    .hero-container.has-mascot .stat {
        align-items: center;
        text-align: center;
    }
    .hero-container.has-mascot .mascot-enem-seal {
        margin-top: -6px;
        transform: scale(0.95);
    }
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4338ca;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.badge-dot-live {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.highlight-enem {
    background: linear-gradient(135deg, #0284c7 0%, #0071e3 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.highlight-enem::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
    border-radius: 4px;
    opacity: 0.9;
}

.highlight {
    background: linear-gradient(135deg, #0071e3 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: #0f172a;
}

.hero-subtext {
    font-size: 1.15rem;
    color: #475569;
    margin: 0 auto 2.5rem;
    max-width: 660px;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

/* Search Bar */
.search-bar {
    display: flex;
    max-width: 680px;
    margin: 0 auto 2.2rem;
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: #6366f1;
    box-shadow: 0 12px 38px rgba(99, 102, 241, 0.16);
}

.search-icon {
    padding: 0 0.4rem 0 0.5rem;
    color: #94a3b8;
    display: flex;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.9rem 0.8rem;
    font-size: 1rem;
    outline: none;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: #94a3b8;
}

.btn-search {
    background-color: #0f172a;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-search:hover {
    background-color: #1e293b;
    transform: scale(1.02);
}

/* Quick Tags */
.quick-tags-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 auto 2.8rem;
    max-width: 820px;
}

.quick-tags-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.2px;
}

.quick-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #334155;
    padding: 0.42rem 0.95rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-pill:hover {
    background: white;
    border-color: #6366f1;
    color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.tag-pill-more {
    background: transparent;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-weight: 600;
}

.tag-pill-more:hover {
    border-color: #0f172a;
    color: #0f172a;
    background: rgba(0, 0, 0, 0.02);
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 0.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat strong {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.stat span {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.stat-divider {
    height: 32px;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
}

/* Main Container & Grid */
.container {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feed-section {
    margin-bottom: 6rem;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Match Card - Modern EdTech High-End Card */
.match-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.6rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.match-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
}

.card-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.card-rating-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d97706;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 20px;
}

.card-avatar-wrapper {
    position: relative;
    width: 92px;
    height: 92px;
    margin-bottom: 0.9rem;
}

.card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8fafc;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.avatar-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2.5px solid white;
    border-radius: 50%;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.card-subject-pill {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}

.card-meta {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.7rem;
    font-weight: 500;
}

.card-bio {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 1.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}
    border-color: var(--accent);
}

/* ============================================================ */
/* FEATURES / BENTO GRID - DIFERENCIAIS / COMO FUNCIONA         */
/* ============================================================ */
.features-section-bento {
    margin-bottom: 6rem;
    position: relative;
}

.bento-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 960px) {
    .bento-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.bento-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
}

.bento-card-subjects:hover::before {
    background: linear-gradient(90deg, #6366f1, #06b6d4);
}

.bento-card-instant:hover::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.bento-card-gemini:hover::before {
    background: linear-gradient(90deg, #4285f4, #9b72cb, #d96570);
}

.bento-card-header {
    margin-bottom: 1.25rem;
    min-height: 72px;
    display: flex;
    align-items: center;
}

/* 3-Column Subject Showcase (Chemistry, Physics, Math) */
.bento-subjects-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.bento-sub-box {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 8px 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: default;
}

.bento-sub-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.sub-chem-box {
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    border-color: rgba(216, 180, 254, 0.7);
}
.sub-chem-box:hover {
    border-color: #a855f7;
}

.sub-phys-box {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border-color: rgba(186, 230, 253, 0.7);
}
.sub-phys-box:hover {
    border-color: #0ea5e9;
}

.sub-math-box {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-color: rgba(167, 243, 208, 0.7);
}
.sub-math-box:hover {
    border-color: #10b981;
}

.bento-sub-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-sub-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* App-style Squircles */
.bento-icon-squircle {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lamp-squircle {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.18);
}

.gemini-squircle {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(155, 114, 203, 0.3);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.14);
}

/* Card Titles */
.bento-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

/* Pills Row */
.bento-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.bento-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 600;
}

.pill-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.pill-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #0e7490;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.pill-amber {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.pill-green {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pill-gemini-accuracy {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(155, 114, 203, 0.12));
    color: #6b21a8;
    border: 1px solid rgba(155, 114, 203, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
}

/* Math Step-by-Step Box in Gemini Card */
.bento-math-box {
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.bento-math-eq {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.92rem;
    margin-bottom: 5px;
    font-family: 'Consolas', 'Courier New', monospace;
}

.bento-math-step {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.45;
}

/* Card Description */
.bento-card-desc {
    color: var(--text-secondary, #475569);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 40px;
    margin-bottom: 4rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 4rem 5% 2rem;
    background: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    text-align: center;
    color: #a0a0a5;
    font-size: 0.85rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 520px;
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    animation: modalIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-close {
    background: #f0f0f2;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.modal-close:hover {
    background: #e0e0e4;
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    font-family: inherit;
    font-size: 0.95rem;
    background: #f9f9fb;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Animations */
@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.match-card {
    animation: fadeInScale 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .stat-divider { width: 40px; height: 1px; }
    .nav-links { display: none; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .filter-tabs { flex-wrap: wrap; }
}

/* AI Chat Modal */
.chat-modal-card {
    max-width: 650px;
    width: 95%;
    height: 85vh;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
}

.chat-tutor-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-tutor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.chat-tutor-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-tutor-title span#chatTutorName {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.chat-online-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #34c759;
    background: #eafbf0;
    padding: 2px 7px;
    border-radius: 20px;
}

.chat-tutor-sub {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chat-config-btn {
    background: #f0f0f4;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-config-btn:hover {
    background: #e2e2e8;
    color: var(--text-primary);
}

.api-key-drawer {
    padding: 0.8rem 1.2rem;
    background: #fdfbf7;
    border-bottom: 1px solid #f0e6d6;
    animation: fadeInScale 0.3s ease;
}

.chat-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.8rem 1.2rem;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    scrollbar-width: none;
}

.chat-chip {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f0f7ff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: #fcfcfd;
}

.chat-msg {
    max-width: 84%;
    padding: 0.85rem 1.15rem;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
    animation: fadeInScale 0.25s ease;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
    white-space: pre-wrap;
}

.chat-msg.tutor {
    align-self: flex-start;
    background: white;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    max-width: 90%;
    white-space: normal;
}

.chat-msg.tutor h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2942;
    margin: 0.9rem 0 0.45rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1.5px solid #e2e8f0;
}

.chat-msg.tutor h3:first-child {
    margin-top: 0.1rem;
}

.chat-msg.tutor h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0.75rem 0 0.35rem 0;
}

.chat-msg.tutor p {
    margin: 0 0 0.65rem 0;
}

.chat-msg.tutor p:last-child {
    margin-bottom: 0;
}

.chat-msg.tutor hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 0.85rem 0;
}

.chat-msg.tutor ul, .chat-msg.tutor ol {
    margin: 0.4rem 0 0.75rem 1.25rem;
    padding: 0;
}

.chat-msg.tutor li {
    margin-bottom: 0.35rem;
    line-height: 1.55;
}

.chat-msg.tutor blockquote {
    border-left: 3px solid #2563eb;
    background: #f8fafc;
    padding: 0.45rem 0.85rem;
    margin: 0.6rem 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #334155;
}

.chat-msg.tutor .katex-display {
    margin: 0.65rem 0;
    padding: 0.4rem 0.6rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    overflow-x: auto;
    overflow-y: hidden;
}

.chat-msg.tutor .katex {
    font-size: 1.05em;
}

.chat-msg.typing {
    color: var(--text-secondary);
    font-style: italic;
    background: #f0f0f3;
}

.chat-input-bar {
    display: flex;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-input-bar input {
    flex: 1;
    padding: 0.8rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    outline: none;
    background: #f8f8fa;
    color: var(--text-primary);
    transition: all 0.2s;
}

.chat-input-bar input:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.btn-send-chat {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send-chat:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.ai-chat-btn {
    background: linear-gradient(135deg, #0071e3, #47a3ff);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
    transition: all 0.25s ease;
}

.ai-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35);
}

/* Botão de Gerar Aula em PDF no Chat Header */
.btn-pdf-lesson {
    background: linear-gradient(135deg, #ff9500, #ff5e3a);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-pdf-lesson:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.45);
    filter: brightness(1.05);
}

/* Botão de Gerar Mapa Mental no Chat Header */
.btn-mindmap-lesson {
    background: linear-gradient(135deg, #673ab7, #512da8);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(103, 58, 183, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-mindmap-lesson:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.45);
    filter: brightness(1.05);
}

/* Botões de Ação no Card do Tutor - Hierarquia Moderna */
.card-actions-wrapper {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-card-chat {
    width: 100%;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-chat:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.card-tools-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    width: 100%;
}

.btn-card-tool {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 8px;
    padding: 0.52rem 0.2rem;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.btn-card-tool:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-card-tool-simulado {
    color: #c2410c;
    background: #fff7ed;
    border-color: #ffedd5;
}

.btn-card-tool-simulado:hover {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fed7aa;
}

/* Modal de Gerar Aula em PDF */
.lesson-pdf-modal-card {
    max-width: 520px;
    width: 90%;
    padding: 1.8rem;
}

.quick-topic-chip {
    background: #f2f2f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.quick-topic-chip:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Ações de Autenticação no Navbar (Padrão de Mercado SaaS) --- */
.nav-auth-guest {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login-nav {
    background: transparent;
    color: #334155;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    padding: 0.48rem 1.05rem;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-login-nav:hover {
    background: #f1f5f9;
    border-color: #0071e3;
    color: #0071e3;
    transform: translateY(-1px);
}

.btn-register-nav {
    background: linear-gradient(135deg, #0071e3, #0284c7);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.15rem;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-register-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.35);
    filter: brightness(1.05);
}

/* --- Container e Botão do Menu de Usuário no Navbar --- */
.user-profile-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.user-menu-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #673ab7, #0071e3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.user-menu-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.user-menu-badge {
    background: linear-gradient(135deg, #673ab7, #512da8);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.user-menu-btn .chevron-down {
    color: #64748b;
    transition: transform 0.2s ease;
}

.user-profile-menu-container.open .chevron-down {
    transform: rotate(180deg);
}

/* --- Dropdown Suspenso de Usuário --- */
.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 290px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 10px;
    z-index: 10005;
    animation: fadeInDown 0.18s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
}

.user-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #673ab7, #0071e3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-dropdown-info strong {
    font-size: 0.88rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-info span {
    font-size: 0.75rem;
    color: #64748b;
}

.dropdown-plan-tag {
    display: inline-block;
    margin-top: 3px;
    font-size: 0.7rem !important;
    font-weight: 700;
    color: #673ab7 !important;
}

.user-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.user-dropdown-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 6px 10px 2px;
}

.user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.user-dropdown-item:hover {
    background: #f1f5f9;
}

.user-dropdown-item .item-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.user-dropdown-item .item-text {
    display: flex;
    flex-direction: column;
}

.user-dropdown-item .item-text strong {
    font-size: 0.82rem;
    color: #1e293b;
}

.user-dropdown-item .item-text small {
    font-size: 0.72rem;
    color: #64748b;
}

.user-dropdown-item.logout-item:hover {
    background: #fee2e2;
}

.user-dropdown-item.logout-item:hover .item-text strong {
    color: #b91c1c;
}

/* --- Modal de Cadastro --- */
.register-modal-card {
    max-width: 480px;
    padding: 2rem;
    border-radius: 20px;
}

.register-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.input-modern {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.input-modern:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.btn-register-submit {
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
    transition: all 0.2s ease;
}

.btn-register-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.4);
}

.btn-link-tester {
    background: transparent;
    border: none;
    color: #673ab7;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}

/* --- Estilos Legados de Compatibilidade --- */
.user-badge {
    display: none;
}
.btn-pro-nav {
    display: none;
}

/* --- Seção de Preços & Planos --- */
.pricing-section {
    padding: 6rem 5% 7rem;
    text-align: center;
    position: relative;
}

.badge-pricing {
    display: inline-block;
    background: #fff8e6;
    border: 1px solid #ffd591;
    color: #d46b08;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    max-width: 1180px;
    margin: 3.5rem auto 0;
    align-items: stretch;
    text-align: left;
}

@media (max-width: 1040px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

.pricing-card {
    border-radius: 28px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.pricing-card.monthly-card {
    border: 1.5px solid rgba(2, 132, 199, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured-card {
    border: 2.5px solid #0284c7;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 249, 255, 0.99) 100%);
    box-shadow: 0 16px 45px rgba(2, 132, 199, 0.20);
    transform: scale(1.02);
}

.pricing-card.featured-card:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 22px 55px rgba(2, 132, 199, 0.30);
}

.pricing-card.pro-card {
    border: 2px solid #0284c7;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.98) 100%);
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.18);
    transform: scale(1.02);
}

.pricing-card.pro-card:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 22px 50px rgba(2, 132, 199, 0.28);
}

/* Seletor de Planos dentro do Modal de Checkout */
.checkout-plan-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.04);
    padding: 6px;
    border-radius: 14px;
}

.plan-select-btn {
    border: 2px solid transparent;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.plan-select-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.plan-select-btn.active {
    background: white;
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
    white-space: nowrap;
}

.plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.8rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.8rem;
}

.plan-price .currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 4px;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.plan-price .cents {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-price .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 6px;
}

.plan-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.8rem;
    min-height: 2.8rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.plan-features li {
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.plan-features li.disabled {
    color: #999;
    text-decoration: line-through;
    opacity: 0.7;
}

.plan-features .check {
    color: #34c759;
    font-weight: 800;
    font-size: 1.05rem;
}

.plan-features .cross {
    color: #ff3b30;
    font-weight: 700;
    font-size: 0.9rem;
}

.pricing-footer {
    margin-top: auto;
}

.btn-pricing-secondary {
    width: 100%;
    padding: 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: default;
}

.btn-pricing-pro {
    width: 100%;
    padding: 1rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #ff9500, #ff5e3a);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
    transition: all 0.25s ease;
}

.btn-pricing-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.55);
    filter: brightness(1.05);
}

.guarantee-text {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.8rem;
    font-weight: 500;
}

/* --- Checkout Modal --- */
.checkout-modal-card {
    max-width: 490px;
    width: 90%;
    padding: 2rem;
}

.checkout-summary-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 1rem 0 1.2rem;
}

.payment-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.2rem;
    background: #f1f2f6;
    padding: 4px;
    border-radius: 12px;
}

.pay-tab {
    flex: 1;
    padding: 0.65rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pay-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pix-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fafbfc;
    border: 1px solid #e1e4e8;
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.pix-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.pix-timer {
    font-size: 0.78rem;
    color: #e65100;
    font-weight: 600;
}

.pix-instructions {
    width: 100%;
}

.pix-copy-box {
    display: flex;
    gap: 6px;
    width: 100%;
}

.pix-copy-box input {
    flex: 1;
    padding: 0.55rem 0.8rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #555;
    background: white;
    font-family: monospace;
}

.btn-copy-pix {
    padding: 0.55rem 0.9rem;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy-pix:hover {
    background: #005bb5;
}

.ssl-guarantee {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin: 0.8rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-confirm-pay {
    width: 100%;
    padding: 0.9rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #34c759, #28a745);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(52, 199, 89, 0.35);
    transition: all 0.2s ease;
}

.btn-confirm-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 199, 89, 0.5);
}

/* ==========================================================================
   MODAL DE MAPA MENTAL VISUAL & ANALÍTICO (Ficha Infográfica Modelo Exemplo)
   ========================================================================== */
.mindmap-modal-card {
    max-width: 1140px !important;
    width: 95vw !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid #e2e8f0 !important;
}

.mindmap-canvas {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    padding: 1.8rem 2rem;
    box-shadow: 0 10px 35px rgba(15, 41, 66, 0.05);
    color: #1e293b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

/* Header Limpo Editorial com Badges */
.mm-header-clean {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.1rem;
    margin-bottom: 1.3rem;
    text-align: center;
}

.mm-badges-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 8px;
}

.mm-badge-left {
    background: #f0f7ff;
    color: #1d4ed8;
    border: 1.5px solid #60a5fa;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.15);
}

.mm-badge-right {
    background: #0f2942;
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(15, 41, 66, 0.2);
}

/* Título em Dois Tons Contrastantes (Azul x Verde) */
.mm-clean-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f2942;
    margin: 0.4rem 0 0.35rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mm-title-accent-blue {
    color: #1d4ed8;
}

.mm-title-accent-sep {
    color: #64748b;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 4px;
}

.mm-title-accent-green {
    color: #15803d;
}

.mm-clean-subtitle {
    font-size: 0.94rem;
    color: #475569;
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.55;
    font-weight: 500;
}

/* Layout Principal em 3 Colunas Perfeitas */
.mm-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr 1fr;
    gap: 1.2rem;
    align-items: start;
    margin-bottom: 1.4rem;
}

@media (max-width: 980px) {
    .mm-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Colunas Laterais: Azul (Eixo A) e Verde (Eixo B) */
.mm-col-card {
    border-radius: 20px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.mm-col-card.blue-theme {
    background: #f0f7ff;
    border: 2px solid #93c5fd;
}

.mm-col-card.green-theme {
    background: #f0fdf4;
    border: 2px solid #86efac;
}

/* Pílula Hero do Topo da Coluna com Círculo de Ícone */
.mm-hero-badge-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.65rem 1.1rem;
    border-radius: 50px;
    color: white;
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blue-theme .mm-hero-badge-pill {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.green-theme .mm-hero-badge-pill {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.hero-circle-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Cartões Internos Brancos com Bordas Arredondadas */
.mm-editorial-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.blue-theme .mm-editorial-card {
    border: 1.5px solid #bfdbfe;
}

.green-theme .mm-editorial-card {
    border: 1.5px solid #bbf7d0;
}

.mm-def-card {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #1e293b;
}

.mm-def-card p {
    margin: 0;
}

.mm-editorial-arrow {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 900;
    margin: -0.45rem 0;
    line-height: 1;
}

.blue-arrow { color: #3b82f6; }
.green-arrow { color: #22c55e; }

.mm-card-tag {
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blue-tag { color: #1d4ed8; }
.green-tag { color: #15803d; }
.yellow-tag { color: #a16207; }

.mm-editorial-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.5;
}

.mm-editorial-list li {
    margin-bottom: 0.35rem;
}

.mm-editorial-list li:last-child {
    margin-bottom: 0;
}

.mm-keywords-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mm-keyword-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blue-theme .mm-keyword-pill {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.green-theme .mm-keyword-pill {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mm-example-box {
    border: 1.5px dashed rgba(0, 0, 0, 0.18);
    background: #ffffff;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.blue-theme .mm-example-box {
    border-color: #93c5fd;
}

.green-theme .mm-example-box {
    border-color: #86efac;
}

.mm-example-row {
    font-size: 0.81rem;
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

.mm-ex-label {
    font-weight: 800;
    color: #1e293b;
    margin-right: 4px;
}

.mm-ex-text {
    font-style: italic;
    color: #475569;
}

.mm-ex-val {
    color: #1e293b;
}

.mm-example-badge-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    padding-top: 0.45rem;
    border-top: 1px dashed #e2e8f0;
}

.mm-badge-stamp {
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1d4ed8;
}

.green-theme .mm-badge-stamp {
    color: #15803d;
}

.mm-check-circle-green {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(34, 197, 94, 0.35);
}

/* Coluna Central: Comparativo & Pegadinha com Espaçamento Limpo */
.mm-center-col {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

/* Mascote Matchy com banner de diferença sem sobreposição */
.mm-brain-flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.35rem;
}

.mm-mascot-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mm-mascot-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 2.5px solid #06b6d4;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mm-mascot-avatar:hover {
    transform: scale(1.1) rotate(-3deg);
}

.mm-mascot-tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 9999px;
    padding: 1px 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.12);
}

.mm-diff-banner {
    background: #fefce8;
    border: 1.5px solid #facc15;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #854d0e;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.12);
    width: 100%;
    box-sizing: border-box;
}

/* Caixa Tracejada: COMPARATIVO */
.mm-comparative-container {
    background: #ffffff;
    border: 2px dashed #94a3b8;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.02);
}

.mm-comp-title-bar {
    text-align: center;
    font-size: 0.86rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.mm-comp-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.mm-comp-col-pill {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mm-comp-col-pill.blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1.5px solid #bfdbfe;
}

.mm-comp-col-pill.green {
    background: #f0fdf4;
    color: #15803d;
    border: 1.5px solid #bbf7d0;
}

.mm-comp-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mm-comp-row-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    font-size: 0.8rem;
    line-height: 1.35;
}

.mm-comp-side {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.mm-comp-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.mm-comp-text {
    color: #334155;
    font-weight: 600;
    font-size: 0.78rem;
}

/* Caixa Vermelha: PEGADINHA DA BANCA */
.mm-trap-box-editorial {
    background: #ffffff;
    border: 2px solid #ef4444;
    border-radius: 14px;
    padding: 0.9rem 1.05rem;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
}

.mm-trap-header-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 900;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.mm-trap-intro {
    font-size: 0.81rem;
    color: #475569;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.mm-trap-checklist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.7rem;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.mm-trap-check-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.81rem;
    font-weight: 600;
}

.mm-trap-check-item.ok {
    color: #166534;
}

.mm-trap-connector {
    font-size: 0.74rem;
    font-weight: 800;
    color: #dc2626;
    text-transform: uppercase;
    padding-left: 1.4rem;
}

.mm-trap-check-item.err {
    color: #991b1b;
}

.mm-trap-callout-pill {
    background: #fef08a;
    border: 1.5px solid #eab308;
    color: #713f12;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.4;
    font-weight: 600;
}

.mm-trap-callout-pill strong {
    font-weight: 800;
    color: #451a03;
}

/* Rodapé: 4 Cards de Fixação (Grade 4 Colunas) */
.mm-retention-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
    .mm-retention-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .mm-retention-grid {
        grid-template-columns: 1fr;
    }
}

.mm-retention-card {
    border-radius: 14px;
    padding: 0.9rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.mm-retention-card.card-cobra {
    border: 2px solid #d8b4fe;
    background: #faf5ff;
}

.mm-retention-card.card-macete {
    border: 2px solid #fde047;
    background: #fefce8;
}

.mm-retention-card.card-erros {
    border: 2px solid #fca5a5;
    background: #fff1f2;
}

.mm-retention-card.card-dica {
    border: 2px solid #86efac;
    background: #f0fdf4;
}

.mm-retention-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-cobra .mm-retention-header { color: #7e22ce; }
.card-macete .mm-retention-header { color: #a16207; }
.card-erros .mm-retention-header { color: #b91c1c; }
.card-dica .mm-retention-header { color: #15803d; }

.mm-retention-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.45;
}

.mm-retention-list li {
    margin-bottom: 0.3rem;
}

.mm-retention-list li:last-child {
    margin-bottom: 0;
}

.mm-mnemonic-step {
    font-size: 0.79rem;
    line-height: 1.45;
    color: #713f12;
    margin-bottom: 0.4rem;
}

.mm-mnemonic-step strong {
    color: #a16207;
    font-weight: 900;
}

.mm-gold-star {
    text-align: center;
    font-size: 1.3rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

/* Faixa de Resumo Visual & Post-It Adesivo */
.mm-summary-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.mm-flow-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 700;
    flex-wrap: wrap;
}

.mm-tape-badge {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(-2deg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mm-flow-pill {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.76rem;
}

.mm-sticky-note {
    background: #ecfdf5;
    border: 1.5px solid #86efac;
    color: #065f46;
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    max-width: 440px;
    font-size: 0.81rem;
    line-height: 1.45;
}

.mm-sticky-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 16px;
    background: rgba(148, 163, 184, 0.45);
    border-radius: 2px;
}

/* Regras de Impressão para Salvar como PDF A4 Perfeito */
@media print {
    body * {
        visibility: hidden !important;
    }
    #mindMapModal, #mindMapModal * {
        visibility: visible !important;
    }
    #mindMapModal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: white !important;
        display: block !important;
        padding: 0 !important;
    }
    .mindmap-modal-card {
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    .modal-header, #mindMapResult > div:last-child {
        display: none !important;
    }
    .mindmap-canvas {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* --- Estilos do Markmap Interativo (D3.js / SVG) --- */
.mm-tab-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mm-tab-btn:hover {
    transform: translateY(-1px);
}
#markmapSvg {
    cursor: grab;
}
#markmapSvg:active {
    cursor: grabbing;
}
.markmap-node text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    fill: #f1f5f9 !important;
}
.markmap-node circle {
    cursor: pointer;
    transition: transform 0.2s ease, fill 0.2s ease;
}
.markmap-node circle:hover {
    transform: scale(1.35);
}
.markmap-link {
    stroke-opacity: 0.8 !important;
    stroke-width: 2.2px !important;
}

/* ========================================================
   ESTILOS PREMIUM: BANNER ÚNICO DO SIMULADO GERAL
   Texto Centralizado e Justificado, Design Harmonioso
   ======================================================== */

.simulado-general-banner {
    margin: 2.2rem auto 2.8rem;
    padding: 2.4rem 2.8rem;
    max-width: 920px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fffaf5 0%, #fff4ec 50%, #ffedd5 100%);
    border: 1.5px solid #fed7aa;
    box-shadow: 0 12px 35px rgba(234, 88, 12, 0.09), 0 2px 6px rgba(0, 0, 0, 0.02);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simulado-general-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(234, 88, 12, 0.14), 0 4px 10px rgba(0, 0, 0, 0.03);
}

.simulado-banner-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.simulado-banner-pill {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.simulado-banner-tag {
    color: #9a3412;
    font-size: 0.84rem;
    font-weight: 600;
}

.simulado-banner-title {
    margin: 0 0 0.9rem;
    font-size: 1.55rem;
    color: #7c2d12;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-align: center;
}

.simulado-banner-desc {
    margin: 0 auto 1.5rem;
    max-width: 800px;
    font-size: 0.96rem;
    color: #431407;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: center;
}

.simulado-banner-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.simulado-feat-chip {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(234, 88, 12, 0.22);
    color: #9a3412;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.38rem 0.95rem;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.simulado-banner-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-simulado-banner-primary {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    border: none;
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.02rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(194, 65, 12, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-simulado-banner-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(194, 65, 12, 0.45);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.btn-simulado-banner-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #9a3412;
    border: 1.5px solid #fed7aa;
    padding: 0.95rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.02rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-simulado-banner-secondary:hover {
    background: #fff7ed;
    border-color: #ea580c;
    color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.2);
}

/* ========================================================
   Ranking Modal, Pódio & Leaderboard dos Simulados
   ======================================================== */

.ranking-modal-card {
    max-width: 860px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 1.8rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.ranking-modal-body {
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 1rem;
}

/* Pódio Top 3 */
.ranking-podium-container {
    margin-bottom: 2rem;
    padding: 1rem 0.5rem 0;
}

.podium-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
}

.podium-card {
    flex: 1;
    background: #ffffff;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    border-bottom: none;
    text-align: center;
    padding: 1rem 0.6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease;
}

.podium-card:hover {
    transform: translateY(-4px);
}

.podium-card.place-1 {
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.22);
    border: 1.5px solid #fde68a;
    border-bottom: none;
}

.podium-card.podium-current-user {
    border: 2px solid #ea580c !important;
    background: #fff7ed;
}

.podium-medal {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #475569;
}

.podium-avatar-wrapper {
    position: relative;
    margin-bottom: 6px;
}

.podium-avatar {
    font-size: 2.2rem;
    display: inline-block;
}

.place-1 .podium-avatar {
    font-size: 2.8rem;
}

.crown-icon {
    position: absolute;
    top: -12px;
    right: -10px;
    font-size: 1.4rem;
    animation: floatCrown 2s infinite ease-in-out;
}

@keyframes floatCrown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(6deg); }
}

.podium-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.podium-you-tag {
    background: #ea580c;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

.podium-tri {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ea580c;
    margin: 2px 0;
}

.place-1 .podium-tri {
    font-size: 1.35rem;
    color: #d97706;
}

.podium-score {
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.podium-badge-tag {
    font-size: 0.7rem;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.podium-step {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    margin-top: auto;
}

.podium-rank-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(30, 41, 59, 0.4);
}

/* Tabela de Classificação */
.ranking-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ranking-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.ranking-table th {
    padding: 12px 14px;
    font-weight: 700;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.ranking-table tbody tr:hover {
    background: #f8fafc;
}

.ranking-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.ranking-row-me {
    background: #fffbeb !important;
    border-left: 4px solid #f59e0b;
}

.table-you-pill {
    background: #ea580c;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.ranking-badge-pill {
    font-size: 0.74rem;
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .simulado-general-banner {
        padding: 1.6rem 1.2rem;
        margin: 1.5rem auto 2rem;
        border-radius: 18px;
    }
    .simulado-banner-title {
        font-size: 1.3rem;
    }
    .simulado-banner-desc {
        text-align: center;
        text-align-last: center;
        font-size: 0.92rem;
    }
    .btn-simulado-banner-primary,
    .btn-simulado-banner-secondary {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.85rem 1.2rem;
    }
    .ranking-modal-card {
        padding: 1.2rem;
        width: 98%;
    }
    .podium-grid {
        gap: 8px;
    }
    .podium-card {
        padding: 0.8rem 0.3rem 0;
    }
    .podium-name {
        max-width: 100px;
        font-size: 0.82rem;
    }
    .podium-score {
        display: none;
    }
    .ranking-table th:nth-child(3),
    .ranking-table td:nth-child(3),
    .ranking-table th:nth-child(7),
    .ranking-table td:nth-child(7) {
        display: none;
    }
}

/* ========================================================
   PÁGINA DO TUTOR & GUIA RAIO-X DO VESTIBULAR
   ======================================================== */

.btn-card-vestibular-cta {
    width: 100%;
    background: rgba(0, 113, 227, 0.06);
    border: 1px solid rgba(0, 113, 227, 0.22);
    color: #0071e3;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.85rem;
}

.btn-card-vestibular-cta:hover {
    background: #0071e3;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}

.tutor-detail-view {
    max-width: 1060px;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem;
    animation: fadeIn 0.3s ease;
}

/* Barra de Navegação */
.td-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-td-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1e293b;
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-td-back:hover {
    background: #f8fafc;
    border-color: #0071e3;
    color: #0071e3;
    transform: translateX(-2px);
}

.td-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.avatar-status-dot-inline {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Hero / Perfil Principal */
.tutor-profile-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.tutor-profile-main {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.tutor-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.tutor-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.td-online-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background-color: #10b981;
    border-radius: 50%;
    border: 3px solid #ffffff;
}

.tutor-profile-info {
    flex: 1;
}

.tutor-profile-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.td-cat-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.td-rating-tag {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.td-level-tag {
    background: #ede9fe;
    color: #6d28d9;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.tutor-profile-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.tutor-profile-subject {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0071e3;
    margin: 0 0 0.8rem;
}

.tutor-profile-bio {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1.2rem;
    max-width: 780px;
}

.tutor-target-exams-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.target-exams-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.target-exams-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.target-exam-pill {
    background: #0ea5e9;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.tutor-profile-cta-bar {
    display: flex;
    gap: 12px;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    flex-wrap: wrap;
}

.btn-td-cta-chat {
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-td-cta-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
    filter: brightness(1.05);
}

.btn-td-cta-simulado {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    color: #c2410c;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-td-cta-simulado:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    transform: translateY(-2px);
}

/* Card de Estudo Personalizado (Digite qualquer tópico) */
.tutor-custom-topic-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.95) 100%);
    border: 1.5px solid rgba(0, 113, 227, 0.2);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 12px 36px rgba(0, 113, 227, 0.08);
    margin-bottom: 2.5rem;
    position: relative;
}

.custom-topic-header {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.custom-topic-icon-wrap {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.custom-topic-pill {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.custom-topic-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
}

.custom-topic-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    max-width: 760px;
}

.custom-topic-interactive-box {
    margin-top: 1.2rem;
}

.custom-input-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid rgba(0, 113, 227, 0.25);
    border-radius: 14px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.custom-input-container:focus-within {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.custom-input-symbol {
    font-size: 1.2rem;
    margin-right: 10px;
}

.custom-input-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
    background: transparent;
    padding: 0.5rem 0;
}

.custom-input-container input::placeholder {
    color: #94a3b8;
}

.btn-input-clear {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}

.btn-input-clear:hover {
    color: #475569;
}

.custom-topic-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.btn-action-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-action-icon {
    font-size: 1.7rem;
    flex-shrink: 0;
}

.btn-action-text {
    display: flex;
    flex-direction: column;
}

.btn-action-text strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.btn-action-text span {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.btn-action-pdf:hover {
    border-color: #0071e3;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.15);
}

.btn-action-pdf:hover .btn-action-text strong {
    color: #0071e3;
}

.btn-action-mindmap:hover {
    border-color: #7c3aed;
    background: #faf5ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.15);
}

.btn-action-mindmap:hover .btn-action-text strong {
    color: #7c3aed;
}

.btn-action-chat:hover {
    border-color: #059669;
    background: #ecfdf5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.15);
}

.btn-action-chat:hover .btn-action-text strong {
    color: #059669;
}

/* Seção Raio-X do Vestibular */
.tutor-vestibular-section {
    margin-bottom: 2.5rem;
}

.vestibular-section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vestibular-section-badge {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.vestibular-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}

.vestibular-section-sub {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}

.vestibular-stat-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.v-stat-count {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0071e3;
}

.v-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

/* Grid e Cards dos Tópicos */
.vestibular-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.2rem;
}

.vestibular-topic-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 1.4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.vestibular-topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 227, 0.3);
}

.topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 6px;
}

.topic-incidence-badge {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
}

.topic-diff-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
}

.topic-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 0.6rem;
}

.topic-exams-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.topic-exam-chip {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.topic-card-tip {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
    background: #f8fafc;
    border-left: 3px solid #0071e3;
    padding: 8px 10px;
    border-radius: 0 8px 8px 0;
    margin: 0 0 1.2rem;
    flex: 1;
}

.topic-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.topic-card-actions .btn-topic-chat {
    grid-column: span 2;
}

.btn-topic-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8fafc;
    color: #334155;
}

.btn-topic-pdf:hover {
    background: #0071e3;
    color: #ffffff;
    border-color: #0071e3;
}

.btn-topic-mindmap:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

.btn-topic-chat:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

/* Card de Metodologia */
.tutor-didactic-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.8rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.didactic-icon {
    font-size: 2.2rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.didactic-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.didactic-info p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.didactic-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.didactic-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #334155;
}

.d-check {
    color: #059669;
    font-weight: 800;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tutor-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .tutor-profile-meta-row {
        justify-content: center;
    }
    .tutor-target-exams-row {
        justify-content: center;
    }
    .tutor-profile-cta-bar {
        flex-direction: column;
    }
    .btn-td-cta-chat,
    .btn-td-cta-simulado {
        width: 100%;
        justify-content: center;
    }
    .custom-topic-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .custom-topic-actions-grid {
        grid-template-columns: 1fr;
    }
    .vestibular-topics-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================== */
/* WIDGET FLUTUANTE DE SUPORTE E ATENDIMENTO 24/7 (LIA)           */
/* ============================================================== */
.support-widget-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Botão Launcher Flutuante */
.support-launcher-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #0071e3 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 12px 20px 12px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.support-launcher-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 113, 227, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.support-launcher-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.support-launcher-label {
    letter-spacing: -0.01em;
}

.support-pulse-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: supportPulse 2s infinite;
}

@keyframes supportPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Janela de Atendimento */
.support-window {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 380px;
    height: 540px;
    max-height: calc(100vh - 110px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: supportSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes supportSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.support-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.support-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0f2fe;
    border: 2px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.support-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #059669;
    border: 2px solid #ffffff;
}

.support-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.support-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Chips Rápidos de FAQ */
.support-quick-chips {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 12px 10px;
}

.quick-chips-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.quick-chips-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.quick-chips-scroll::-webkit-scrollbar {
    height: 4px;
}

.quick-chips-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.quick-chip {
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.quick-chip:hover {
    background: #eff6ff;
    border-color: #0071e3;
    color: #0071e3;
    transform: translateY(-1px);
}

/* Área de Mensagens */
.support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
}

.support-msg {
    display: flex;
    gap: 8px;
    max-width: 90%;
    animation: supportMsgFade 0.25s ease-out;
}

@keyframes supportMsgFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-msg-bot {
    align-self: flex-start;
}

.support-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.support-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.support-msg-content {
    background: #f1f5f9;
    color: #1e293b;
    padding: 10px 13px;
    border-radius: 14px;
    border-top-left-radius: 4px;
    font-size: 0.84rem;
    line-height: 1.45;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.support-msg-user .support-msg-content {
    background: #0071e3;
    color: #ffffff;
    border-radius: 14px;
    border-top-right-radius: 4px;
}

.support-msg-content strong {
    color: inherit;
}

.support-msg-content a {
    color: #0071e3;
    text-decoration: underline;
    font-weight: 700;
}

.support-msg-user .support-msg-content a {
    color: #e0f2fe;
}

/* Indicador de Digitação */
.support-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #f1f5f9;
    border-radius: 12px;
    width: fit-content;
}

.support-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: supportDotBounce 1.2s infinite ease-in-out;
}

.support-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.support-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes supportDotBounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
}

/* Formulário de Envio */
.support-input-area {
    padding: 10px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-input-area input {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    padding: 9px 15px;
    font-size: 0.85rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-input-area input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.support-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0071e3;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.support-send-btn:hover {
    background: #1e40af;
    transform: scale(1.05);
}

.support-send-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Responsividade Mobile */
@media (max-width: 480px) {
    .support-widget-wrapper {
        bottom: 16px;
        right: 16px;
    }
    .support-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        bottom: 58px;
        right: 0;
        border-radius: 16px;
    }
}

/* ========================================================
   MODO SIMULADO EM TELA CHEIA & NAVEGADOR DE QUESTÕES
   ======================================================== */

.simulado-overlay {
    z-index: 10060 !important;
    padding: 1.2vh 1.2vw !important;
}

.simulado-modal-card {
    width: 98vw !important;
    max-width: 1440px !important;
    height: 96vh !important;
    max-height: 96vh !important;
    padding: 1.2rem 1.8rem !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    transition: max-width 0.25s ease, height 0.25s ease, border-radius 0.25s ease;
}

/* Estado de Configuração Inicial (compacto e focado no centro) */
.simulado-modal-card.is-config {
    max-width: 760px !important;
    height: auto !important;
    max-height: 92vh !important;
    margin: auto !important;
}

/* Estado de Tela Cheia Total (100% da viewport) */
.simulado-modal-card.is-true-fullscreen {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 1rem 1.5rem !important;
    box-shadow: none !important;
}

/* Header Tecnológico do Simulado */
.simulado-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

/* Layout 2 Colunas da Prova */
.simulado-exam-container {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Área Principal das Questões */
.simulado-exam-main {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.8rem;
    min-height: 0;
}

/* Painel Lateral do Aluno (Sidebar) */
.simulado-exam-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    overflow-y: auto;
}

/* Grid do Mapa de Questões */
.simulado-qgrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 0.5rem;
}

.simulado-qgrid-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.simulado-qgrid-btn:hover {
    border-color: #ea580c;
    color: #ea580c;
    background: #fff7ed;
    transform: translateY(-2px);
}

.simulado-qgrid-btn.answered {
    background: #059669;
    color: white;
    border-color: #047857;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.simulado-qgrid-btn.current {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}

/* Card de Questão */
.simulado-qcard {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.simulado-qcard:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Alternativas */
.simulado-option-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1rem 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fafafa;
    margin-bottom: 0.65rem;
}

.simulado-option-label:hover {
    border-color: #ea580c;
    background: #fff7ed;
    transform: translateX(4px);
}

.simulado-option-label.selected {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.simulado-opt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 0.15s ease, color 0.15s ease;
}

.simulado-option-label.selected .simulado-opt-badge {
    background: #ea580c;
    color: white;
}

/* Responsividade Mobile e Telas Menores */
@media (max-width: 900px) {
    .simulado-exam-container {
        flex-direction: column;
    }
    .simulado-exam-sidebar {
        width: 100%;
        height: auto;
        order: -1;
        padding: 0.8rem;
        gap: 0.8rem;
    }
    .simulado-qgrid {
        grid-template-columns: repeat(10, 1fr);
    }
    .simulado-modal-card {
        padding: 1rem !important;
    }
}

