:root {
  --bg: #eef1f8;
  --surface: rgba(252, 253, 255, 0.85);
  --surface-strong: #fbfcfe;
  --panel: #ffffff;
  --line: rgba(36, 56, 105, 0.14);
  --line-strong: rgba(36, 56, 105, 0.24);
  --ink: #101a35;
  --ink-soft: #2a3a5e;
  --muted: #5a6890;
  --accent: #243869;
  --accent-strong: #14213d;
  --accent-warm: #3d5290;
  --gold: #c8a45a;
  --gold-strong: #a0822f;
  --sage: #2c7a85;
  --success: #2f7c5d;
  --warning: #c8a345;
  --danger: #b14d3d;
  --empty: #8590ad;
  --shadow: 0 22px 60px rgba(20, 33, 61, 0.16);
  --shadow-soft: 0 12px 36px rgba(20, 33, 61, 0.10);
  --shadow-strong: 0 28px 70px rgba(20, 33, 61, 0.26);
  --num-font: "Manrope", "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(36, 56, 105, 0.20), transparent 60%),
    radial-gradient(ellipse 50% 35% at 88% 12%, rgba(44, 122, 133, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(200, 164, 90, 0.10), transparent 60%),
    linear-gradient(180deg, #f3f5fb 0%, #e3e9f3 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.15  0 0 0 0 0.28  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  max-width: 1540px;
  margin: 0 auto;
  height: 100vh;
  padding: 18px 22px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar,
.summary-strip article,
.sidebar-panel,
.room-card,
.modal-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.98), rgba(36, 56, 105, 0.94) 60%, rgba(61, 82, 144, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(200, 164, 90, 0.18), transparent 50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  overflow: hidden;
  color: #fff;
}

.topbar::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 90, 0.28), transparent 70%);
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 145, 220, 0.22), transparent 70%);
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: auto;
  background: transparent;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.topbar .eyebrow {
  color: rgba(200, 164, 90, 0.92);
  letter-spacing: 0.28em;
}

.topbar h1 {
  background: linear-gradient(135deg, #fff 0%, #cfd8e8 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.topbar > div:first-child {
  position: relative;
  z-index: 1;
}

.brand-lockup > div::after {
  content: "";
  display: block;
  margin-top: 10px;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 164, 90, 0));
}

.topbar .topbar-actions {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: flex-end;
}

.topbar .ghost-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
}

.topbar .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(200, 164, 90, 0.6);
}

