:root {
    --bg: #f5efe6;
    --card: #ffffff;
    --text: #1f2a37;
    --muted: #6b7280;
    --primary: #7fa65a;
    --border: #e5e7eb;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    --accent: #c49a6c;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(245,239,230,0.95); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.topbar nav { display: flex; gap: 12px; align-items: center; }
.brand { font-weight: 700; }

.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 80px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.card-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge.inline { background: #eef3e5; color: #3f4d2a; border-radius: 10px; padding: 6px 10px; }

.card.narrow { max-width: 640px; margin: 0 auto; }
.card.center { text-align: center; }
.drag-list { display: grid; gap: 12px; }
.drag-item.dragging { opacity: 0.6; }
.drag-handle { cursor: grab; padding: 4px 8px; border-radius: 8px; background: #eef3e5; color: #3f4d2a; font-weight: 800; }

.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); margin: 6px 0 14px; background: #f9f5ee; }
.input.soft { background: #fff; }
.checkbox { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--border); background: #f0ebe4; color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.full { width: 100%; }
.btn:hover { opacity: 0.95; }
.link { background: none; border: none; color: var(--primary); cursor: pointer; }
.file-input { display: none; }
.dropzone { border: 1px dashed var(--border); border-radius: 14px; padding: 14px; background: #fffaf3; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.dropzone:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,0.05); }
.dropzone.dragover { border-color: var(--accent); background: #f8f1e6; }
.dropzone__text strong { display: block; margin-bottom: 4px; }
.dropzone__text .file-name { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--primary); }

.avatar { width: 44px; height: 44px; border-radius: 12px; background: #d9e9c9; color: #2f3d1f; font-weight: 700; display: grid; place-items: center; }

.flash-container { display: grid; gap: 8px; margin-bottom: 14px; }
.flash { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #f0ebe4; }
.flash.success { border-color: #bbf7d0; background: #ecfdf3; }
.flash.warning { border-color: #fef08a; background: #fefce8; }
.flash.danger { border-color: #fecdd3; background: #fff1f2; }

.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

.dish-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 10px; }
.dish-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: #fff; box-shadow: var(--shadow); }
.dish-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.dish-img { width: 100%; border-radius: 12px; margin: 8px 0; object-fit: cover; max-height: 220px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }

.auth { background: radial-gradient(circle at 20% 20%, rgba(127,166,90,0.12), transparent 24%), radial-gradient(circle at 80% 0%, rgba(196,154,108,0.14), transparent 26%), var(--bg); }
.auth-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: center; padding: 16px; }
.auth-hero h1 { font-size: 32px; margin: 6px 0; }
.login-card { background: #fff; border: 1px solid #f1e7db; }
.stacked-form label { display: block; font-weight: 600; margin-bottom: 2px; }

/* Public menu theme */
.public.theme-soft { background: #f6efe6; }
.pattern { position: fixed; inset: 0; background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px); background-size: 120px 120px, 180px 180px; background-position: 0 0, 60px 60px; opacity: 0.6; pointer-events: none; }
.phone-frame { max-width: 480px; margin: 24px auto 40px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.1); background: #fdfbf8; position: relative; z-index: 1; }
.public-hero { padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; border-bottom: 1px solid #f1e2cc; text-align: center; position: relative; }
.brand-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 0; }
.logo-circle { width: 58px; height: 58px; border-radius: 16px; background: #e8efdd; display: inline-grid; place-items: center; font-weight: 800; color: #3f4d2a; }
.logo-inline { display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 73px; backdrop-filter: blur(2px); }
.logo-inline img { width: 100%; height: 100%; object-fit: contain; vertical-align: middle; mix-blend-mode: multiply; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lang-switch { position: fixed; right: 16px; bottom: 16px; z-index: 60; }
.lang-switch.top-right { top: 16px; bottom: auto; }
.lang-switch.inline { position: static; }
.lang-select { padding: 10px 12px; border-radius: 12px; border: 1px solid #e5d8c6; background: #fff; color: var(--text); font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.lang-select:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

.menu-shell { padding: 18px; }
.search-bar { display: flex; border: 1px solid #e5d8c6; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-bottom: 16px; }
.search-bar input { flex: 1; border: none; padding: 12px 14px; font-size: 15px; outline: none; }
.search-bar button { border: none; background: #7fa65a; color: #fff; width: 52px; font-size: 16px; cursor: pointer; }

.accordion { display: grid; gap: 10px; }
.accordion-item { border: 1px solid #f1e2cc; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.accordion-trigger { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.accordion-trigger .muted { margin: 0; }
.accordion-trigger h2 { margin: 2px 0 0; font-size: 18px; }
.accordion-trigger .chevron { margin-left: auto; font-size: 18px; color: #3f4d2a; transition: transform 0.2s ease; }
.accordion-trigger.open .chevron { transform: rotate(180deg); }
.section-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #eef3e5; font-size: 18px; color: #3f4d2a; font-weight: 700; }
.acc-title { display: grid; gap: 2px; }

.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; border-top: 1px solid #f3e6d6; }
.accordion-panel.open { max-height: none; }

.menu-list { display: grid; gap: 12px; padding: 12px; }
.menu-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border: 1px solid #f1e2cc; border-radius: 14px; padding: 10px; background: #fffaf3; box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.menu-card__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.thumb-placeholder { width: 100%; height: 100%; border-radius: 12px; background: #e8efdd; display: grid; place-items: center; font-weight: 800; color: #3f4d2a; }
.file-link { display: inline-flex; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--border); background: #f5efe6; color: var(--primary); font-weight: 600; }
.menu-card__body { display: grid; gap: 6px; }
.menu-card__title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.menu-card__title h3 { margin: 0; font-size: 16px; }
.menu-card .price { font-weight: 800; color: #3f4d2a; }
.muted-card { opacity: 0.65; }
.add-btn { background: #7fa65a; color: #fff; border-color: #7fa65a; }
.add-btn:hover { opacity: 0.9; }

.qr { max-width: 220px; margin: 18px auto; display: block; }

.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: rgba(255,255,255,0.95); border-top: 1px solid #e5d8c6; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); }
.cart-info { display: grid; gap: 4px; }
.cart-summary { font-weight: 700; }
.cart-actions { display: flex; gap: 10px; }

@media (max-width: 720px) {
    .card-header, .section-header, .card-actions { flex-direction: column; align-items: flex-start; }
    .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .phone-frame { margin: 0; border-radius: 0; min-height: 100vh; }
    .menu-shell { padding: 14px; }
    .menu-card { grid-template-columns: 1fr; }
    .accordion-trigger h2 { font-size: 16px; }
    .search-bar { border-radius: 12px; }
}
