/* ==========================================
   CARDÁPIO ONLINE - LAYOUT COM NAVBAR
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-elevated: #334155;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-light: rgba(249, 115, 22, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(30, 41, 59, 0.85);
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --navbar-width: 80px;
    --cart-width: 380px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ==========================================
   APP LAYOUT (3 COLUNAS)
   ========================================== */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ==========================================
   NAVBAR LATERAL ESQUERDA
   ========================================== */
.side-navbar {
    width: var(--navbar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    flex-shrink: 0;
    z-index: 100;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}
.side-navbar.collapsed {
    width: 0;
    padding: 0;
    border-right: none;
    opacity: 0;
    pointer-events: none;
}

.side-navbar-brand { margin-bottom: 24px; }

.side-navbar-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
    transition: var(--transition);
}
.side-navbar-logo:hover { transform: scale(1.1); }

.side-navbar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    width: 100%;
    padding: 0 8px;
}

.side-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}
.side-nav-btn svg { width: 22px; height: 22px; }
.side-nav-btn:hover {
    color: var(--accent);
    background: var(--accent-light);
}
.side-nav-btn.active {
    color: var(--accent);
    background: var(--accent-light);
    font-weight: 700;
}
.side-nav-btn.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}

.side-navbar-footer {
    padding: 8px;
    width: 100%;
}

.store-status-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--success);
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.open {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: pulse-dot 2s infinite;
}
.status-dot.closed { background: var(--danger); }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================
   CONTEÚDO CENTRAL
   ========================================== */
.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}
.content-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-menu-btn {
    display: flex;
    width: 40px; height: 40px;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mobile-menu-btn:hover { background: var(--accent-light); color: var(--accent); }
.mobile-menu-btn svg { width: 22px; height: 22px; }

.header-title {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-toggle-btn {
    width: 44px; height: 44px;
    border: none;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}
.cart-toggle-btn:hover { background: var(--accent); color: #fff; }
.cart-toggle-btn svg { width: 22px; height: 22px; }
.cart-toggle-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   PÁGINAS DE CONTEÚDO
   ========================================== */
.page-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    padding-bottom: 80px;
}
.page-content.active { display: block; }

/* ==========================================
   CATEGORIAS
   ========================================== */
.categories-nav {
    display: flex;
    gap: 8px;
    padding-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
}
.categories-nav::-webkit-scrollbar { display: none; }

.cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.cat-btn svg { width: 16px; height: 16px; }
.cat-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}

/* ==========================================
   GRID DE PRODUTOS
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.product-skeleton {
    background: var(--bg-card);
    border-radius: var(--radius);
    height: 220px;
    animation: shimmer 1.5s infinite;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.product-card:active { transform: scale(0.98); }

.product-card-img {
    width: 100%; height: 130px;
    object-fit: cover;
    background: var(--bg-elevated);
}
.product-card-img-placeholder {
    width: 100%; height: 130px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}
.product-card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
}
.product-unavailable { opacity: 0.5; pointer-events: none; }

/* ==========================================
   SEÇÕES POR CATEGORIA
   ========================================== */
.category-section {
    margin-bottom: 28px;
}
.category-section:last-child {
    margin-bottom: 0;
}
.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.category-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.category-section-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 3px 10px;
    border-radius: 20px;
}
.category-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}


/* ==========================================
   PAINEL DO CARRINHO (DIREITA)
   ========================================== */