.eyebrow,
.label,
.section-note,
.topbar-copy,
.room-state {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.summary-strip strong,
.room-title,
.elapsed-time {
  font-family: "Manrope", "Noto Sans TC", sans-serif;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 2.4vw, 2.9rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.1rem;
}

.topbar-copy {
  margin-top: 10px;
}

.topbar-actions,
.action-left,
.action-right,
.modal-actions {
  display: flex;
  gap: 10px;
}

.current-time {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--num-font);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.primary-btn,
.ghost-btn,
.icon-btn {
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  position: relative;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    0 8px 20px rgba(20, 33, 61, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-btn:hover {
  box-shadow:
    0 14px 28px rgba(20, 33, 61, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 3px rgba(200, 164, 90, 0.32);
  transform: translateY(-2px);
}

.ghost-btn {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(36, 56, 105, 0.4);
}

.ghost-btn.danger {
  color: var(--danger);
}

.ghost-btn.neutral {
  color: var(--muted);
}

.ghost-btn.accent-text {
  color: var(--accent);
}

.small-btn {
  padding: 9px 14px;
  font-size: 0.92rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.summary-strip article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px 14px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 252, 0.86));
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-strip article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--sage), #4ba3b0);
}

.summary-strip article:nth-child(2)::before {
  background: linear-gradient(180deg, var(--warning), #e0bc6a);
}

.summary-strip article:nth-child(3)::before {
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
}

.summary-strip article:nth-child(4)::before {
  background: linear-gradient(180deg, var(--gold), #e0c280);
}

.summary-strip article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.summary-strip strong {
  font-family: var(--num-font);
  font-size: clamp(1.18rem, 1.7vw, 1.52rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.summary-strip .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace {
  display: block;
  margin-top: 16px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.rooms-section {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head.compact {
  align-items: center;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  align-content: start;
  padding: 2px 12px 22px 2px;
  scrollbar-gutter: stable;
}

.rooms-grid::-webkit-scrollbar {
  width: 10px;
}

.rooms-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(36, 56, 105, 0.08);
}

.rooms-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(36, 56, 105, 0.32);
}

.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 14px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 252, 0.96));
  cursor: pointer;
  overflow: visible;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.room-card::before {
  content: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(139, 131, 122, 0.4), rgba(139, 131, 122, 0.15));
  transition: background 0.22s ease;
}

.room-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(139, 131, 122, 0.45);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.room-card.status-empty {
  border-color: rgba(133, 144, 173, 0.28);
  background: linear-gradient(180deg, rgba(248, 250, 254, 0.92), rgba(236, 241, 248, 0.86));
}

.room-card.status-active {
  border-color: rgba(44, 122, 133, 0.36);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(44, 122, 133, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(248, 254, 254, 0.98), rgba(220, 240, 244, 0.96));
}

.room-card.status-active::before {
  content: "";
  background: linear-gradient(180deg, var(--sage), #4ba3b0);
}

.room-card.status-active::after {
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(44, 122, 133, 0.2), 0 0 14px rgba(44, 122, 133, 0.55);
  animation: pulseDot 2s ease-in-out infinite;
}

.room-card.status-soon {
  border-color: rgba(200, 163, 69, 0.5);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(200, 164, 90, 0.24), transparent 70%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(248, 235, 200, 0.96));
}

.room-card.status-soon::before {
  content: "";
  background: linear-gradient(180deg, var(--warning), var(--gold));
}

.room-card.status-soon::after {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(200, 163, 69, 0.24), 0 0 14px rgba(200, 163, 69, 0.6);
  animation: pulseDot 1.4s ease-in-out infinite;
}

.room-card.status-overdue {
  border-color: rgba(177, 77, 61, 0.5);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(177, 77, 61, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(255, 248, 246, 0.98), rgba(250, 222, 217, 0.96));
}

.room-card.status-overdue::before {
  content: "";
  background: linear-gradient(180deg, var(--danger), #d36b58);
}

.room-card.status-overdue::after {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(177, 77, 61, 0.24), 0 0 16px rgba(177, 77, 61, 0.65);
  animation: pulseDot 0.9s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.75;
  }
}

.room-card.is-blinking {
  animation: blinkCard 1.2s ease-in-out infinite;
}

.room-card.is-dragging {
  opacity: 0.4;
  transform: scale(0.96);
  animation: none;
  cursor: grabbing;
}

.room-card.drag-over {
  outline: 3px dashed rgba(47, 124, 93, 0.6);
  outline-offset: -6px;
  transform: translateY(-2px);
}

@keyframes blinkCard {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
  50% {
    transform: scale(1.012);
    box-shadow: 0 24px 70px rgba(177, 77, 61, 0.28);
  }
}

.room-card-head,
.room-card-footer,
.detail-row,
.report-row,
.ops-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.room-title {
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.room-state {
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.room-card.status-active .room-state {
  color: var(--sage);
}

.room-card.status-soon .room-state {
  color: var(--accent-strong);
}

.room-card.status-overdue .room-state {
  color: var(--danger);
}

.room-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
}

.room-details .total-inline {
  font-family: var(--num-font);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.room-details .detail-row:last-child {
  border-bottom: none;
  padding-top: 6px;
  margin-top: 1px;
  border-top: 2px solid rgba(36, 56, 105, 0.2);
}

.room-details .detail-row:last-child > span {
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.room-empty-state {
  display: none;
}

.room-card.is-empty .room-empty-state {
  display: none;
}

.room-card.is-empty .room-title {
  color: var(--muted);
}

.room-card.is-empty {
  min-height: 128px;
}

.room-card.is-empty .room-details,
.room-card.is-empty .room-card-footer {
  display: none;
}

.room-card.is-empty .room-empty-state {
  display: none;
}

.detail-row {
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.82rem;
  line-height: 1.35;
}

.detail-row.wide-row {
  padding-top: 2px;
}

.room-card-footer {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
}

.room-card-footer strong {
  display: block;
  margin-top: 2px;
  font-family: var(--num-font);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.room-card-footer .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ops-summary,
.daily-report-list,
.admin-list,
.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ops-item,
.report-row,
.admin-row,
.order-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.report-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.report-metrics div,
.summary-box div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(44, 33, 24, 0.62);
  backdrop-filter: blur(8px);
  z-index: 1000;
  animation: modalFadeIn 0.22s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  width: min(1120px, calc(100vw - 16px));
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  padding: 18px 30px 14px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(36, 56, 105, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(200, 164, 90, 0.06), transparent 60%),
    var(--panel);
  box-shadow:
    0 40px 100px rgba(20, 33, 61, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.room-form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-head h2 {
  background: linear-gradient(135deg, var(--ink), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.room-form .modal-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  margin-bottom: 6px;
}

.room-form .modal-head > div {
  grid-column: 2;
  text-align: center;
}

.room-form .modal-head .icon-btn {
  grid-column: 3;
  justify-self: end;
}

.form-grid,
.admin-grid {
  display: grid;
  gap: 12px;
}

.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.wide-field {
  grid-column: 1 / -1;
}

.form-grid label,
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-grid span,
.checkout-form span,
.admin-row label span {
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafbfd;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 56, 105, 0.14);
}

.picker-panel {
  flex: 1 1 auto;
  min-height: 160px;
  overflow-y: auto;
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(36, 56, 105, 0.06), transparent 60%),
    rgba(241, 245, 252, 0.6);
  border: 1px solid var(--line);
  scrollbar-gutter: stable;
}

.picker-panel::-webkit-scrollbar {
  width: 10px;
}

.picker-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(36, 56, 105, 0.08);
}

.picker-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(36, 56, 105, 0.32);
}

.quick-menu-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.menu-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.menu-category-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}

.menu-category-tab:hover {
  border-color: rgba(36, 56, 105, 0.4);
  transform: translateY(-1px);
}

.menu-category-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 33, 61, 0.34);
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.menu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.menu-item-btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--ink);
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
}

