/* ============================================================
   QR Menu SaaS — Main Stylesheet
   Colors: Deep Red #C0392B | Gold #F39C12 | Cream #FFF8F0
   ============================================================ */

:root {
    --primary:        #C0392B;
    --primary-dark:   #96281b;
    --primary-light:  #e74c3c;
    --accent:         #F39C12;
    --accent-dark:    #d68910;
    --bg:             #FFF8F0;
    --bg-card:        #ffffff;
    --text:           #2C2C2C;
    --text-muted:     #6B7280;
    --border:         #E8D5C4;
    --sidebar-bg:     #1a1a1a;
    --sidebar-text:   #d1c4b8;
    --sidebar-active: #C0392B;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:         0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
    --shadow-lg:      0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);
    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      16px;
    --sidebar-width:  240px;
    --header-height:  56px;
    --font:           'Inter', system-ui, -apple-system, sans-serif;
    --transition:        .18s ease;
    --transition-fast:   .12s ease;
    --transition-bounce: .22s cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Global focus-visible ────────────────────────────────── */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

/* ── Scrollbars ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #c4b5a8; }

/* ── Keyframe Animations ─────────────────────────────────── */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes progressGrow {
    from { width: 0 !important; }
}
@keyframes spinOnce {
    to { transform: rotate(360deg); }
}

/* ── Typography ─────────────────────────────────────────── */
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-sm      { font-size: .875rem; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* ── Layout ─────────────────────────────────────────────── */
.app-body { display: flex; min-height: 100vh; background: var(--bg); }
.guest-body {
    background: linear-gradient(145deg, #fff5ec 0%, #ffe8d0 40%, #fff5ec 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
    position: relative; overflow: hidden;
}
.guest-body::before {
    content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(192,57,43,.07) 0%, transparent 70%);
    top: -250px; right: -250px; pointer-events: none;
}
.guest-body::after {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(243,156,18,.06) 0%, transparent 70%);
    bottom: -150px; left: -150px; pointer-events: none;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    letter-spacing: -.01em;
}
.sidebar-logo small { font-size: .65rem; font-weight: 400; color: var(--accent); background: rgba(243,156,18,.15); padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--sidebar-text);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .01em;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    margin: 2px 8px;
    border-radius: var(--radius-sm);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item:hover svg { opacity: 1; }
.nav-item.active { background: var(--primary); color: #fff; box-shadow: inset 3px 0 0 rgba(255,255,255,.7); }
.nav-item.active svg { opacity: 1; }

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-info { flex: 1; overflow: hidden; }
.user-name  { font-size: .85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role  { font-size: .75rem; color: var(--text-muted); }
.logout-btn { padding: 6px; color: var(--text-muted); border-radius: var(--radius-sm); transition: background var(--transition); flex-shrink: 0; }
.logout-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.logout-btn svg { width: 18px; height: 18px; }

/* ── Avatar ──────────────────────────────────────────────── */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; flex-shrink: 0; }
.avatar-sm { width: 28px; height: 28px; font-size: .75rem; }
.admin-avatar { background: #2563eb; }
.flex-avatar { display: flex; align-items: center; gap: 8px; }

/* ── Mobile Header ───────────────────────────────────────── */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--sidebar-bg);
    color: #fff;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 99;
}
.menu-toggle {
    display: flex; flex-direction: column; gap: 4px;
    width: 24px; padding: 2px; flex-shrink: 0;
}
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: all .2s; }
.mobile-title { font-weight: 600; font-size: 1rem; }

