:root {
  --brand: #d83b2f;
  --brand-dark: #9f201e;
  --tech: #22c7b8;
  --night: #171c22;
  --soft: #f4f6f8;
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 59, 47, .07), transparent 25%),
    radial-gradient(circle at 88% 36%, rgba(34, 199, 184, .06), transparent 22%),
    #f5f6f7;
}

.topbar {
  height: 66px;
  border-bottom: 0;
  box-shadow: 0 5px 24px rgba(20, 27, 33, .08);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .94);
}

.brand-mark {
  background: linear-gradient(145deg, #ef5844, #b71f20);
  box-shadow: 0 7px 18px rgba(190, 42, 35, .24);
}

.customer-shell {
  max-width: 800px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 0 50px rgba(18, 26, 34, .04);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 22px 20px 17px;
  color: white;
  background:
    linear-gradient(125deg, rgba(255,255,255,.035), transparent 35%),
    linear-gradient(135deg, #11171e 0%, #202832 55%, #171c23 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .75; }
.orb-one { width: 210px; height: 210px; right: -85px; top: -100px; background: radial-gradient(circle, rgba(216,59,47,.65), transparent 68%); }
.orb-two { width: 150px; height: 150px; left: -80px; bottom: -90px; background: radial-gradient(circle, rgba(34,199,184,.25), transparent 70%); }

.logo-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: 76px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.restaurant-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

.logo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
}
.logo-fallback span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#ef5844,#b71f20); font-size: 22px; font-weight: 900; }
.logo-fallback strong { font-size: 24px; letter-spacing: 1px; }

.hero-info {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.hero-info small { display: block; color: #8de3d9; font-size: 10px; letter-spacing: 1.5px; }
.hero-info strong { display: block; margin-top: 3px; font-size: 14px; }

.hero .table-pill {
  margin: 0;
  padding: 8px 11px;
  color: white;
  background: linear-gradient(135deg, rgba(216,59,47,.94), rgba(165,31,31,.94));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 7px 18px rgba(164, 34, 31, .25);
}

.service-points {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #b9c1c9;
  font-size: 11px;
}
.service-points span::first-letter { color: var(--tech); }

.table-history-toggle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #edf1f3;
  text-align: left;
}
.table-history-toggle b { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 10px; background: var(--tech); color: #132129; font-size: 12px; }
.table-history-toggle strong { color: #8de3d9; font-size: 13px; }
.history-arrow { margin-left: auto; color: #9faab4; font-size: 12px; }
.table-history {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(6,11,15,.34);
}
.table-history-order { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.09); }
.table-history-order:last-child { border-bottom: 0; }
.table-history-order div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.table-history-order b { color: #83ddd4; font-size: 12px; }
.table-history-order span { color: #8e9ba6; font-size: 11px; }
.table-history-order p { margin: 5px 0 0; color: #f0f3f4; font-size: 13px; }
.table-history-summary { display: flex; justify-content: space-between; padding: 11px 12px; color: #c7d0d6; font-size: 13px; background: rgba(34,199,184,.08); }
.table-history-summary b { color: #8de3d9; font-size: 16px; }
.table-history-empty { padding: 12px; color: #9faab4; font-size: 13px; }
.table-history-note { margin-top: 7px; padding: 7px 9px; border-left: 2px solid #e9b35a; color: #f2c777; background: rgba(233,179,90,.09); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap:anywhere; }

.categories {
  top: 66px;
  gap: 9px;
  padding: 14px 16px;
  border-bottom: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(20,27,33,.07);
}
.category { border: 1px solid #e6e8eb; border-radius: 20px; padding: 8px 16px; color: #4d5359; transition: .2s; }
.category.active { background: linear-gradient(135deg, #212a33, #11171e); border-color: #171d23; box-shadow: 0 6px 16px rgba(20,27,33,.18); }

.menu-section { padding: 20px 16px 0; }
.section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 20px; }
.section-title::before { content: ""; width: 5px; height: 20px; border-radius: 5px; background: linear-gradient(var(--brand), #f28349); box-shadow: 0 0 12px rgba(216,59,47,.25); }

.dish {
  grid-template-columns: 94px 1fr auto;
  gap: 15px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(225,228,232,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(24,31,38,.055);
}
.dish-art { width: 94px; height: 86px; overflow: hidden; border-radius: 11px; background: linear-gradient(145deg,#f3f0e9,#ebe8e0); }
.dish h3 { font-size: 17px; color: #1c232a; }
.dish p { margin: 5px 0 8px; }
.price { color: var(--brand-dark); font-size: 16px; }
.add-btn { width: 38px; height: 38px; background: linear-gradient(145deg,#ef5140,#bd2926); box-shadow: 0 7px 16px rgba(190,42,35,.22); }
.dish-stepper { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 38px; }
.dish-minus { width: 30px; height: 30px; padding: 0; border: 1px solid #e2e5e8; border-radius: 50%; background: white; color: #525a62; font-size: 21px; line-height: 1; }
.dish-count { min-width: 20px; color: var(--brand-dark); font-size: 17px; text-align: center; }
.dish-selected { border-color: rgba(216,59,47,.3); box-shadow: 0 9px 26px rgba(190,42,35,.1); }

.cart-bar {
  width: min(800px,100%);
  border-top: 1px solid rgba(224,227,230,.8);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 30px rgba(19,26,33,.1);
}
.cart-icon { background: linear-gradient(145deg,#252f39,#11171e); box-shadow: 0 8px 20px rgba(19,26,33,.2); }
.cart-bar .primary { border-radius: 10px; padding-inline: 22px; box-shadow: 0 7px 17px rgba(190,42,35,.2); }
.table-placed-total { display: block; margin-top: 2px; color: #87949d; font-size: 11px; }
.customer-notice { position: fixed; left: 50%; bottom: 92px; z-index: 60; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); padding: 11px 15px; border: 1px solid rgba(39,128,91,.18); border-radius: 10px; background: rgba(240,252,246,.97); color: #22734f; box-shadow: 0 10px 30px rgba(20,40,30,.18); font-weight: 700; white-space: nowrap; }
.dining-count-mask { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(12, 20, 24, .62); }
.dining-count-dialog { width: min(390px, 100%); padding: 24px 20px 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: #172229; color: #f5f8f8; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.dining-count-dialog h2 { margin: 0; font-size: 21px; }
.dining-count-dialog p { margin: 7px 0 18px; color: #afbec4; font-size: 13px; line-height: 1.6; }
.dining-count-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.dining-count-option { min-height: 64px; border: 1px solid rgba(141,227,217,.35); border-radius: 10px; background: rgba(141,227,217,.08); color: #e9ffff; font-size: 24px; font-weight: 800; }
.dining-count-option small { margin-left: 2px; font-size: 12px; font-weight: 600; }
.dining-count-option:hover, .dining-count-option:focus-visible { background: #8de3d9; color: #14252a; outline: none; }
.auto-tableware { background: rgba(233,179,90,.10); border-bottom-color: rgba(233,179,90,.25); }
.auto-tableware strong { color: #a16d1a; }
.notice-check { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #2c9a68; color: white; font-size: 13px; }
.table-order-list { border-top: 1px solid var(--line); }
.table-order-block { padding: 12px 0; border-bottom: 1px dashed #dfe2e5; }
.table-order-block:last-child { border-bottom: 0; }
.table-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.table-order-head b { display: block; color: #202a32; }
.table-order-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.table-order-head .status { display: inline-block; margin: 0; color: #2879b8; font-size: 12px; }
.table-order-subtotal { margin-top: 8px; color: var(--muted); text-align: right; font-size: 13px; }
.table-order-subtotal b { color: var(--ink); }

@media (max-width: 520px) {
  .topbar { height: 58px; }
  .hero { padding: 14px 13px 14px; }
  .logo-frame { min-height: 58px; border-radius: 11px; }
  .logo-fallback { padding: 9px 12px; }
  .logo-fallback span { width: 38px; height: 38px; }
  .logo-fallback strong { font-size: 20px; }
  .hero-info { margin-top: 12px; }
  .hero-info strong { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero .table-pill { max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .service-points { justify-content: space-between; gap: 5px; margin-top: 12px; }
  .categories { top: 58px; }
  .menu-section { padding: 17px 12px 0; }
  .dish { grid-template-columns: 82px 1fr auto; gap: 11px; padding: 10px; }
  .dish-art { width: 82px; height: 76px; }
  .dish p { display: block; white-space: normal; overflow: visible; text-overflow: clip; word-break: break-all; line-height: 1.55; max-height: none; }
}
