:root {
    --bg-dark: #0a0a0c;
    --bg-card: #151518;
    --bg-modal: #1c1c1f;
    --primary: #e61919;
    --primary-hover: #ff2a2a;
    --accent: #FFC902;
    --text-main: #FAFCFB;
    --text-muted: #9e9e9e;
    --border: #2a2a2e;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-family: inherit;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
}

.hidden {
    display: none !important;
}

.mt-4 { margin-top: 1rem; }
.w-100 { width: 100%; }

/* Typography */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(230, 25, 25, 0.4);
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Views */
.view {
    display: none;
    min-height: 100vh;
}
.view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== CLIENT VIEW ==================== */

/* Header */
.client-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
}
.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.logo h1 span {
    color: var(--primary);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.2s;
}
.social-icon.insta {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icon.wpp {
    background: #25D366;
}
.social-icon:active {
    transform: scale(0.9);
}
.shop-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.shop-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
}
.shop-status.closed .dot {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.closed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.closed-message i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.closed-message h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.closed-message p {
    color: var(--text-muted);
}

/* Hero */
.hero {
    position: relative;
    padding: 40px 20px;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(230, 25, 25, 0.1) 0%, var(--bg-dark) 90%), url('logo.png');
    background-size: cover;
    background-position: center;
    opacity: 0.55; /* Marca d'água super viva */
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9); /* Destacar o texto da frente */
}
.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(230, 25, 25, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:active {
    transform: scale(0.96);
}

/* Categories Nav */
.categories-nav {
    position: sticky;
    top: 61px;
    z-index: 99;
    background: var(--bg-dark);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.categories-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 20px;
    list-style: none;
    scrollbar-width: none;
}
@keyframes pulseScroll {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-15px); }
}
.hint-scroll {
    animation: pulseScroll 2.5s ease-in-out infinite;
}
.categories-list::-webkit-scrollbar { display: none; }
.cat-item {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.cat-item.active {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: var(--text-main);
}

/* Main Menu Container */
.menu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px; /* Space for floating cart */
}
.menu-section {
    margin-bottom: 30px;
    scroll-margin-top: 120px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.product-card:active {
    transform: scale(0.98);
}
.product-img-wrapper {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2a2e;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}
.btn-add {
    background: var(--text-main);
    color: var(--bg-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}
.badge-popular {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 760px;
    margin: 0 auto;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(230, 25, 25, 0.4);
    z-index: 100;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.cart-info i {
    font-size: 1.4rem;
}
.floating-cart #cart-total {
    font-weight: 800;
    font-size: 1.1rem;
}

/* Modal Shared */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
}
@media (min-width: 600px) {
    .modal {
        align-items: center;
        justify-content: center;
    }
}
.modal-content {
    background: var(--bg-modal);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    animation: slideUpModal 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}
@media (min-width: 600px) {
    .modal-content {
        max-width: 500px;
        border-radius: 24px;
    }
}
@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-modal);
    z-index: 10;
}
.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Cart Modal */
.cart-items {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.cart-item-info p {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 20px;
}
.cart-item-controls button {
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 0 4px;
}
.cart-summary {
    padding: 20px;
    background: var(--bg-card);
}
.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
}
.checkout-form {
    padding: 20px;
}
.checkout-form h4 {
    margin-bottom: 16px;
    color: var(--text-muted);
}
.input-group {
    margin-bottom: 16px;
}
.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.payment-option input {
    display: none;
}
.pay-btn {
    display: block;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}
.payment-option input:checked + .pay-btn {
    border-color: var(--primary);
    background: rgba(230, 25, 25, 0.1);
}
.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

/* Product Modal (Options/Combos) */
.product-content {
    position: relative;
}
.product-modal-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2e;
}
.overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.product-modal-details {
    padding: 20px;
}
.product-modal-details h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.product-modal-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.options-group {
    margin-bottom: 20px;
}
.options-group h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}
.option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
}
.option-label.selected {
    border-color: var(--primary);
    background: rgba(230, 25, 25, 0.05);
}
.option-label input {
    display: none;
}
.option-price {
    color: var(--accent);
    font-weight: 600;
}
.pm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
#pm-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

/* Header Logo */
.header-logo {
    max-height: 50px;
    object-fit: contain;
    border-radius: 50%;
}

/* Client Footer */
.client-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.instagram-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.instagram-link i {
    color: var(--primary);
    font-size: 1.5rem;
}
.secret-admin-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 0.8rem;
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid transparent;
}
.secret-admin-btn:hover {
    opacity: 1;
    border-color: var(--border);
    background: var(--bg-card);
}

/* ==================== ADMIN VIEW ==================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
@media (max-width: 800px) {
    .admin-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: 0.3s;
    }
    .admin-sidebar.open {
        left: 0;
    }
}
.admin-logo {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-close, .mobile-menu-btn {
    font-size: 1.5rem;
    display: none;
}
@media (max-width: 800px) {
    .mobile-menu-close, .mobile-menu-btn { display: block; }
}
.admin-nav {
    flex-grow: 1;
    padding: 20px 0;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border-right: 3px solid var(--primary);
}
.nav-item i { font-size: 1.2rem; }
.admin-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}
.admin-topbar {
    padding: 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.admin-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}
.admin-tab { display: none; }
.admin-tab.active { display: block; }

/* Dashboard */
.dashboard-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-card.highlight {
    background: linear-gradient(135deg, rgba(230,25,25,0.1) 0%, transparent 100%);
    border-color: rgba(230,25,25,0.3);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Kanban Orders */
.orders-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}
.kanban-col {
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius);
    padding: 16px;
    min-height: 200px;
}
.kanban-col h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.order-id { font-weight: 800; color: var(--accent); }
.order-time { color: var(--text-muted); }
.order-client { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.order-items { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.order-total { font-weight: 700; margin-bottom: 12px; }
.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.order-actions button {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-grow: 1;
}
.btn-confirm { background: #00e676; color: #000; }
.btn-prepare { background: var(--accent); color: #000; }
.btn-ready { background: var(--primary); color: #fff; }
.btn-finish { background: #333; color: #fff; }

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.admin-table th, .admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}
.admin-table tr:last-child td { border-bottom: none; }
.action-btns {
    display: flex;
    gap: 8px;
}
.btn-edit, .btn-delete {
    padding: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}
.btn-delete { color: var(--primary); }

/* Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 10px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: #00e676; }
input:checked + .slider:before { transform: translateX(24px); }

/* Helpers */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.checkbox-label input {
    width: auto;
}

/* ==================== REMOVER PROPAGANDA NETLIFY ==================== */
netlify-badge,
a[href*="netlify.com"], 
#netlify-badge, 
.netlify-badge,
div[style*="z-index: 2147483647"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