/* ── Main content ────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 28px;
    max-width: 1200px;
    min-height: 100vh;
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.page-title    { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: .9rem; color: var(--text-muted); margin-top: 2px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title  { font-size: 1rem; font-weight: 600; }
.max-w-lg    { max-width: 560px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }

/* ── Stats Grid ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon-red  { background: linear-gradient(135deg,#fef2f2,#fde4e1); color: var(--primary); }
.stat-icon-blue { background: linear-gradient(135deg,#eff6ff,#dbeafe); color: #2563eb; }
.stat-icon-gold { background: linear-gradient(135deg,#fffbeb,#fef3c7); color: var(--accent-dark); }
.stat-icon-green{ background: linear-gradient(135deg,#f0fdf4,#dcfce7); color: #16a34a; }
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; margin-top: 2px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px;
    font-size: .875rem; font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #fef2f2; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }
.btn-gold { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-gold:hover { background: var(--accent-dark); }
.btn-block { width: 100%; }
.btn-sm  { padding: 6px 12px; font-size: .8rem; }
.btn-xs  { padding: 4px 8px; font-size: .75rem; }
.btn-lg  { padding: 12px 24px; font-size: 1rem; }
.w-full  { width: 100%; }
.hidden  { display: none !important; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b8aaa0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .flex-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 12px; align-items: center; }

.input-password { position: relative; }
.input-password input { padding-right: 40px; }
.toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); padding: 4px; }
.toggle-pw svg { width: 18px; height: 18px; }
.toggle-pw:hover { color: var(--primary); }

/* ── File Upload ─────────────────────────────────────────── */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    color: var(--text-muted);
    font-size: .875rem;
}
.file-upload-area:hover { border-color: var(--primary); background: #fef2f2; color: var(--primary); }
.file-upload-area svg { width: 32px; height: 32px; margin: 0 auto 8px; opacity: .5; }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table thead tr { background: #f9f4ef; }
.table th { padding: 10px 14px; text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:hover { background: #fdf7f2; }
.table-name { font-weight: 500; }
.table-sub  { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.action-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.link-muted { color: var(--text-muted); font-size: .8rem; }
.link-muted:hover { color: var(--primary); }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.badge-red   { background: #fef2f2; color: var(--primary); }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-blue  { background: #eff6ff; color: #2563eb; }
.badge-gold  { background: #fffbeb; color: #b45309; }
.badge-gray  { background: #f3f4f6; color: #6b7280; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: .9rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: fadeSlideDown .2s ease-out;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #16a34a; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: var(--primary); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: var(--accent); }
.alert-close { font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .7; }
.alert-close:hover { opacity: 1; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination ul { display: flex; gap: 6px; list-style: none; padding: 16px 0 4px; flex-wrap: wrap; }
.pagination li a,
.pagination li.active a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: .85rem; font-weight: 500; transition: all var(--transition);
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); background: #fef2f2; }
.pagination li.active a { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 16px;
    backdrop-filter: blur(3px);
}
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; animation: fadeScaleIn .18s ease-out; }
.modal-lg { max-width: 640px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { font-size: 1.4rem; color: var(--text-muted); line-height: 1; padding: 4px; border-radius: 4px; }
.modal-close:hover { background: #f3f4f6; color: var(--text); }
.modal-body { padding: 16px 20px; }
.modal-footer { padding: 0 20px 20px; display: flex; gap: 10px; }

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 200px; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; outline: none; background: #fff; }
.search-bar input:focus { border-color: var(--primary); }

/* ── Auth styles ─────────────────────────────────────────── */
.guest-wrapper { width: 100%; max-width: 480px; position: relative; z-index: 1; }
.auth-card {
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
    padding: 36px 32px; box-shadow: var(--shadow);
    position: relative; overflow: hidden;
    animation: fadeScaleIn .22s ease-out;
}
.auth-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand svg { margin: 0 auto 12px; }
.auth-brand h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.auth-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

.demo-credentials { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.demo-credentials h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.cred-row { display: flex; align-items: center; gap: 8px; font-size: .8rem; margin-bottom: 6px; flex-wrap: wrap; }
.cred-row code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: .78rem; }

/* ── Premium/Lock ────────────────────────────────────────── */
.premium-lock {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm);
    padding: 14px; font-size: .875rem; color: #92400e;
}
.premium-lock svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.premium-badge { display: inline-flex; align-items: center; gap: 5px; background: #fffbeb; color: #b45309; border: 1px solid #fde68a; border-radius: 20px; padding: 4px 12px; font-size: .8rem; font-weight: 600; }
.premium-cta-badge { display: inline-flex; align-items: center; gap: 5px; background: #f3f4f6; color: var(--text-muted); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: .8rem; font-weight: 500; }
.premium-cta-badge svg { width: 14px; height: 14px; }

/* ── Dashboard-specific ──────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.qr-preview { text-align: center; padding: 8px 0; }
.qr-img { width: 160px; height: 160px; margin: 0 auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.qr-placeholder { color: var(--text-muted); }
.qr-placeholder svg { width: 80px; height: 80px; margin: 0 auto 8px; opacity: .4; }
.qr-url { margin-top: 12px; font-size: .8rem; }
.qr-url a { color: var(--primary); }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.quick-card {
    background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 18px 16px; display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 10px; font-size: .85rem; font-weight: 600;
    color: var(--text); transition: all var(--transition-bounce);
}
.quick-card svg { width: 28px; height: 28px; color: var(--primary); transition: transform var(--transition-bounce); }
.quick-card:hover { border-color: var(--primary); background: linear-gradient(135deg, #fef2f2, #fff8f0); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-card:hover svg { transform: scale(1.15); }

.device-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .875rem; }
.device-icon { width: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.device-label { width: 60px; font-weight: 500; }
.progress-bar { flex: 1; height: 6px; background: #f3f4f6; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 10px; animation: progressGrow .9s ease-out; }
.device-pct { font-size: .8rem; color: var(--text-muted); width: 32px; text-align: right; }
.device-svg { width: 17px; height: 17px; color: var(--text-muted); }

/* ── Settings grid ───────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.url-copy-box { display: flex; gap: 8px; }
.url-copy-box input { flex: 1; background: #f9f4ef; }
.current-logo .logo-preview { width: 80px; height: 80px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ── Categories ──────────────────────────────────────────── */
.categories-list { display: flex; flex-direction: column; gap: 10px; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; transition: box-shadow var(--transition); }
.category-row:hover { box-shadow: var(--shadow); }
.category-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.category-drag-handle { color: var(--text-muted); cursor: grab; line-height: 0; }
.category-drag-handle svg { width: 16px; height: 16px; }
.category-drag-handle:hover { color: var(--text); }
.category-name { font-weight: 600; font-size: .95rem; }
.category-meta { font-size: .8rem; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.category-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Menu Items table ────────────────────────────────────── */
.item-cell { display: flex; align-items: center; gap: 10px; }
.item-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.item-thumb-placeholder { width: 44px; height: 44px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item-thumb-placeholder svg { width: 20px; height: 20px; color: var(--text-muted); }

/* ── QR Code page ────────────────────────────────────────── */
.qr-page-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.qr-large-container { padding: 16px 0; }
.qr-large { width: 220px; height: 220px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.qr-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.qr-tips { border-top: 1px solid var(--border); padding-top: 16px; }
.tips-title { font-weight: 600; margin-bottom: 12px; font-size: .9rem; }
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tips-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; }
.tip-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #fef2f2, #fde4e1); display: flex; align-items: center; justify-content: center; }
.tip-icon svg { width: 18px; height: 18px; color: var(--primary); }
.tips-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.tips-list p { color: var(--text-muted); margin: 0; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; font-size: .9rem; }

/* ── Notice card ─────────────────────────────────────────── */
.notice-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; border-left: 4px solid; }
.notice-warning { background: #fffbeb; color: #92400e; border-color: var(--accent); }
.notice-warning svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.notice-warning a { font-weight: 600; color: #92400e; text-decoration: underline; }

/* ── Sidebar overlay ─────────────────────────────────────── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }

/* ── Error page ──────────────────────────────────────────── */
.error-page { text-align: center; padding: 80px 24px; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h1 { font-size: 1.8rem; margin: 12px 0 8px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Public menu ─────────────────────────────────────────── */
.public-menu-body { font-family: var(--font); color: var(--text); }
.menu-header { padding: 32px 16px; text-align: center; color: #fff; }
.menu-header-inner { max-width: 680px; margin: 0 auto; }
.menu-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; margin: 0 auto 12px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.menu-logo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: #fff; margin: 0 auto 12px; }
.menu-restaurant-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.menu-description { margin-top: 8px; opacity: .85; font-size: .95rem; }

/* Featured */
.featured-section { background: #fff8f0; padding: 28px 16px; border-bottom: 1px solid var(--border); }
.section-container { max-width: 720px; margin: 0 auto; }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.star-icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.featured-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.featured-img { width: 100%; height: 110px; object-fit: cover; }
.featured-img-placeholder { width: 100%; height: 110px; background: linear-gradient(135deg,#f9f4ef,#f0e8df); display: flex; align-items: center; justify-content: center; }
.featured-img-placeholder svg { width: 32px; height: 32px; color: #c4b5a8; }
.featured-info { padding: 10px 12px; }
.featured-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.featured-desc { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-price { font-weight: 700; color: var(--primary); font-size: .9rem; }

/* Category nav */
.category-nav { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 50; box-shadow: var(--shadow-sm); }
.category-nav-inner { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; max-width: 720px; margin: 0 auto; }
.category-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-pill { padding: 6px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600; color: var(--text-muted); background: #f3f4f6; white-space: nowrap; transition: all var(--transition); flex-shrink: 0; }
.cat-nav-pill:hover { background: #fef2f2; color: var(--primary); }
.cat-nav-pill.active { background: var(--primary); color: #fff; }

/* Menu main */
.menu-main { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.menu-section { padding: 24px 0 8px; }
.menu-section-title { font-size: 1.15rem; font-weight: 800; color: var(--text); padding-bottom: 12px; border-bottom: 2px solid var(--primary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.menu-section-title::before { content: ''; display: block; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }
.menu-items-grid { display: flex; flex-direction: column; gap: 10px; }

/* Menu item card */
.menu-item-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: flex; transition: box-shadow var(--transition); }
.menu-item-card:hover { box-shadow: var(--shadow); }
.menu-item-card.sold-out { opacity: .6; }
.item-image-wrap { position: relative; flex-shrink: 0; }
.item-image { width: 100px; height: 100%; object-fit: cover; }
.item-no-image { width: 100px; min-height: 80px; background: #f9f4ef; }
.item-featured-tag { position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 10px; }
.item-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.item-name { font-weight: 700; font-size: .95rem; }
.item-price { font-weight: 800; color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.item-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 4px; }
.sold-out-badge { display: inline-block; font-size: .72rem; font-weight: 700; background: #fee2e2; color: var(--primary); padding: 2px 8px; border-radius: 10px; }

/* Menu empty */
.menu-empty { text-align: center; padding: 64px 24px; }
.menu-empty-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.menu-empty h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.menu-empty p { color: var(--text-muted); }

/* Menu footer */
.menu-footer { text-align: center; padding: 20px; color: var(--text-muted); font-size: .8rem; border-top: 1px solid var(--border); }
.footer-link { color: var(--primary); font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .qr-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .sidebar { transform: translateX(-100%); top: 0; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .main-content { margin-left: 0; padding: 72px 16px 24px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-row .flex-2 { grid-column: 1; }
    .page-header { flex-direction: column; align-items: stretch; }
    .page-header > .btn { align-self: flex-start; }
    .auth-card { padding: 24px 20px; }
    .menu-restaurant-name { font-size: 1.4rem; }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .item-image { width: 80px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .modal { max-height: 95vh; }
    .featured-grid { grid-template-columns: 1fr; }
    .item-image { width: 72px; }
    .action-btns { flex-direction: column; align-items: flex-start; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
    .sidebar, .mobile-header, .sidebar-overlay, .qr-actions form { display: none; }
    .main-content { margin: 0; padding: 0; }
    .qr-large { width: 300px; height: 300px; }
}

/* Added: Pro comparison + multi-template public menu styles */
.plan-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-col { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: #fff; }
.plan-col h3 { font-size: .95rem; margin-bottom: 4px; }
.plan-price { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.plan-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-col li { font-size: .85rem; color: var(--text-muted); position: relative; padding-left: 16px; }
.plan-col li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); position: absolute; left: 0; top: .48rem; }
.plan-free { background: #fff; }
.plan-pro { background: linear-gradient(160deg, #fff7dd 0%, #fff 100%); border-color: #f5d38a; box-shadow: 0 8px 24px rgba(245, 182, 66, .16); }

.template-hero { position: relative; overflow: hidden; }
.template-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.2), transparent 55%);
}
.template-hero > * { position: relative; z-index: 1; }
.category-hero {
    margin: 0 0 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.category-hero img { width: 100%; height: 170px; object-fit: cover; }
.premium-empty-art {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,.65), transparent 40%),
        linear-gradient(135deg, rgba(192,57,43,.18), rgba(243,156,18,.25));
}
.item-empty-initial { font-size: 1.4rem; font-weight: 800; color: rgba(0,0,0,.5); }

.template-basic .menu-header { background: linear-gradient(140deg, var(--primary), #7f2f24); }

.template-noir { --primary: #111111; --accent: #d4af37; --border: #d8d8d8; background: #ececec; color: #171717; }
.template-noir .menu-header {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(180deg, #050505 0%, #222 100%) !important;
}
.template-noir .menu-restaurant-name { font-family: 'Playfair Display', serif; letter-spacing: .03em; text-transform: uppercase; }
.template-noir .menu-description { opacity: .8; }
.template-noir .category-nav { background: #f4f4f4; border-bottom-color: #d2d2d2; }
.template-noir .cat-nav-pill { background: #e7e7e7; color: #4a4a4a; border-radius: 0; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.template-noir .cat-nav-pill.active { background: #141414; color: #fff; }
.template-noir .menu-section-title {
    border-bottom: 1px solid #cbcbcb;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: .02em;
}
.template-noir .menu-section-title::before { width: 48px; height: 2px; background: #1f1f1f; }
.template-noir .menu-item-card { border-radius: 0; background: #f7f7f7; border-color: #d8d8d8; }
.template-noir .menu-item-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.template-noir .item-image { filter: grayscale(1) contrast(1.06); }
.template-noir .item-price { color: #121212; font-family: 'Playfair Display', serif; }
.template-noir .featured-section { background: #f0f0f0; border-bottom-color: #d8d8d8; }
.template-noir .featured-card { border-radius: 0; border-color: #d8d8d8; background: #fff; }
.template-noir .featured-img { filter: grayscale(1); }

.template-neon {
    --primary: #12c8ff;
    --accent: #00e7ba;
    --border: rgba(255,255,255,.12);
    background: radial-gradient(circle at 10% -10%, #08306a, #021025 46%, #020814 100%);
    color: #dcf7ff;
}
.template-neon .menu-header {
    background: linear-gradient(165deg, rgba(4,24,56,.9) 0%, rgba(6,54,92,.72) 100%) !important;
    border-bottom: 1px solid rgba(18,200,255,.35);
}
.template-neon .menu-restaurant-name { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: .04em; }
.template-neon .menu-description { color: #9dd1e5; opacity: 1; }
.template-neon .contact-chip { background: rgba(18,200,255,.15); border: 1px solid rgba(18,200,255,.28); color: #d9f8ff; }
.template-neon .featured-section,
.template-neon .category-nav,
.template-neon .menu-main { background: transparent; }
.template-neon .menu-section-title { color: #d9f8ff; border-bottom-color: rgba(18,200,255,.28); }
.template-neon .menu-section-title::before { background: #00e7ba; }
.template-neon .cat-nav-pill { background: rgba(255,255,255,.1); color: #bde9f6; border: 1px solid rgba(255,255,255,.12); }
.template-neon .cat-nav-pill.active { background: linear-gradient(90deg, #12c8ff, #00e7ba); color: #032133; border-color: transparent; }
.template-neon .menu-item-card {
    background: linear-gradient(180deg, rgba(11,35,58,.96), rgba(7,24,45,.96));
    border-color: rgba(18,200,255,.22);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.template-neon .item-no-image { background: rgba(255,255,255,.06); }
.template-neon .item-name { color: #effcff; }
.template-neon .item-desc { color: #94ccdc; }
.template-neon .item-price { color: #00f0be; }
.template-neon .menu-footer { border-top-color: rgba(18,200,255,.18); color: #89b7c9; }

.template-hearth {
    --primary: #245029;
    --accent: #c67a35;
    --border: #e1d6b5;
    background: #eef0d4;
    color: #20311b;
}
.template-hearth .menu-header {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(180deg, #193715 0%, #2d4f1c 58%, #3e6626 100%) !important;
}
.template-hearth .menu-restaurant-name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 2.2rem; }
.template-hearth .category-nav { background: #ecedc9; border-bottom-color: #d8cdac; }
.template-hearth .cat-nav-pill { background: #e4e1bc; color: #5a552f; border-radius: 999px; }
.template-hearth .cat-nav-pill.active { background: linear-gradient(90deg, #c67a35, #e7b067); color: #fff; }
.template-hearth .menu-section-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; border-bottom-color: #d6cda7; }
.template-hearth .menu-section-title::before { background: #b3662f; }
.template-hearth .menu-item-card { background: #f7f6e8; border-color: #ddd0aa; }
.template-hearth .menu-item-card:hover { box-shadow: 0 8px 24px rgba(52,68,36,.14); }
.template-hearth .item-price { color: #b35f21; font-weight: 700; }

.template-reef {
    --primary: #0f7c82;
    --accent: #d6553b;
    --border: #c7dfd8;
    background: #eef4de;
    color: #1e2f2f;
}
.template-reef .menu-header {
    background: linear-gradient(150deg, #117f86 0%, #23a3a3 60%, #51c7bc 100%) !important;
}
.template-reef .menu-restaurant-name { font-family: 'DM Sans', sans-serif; font-size: 2rem; font-weight: 700; }
.template-reef .featured-section { background: #edf2da; }
.template-reef .featured-card { border-radius: 18px; overflow: hidden; border-color: #bfd7d1; }
.template-reef .category-nav { background: #edf2da; border-bottom-color: #d7e8dd; box-shadow: none; }
.template-reef .cat-nav-pill { background: #e4ecdd; color: #4d5b54; border-radius: 999px; font-weight: 700; }
.template-reef .cat-nav-pill.active { background: #0f7c82; color: #fff; }
.template-reef .menu-section-title { color: #0f7479; border-bottom-color: #b8d2cc; }
.template-reef .menu-section-title::before { background: #d6553b; }
.template-reef .menu-item-card { border-radius: 20px; border-color: #cde2dd; background: #f8fbef; }
.template-reef .item-price { color: #b7442f; }
.template-reef .sold-out-badge { background: #f8dad2; color: #b7442f; }

@media (max-width: 900px) {
    .plan-compare { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .template-neon .menu-restaurant-name,
    .template-hearth .menu-restaurant-name,
    .template-reef .menu-restaurant-name { font-size: 1.8rem; }
    .template-noir .menu-section-title,
    .template-hearth .menu-section-title { font-size: 1.35rem; }
}

@media (max-width: 480px) {
    .category-hero img { height: 130px; }
}

.current-cover .cover-preview {
    width: 100%;
    max-height: 190px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.qr-generated {
    width: fit-content;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.qr-generated img,
.qr-generated canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.qr-mini {
    width: 58px;
    height: 58px;
    margin: 0 auto;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
}

.qr-mini img,
.qr-mini canvas {
    width: 100% !important;
    height: 100% !important;
}

.qr-url-text {
    word-break: break-word;
}

.food-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.food-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: 2px solid currentColor;
    background: currentColor;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.9);
}

.food-dot.veg {
    color: #1f8a3f;
    background: rgba(31, 138, 63, .12);
}

.food-dot.non-veg {
    color: #c23a3a;
    background: rgba(194, 58, 58, .12);
}

.item-heading-row,
.item-headline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.menu-header {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.menu-header-cover {
    color: #fff;
}

.menu-cover-wrap,
.menu-header-overlay {
    position: absolute;
    inset: 0;
}

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

.menu-header-overlay {
    background: linear-gradient(180deg, rgba(8,14,20,.28) 0%, rgba(8,14,20,.58) 52%, rgba(8,14,20,.72) 100%);
}

.menu-header-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 26px 16px 34px;
}

.menu-header-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.menu-kicker {
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .9;
}

.menu-tools {
    position: sticky;
    top: 0;
    z-index: 45;
    background: rgba(255,248,240,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.menu-tools-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
}

.menu-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 14px;
}

.menu-search-wrap svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.menu-search-wrap input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px 0;
    font-size: .92rem;
    color: var(--text);
}

.menu-search-wrap input:focus {
    box-shadow: none;
}

.public-menu-body .category-nav {
    top: 72px;
}

.menu-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.menu-item-card {
    align-items: stretch;
}

.item-image {
    width: 118px;
}

.item-no-image {
    width: 118px;
    min-height: 100%;
}

@media (max-width: 768px) {
    .menu-header {
        min-height: 300px;
    }

    .menu-tools-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .public-menu-body .category-nav {
        top: 122px;
    }

    .item-image,
    .item-no-image {
        width: 92px;
    }
}

@media (max-width: 480px) {
    .menu-header-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-menu-body .category-nav {
        top: 146px;
    }

    .menu-restaurant-name {
        font-size: 1.95rem;
    }

    .item-image,
    .item-no-image {
        width: 84px;
    }

    .food-dot {
        font-size: .68rem;
        padding: 4px 8px;
    }
}

/* Public menu refresh: light only, cleaner header, visible brand colors */
.public-menu-body {
    color: #18212b;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.82), transparent 30%),
        linear-gradient(180deg, #f7f4ef 0%, var(--bg-color, #fff8f0) 100%);
}

.public-menu-body .menu-header {
    min-height: 320px;
    border-bottom: 1px solid rgba(24, 33, 43, .08);
}

.public-menu-body .menu-header-cover {
    color: #18212b;
}

.public-menu-body .menu-header-overlay {
    background: linear-gradient(180deg, rgba(247, 244, 239, .08) 0%, rgba(247, 244, 239, .62) 44%, rgba(247, 244, 239, .95) 100%);
}

.public-menu-body .menu-header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 22px 18px 36px;
}

.public-menu-body .menu-header-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0;
}

.menu-brand-inline {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.public-menu-body .menu-logo,
.public-menu-body .menu-logo-placeholder {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 18px 32px rgba(20, 32, 47, .12);
    border: 4px solid rgba(255,255,255,.9);
    background: linear-gradient(160deg, #ffffff 0%, #f2eee8 100%);
}

.public-menu-body .menu-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.menu-brand-copy {
    min-width: 0;
}

.public-menu-body .menu-restaurant-name {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.02;
    margin: 0;
    color: #17202a;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.public-menu-body .menu-description {
    max-width: 620px;
    margin: 10px 0 0;
    color: #51606e;
    font-size: 1rem;
    line-height: 1.7;
}

.menu-jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(24, 33, 43, .1);
    color: #18212b;
    font-size: .86rem;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(20, 32, 47, .08);
}

.menu-jump-link:hover {
    color: #18212b;
    transform: translateY(-1px);
}

.public-menu-body .menu-tools {
    top: 0;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(24, 33, 43, .08);
    box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.public-menu-body .menu-tools-inner,
.public-menu-body .category-nav-inner,
.public-menu-body .menu-main,
.public-menu-body .section-container {
    max-width: 980px;
}

.public-menu-body .menu-search-wrap {
    background: #ffffff;
    border-color: rgba(24, 33, 43, .09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.public-menu-body .menu-search-wrap input {
    color: #18212b;
}

.public-menu-body .category-nav {
    top: 74px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(24, 33, 43, .08);
}

.public-menu-body .cat-nav-pill {
    background: #f2efe9;
    color: #495462;
    border: 1px solid rgba(24, 33, 43, .06);
}

.public-menu-body .cat-nav-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.public-menu-body .featured-section {
    background: transparent;
    border-bottom: 0;
    padding: 28px 18px 8px;
}

.public-menu-body .section-title {
    font-size: 1.35rem;
    letter-spacing: -.02em;
}

.public-menu-body .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.public-menu-body .featured-card,
.public-menu-body .menu-item-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(24, 33, 43, .08);
    box-shadow: 0 16px 34px rgba(20, 32, 47, .07);
}

.public-menu-body .featured-card {
    border-radius: 24px;
}

.public-menu-body .featured-img,
.public-menu-body .category-hero img {
    object-fit: contain;
    object-position: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(243, 239, 232, .94)),
        linear-gradient(140deg, rgba(0,0,0,.03), rgba(0,0,0,0));
}

.public-menu-body .featured-img {
    height: 220px;
    padding: 12px;
}

.public-menu-body .category-hero {
    border-radius: 24px;
    background: rgba(255,255,255,.86);
}

.public-menu-body .category-hero img {
    height: 260px;
    padding: 18px;
}

.public-menu-body .menu-main {
    padding: 14px 18px 44px;
}

.public-menu-body .menu-section {
    padding: 30px 0 4px;
}

.public-menu-body .menu-section-title {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 18px;
    font-size: 1.5rem;
    letter-spacing: -.025em;
}

.public-menu-body .menu-section-title::before {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.public-menu-body .menu-items-grid {
    gap: 14px;
}

.public-menu-body .menu-item-card {
    border-radius: 24px;
    overflow: hidden;
}

.public-menu-body .item-image-wrap {
    width: 164px;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(242, 238, 232, .9));
}

.public-menu-body .item-image,
.public-menu-body .item-no-image {
    width: 164px;
    height: 100%;
    min-height: 164px;
    object-fit: contain;
    object-position: center;
    padding: 14px;
}

.public-menu-body .item-body {
    padding: 18px 18px 16px;
}

.public-menu-body .item-name,
.public-menu-body .featured-name {
    font-size: 1.06rem;
    letter-spacing: -.02em;
}

.public-menu-body .item-price,
.public-menu-body .featured-price {
    color: var(--primary);
}

.public-menu-body .item-desc,
.public-menu-body .featured-desc {
    color: #5d6a77;
}

.public-menu-body .menu-footer {
    border-top: 1px solid rgba(24, 33, 43, .08);
    background: rgba(255,255,255,.7);
}

.public-menu-body .footer-link {
    color: #18212b;
}

.template-basic .menu-header-overlay {
    background:
        linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.5) 52%, rgba(255,255,255,.92) 100%),
        linear-gradient(135deg, rgba(192,57,43,.1), rgba(243,156,18,.08));
}

.template-basic .menu-jump-link {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
}

.template-basic .menu-item-featured-tag,
.template-basic .item-featured-tag {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.template-noir {
    --primary: #2f3438;
    --accent: #8a9095;
    --border: #d6d9dc;
    background: linear-gradient(180deg, #f3f4f5 0%, #eceeef 100%);
    color: #20262c;
}

.template-noir .menu-header-overlay {
    background: linear-gradient(180deg, rgba(245,246,247,.1) 0%, rgba(245,246,247,.66) 44%, rgba(245,246,247,.95) 100%);
}

.template-noir .menu-jump-link,
.template-noir .cat-nav-pill.active {
    background: #2f3438;
    color: #fff;
}

.template-noir .menu-item-card,
.template-noir .featured-card {
    background: rgba(255,255,255,.96);
    border-color: #d5d9de;
}

.template-noir .menu-section-title::before {
    background: linear-gradient(90deg, #2f3438, #8a9095);
}

@media (max-width: 768px) {
    .public-menu-body .menu-header {
        min-height: 280px;
    }

    .public-menu-body .menu-header-topbar {
        align-items: flex-start;
        gap: 16px;
    }

    .public-menu-body .menu-brand-inline {
        align-items: center;
        width: 100%;
    }

    .public-menu-body .menu-logo,
    .public-menu-body .menu-logo-placeholder {
        width: 92px;
        height: 92px;
        border-radius: 24px;
    }

    .public-menu-body .menu-restaurant-name {
        font-size: 1.7rem;
    }

    .public-menu-body .menu-description {
        font-size: .94rem;
    }

    .public-menu-body .category-nav {
        top: 86px;
    }

    .public-menu-body .featured-img,
    .public-menu-body .category-hero img {
        height: 220px;
    }

    .public-menu-body .item-image-wrap {
        width: 132px;
    }

    .public-menu-body .item-image,
    .public-menu-body .item-no-image {
        width: 132px;
        min-height: 132px;
    }
}

@media (max-width: 480px) {
    .public-menu-body .menu-header-inner {
        padding: 18px 14px 28px;
    }

    .public-menu-body .menu-header-topbar {
        flex-direction: row;
        align-items: flex-start;
    }

    .public-menu-body .menu-brand-inline {
        gap: 14px;
    }

    .public-menu-body .menu-logo,
    .public-menu-body .menu-logo-placeholder {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }

    .public-menu-body .menu-restaurant-name {
        font-size: 1.5rem;
    }

    .public-menu-body .menu-jump-link {
        display: none;
    }

    .public-menu-body .category-nav {
        top: 72px;
    }

    .public-menu-body .featured-section,
    .public-menu-body .menu-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .public-menu-body .featured-grid {
        grid-template-columns: 1fr;
    }

    .public-menu-body .menu-item-card {
        flex-direction: column;
    }

    .public-menu-body .item-image-wrap,
    .public-menu-body .item-image,
    .public-menu-body .item-no-image {
        width: 100%;
        min-height: 200px;
    }

    .public-menu-body .category-hero img,
    .public-menu-body .featured-img {
        height: 188px;
        padding: 12px;
    }
}
