/* ═══════════════════════════════════════════════════════════════════
   Il Mio Ristorante — Restaurant Theme
   Premium warm palette  ·  No JavaScript  ·  Pure CSS animations
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ───────────────────────────────────────────── */
:root {
    /* Cinematographic Dark Palette */
    --bg: #030303;
    --bg-card: #0a0a0a;
    --bg-card-alt: #121212;
    --surface: #181818;

    /* Subtle Borders for elegance */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);

    /* Champagne Gold Accents */
    --gold: #C5A059;
    --gold-light: #E6C887;
    --gold-dark: #8C6D31;
    --amber: #f59e0b;
    --red: #b91c1c;
    --green: #15803d;

    /* Text */
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-display: 'Cinzel', serif;

    /* Cinematic Spacing & Effects */
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    --transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: background-color var(--transition), backdrop-filter var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.logo-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--gold);
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.logo-text em {
    color: var(--gold);
    font-style: normal;
    font-weight: 400;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all .3s ease;
}

.nav-toggle.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(212, 175, 55, .08);
}

.btn-nav {
    background: transparent !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm) !important;
}

.btn-nav:hover {
    background: rgba(197, 160, 89, 0.1) !important;
    /* Gold with opacity */
    color: var(--text) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.15) !important;
}


/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: .95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: var(--font);
    letter-spacing: .02em;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}


/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    overflow: hidden;
    margin-top: -72px;
    /* Pull up under transparent navbar */
}

/* Base background layer with micro parallax/zoom */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a dark radial + image if exists, or a pure cinematic dark gradient */
    background: url('../images/parallax-bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0;
    animation: hero-parallax-zoom 20s infinite alternate linear;
    transform: scale(1);
}

@keyframes hero-parallax-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

/* Deep immersive overlay to ensure text pops and looks cinematic */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(3, 3, 3, 0.45) 100%),
        linear-gradient(180deg, rgba(3, 3, 3, 0.6) 0%, rgba(3, 3, 3, 0.95) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(197, 160, 89, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(200, 100, 20, 0.05) 0%, transparent 50%);
    animation: hero-glow 12s ease-in-out infinite alternate;
    z-index: 1;
    /* Above bg, below content */
}

@keyframes hero-glow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(3%, -3%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fade-in-up .8s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    animation: fade-in-up .8s ease-out .15s both;
}

.hero-title em {
    color: var(--gold-light);
    font-style: normal;
    font-weight: 400;
}

.hero-tagline {
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fade-in-up .8s ease-out .3s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both;
}

/* Premium CTA buttons for Hero */
.hero-btn {
    padding: 16px 36px;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    background: rgba(197, 160, 89, 0.85);
    /* Semi-transparent gold */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.hero-btn:hover {
    background: rgba(197, 160, 89, 1);
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.hero-btn-outline {
    padding: 16px 36px;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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


/* ── Sections ────────────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 56px;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 16px auto 0;
    border-radius: 2px;
}


/* ── Page Header (inner pages) ───────────────────────────────────── */
.page-header {
    padding: 100px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}


/* ── About Cards (Home) ──────────────────────────────────────────── */
.about-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.about-card {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition);
}

.about-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 160, 89, 0.1);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.03) 0%, transparent 100%);
}

.about-icon-bar {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--gold-light);
    font-weight: 500;
}

.about-card p {
    color: var(--text-muted);
    font-size: .95rem;
}


/* ── CTA Section ─────────────────────────────────────────────────── */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, .06) 0%, transparent 60%);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}