.cart-panel {
    width: var(--cart-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--transition);
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.cart-panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-panel-header h2 svg { width: 22px; height: 22px; color: var(--accent); }

.cart-panel-close {
    display: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.cart-panel-close:hover { background: var(--danger); }
.cart-panel-close svg { width: 18px; height: 18px; }

.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cart-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.cart-empty p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.cart-empty span { font-size: 0.85rem; }

.cart-items { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fade-in 0.2s ease;
}
.cart-item-img {
    width: 56px; height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-elevated);
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-addons { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.cart-item-obs { font-size: 0.75rem; color: var(--accent); font-style: italic; margin-bottom: 4px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty-btn {
    width: 28px; height: 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.cart-qty-btn:hover { background: var(--accent); border-color: var(--accent); }
.cart-qty-btn svg { width: 14px; height: 14px; }
.cart-item-qty span { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
    width: 28px; height: 28px;
    border: none;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
}
.cart-item-remove:hover { background: rgba(239, 68, 68, 0.15); }
.cart-item-remove svg { width: 16px; height: 16px; }

/* Checkout no painel */
.cart-panel-checkout {
    padding: 0 20px 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.checkout-section { margin-bottom: 20px; }
.checkout-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.checkout-section h3 svg { width: 18px; height: 18px; color: var(--accent); }

.form-group { margin-bottom: 10px; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-row { display: flex; gap: 10px; align-items: flex-end; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.cep-search-btn {
    padding: 10px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: var(--transition);
    height: 40px;
    margin-bottom: 10px;
}
.cep-search-btn:hover { background: var(--accent-hover); }
.cep-search-btn svg { width: 16px; height: 16px; }

.order-type-btns { display: flex; gap: 8px; }
.order-type-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}
.order-type-btn svg { width: 18px; height: 18px; }
.order-type-btn:hover { border-color: var(--accent); color: var(--accent); }
.order-type-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}

.payment-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.payment-btn svg { width: 20px; height: 20px; }
.payment-btn:hover { border-color: var(--accent); color: var(--accent); }
.payment-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}

.change-section { margin-top: 10px; }
.change-section label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.change-section input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
}
.change-section input:focus { outline: none; border-color: var(--accent); }

.checkout-summary {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
}
.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.summary-row.total span:last-child { color: var(--accent); }

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}
.checkout-btn:hover { background: #16a34a; transform: scale(1.02); }
.checkout-btn:active { transform: scale(0.98); }
.checkout-btn:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; }
.checkout-btn svg { width: 20px; height: 20px; }

/* ==========================================
   MODAL DE PRODUTO
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; animation: fade-in 0.2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-product {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    overflow-y: auto;
    position: relative;
    animation: slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slide-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.modal-close:hover { background: rgba(0, 0, 0, 0.7); }
.modal-close svg { width: 20px; height: 20px; }

.modal-product-image { width: 100%; height: 220px; overflow: hidden; background: var(--bg-elevated); }
.modal-product-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-product-body { padding: 20px; }
.modal-product-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.modal-product-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.modal-product-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 20px; }

.addons-title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.addons-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.addon-item:hover { border-color: var(--accent); }
.addon-item.selected { border-color: var(--accent); background: var(--accent-light); }
.addon-item-info { display: flex; align-items: center; gap: 10px; }
.addon-check {
    width: 20px; height: 20px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.addon-item.selected .addon-check { background: var(--accent); border-color: var(--accent); }
.addon-check svg { width: 14px; height: 14px; color: white; opacity: 0; transition: var(--transition); }
.addon-item.selected .addon-check svg { opacity: 1; }
.addon-name { font-size: 0.9rem; font-weight: 500; }
.addon-price { font-size: 0.85rem; color: var(--accent); font-weight: 600; white-space: nowrap; }

.modal-obs-section { margin-bottom: 16px; }
.modal-obs-section label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.modal-obs-section textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 10px 12px;
    font-family: var(--font);
    font-size: 0.9rem;
    resize: none;
    transition: var(--transition);
}
.modal-obs-section textarea:focus { outline: none; border-color: var(--accent); }

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 4px;
}
.qty-btn {
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--accent); }
.qty-btn svg { width: 18px; height: 18px; }
.qty-value { font-size: 1.1rem; font-weight: 700; min-width: 28px; text-align: center; }

.add-to-cart-btn {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.add-to-cart-btn:hover { background: var(--accent-hover); }
.add-to-cart-btn:active { transform: scale(0.97); }

/* ==========================================
   PÁGINAS ESPECIAIS
   ========================================== */

/* PROMOÇÕES */
.promo-banner-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.05));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(249, 115, 22, 0.2);
    margin-bottom: 24px;
}
.promo-hero-icon { font-size: 3rem; margin-bottom: 12px; }
.promo-banner-hero h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.promo-banner-hero p { color: var(--text-secondary); }
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

