@font-face {
  font-family: "Jakarta";
  src: url("font/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --brand: #004aad;
  --brand-dark: #00357f;
  --brand-tint: #e6f0ff;
  --gold: #fddf3f;
  --gold-dark: #726200;
  --gold-tint: #fffbe6;
  --teal: #0e9c8f;
  --teal-tint: #e2f6f3;
  --ink: #0a1628;
  --muted: #5b6478;
  --line: #e4e9f2;
  --low: #f5f8fd;
  --page: #eef2f8;
  --r: 16px;
  --shadow: 0 12px 30px -12px rgba(0, 31, 60, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------- Kerangka "HP" ---------- */
.hp {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 70px rgba(10, 22, 40, 0.1);
  overflow-x: hidden;
}

@media (max-width: 430px) {
  .hp {
    box-shadow: none;
  }
}

/* ---------- Cover & profil ---------- */
.cover {
  position: relative;
  height: 128px;
  overflow: hidden;
  background:
    radial-gradient(120% 110% at 12% 0%, #2e6fd6 0%, rgba(46, 111, 214, 0) 58%),
    linear-gradient(135deg, #00357f 0%, #004aad 55%, #1d63c9 100%);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cover__chip {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.cover__chip svg {
  width: 13px;
  height: 13px;
}

.profil {
  position: relative;
  padding: 0 18px 18px;
  margin-top: -46px;
}

.profil__atas {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 26px;
  border: 4px solid #fff;
  background: linear-gradient(155deg, #004aad 0%, #2e6fd6 100%);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.profil__nama {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profil__tagline {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.baris-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status--tutup {
  background: var(--gold-tint);
  color: var(--gold-dark);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--low);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.chip svg {
  width: 13px;
  height: 13px;
}

/* ---------- Tombol aksi ---------- */
.aksi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 18px 18px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.btn--utama {
  grid-column: 1 / -1;
  padding: 14px;
  font-size: 14px;
  border-color: transparent;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(14, 156, 143, 0.75);
}

.btn--ig svg {
  color: #c13584;
}

.btn--tt svg {
  color: var(--ink);
}

/* ---------- Seksi umum ---------- */
.sec {
  padding: 22px 18px 6px;
}

.sec__judul {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sec__catatan {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Tab kategori (CSS murni) ---------- */
.menu {
  position: relative;
}

.tabin {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs label {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--low);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}

#t-semua:checked ~ .tabs label[for="t-semua"],
#t-kopi:checked ~ .tabs label[for="t-kopi"],
#t-nonkopi:checked ~ .tabs label[for="t-nonkopi"],
#t-snack:checked ~ .tabs label[for="t-snack"],
#t-nasi:checked ~ .tabs label[for="t-nasi"],
#t-lauk:checked ~ .tabs label[for="t-lauk"],
#t-minum:checked ~ .tabs label[for="t-minum"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(0, 74, 173, 0.7);
}

#t-kopi:checked ~ .grup:not([data-kat="kopi"]),
#t-nonkopi:checked ~ .grup:not([data-kat="nonkopi"]),
#t-snack:checked ~ .grup:not([data-kat="snack"]),
#t-nasi:checked ~ .grup:not([data-kat="nasi"]),
#t-lauk:checked ~ .grup:not([data-kat="lauk"]),
#t-minum:checked ~ .grup:not([data-kat="minum"]) {
  display: none;
}

.grup__judul {
  margin: 0;
  padding: 16px 18px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Item menu (dengan foto) ---------- */
.item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.item__foto {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--brand-tint) 0%, #f8fbff 100%);
}

.item__foto img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.item__badan {
  flex: 1 1 auto;
  min-width: 0;
}

.item__nama {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.item__desc {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.item__harga {
  margin: 7px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
}

.item--habis .item__foto,
.item--habis .item__badan {
  opacity: 0.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.tag--laris {
  background: var(--gold-tint);
  color: var(--gold-dark);
}

.tag--habis {
  background: #f1f3f7;
  color: var(--muted);
}

/* ---------- Item menu (tanpa foto) ---------- */
.baris {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.baris__badan {
  flex: 1 1 auto;
  min-width: 0;
}

.baris__nama {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.baris__desc {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.baris__harga {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
}

.baris--habis .baris__badan,
.baris--habis .baris__harga {
  opacity: 0.45;
  text-decoration: line-through;
}

/* ---------- Tautan sosial ---------- */
.tautan {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 18px 10px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.tautan__ikon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--low);
  color: var(--brand);
}

.tautan__ikon svg {
  width: 19px;
  height: 19px;
}

.tautan__badan {
  flex: 1 1 auto;
  min-width: 0;
}

.tautan__nama {
  font-size: 14px;
  font-weight: 700;
}

.tautan__ket {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tautan__panah {
  flex: 0 0 auto;
  color: var(--muted);
}

/* ---------- Kartu QR ---------- */
.qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 18px 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--low);
}

.qr__gambar {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr__gambar svg {
  width: 100%;
  height: 100%;
  fill: var(--ink);
}

.qr__judul {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.qr__ket {
  margin: 4px 0 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.qr__salin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.qr__salin svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 26px;
  padding: 22px 18px 30px;
  border-top: 1px solid var(--line);
  background: var(--low);
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.footer__cta {
  display: block;
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(0, 74, 173, 0.85);
}

.footer__kecil {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Halaman daftar contoh ---------- */
.daftar {
  padding: 26px 20px 34px;
}

.daftar__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--low);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daftar__judul {
  margin: 14px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.daftar__ket {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.kartu {
  display: block;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04);
}

.kartu__atas {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kartu__buah {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #004aad, #2e6fd6);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.kartu__nama {
  font-size: 15px;
  font-weight: 800;
}

.kartu__ket {
  font-size: 12.5px;
  color: var(--muted);
}

.kartu__url {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--brand);
  word-break: break-all;
}

.catatan {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--gold-tint);
  color: var(--gold-dark);
  font-size: 12.5px;
}

.catatan strong {
  font-weight: 800;
}

/* ---------- Ikon garis (dipakai bersama) ---------- */
.ikon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ikon--isi {
  fill: currentColor;
  stroke: none;
}

.qr__gambar img {
  width: 100%;
  height: 100%;
}