.order-item-actions {
  display: flex;
  gap: 6px;
}

.summary-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 14px 20px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(200, 164, 90, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(20, 33, 61, 0.96), rgba(36, 56, 105, 0.92) 60%, rgba(61, 82, 144, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(20, 33, 61, 0.32);
  color: #fff;
}

.summary-box .label {
  color: rgba(255, 255, 255, 0.7);
}

.summary-box strong {
  color: #fff;
}

.summary-box > div:last-child strong {
  color: #ffe08a;
}

.summary-box strong {
  font-family: var(--num-font);
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.summary-box > div:last-child strong {
  color: #ffe08a;
  font-size: 1.5rem;
  text-shadow: 0 1px 10px rgba(255, 224, 138, 0.3);
}

.summary-box .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.checkout-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.checkout-line.total {
  font-weight: 800;
  border-bottom: 0;
}

.admin-grid {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.admin-nav {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-panel .modal-head {
  flex: 0 0 auto;
}

.admin-panel .admin-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.admin-panel .admin-grid::-webkit-scrollbar {
  width: 10px;
}

.admin-panel .admin-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(36, 56, 105, 0.08);
}

.admin-panel .admin-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(36, 56, 105, 0.32);
}

.admin-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 33, 61, 0.32);
}

.admin-section {
  padding: 18px;
  border-radius: 24px;
  background: rgba(241, 245, 252, 0.58);
  border: 1px solid var(--line);
}

.admin-section.full-span {
  grid-column: 1 / -1;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.8fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.admin-row.compact-two {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
}

.admin-row.compact-room {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.6fr) auto;
}

.admin-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  line-height: 1.7;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed var(--line);
  color: var(--muted);
}

@media (max-width: 1380px) {
  .rooms-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .rooms-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    min-height: 0;
  }

  .topbar,
  .modal-head,
  .modal-actions,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .action-right,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .summary-strip,
  .report-metrics,
  .summary-box,
  .form-grid,
  .admin-grid,
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .admin-row.compact-two,
  .admin-row.compact-room,
  .order-item {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
}

/* ============================================================
   Login Screen
   ============================================================ */
.app-shell[hidden] { display: none !important; }

.login-screen {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(36,56,105,0.30), transparent 60%),
    radial-gradient(ellipse 50% 35% at 88% 12%, rgba(44,122,133,0.18), transparent 60%),
    linear-gradient(180deg, #0d1829 0%, #14213d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.login-screen[hidden] { display: none; }

.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.40);
  text-align: center;
  max-width: 360px;
  width: 90%;
}

.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.login-card .eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e8ecf6;
  margin: 4px 0 0;
}

.login-hint {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

.google-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: box-shadow 0.18s;
  white-space: nowrap;
}

.google-btn:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