/* ── Stats/Counters Section (Parallax) ───────────────────────────── */
.stats-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background:
        linear-gradient(rgba(3, 3, 3, 0.9), rgba(3, 3, 3, 0.9)),
        url('../images/parallax-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    color: var(--gold-light);
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Menu Section & Layout ───────────────────────────────────────── */
.menu-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Base styles for sidebar (Mobile first: horizontal scroll) */
.menu-sidebar {
    position: sticky;
    top: 70px;
    /* Below navbar */
    z-index: 50;
    background: rgba(15, 13, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 0;
    /* Removed margin: 0 -16px; to prevent page horizontal overflow on mobile */
    /* Wrap items on multiple lines for mobile */
    overflow: hidden;
    white-space: normal;
    -webkit-overflow-scrolling: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.menu-sidebar::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for mobile nav */
}

.menu-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.menu-sidebar-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.menu-sidebar-link:hover,
.menu-sidebar-link:active {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.1);
}

.menu-content-area {
    flex: 1;
    min-width: 0;
}

.menu-category {
    margin-bottom: 80px;
    /* Increased separation */
    scroll-margin-top: 140px;
    /* Accounts for navbar + sticky sidebar offsets */
}

/* Desktop Layout (Sidebar left, content right) */
@media (min-width: 992px) {
    .menu-layout-wrapper {
        flex-direction: row;
        gap: 60px;
        align-items: flex-start;
    }

    .menu-sidebar {
        flex: 0 0 220px;
        position: sticky;
        top: 100px;
        background: transparent;
        backdrop-filter: none;
        border: none;
        padding: 0;
        margin: 0;
        overflow-x: visible;
        white-space: normal;
        box-shadow: none;
    }

    .menu-sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .menu-sidebar-link {
        background: transparent;
        border: none;
        border-right: 2px solid transparent;
        border-radius: 0;
        padding: 8px 16px;
        text-align: right;
        font-size: 0.95rem;
    }

    .menu-sidebar-link:hover {
        background: transparent;
        color: var(--gold);
        border-color: var(--gold);
    }

    .menu-category {
        scroll-margin-top: 100px;
    }
}

.menu-category-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 32px;
    padding-bottom: 16px;
    color: var(--gold-light);
    position: relative;
    display: inline-block;
}

.menu-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.menu-category.aos-animate .menu-category-title::after {
    width: 100%;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.menu-item {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.4s ease,
        background 0.4s ease;
    will-change: transform, box-shadow;
}

.menu-item:hover {
    border-color: rgba(197, 160, 89, 0.5);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.05) 0%, transparent 100%);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(197, 160, 89, 0.15);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-bottom: 12px;
    gap: 16px;
    position: relative;
}

/* Dotted leader for restaurant feel */
.menu-item-header::after {
    content: '';
    flex-grow: 1;
    border-bottom: 1px dashed var(--border-light);
    margin: 0 12px;
    position: relative;
    top: -6px;
}

.menu-item-header h3 {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text);
    margin: 0;
    /* ensure title stays left of the dots */
    flex-shrink: 0;
}

.menu-price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--gold-light);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s ease;
    flex-shrink: 0;
    /* Highlighted Price Badge styling */
    background: rgba(197, 160, 89, 0.1);
    padding: 4px 14px;
    border-radius: 30px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.05);
}

.menu-item:hover .menu-price {
    background: rgba(197, 160, 89, 0.2);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.15);
    transform: scale(1.05);
    /* Micro animation on hover */
}

/* Micro-animation: Price appears after card */
.menu-item.aos-animate .menu-price {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease 0.3s;
    /* Delay only applies when entering */
}

.menu-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

/* Dietary and Allergen Badges */
.diet-tag,
.allergen-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.tag-vegan {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.25);
}

.tag-veg {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.25);
}

.allergen-tag {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Menu item images */
.menu-item.has-image {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.menu-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

@media (max-width: 768px) {
    .menu-item-image {
        width: 70px;
        height: 70px;
    }
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.15);
}

.menu-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Admin image preview */
.image-preview {
    margin-bottom: 12px;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}

.file-input {
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.menu-item p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    /* Transition for when it disappears (reverse) */
}

/* Micro-animation: Description reveals after price */
.menu-item.aos-animate p {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease 0.45s;
    /* Delay only applies when entering */
}


/* ── Contacts Section ────────────────────────────────────────────── */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.contact-card {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 160, 89, 0.1);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.03) 0%, transparent 100%);
}

.contact-icon-bar {
    display: block;
    width: 32px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.contact-card h3 {
    font-family: var(--font-display);
    color: var(--gold-light);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.contact-card p {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-small {
    font-size: .85rem !important;
    color: var(--text-dim) !important;
}

.contact-card-hours {
    margin-top: 24px;
    text-align: left;
}

.contact-card-hours .contact-icon-bar {
    margin: 0 0 16px;
}

.contact-card-hours h3 {
    text-align: center;
}

.contact-card-hours .hours-table {
    max-width: 500px;
    margin: 0 auto;
}

.map-section {
    padding-bottom: 80px;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}


/* ── Reservation Form ────────────────────────────────────────────── */
.form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    margin-bottom: 28px;
}

.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: .95rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a89f90' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}


/* ── Flash Messages ──────────────────────────────────────────────── */
.flash-message {
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-weight: 500;
    font-size: .95rem;
    animation: flash-in .5s ease-out;
}

.flash-success {
    background: rgba(22, 163, 74, .12);
    border: 1px solid rgba(22, 163, 74, .3);
    color: #4ade80;
}

.flash-error {
    background: rgba(220, 38, 38, .12);
    border: 1px solid rgba(220, 38, 38, .3);
    color: #f87171;
}

.flash-warning {
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .3);
    color: #fbbf24;
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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


/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 1.15rem;
    display: block;
    margin-top: 8px;
}

.footer-brand p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: .9rem;
}