/* JOGOS */
.games-container { max-width: 500px; margin: 0 auto; text-align: center; }
.games-hero {
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(168, 85, 247, 0.2);
    margin-bottom: 32px;
}
.games-hero-icon { font-size: 3rem; margin-bottom: 12px; }
.games-hero h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.games-hero p { color: var(--text-secondary); }

.wheel-container { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.wheel-wrapper { position: relative; display: inline-block; }
.wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    z-index: 2;
    color: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
#wheelCanvas { border-radius: 50%; box-shadow: 0 0 30px rgba(168, 85, 247, 0.3); }

.spin-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    border: none;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}
.spin-btn:hover { transform: scale(1.05); box-shadow: 0 6px 30px rgba(168, 85, 247, 0.5); }
.spin-btn:active { transform: scale(0.97); }
.spin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.spin-btn svg { width: 20px; height: 20px; }

.wheel-prize-result {
    padding: 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-xl);
    margin-top: 24px;
    animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.prize-icon { font-size: 2.5rem; margin-bottom: 8px; }
.wheel-prize-result h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.wheel-prize-result p { color: var(--text-secondary); margin-bottom: 12px; }
.prize-code {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-elevated);
    border: 2px dashed var(--success);
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--success);
    margin-bottom: 16px;
}
.prize-use-btn {
    padding: 12px 32px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.prize-use-btn:hover { background: #16a34a; }

.games-disabled-msg {
    padding: 40px 20px;
    text-align: center;
}
.disabled-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.games-disabled-msg h3 { font-size: 1.2rem; margin-bottom: 4px; color: var(--text-secondary); }
.games-disabled-msg p { color: var(--text-muted); }

/* CUPONS */
.coupons-container { max-width: 500px; margin: 0 auto; }
.coupons-hero {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 24px;
}
.coupons-hero-icon { font-size: 3rem; margin-bottom: 12px; }
.coupons-hero h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.coupons-hero p { color: var(--text-secondary); }

.coupon-input-area { margin-bottom: 24px; }
.coupon-input-group {
    display: flex;
    gap: 8px;
}
.coupon-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}
.coupon-input:focus { outline: none; border-color: var(--accent); }
.coupon-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--text-muted);
}
.coupon-apply-btn {
    padding: 14px 20px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.coupon-apply-btn:hover { background: #16a34a; }
.coupon-apply-btn svg { width: 18px; height: 18px; }

.coupon-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.coupon-message.success { background: rgba(34, 197, 94, 0.1); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.2); }
.coupon-message.error { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

.active-coupons { margin-bottom: 24px; }
.coupon-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.coupon-card-icon { font-size: 1.5rem; }
.coupon-card-info { flex: 1; }
.coupon-card-code { font-weight: 700; font-size: 0.95rem; }
.coupon-card-desc { font-size: 0.8rem; color: var(--text-secondary); }

.coupon-tips {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.coupon-tips h4 { margin-bottom: 8px; font-size: 0.95rem; }
.coupon-tips ul { list-style: none; }
.coupon-tips li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.coupon-tips li::before { content: '• '; color: var(--accent); }

/* PERFIL */
.profile-container { max-width: 500px; margin: 0 auto; }
.profile-hero {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 24px;
}
.profile-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 3px solid rgba(59, 130, 246, 0.3);
}
.profile-avatar svg { width: 32px; height: 32px; color: var(--text-secondary); }
.profile-hero h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 2px; }
.profile-subtitle { font-size: 0.85rem; color: var(--text-secondary); }

.profile-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.profile-field { margin-bottom: 14px; }
.profile-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.profile-field input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
}
.profile-field input:focus { outline: none; border-color: var(--accent); }
.profile-field input::placeholder { color: var(--text-muted); }

.profile-field-row { display: flex; gap: 10px; align-items: flex-end; }
.profile-divider { height: 1px; background: var(--border); margin: 20px 0; }
.profile-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.profile-section-title svg { width: 18px; height: 18px; color: var(--accent); }

.profile-cep-btn {
    width: 40px; height: 40px;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: var(--transition);
}
.profile-cep-btn:hover { background: var(--accent-hover); }
.profile-cep-btn svg { width: 18px; height: 18px; }

