/* Design System & Variáveis */
:root {
    --bg-base: #090514;
    --neon-purple: #BC00DD;
    --neon-green: #39FF14;
    --neon-orange: #FF5F1F;
    --footer-bg: #000000;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
}

#app-wrapper {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 80px; /* Espaço para o rodapé */
    position: relative;
    margin: 0 auto;
}

/* Tela de Loading (Vídeo) */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000; /* Fundo preto para o loading */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

#loading-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Background Dinâmico */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.organic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-base) 100%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Tipografia Comum */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Glassmorphism Base */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Efeito Glow / Hover */
.neon-glow {
    box-shadow: 0 0 15px rgba(188, 0, 221, 0.5);
    transition: all 0.3s ease;
}
.neon-glow:active, .neon-glow:hover {
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.8);
    transform: scale(1.02);
}

.neon-glow-orange {
    box-shadow: 0 0 15px rgba(255, 95, 31, 0.5);
    transition: all 0.3s ease;
}
.neon-glow-orange:active, .neon-glow-orange:hover {
    box-shadow: 0 0 25px rgba(255, 95, 31, 0.8);
    transform: scale(1.02);
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(9, 5, 20, 0.9);
    backdrop-filter: blur(5px);
    text-align: center;
    padding: 8px 0;
    z-index: 100;
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
}
.top-bar span {
    color: var(--neon-green);
    font-size: 0.85rem;
    font-weight: 500;
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Hero Section */
.hero {
    margin-top: 60px;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
}

.infinite-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-green), var(--neon-orange), var(--neon-purple));
    background-size: 400% 400%;
    animation: gradientBorder 5s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-base);
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(188, 0, 221, 0.5);
    margin-bottom: 0.5rem;
}

.slogan {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    color: #e0e0e0;
}

/* Quick Actions (Mobile First - Single Column Stack) */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 1rem 2rem 1rem;
    width: 100%;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 25px; /* Pílula */
    border: none;
    background: var(--glass-bg);
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    width: 100%;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn .icon {
    width: 20px;
    height: 20px;
}

.primary-neon {
    background: linear-gradient(90deg, #ff416c, var(--neon-orange));
    border: none;
    box-shadow: 0 0 10px rgba(255, 95, 31, 0.5);
}

.whatsapp-btn {
    background: linear-gradient(90deg, #25D366, #128C7E);
    border: none;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

/* Modulos Comuns */
.module {
    padding: 2rem 1rem;
    border-top: 1px solid var(--glass-border);
}

.module-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--neon-purple);
    text-shadow: 0 0 5px rgba(188, 0, 221, 0.5);
}

/* Delivery Conveniência */
.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.delivery-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.item-info .price {
    font-weight: 700;
    color: var(--neon-green);
    font-size: 0.9rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.5);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.qty-btn:active {
    background: var(--neon-purple);
}

.qty-display {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #FF5F1F, #FF0000);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
}

/* Lojas */
.stores-module {
    background: rgba(0,0,0,0.3);
}

.store-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.store-header h3 {
    font-size: 1.1rem;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge.open {
    background: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}
.status-badge.closed {
    background: rgba(255, 95, 31, 0.2);
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
}

.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.map-btn svg { width: 16px; height: 16px; }

/* Interactive (Quiz e Cupom) */
.coupon-card {
    background: linear-gradient(135deg, rgba(188,0,221,0.2), rgba(255,95,31,0.2));
    border: 1px solid var(--neon-purple);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 2rem;
}
.coupon-card h3 {
    color: var(--neon-orange);
    margin-bottom: 5px;
}
.countdown {
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-green);
    letter-spacing: 2px;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
}

.quiz-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}
.quiz-card h3 {
    color: var(--neon-purple);
    margin-bottom: 15px;
}
.quiz-question {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-opt {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.quiz-opt:active {
    background: var(--neon-purple);
}

/* Reviews Carousel */
.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none;
}
.reviews-carousel::-webkit-scrollbar { display: none; }

.review-card {
    min-width: 80%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    scroll-snap-align: center;
}
.review-card .stars {
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.review-card p {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.review-card small {
    color: var(--neon-green);
    font-weight: 700;
}

/* Redes Sociais */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 2rem 0;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--neon-purple);
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}
.social-btn svg {
    width: 20px;
    height: 20px;
}
.social-btn:active {
    transform: scale(0.9);
    box-shadow: 0 0 15px rgba(188, 0, 221, 0.8);
}

/* Rodapé Institucional */
.institutional-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: var(--footer-bg);
    text-align: center;
    padding: 15px 0;
}
.institutional-footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}
.institutional-footer img {
    height: 20px;
}
.institutional-footer span {
    color: #007BFF; /* Azul Comercial padrão */
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modais Comuns */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--bg-base);
    padding: 20px;
    border: 1px solid var(--neon-purple);
    width: 90%;
    max-width: 400px;
    position: relative;
    border-radius: 16px;
    text-align: center;
}

/* Modal do Cardápio Imagem */
.menu-modal-content {
    max-width: 95%;
    width: 100%;
    height: 80vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.menu-scroll-area {
    flex-grow: 1;
    overflow: auto; /* Permite rolar a imagem caso ela seja grande */
    margin-top: 30px;
}
.menu-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.mt-4 { margin-top: 1rem; }

/* Desktop Responsividade (Simulador de Smartphone) */
@media (min-width: 768px) {
    #app-wrapper {
        max-width: 420px;
        background-color: rgba(9, 5, 20, 0.95);
        box-shadow: 0 0 50px rgba(188, 0, 221, 0.4);
        border-left: 2px solid var(--neon-purple);
        border-right: 2px solid var(--neon-green);
    }
    .top-bar {
        max-width: 420px;
        left: 50%;
        transform: translateX(-50%);
    }
    .reviews-carousel {
        justify-content: center;
    }
    .review-card {
        min-width: 300px;
    }
}
