/* === Reset & Variables === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #DE3619;
    --primary-dark: #b82c14;
    --primary-light: #fce8e4;
    --dark: #542700;
    --brown: #9C7451;
    --cream: #F3EFE4;
    --text: #542700;
    --text-muted: #9C7451;
    --bg: #F3EFE4;
    --white: #ffffff;
    --border: #d9d3c4;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; }

/* === Navbar === */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1100;
    padding-top: env(safe-area-inset-top, 0px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
}
.logo:hover { opacity: 0.9; }
.logo-img { height: 56px; width: auto; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}
.nav-links a {
    padding: 0.5rem 0.85rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-menu-logo { display: none; }

.nav-toggle { display: none; background: none; border: none; border-radius: var(--radius-sm); cursor: pointer; padding: 0.5rem; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; transition: all var(--transition); }
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 2.5px 0; transition: all 0.3s ease; border-radius: 1px; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-nav { background: var(--primary); color: var(--white) !important; }
.btn-nav:hover { background: var(--primary-dark) !important; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #542700 0%, #3a1b00 100%);
    color: var(--white);
    padding: 4rem 0;
    overflow: hidden;
}
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-text { flex: 1; max-width: 640px; }
.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.hero .highlight { color: var(--primary); }
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.hero-tagline { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--text-light); font-weight: 500; }
.hero-tagline-badge { font-size: 1.1rem; }
.tagline-section { padding: 2rem 0; text-align: center; }
.tagline-section .hero-tagline { justify-content: center; }