.profile-save-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: 8px;
}
.profile-save-btn:hover { background: var(--accent-hover); }
.profile-save-btn svg { width: 18px; height: 18px; }

.profile-history {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.profile-empty { text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================
   TELA DE SUCESSO
   ========================================== */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.success-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes success-pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.success-icon-wrap {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.success-icon-wrap svg { width: 36px; height: 36px; color: white; }
.success-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.success-order-id { font-size: 1rem; color: var(--text-secondary); margin-bottom: 12px; }
.success-msg { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.success-eta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--accent-light);
    border-radius: var(--radius);
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 0.9rem;
}
.success-eta svg { width: 18px; height: 18px; }
.success-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.success-btn:hover { background: var(--accent-hover); }

/* TOAST */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* ==========================================
   JOGOS DA COPA — Pênalti, Figurinha, Chute a Gol
   ========================================== */
.games-container { padding: 20px 0; }

.games-disabled-msg { text-align: center; padding: 60px 20px; }
.games-disabled-msg .disabled-icon { font-size: 3rem; margin-bottom: 12px; }
.games-disabled-msg h3 { color: var(--text-primary); margin-bottom: 8px; }
.games-disabled-msg p { color: var(--text-muted); }

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.game-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.game-card-penalti::before { background: linear-gradient(90deg, #16a34a, #22c55e); }
.game-card-figurinha::before { background: linear-gradient(90deg, #eab308, #f59e0b); }
.game-card-chute::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(22, 163, 74, 0.15);
    border-color: #16a34a;
}
.game-card:hover::before { opacity: 1; }

.game-card-icon { font-size: 3rem; margin-bottom: 12px; }
.game-card h3 {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.game-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.game-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.game-play-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(22,163,74,0.3); }
.game-play-btn svg { width: 18px; height: 18px; }

/* Game Active Area */
.game-active-area {
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: var(--transition);
}
.game-back-btn:hover { background: #f0fdf4; color: #16a34a; border-color: #16a34a; }
.game-back-btn svg { width: 16px; height: 16px; }

.game-play-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.game-zone-title {
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

/* ===== PÊNALTI — Gol com 6 zonas ===== */
.penalty-goal-wrapper {
    position: relative;
    width: 320px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.penalty-goal {
    width: 300px;
    height: 200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    border: 6px solid #d4d4d8;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1), 0 8px 30px rgba(0,0,0,0.2);
}
.penalty-goal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' fill='none' stroke='%23ffffff10' stroke-width='0.5'/%3E%3C/svg%3E") repeat;
    z-index: 0;
    pointer-events: none;
}

.penalty-zone {
    background: rgba(34, 197, 94, 0.15);
    border: 1px dashed rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}
.penalty-zone:hover {
    background: rgba(34, 197, 94, 0.5);
    border-color: #22c55e;
    box-shadow: inset 0 0 20px rgba(34,197,94,0.3);
}
.penalty-zone.kicked {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}
.penalty-zone.scored {
    background: rgba(34, 197, 94, 0.6);
    border-color: #16a34a;
}

.penalty-ball {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.penalty-ball.kicked {
    animation: ballKick 0.6s ease forwards;
}
@keyframes ballKick {
    0% { bottom: 5px; transform: translateX(-50%) scale(1); }
    50% { bottom: 120px; transform: translateX(-50%) scale(0.7) rotate(360deg); }
    100% { bottom: 80px; transform: translateX(-50%) scale(0.5) rotate(720deg); opacity: 0.8; }
}

.penalty-keeper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.penalty-keeper.dive-left { transform: translate(-120%, -50%) scaleX(-1); }
.penalty-keeper.dive-right { transform: translate(60%, -50%); }
.penalty-keeper.dive-up { transform: translate(-50%, -100%); }

.penalty-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== FIGURINHA DA COPA — Raspadinha Dourada ===== */
.figurinha-wrapper {
    border-color: #eab308 !important;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.3) !important;
}
.figurinha-wrapper .scratch-prize-text {
    background: linear-gradient(135deg, #fef9c3, #fefce8) !important;
    color: #92400e !important;
}

.scratch-wrapper {
    position: relative;
    width: 300px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 3px solid #eab308;
}
.scratch-prize-text {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef9c3, #fefce8);
    z-index: 0;
}
#scratchCanvas {
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    cursor: crosshair;
    touch-action: none;
}
.scratch-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}

/* ===== CHUTE A GOL — Roda de Futebol ===== */
.chute-wheel-wrapper {
    position: relative;
}

.wheel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #16a34a;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
#wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--bg-elevated), 0 0 0 8px #16a34a, 0 8px 30px rgba(0,0,0,0.3);
}

.spin-btn, .chute-spin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}
.spin-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,0.4); }
.spin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.spin-btn svg { width: 20px; height: 20px; }

/* Prize Result */
.game-prize-result {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 20px;
    animation: fadeInUp 0.5s ease;
}
.game-prize-result .prize-icon { font-size: 3rem; margin-bottom: 12px; }
.game-prize-result h3 { font-size: 1.3rem; font-weight: 700; color: #16a34a; margin-bottom: 8px; }
.game-prize-result p { color: var(--text-secondary); margin-bottom: 16px; }

.prize-code {
    display: inline-block;
    padding: 10px 24px;
    background: #f0fdf4;
    border: 2px dashed #16a34a;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #16a34a;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.prize-use-btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.prize-use-btn:hover { transform: scale(1.05); }

/* ==========================================
   PRODUCT CARD — BOTÃO + E BADGE
   ========================================== */
.product-card {
    position: relative;
}
.product-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.product-card-add-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(249,115,22,0.5);
    transition: all 0.2s ease;
    z-index: 5;
    line-height: 1;
}
.product-card-add-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 18px rgba(249,115,22,0.7);
}
.product-card-add-btn:active { transform: scale(0.92); }
.product-card-add-btn svg { width: 20px; height: 20px; }

.product-card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    padding: 0 5px;
    animation: badge-pop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.product-card-badge.show { display: flex; }
@keyframes badge-pop {
    from { transform: scale(0); } to { transform: scale(1); }
}

.product-card-addons-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    border: none;
    background: rgba(30,41,59,0.85);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    transition: all 0.2s ease;
}
.product-card-addons-btn:hover { background: var(--accent); }
.product-card-addons-btn svg { width: 13px; height: 13px; }

/* ==========================================
   MODAL DE CADASTRO / LOGIN
   ========================================== */
.modal-register {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    border-radius: var(--radius-xl);
    overflow-y: auto;
    position: relative;
    animation: slide-up 0.35s cubic-bezier(0.34,1.56,0.64,1);
    padding: 0;
}
.register-hero {
    text-align: center;
    padding: 24px 24px 12px;
    background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(251,191,36,0.08));
}
.register-icon { font-size: 3rem; margin-bottom: 6px; }
.register-hero h2 {
    font-size: 1.3rem; font-weight: 800;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}
.register-hero p { font-size: 0.85rem; color: var(--text-secondary); }

/* Tabs */
.register-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.register-tabs.hide-tabs { display: none; }
.register-tab {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.register-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.register-tab:hover:not(.active) { color: var(--text-secondary); }

.register-tab-content { display: none; }
.register-tab-content.active { display: block; }

/* Benefits */
.register-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px 24px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.benefit-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* Form */
.register-form { padding: 0 24px 16px; }
.register-form .form-group { margin-bottom: 12px; }
.register-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.register-form input[type="text"],
.register-form input[type="tel"],
.register-form input[type="email"],
.register-form input[type="password"]:not(.pin-digit) {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}
.register-form input:focus {
    outline: none;
    border-color: var(--accent);
}

/* PIN Input Group */
.pin-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.pin-digit {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text-primary);
    transition: all 0.2s ease;
    caret-color: var(--accent);
}
.pin-digit:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.code-input-group .pin-digit {
    width: 40px;
    height: 46px;
    font-size: 1.2rem;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 12px;
}
.form-row .form-group { margin-bottom: 0; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 14px;
    padding: 0 24px;
}
.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.form-divider span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Location Button */
.location-btn {
    width: 100%;
    padding: 12px;
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    background: rgba(249,115,22,0.06);
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}
.location-btn:hover {
    background: rgba(249,115,22,0.12);
    border-style: solid;
}
.location-btn:active { transform: scale(0.98); }
.location-btn svg { width: 18px; height: 18px; }
.location-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Location Status */
.location-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin-top: 6px;
    color: #22c55e;
    font-size: 0.82rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}