.footer h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: .9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-hours p,
.footer-contact p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: .85rem;
}


/* ── Auth Forms ──────────────────────────────────────────────────── */
.auth-section {
    padding-top: 40px;
}

.form-wrapper-sm {
    max-width: 440px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-alt {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: .9rem;
}

.auth-alt a {
    font-weight: 600;
}

/* ── Navbar User ────────────────────────────────────────────────── */
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.nav-username {
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 500;
}

.nav-logout {
    color: var(--text-dim) !important;
    font-size: .8rem;
}

.nav-logout:hover {
    color: var(--red) !important;
}

/* ── Checkbox ───────────────────────────────────────────────────── */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: .95rem;
    color: var(--text-muted);
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}


/* ── Admin ───────────────────────────────────────────────────────── */
.admin-section {
    padding-top: 32px;
}

.admin-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

.admin-tab {
    padding: 12px 24px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-muted) !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}

.admin-tab:hover {
    color: var(--text) !important;
}

.admin-tab.active {
    color: var(--gold) !important;
    border-color: var(--gold);
}

.admin-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-filter label {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-filter input[type="date"] {
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    outline: none;
}

.admin-filter input[type="date"]:focus {
    border-color: var(--gold);
}

.admin-actions-bar {
    margin-bottom: 24px;
}

/* ── Admin Table ─────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.admin-table thead {
    background: var(--surface);
}

.admin-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(212, 175, 55, .03);
}

.admin-table .desc-cell {
    max-width: 240px;
    color: var(--text-muted);
    font-size: .85rem;
}

.actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── Badges ──────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.badge-confirmed {
    background: rgba(22, 163, 74, .15);
    color: #4ade80;
}

.badge-cancelled {
    background: rgba(220, 38, 38, .15);
    color: #f87171;
}

/* ── Small Buttons ───────────────────────────────────────────────── */
.btn-sm {
    display: inline-block;
    padding: 5px 12px;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    transition: all var(--transition);
}

.btn-confirm {
    background: rgba(22, 163, 74, .15);
    color: #4ade80;
}

.btn-confirm:hover {
    background: rgba(22, 163, 74, .25);
}

.btn-cancel {
    background: rgba(245, 158, 11, .15);
    color: #fbbf24;
}

.btn-cancel:hover {
    background: rgba(245, 158, 11, .25);
}

.btn-delete {
    background: rgba(220, 38, 38, .12);
    color: #f87171;
}

.btn-delete:hover {
    background: rgba(220, 38, 38, .22);
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── Admin Day Groups ────────────────────────────────────────────── */
.day-group {
    margin-bottom: 32px;
}

.day-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.day-group-date {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
}

.day-group-label {
    font-size: .82rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 2px 10px;
    border-radius: 99px;
}

.admin-res-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 8px;
    transition: all var(--transition);
}

.admin-res-card:hover {
    border-color: rgba(212, 175, 55, .2);
}

.admin-res-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.admin-res-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    min-width: 50px;
}

.admin-res-info {
    flex: 1;
}

.admin-res-info h4 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 0;
}

.admin-res-info p {
    font-size: .82rem;
    color: var(--text-muted);
}

.admin-res-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 66px;
}

.admin-res-note {
    font-style: italic;
    color: var(--text-dim);
}

.admin-res-actions {
    display: flex;
    gap: 6px;
    padding-left: 66px;
}

/* ── Settings ────────────────────────────────────────────────────── */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.settings-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--gold-light);
}

.settings-hint {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 16px;
}

.form-hint {
    display: block;
    font-size: .78rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.badge-override {
    background: rgba(212, 175, 55, .15);
    color: var(--gold);
}

.badge-default {
    background: var(--surface);
    color: var(--text-muted);
}

.override-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.override-input {
    width: 72px;
    font-family: var(--font);
    font-size: .85rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
}

.override-input:focus {
    border-color: var(--gold);
    outline: none;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .9rem;
    transition: all var(--transition);
}

.checkbox-label:hover {
    border-color: var(--gold);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

.form-group input[type="time"] {
    font-family: var(--font);
    font-size: .95rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: all var(--transition);
    outline: none;
}

.form-group input[type="time"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .12);
}

.form-group input[type="number"] {
    font-family: var(--font);
    font-size: .95rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: all var(--transition);
    outline: none;
}

.form-group input[type="number"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .12);
}


