/* ============================================================
   LiburanBali Showcase — Design System (Brand Kit 2026)
   Colors  : Bali Blue #1259DB · Sun Yellow #F8D000
             Ocean Teal #19B7C6 · Palm Green #5BAE4B
             Sunset Orange #FFBA3D · Cloud White #F8F8F8
   Type    : Baloo 2 (display) · Poppins (body)
   ============================================================ */
:root {
  --blue: #1259DB;
  --blue-deep: #0c3f9e;
  --yellow: #F8D000;
  --teal: #19B7C6;
  --green: #5BAE4B;
  --orange: #FFBA3D;
  --orange-deep: #f59b00;
  --cloud: #F8F8F8;
  --bg: #f1f5fc;
  --surface: #ffffff;
  --ink: #14213a;
  --ink-soft: #5c6885;
  --line: #e6ecf7;
  --shadow: 0 14px 34px rgba(18, 89, 219, 0.14);
  --shadow-sm: 0 6px 18px rgba(18, 89, 219, 0.10);
  --radius: 22px;
  --maxw: 460px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .display { font-family: "Baloo 2", "Poppins", sans-serif; }

#app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }
a { color: inherit; text-decoration: none; }

/* ---------- HOME ---------- */
.home-hero {
  position: relative;
  padding: 26px 20px 26px;
  background:
    radial-gradient(130% 90% at 88% -10%, rgba(248,208,0,.30), transparent 55%),
    linear-gradient(165deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
}
.brand-row { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--yellow); display: grid; place-items: center;
  font-family: "Baloo 2"; font-weight: 800; color: var(--blue); font-size: 19px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.brand-name { font-family: "Baloo 2"; font-weight: 800; font-size: 20px; letter-spacing: -.2px; }
.brand-name span { color: var(--yellow); }
.verified { font-size: 13px; }

.hero-copy { max-width: 70%; }
.hero-title { font-size: 27px; font-weight: 800; line-height: 1.12; letter-spacing: -.3px; }
.hero-title .hl { color: var(--yellow); }
.hero-sub { margin-top: 9px; font-size: 13.5px; opacity: .9; max-width: 95%; }

.sobi {
  position: absolute; right: -22px; bottom: -16px; width: 168px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.18));
  pointer-events: none;
}

