/* ----------------- */
/* Variáveis e Reset */
/* ----------------- */
:root {
    --font-family: 'Inter', sans-serif;
    --primary: #dbc9ad;
    --primary-dark: #c4b59c;
    --primary-light: #e8d9c0;
    --text-dark: #2b2a2a;
    --text-light: #666666;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --header-height: 60px;
    --header-bg: #f5f0e6;
    --header-border: rgba(219, 201, 173, 0.3);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------- */
/* Header e Logo */
/* --------------- */
/* Ajuste no header para corresponder ao design */
/* Tornar o degradê mais visível na altura do header */

/* Ajustar o ângulo e os pontos de parada para acelerar a transição vertical */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    /* Alterando o ângulo para 120deg para dar mais ênfase à transição vertical */
    background: linear-gradient(120deg,
            #e6dac8 0%,
            #e6dac8 20%,
            /* Manter o bege por mais tempo à esquerda */
            #f0e9df 40%,
            /* Acelerar a transição após os 20% */
            white 60%);
    /* Concluir a transição mais cedo */
    z-index: 998;
    transition: all 0.3s ease;
    border-bottom: none;
    overflow: visible;
}

/* Adicionar um gradiente de reforço exclusivamente vertical */
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom,
            #e6dac8 0%,
            rgba(240, 233, 223, 0.5) 70%,
            rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Ajustar o header em estado de scroll */
.header-scrolled {
    box-shadow: none;
    background: linear-gradient(120deg,
            #e6dac8 0%,
            #e6dac8 20%,
            #f0e9df 40%,
            white 60%);
}

.header-scrolled::before {
    opacity: 0.9;
}

/* Modificar o fundo da seção hero para combinar com a nova transição */
.hero {
    padding-top: calc(var(--header-height) + 10px);
    background: linear-gradient(120deg,
            #f0e9df 0%,
            #f7f3ed 20%,
            white 50%);
    overflow: hidden;
    position: relative;
}

/* Elemento de transição entre header e hero */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom,
            rgba(240, 233, 223, 0.7) 0%,
            rgba(240, 233, 223, 0.1) 100%);
    pointer-events: none;
}

.navbar {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0 3rem; /* Espaçamento igual dos dois lados */
}

.logo {
    position: relative;
    z-index: 999;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding-right: 1rem;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80%;
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-height: none;
    object-fit: contain;
}

.logo-text {
    margin-left: calc(var(--header-height) + 10px);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Posicionar o seletor de idiomas como contrapeso à logo */
.language-selector {
    flex-shrink: 0;
    margin-left: 10px;
    z-index: 100;
}

.nav-links li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    height: 100%;
}

/* Estilo para o nome do usuário em duas linhas */
#nav-user-name {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 !important;
    text-decoration: none !important;
    font-family: var(--font-family) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #28a745 !important;
    position: relative !important;
}

.nav-user-name {
    display: inline !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.nav-user-name .first-name,
.nav-user-name .last-name {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    display: inline !important;
}

.nav-user-name .last-name {
    margin-left: 4px !important;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-dark);
}

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

.btn-primary {
    background: transparent;
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid var(--text-dark);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-trial {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
}

.btn-trial:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea087 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white !important;
}

/* ---------------- */
/* Seção Hero */
/* ---------------- */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: center;
}

.hero-content-centered {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
}

.hero-subtitle {
    display: block !important;
    font-size: 1.5rem !important;
    color: #61460a !important;
    margin-top: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
}

/* Escurecer ainda mais o subtítulo para melhor legibilidade */
/* Forçar a cor do subtítulo com maior especificidade e !important */
.hero .hero-container .hero-content-centered .hero-title .hero-subtitle,
.hero-title .hero-subtitle,
.hero-subtitle {
    display: block !important;
    font-size: 1.5rem !important;
    color: #61460a !important;
    /* Forçar a cor com !important */
    margin-top: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
   
}



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

