html, body { margin: 0; min-height: 100%; }
body {
    --resto-bg: #16110c;
    --resto-panel: #241c12;
    --resto-panel-2: #2c2216;
    --resto-gold: #d9a441;
    --resto-gold-2: #efc878;
    --resto-cream: #f3e9d8;
    --resto-muted: #c4b296;
    --resto-line: rgba(217, 164, 65, 0.28);
    background: var(--resto-bg);
    color: var(--resto-cream);
    font-family: system-ui, 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 22px;
}

.resto-dark {
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1b150e 0%, var(--resto-bg) 220px);
    padding: 16px;
    display: grid;
    gap: 14px;
    min-height: 100vh;
    box-sizing: border-box;
    align-content: start;
}
@media (min-width: 768px) { .resto-dark { padding: 28px; gap: 18px; } }

.resto-banner { background: rgba(217, 164, 65, 0.12); border: 1px solid var(--resto-line); border-radius: 12px; padding: 10px 12px; color: var(--resto-muted); font-size: 12px; line-height: 19px; }

.resto-nav { display: flex; gap: 6px; background: var(--resto-panel); border: 1px solid var(--resto-line); border-radius: 999px; padding: 4px; position: sticky; top: 8px; z-index: 5; }
.resto-nav a { flex: 1; text-align: center; padding: 8px 2px; border-radius: 999px; color: var(--resto-muted); text-decoration: none; font-size: 12px; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.resto-nav a[aria-current="page"] { background: var(--resto-gold); color: #1c1409; font-weight: 600; }

.resto-hero { position: relative; border-radius: 16px; overflow: hidden; height: 150px; }
.resto-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resto-hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; background: linear-gradient(180deg, transparent 30%, rgba(10, 7, 3, 0.85)); }
.resto-hero-name { font-size: 26px; font-weight: 700; color: var(--resto-gold-2); letter-spacing: 0.01em; }
.resto-hero-tag { color: var(--resto-cream); font-size: 13px; opacity: 0.85; }

.resto-section { display: grid; gap: 8px; }
.resto-title { margin: 4px 0 0; font-size: 20px; font-weight: 600; color: var(--resto-gold-2); }
.resto-cat { margin: 0; font-size: 15px; font-weight: 600; color: var(--resto-gold); letter-spacing: 0.02em; }
.resto-note { margin: 0; color: var(--resto-muted); font-size: 12px; line-height: 18px; }

.resto-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.resto-cats .resto-choice { flex: none; }

.resto-card { display: flex; gap: 10px; align-items: center; background: var(--resto-panel); border: 1px solid var(--resto-line); border-radius: 14px; padding: 8px; animation: resto-in 0.35s ease both; transition: transform 0.18s ease, box-shadow 0.18s ease; margin-bottom: 10px; }
.resto-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.resto-card-pad { display: block; padding: 12px; }
.resto-card-pad > * + * { margin-top: 10px; }
.resto-card-img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.resto-card-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.resto-card-name { font-weight: 600; font-size: 14px; }
.resto-off { color: var(--resto-muted); text-decoration: line-through; }
.resto-card-detail { color: #d0c1a3; font-size: 12px; line-height: 17px; }
.resto-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.resto-price { color: var(--resto-gold-2); font-weight: 600; white-space: nowrap; }

.resto-stepper { display: flex; align-items: center; gap: 6px; }
.resto-qty { min-width: 18px; text-align: center; font-weight: 600; color: var(--resto-gold-2); }
.resto-step { font: inherit; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--resto-line); background: transparent; color: var(--resto-cream); cursor: pointer; min-height: 34px; transition: transform 0.12s ease, background-color 0.2s ease, opacity 0.2s ease; }
.resto-step:active { transform: scale(0.94); }
.resto-step:disabled { opacity: 0.45; cursor: default; }
.resto-step-add { background: var(--resto-gold); border-color: var(--resto-gold); color: #1c1409; font-weight: 600; }

.resto-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font-weight: 600; color: var(--resto-gold-2); font-size: 15px; }

.resto-form { display: grid; gap: 10px; }
.resto-field { display: grid; gap: 4px; }
.resto-field > span { font-size: 12px; color: var(--resto-muted); }
.resto-field input { font: inherit; background: var(--resto-panel-2); border: 1px solid var(--resto-line); border-radius: 10px; color: var(--resto-cream); padding: 9px 12px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.resto-field input:focus { border-color: var(--resto-gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.18); }
.resto-choices { display: flex; gap: 6px; flex-wrap: wrap; }
.resto-choice { font: inherit; font-size: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--resto-line); background: transparent; color: var(--resto-muted); cursor: pointer; min-height: 36px; transition: background-color 0.2s ease, color 0.2s ease; }
.resto-choice-on { background: var(--resto-gold); border-color: var(--resto-gold); color: #1c1409; font-weight: 600; }
.resto-primary { font: inherit; font-weight: 600; font-size: 14px; padding: 12px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--resto-gold), var(--resto-gold-2)); color: #1c1409; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.2s ease; }
.resto-primary:hover { box-shadow: 0 4px 16px rgba(217, 164, 65, 0.35); }
.resto-primary:active { transform: scale(0.98); }
.resto-primary:disabled { opacity: 0.45; cursor: default; }
.resto-primary-link { display: block; text-align: center; text-decoration: none; }
.resto-link-btn { display: inline-block; text-decoration: none; }

.resto-error { margin: 0; color: #ff9b8a; font-size: 13px; }
.resto-confirm { border: 1px solid var(--resto-gold); border-radius: 12px; padding: 10px 12px; background: rgba(217, 164, 65, 0.1); font-size: 13px; line-height: 20px; animation: resto-pop 0.3s ease both; margin-top: 10px; }
.resto-confirm-title { font-weight: 600; color: var(--resto-gold-2); margin-bottom: 2px; }

.resto-callout { border-inline-start: 3px solid var(--resto-gold); background: rgba(217, 164, 65, 0.08); border-radius: 8px; padding: 8px 12px; color: var(--resto-muted); font-size: 12px; line-height: 19px; }

.resto-order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.resto-pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--resto-gold); color: #1c1409; }
.resto-pill-done { background: transparent; border: 1px solid var(--resto-line); color: var(--resto-muted); }
.resto-order-lines { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--resto-cream); font-size: 13px; }
.resto-order-meta { color: var(--resto-muted); font-size: 12px; }
.resto-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.resto-admin-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--resto-line); flex-wrap: wrap; }
.resto-admin-row:last-child { border-bottom: none; }
.resto-admin-info { flex: 1; min-width: 110px; display: grid; }
.resto-price-input { font: inherit; width: 64px; background: var(--resto-panel-2); border: 1px solid var(--resto-line); border-radius: 8px; color: var(--resto-gold-2); font-weight: 600; padding: 7px 8px; text-align: center; outline: none; }
.resto-price-input:focus { border-color: var(--resto-gold); }

.resto-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 20px; }
.resto-list li::marker { color: var(--resto-gold); font-weight: 600; }
.resto-link { color: var(--resto-gold-2); }

.resto-closing { color: var(--resto-muted); font-size: 11px; text-align: center; padding-top: 4px; }

@keyframes resto-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes resto-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .resto-card, .resto-confirm { animation: none; }
    .resto-card, .resto-step, .resto-primary, .resto-nav a, .resto-choice, .resto-field input { transition: none; }
}