.search-wrap { margin-top: 20px; position: relative; z-index: 2; }
.search-wrap input {
  width: 100%; border: none; border-radius: 15px; padding: 14px 14px 14px 44px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.search-wrap input::placeholder { color: #9aa6c2; }
.search-wrap input:focus { outline: 3px solid var(--yellow); }
.search-wrap .si { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: .55; }

/* filter chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 20px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); color: var(--ink-soft); border: 1.5px solid var(--line); white-space: nowrap;
}
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.section-label {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 20px 12px;
}
.section-label h2 { font-size: 19px; font-weight: 700; }
.section-label .count { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

/* client cards */
.cards { display: flex; flex-direction: column; gap: 16px; padding: 0 20px 110px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:active { transform: scale(.985); }
.card-media { position: relative; aspect-ratio: 16/10; background: #dfe7f5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(10,30,70,.6)); }
.promo-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--yellow); color: var(--blue-deep); font-size: 11.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; display: flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.media-foot {
  position: absolute; left: 12px; bottom: 11px; right: 12px; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; color: #fff;
}
.media-foot .zona {
  font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.22);
  backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px;
}
.media-foot .rating {
  font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 3px;
  background: var(--yellow); color: var(--blue-deep); padding: 3px 9px; border-radius: 999px;
}

.card-body { padding: 13px 15px 15px; }
.card-cat { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; }
.card-name { font-family: "Baloo 2"; font-size: 19px; font-weight: 700; margin-top: 2px; letter-spacing: -.2px; line-height: 1.1; }
.card-tag { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }
.card-cta {
  margin-top: 13px; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--blue);
}

.empty { text-align: center; color: var(--ink-soft); padding: 40px 20px; font-size: 14px; }

/* ---------- DETAIL ---------- */
.detail-video { position: relative; aspect-ratio: 9/12; background: #000; max-height: 62vh; }
.detail-video iframe, .detail-video video { width: 100%; height: 100%; border: none; object-fit: cover; }
.video-ph {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: grid; place-items: center; color: #fff;
}
.video-ph-inner { text-align: center; padding: 20px; }
.video-ph-ic { font-size: 42px; }
.video-ph-txt { font-family: "Baloo 2"; font-weight: 700; font-size: 18px; margin-top: 10px; }
.video-ph-sub { font-size: 12.5px; opacity: .8; margin-top: 6px; }
.back-btn {
  position: fixed; top: 14px; left: 50%; transform: translateX(calc(-1 * var(--maxw) / 2 + 14px));
  z-index: 30; width: 42px; height: 42px; border-radius: 999px;
  background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); font-size: 19px; color: var(--blue);
}
@media (max-width: 460px) { .back-btn { left: 14px; transform: none; } }

.detail-sheet {
  position: relative; margin-top: -28px; background: var(--bg);
  border-radius: 28px 28px 0 0; padding: 24px 20px 120px; z-index: 5;
}
.dh-cat { font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .6px; }
.dh-name { font-family: "Baloo 2"; font-size: 28px; font-weight: 800; letter-spacing: -.4px; margin-top: 3px; line-height: 1.08; }
.dh-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.dh-meta b { color: var(--ink); }
.dh-meta .pill { display: inline-flex; align-items: center; gap: 5px; }
.dh-meta .pill.star { background: var(--yellow); color: var(--blue-deep); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.dh-about { margin-top: 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

.block { margin-top: 28px; }
.block-title { font-family: "Baloo 2"; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.block-title .ic { font-size: 19px; }
.block-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; margin-bottom: 13px; }

/* recommendations */
.rec { display: flex; flex-direction: column; gap: 11px; }
.rec-item {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 13px 15px; display: flex; gap: 12px; align-items: flex-start;
}
.rec-num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; background: var(--blue);
  color: #fff; font-family: "Baloo 2"; font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-top: 1px;
}
.rec-main { flex: 1; }
.rec-name { font-weight: 600; font-size: 15px; }
.rec-desc { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.rec-price { flex: 0 0 auto; font-family: "Baloo 2"; font-weight: 700; font-size: 15px; color: var(--blue); white-space: nowrap; }

/* promo ticket — Sunset Orange */
.promo-card {
  background: linear-gradient(145deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: 20px; padding: 20px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 14px 30px rgba(245,155,0,.34);
}
.promo-card::before, .promo-card::after {
  content: ""; position: absolute; width: 26px; height: 26px; border-radius: 999px;
  background: var(--bg); top: 50%; transform: translateY(-50%);
}
.promo-card::before { left: -13px; }
.promo-card::after { right: -13px; }
.promo-tag { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; opacity: .95; }
.promo-title { font-family: "Baloo 2"; font-size: 22px; font-weight: 800; margin-top: 4px; letter-spacing: -.2px; line-height: 1.1; }
.promo-desc { font-size: 13px; opacity: .96; margin-top: 7px; line-height: 1.5; }
.promo-valid { font-size: 12px; opacity: .92; margin-top: 11px; display: flex; align-items: center; gap: 6px; }

.claim-btn {
  width: 100%; margin-top: 16px; background: #fff; color: var(--orange-deep);
  font-family: "Baloo 2"; font-weight: 800; font-size: 16px; padding: 14px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.claim-btn:active { transform: scale(.98); }

.claimed-box { margin-top: 16px; background: rgba(255,255,255,.2); border-radius: 14px; padding: 16px; text-align: center; }
.claimed-box .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; opacity: .9; font-weight: 600; }
.code {
  font-family: "Baloo 2", ui-monospace, monospace; font-size: 25px; font-weight: 800; letter-spacing: 2px; margin-top: 6px;
  border: 2px dashed rgba(255,255,255,.6); border-radius: 11px; padding: 11px;
}
.claimed-hint { font-size: 12px; opacity: .95; margin-top: 10px; line-height: 1.5; }
.terms { font-size: 11.5px; color: var(--ink-soft); margin-top: 12px; line-height: 1.55; }

.no-promo {
  background: var(--surface); border: 1.5px dashed var(--line); border-radius: 16px;
  padding: 18px; text-align: center; color: var(--ink-soft); font-size: 13px;
}

.detail-actions { display: flex; gap: 10px; margin-top: 24px; }
.act {
  flex: 1; padding: 14px; border-radius: 14px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
}
.act.primary { background: var(--blue); color: #fff; border-color: var(--blue); }

/* footer */
.foot {
  text-align: center; padding: 26px 20px 34px; font-size: 12.5px; color: var(--ink-soft);
  border-top: 1.5px solid var(--line); margin-top: 30px; line-height: 1.6;
}
.foot b { color: var(--blue); }

/* QR in claimed promo */
.claimed-box .qr {
  width: 200px; height: 200px; margin: 12px auto 0; border-radius: 14px;
  background: #fff; padding: 8px; display: block;
}
.code-mini { font-size: 12px; opacity: .9; margin-top: 10px; font-weight: 600; letter-spacing: .5px; }

/* boot / loading */
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot-mark { width: 56px; height: 56px; border-radius: 16px; background: var(--yellow); color: var(--blue); font-family: "Baloo 2"; font-weight: 800; font-size: 26px; display: grid; place-items: center; margin: 0 auto; animation: pulse 1s ease-in-out infinite; }
.boot-txt { margin-top: 14px; color: var(--ink-soft); font-weight: 500; text-align: center; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:1 } 50%{ transform: scale(.92); opacity:.7 } }

/* ---------- VERIFY (merchant) ---------- */
.verify-wrap { min-height: 100vh; background: linear-gradient(170deg, var(--blue) 0%, var(--blue-deep) 42%, var(--bg) 42%); padding: 20px 18px 40px; }
.verify-head { display: flex; align-items: center; gap: 11px; padding: 6px 2px 20px; }
.verify-head .brand-mark { width: 40px; height: 40px; }
.v-merchant { font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 1px; }
.verify-card { background: #fff; border-radius: 22px; padding: 24px 20px; box-shadow: var(--shadow); text-align: center; }
.v-stamp { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: .8px; padding: 7px 16px; border-radius: 999px; }
.v-stamp.ok { background: #e7f7ec; color: #1c8a45; }
.v-stamp.used { background: #fdecea; color: #c0392b; }
.v-promo { font-family: "Baloo 2"; font-weight: 800; font-size: 24px; margin-top: 14px; line-height: 1.12; }
.v-code { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; font-weight: 600; }
.v-terms { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; line-height: 1.55; background: var(--bg); border-radius: 12px; padding: 12px; text-align: left; }
.v-form { margin-top: 20px; text-align: left; }
.v-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin: 14px 0 6px; }
.v-input { width: 100%; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 14px; font-size: 16px; font-family: inherit; }
.v-input:focus { outline: none; border-color: var(--blue); }
.v-btn { width: 100%; margin-top: 18px; background: var(--green); color: #fff; font-family: "Baloo 2"; font-weight: 800; font-size: 16px; padding: 15px; border-radius: 14px; }
.v-btn:active { transform: scale(.98); }
.v-btn:disabled { opacity: .6; }
.v-msg { margin-top: 12px; font-size: 13px; text-align: center; font-weight: 600; min-height: 18px; }
.v-msg.err { color: #c0392b; }
.v-result { margin-top: 18px; background: var(--bg); border-radius: 14px; padding: 4px 16px; }
.v-result-row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.v-result-row:last-child { border-bottom: none; }
.v-result-row b { font-weight: 700; }
.v-bad { font-size: 44px; }
.v-title { font-family: "Baloo 2"; font-weight: 800; font-size: 22px; margin-top: 10px; }
.v-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.v-foot { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 20px; }

.fade-in { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