/* ── Multi-Step Form ─────────────────────────────────────────────── */
.booking-progress-container {
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
}

.progress-bar-bg {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-label.active {
    color: var(--gold);
    font-weight: 600;
}

.multi-step-form {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 450px;
}

.booking-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.booking-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-content-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 20px auto;
    max-width: 400px;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-item strong {
    color: var(--text);
    font-size: 1rem;
}

.spinner-small {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── Calendar ────────────────────────────────────────────────────── */
.booking-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

.calendar-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text);
}

.cal-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.cal-nav:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.calendar-grid,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-name {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 0 8px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.cal-empty {
    background: transparent;
}

.cal-disabled {
    color: var(--text-dim);
    opacity: .35;
}

.cal-available {
    background: rgba(22, 163, 74, .12);
    color: #4ade80;
    cursor: pointer;
    border: 1px solid rgba(22, 163, 74, .2);
}

.cal-available:hover {
    background: rgba(22, 163, 74, .22);
    transform: scale(1.08);
}

.cal-almost {
    background: rgba(245, 158, 11, .12);
    color: #fbbf24;
    cursor: pointer;
    border: 1px solid rgba(245, 158, 11, .2);
}

.cal-almost:hover {
    background: rgba(245, 158, 11, .22);
    transform: scale(1.08);
}

.cal-full {
    background: rgba(220, 38, 38, .1);
    color: #f87171;
    cursor: not-allowed;
    border: 1px solid rgba(220, 38, 38, .15);
    opacity: .6;
}

.cal-selected {
    outline: 2px solid var(--gold) !important;
    outline-offset: 1px;
    transform: scale(1.08);
}

.calendar-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-available {
    background: #4ade80;
}

.dot-almost {
    background: #fbbf24;
}

.dot-full {
    background: #f87171;
}


/* ── Slot Picker ─────────────────────────────────────────────────── */
.booking-form-panel {
    min-height: 300px;
}

.slot-picker h3,
.reservation-form h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.slot-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.slot-btn:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, .06);
    color: var(--gold);
    transform: translateY(-1px);
}

.booking-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: .95rem;
    color: var(--text-muted);
}

.booking-summary strong {
    color: var(--gold);
}

.booking-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: .95rem;
}


/* ── Profile ─────────────────────────────────────────────────────── */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 40px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.profile-email {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 6px;
}

.badge-customer {
    background: rgba(212, 175, 55, .15);
    color: var(--gold);
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reservation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all var(--transition);
}

.reservation-card:hover {
    border-color: rgba(212, 175, 55, .2);
}

.status-border-confirmed {
    border-left: 3px solid #4ade80;
}

.status-border-cancelled {
    border-left: 3px solid #f87171;
}

.reservation-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reservation-date-block {
    text-align: center;
    min-width: 56px;
    flex-shrink: 0;
}

.res-day {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.res-month {
    display: block;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.reservation-details {
    flex: 1;
}

.reservation-details p {
    font-size: .92rem;
    margin-bottom: 2px;
}

.res-meta {
    color: var(--text-muted);
    font-size: .85rem !important;
}

.res-notes {
    color: var(--text-dim);
    font-size: .85rem !important;
    font-style: italic;
}

.reservation-status {
    flex-shrink: 0;
}

/* ── Logo Images ─────────────────────────────────────────────────── */
.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 4px;
}


/* ── Menu Detail Button ──────────────────────────────────────────── */
.menu-detail-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    font-size: .82rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--gold);
    background: rgba(212, 175, 55, .08);
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: .02em;
}

.menu-detail-btn:hover {
    background: rgba(212, 175, 55, .18);
    border-color: var(--gold);
    transform: translateY(-1px);
}


/* ── Menu Detail Modal ───────────────────────────────────────────── */
.menu-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    padding: 24px;
}

.menu-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-modal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
    transform: translateY(24px) scale(.96);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.menu-modal-overlay.active .menu-modal {
    transform: translateY(0) scale(1);
}

.menu-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.menu-modal-close:hover {
    background: rgba(220, 38, 38, .7);
    transform: scale(1.1);
}

