
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
            min-height: 100vh;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Top Bar - Barra preta */
        .top-bar {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 16px;
            padding: 12px 24px;
            margin-bottom: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
            gap: 15px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        .btn-inicio {
            background: rgba(255,255,255,0.1);
            border: none;
            padding: 10px 20px;
            border-radius: 10px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .btn-inicio:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

        .user-info {
            background: rgba(255,255,255,0.08);
            padding: 8px 18px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: nowrap;
            white-space: nowrap;
        }

        .user-name {
            font-weight: 600;
            color: #ffd700;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .user-name:hover {
            opacity: 0.8;
        }

        .user-info a {
            white-space: nowrap;
        }




        /* Popup de usuário */
        .user-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .user-popup-container {
            background: white;
            border-radius: 20px;
            max-width: 350px;
            width: 90%;
            overflow: hidden;
            animation: popupIn 0.3s ease;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        .user-popup-header {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            padding: 20px;
            text-align: center;
            color: white;
        }

        .user-popup-header h3 {
            margin: 0;
            font-size: 20px;
        }

        .user-popup-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .user-popup-btn {
            padding: 12px 16px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;
            background: #f8f9fa;
        }

        .user-popup-btn:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .user-popup-btn.sair {
            background: #fee2e2;
            color: #dc3545;
        }

        .user-popup-btn.sair:hover {
            background: #dc3545;
            color: white;
        }

        /* Título principal */
        .main-title {
            text-align: center;
            margin-bottom: 15px;
        }

        .main-title h1 {
            font-size: 42px;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 10px;
        }

        /* Texto CTA emotivo */
        .cta-text {
            text-align: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 25px;
            border-radius: 20px;
            margin-bottom: 25px;
            color: white;
        }

        .cta-text p {
            font-size: 18px;
            line-height: 1.6;
            max-width: 700px;
            margin: 0 auto;
        }

        .cta-text .emoji {
            font-size: 40px;
            display: block;
            margin-bottom: 10px;
        }

        /* Botão compartilhar vetor */
        .share-vector-container {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
        }

        .btn-share-vector {
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(37,211,102,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-share-vector:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(37,211,102,0.4);
        }

        /* Popup de compartilhamento */
        .share-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .share-popup-container {
            background: white;
            border-radius: 20px;
            max-width: 350px;
            width: 90%;
            overflow: hidden;
            animation: popupIn 0.3s ease;
        }

        .share-popup-header {
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            padding: 20px;
            text-align: center;
            color: white;
        }

        .share-popup-header h3 {
            margin: 0;
            font-size: 20px;
        }

        .share-popup-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .share-option {
            padding: 14px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            font-weight: 500;
        }

        .share-option:hover {
            background: #f8f9fa;
            border-color: #25D366;
            transform: translateX(5px);
        }

        .share-option.whatsapp {
            color: #25D366;
        }

        .share-option.url {
            color: #007bff;
        }

        /* Ranking */
        .ranking-container {
            background: white;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .ranking-container h3 {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .ranking-lista {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .ranking-item {
            background: #f8f9fa;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 13px;
        }

        .ranking-item strong {
            color: #ffc107;
        }

        /* Filtros de usuário */
        .filtros-usuario {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .btn-filtro-user {
            padding: 12px 28px;
            border: 2px solid #ddd;
            border-radius: 40px;
            background: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-filtro-user.ativo {
            background: #28a745;
            border-color: #28a745;
            color: white;
        }

        .btn-filtro-user.likes.ativo {
            background: #dc3545;
            border-color: #dc3545;
        }

        .btn-filtro-user.salvos.ativo {
            background: #17a2b8;
            border-color: #17a2b8;
        }

        /* Categorias */
        .filtros-categorias {
            background: white;
            padding: 20px;
            border-radius: 20px;
            margin-bottom: 25px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .filtros-categorias h3 {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .categorias-botoes {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .btn-categoria {
            padding: 8px 18px;
            border: 1px solid #ddd;
            border-radius: 30px;
            background: white;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }

        .btn-categoria:hover {
            background: #e9ecef;
            transform: translateY(-2px);
        }

        .btn-categoria.ativo {
            background: #007bff;
            border-color: #007bff;
            color: white;
        }

        .btn-limpar-categorias {
            background: #6c757d;
            color: white;
            border: none;
        }

        .btn-limpar-categorias:hover {
            background: #5a6268;
        }

        /* Busca */
        .busca-container {
            margin-top: 25px;
            max-width: 400px;
        }

        .busca-container input {
            width: 100%;
            padding: 15px 20px;
            font-size: 16px;
            border: 2px solid #e0e0e0;
            border-radius: 50px;
            transition: all 0.3s ease;
            background: white;
        }

        .busca-container input:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
        }

        /* Resultado header */
        .resultado-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .resultado-header h1 {
            font-size: 28px;
            color: #333;
        }

        .contador {
            background: #e9ecef;
            padding: 6px 16px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 500;
        }

        /* Grid de livros - 4 cards por linha */
        .livros-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
        }

        /* Cards */
        .livro-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            display: flex;
            flex-direction: column;
        }

        .livro-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        /* Imagem - altura fixa para ver completa */
        .livro-imagem {
            width: 100%;
            height: 260px;
            overflow: hidden;
            background: #3b3b3b;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .livro-imagem img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.4s ease;
        }

        .livro-card:hover .livro-imagem img {
            transform: scale(1.05);
        }

        .sem-imagem {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
            color: #999;
            font-size: 48px;
        }

        /* Conteúdo do card */
        .livro-conteudo {
            padding: 18px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .livro-titulo {
            font-size: 18px;
            font-weight: 700;
            margin: 0 0 8px 0;
            color: #1a1a2e;
            line-height: 1.3;
        }

        .livro-autor {
            color: #666;
            font-size: 12px;
            margin-bottom: 10px;
        }

        .livro-categorias {
            margin-bottom: 10px;
        }

        .categoria-tag {
            display: inline-block;
            background: #e9ecef;
            padding: 3px 10px;
            border-radius: 15px;
            font-size: 10px;
            font-weight: 500;
            margin-right: 5px;
            margin-bottom: 5px;
            color: #495057;
        }

        .livro-stats {
            display: flex;
            gap: 15px;
            margin-bottom: 12px;
            font-size: 12px;
        }

        .likes {
            color: #dc3545;
            font-weight: 500;
        }

        .avaliacao {
            color: #ffc107;
            font-weight: 500;
        }

        .livro-resumo {
            font-size: 13px;
            color: #555;
            margin-bottom: 15px;
            line-height: 1.4;
            flex: 1;
        }

        /* Botões dos cards */
        .botoes {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 5px;
        }

        .botoes button {
            padding: 7px 12px;
            font-size: 11px;
            font-weight: 500;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-ver {
            background: #007bff;
            color: white;
        }

        .btn-ver:hover {
            background: #0056b3;
        }

        .btn-amazon {
            background: #ff9900;
            color: white;
        }

        .btn-amazon:hover {
            background: #e68a00;
        }

        .btn-like {
            background: #dc3545;
            color: white;
        }

        .btn-like.ativo {
            background: #28a745;
        }

        .btn-salvar {
            background: #17a2b8;
            color: white;
        }

        .btn-salvar.ativo {
            background: #28a745;
        }

        /* Loading e sem resultados */
        .loading {
            text-align: center;
            padding: 60px;
            font-size: 18px;
            color: #666;
        }

        .sem-resultados {
            text-align: center;
            padding: 60px;
            background: white;
            border-radius: 20px;
        }

        .sem-resultados p {
            font-size: 18px;
            color: #666;
            margin-bottom: 20px;
        }

        /* Popup padrão */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
        }
        .popup-container {
            background: white;
            border-radius: 12px;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }
        .popup-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 12px 12px 0 0;
        }
        .popup-header h3 { margin: 0; }
        .popup-body { padding: 20px; }
        .popup-footer { padding: 15px 20px; border-top: 1px solid #eee; text-align: right; }
        .popup-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
        .popup-success .popup-header { background: #28a745; color: white; }
        .popup-error .popup-header { background: #dc3545; color: white; }
        .popup-info .popup-header { background: #17a2b8; color: white; }







        /* Botões principais */
        .botoes-principais {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
        }

        .botoes-principais button {
            flex: 1;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 500;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-ver {
            background: #007bff;
            color: white;
        }

        .btn-ver:hover {
            background: #0056b3;
            transform: translateY(-2px);
        }

        .btn-amazon {
            background: #ff9900;
            color: white;
        }

        .btn-amazon:hover {
            background: #e68a00;
            transform: translateY(-2px);
        }

        /* Botões de ação (Curtir/Salvar) */
        .botoes-acoes {
            display: flex;
            gap: 12px;
            justify-content: flex-start;
            border-top: 1px solid #eee;
            padding-top: 12px;
            margin-top: 5px;
        }

        .botoes-acoes button {
            background: none;
            border: none;
            padding: 6px 12px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 500;
            color: #666;
        }

        .botoes-acoes button:hover {
            background: #f0f0f0;
            transform: scale(1.05);
        }

        .btn-like {
            color: #dc3545;
        }

        .btn-like.ativo {
            background: #dc3545;
            color: white;
        }

        .btn-like.ativo i {
            animation: heartBeat 0.3s ease;
        }

        .btn-salvar {
            color: #17a2b8;
        }

        .btn-salvar.ativo {
            background: #17a2b8;
            color: white;
        }

        .btn-text {
            font-size: 11px;
        }











/* Filtros bar - estilo posts.php */

.filtros-panel {
    display: none;
}

.filtros-bar {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filtros-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.busca-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 500px;
}

.busca-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.busca-input:focus {
    outline: none;
    border-color: #b45f2b;
    box-shadow: 0 0 0 2px rgba(180, 95, 43, 0.1);
}

.busca-btn {
    background: #b45f2b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.busca-btn:hover {
    background: #944b1f;
    transform: translateY(-2px);
}

.btn-filtros {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-filtros:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-share-vector {
    background: #25D366;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.btn-share-vector i {
    color: white;
    font-size: 20px;
}

.btn-share-vector:hover {
    transform: scale(1.05);
    background: #128C7E;
}

/* Painel de filtros oculto */
.filtros-panel {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.filtros-usuario-panel {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.btn-filtro-user {
    padding: 10px 24px;
    border: 2px solid #ddd;
    border-radius: 40px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filtro-user.ativo {
    background: #b45f2b;
    border-color: #b45f2b;
    color: white;
}

.filtros-categorias-panel h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categorias-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-categoria {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-categoria:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-categoria.ativo {
    background: #b45f2b;
    border-color: #b45f2b;
    color: white;
}

.btn-limpar-categorias {
    background: #6c757d;
    color: white;
    border: none;
}

.btn-limpar-categorias:hover {
    background: #5a6268;
}



















        /* Seção de final NewsLetter */
            .intro-section {
                margin: 40px auto;
                max-width: 1200px;
                background: white;
                border-radius: 24px;
                box-shadow: 0 10px 30px rgba(0,0,0,0.08);
                overflow: hidden;
            }

            .intro-container {
                display: flex;
                flex-wrap: wrap;
                padding: 30px;
                gap: 30px;
            }

            .intro-image {
                flex: 1;
                min-width: 200px;
                max-width: 33.333%;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .intro-image img {
                width: 100%;
                max-width: 280px;
                height: auto;
                border-radius: 20px;
                box-shadow: 0 8px 25px rgba(0,0,0,0.15);
                transition: transform 0.3s ease;
            }

            .intro-image img:hover {
                transform: scale(1.02);
            }

            .intro-content {
                flex: 2;
                min-width: 250px;
            }

            .intro-content h2 {
                font-size: 28px;
                color: #1a1a2e;
                margin-bottom: 20px;
                font-weight: 700;
            }

            .intro-content p {
                font-size: 16px;
                line-height: 1.7;
                color: #444;
                margin-bottom: 0;
            }

            .intro-content strong {
                color: #e67e22;
                font-weight: 600;
            }










/* Caixa de newsletter */

.subscribe-box-gratuito {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    margin-top: 20px;
}

.subscribe-form-gratuito {
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form-gratuito .form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form-gratuito .input-group {
    flex: 1;
    min-width: 200px;
}

.subscribe-form-gratuito input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0d6cc;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background-color: white;
    transition: all 0.3s ease;
}

.subscribe-form-gratuito input:focus {
    outline: none;
    border-color: #b45f2b;
    box-shadow: 0 0 0 3px rgba(180, 95, 43, 0.15);
}

.subscribe-form-gratuito button {
    background: #ff9900;
    color: rgb(0, 0, 0);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-form-gratuito button:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
   
    .subscribe-form-gratuito button {
        width: 100%;
    }
}







            /* Responsivo - tablets */
            @media (max-width: 768px) {
                .intro-container {
                    flex-direction: column;
                    text-align: center;
                    padding: 25px;
                }
                
                .intro-image {
                    max-width: 100%;
                    justify-content: center;
                }
                
                .intro-image img {
                    max-width: 200px;
                }
                
                .intro-content h2 {
                    font-size: 24px;
                }

            }

            /* Responsivo - mobile */
            @media (max-width: 480px) {
                .intro-section {
                    margin: 20px auto;
                }
                
                .intro-container {
                    padding: 20px;
                }
                
                .intro-content h2 {
                    font-size: 20px;
                }
                
                .intro-content p {
                    font-size: 14px;
                }
                
            }








        .footer-disclaimer {
            text-align: center;
            font-size: 0.7rem;
            padding: 30px;
            color: #6c757d;
        }



        /* Animação do coração */
        @keyframes heartBeat {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }





        /* Animações */
        @keyframes popupIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Responsivo */
        @media (max-width: 1200px) {
            .livros-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 900px) {
            .livros-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .main-title h1 {
                font-size: 32px;
            }
            
            .cta-text p {
                font-size: 16px;
            }
        }

        @media (max-width: 600px) {
            .livros-grid {
                grid-template-columns: 1fr;
            }
            

            .main-title h1 {
                font-size: 28px;
            }
            
            .cta-text {
                padding: 20px;
            }


            .top-bar {
                padding: 10px 15px;
                gap: 8px;
            }
            
            .btn-inicio {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            .user-info {
                padding: 4px 12px;
                gap: 8px;
            }
            
            .user-name {
                font-size: 12px;
            }
            
            .user-info a {
                font-size: 12px;
            }
        }
  