:root {
    --bg-canvas: #f4f5f7;
    --surface: #ffffff;
    --ink-primary: #111827;
    --ink-secondary: #6b7280;
    --border-subtle: #e5e7eb;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --accent-soft: #fff7ed;
    --radius-lg: 16px;
    --radius-md: 10px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-canvas);
    color: var(--ink-primary);
    -webkit-font-smoothing: antialiased;
}

/* Navbar superiore Admin */
.admin-topbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

/* Pulsanti moderni */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
}

.btn-brand {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2);
}

    .btn-brand:hover {
        background-color: var(--accent-hover);
        border-color: var(--accent-hover);
        color: #fff;
        transform: translateY(-1px);
    }

/* Input e Select rifiniti */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 0.85rem;
    font-size: 0.94rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
    }

/* Card generiche */
.card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* KPI Dashboard */
.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink-primary);
    margin-top: 2px;
}

/* Card di navigazione Dashboard */
.action-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--ink-primary);
    display: flex;
    flex-direction: column;
}

    .action-card:hover {
        border-color: var(--accent);
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    }

.action-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

/* Tabelle moderne */
.table thead th {
    background-color: #f9fafb;
    color: var(--ink-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 1rem;
}

.table tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Thumbnail piatti */
.piatto-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

/* Login centrato */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #ffedd5 0%, var(--bg-canvas) 45%);
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.07);
}
/* === HOME CLIENTI === */
.hero-kitchen {
    background: linear-gradient(135deg, #1f242d 0%, #2d1c15 55%, #7c2d12 100%);
    color: #fff;
    border-radius: 0 0 28px 28px;
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.mode-switcher {
    background: #fff;
    padding: 0.4rem;
    border-radius: 16px;
    display: inline-flex;
    gap: 0.35rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    margin-top: -1.8rem;
    position: relative;
    z-index: 10;
}

.mode-btn {
    border: none;
    background: transparent;
    color: var(--ink-secondary);
    font-weight: 700;
    padding: 0.7rem 1.35rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 0.92rem;
}

    .mode-btn.active {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    }

/* Card Piatto */
.food-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .food-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px rgba(17, 24, 39, 0.09);
    }

    .food-card.speciale {
        border: 1.5px solid #f59e0b;
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
    }

.food-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

    .food-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

.food-card:hover .food-img-wrap img {
    transform: scale(1.05);
}

.food-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c2410c;
    opacity: 0.55;
}

.price-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.special-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

/* Barra Carrello Flottante */
.floating-cart-bar {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 560px;
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 0.85rem 1.15rem;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.35);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* === SELETTORE MODALITA' GRANDE (MOBILE-FIRST) === */
.choice-grid {
    margin-top: -2.2rem;
    position: relative;
    z-index: 10;
}

.choice-card {
    background: #fff;
    border: 2px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.1rem 1.15rem;
    text-align: left;
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .choice-card.active {
        border-color: var(--accent);
        background: #fffaf5;
        box-shadow: 0 12px 28px rgba(234, 88, 12, 0.18);
    }

.choice-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: #f3f4f6;
    color: var(--ink-primary);
}

.choice-card.active .choice-icon {
    background: var(--accent);
    color: #fff;
}

/* Barra Carrello Mobile Sticky */
.mobile-cart-bar {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 600px;
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 0.85rem 1rem;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.4);
    z-index: 1030;
}

.balance-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

    .balance-pill.ok {
        background: rgba(34, 197, 94, 0.25);
        color: #86efac;
    }

    .balance-pill.warn {
        background: rgba(245, 158, 11, 0.28);
        color: #fde047;
    }

@media (max-width: 576px) {
    .hero-kitchen {
        padding: 2rem 0 3.4rem;
        border-radius: 0 0 22px 22px;
    }

    .food-img-wrap {
        aspect-ratio: 16 / 9;
    }
}
/* === BANNER SPONSORIZZATO MENU SPECIALE === */
.promo-special-banner {
    background: linear-gradient(135deg, #1f242d 0%, #451a03 60%, #9a3412 100%);
    color: #fff;
    border-radius: 18px;
    padding: 1.15rem 1.25rem;
    border: 1.5px solid #f59e0b;
    box-shadow: 0 10px 26px rgba(234, 88, 12, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .promo-special-banner:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(234, 88, 12, 0.3);
    }

.badge-lampeggiante {
    background: #f59e0b;
    color: #111827;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    animation: pulse-badge 1.4s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.75);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.04);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}