.menu-modal-image-wrap {
    width: 100%;
    max-height: 340px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.menu-modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-modal-body {
    padding: 28px;
}

.menu-modal-body h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.menu-modal-price {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.menu-modal-body p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.7;
}


/* ── Settings Card Wide ──────────────────────────────────────────── */
.settings-card-wide {
    grid-column: 1 / -1;
}

/* Fix settings card inputs overflow */
.settings-card input,
.settings-card select,
.settings-card textarea {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* ── Admin Add Reservation (details/summary) ─────────────────────── */
.admin-add-reservation summary {
    list-style: none;
}

.admin-add-reservation summary::-webkit-details-marker {
    display: none;
}

.admin-add-reservation[open]>summary {
    margin-bottom: 16px;
}


/* ── Photo Upload Options ────────────────────────────────────────── */
.photo-upload-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.photo-option-btn {
    font-size: .88rem !important;
    padding: 10px 18px !important;
}

.image-preview {
    margin-top: 8px;
}

.image-preview img {
    max-width: 280px;
    max-height: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: cover;
}

/* file input styling (when visible) */
.file-input {
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text-muted);
}


/* ── Weekly Schedule ─────────────────────────────────────────────── */
.weekly-schedule {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-row {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    transition: opacity .25s;
}

.day-row.day-closed {
    opacity: .45;
    background: rgba(255, 255, 255, .02);
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.day-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}

.day-closed-toggle span {
    font-size: .85rem;
    color: var(--text-muted);
}

.day-times {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.time-pair {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-label {
    font-size: .84rem;
    color: var(--text-muted);
    min-width: 70px;
}

.time-sep {
    color: var(--text-muted);
    font-size: .9rem;
}

.time-pair input[type="time"] {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: .88rem;
}


/* ── Hours Table (Contacts) ──────────────────────────────────────── */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.hours-table td {
    padding: 4px 6px;
    font-size: .92rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.hours-day {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    width: 90px;
}

.hours-times {
    color: var(--text-muted);
}

.hours-closed .hours-times {
    opacity: .5;
    font-style: italic;
}

.hours-closed-footer {
    opacity: .5;
}


/* ── Profilo / User Content ──────────────────────────────────────── */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-display);
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reservation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.status-border-confirmed {
    border-left: 4px solid #4ade80;
}

.status-border-cancelled {
    border-left: 4px solid #f87171;
}

.reservation-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.reservation-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.res-day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.res-month {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.reservation-details {
    flex: 1;
    min-width: 200px;
}

.reservation-details p {
    margin: 4px 0;
}

.res-meta,
.res-notes {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.reservation-status {
    margin-left: auto;
}


/* ── Responsive ──────────────────────────────────────────────────── */

/* ── Tablet / Small laptop (≤ 768px) ─────────────────────────────── */
@media (max-width: 768px) {

    /* Navbar */
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 16px;
        gap: 6px;
    }

    /* Show hamburger on mobile */
    .nav-toggle {
        display: block;
    }

    /* Nav links hidden by default, revealed when toggled */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        background: rgba(15, 13, 11, .95);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 12px 0;
        gap: 0;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        font-size: .92rem;
        border-bottom: 1px solid rgba(255, 255, 255, .04);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(212, 175, 55, .08);
    }

    .nav-links .btn-nav {
        border: none;
        border-radius: 0;
        text-align: left;
    }

    .nav-user {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        gap: 0;
        flex-direction: row;
        padding: 12px 20px;
    }

    .nav-username {
        font-size: .88rem;
    }

    .nav-logout {
        margin-left: auto;
    }

    .logo-monogram {
        width: 30px;
        height: 30px;
        font-size: .95rem;
    }

    /* Hero */
    .hero {
        min-height: 65vh;
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: .9rem;
        letter-spacing: .1em;
    }

    .hero-tagline {
        font-size: .95rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .page-header {
        padding: 24px 0;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Cards */
    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 24px 18px;
    }

    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    /* Menu: Keep side-by-side layout even on mobile to show icons */
    .menu-item.has-image {
        flex-direction: row;
        /* Ensure it stays horizontal */
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 24px 16px;
    }

    /* Booking */
    .booking-layout {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-hours p {
        font-size: .82rem;
    }

    /* Admin */
    .admin-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

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

    .admin-tab {
        padding: 10px 16px;
        font-size: .82rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .admin-filter {
        flex-direction: column;
        align-items: stretch;
    }

    /* Admin tables: horizontal scroll */
    .table-wrapper {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
        font-size: .8rem;
    }

    .actions-cell {
        flex-direction: column;
        gap: 4px;
    }

    .override-form {
        flex-wrap: wrap;
    }

    .override-input {
        width: 60px !important;
    }

    /* Settings grid */
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-card-wide {
        grid-column: 1;
    }

    .settings-card {
        padding: 20px 16px;
    }

    /* Weekly schedule */
    .day-row {
        padding: 12px 14px;
    }

    .day-times {
        flex-direction: column;
        gap: 10px;
    }

    .time-pair {
        flex-wrap: wrap;
        gap: 4px;
    }

    .time-pair input[type="time"] {
        padding: 8px 8px;
        font-size: .85rem;
        min-width: 0;
        flex: 1;
    }

    .time-label {
        min-width: 60px;
        font-size: .8rem;
    }

    /* Hours table (contacts) */
    .hours-table td {
        padding: 3px 4px;
        font-size: .84rem;
    }

    .hours-day {
        width: 70px;
        font-size: .84rem;
    }

    /* Calendar / Reservation */
    .cal-grid {
        gap: 2px;
    }

    .cal-day-name {
        font-size: .7rem;
    }

    .cal-cell {
        min-height: 36px;
        font-size: .8rem;
    }

    /* Map */
    .map-wrapper iframe {
        height: 280px;
    }

    /* Profilo */
    .reservation-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .reservation-date-block {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 15px;
        flex-direction: row;
        gap: 10px;
        align-items: baseline;
        width: 100%;
        justify-content: flex-start;
    }

    .reservation-status {
        margin-left: 0;
    }
}


/* ── Very small screens (≤ 480px) ────────────────────────────────── */
@media (max-width: 480px) {

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: .95rem;
        width: 100%;
        max-width: 280px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
    }

    .hero-tagline {
        font-size: .88rem;
    }

    /* Nav: smaller links */
    .nav-links a {
        padding: 5px 8px;
        font-size: .78rem;
    }

    .admin-tab {
        padding: 8px 12px;
        font-size: .78rem;
    }

    /* Day row compact */
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .day-name {
        font-size: .92rem;
    }

    /* Contacts hours */
    .contact-card-hours .hours-table {
        max-width: 100%;
    }

    /* Form buttons full width */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Menu items compact layout on small screens */
    .menu-item {
        padding: 8px 6px;
    }

    .menu-item.has-image {
        gap: 10px;
    }

    .menu-item-header {
        margin-bottom: 2px;
        gap: 6px;
    }

    .menu-item-header h3 {
        font-size: .8rem;
    }

    .menu-price {
        font-size: .8rem;
    }

    .menu-item p {
        font-size: .65rem;
        line-height: 1.3;
    }

    .menu-item-tags {
        margin-bottom: 4px;
        gap: 2px;
    }

    .diet-tag,
    .allergen-tag {
        font-size: 0.45rem;
        padding: 1px 3px;
    }

    /* Footer compact */
    .footer-hours p {
        font-size: .78rem;
    }

    .footer-bottom p {
        font-size: .78rem;
    }
}


/* ── Footer Hours Table (New) ────────────────────────────────────── */
.footer-hours-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: .85rem;
    margin-top: 8px;
}

.footer-hours-table th {
    text-align: left;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-bottom: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.footer-hours-table td {
    padding: 6px 4px;
    vertical-align: middle;
}

.footer-hours-table .day-col {
    color: var(--text);
    font-weight: 600;
    width: 40px;
}

.time-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 3px 10px;
    border-radius: 99px;
    color: var(--text-muted);
    font-size: .75rem;
    white-space: nowrap;
    transition: all var(--transition);
}

.footer-hours-table tr:hover .time-pill {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.05);
}

.footer-closed-row .day-col {
    color: var(--text-dim);
}

.badge-closed {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    padding: 3px 12px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    text-align: center;
    border: 1px dashed var(--border-light);
}

@media (max-width: 400px) {
    .footer-hours-table {
        font-size: .75rem;
    }

    .time-pill {
        padding: 2px 6px;
        font-size: .7rem;
    }
}


/* ── Menu Dietary Tags ───────────────────────────────────────────── */
.menu-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 2px;
}

.diet-tag,
.allergen-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag-vegan {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.tag-veg {
    background-color: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.allergen-tag {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ── Admin Dietary Checkboxes ────────────────────────────────────── */
.dietary-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.pill-checkbox {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 99px;
    transition: all var(--transition);
    cursor: pointer;
    user-select: none;
}

.pill-checkbox:hover {
    border-color: var(--gold);
}

.pill-checkbox input:checked+span {
    color: var(--gold);
    font-weight: 600;
}