.location-status svg { width: 16px; height: 16px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.register-btn {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: 6px;
}
.register-btn:hover { background: var(--accent-hover); }
.register-btn svg { width: 18px; height: 18px; }

.register-skip {
    padding: 0 24px 20px;
    text-align: center;
}
.skip-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 8px;
}
.skip-btn:hover { border-color: var(--text-secondary); color: var(--text-secondary); }
.skip-warning {
    font-size: 0.72rem;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.4;
}
.skip-warning svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Forgot / Back Button */
.forgot-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--accent);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: color 0.2s ease;
    text-align: center;
}
.forgot-btn:hover { color: var(--accent-hover); text-decoration: underline; }

/* Recovery Info */
.recover-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--accent-light);
    border-radius: var(--radius);
    margin: 12px 24px;
}
.recover-info svg { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; }
.recover-info p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }

/* ==========================================
   BOTTOM NAVIGATION MOBILE
   ========================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    z-index: 200;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    backdrop-filter: blur(12px);
}
.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.62rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    flex: 1;
    position: relative;
}
.mobile-nav-btn svg { width: 22px; height: 22px; }
.mobile-nav-btn.active {
    color: var(--accent);
    font-weight: 700;
}
.mobile-nav-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--accent);
}

/* ==========================================
   RESPONSIVO
   ========================================== */
