/* =========================================================
   Kerangka aplikasi: topbar, area konten, tab bawah
   ========================================================= */

.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #1F1616 0%, #1A1A1A 100%);
  border-bottom: 1px solid var(--line);
}

.topbar__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.topbar__mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm);
  font-size: 19px;
  color: var(--gold);
}

.topbar__names { display: flex; flex-direction: column; min-width: 0; }
.topbar__names strong {
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--text);
  white-space: nowrap;
}
.topbar__names small {
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-chip {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}

/* ---------- Konten ---------- */
.view {
  flex: 1 1 auto;
  padding: 16px 14px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px);
  overflow-x: hidden;
}

.view--with-cart {
  padding-bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom));
}

/* ---------- Tab bawah ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(26, 26, 26, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.tabbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.tabbar__ico { font-size: 21px; line-height: 1; filter: grayscale(0.65) opacity(0.75); transition: filter 0.15s ease; }

.tabbar__btn.is-active { color: var(--gold); }
.tabbar__btn.is-active .tabbar__ico { filter: none; }
.tabbar__btn:active { transform: scale(0.94); }

/* ---------- Header seksi ---------- */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 2px 12px;
}
.section-head:not(:first-child) { margin-top: 26px; }

.section-head__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* Titik emas kecil sebelum judul — jeda visual yang menenangkan mata
   sebelum membaca, dan pengikat identitas antar-halaman. */
.section-head__title::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 176, 75, 0.55);
}

.section-head__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section-head__count {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-num);
}
