/* ============================================================
   VARIABLES — 레퍼런스 디자인 색상 시스템
   ============================================================ */
:root {
  --blue-50:    #e8f3ff;
  --blue-100:   #c9e2ff;
  --blue-500:   #3182f6;
  --blue-600:   #2272eb;
  --grey-50:    #f9fafb;
  --grey-100:   #f2f4f6;
  --grey-200:   #e5e8eb;
  --grey-300:   #d1d6db;
  --grey-400:   #b0b8c1;
  --grey-500:   #8b95a1;
  --grey-600:   #6b7684;
  --grey-700:   #4e5968;
  --grey-800:   #333d4b;
  --grey-900:   #191f28;
  --success:    #0ca678;
  --danger:     #f04452;
  --white:      #ffffff;
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:  0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-xl:  28px;
  --radius-lg:  24px;
  --radius-md:  18px;
  --radius-sm:  14px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top, rgba(49,130,246,.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--grey-50) 100%);
  color: var(--grey-900);
  min-height: 100dvh;
  max-width: 100vw;
  overflow-x: hidden;
}
button {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  cursor: pointer;
  border: none;
  user-select: none;
  -webkit-user-select: none;
}
input, textarea {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-appearance: none;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
}

.splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.splash-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--blue-50), #ffffff);
  border: 1px solid rgba(49,130,246,.14);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.splash-icon__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 8px 16px rgba(49,130,246,.24);
}
.splash-text {
  font-size: 14px;
  color: var(--grey-600);
}

/* ============================================================
   SCREEN (공통 레이아웃)
   ============================================================ */
.screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--white);
  color: var(--grey-900);
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(229, 232, 235, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}
.topbar-center { flex: 1; min-width: 0; }
.topbar-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-sub {
  font-size: 12px;
  color: var(--grey-500);
  margin-top: 4px;
}
.back-btn {
  background: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 28px;
  line-height: 1;
  color: var(--grey-700);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--grey-200);
}
.back-btn:active { transform: scale(.96); opacity: .75; }
.topbar-action {
  background: var(--blue-500);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  flex-shrink: 0;
}
.topbar-action:active { opacity: .8; transform: scale(.96); }
.admin-badge {
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* ============================================================
   SCROLL BODY
   ============================================================ */
.scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 72px;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  border: 1px solid var(--grey-200);
}
.card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-500);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title-count {
  background: var(--grey-100);
  color: var(--grey-700);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  transition: all .15s;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn + .btn { margin-top: 8px; }
.btn-primary  { background: var(--blue-500); color: white; }
.btn-caramel  { background: var(--blue-500); color: white; }
.btn-outline  { background: transparent; color: var(--grey-800); border: 1px solid var(--grey-300); }
.btn-ghost    { background: var(--grey-100); color: var(--grey-800); border: 1px solid transparent; }
.btn-ice      { background: var(--blue-50); color: var(--blue-600); font-size: 17px; padding: 20px; }
.btn-hot      { background: var(--grey-100); color: var(--grey-800); font-size: 17px; padding: 20px; }
.btn-sm       { padding: 9px 14px; font-size: 13px; border-radius: 9px; width: auto; }

/* ============================================================
   INPUT
   ============================================================ */
.input-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-600);
  margin-bottom: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.input-field {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--grey-900);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.input-field:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(49,130,246,.14); }
.error-msg {
  font-size: 13px;
  color: var(--danger);
  font-weight: 500;
  margin-top: 4px;
  display: none;
}

/* ============================================================
   HOME SCREEN
   ============================================================ */
.screen--home {
  background: transparent;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 0;
}
.entry-hero {
  text-align: center;
  margin-bottom: 28px;
}
.entry-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--blue-50), #ffffff);
  border: 1px solid rgba(49,130,246,.12);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-logo__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 10px 18px rgba(49,130,246,.26);
}
.entry-title {
  font-size: 34px;
  color: var(--grey-900);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.entry-sub {
  color: var(--grey-600);
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.6;
}
.entry-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229,232,235,.85);
}
.entry-room-banner {
  background: linear-gradient(180deg, #ffffff, var(--grey-50));
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--grey-200);
}
.entry-room-banner--empty {
  border-style: dashed;
  opacity: .7;
}
.room-status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.room-status-pill--open   { background: var(--blue-50); color: var(--blue-600); }
.room-status-pill--idle   { background: var(--grey-100); color: var(--grey-600); }
.entry-room-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--grey-900);
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.entry-room-sub {
  font-size: 13px;
  color: var(--grey-600);
  margin-top: 6px;
}