/* === Search Bar === */
.search-bar {
    display: flex;
    align-items: center;
    max-width: 620px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    padding: 0.35rem 0.35rem 0.35rem 0;
}
.search-bar input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    color: var(--text);
    min-width: 0;
    background: transparent;
    border-radius: 50px 0 0 50px;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar-locate {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--dark);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition);
    border-left: 1px solid var(--border);
}
.search-bar-locate svg { color: var(--primary); flex-shrink: 0; }
.search-bar-locate:hover { color: var(--primary); }
.search-bar-locate.locating { animation: pulse-locate 1s ease infinite; }
@keyframes pulse-locate { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.search-bar-submit {
    border-radius: 50px !important;
    padding: 0.7rem 1.5rem !important;
    font-size: 0.92rem !important;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-bar-sm { max-width: 620px; margin: 1rem auto 0; }

/* === USP Bar === */
.usp-bar { padding: 2.5rem 0; background: var(--dark); }
.usp-bar-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.usp-bar-item { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.92); font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.usp-bar-check { display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; background: var(--primary); color: #fff; border-radius: 50%; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

/* === Features === */
.features { padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* === CTA === */
.cta-section { padding: 3rem 0; }
.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
}
.cta-card h2 { margin-bottom: 0.75rem; font-size: 1.75rem; }
.cta-card p { margin-bottom: 1.5rem; opacity: 0.9; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-card .btn { background: var(--white); color: var(--primary); }
.cta-card .btn:hover { background: var(--primary-light); }

/* === Page Header === */
.page-header {
    background: var(--dark);
    color: var(--white);
    padding: 3.5rem 0 3rem;
    text-align: center;
}
.page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.7); }

/* === Restaurant Grid === */
.restaurant-list { padding: 3rem 0; }
.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

.restaurant-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
    border: 1px solid var(--border);
}
.restaurant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.restaurant-card-body { padding: 1.5rem; }
.restaurant-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.restaurant-city { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.restaurant-address { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }

/* === Restaurant Page === */
.restaurant-hero { background: var(--dark); color: var(--white); padding: 3rem 0; }
.restaurant-header h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.restaurant-desc { margin-top: 0.5rem; color: rgba(255,255,255,0.8); max-width: 600px; }

.registered-badge {
    display: inline-block;
    font-size: 0.55em;
    font-weight: 600;
    background: #16a34a;
    color: #fff;
    padding: 0.2em 0.7em;
    border-radius: 50px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}
.unregistered-badge {
    display: inline-block;
    font-size: 0.55em;
    font-weight: 500;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 0.2em 0.7em;
    border-radius: 50px;
    vertical-align: middle;
}
.disclaimer-banner {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.disclaimer-banner a { color: #664d03; font-weight: 600; text-decoration: underline; }
.disclaimer-info { background: #e8f4fd; color: #1e5f8a; border-color: #b8daef; }
.disclaimer-info a { color: #1a4d73; }
.disclaimer-warning { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
#restaurantList .index-card-registered {
    border-left: 3px solid var(--primary);
    background: #fff;
}
#restaurantList .preview-card:not(.index-card-registered) {
    background: #fafafa;
    border-color: #e8e8e8;
}
#restaurantList .preview-card:not(.index-card-registered) h3 {
    color: var(--text-muted);
}
.partner-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6em;
    font-weight: 700;
    color: #fff;
    background: #16a34a;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    vertical-align: middle;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}
.index-notice {
    display: block;
    padding: 0.6rem 1rem;
    background: #f0faf3;
    border: 1px solid #d0e9d8;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #2d5a3f;
    margin-bottom: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.partner-check-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: #16a34a;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.restaurant-rating-stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: -1px; }
.restaurant-rating-number { font-weight: 700; font-size: 1.1rem; color: var(--white); }
.restaurant-rating-count { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.restaurant-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.restaurant-price-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.restaurant-price-euros { font-size: 1rem; font-weight: 700; }
.restaurant-price-euros .price-active { color: var(--white); }
.restaurant-price-euros .price-inactive { color: rgba(255,255,255,0.25); }
.restaurant-price-text { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.restaurant-cheapest {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.restaurant-cheapest-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.restaurant-cheapest-price { font-size: 1.1rem; font-weight: 700; color: #f59e0b; }

/* Info Grid */
.restaurant-info-section { padding: 2rem 0; }
.restaurant-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--dark); }
.info-card-subtitle { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Contact List */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; }
.contact-icon { flex-shrink: 0; width: 1.25rem; text-align: center; }
.contact-list a { color: var(--primary); }
.contact-list a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Order Tags */
.order-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.order-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--cream);
    color: var(--text);
    border: 1px solid var(--border);
}
.order-tag-icon { font-size: 0.9rem; }
.delivery-details { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.delivery-details p { font-size: 0.9rem; color: var(--text-muted); margin: 0.2rem 0; }

/* Dashboard delivery options */
.dash-delivery-options { margin-top: 0.5rem; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.form-section-title { font-size: 0.95rem; font-weight: 600; margin: 1.5rem 0 0.5rem 0; }
.form-section-title:first-child { margin-top: 0; }
.form-section-desc { font-size: 0.85rem; color: var(--text-muted); margin: -0.5rem 0 0.75rem; }
.dash-payment-options { margin-top: 0.5rem; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.payment-options-list { display: flex; flex-direction: column; gap: 0.5rem; }
.payment-option-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--transition); }
.payment-option-row:hover { border-color: var(--primary); }
.payment-option-row input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.payment-option-info { flex: 1; }
.payment-option-info strong { display: block; font-size: 0.9rem; }
.payment-option-info span { font-size: 0.8rem; color: var(--text-muted); }
.payment-commission-badge { flex-shrink: 0; background: #fef3c7; color: #92400e; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 50px; align-self: center; }
.payment-free-badge { flex-shrink: 0; background: #d1fae5; color: #065f46; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 50px; align-self: center; }

/* === Menu === */
.menu-section { padding: 3rem 0; }
.menu-section h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.menu-category { margin-bottom: 2rem; }
.menu-category h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); }

.menu-items { display: flex; flex-direction: column; gap: 0.5rem; }
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.menu-item-info { flex: 1; }
.menu-item-name { font-weight: 600; display: block; }
.menu-item-desc { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 0.15rem; }
.menu-item-right { display: flex; align-items: center; gap: 0.5rem; }
.menu-item-price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.menu-item-orderable { cursor: pointer; transition: background 0.15s; border-left: 3px solid var(--primary); padding-left: 0.75rem; }
.menu-item-orderable:hover { background: var(--primary-light); }
.btn-add-cart { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--primary); color: #fff; font-size: 1.2rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; box-shadow: 0 2px 6px rgba(222,54,25,0.25); }
.btn-add-cart:hover { background: var(--primary-dark); transform: scale(1.1); }
.menu-item-fantasy { text-decoration: none; color: var(--text); background: #f0faf3; border-bottom: 1px solid #a3d9b1; border-left: 3px solid #1a7a35; padding: 0.75rem 0.75rem; cursor: pointer; transition: background var(--transition); }
.menu-item-fantasy:hover { background: #e0f5e6; }
.menu-item-fantasy .menu-item-name { color: #1a7a35; font-weight: 700; }
.btn-fantasy-arrow { font-size: 1.2rem; font-weight: 700; color: #1a7a35; }
.menu-order-banner { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; background: #f0faf3; border: 1px solid #a3d9b1; border-radius: var(--radius); margin-bottom: 1.5rem; color: var(--text); }
.menu-order-banner-icon { font-size: 1.5rem; }
.menu-order-banner strong { display: block; font-size: 0.95rem; color: #1a7a35; }
.menu-order-banner span { font-size: 0.85rem; color: var(--text-muted); }

/* Pizza builder */
.pizza-builder-section { padding: 2rem 0; }
.pizza-builder-section h2 { margin-bottom: 0.25rem; }
.pizza-builder-subtitle { color: var(--text-muted); margin-bottom: 1.25rem; }
.pizza-builder-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.pizza-builder-step { margin-bottom: 1.5rem; }
.pizza-builder-step h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--dark); }
.pizza-size-options { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pizza-size-option { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 1.25rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color var(--transition), background var(--transition); min-width: 100px; text-align: center; }
.pizza-size-option:hover { border-color: var(--primary); }
.pizza-size-option.selected { border-color: var(--primary); background: var(--primary-light); }
.pizza-size-option input { display: none; }
.pizza-size-name { font-weight: 600; font-size: 0.95rem; }
.pizza-size-price { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.pizza-topping-cat-title { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); margin: 0.75rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.03em; }
.pizza-topping-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pizza-topping-option { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; border: 1px solid var(--border); border-radius: 50px; cursor: pointer; font-size: 0.88rem; transition: all var(--transition); user-select: none; }
.pizza-topping-option:hover { border-color: var(--primary); }
.pizza-topping-option.selected { border-color: var(--primary); background: var(--primary-light); }
.pizza-topping-option input { display: none; }
.pizza-topping-name { font-weight: 500; }
.pizza-topping-price { font-size: 0.78rem; color: var(--text-muted); }
.pizza-topping-free { color: #16a34a; }
.pizza-builder-summary { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); }
.pizza-builder-total { font-size: 1.1rem; font-weight: 700; }
.pizza-builder-total span:last-child { color: var(--primary); margin-left: 0.5rem; }

/* Dashboard pizza builder */
.pizza-builder-list { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; }
.pizza-builder-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pizza-builder-row .pizza-builder-name { flex: 1; font-weight: 500; font-size: 0.9rem; }
.pizza-builder-row .pizza-builder-price { font-size: 0.85rem; color: var(--text-muted); }
.pizza-builder-add-form { margin-top: 0.5rem; }
.pizza-topping-group { margin-bottom: 0.75rem; }
.pizza-topping-group h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.03em; }

@media (max-width: 600px) {
    .pizza-size-options { flex-direction: column; }
    .pizza-size-option { flex-direction: row; justify-content: space-between; min-width: 0; }
}

/* Opening hours display */
.opening-hours-list { display: flex; flex-direction: column; gap: 0; }
.oh-row { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0.5rem; font-size: 0.88rem; border-radius: var(--radius-sm); }
.oh-row:nth-child(odd) { background: var(--bg); }
.oh-row-current { font-weight: 700; background: #fef8f0 !important; }
.oh-day { width: 28px; font-weight: 600; color: var(--text-muted); }
.oh-row-current .oh-day { color: var(--primary); }
.oh-time { color: var(--text); font-variant-numeric: tabular-nums; }
.oh-closed { color: var(--text-muted); font-size: 0.82rem; }

/* === Cart === */
.cart-float { position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); right: 1.5rem; z-index: 1200; }
.cart-float-toggle { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.5rem; background: var(--primary); color: #fff; border: none; border-radius: 50px; font-size: 1.05rem; font-weight: 600; cursor: pointer; box-shadow: 0 6px 24px rgba(222,54,25,0.35); transition: transform 0.15s, box-shadow 0.15s; }
.cart-float-toggle:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(222,54,25,0.45); }
.cart-icon { font-size: 1.3rem; }
.cart-badge { background: #fff; color: var(--primary); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }
.cart-total-preview { font-size: 0.95rem; }

.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; overflow-y: auto; background: var(--white); box-shadow: -8px 0 48px rgba(0,0,0,0.18); border-left: 1px solid var(--border); display: none; transform: translateX(100%); }
.cart-panel.open { display: block; transform: translateX(0); animation: cartSlideIn 0.25s ease-out; }
@keyframes cartSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 1; }
.cart-panel-header h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.cart-restaurant-name { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-top: 0.1rem; }
.cart-panel-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); padding: 0.2rem; transition: color var(--transition); }
.cart-panel-close:hover { color: var(--text); }
.cart-items { padding: 0.75rem 1.5rem; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid #f0ebe2; }
.cart-item-row:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; font-size: 0.92rem; display: block; }
.cart-item-price { font-size: 0.85rem; color: var(--text-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 0.5rem; }
.cart-qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background var(--transition), border-color var(--transition); }
.cart-qty-btn:hover { background: var(--border); border-color: var(--text-muted); }
.cart-qty { font-weight: 600; font-size: 0.95rem; min-width: 22px; text-align: center; }
.cart-summary { padding: 0.85rem 1.5rem; border-top: 1px solid var(--border); background: #fafaf7; }
.cart-summary-line { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 0.25rem 0; }
.cart-summary-total { font-weight: 700; font-size: 1.05rem; padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.25rem; }
.cart-discount-line { color: #16a34a; }
.cart-order-form { padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.cart-form-group { margin-bottom: 0.75rem; }
.cart-form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text); }
.cart-form-group input, .cart-form-group select { width: 100%; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; transition: border-color var(--transition), box-shadow var(--transition); }
.cart-form-group input:focus, .cart-form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(222,54,25,0.1); }
.cart-form-hint { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.btn-block { width: 100%; padding: 0.65rem; font-size: 1rem; }
.cart-error { margin-top: 0.5rem; padding: 0.6rem 0.75rem; background: #fee2e2; color: #b91c1c; border-radius: var(--radius-sm); font-size: 0.85rem; }
.cart-closed-msg { padding: 1.25rem 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 480px) {
    .cart-panel { width: 100vw; }
    .cart-float { bottom: 1rem; right: 0.75rem; }
}

/* === Order Status Page === */
.order-status-section { padding: 2rem 0 3rem; }
.order-status-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; max-width: 700px; margin: 0 auto; }
.order-status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.order-status-badge { padding: 0.35rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-accepted { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-completed { background: #e0e7ff; color: #3730a3; }
.order-status-time { color: var(--text-muted); font-size: 0.9rem; }
.order-status-msg { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.95rem; }
.order-status-msg-pending { background: #fef3c7; color: #92400e; }
.order-status-msg-accepted { background: #d1fae5; color: #065f46; }
.order-status-msg-rejected { background: #fee2e2; color: #991b1b; }
.order-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.order-detail-group h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.order-detail-group p { font-size: 0.9rem; margin: 0.2rem 0; }
.order-items-list { margin-bottom: 0.75rem; }
.order-item-line { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.2rem 0; }
.order-totals { border-top: 1px solid var(--border); padding-top: 0.5rem; }
.order-total-line { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.15rem 0; }
.order-total-final { font-weight: 700; font-size: 1rem; }
.order-contact { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.order-restaurant-name { color: var(--text-muted); margin-top: 0.25rem; }
@media (max-width: 600px) { .order-details-grid { grid-template-columns: 1fr; } }

/* === Dashboard Orders & Coupons === */
.dash-tab-icon { animation: notif-pulse 2s ease-in-out infinite; display: inline-block; }
@keyframes notif-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.order-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 0.75rem; }
.order-card-pending { border-left: 3px solid #f59e0b; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.order-card-time { color: var(--text-muted); font-size: 0.85rem; margin-left: 0.5rem; }
.order-card-type { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.1rem 0.5rem; font-size: 0.8rem; margin-left: 0.5rem; }
.order-card-payment { background: #f0faf3; border: 1px solid #c6e9d0; border-radius: var(--radius-sm); padding: 0.1rem 0.5rem; font-size: 0.8rem; margin-left: 0.25rem; color: #2d7a4f; }
.order-card-total { font-weight: 700; font-size: 1.1rem; }
.order-delivery-banner {
    background: #fef3e2;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.order-delivery-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
}
.order-delivery-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.order-delivery-label { font-size: 0.75rem; font-weight: 600; color: #92400e; text-transform: uppercase; letter-spacing: 0.03em; }
.order-delivery-address { font-size: 1rem; font-weight: 700; color: #78350f; }
.order-delivery-map-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    background: rgba(37,99,235,0.08);
    flex-shrink: 0;
}
.order-delivery-map-link:hover { background: rgba(37,99,235,0.15); }
.order-delivery-minimap {
    height: 140px;
    background: #e5e1d6;
}
.order-card-notes { color: var(--primary-dark); font-style: italic; }
.order-card-customer { font-size: 0.9rem; margin-bottom: 0.5rem; }
.order-card-customer p { margin: 0.15rem 0; }
.order-card-items { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.order-card-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.2rem 0.5rem; font-size: 0.8rem; }
.order-card-actions { display: flex; gap: 0.5rem; }
.orders-history { display: flex; flex-direction: column; gap: 0.35rem; }
.order-history-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; flex-wrap: wrap; }
.order-history-code { font-weight: 600; }
.order-history-name { flex: 1; }
.order-history-total { font-weight: 600; }
.order-history-time { color: var(--text-muted); font-size: 0.8rem; }

/* Archive */
.archive-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.archive-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.archive-table th { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 2px solid var(--border); font-weight: 600; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.archive-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.archive-table tbody tr:hover { background: var(--bg); }
.archive-pagination { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 1.5rem; justify-content: center; }
.archive-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.archive-filter { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; flex: 1; }
.archive-filter label { font-size: 0.85rem; color: var(--text-muted); }
.archive-filter input[type="date"] { padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }

/* Balance cards */
.balance-cards { display: flex; gap: 1rem; margin: 1rem 0; flex-wrap: wrap; }
.balance-card { flex: 1; min-width: 180px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; text-align: center; }
.balance-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.balance-amount { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); }

/* === Tablet / Pad Optimization === */
@media (min-width: 769px) and (max-width: 1024px) {
    .order-card { padding: 1.25rem; }
    .order-card-header { font-size: 1rem; }
    .order-card-total { font-size: 1.3rem; }
    .order-card-customer { font-size: 1rem; }
    .order-card-item { font-size: 0.9rem; padding: 0.3rem 0.6rem; }
    .order-card-actions .btn { font-size: 1rem; padding: 0.65rem 1.5rem; min-height: 44px; }
    .archive-table td, .archive-table th { padding: 0.75rem 0.5rem; }
    .btn-sm { min-height: 44px; min-width: 44px; padding: 0.5rem 1rem; }
}

/* === Map === */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; }
.map-page { padding: 2rem 0 3rem; }
.map-page-full { margin: 0; }
.restaurant-map-section { padding: 2rem 0 3rem; }
.restaurant-map-section h2 { margin-bottom: 1rem; }

/* (order options moved to order-tags in info card) */

/* === Forms === */
.form-section { padding: 3rem 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
    color: var(--text);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* === Registration Wizard === */
.reg-hero { padding: 2.5rem 0 1.5rem; text-align: center; }
.reg-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.reg-hero p { color: var(--text-muted); font-size: 1.05rem; }
.reg-section { padding: 0 0 3rem; }
.reg-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 2px 20px rgba(84,39,0,0.06), 0 8px 40px rgba(84,39,0,0.04);
}
.reg-success { text-align: center; padding: 2rem 0; }
.reg-success-icon { margin-bottom: 1rem; }
.reg-success h2 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #16a34a; }
.reg-success p { color: var(--text-muted); }

/* Progress bar */
.reg-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}
.reg-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.reg-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eae5da;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.reg-progress-step.active .reg-progress-dot {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}
.reg-progress-step.done .reg-progress-dot {
    background: #16a34a;
    color: #fff;
}
.reg-progress-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    max-width: 80px;
    transition: color 0.3s ease;
}
.reg-progress-step.active .reg-progress-label { color: var(--primary); }
.reg-progress-step.done .reg-progress-label { color: #16a34a; }
.reg-progress-line {
    flex: 1;
    height: 3px;
    background: #eae5da;
    min-width: 24px;
    margin: 0 0.25rem;
    margin-bottom: 1.4rem;
    border-radius: 3px;
    transition: background 0.3s ease;
}
.reg-progress-line.active { background: #16a34a; }

/* Steps */
.reg-step { display: none; }
.reg-step.active { display: block; animation: regFadeIn 0.3s ease; }
@keyframes regFadeIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.reg-step-header { margin-bottom: 1.75rem; }
.reg-step-header h2 { font-size: 1.25rem; margin-bottom: 0.3rem; color: var(--dark); }
.reg-step-header p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.reg-divider-line { height: 1px; background: var(--border); margin: 0.5rem 0 1.5rem; }

/* Claim box */
.reg-claim-box { margin-bottom: 1rem; }
.reg-claim-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--dark);
    margin-bottom: 0.6rem;
}
.reg-claim-header svg { color: var(--primary); flex-shrink: 0; }

/* Hours grid */
.reg-hours-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.reg-hours-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: #faf8f4;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: border-color var(--transition);
}
.reg-hours-row:hover { border-color: var(--border); }
.reg-hours-day { font-weight: 600; font-size: 0.9rem; min-width: 100px; color: var(--dark); }
.reg-hours-times { display: flex; align-items: center; gap: 0.4rem; flex: 1; }
.reg-hours-times input[type="time"] {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text);
    width: 110px;
}
.reg-hours-times input[type="time"]:focus { outline: none; border-color: var(--primary); }
.reg-hours-sep { color: var(--text-muted); font-size: 0.9rem; }
.reg-hours-closed { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--text-muted); cursor: pointer; white-space: nowrap; margin: 0; }
.reg-hours-closed input { cursor: pointer; }

/* Order method cards */
.reg-order-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.reg-method-card { cursor: pointer; }
.reg-method-card input { display: none; }
.reg-method-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.25rem 0.75rem;
    background: #faf8f4;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s ease;
}
.reg-method-inner svg { color: var(--text-muted); transition: color 0.2s ease; }
.reg-method-inner strong { font-size: 0.9rem; color: var(--dark); }
.reg-method-inner span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }
.reg-method-card input:checked + .reg-method-inner {
    border-color: var(--primary);
    background: var(--primary-light);
}
.reg-method-card input:checked + .reg-method-inner svg { color: var(--primary); }
.reg-method-card:hover .reg-method-inner { border-color: var(--primary); }

.reg-delivery-details {
    background: #faf8f4;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}
.reg-delivery-details .form-row { margin-bottom: 0; }
.reg-delivery-details .form-group { margin-bottom: 0; }

.reg-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    background: #e8f4fd;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #1e5f8a;
    line-height: 1.5;
}
.reg-summary-note svg { flex-shrink: 0; margin-top: 0.1rem; color: #1e5f8a; }

/* Step 5: Terms & Stripe */
.reg-terms-info { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.reg-terms-card {
    background: #f9f7f2;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}
.reg-terms-card strong { display: block; font-size: 0.95rem; color: var(--dark); margin-bottom: 0.25rem; }
.reg-terms-card p { font-size: 0.88rem; color: var(--text); line-height: 1.5; margin: 0; }
.reg-stripe-toggle { margin-bottom: 1.5rem; }
.reg-toggle-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.reg-toggle-card:has(input:checked) {
    border-color: var(--primary);
    background: #fef7f5;
}
.reg-toggle-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.reg-toggle-inner { display: flex; flex-direction: column; gap: 0.2rem; }
.reg-toggle-inner strong { font-size: 0.95rem; color: var(--dark); }
.reg-toggle-inner span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.form-hint { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.spinner-small { display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Analytics dashboard */
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.analytics-card { background: var(--background); border-radius: 8px; padding: 1.25rem; text-align: center; border: 1px solid var(--border); }
.analytics-card-label { font-size: 0.8rem; color: var(--text); opacity: 0.7; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.analytics-card-value { font-size: 1.6rem; font-weight: 700; color: var(--dark); }
.analytics-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.analytics-table th, .analytics-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.analytics-table th { font-weight: 600; color: var(--dark); background: var(--background); }
.analytics-type-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.9rem; }
.analytics-type-row span:first-child { min-width: 120px; }
.analytics-type-row span:last-child { min-width: 40px; text-align: right; font-weight: 600; }
.analytics-bar { flex: 1; height: 20px; background: var(--border); border-radius: 10px; overflow: hidden; }
.analytics-bar-fill { height: 100%; background: var(--primary); border-radius: 10px; transition: width 0.5s ease; }

/* Nav buttons */
.reg-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #f0ece3; }
.reg-nav-back { display: flex; align-items: center; gap: 0.35rem; }
.reg-nav-next, .reg-nav-submit { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.reg-error-msg {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid #fecaca;
}

.register-existing { margin-bottom: 1.5rem; }
.register-existing h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.register-existing-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.claim-search-wrap { position: relative; }
.claim-search-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
}
.claim-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.claim-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}
.claim-dropdown.open { display: block; }
.claim-option {
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-bottom: 1px solid #f0ece3;
}
.claim-option:last-child { border-bottom: none; }
.claim-option:hover { background: var(--primary-light); }
.claim-option-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.claim-option-addr { font-size: 0.8rem; color: var(--text-muted); }
.register-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.register-divider::before, .register-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* === Alerts === */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* === Login === */
.login-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.btn-block { width: 100%; }
.login-register-link { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.login-register-link a { color: var(--primary); font-weight: 500; }

/* === Feedback === */
.feedback-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.feedback-intro { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.optional { color: var(--text-muted); font-weight: 400; font-size: 0.85em; }

/* === Dashboard Sidebar Layout === */
:root {
    --sidebar-width: 250px;
    --sidebar-bg: var(--white);
    --sidebar-hover: var(--bg);
    --sidebar-text: var(--text-muted);
    --sidebar-text-active: var(--text);
    --sidebar-border: var(--border);
}

body.is-dashboard .navbar,
body.is-dashboard .footer { display: none; }
body.is-dashboard { background: var(--bg); }

/* Mobile top bar */
.dash-mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1001;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
}
.dash-mobile-title { color: var(--text); font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.dash-hamburger { background: none; border: none; cursor: pointer; padding: 0.5rem; display: flex; flex-direction: column; gap: 5px; width: 36px; height: 36px; justify-content: center; align-items: center; }
.dash-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }

/* Sidebar overlay */
.dash-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 1002; opacity: 0; transition: opacity 0.3s ease; }
.dash-sidebar-overlay.open { display: block; opacity: 1; }

/* Sidebar */
.dash-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    z-index: 1003;
    display: flex; flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 1px 0 4px rgba(84,39,0,0.04);
}

/* Sidebar status toggle */
.dash-sidebar-status { padding: 1rem 1.25rem; border-bottom: 1px solid var(--sidebar-border); }
.dash-sidebar-status-row { display: flex; align-items: center; gap: 0.4rem; }

/* Info icon with tooltip */
.dash-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    color: var(--text-muted);
}
.dash-info-icon svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dash-info-icon:hover { color: var(--text); }
.dash-info-tooltip {
    display: none;
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    line-height: 1.4;
}
.dash-info-icon:hover .dash-info-tooltip,
.dash-info-icon:focus .dash-info-tooltip { display: block; }

/* Toggle switch */
.dash-toggle-form { margin: 0; flex-shrink: 0; }
.dash-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.dash-toggle.toggle-on { color: #155724; }
.dash-toggle.toggle-off { color: #721c24; }
.dash-toggle-label { white-space: nowrap; }
.dash-toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.toggle-on .dash-toggle-track { background: #22c55e; }
.toggle-off .dash-toggle-track { background: #d1d5db; }
.dash-toggle-knob {
    position: absolute;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: left 0.2s ease;
}
.toggle-on .dash-toggle-knob { left: 22px; }
.toggle-off .dash-toggle-knob { left: 2px; }
.dash-toggle:hover .dash-toggle-track { filter: brightness(0.95); }

/* Mobile toggle (compact) */
.dash-toggle-form-mobile .dash-toggle-label { display: none; }

/* Sidebar nav */
.dash-sidebar-nav { flex: 1; padding: 0.5rem 0; overflow-y: auto; overflow-x: hidden; }
.sidebar-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1.25rem; color: var(--sidebar-text);
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: all 0.15s ease; position: relative;
    white-space: nowrap; border-left: 3px solid transparent;
}
.sidebar-link:hover { color: var(--sidebar-text-active); background: var(--sidebar-hover); }
.sidebar-link.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); font-weight: 600; }
.sidebar-link-icon { width: 24px; min-width: 24px; height: 20px; display: flex; align-items: center; justify-content: center; }
.sidebar-link-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar-link-text { overflow: hidden; text-overflow: ellipsis; }

/* Sidebar badge */
.sidebar-badge { background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 10px; line-height: 1; min-width: 18px; text-align: center; }

/* Sidebar bottom */
.dash-sidebar-bottom { border-top: 1px solid var(--sidebar-border); padding: 0.5rem 0; }
.sidebar-link-secondary { font-size: 0.85rem; }

/* Sidebar language selector */
.dash-sidebar-lang { padding: 0.5rem 0.75rem; }
.dash-sidebar-lang-btn {
    display: flex; align-items: center; gap: 0.75rem; width: 100%;
    padding: 0.55rem 0.5rem; background: none; border: none;
    color: var(--sidebar-text); cursor: pointer; font-size: 0.85rem;
    border-radius: var(--radius-sm); transition: all 0.15s ease; white-space: nowrap;
}
.dash-sidebar-lang-btn:hover { color: var(--sidebar-text-active); background: var(--sidebar-hover); }
.dash-sidebar-lang-btn svg { width: 20px; height: 20px; min-width: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-sidebar-lang-dropdown { display: none; padding: 0.25rem 0; }
.dash-sidebar-lang-dropdown.open { display: block; }
.dash-sidebar-lang-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.75rem 0.45rem 2.75rem; color: var(--sidebar-text); text-decoration: none; font-size: 0.8rem; transition: all 0.15s ease; white-space: nowrap; }
.dash-sidebar-lang-option:hover { color: var(--sidebar-text-active); background: var(--sidebar-hover); }
.dash-sidebar-lang-option.active { color: var(--primary); font-weight: 600; }
.dash-sidebar-lang-code { font-weight: 700; text-transform: uppercase; min-width: 24px; }

/* Main content */
.dash-main { margin-left: var(--sidebar-width); min-height: 100vh; background: var(--bg); }
.dash-content { max-width: 960px; margin: 0 auto; padding: 2rem 2rem 3rem; }

/* Dashboard cards */
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.dash-card h2 { margin-bottom: 0.75rem; }
.dash-card h2 + p, .dash-card h2 + .form-section-desc { margin-top: 0; }
.dash-notice { background: #fff3cd; color: #856404; border: 1px solid #ffc107; border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.9rem; }
.dash-tab-content { display: none; }
.dash-tab-content.active { display: block; }

/* Menu categories */
.dash-menu-category { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.dash-menu-category:last-of-type { border-bottom: none; }
.dash-cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.dash-cat-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; }
.dash-cat-actions { display: flex; gap: 0.25rem; }
.dash-empty-cat { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin: 0.5rem 0; }

/* Menu item rows */
.dash-menu-item-row { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.4rem; }
.dash-menu-item-form { flex: 1; }
.dash-menu-delete-form { flex-shrink: 0; }
.dash-menu-item-fields { display: flex; gap: 0.35rem; align-items: center; }
.dash-menu-item-fields .input-name { flex: 2; }
.dash-menu-item-fields .input-desc { flex: 2; }
.input-price-wrap { position: relative; flex-shrink: 0; width: 90px; }
.input-price-wrap .input-price { width: 100%; padding-right: 1.5rem; }
.input-price-unit { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; pointer-events: none; }
.btn-delete { background: none; border: none; color: #dc3545; cursor: pointer; font-size: 0.9rem; padding: 0.25rem; }
.btn-delete:hover { color: #a71d2a; }

/* Add item form */
.dash-menu-add-form { margin-top: 0.5rem; }
.dash-menu-add-fields { opacity: 0.6; transition: opacity 0.2s; }
.dash-menu-add-fields:focus-within { opacity: 1; }

/* Add category */
.dash-add-category { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--border); }
.dash-add-category h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.dash-add-cat-row { display: flex; gap: 0.5rem; align-items: center; }
.dash-cat-select { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; flex: 1; max-width: 300px; }
.dash-all-cats-added { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* Opening hours */
.hours-table { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.hours-row { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0.75rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.hours-row-closed { opacity: 0.5; }
.hours-day { font-weight: 600; font-size: 0.9rem; width: 110px; flex-shrink: 0; }
.hours-inputs { display: flex; align-items: center; gap: 0.35rem; }
.hours-time { padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; width: 110px; }
.hours-sep { color: var(--text-muted); font-size: 0.9rem; }
.hours-closed-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; margin-left: auto; }
.hours-closed-label input[type="checkbox"] { margin: 0; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: stretch; }
.checkbox-label { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; cursor: pointer; padding: 0.45rem 0.85rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); white-space: nowrap; line-height: 1.2; }
.checkbox-label input[type="checkbox"] { margin: 0; flex-shrink: 0; width: 1rem; height: 1rem; }

@media (max-width: 768px) {
    .dash-mobile-topbar { display: flex; }
    .dash-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-main { margin-left: 0; padding-top: 56px; }
    .dash-content { padding: 1.25rem 1rem 3rem; }
    body.dash-sidebar-open { overflow: hidden; }
    .dash-menu-item-fields { flex-wrap: wrap; }
    .dash-menu-item-fields .input-desc { display: none; }
    .hours-row { flex-wrap: wrap; gap: 0.5rem; }
    .hours-day { width: 100%; }
    .hours-closed-label { margin-left: 0; }
}

/* === Content Pages === */
.content-section { padding: 3rem 0; }
.content-section h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.content-section h2:first-child { margin-top: 0; }
.content-section p { margin-bottom: 1rem; color: var(--text); }
.content-section ul { margin: 0.5rem 0 1rem 1.5rem; }
.content-section li { margin-bottom: 0.35rem; }

/* About grid */
.about-audience { padding: 3rem 0; background: linear-gradient(180deg, var(--bg) 0%, #ebe6d8 100%); }
.about-audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 960px; margin: 0 auto; }
.audience-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(84,39,0,0.06), 0 8px 32px rgba(84,39,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(84,39,0,0.1), 0 16px 48px rgba(84,39,0,0.06); }
.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.audience-card-restaurant::before { background: linear-gradient(90deg, var(--primary), #ff6b4a); }
.audience-card-customer::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.audience-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.audience-card-restaurant .audience-card-icon { background: var(--primary-light); color: var(--primary); }
.audience-card-customer .audience-card-icon { background: #eff3ff; color: #2563eb; }
.audience-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.35rem; color: var(--dark); }
.audience-card-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; }
.audience-features { width: 100%; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; flex: 1; }
.audience-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.audience-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.audience-feature-icon-alt { background: #eff3ff; color: #2563eb; }
.audience-feature div { min-width: 0; }
.audience-feature strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--dark); margin-bottom: 0.1rem; }
.audience-feature p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; margin: 0; }
.audience-card-cta { margin-top: auto; align-self: stretch; text-align: center; }
.about-example { background: var(--primary-light); padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.9rem; border-left: 3px solid var(--primary); }
.content-section h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; }
.faq-item strong { display: block; margin-bottom: 0.35rem; color: var(--dark); }
.faq-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* === FAQ Accordion === */
.faq-accordion { display: flex; flex-direction: column; gap: 0; }
.faq-dropdown { border: 1px solid var(--border); border-bottom: none; background: var(--white); }
.faq-dropdown:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.faq-dropdown:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.faq-dropdown:only-child { border-radius: var(--radius-sm); border-bottom: 1px solid var(--border); }
.faq-dropdown summary { padding: 0.85rem 1.15rem; cursor: pointer; font-weight: 500; color: var(--dark); font-size: 0.95rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-dropdown summary::-webkit-details-marker { display: none; }
.faq-dropdown summary::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); flex-shrink: 0; margin-left: 1rem; transition: var(--transition); }
.faq-dropdown[open] summary::after { content: '−'; }
.faq-dropdown[open] summary { border-bottom: 1px solid var(--border); }
.faq-dropdown p { padding: 0.85rem 1.15rem; margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* === Contact / Compare === */
.compare-table-wrap { overflow-x: auto; margin: 1.5rem 0 1rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th { text-align: left; padding: 0.75rem 1rem; background: var(--dark); color: var(--white); font-weight: 600; }
.compare-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.compare-row-competitor td { background: #fef2f2; }
.compare-row-pizzanet td { background: #f0fdf4; }
.compare-row-cash td { background: #ecfdf5; }
.compare-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }
.compare-customer { font-size: 0.95rem; margin-top: 0.75rem; color: var(--text); }
.contact-divider { border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* === Admin Panel === */
.admin-restaurant-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; margin-bottom: 1rem; }
.admin-restaurant-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.admin-restaurant-details { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; color: var(--text-muted); }
.admin-restaurant-actions { margin-top: 1rem; display: flex; gap: 0.5rem; }

.admin-feedback-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; margin-bottom: 0.75rem; }
.admin-feedback-unread { border-left: 3px solid var(--primary); }
.admin-feedback-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.admin-feedback-header > div:first-child { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.admin-feedback-actions { display: flex; gap: 0.5rem; align-items: center; }
.admin-feedback-message { font-size: 0.95rem; color: var(--text); line-height: 1.6; }

.admin-filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); }
.admin-filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.admin-filter-label { font-weight: 600; font-size: 0.85rem; color: var(--dark); white-space: nowrap; }
.admin-filter-bar .filter-select { font-size: 0.85rem; padding: 0.35rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
@media (max-width: 768px) {
    .admin-filter-bar { flex-direction: column; align-items: stretch; }
    .admin-filter-group { flex-direction: column; }
}

.admin-restaurants-table { overflow-x: auto; margin-top: 1rem; }
.admin-restaurants-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-restaurants-table th, .admin-restaurants-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-restaurants-table th { font-weight: 600; color: var(--dark); background: var(--bg); white-space: nowrap; }
.admin-restaurants-table tr:hover td { background: var(--primary-light); }
.sortable-th { cursor: pointer; user-select: none; transition: background 0.15s; }
.sortable-th:hover { background: var(--border); }
.sortable-th.sort-active { background: var(--primary-light); color: var(--primary); }
.sort-arrow { font-size: 0.7rem; opacity: 0.7; }

.admin-status-badge { display: inline-block; font-size: 0.8rem; padding: 0.15rem 0.5rem; border-radius: 4px; font-weight: 500; }
.admin-status-pending { background: #fff3cd; color: #856404; }
.admin-status-approved, .admin-status-active { background: #d4edda; color: #155724; }
.admin-status-rejected, .admin-status-inactive { background: #f0f0f0; color: #666; }
.admin-status-listed { background: #dbeafe; color: #1e40af; }

.admin-guide-list { margin: 0.5rem 0 1.5rem 1.25rem; line-height: 1.8; }
.admin-guide-list li { margin-bottom: 0.35rem; font-size: 0.95rem; }
.admin-guide-note { background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.9rem; margin: -0.5rem 0 1.5rem; }

/* Admin analytics */
.admin-analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; text-align: center; }
.admin-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-chart-bar { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 0 0 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.admin-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; position: relative; }
.admin-chart-fill { width: 100%; min-height: 4px; background: var(--primary); border-radius: 3px 3px 0 0; transition: height 0.3s; }
.admin-chart-count { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; }
.admin-chart-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; position: absolute; bottom: -1.3rem; white-space: nowrap; }
.admin-analytics-grid-4 { grid-template-columns: repeat(4, 1fr); }
.admin-analytics-grid-3 { grid-template-columns: repeat(3, 1fr); }
.admin-stat-highlight { border-color: var(--primary); background: linear-gradient(135deg, #fef2f0 0%, var(--bg) 100%); }
.admin-stat-revenue .admin-stat-value { color: #10b981; font-size: 1.4rem; }
.admin-stat-commission .admin-stat-value { color: #f59e0b; font-size: 1.4rem; }
.admin-dual-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.admin-dual-chart-half { min-width: 0; }
.admin-chart-heading { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.75rem; }
.admin-chart-fill-green { background: #10b981; }
.admin-chart-fill-peak { background: #f59e0b; }
.admin-chart-bar-hourly { gap: 2px; }
.admin-chart-bar-hourly .admin-chart-col { min-width: 0; }
.admin-analytics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.admin-analytics-col { min-width: 0; }
.admin-bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.admin-bar-label { font-size: 0.85rem; font-weight: 600; color: var(--dark); min-width: 90px; }
.admin-bar-track { flex: 1; height: 22px; background: var(--bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.admin-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.4s; min-width: 2px; }
.admin-bar-fill-blue { background: #3b82f6; }
.admin-bar-value { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); min-width: 70px; text-align: right; white-space: nowrap; }
@media (max-width: 768px) {
    .admin-analytics-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .admin-analytics-grid-3 { grid-template-columns: 1fr; }
    .admin-dual-chart { grid-template-columns: 1fr; }
    .admin-analytics-row { grid-template-columns: 1fr; }
    .admin-stat-revenue .admin-stat-value, .admin-stat-commission .admin-stat-value { font-size: 1.2rem; }
    .admin-chart-bar-hourly .admin-chart-count { display: none; }
}

/* Payment onboarding */
.payment-onboard-info { background: var(--bg); border-radius: var(--radius-sm); padding: 1.25rem; margin: 1rem 0 1.5rem; }
.payment-onboard-info ol { margin: 0.5rem 0 0 1.25rem; }
.payment-onboard-info li { margin-bottom: 0.25rem; font-size: 0.95rem; }
.payment-onboard-pricing { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.pricing-table { width: 100%; max-width: 400px; border-collapse: collapse; font-size: 0.9rem; }
.pricing-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.pricing-table td:first-child { font-weight: 500; color: var(--dark); }
.pricing-table td:last-child { text-align: right; }

/* Feedback/messages list */
.feedback-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.feedback-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.feedback-unread { border-left: 3px solid var(--primary); background: #fff8f7; }
.feedback-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.feedback-email { font-size: 0.82rem; color: var(--text-muted); }
.feedback-date { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.feedback-message { font-size: 0.92rem; line-height: 1.5; margin: 0; }
.feedback-reply { margin-top: 0.75rem; padding: 0.75rem; background: #f0faf3; border-radius: var(--radius-sm); border-left: 3px solid #16a34a; }
.feedback-reply p { margin: 0.25rem 0; font-size: 0.9rem; }
.feedback-reply-form { margin-top: 0.5rem; }
.feedback-reply-form summary { cursor: pointer; width: fit-content; }

/* Toggle switch */
.toggle-label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.toggle-switch { position: relative; display: inline-block; width: 44px; min-width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 24px; transition: background var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: var(--white); border-radius: 50%; transition: transform var(--transition); }
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Notification settings */
.dash-divider { border-top: 1px solid var(--border); margin: 2rem 0; }
.notification-channels-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.notification-channel-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--transition); }
.notification-channel-row:hover { border-color: var(--primary); }
.notification-channel-row input[type="checkbox"] { margin-top: 0.3rem; }
.notification-channel-info { display: flex; gap: 0.75rem; align-items: flex-start; }
.notification-channel-icon { font-size: 1.25rem; min-width: 1.5rem; text-align: center; }
.notification-channel-info div { display: flex; flex-direction: column; }
.notification-channel-info strong { font-size: 0.95rem; }
.notification-channel-info span { font-size: 0.85rem; color: var(--text-muted); }
.notification-fields { margin-top: 1rem; }
.notification-fields .form-group { margin-bottom: 1rem; }
.form-hint { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }

/* === Ad Slots === */
.ad-slot { display: flex; justify-content: center; padding: 1rem 0; }
.ad-placeholder {
    width: 100%;
    min-height: 60px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.ad-top-bar { background: var(--bg); border-bottom: 1px solid var(--border); }
.ad-top-bar .ad-slot { padding: 0.5rem 0; }
.ad-bottom-bar { background: var(--bg); border-top: 1px solid var(--border); margin-top: 2rem; }
.ad-bottom-bar .ad-slot { padding: 0.5rem 0; }

.ad-leaderboard .ad-placeholder { max-width: 728px; min-height: 90px; }
.ad-banner .ad-placeholder { max-width: 468px; min-height: 60px; }
.ad-rectangle .ad-placeholder { max-width: 300px; min-height: 250px; }
.ad-mobile .ad-placeholder { max-width: 320px; min-height: 50px; }

@media (max-width: 768px) {
    .ad-leaderboard .ad-placeholder,
    .ad-banner .ad-placeholder { max-width: 320px; min-height: 50px; }
}

/* === Empty State === */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1rem; }

/* === Footer === */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
    margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.75rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.9rem; }
.footer-logo-link { display: inline-block; margin-bottom: 0.75rem; }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }
.footer-support { margin-top: 0.5rem; color: rgba(255,255,255,0.65); font-size: 0.85rem; font-style: italic; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; text-align: center; font-size: 0.85rem; }

/* === Language Switcher === */
.lang-switcher { position: relative; margin-left: 0.5rem; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 0.85rem 0.5rem 0.7rem;
    min-height: 44px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-icon { flex-shrink: 0; opacity: 0.6; }
.lang-btn:hover .lang-icon { opacity: 1; }
.lang-chevron { flex-shrink: 0; opacity: 0.4; transition: transform var(--transition); }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-current { max-width: 70px; overflow: hidden; text-overflow: ellipsis; }

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 200;
    padding: 0.5rem;
    min-width: 280px;
}
.lang-switcher.open .lang-dropdown { display: block; }

.lang-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    transition: all var(--transition);
    text-decoration: none;
}
.lang-option:hover { background: var(--primary-light); color: var(--primary); }
.lang-active { background: var(--primary-light); font-weight: 600; }
.lang-active .lang-code { background: var(--primary); color: var(--white); }
.lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--cream);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    color: var(--text-muted);
}
.lang-option:hover .lang-code { background: var(--primary); color: var(--white); }
.lang-name { line-height: 1.2; }

/* === Index (restaurant listing) === */
.index-section { padding: 2rem 0 3rem; }
/* Restaurant index toolbar */
.index-toolbar { margin-bottom: 1rem; }
.index-toolbar-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.index-toolbar-row + .index-toolbar-row { margin-top: 0.5rem; }
.index-chips { display: flex; gap: 0.3rem; flex-wrap: wrap; flex: 1; }
.index-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.index-chip:hover { border-color: var(--primary); color: var(--primary); }
.index-chip.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.index-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.index-filter-pill {
    padding: 0.3rem 1.8rem 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239C7451' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: all 0.15s;
}
.index-filter-pill:hover { border-color: var(--primary); }
.index-filter-pill:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(222,54,25,0.1); }
.index-filter-pill.index-filter-active { border-color: var(--primary); color: var(--primary); background-color: var(--primary-light); }
.index-clear-btn {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: none;
    color: var(--primary);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.index-clear-btn:hover { text-decoration: underline; }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }

/* Legacy filter-select (admin) */
.filter-select {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    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 24 24' fill='none' stroke='%239C7451' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    transition: all var(--transition);
}
.filter-select:hover { border-color: var(--primary); }
.filter-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(222,54,25,0.1); }

/* Index card overrides on preview-card */
.index-card-closed {
    opacity: 0.55;
}
.index-card-closed:hover {
    opacity: 0.85;
}
.index-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.index-card-badge-closed {
    background: #dc2626;
    color: #fff;
}
.index-card-badge-delivery {
    background: #e8f4fd;
    color: #1e5f8a;
    border: 1px solid #b8daef;
    text-transform: none;
    font-weight: 600;
}
.index-card-badge-order {
    background: #ecfdf5;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    text-transform: none;
    font-weight: 600;
}
.tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.tag-open {
    background: #f0faf3;
    color: #2d7a4f;
    border-color: #d0e9d8;
    font-weight: 600;
}
.tag-closed {
    background: #fef0f0;
    color: #b91c1c;
    border-color: #f5d5d5;
    font-weight: 600;
}
.tag-delivery {
    color: #4b6fa0;
    font-weight: 500;
}
.index-card-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.price-active { color: var(--dark); font-weight: 600; }
.price-inactive { color: var(--border); }

/* === Map page (sidebar + map) === */
.map-section { padding: 1.5rem 0 2rem; position: relative; z-index: 1; }
.map-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    height: 65vh;
    min-height: 450px;
    max-height: 650px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.map-sidebar {
    display: flex;
    flex-direction: column;
    background: #fffaf5;
    border-right: 1px solid #f0e0cc;
    overflow: hidden;
}
.map-sidebar-header {
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid #f0e0cc;
    background: linear-gradient(135deg, #fff8f0, #fff5ec);
    flex-shrink: 0;
}
.map-search-label { font-size: 0.78rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.address-search { display: flex; gap: 0.5rem; }
.address-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.address-icon { position: absolute; left: 0.65rem; color: #b0a090; pointer-events: none; }
.address-input {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.1rem;
    border: 1.5px solid #e0d0c0;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.address-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.address-btn { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; padding: 0.55rem 1rem; border-radius: var(--radius); font-weight: 600; }

.map-sidebar-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.map-sidebar-list::-webkit-scrollbar { width: 4px; }
.map-sidebar-list::-webkit-scrollbar-thumb { background: #ddd0c0; border-radius: 10px; }

.map-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 0.5rem 0.75rem 1rem;
    border-bottom: 1px solid #f0e0cc;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition);
    gap: 0.3rem 0.5rem;
    cursor: pointer;
}
.map-card:hover, .map-card-active { background: #fff0e0; }
.map-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-light);
    background: #f5ebe0;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.map-card-link:hover { background: var(--primary); color: #fff; }
.map-card:hover .map-card-link { background: #ecdcc8; }
.map-card-closed { opacity: 0.65; }
.map-card-closed:hover { opacity: 1; }
.map-card-nonpartner { opacity: 0.45; }
.map-card-nonpartner:hover { opacity: 0.85; }
.map-card-nonpartner .map-card-info h3 { color: var(--text-light); }
.map-card-info { flex: 1; min-width: 0; }
.map-card-info h3 { font-size: 0.9rem; margin-bottom: 0.1rem; line-height: 1.3; }
.map-card-info p { font-size: 0.78rem; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.map-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.4rem; width: 100%; }
.map-card-meta .tag { font-size: 0.72rem; padding: 0.1rem 0.4rem; }
.map-card-rating { font-size: 0.82rem; font-weight: 700; color: var(--dark); }
.map-card-rating .rating-stars { color: #f59e0b; }
.map-card-price { font-size: 0.78rem; color: var(--primary); font-weight: 600; }
.map-card-distance {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
}

.map-main { position: relative; z-index: 0; }
.map-canvas { width: 100%; height: 100%; }
.map-canvas .leaflet-tile-pane { filter: saturate(0.85) sepia(0.12) brightness(1.02); }

/* === Frontpage Restaurant Preview === */
.restaurant-preview { padding: 3rem 0; }
.restaurant-preview h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.restaurant-preview .section-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.preview-card {
    position: relative;
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem;
    color: var(--text);
    transition: all var(--transition);
    text-decoration: none;
}
.preview-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.preview-card h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.preview-card-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; min-height: 0; }
.preview-card-city { font-size: 0.82rem; color: var(--text-muted); }
.preview-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 0.6rem; }
.preview-card-price { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.preview-all { text-align: center; margin-top: 1.5rem; }

/* === Mobile === */
@media (max-width: 768px) {
    .navbar-inner { flex-wrap: nowrap; }
    .logo { order: 1; }
    .lang-switcher { order: 2; margin-left: auto; margin-right: 0.5rem; }
    .nav-toggle { order: 3; display: flex; z-index: 1202; position: relative; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 6px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -6px); }

    /* Overlay — hidden by default */
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.2); z-index: 1200; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
    .nav-overlay.active { display: block; animation: navFadeIn 0.25s ease; }

    /* Full-screen menu panel */
    .nav-links {
        display: flex;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
        z-index: 1201;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.1s ease, visibility 0s linear 0.1s;
        will-change: opacity;
        overflow-y: auto;
        order: 4;
        gap: 0;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.1s ease, visibility 0s linear 0s;
    }

    /* Menu logo */
    .nav-menu-logo { display: block; margin-bottom: 0.5rem; }
    .nav-menu-logo a { display: inline-block; }
    .nav-menu-logo-img { height: 72px; width: auto; }

    /* Navigation links */
    .nav-links li { list-style: none; width: 100%; text-align: center; }
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text);
        border-radius: 0;
        letter-spacing: -0.01em;
        transition: color 0.15s ease, background 0.15s ease;
    }
    .nav-links a:hover,
    .nav-links a:active { background: var(--bg); color: var(--primary); }

    /* CTA button at bottom */
    .nav-links li:last-child {
        margin-top: 1.5rem;
        padding: 0 2rem;
        width: 100%;
    }
    .nav-links .btn-nav {
        display: block;
        text-align: center;
        background: var(--primary);
        color: var(--white);
        border-radius: var(--radius);
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 600;
        box-shadow: 0 4px 16px rgba(222, 54, 25, 0.2);
    }
    .nav-links .btn-nav:hover { background: var(--primary-dark); }

    .lang-switcher { position: static; }
    .lang-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius) var(--radius) 0 0;
        padding: 1rem;
        min-width: 0;
        box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    }
    .lang-dropdown-grid { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
    .lang-option { padding: 0.7rem 0.8rem; }

    .lang-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 199;
    }
    .lang-switcher.open .lang-overlay { display: block; }

    /* Disclaimers / notices mobile fix */
    .disclaimer-banner { font-size: 0.8rem; padding: 0.65rem 0.85rem; }
    .index-notice { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
    .dash-notice { font-size: 0.82rem; padding: 0.6rem 0.85rem; }
    .alert { font-size: 0.85rem; word-wrap: break-word; overflow-wrap: break-word; }

    .hero { padding: 2rem 0; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-text { text-align: center; }
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { margin: 0 auto 1.25rem; font-size: 0.95rem; }
    .search-bar-locate-text { display: none; }
    .search-bar-locate { border-left: none; padding: 0.4rem; }
    .search-bar { padding: 0.3rem; }
    .search-bar input { padding: 0.65rem 0.75rem; font-size: 0.92rem; }
    .search-bar-submit { padding: 0.6rem 1rem !important; font-size: 0.85rem !important; }
    .form-row { grid-template-columns: 1fr; }
    .reg-card { padding: 1.5rem 1.25rem; border-radius: 16px; }
    .reg-hero h1 { font-size: 1.5rem; }
    .reg-progress-label { font-size: 0.65rem; max-width: 60px; }
    .reg-progress-dot { width: 30px; height: 30px; font-size: 0.8rem; }
    .reg-hours-row { flex-wrap: wrap; gap: 0.4rem; }
    .reg-hours-day { min-width: 80px; font-size: 0.85rem; }
    .reg-hours-times input[type="time"] { width: 90px; font-size: 0.82rem; padding: 0.35rem 0.4rem; }
    .reg-order-methods { grid-template-columns: 1fr; }
    .reg-method-inner { flex-direction: row; padding: 1rem; gap: 0.75rem; text-align: left; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .restaurant-info-grid { grid-template-columns: 1fr; }

    .index-toolbar-row { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
    .index-toolbar-row::-webkit-scrollbar { display: none; }
    .index-count { display: none; }
    .index-toolbar-filters { gap: 0.35rem; }
    .index-chip { flex-shrink: 0; }
    .index-filter-pill { flex-shrink: 0; }

    .map-layout { grid-template-columns: 1fr; }
    .map-sidebar { max-height: 300px; }
    .map-main { order: -1; }
    .map-canvas { height: 350px; }
    .address-search { flex-direction: column; }
    .address-input-wrap { width: 100%; }
    .address-input { width: 100%; }

    .preview-grid { grid-template-columns: 1fr; }
    .about-audience-grid { grid-template-columns: 1fr; }
    .audience-card { padding: 2rem 1.5rem 1.5rem; border-radius: 16px; }
    .audience-card h3 { font-size: 1.2rem; }
}

/* Checkout page */
.checkout-section { padding: 2rem 0 4rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: start; }
.checkout-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.checkout-summary h3 { margin-bottom: 1rem; }
.checkout-items { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.checkout-item-row { display: flex; justify-content: space-between; font-size: 0.9rem; }
.checkout-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.checkout-payment { min-height: 300px; }
@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
}

/* === Data Deletion Page === */
.deletion-info { margin-bottom: 2.5rem; }
.deletion-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.deletion-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.deletion-card-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; background: #FEF2F0; color: var(--primary); }
.deletion-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--dark); }
.deletion-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.deletion-card li { font-size: 0.9rem; color: var(--text-light); padding-left: 1.25rem; position: relative; }
.deletion-card li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.deletion-form-section { margin-bottom: 2rem; }
.deletion-notice { display: flex; gap: 0.75rem; align-items: flex-start; background: #FFF8E1; border: 1px solid #FFE082; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.deletion-notice svg { flex-shrink: 0; color: #F9A825; margin-top: 2px; }
.deletion-notice p { font-size: 0.875rem; color: #5D4037; margin: 0; }
@media (max-width: 600px) {
    .deletion-cards { grid-template-columns: 1fr; }
}

/* === App Download Banner (Frontpage) === */
.app-banner { padding: 3rem 0; }
.app-banner-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: linear-gradient(135deg, #542700 0%, #7a3d0a 100%);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    color: #fff;
    overflow: hidden;
}
.app-banner-text { flex: 1; }
.app-banner-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
}
.app-banner-text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1.25rem;
    line-height: 1.6;
    max-width: 480px;
}
.app-banner-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.app-banner-store {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.app-banner-store:hover { background: #222; color: #fff; transform: translateY(-1px); }
.app-banner-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.app-banner-link:hover { color: #fff; }
.app-banner-visual {
    flex-shrink: 0;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .app-banner-inner { flex-direction: column; padding: 2rem 1.5rem; text-align: center; gap: 1.5rem; }
    .app-banner-text h2 { font-size: 1.3rem; }
    .app-banner-text p { max-width: none; }
    .app-banner-buttons { justify-content: center; }
}