.btn-hero {
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--text-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero:active {
    transform: scale(0.98);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.btn-hero-secondary:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ----------------------- */
/* Container de Vídeo */
/* ----------------------- */
.video-showcase {
    width: 100%;
    max-width: 840px;
    margin-top: -30px;
    /* Aumentado o valor negativo para subir mais o vídeo */
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Sombra mais pronunciada para aspecto profissional */
    margin: 0;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-content-centered {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ----------------------- */
/* Utilitários e Containers */
/* ----------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    background: var(--background);
    padding: 4rem 0;
    border-top: 1px solid #f0f0f0;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

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

.feature-icon i {
    font-size: 1.5rem;
    color: var(--text-dark);
}

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

.feature-card p {
    color: var(--text-light);
}

/* Downloads Section */
.downloads {
    background: var(--background-alt);
    padding: 4rem 0;
}

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

.download-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--text-dark);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-download:hover {
    background: var(--primary);
}

/* CTA Section */
.cta {
    background: var(--background);
    padding: 4rem 0;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--primary-light);
    border-radius: 12px;
}

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

.cta-container p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Deixar o degradê do footer mais óbvio */
.footer {
    width: 100%;
    background: linear-gradient(to bottom, var(--header-bg), white);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Menu Mobile */
.menu-mobile {
    display: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .menu-mobile {
        display: block;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-container {
        padding: 2rem 1rem;
    }

    .cta-container h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn-hero,
    .btn-hero-secondary {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}



/* Estilos da Página de Compra */
.purchase-hero {
    padding-top: calc(var(--header-height) + 20px);
    background: linear-gradient(to bottom, var(--header-bg), white);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    animation: slideIn 0.5s ease-out;
}

.purchase-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.product-info {
    width: 100%;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.features-list i {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.features-list li span {
    flex: 1;
    line-height: 1.4;
}

.price-box {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--header-bg);
    border-radius: 8px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
}

.license {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 0.5rem;
    display: block;
}

/* Seção de Pagamento */
.payment-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.payment-section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-option-icon {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
    font-size: 32px; /* For font-based icons like Font Awesome */
    line-height: 1;
    color: #555;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.payment-option.selected {
    border-color: var(--primary);
    background: var(--header-bg);
}

.payment-option i {
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Formulário */
#register-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

#register-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(219, 201, 173, 0.2);
    background: white;
}

/* Modais */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

/* Modal PIX específico - formato retangular mais largo */
.pix-modal-content {
    background: white !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    max-width: 700px !important;
    width: 85% !important;
    margin: 0 auto !important;
}

.success-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

.modal p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.meter-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.error-message {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

/* Footer ajustado */
/* Responsividade */
@media (max-width: 1024px) {
    .purchase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .purchase-hero {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price {
        font-size: 2.5rem;
    }

    .features-list li {
        font-size: 1rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .payment-option {
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .price-box {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* States Ativos e Hover */
.payment-option:active {
    transform: scale(0.98);
}

/* Utilitários */
.hidden {
    display: none !important;
}

/* =============================================== */
/* Modal de Autenticação Personalizado */
/* =============================================== */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 42, 42, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.auth-modal-content {
    background: var(--background);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--primary-light);
    animation: slideInAuth 0.3s ease-out;
}

@keyframes slideInAuth {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    padding: 1.5rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--primary);
}

.auth-modal-icon {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.auth-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.auth-modal-close:hover {
    background: rgba(43, 42, 42, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.auth-modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.auth-modal-body p {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.auth-modal-body p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-dark);
}

.auth-modal-footer {
    padding: 1.5rem;
    background: var(--background-alt);
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.auth-btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
}

.auth-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(219, 201, 173, 0.3);
}

.auth-btn-secondary {
    background: var(--background);
    color: var(--text-dark);
    border-color: var(--primary);
}

.auth-btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(219, 201, 173, 0.2);
}

/* Destacar menus de autenticação */
.highlight-auth {
    animation: pulseAuth 2s ease-in-out;
    position: relative;
}

.highlight-auth::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -8px;
    right: -8px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
    animation: pulseGlow 2s ease-in-out;
}

@keyframes pulseAuth {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .auth-modal-content {
        margin: 1rem;
        max-width: none;
    }
    
    .auth-modal-footer {
        flex-direction: column;
    }
    
    .auth-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-modal-header {
        padding: 1rem;
    }
    
    .auth-modal-body {
        padding: 1.5rem 1rem;
    }
    
    .auth-modal-footer {
        padding: 1rem;
    }
    
    .auth-modal-icon {
        font-size: 2rem;
    }
    
    .auth-modal-header h3 {
        font-size: 1.25rem;
    }
}

/* 🌍 LANGUAGE SELECTOR WITH FLAGS */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    flex-shrink: 0;
}

.language-dropdown {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
    min-width: 70px;
    max-width: 85px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.language-dropdown:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.language-dropdown.active {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.current-language {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 4px;
}

.flag-icon {
    width: 18px;
    height: 13px;
    margin-right: 6px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.language-name {
    display: none; /* Ocultar nomes das línguas - só bandeiras + códigos */
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: visible;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 12px;
    border-bottom: 1px solid #f8f9fa;
    white-space: nowrap;
    gap: 6px;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.language-option .flag-icon {
    margin-right: 6px;
}

.language-option .language-name {
    display: none; /* Ocultar nomes também nas opções */
}

.language-code {
    margin-left: 4px;
    font-size: 11px;
    color: #2c3e50;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Nav link com quebra de linha forçada */
.nav-link-multiline {
    white-space: normal !important;
    line-height: 1.2 !important;
    text-align: center;
    max-width: 100px;
    word-wrap: break-word;
    -webkit-hyphens: none;
    hyphens: none;
}

/* Aumentar altura do header para acomodar quebras de linha */
header {
    min-height: 80px;
}

.header-container {
    min-height: 80px;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 5px;
    }
    
    .language-dropdown {
        min-width: 60px;
        max-width: 75px;
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .nav-link-multiline {
        max-width: 80px;
        font-size: 12px;
    }
    
    header {
        min-height: 70px;
    }
    
    .flag-icon {
        width: 16px;
        height: 12px;
        margin-right: 4px;
    }
    
    .language-code {
        font-size: 10px;
        min-width: 18px;
    }
    
    .language-option {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Dashboard Styles */
.dashboard-main {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(120deg, #f0e9df 0%, #f7f3ed 20%, white 50%);
}

.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Card Content */



.mt-2 {
    margin-top: 1rem;
}

.pt-2 {
    padding-top: 1rem;
}

.border-top {
    border-top: 1px solid #e9ecef;
}

/* Reset Password Styles */
.reset-main {
    padding-top: 120px;
    min-height: 100vh;
    background: linear-gradient(120deg, #f0e9df 0%, #f7f3ed 20%, white 50%);
}

/* ===================== */
/* Seção de Bibliotecas  */
/* ===================== */

.libraries-section {
    background-color: var(--background);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

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

.libraries-header h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.libraries-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.language-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.language-filter label {
    font-weight: 500;
    color: var(--text-dark);
}

.language-filter select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--background);
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.language-filter select:focus {
    outline: none;
    border-color: var(--primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background-color: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.category-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0);
    transition: filter 0.3s ease;
}

.category-card.disabled .category-icon {
    filter: grayscale(1);
}

.category-content h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.file-count {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-light);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid var(--primary);
}

.category-card.disabled .file-count {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

/* Lista de arquivos */
.file-list-container {
    background-color: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    animation: slideIn 0.3s ease;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.file-list-header h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 0;
}

.btn-back {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-back:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

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

.file-item {
    background-color: var(--background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.file-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.file-actions {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download-file {
    background-color: var(--primary);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-download-file:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-download-file:active {
    transform: translateY(0);
}

/* Estilo para botões ZIP (padrão para categoria juridico-brasil) */
.btn-download-zip {
    background-color: var(--primary);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
    border-radius: 4px;
}

.btn-download-zip:hover {
    background-color: var(--primary-dark);
}


.no-files {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}


/* Responsividade */
@media (max-width: 768px) {
    .libraries-section {
        padding: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .language-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .file-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .file-actions {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-download-file {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .libraries-header h2 {
        font-size: 1.6rem;
    }
    
    .libraries-subtitle {
        font-size: 1rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .file-list-container {
        padding: 1rem;
    }
}