.role-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  margin-bottom: 9px;
  text-align: left;
  width: 100%;
  transition: all .15s;
}
.role-btn:last-child { margin-bottom: 0; }
.role-btn:active { border-color: rgba(49,130,246,.24); transform: scale(.98); }
.role-btn:disabled { opacity: .4; pointer-events: none; }
.role-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--grey-100);
  position: relative;
}
.role-icon::before,
.role-icon::after {
  content: "";
  position: absolute;
  background: var(--blue-500);
}
.role-icon--user::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 9px;
  left: 15px;
}
.role-icon--user::after {
  width: 22px;
  height: 10px;
  border-radius: 999px 999px 8px 8px;
  bottom: 9px;
  left: 11px;
}
.role-icon--admin::before {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  top: 7px;
  left: 12px;
}
.role-icon--admin::after {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  bottom: 10px;
  left: 11px;
}
.role-text strong { display: block; font-size: 16px; font-weight: 700; color: var(--grey-900); letter-spacing: -0.02em; }
.role-text span   { font-size: 13px; color: var(--grey-600); margin-top: 4px; display: block; line-height: 1.5; }

/* ============================================================
   ADMIN LOGIN
   ============================================================ */
.screen--login {
  background: transparent;
}
.login-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 20px;
}
.login-title {
  font-size: 30px;
  margin-bottom: 8px;
  color: var(--grey-900);
  font-weight: 700;
  letter-spacing: -0.05em;
}
.login-sub {
  color: var(--grey-600);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.input-wrap { margin-bottom: 14px; }
.input-wrap:last-child { margin-bottom: 0; }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.screen--admin { background: transparent; }

/* Preset chips */
.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset-chip {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-700);
  transition: all .15s;
}
.preset-chip:active { transform: scale(.95); }
.preset-chip--active {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-600);
}

/* Active room info */
.active-room-row {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.active-room-row strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-800);
  flex: 1;
}
.room-live-dot {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-600);
  flex-shrink: 0;
}

/* Order status rows */
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-row {
  background: var(--white);
  border-radius: 16px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
}
.order-row__person {
  display: flex;
  flex-direction: column;
  min-width: 66px;
  flex-shrink: 0;
  gap: 2px;
}
.order-row__name  { font-size: 14px; font-weight: 700; }
.order-row__meta  { font-size: 11px; color: var(--grey-500); }
.order-row__menu  { font-size: 13px; color: var(--grey-600); flex: 1; }
.temp-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.temp-badge--ice { background: var(--blue-50);  color: var(--blue-600); }
.temp-badge--hot { background: var(--grey-100);  color: var(--grey-700); }

/* Menu summary */
.summary-list { display: flex; flex-direction: column; gap: 8px; }
.summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--grey-50);
  border-radius: 16px;
}
.summary-row__menu {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-900);
}
.summary-row__count {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-600);
  min-width: 32px;
  text-align: right;
}

/* Unordered members */
.unordered-section {
  background: var(--grey-50);
  border-radius: 16px;
  padding: 14px 15px;
  margin-top: 8px;
}
.unordered-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-500);
  margin-bottom: 10px;
}
.unordered-names { display: flex; flex-wrap: wrap; gap: 7px; }
.unordered-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--grey-600);
  background: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--grey-200);
}
.unordered-name__text {
  font-weight: 600;
  color: var(--grey-700);
}
.unordered-name__meta {
  color: var(--grey-500);
  font-size: 11px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--grey-500);
}
.empty-state .icon { margin: 0 auto 12px; }
.empty-state__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--grey-100);
  position: relative;
}
.empty-state__icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 2px solid var(--grey-400);
}
.empty-state p { font-size: 14px; line-height: 1.7; }

/* ============================================================
   PART / GROUP SELECT
   ============================================================ */
.screen--select { background: transparent; }
.select-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 48px;
}
.select-card {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: all .15s;
  text-align: left;
}
.select-card:active { border-color: var(--blue-100); transform: scale(.98); }
.select-card__title { font-size: 17px; font-weight: 700; color: var(--grey-900); }
.select-card__meta  { font-size: 12px; color: var(--grey-600); margin-top: 3px; }
.select-card__arrow { font-size: 20px; color: var(--grey-400); }

/* ============================================================
   GROUP BOARD
   ============================================================ */
.screen--board { background: transparent; }
.board-room-tag {
  font-size: 11px;
  color: var(--grey-600);
  font-weight: 500;
  padding: 10px 20px;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--grey-200);
  text-align: center;
}
.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 20px 72px;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 20px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 100px;
  cursor: pointer;
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.member-card:active { transform: scale(.96); }
.member-card--done {
  border-color: rgba(49,130,246,.16);
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%);
}
.member-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-900);
}
.member-card--done .member-card__name {
  color: var(--grey-900);
}
.member-card__position {
  font-size: 10px;
  color: var(--grey-500);
  margin-top: 1px;
}
.member-card--done .member-card__position {
  color: var(--grey-600);
  opacity: .9;
}
.member-card__menu {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  line-height: 1.3;
  margin-top: 4px;
}
.member-card__empty {
  font-size: 11px;
  color: var(--grey-400);
  margin-top: auto;
}
.temp-chip {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .5px;
  width: fit-content;
}
.temp-chip--ice { background: var(--blue-50); color: var(--blue-600); }
.temp-chip--hot { background: var(--grey-100); color: var(--grey-700); }

/* ============================================================
   MENU SELECT (팀원 주문 화면 — S6 스타일)
   ============================================================ */
