/* Reset e Variáveis */
:root {
    /* Cores Principais */
    --primary-color: #2E7D32;
    /* Verde Escuro mais suave - Cor principal */
    --secondary-color: #4CAF50;
    /* Verde Médio mais suave - Cor secundária */
    --accent-color: #FFC107;
    /* Dourado mais suave - Cor de destaque */
    --white: #FFFFFF;
    /* Branco */
    --black: #000000;
    /* Preto */

    /* Variações de Verde */
    --primary-light: #43A047;
    /* Verde principal mais claro */
    --primary-dark: #1B5E20;
    /* Verde principal mais escuro */
    --secondary-light: #81C784;
    /* Verde secundário mais claro */
    --secondary-dark: #388E3C;
    /* Verde secundário mais escuro */

    /* Cores de Estado */
    --success-color: #66BB6A;
    --error-color: #EF5350;
    --warning-color: #FFB74D;
    --info-color: #42A5F5;

    /* Cores de Texto */
    --text-primary: #1B5E20;
    --text-secondary: #424242;
    --text-light: #757575;
    --text-muted: #9E9E9E;
    --text-white: var(--white);

    /* Cores de Background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-light: #E8F5E9;
    --bg-dark: var(--primary-color);

    /* Cores de Borda */
    --border-color: #E0E0E0;
    --border-focus: var(--primary-color);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    /* Variáveis RGB para transparências */
    --primary-color-rgb: 46, 125, 50;
    --secondary-color-rgb: 76, 175, 80;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

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

/* Botões */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

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

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

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

.btn.secondary:hover {
    background-color: var(--secondary-light);
}

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

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

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* Seções */
.section {
    padding: 4rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Grids */
.ebooks-grid,
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.ebook-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ebook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ebook-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.ebook-card .content {
    padding: 1.5rem;
}

.ebook-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.ebook-card .author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ebook-card .purchase-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.ebook-card .price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Sorteios */
.raffles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.raffle-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.raffle-card:hover {
    transform: translateY(-5px);
}

.raffle-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.raffle-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.raffle-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.raffle-status.active {
    background: #28a745;
    color: white;
}

.raffle-status.pending {
    background: #ffc107;
    color: #333;
}

.raffle-status.completed {
    background: #17a2b8;
    color: white;
}

.raffle-status.cancelled {
    background: #dc3545;
    color: white;
}

.raffle-content {
    padding: 1rem;
}

.raffle-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.raffle-details {
    display: grid;
    gap: 1rem;
}

.prize,
.dates,
.quotas {
    display: grid;
    gap: 0.5rem;
}

.date-item,
.quota-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    color: #666;
    font-size: 0.9rem;
}

.value {
    font-weight: bold;
    color: var(--primary-color);
}

.raffle-actions {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid #eee;
}

.no-raffles {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Modal Styles - Design Moderno */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.4s ease-out;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

/* Formulário de Autenticação - Versão Otimizada */
.auth-form {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
}

.auth-form .form-group {
    margin-bottom: 1rem;
    position: relative;
}

.auth-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(46, 125, 50, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow:
        0 0 0 3px rgba(46, 125, 50, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.auth-form input::placeholder {
    color: #999;
    font-weight: 300;
}

/* Estados de validação */
.auth-form .form-group.error input {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.auth-form .form-group.success input {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.auth-form .validation-message {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-form .form-group.error .validation-message {
    color: #e74c3c;
}

.auth-form .form-group.success .validation-message {
    color: #27ae60;
}

/* Layout em duas colunas para cadastro */
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Modal específico para login - mais compacto */
#loginModal .modal-content {
    max-width: 420px;
}

#loginModal .auth-form {
    padding: 1.25rem;
}

#loginModal .auth-form .form-group {
    margin-bottom: 0.875rem;
}

#loginModal .auth-form .form-footer {
    margin-top: 1rem;
    padding-top: 0.875rem;
}

/* Modal específico para cadastro - mais espaçoso */
#registerModal .modal-content {
    max-width: 550px;
}

#registerModal .auth-form {
    padding: 1.75rem;
}

/* Botões */
.auth-form button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 3px 12px rgba(46, 125, 50, 0.3);
    position: relative;
    margin-top: 0.5rem;
}

.auth-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-form button[type="submit"]:hover::before {
    opacity: 1;
}

.auth-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.4);
}

.auth-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.3);
}

/* Footer do formulário */
.auth-form .form-footer {
    margin-top: 1.25rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.auth-form .form-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.auth-form .form-footer .btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.auth-form .form-footer .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(46, 125, 50, 0.3);
}

/* Ícones nos inputs - Posicionamento corrigido */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
    width: 1rem;
    text-align: center;
}

.input-group input {
    padding-left: 3rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Ajuste para inputs com password toggle */
.input-group:has(.password-toggle) input {
    padding-right: 3rem;
}

/* Ajuste manual para inputs específicos sem password toggle */
.input-group input[type="email"],
.input-group input[type="text"],
.input-group input[type="tel"] {
    padding-right: 1rem;
}

/* Ajuste manual para inputs de senha */
.input-group input[type="password"] {
    padding-right: 3rem;
}

.input-group input:focus+i {
    color: var(--primary-color);
}

/* Password toggle button - Posicionamento corrigido */
.auth-form .password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form .password-toggle:hover {
    color: var(--primary-color);
    background: rgba(46, 125, 50, 0.1);
}

/* Loading state */
.auth-form button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-form button[type="submit"].loading i {
    animation: spin 1s linear infinite;
}

/* Checkbox otimizado */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.1);
}

.form-checkbox label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
}

/* Força da senha */
.password-strength {
    margin-top: 0.4rem;
}

.password-strength-bar {
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    background: linear-gradient(90deg, #e74c3c 0%, #e74c3c 25%, #e0e0e0 25%);
}

.password-strength-bar.fair {
    background: linear-gradient(90deg, #f39c12 0%, #f39c12 50%, #e0e0e0 50%);
}

.password-strength-bar.good {
    background: linear-gradient(90deg, #f1c40f 0%, #f1c40f 75%, #e0e0e0 75%);
}

.password-strength-bar.strong {
    background: #27ae60;
}

/* Responsividade */
@media (max-width: 768px) {
    .auth-form {
        padding: 1.25rem;
    }

    .auth-form .form-group {
        margin-bottom: 0.875rem;
    }

    .auth-form input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .auth-form button[type="submit"] {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .auth-form .form-footer {
        margin-top: 1rem;
        padding-top: 0.875rem;
    }

    /* Em mobile, voltar para uma coluna */
    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Modal mais compacto para login */
    #loginModal .modal-content {
        max-width: 400px;
        margin: 5% auto;
    }

    #loginModal .auth-form {
        padding: 1rem;
    }

    #loginModal .auth-form .form-group {
        margin-bottom: 0.75rem;
    }

    #loginModal .auth-form .form-footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 1rem;
    }

    .auth-form .form-group {
        margin-bottom: 0.75rem;
    }

    .auth-form label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .auth-form input {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .auth-form button[type="submit"] {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .auth-form .form-row {
        gap: 0.5rem;
    }
}

/* Animações */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(0deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(180deg);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        border-radius: 20px;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .auth-form input {
        padding: 0.9rem 1rem;
    }

    .auth-form button[type="submit"] {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Efeitos especiais para campos específicos */
.auth-form .form-group.password-group {
    position: relative;
}

.auth-form .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.auth-form .password-toggle:hover {
    color: var(--primary-color);
}

/* Melhorias para o formulário de cadastro */
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

/* Password strength removido - já definido acima */

/* Mensagens de erro/sucesso */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.form-message.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

/* Checkbox personalizado */
/* Checkbox removido - já definido acima na seção auth-form */

/* Formulários */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

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

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
    outline: none;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.payment-options label:hover {
    background-color: var(--bg-light);
}

.payment-options input[type="radio"] {
    margin: 0;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin: 1.5rem 0;
}

.total-price .label {
    font-weight: 600;
    color: var(--text-color);
}

.total-price .value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Removido - definição duplicada conflitante */

/* Purchase Info */
.purchase-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.purchase-info img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.purchase-details {
    flex: 1;
}

.total-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
    text-align: right;
}

/* Responsividade */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        margin: 1rem 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    animation: slideIn 0.3s ease forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    word-break: break-word;
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--error-color);
}

.toast.warning {
    background-color: var(--warning-color);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Validation Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input:invalid {
    border-color: var(--error-color);
}

.form-group input:valid {
    border-color: var(--success-color);
}

.form-group .validation-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.8rem;
    color: var(--error-color);
}

/* Auth Forms Enhancement - Removido (já definido acima) */

/* User Menu Enhancement */
.user-info {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: var(--bg-light);
}

.user-menu i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Adicionar classe para mostrar dropdown via JavaScript */
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.user-dropdown i {
    margin-right: 8px;
    font-size: 1rem;
}

.user-dropdown .logout-btn {
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    color: var(--error-color);
}

.user-dropdown .logout-btn:hover {
    background: var(--error-color);
    color: var(--white);
}

/* Perfil */
.profile-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.profile-avatar {
    position: relative;
    text-align: center;
}

.profile-avatar i {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.profile-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-tabs {
    display: flex;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

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

.tab-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

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

.profile-form {
    max-width: 600px;
}

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

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

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.profile-form input:focus,
.profile-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
    outline: none;
}

.profile-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Purchase Items */
.purchase-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.purchase-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.purchase-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.purchase-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.purchase-status.completed {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.purchase-status.pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.purchase-status.cancelled {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.purchase-content {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.purchase-content img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.purchase-details {
    flex: 1;
}

.purchase-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.purchase-details p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* Raffle Cards */
.raffle-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.raffle-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.raffle-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.raffle-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.raffle-status.active {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.raffle-status.pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.raffle-status.completed {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.raffle-status.cancelled {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.raffle-content {
    margin-bottom: 1rem;
}

.raffle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.prize,
.quotas,
.draw-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Library Grid */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.library-grid .ebook-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.library-grid .ebook-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.library-grid .ebook-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.library-grid .ebook-card .content {
    padding: 1rem;
}

.library-grid .ebook-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.library-grid .ebook-card p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* No Items Message */
.no-items {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-items::before {
    content: '\f119';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Purchase Details Modal */
.purchase-details-content {
    max-height: 70vh;
    overflow-y: auto;
}

.purchase-info {
    margin-bottom: 2rem;
}

.purchase-info h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.purchase-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.purchase-info .status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.quotas-list {
    margin-top: 1.5rem;
}

.quotas-list h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.quotas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.quota-number {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar i {
        font-size: 3rem;
    }

    .profile-stats {
        justify-content: center;
        gap: 1rem;
    }

    .profile-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: none;
        min-width: 120px;
    }

    .purchase-content {
        flex-direction: column;
        gap: 1rem;
    }

    .purchase-content img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .raffle-details {
        grid-template-columns: 1fr;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .quotas-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

@media (max-width: 480px) {
    .profile-container {
        margin: 0 1rem;
    }

    .profile-header {
        padding: 1.5rem;
    }

    .tab-content {
        padding: 1rem;
    }

    .purchase-item,
    .raffle-card {
        padding: 1rem;
    }

    .purchase-actions,
    .raffle-actions {
        flex-direction: column;
    }

    .purchase-actions .btn,
    .raffle-actions .btn {
        width: 100%;
    }
}

/* Detalhes do E-book */
.ebook-details-section {
    padding: 8rem 0 4rem;
    min-height: 100vh;
}

.ebook-details-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ebook-header {
    display: flex;
    padding: 2rem;
    gap: 2rem;
}

.ebook-cover {
    flex: 0 0 300px;
}

.ebook-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.ebook-info {
    flex: 1;
}

.ebook-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ebook-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.ebook-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ebook-price {
    margin-bottom: 2rem;
}

.ebook-price .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 1rem;
}

.ebook-price .raffle-info {
    color: var(--accent-color);
    font-weight: 500;
}

.ebook-actions {
    display: flex;
    gap: 1rem;
}

.ebook-content {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.ebook-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.description-content,
.preview-content {
    line-height: 1.8;
}

/* Avaliações */
.reviews-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.rating-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.average-rating {
    text-align: center;
}

.rating-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.rating-stars {
    color: #ffd700;
    margin: 0.5rem 0;
}

.total-reviews {
    color: var(--text-light);
}

.review-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.review-rating {
    color: #ffd700;
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.review-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

/* Input de Avaliação */
.rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-input i {
    font-size: 1.5rem;
    color: #ffd700;
    cursor: pointer;
    transition: transform 0.2s;
}

.rating-input i:hover {
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .ebook-header {
        flex-direction: column;
    }

    .ebook-cover {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .ebook-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ebook-actions {
        flex-direction: column;
    }

    .reviews-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .rating-summary {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
}

.card-actions .btn i {
    font-size: 1rem;
}

/* Estilos Gerais */
body {
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

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

/* Status Badges */
.status {
    background-color: var(--bg-light);
}

.status.active {
    background-color: var(--success-color);
    color: var(--primary-color);
}

.status.ended {
    background-color: var(--error-color);
    color: var(--white);
}

.status.pending {
    background-color: var(--warning-color);
    color: var(--text-secondary);
}

/* Forms */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--border-focus);
}

/* Links */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-light);
}

/* Tabs */
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Preços e Valores */
.price,
.value {
    color: var(--primary-color);
}

/* Elementos de Destaque */
.highlight {
    color: var(--accent-color);
}

/* Modal */
.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.footer-section a {
    text-decoration: none !important;
    color: var(--white) !important;
}

.footer-section a:hover {
    color: var(--primary-light) !important;
}

/* Loading States */
.btn.loading {
    position: relative;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn.loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

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

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

/* Register Form Specific */
#registerForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#registerForm h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

#registerForm .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Estados da Biblioteca */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--error-color);
    grid-column: 1 / -1;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.empty-library {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 8px;
    grid-column: 1 / -1;
}

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

.empty-library h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* Biblioteca */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.ebook-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ebook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ebook-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.ebook-card .content {
    padding: 1.5rem;
}

.ebook-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.ebook-card .author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ebook-card .purchase-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
}

.card-actions .btn i {
    font-size: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .library-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .ebook-card img {
        height: 180px;
    }

    .card-actions {
        flex-direction: column;
    }
}

/* Combo Cards */
.combo-details {
    text-align: center;
    margin: 1rem 0;
}

.quota-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Promoção do Dia */
.promo-content {
    text-align: center;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.promo-content img {
    max-width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

/* E-book Info Section */
.ebook-info-content {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

/* Winners Grid */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* FAQ Section Styles */
#faq {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 4rem 0;
}

#faq h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-white);
}

#faq .subtitle {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-header h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.accordion-header i {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 2rem 2rem 2rem;
}

.accordion-content p {
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* FAQ Responsive Styles */
@media (max-width: 768px) {
    #faq {
        padding: 3rem 0;
    }

    #faq h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    #faq .subtitle {
        padding: 0 1rem;
    }

    .faq-accordion {
        padding: 0 1rem;
    }

    .accordion-header {
        padding: 1.25rem 1.5rem;
    }

    .accordion-header h3 {
        font-size: 1.1rem;
    }

    .accordion-content {
        padding: 0 1.5rem;
    }

    .accordion-item.active .accordion-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    #faq {
        padding: 2rem 0;
    }

    #faq h2 {
        font-size: 1.8rem;
    }

    .accordion-header {
        padding: 1rem 1.25rem;
    }

    .accordion-header h3 {
        font-size: 1rem;
    }

    .accordion-content {
        padding: 0 1.25rem;
    }

    .accordion-item.active .accordion-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}

/* WhatsApp Section */
#whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

#whatsapp h2 {
    color: var(--white);
}

.whatsapp-btn {
    background: var(--white) !important;
    color: #25D366 !important;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* Instagram Feed */
.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* Hero Section Enhancement */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

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

    .combo-details {
        margin: 0.5rem 0;
    }

    .quota-count {
        font-size: 1.2rem;
    }

    .price {
        font-size: 1.5rem;
    }

    #whatsapp {
        padding: 2rem 0;
    }
}

/* ===============================================
   Estilos para Seção de Ganhadores
   =============================================== */

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

.winner-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

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

.winner-card.gold {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, #FFF8DC, #FFE4B5);
}

.winner-card.silver {
    border-left-color: #C0C0C0;
    background: linear-gradient(135deg, #F5F5F5, #E8E8E8);
}

.winner-card.bronze {
    border-left-color: #CD7F32;
    background: linear-gradient(135deg, #FDF5E6, #F5DEB3);
}

.winner-position {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.winner-position i {
    font-size: 2rem;
    color: var(--primary-color);
}

.winner-card.gold .winner-position i {
    color: #FFD700;
}

.winner-card.silver .winner-position i {
    color: #C0C0C0;
}

.winner-card.bronze .winner-position i {
    color: #CD7F32;
}

.position-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.winner-info {
    text-align: center;
}

.winner-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.winner-raffle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.winner-quota {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.winner-prize {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.winner-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.empty-winners {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-winners i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.empty-winners h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-winners p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive para ganhadores */
@media (max-width: 768px) {
    .winners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .winner-card {
        padding: 1.5rem;
    }

    .winner-position {
        margin-bottom: 1rem;
    }

    .winner-position i {
        font-size: 1.5rem;
    }

    .position-number {
        font-size: 1.2rem;
    }

    .winner-name {
        font-size: 1.1rem;
    }

    .winner-prize {
        font-size: 1.2rem;
    }

    .empty-winners {
        padding: 2rem 1rem;
    }

    .empty-winners i {
        font-size: 3rem;
    }
}

#loginModal .modal-content {
    height: fit-content !important;
}

/* Modal de Compra - Estilos Específicos */
#purchaseModal .modal-content {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    position: relative;
}

#purchaseModal .modal-content h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    padding: 1.8rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

#purchaseModal .modal-content h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

#purchaseModal .purchase-info {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

#purchaseModal .purchase-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

#purchaseModal .purchase-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

#purchaseModal .purchase-info img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
    transition: all 0.4s ease;
    position: relative;
}

#purchaseModal .purchase-info img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

#purchaseModal .purchase-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#purchaseModal .purchase-details h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    position: relative;
}

#purchaseModal .purchase-details h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

#purchaseModal .purchase-details .price {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

#purchaseModal .purchase-details .price::before {
    content: '💰';
    font-size: 1.5rem;
    margin-right: 0.5rem;
    filter: grayscale(0.3);
}

#purchaseModal .purchase-details .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

#purchaseModal .purchase-details .description::before {
    content: '📖';
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    font-size: 1.2rem;
    background: white;
    padding: 0.3rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Opções de Pagamento Melhoradas */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    padding: 1.25rem;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.payment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.payment-option:hover::before {
    left: 100%;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.payment-option input[type="radio"] {
    margin: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.payment-option input[type="radio"]:checked+.payment-icon+.payment-text {
    color: var(--primary-color);
    font-weight: 700;
    transform: scale(1.05);
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.2);
}

.payment-icon {
    font-size: 2rem;
    width: 32px;
    text-align: center;
    transition: transform 0.3s ease;
}

.payment-option:hover .payment-icon {
    transform: scale(1.1);
}

.payment-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Total Price Melhorado */
.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    margin: 2.5rem 0;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.total-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.total-price .label {
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.total-price .value {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Botão de Confirmação */
#purchaseModal .btn.primary {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#purchaseModal .btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#purchaseModal .btn.primary:hover::before {
    left: 100%;
}

#purchaseModal .btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, #388e3c, #4caf50);
}

#purchaseModal .btn.primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

#purchaseModal .btn.primary i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    #purchaseModal .modal-content {
        width: 98%;
        margin: 0.5rem auto;
        border-radius: 12px;
    }

    #purchaseModal .modal-content h2 {
        margin: -1rem -1rem 1.5rem -1rem;
        padding: 1rem;
        font-size: 1.3rem;
        border-radius: 12px 12px 0 0;
    }

    #purchaseModal .purchase-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    #purchaseModal .purchase-info img {
        width: 120px;
        height: 150px;
        margin: 0 auto;
    }

    #purchaseModal .purchase-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    #purchaseModal .purchase-details .price {
        font-size: 1.6rem;
        margin: 0.75rem 0;
    }

    .payment-option {
        padding: 1rem;
        gap: 1rem;
    }

    .payment-icon {
        font-size: 1.5rem;
        width: 28px;
    }

    .payment-text {
        font-size: 1rem;
    }

    .total-price {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .total-price .label {
        font-size: 1.1rem;
    }

    .total-price .value {
        font-size: 1.8rem;
    }

    #purchaseModal .btn.primary {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #purchaseModal .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }

    #purchaseModal .modal-content h2 {
        margin: 0 0 1rem 0;
        border-radius: 0;
    }

    #purchaseModal .purchase-info {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    #purchaseModal .purchase-info img {
        width: 100px;
        height: 130px;
    }

    #purchaseModal .purchase-details h3 {
        font-size: 1.1rem;
    }

    #purchaseModal .purchase-details .price {
        font-size: 1.4rem;
    }

    .payment-option {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .payment-icon {
        font-size: 1.2rem;
        width: 24px;
    }

    .payment-text {
        font-size: 0.9rem;
    }

    .total-price {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .total-price .label {
        font-size: 1rem;
    }

    .total-price .value {
        font-size: 1.5rem;
    }

    #purchaseModal .btn.primary {
        padding: 0.875rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
}

/* Estilos para o modal de PIX */
.pix-payment-container {
    padding: 2rem;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.qr-code {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.pix-code-container {
    margin-bottom: 2rem;
}

.pix-code-container label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.pix-code-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pix-code-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.pix-code-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    background: transparent;
    color: var(--text-color);
}

.btn-copy {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(76, 175, 80, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(46, 125, 50, 0.2);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.payment-status i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.payment-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.payment-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.payment-info strong {
    color: var(--primary-color);
}

/* Responsividade para o modal de PIX */
@media (max-width: 768px) {
    .pix-payment-container {
        padding: 1.5rem;
    }

    .qr-code-container {
        padding: 1.5rem;
    }

    .qr-code {
        max-width: 200px;
    }

    .pix-code-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-copy {
        width: 100%;
    }

    .payment-status {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pix-payment-container {
        padding: 1rem;
    }

    .qr-code {
        max-width: 180px;
    }

    .pix-code-wrapper input {
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .btn-copy {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== MODAL PIX MODERNO - MESMO PADRÃO DO PROFILE.HTML ===== */

/* Modal PIX Principal */
.pix-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s ease-out;
}

.pix-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    /* Aumenta a largura para o modo paisagem */
    width: 95%;
    max-height: 90vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

/* Header do Modal PIX */
.pix-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pix-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.pix-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
    position: relative;
}

.pix-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pix-header-icon i {
    font-size: 1.8rem;
    color: white;
}

.pix-header-text h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pix-header-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.pix-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1;
    position: relative;
}

.pix-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pix-close-btn i {
    font-size: 1.2rem;
}

/* Corpo do Modal PIX */
.pix-modal-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    min-height: 400px;
    flex-direction: row;
    /* Alinha seções lado a lado */
    flex-wrap: wrap;
    /* Permite quebrar linha em telas menores */
    align-items: flex-start;
}

.pix-left-section {
    flex: 1;
    /* Faz com que ambas as seções ocupem espaço igual */
    min-width: 300px;
    /* Largura mínima antes de quebrar a linha */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.pix-right-section {
    flex: 1;
    /* Faz com que ambas as seções ocupem espaço igual */
    min-width: 300px;
    /* Largura mínima antes de quebrar a linha */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Detalhes do Pagamento */
.pix-payment-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.pix-payment-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.pix-amount-card {
    text-align: center;
    margin-bottom: 1.5rem;
}

.amount-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
}

.pix-expiry-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.pix-expiry-info i {
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

/* Instruções */
.pix-instructions {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.pix-instructions h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

.pix-instructions h3 i {
    color: var(--primary-color);
}

.instructions-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Container do QR Code */
.pix-qr-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #e9ecef;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    /* Adiciona mais espaço */
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.qr-header i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.qr-code-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.pix-qr-code {
    max-width: 220px;
    /* Aumenta um pouco o tamanho do QR Code */
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.pix-qr-code:hover {
    transform: scale(1.05);
}

.qr-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

.qr-fallback i {
    font-size: 3rem;
    color: #adb5bd;
}

.qr-fallback p {
    margin: 0;
    font-weight: 500;
}

.pix-copy-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pix-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pix-copy-btn:active {
    transform: translateY(0);
}

/* Footer do Modal PIX */
.pix-modal-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pix-modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
}

.pix-footer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 1;
    position: relative;
}

.pix-footer-info i {
    font-size: 1.1rem;
}

.pix-close-footer-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1;
    position: relative;
}

.pix-close-footer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Responsividade para o Modal PIX */
@media (max-width: 768px) {
    .pix-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 1rem;
    }

    .pix-modal-body {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .pix-left-section {
        order: 2;
        width: 100%;
        min-width: unset;
    }

    .pix-right-section {
        order: 1;
        width: 100%;
        min-width: unset;
    }

    .pix-qr-code {
        max-width: 180px;
    }

    .qr-fallback {
        padding: 1.5rem;
    }

    .amount-value {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .pix-modal-content {
        width: 98%;
        margin: 0.5rem;
        border-radius: 16px;
    }

    .pix-modal-header {
        padding: 1.5rem;
    }

    .pix-header-content {
        gap: 1rem;
    }

    .pix-header-icon {
        width: 50px;
        height: 50px;
    }

    .pix-header-icon i {
        font-size: 1.5rem;
    }

    .pix-header-text h2 {
        font-size: 1.5rem;
    }

    .pix-modal-body {
        padding: 1rem;
        gap: 1rem;
    }

    .pix-payment-details,
    .pix-instructions {
        padding: 1.5rem;
    }

    .pix-qr-container {
        padding: 1.5rem;
    }

    .pix-qr-code {
        max-width: 160px;
    }

    .amount-value {
        font-size: 1.8rem;
    }

    .step {
        padding: 0.8rem;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .step-text {
        font-size: 0.9rem;
    }

    .pix-modal-footer {
        padding: 1rem 1.5rem;
    }
}