@media (max-width: 1024px) {
    :root { --cart-width: 320px; }
}

@media (max-width: 768px) {
    /* Esconder sidebar no mobile */
    .side-navbar {
        display: none !important;
    }
    /* Mostrar bottom nav */
    .mobile-bottom-nav {
        display: flex;
    }

    .cart-panel {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        max-width: 100%;
        z-index: 400;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .cart-panel.open { right: 0; }
    .cart-panel-close { display: flex; }

    .page-content { padding: 12px 12px 80px; }

    .content-header {
        padding: 12px 14px;
    }
    .content-header-right { display: flex; }
    .cart-toggle-btn { display: flex; }
    .header-title { font-size: 1.1rem; }
    .header-subtitle { font-size: 0.72rem; }

    .products-grid,
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-img { height: 110px; }
    .product-card-body { padding: 8px 10px 10px; }
    .product-card-name { font-size: 0.78rem; }
    .product-card-price { font-size: 0.88rem; }

    .categories-nav { gap: 6px; padding-bottom: 12px; }
    .cat-btn { padding: 6px 12px; font-size: 0.78rem; }

    .category-section-header { margin-bottom: 10px; padding-bottom: 8px; }
    .category-section-title { font-size: 0.95rem; }
    .category-section { margin-bottom: 20px; }

    /* Modal produto como sheet bottom */
    .modal-overlay.active {
        align-items: flex-end;
    }
    .modal-product {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        animation: slide-up-full 0.35s cubic-bezier(0.4,0,0.2,1);
    }
    @keyframes slide-up-full {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .modal-product-image { height: 180px; }
    .modal-product-body { padding: 16px; }
    .modal-product-name { font-size: 1.2rem; }
    .modal-product-price { font-size: 1.3rem; margin-bottom: 14px; }

    /* Register modal no mobile */
    .modal-register {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }
    #registerModal.active {
        align-items: flex-end;
    }
    .register-benefits {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 20px;
    }
    .register-form { padding: 0 20px 12px; }
    .register-skip { padding: 0 20px 20px; }

    /* Mobile menu btn */
    .mobile-menu-btn { display: none; }

    /* Toast acima do bottom nav */
    .toast { bottom: 80px; }
}

@media (max-width: 380px) {
    .products-grid,
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .product-card-img { height: 95px; }
    .product-card-add-btn { width: 32px; height: 32px; bottom: 6px; right: 6px; }
    .product-card-add-btn svg { width: 17px; height: 17px; }
}

@media (min-width: 769px) {
    .cart-toggle-btn { display: none; }
    .mobile-bottom-nav { display: none !important; }
}