.screen--menu {
  background: transparent;
  position: relative;
}
.menu-topbar {
  padding: 12px 20px 0;
  flex-shrink: 0;
}
.back-btn--light {
  color: var(--grey-700);
}
.member-hero {
  padding: 10px 20px 18px;
  text-align: left;
  flex-shrink: 0;
}
.member-greeting {
  font-size: 12px;
  color: var(--blue-600);
  font-weight: 700;
  margin-bottom: 6px;
}
.member-name-big {
  font-size: 32px;
  color: var(--grey-900);
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.member-room-label {
  font-size: 13px;
  color: var(--grey-600);
}
.member-edit-tag {
  display: inline-block;
  font-size: 11px;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-100);
  padding: 6px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

.order-sheet {
  background: transparent;
  border-radius: 0;
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 180px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-500);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* TOP5 */
.top5-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.top5-item {
  background: var(--white);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid var(--grey-200);
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.top5-item:active { transform: scale(.98); }
.top5-item--selected {
  border-color: rgba(49,130,246,.22);
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%);
}
.top5-rank {
  font-size: 20px;
  color: var(--blue-600);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 800;
}
.top5-name { flex: 1; font-size: 15px; font-weight: 700; color: var(--grey-900); }
.top5-item--selected .top5-name { color: var(--grey-900); }
.top5-temp { font-size: 11px; color: var(--grey-500); }
.top5-item--selected .top5-temp { color: var(--blue-600); }
.top5-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-500);
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.top5-check::before {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}
.top5-item--selected .top5-check { display: flex; }

.menu-link-row {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 18px;
}
.menu-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.menu-link-btn:active {
  transform: scale(.98);
  opacity: .85;
}

/* Category tabs */
.cat-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-700);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.cat-tab--active {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-600);
}

/* Menu items */
.menu-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.menu-item {
  background: var(--white);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid var(--grey-200);
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.menu-item:active { transform: scale(.98); }
.menu-item--selected {
  border-color: rgba(49,130,246,.22);
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-50) 100%);
}
.menu-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 2px;
}
.menu-item--selected .menu-item__name { color: var(--grey-900); }
.menu-item__temp { font-size: 11px; color: var(--grey-500); }
.menu-item--selected .menu-item__temp { color: var(--blue-600); }
.menu-item__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-500);
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.menu-item__check::before {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}
.menu-item--selected .menu-item__check { display: flex; }

/* Fixed footer */
.order-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  padding: 14px 20px 28px;
  border-top: 1px solid rgba(229,232,235,.95);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  max-width: 480px;
  margin: 0 auto;
}
.selected-bar {
  background: var(--white);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border: 1px solid var(--grey-200);
}
.selected-bar__label {
  font-size: 11px;
  color: var(--grey-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.selected-bar__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-900);
}

/* ============================================================
   ORDER SUCCESS POPUP (주문 확인 팝업)
   ============================================================ */
.overlay-sheet--success {
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 24px 44px;
}
.success-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  animation: pop .4s ease;
}
.success-check::before {
  content: "";
  width: 18px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
}
.success-menu-name {
  font-size: 24px;
  color: var(--grey-900);
  font-weight: 700;
}
.success-meta {
  font-size: 13px;
  color: var(--grey-600);
  margin-top: -8px;
}
.success-progress {
  width: 100%;
  height: 4px;
  background: var(--grey-100);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0 8px;
}
.success-progress__bar {
  height: 100%;
  background: var(--blue-500);
  border-radius: 4px;
  width: 0%;
  animation: fillBar 2s linear forwards;
}
@keyframes fillBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================================
   DONE SCREEN
   ============================================================ */
.screen--done {
  background:
    radial-gradient(circle at top, rgba(49,130,246,.18), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--grey-50) 100%);
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 0;
}
.done-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--blue-50), #ffffff);
  border: 1px solid rgba(49,130,246,.16);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  animation: pop .5s ease;
  position: relative;
}
.done-icon::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 12px;
  border-left: 3px solid var(--blue-500);
  border-bottom: 3px solid var(--blue-500);
  transform: rotate(-45deg);
  left: 24px;
  top: 25px;
}
@keyframes pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.done-title {
  font-size: 40px;
  color: var(--grey-900);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.done-sub {
  color: var(--grey-600);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.done-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 24px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
}
.done-card__label { font-size: 12px; color: var(--grey-600); margin-bottom: 6px; line-height: 1.5; }
.done-card__menu  { font-size: 22px; font-weight: 900; color: var(--grey-900); }
.done-back {
  background: var(--blue-500);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  margin-top: 4px;
}
.done-back:active { opacity: .7; }

/* ============================================================
   OVERLAY (Temperature / Confirm)
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(25,31,40,.46);
  display: flex;
  align-items: flex-end;
  z-index: 500;
  animation: fadeInOv .18s ease;
}
@keyframes fadeInOv { from { opacity: 0; } to { opacity: 1; } }
.overlay-sheet {
  background: var(--white);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  animation: slideUp .22s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.overlay-title {
  font-size: 22px;
  color: var(--grey-900);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.overlay-sub {
  font-size: 14px;
  color: var(--grey-600);
  text-align: center;
  margin-top: -4px;
}
.temp-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--grey-900);
  color: white;
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .28s ease;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.22);
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }
