:root {
    --header-bg: #212529;
    /* Preto Grafite (Topo) */
    --nav-bg: #ffffff;
    /* Branco (Barra Categorias) */
    --accent-color: #d4af37;
    /* Dourado Premium */
    --bg-body: #f4f7f9;
    /* Fundo do site */
    --card-bg: #ffffff;
    --text-primary: #212529;
    --text-muted: #6c757d;
    --success: #28a745;

    --radius: 8px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Modo Escuro */
body.dark-mode {
    --nav-bg: #1e1e1e;
    --bg-body: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #f8f9fa;
    --text-muted: #aaa;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 90px;
    transition: background-color 0.4s ease;
}

/* =========================================
   1. HEADER (TOPO PRETO)
   ========================================= */
.app-header {
    background-color: rgba(33, 37, 41, 0.85);
    /* Tom semi-transparente */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-btn {
    background: none;
    border: none;
    color: #ffffff;
    /* Ícones Brancos */
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.logo-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-area img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-area h1 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

/* =========================================
   2. BARRA DE CATEGORIAS (ABAIXO DO TOPO)
   ========================================= */
.categorias-nav {
    background: var(--nav-bg);
    /* Fundo BRANCO (ou cinza escuro no dark mode) */
    padding: 10px 1rem;
    overflow-x: auto;
    white-space: nowrap;
    position: sticky;
    top: 60px;
    /* Cola logo abaixo do header preto */
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Sombra suave para separar do conteúdo */
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.categorias-nav::-webkit-scrollbar {
    display: none;
}

/* Botão da Categoria (Pílula) */
.cat-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    /* Borda sutil */
    transition: all 0.2s;
}

body.dark-mode .cat-btn {
    border-color: #333;
}

/* Botão Ativo (Dourado) */
.cat-btn.active {
    background-color: var(--accent-color);
    color: #fff;
    /* Texto Branco */
    font-weight: 600;
    border-color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
}

/* =========================================
   3. CONTEÚDO E RESTO
   ========================================= */
.container {
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.categoria-titulo {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 3rem 0 1.2rem 0;
    border-left: 5px solid var(--accent-color);
    padding-left: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Evita um buraco no topo do cardápio na primeira seção */
.categoria-section:first-of-type .categoria-titulo {
    margin-top: 1.2rem;
}

.produto-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.produto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.produto-nome {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.produto-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produto-preco {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-add {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.produto-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

/* Carrinho Flutuante */
.cart-float {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    padding: 1rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 900;
    display: none;
}

.btn-carrinho {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* --- MODAL PIZZA MOBILE --- */
.modal-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    /* Bottom Sheet */
    animation: fadeIn 0.3s;
}

.modal-mobile-content {
    background: var(--card-bg);
    width: 100%;
    height: 90%;
    /* Quase tela cheia */
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-body);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.btn-close-modal {
    font-size: 2rem;
    background: none;
    border: none;
    color: #666;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: var(--bg-body);
}

.etapa-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.etapa-titulo {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: var(--accent-color);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Grid de Sabores */
.grid-sabores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sabor-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.sabor-card.active {
    border-color: var(--accent-color);
    background: #fffcf0;
}

.lista-opcoes label {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

/* Rodapé Fixo */
.modal-footer {
    padding: 15px 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--bg-body);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preco-valor {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--success);
}

.btn-add-carrinho {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* CORREÇÃO DO CAMPO DE OBSERVAÇÃO */
#obsPizzaMobile {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    /* Impede puxar o cantinho */
    background: #fdfdfd;
}

#obsPizzaMobile:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
}

/* Opcional: Melhorar o visual das linhas de massa/borda */
.lista-opcoes label {
    cursor: pointer;
    transition: background 0.2s;
}

.lista-opcoes label:active {
    background-color: #f0f0f0;
}

/* --- ESTILO DOS INPUTS MELHORADOS --- */

/* Esconde os inputs originais feios */
input[type="radio"].hidden-input,
input[type="checkbox"].hidden-input {
    display: none;
}

/* 1. ESTILO PARA MASSA E BORDA (Cartões Selecionáveis) */
.lista-opcoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--card-bg);
    transition: all 0.2s ease;
}

/* Quando selecionado (classe adicionada via JS) */
.option-card.selected {
    border-color: var(--accent-color);
    background-color: #fff9e6;
    /* Amarelo bem clarinho */
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
}

/* Ícone de check que só aparece quando selecionado */
.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.option-card.selected .check-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* 2. ESTILO PARA EXTRAS/OPCIONAIS (Contadores / Steppers) */
.extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.extra-info {
    display: flex;
    flex-direction: column;
}

.extra-nome {
    font-weight: 600;
    font-size: 0.95rem;
}

.extra-preco {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: bold;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-step:active {
    transform: scale(0.95);
    background: #eee;
}

.qtd-display {
    width: 24px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Quando a quantidade é zero, deixa o número cinza claro */
.qtd-display.zero {
    color: var(--text-muted);
}

/* --- BOTÕES MAIS EXPLÍCITOS (Retangulares com Texto) --- */

/* --- LISTA DE SABORES COM FOTO E INGREDIENTES --- */
.sabor-card {
    display: flex;
    /* Foto na esquerda, texto na direita */
    align-items: center;
    gap: 12px;
    text-align: left;
    /* Alinha texto a esquerda */
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    /* Separar um do outro */
    background: var(--card-bg);
}

.sabor-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #f0f0f0;
    flex-shrink: 0;
    /* Não deixa a imagem esmagar */
}

.sabor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sabor-nome {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.sabor-ingredientes {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

.sabor-preco {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 2px;
}

/* Ajuste no Grid para ficar 1 por linha no celular (melhor leitura) */
.grid-sabores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- BOTÃO PADRONIZADO 'PEDIR' --- */

/* --- NOTIFICAÇÕES (TOASTS) NO MOBILE --- */
/* Container que fica flutuando no topo */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Deixa clicar no que está atrás se não tiver toast */
}

.toast {
    background: #fff;
    border-left: 5px solid #ccc;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    /* O toast em si é clicável */
    position: relative;
    overflow: hidden;
}

/* Tipos de Notificação */
.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #333;
}

.toast-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* --- VISUAL DE ITEM SELECIONADO (SABORES) --- */
.sabor-card {
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.sabor-card.selected {
    background-color: #fff9e6;
    /* Fundo Amarelinho */
    border-color: var(--accent-color);
    /* Borda Dourada */
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.sabor-card.selected .check-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Ícone de Check (Bolinha) */
.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    /* Invisível quando não selecionado */
    font-size: 0.8rem;
    transition: all 0.2s;
    margin-left: auto;
    /* Empurra para a direita */
}

/* --- MODAL DE PRODUTO ESPECÍFICO --- */
.btn-close-modal-float {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.produto-header-img {
    width: 100%;
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
}

.produto-header-info {
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.produto-header-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.produto-header-info p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.produto-preco-base {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Stepper Grande do Rodapé */
.stepper-zao {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 8px;
}

.stepper-zao button {
    border: none;
    background: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    width: 30px;
}

.stepper-zao span {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

/* Ajuste do botão Adicionar para ter preço e texto separados */
.btn-add-carrinho {
    flex: 1;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

/* --- BOTÃOZÃO DE ADICIONAR (MODAL) --- */
.btn-add-carrinho-zao {
    width: 100%;
    background-color: var(--accent-color);
    color: #000;
    /* Texto Preto para Contraste */
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    /* Bem grosso */
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s;

    /* Centralizar tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Espaço entre 'ADICIONAR' e o preço */
}

.btn-add-carrinho-zao:active {
    transform: scale(0.98);
}

/* --- PADRONIZAÇÃO DAS OBSERVAÇÕES --- */
/* Aplica o mesmo estilo para qualquer textarea dentro de modal */
.modal-body textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    background: #f9f9f9;
    min-height: 80px;
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
}

/* --- BARRA FLUTUANTE DO CARRINHO --- */
.barra-flutuante {
    position: fixed;
    bottom: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    background-color: var(--accent-color);
    color: #333;
    font-weight: 700;
    padding: 15px 20px;
    border-radius: 8px;

    /* O SEGREDO: Começa invisível! */
    display: none;

    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
}

.info-carrinho {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-qtd {
    background: #fff;
    /* Fundo branco */
    color: var(--accent-color);
    /* Texto da cor do tema */
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.texto-ver-sacola {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.total-carrinho {
    font-weight: 800;
    font-size: 1rem;
}

/* --- ITEM NO CARRINHO --- */
.lista-itens-carrinho {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.cart-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
}

.cart-item-info {
    flex: 1;
}

.cart-item-nome {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cart-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.cart-item-obs {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 4px;
    font-style: italic;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    margin-left: 10px;
}

.cart-item-preco {
    font-weight: bold;
    color: var(--accent-color);
}

.btn-remove {
    color: #dc3545;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

/* --- RESUMO FINANCEIRO --- */
.resumo-pedido {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.linha-resumo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.linha-resumo.total {
    border-top: 1px dashed #eee;
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: #333;
}

/* --- FORMULÁRIOS DO CHECKOUT --- */
.input-form {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fdfdfd;
    box-sizing: border-box;
    /* Importante para não estourar */
}

.input-form:focus {
    border-color: var(--accent-color);
    outline: none;
    background: #fff;
}

.toggle-entrega {
    display: flex;
    background: #eee;
    border-radius: 8px;
    padding: 4px;
}

.btn-toggle {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle.selected {
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-toggle.locked {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* FORÇAR TEXTO PRETO NA BARRA */
.barra-flutuante,
.barra-flutuante .total-carrinho,
.barra-flutuante .info-carrinho {
    color: #000 !important;
    /* Texto Preto */
    font-weight: 800 !important;
}

/* Bolinha da quantidade (Inverter cores para destacar) */
.badge-qtd {
    background: #000 !important;
    /* Fundo Preto */
    color: #fff !important;
    /* Número Branco */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- NOVA CLASSE PARA O BOTÃO PEDIR (Estilo Nav Ativo) --- */
.btn-pedir {
    background-color: var(--accent-color);
    /* Fundo Dourado */
    color: #fff;
    /* Texto Branco */
    border: 1px solid var(--accent-color);
    padding: 6px 14px;
    border-radius: 6px;
    /* Radius menor como pedido */
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    /* Garante que não tenha sublinhado */
}

.btn-pedir:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}

.btn-pedir:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(212, 175, 55, 0.2);
}

/* --- FIXED MODAL OVERLAY (NOTIFICATIONS) --- */
.modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999 !important;
    /* Force top */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ESTILOS INTERNOS DA NOTIFICAÇÃO --- */
.modal-overlay .modal-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: zoomIn 0.2s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

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

.modal-overlay .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.modal-overlay .btn-secondary {
    background: #e9ecef;
    color: #333;
}

.modal-overlay .btn-secondary:hover {
    background: #dde2e6;
}

.modal-overlay .btn-danger {
    background: #dc3545;
    color: #fff;
}

.modal-overlay .btn-danger:hover {
    background: #c82333;
}

.modal-overlay .btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.modal-overlay .btn-primary:hover {
    filter: brightness(1.1);
}

.modal-overlay input {
    font-family: inherit;
}

/* --- BADGE OBRIGATÓRIO --- */
.badge-obrigatory {
    background-color: #dc3545;
    /* Vermelho alerta */
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

/* --- DARK MODE SUPPORT (MODAIS) --- */
body.dark-mode .modal-mobile-content,
body.dark-mode .modal-overlay .modal-content {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #333;
    background-color: #1a1a1a;
}

body.dark-mode .etapa-card {
    background-color: #252525;
    border-color: #333;
}

body.dark-mode .etapa-titulo {
    color: #fff;
    border-bottom-color: #333;
}

body.dark-mode .option-card {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-mode body.dark-mode body.dark-mode .stepper {
    background-color: #333 !important;
    border-color: #444 !important;
}

body.dark-mode .btn-step,
body.dark-mode .qtd-display {
    color: #fff;
}

body.dark-mode input,
body.dark-mode textarea {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

body.dark-mode .btn-close-modal,
body.dark-mode #tituloModalPizza,
body.dark-mode #tituloProdutoModal,
body.dark-mode #descProdutoModal {
    color: #fff;
}

body.dark-mode .btn-close-modal-float {
    background-color: #333;
    color: #fff;
}

body.dark-mode .modal-overlay .btn-secondary {
    background-color: #333;
    color: #fff;
}

/* FIX: SACOLA DARK MODE */
body.dark-mode .cart-item {
    background-color: #252525 !important;
    border-bottom: 1px solid #333 !important;
    color: #fff !important;
}

body.dark-mode .cart-item-title {
    color: #fff !important;
}

body.dark-mode .cart-item-desc {
    color: #bbb !important;
}

body.dark-mode .cart-summary {
    background-color: #1a1a1a !important;
    color: #fff !important;
}

/* --- DARK MODE PATCH V28 (FINAL) --- */
/* Fix: Steppers (Azul/Branco) */
.stepper {
    background: #fff;
    border: 1px solid #ddd;
}

body.dark-mode .stepper {
    background-color: #333 !important;
    border-color: #444 !important;
}

body.dark-mode .btn-step {
    background-color: #0d6efd !important;
    /* Azul */
    color: #fff !important;
    border: none !important;
}

body.dark-mode .qtd-display {
    color: #fff !important;
}

body.dark-mode .qtd-display.zero {
    color: #888 !important;
}

/* Fix: Backgrounds Gerais (Sacola e Modais) */
body.dark-mode .modal-body,
body.dark-mode .cart-item,
body.dark-mode .cart-summary {
    background-color: #1a1a1a !important;
    color: #fff !important;
}

body.dark-mode input,
body.dark-mode textarea {
    background-color: #333 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
}

/* Fix: Textos (Global) */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode label,
body.dark-mode span,
body.dark-mode div {
    color: #fff;
}

body.dark-mode .text-muted {
    color: #aaa !important;
}

body.dark-mode .cart-item-desc {
    color: #ccc !important;
}

body.dark-mode #cartTotalFinal {
    color: var(--accent-color) !important;
}

/* Fix: Remove background branco do resumo do pedido na sacola */
body.dark-mode .resumo-pedido {
    background-color: #1a1a1a !important;
    border-top: 1px solid #333;
    color: #fff !important;
}

/* Fix: Main Product Stepper (.stepper-zao) */
body.dark-mode .stepper-zao {
    background-color: #333 !important;
    border-radius: 5px;
    box-shadow: none;
    padding: 5px;
}

body.dark-mode .stepper-zao button {
    color: #0d6efd !important;
}

body.dark-mode .stepper-zao span {
    color: #fff !important;
}

/* Fix: Notification Modals & Toasts (CRITICAL) */
body.dark-mode .toast,
body.dark-mode .swal2-popup,
body.dark-mode .modal-content {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .toast-title,
body.dark-mode .toast-message {
    background-color: transparent !important;
    color: #fff !important;
}

body.dark-mode .toast-icon {
    filter: none;
}

/* =========================================
   FIX: ELEMENTOS DO MODAL DE PIZZA (Theme Gold/Orange)
   ========================================= */
.sabor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    /* Para o check icon absolute se precisar */
}

/* Estado Selecionado (Fundo creme, Borda Dourada) */
.sabor-card.selected {
    background-color: #fff9e6;
    /* Creme suave */
    border: 1px solid #d4af37;
    /* Dourado forte */
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.sabor-card.selected .check-icon {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
    transform: scale(1.1);
}

/* Preço do sabor em Dourado/Laranja */
.sabor-preco {
    font-weight: bold;
    color: #d4af37;
    /* Gold */
    font-size: 0.9rem;
    margin-top: 4px;
}

.btn-qty-pizz {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
}

.btn-qty-pizz:hover {
    background: #f0f0f0;
}

.sabor-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.sabor-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sabor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    color: #e0e0e0;
    font-size: 1.5rem;
}

.sabor-info {
    flex: 1;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
}

.sabor-nome {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.sabor-ingredientes {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

.sabor-preco {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 2px;
}

.grid-sabores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--card-bg);
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.option-card.selected {
    border-color: var(--accent-color);
    background-color: #fff9e6;
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.sabor-card.selected .check-icon,
.option-card.selected .check-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* --- DARK MODE PIZZA PATCH --- */
body.dark-mode .sabor-card,
body.dark-mode .option-card {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .sabor-card.selected,
body.dark-mode .option-card.selected {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-color);
}

body.dark-mode .sabor-nome {
    color: var(--text-primary) !important;
}

body.dark-mode .sabor-ingredientes {
    color: var(--text-muted) !important;
}

/* =========================================
   PÁGINA VIRTUAL (TELA DE CONFIRMAÇÃO)
   ========================================= */
/* =========================================
   MENU LATERAL (SIDEBAR)
   ========================================= */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay-menu.active {
    display: block;
    opacity: 1;
}

.menu-lateral {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(28, 28, 30, 0.95);
    /* Fundo escuro premium */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.menu-lateral.active {
    left: 0;
}

.menu-header {
    min-height: 70px;
    /* Altura ajustada para equilíbrio visual */
    padding: 0 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 134, 11, 0.95));
    /* Dourado Premium */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Alinhamento vertical perfeito */
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.menu-user-info h3 {
    margin: 0;
    font-size: 1.1rem;
    /* Leve ajuste */
    font-weight: 700;
}

.menu-user-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.btn-close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: normal;
    display: flex;
    align-items: center;
}

.menu-items {
    padding: 15px;
    /* Mais respiro */
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ffffff !important;
    /* FORÇA BRANCO SEMPRE (contrast com vidro escuro) */
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: background 0.2s;
    font-weight: 500;
}

.menu-item i {
    width: 30px;
    margin-right: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    /* Ícone branco suave */
    font-size: 1.1rem;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark mode overrides for menu */
body.dark-mode .menu-lateral {
    background: #1e1e1e;
}

body.dark-mode .menu-item {
    color: white;
}

body.dark-mode .menu-item:hover {
    background: #333;
}

body.dark-mode .menu-footer {
    border-top-color: #333;
}

.menu-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid #eee;
}

/* --- ESTILOS PAGINA ACOMPANHAMENTO --- */
.container-acompanhamento {
    max-width: 600px;
    margin: 80px auto 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.header-status {
    text-align: center;
    margin-bottom: 30px;
}

.header-status i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 10px;
}

.header-status h2 {
    color: var(--text-primary);
    margin: 10px 0;
}

.status-timeline {
    margin: 30px 0;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.status-point {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    opacity: 0.5;
    color: var(--text-primary);
}

.status-point::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--border-color);
    border-radius: 50%;
    border: 3px solid var(--card-bg);
}

.status-point.active {
    opacity: 1;
    font-weight: bold;
}

.status-point.active::before {
    background: var(--success);
}

.status-icon {
    width: 30px;
    text-align: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Força o título do modal a aceitar nomes gigantes */
.modal-install-title,
/* Ajuste para a classe real do seu título */
.pwa-modal h3,
.box-install h3 {
    white-space: normal !important;
    /* Permite quebra de linha */
    overflow: visible !important;
    /* Mostra o que transbordar */
    text-overflow: clip !important;
    /* Remove os '...' */
    word-wrap: break-word;
    /* Quebra palavras muito longas se necessário */
    line-height: 1.2;
    /* Ajusta altura da linha para não ficar espaçado demais */
    max-height: none !important;
    /* Remove limite de altura */
}

/* FORÇA BRUTA PARA O NOME NÃO CORTAR NO MODAL DE INSTALAÇÃO */

/* Tenta cobrir as classes mais comuns de tutoriais de PWA */
#box-install,
.box-install,
.pwa-install-modal {
    height: auto !important;
    /* Deixa a altura crescer conforme o texto */
    min-height: 250px;
}

#box-install h3,
.box-install h3,
.pwa-msg,
.modal-title-install {
    white-space: normal !important;
    /* Permite quebrar linha */
    overflow: visible !important;
    /* Mostra o texto que vazar */
    text-overflow: clip !important;
    /* Remove os três pontinhos (...) */
    word-wrap: break-word !important;
    /* Quebra palavras muito longas */
    line-height: 1.3 !important;
    /* Espaçamento bom entre linhas */
    max-height: none !important;
    /* Sem limite de altura */
    display: block !important;
    font-size: 1.2rem !important;
    /* Ajuste se ficar gigante */
}

/* --- MENU LATERAL PREMIUM (GLASSMORPISM) --- */
/* .menu-lateral redundante removida */

.menu-lateral.active {
    left: 0;
}

/* .menu-header redundante removida para evitar conflitos */

.menu-user-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.btn-close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-items {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: background 0.2s;
}

.menu-item i {
    width: 30px;
    margin-right: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- ESTILOS PAGINA ACOMPANHAMENTO --- */
.container-acompanhamento {
    max-width: 600px;
    margin: 80px auto 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Estilo para Option Card com Imagem (Modo Esfiha/Salgado) */
.option-card.with-image {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding: 10px !important;
    min-height: 70px;
    cursor: pointer;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color, #eee) !important;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.option-card-img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0 !important;
}

/* Ajuste específico para Dark Mode no Stepper */
body.dark-mode .stepper {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .btn-step {
    background: #333;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

body.dark-mode .qtd-display {
    color: #fff;
}

body.dark-mode .qtd-display.zero {
    color: #555;
}

/* =========================================
   VISUAL OPCIONAIS (CLEAN & THEME-AWARE)
   ========================================= */

.option-card.with-image {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding: 10px !important;
    min-height: 75px;
    cursor: pointer;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color, #eee) !important;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.option-card-img {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    background: #f8f9fa;
}

.option-card-nome {
    display: block !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    line-height: 1.2;
    visibility: visible !important;
}

.option-card-preco {
    display: block !important;
    font-size: 0.9rem !important;
    color: var(--accent-color) !important;
    font-weight: bold !important;
    visibility: visible !important;
}

/* Ajustes Dark Mode para Opcionais */
body.dark-mode .option-card {
    border-color: #333 !important;
}

body.dark-mode .stepper {
    background: #2a2a2a !important;
    border-color: #444 !important;
}

body.dark-mode .btn-step {
    background: #333 !important;
    color: #fff !important;
}

body.dark-mode .qtd-display {
    color: #fff !important;
}


/* =========================================
   VISUAL OPCIONAIS (DEFINITIVO & LIMPO)
   ========================================= */

.option-card.with-image {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding: 10px !important;
    min-height: 75px;
    cursor: pointer;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color, #eee) !important;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.option-card-img {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    background: #f8f9fa;
}

.option-card-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    text-align: left !important;
    min-width: 0;
    overflow: hidden;
}

.option-card-nome {
    display: block !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    line-height: 1.2;
    visibility: visible !important;
    opacity: 1 !important;
}

.option-card-preco {
    display: block !important;
    font-size: 0.9rem !important;
    color: var(--accent-color) !important;
    font-weight: bold !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ajustes Dark Mode para Opcionais */
body.dark-mode .option-card {
    border-color: #333 !important;
}

body.dark-mode .stepper {
    background: #2a2a2a !important;
    border-color: #444 !important;
}

body.dark-mode .btn-step {
    background: #333 !important;
    color: #fff !important;
}

body.dark-mode .qtd-display {
    color: #fff !important;
}

/* =========================================
   GEMINI AI CHATBOT (GLASSMORPHISM)
   ========================================= */
#gemini-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#gemini-chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gemini-chat-bubble.new-msg {
    animation: pulse 1s infinite;
}

#gemini-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    max-width: 90vw;
    max-height: 70vh;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease-out;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

body.dark-mode #gemini-chat-window {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.chat-header {
    background: var(--header-bg);
    color: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

#close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.assistant {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

body.dark-mode .chat-msg.assistant {
    background: #2a2a2a;
    color: #f0f0f0;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--accent-color);
    color: #fff;
    border-bottom-right-radius: 2px;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-input-area {
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#chat-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode #chat-input {
    background: #444;
    color: #fff;
}

#voice-input-btn,
#send-chat {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#voice-input-btn.recording {
    background: #ff4444;
    animation: pulse 1s infinite;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border-bottom-left-radius: 2px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}