:root {
  --primary: #ff6b35;
  --primary-light: #fff0e8;
  --primary-dark: #e55a2b;
  --tech: #6366f1;
  --tech-light: #eef2ff;
  --accent: #10b981;
  --accent-light: #ecfdf5;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #faf9f7;
  --bg-card: #ffffff;
  --bg-warm: #fef7f0;
  --border: #e5e7eb;
  --radius: 24px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}
.app-shell {
  min-height: 100vh;
  padding: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
h1, h2, p { margin: 0; }
h1 { font-size: 26px; }
.topbar p { color: #705151; margin-top: 4px; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e4b5b5;
  margin: 12px 0;
  font-size: 16px;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
}
.primary-btn { background: #c94040; color: #fff; }
.ghost-btn { background: #f4e3e3; color: #6b2d2d; }
.small { padding: 8px 12px; font-size: 14px; }
.full { width: 100%; margin-top: 12px; }

.pill {
  background: #fbeaea;
  color: #b54c4c;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.menu-list, .cart-list, .order-list { display: flex; flex-direction: column; gap: 10px; }
.menu-item, .order-card {
  border: 1px solid #f0d9d9;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f4e4e4;
}
.muted { color: #8b6f6f; }
.error { color: #c94040; margin-top: 8px; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.hidden { display: none; }
.modal-card {
  background: #fff;
  width: min(100%, 360px);
  border-radius: 16px;
  padding: 20px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}
.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.app-footer {
  margin-top: 24px;
  padding: 24px 0 40px;
  background: #111827;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.7);
}
.app-footer .container { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.app-footer .footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.app-footer .footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
}
.app-footer .footer-links a:hover { color: var(--primary); }
.app-footer .footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; }

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