/* ================================================================
   Gili Eats - UI matched to the brand mockups
   ================================================================ */
:root {
  --cream: #FAF6ED;
  --cream-2: #F5EFE2;
  --card: #FFFFFF;
  --teal: #12766A;
  --teal-dark: #0C5A50;
  --teal-deep: #093F38;
  --teal-soft: #5FA79E;
  --ink: #35443F;
  --muted: #8A948F;
  --faint: #B4BCB8;
  --orange: #F6B26B;
  --orange-deep: #E79A4E;
  --line: #EEE7D8;
  --danger: #C4553B;
  --ok: #2E8B57;
  --wa: #22C15E;
  --shadow-sm: 0 2px 10px rgba(18, 118, 106, .06);
  --shadow: 0 8px 28px rgba(18, 118, 106, .10);
  --shadow-lg: 0 14px 40px rgba(9, 63, 56, .22);
  --r: 16px;
  --r-lg: 22px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 460px; margin: 0 auto; min-height: 100dvh; position: relative; }
button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.ico-svg { display: inline-block; vertical-align: -0.18em; }

.page { padding: 18px 18px 110px; animation: fadein .22s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- brand ---------- */
.brandbar { display: flex; justify-content: center; padding: 6px 0 2px; }
.brandbar img { height: 54px; }
.locrow { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.locpill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.locpill .pin { color: var(--orange); display: flex; }
.locpill .chev { color: var(--muted); }

/* ---------- search ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 15px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
  color: var(--muted);
}
.search input { border: none; outline: none; flex: 1; background: transparent; color: var(--ink); font-size: 14px; }
.search input::placeholder { color: var(--faint); }

/* ---------- category chips ---------- */
.chips { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 56px; }
.chip .disc2 {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark); box-shadow: var(--shadow-sm);
  transition: all .15s ease;
}
.chip span.lbl { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip.on .disc2 { background: transparent; border: 2px solid var(--orange-deep); color: var(--orange-deep); box-shadow: none; }
.chip.on span.lbl { color: var(--orange-deep); font-weight: 700; }

.chips.dark .disc2 { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.chips.dark span.lbl { color: rgba(255,255,255,.75); }
.chips.dark .chip.on .disc2 { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.chips.dark .chip.on span.lbl { color: var(--orange); }

/* ---------- sections ---------- */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 0 12px; }
.sec h2 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--teal-dark); letter-spacing: 0; }
.sec .more { color: var(--teal); font-weight: 700; font-size: 12.5px; }

/* ---------- popular cards ---------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 148px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.pcard .ph { height: 96px; }
.pcard .body { padding: 10px 11px 12px; }
.pcard h4 { font-family: var(--serif); font-size: 14.5px; font-weight: 600; color: var(--teal-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.pcard .meta2 { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* ---------- photo w/ branded fallback ---------- */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, #E2EEEB, #F2E9D8); }
.ph::before {
  content: attr(data-i); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; color: var(--teal-soft); font-weight: 600;
}
.ph img { position: relative; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hungry banner ---------- */
.banner {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(115deg, #FDF9F0, #F7EFDD);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 4px 18px 20px; margin: 6px 0 18px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.banner .txt { flex: 1; }
.banner h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--teal-dark); }
.banner p { font-size: 12px; color: var(--muted); margin: 3px 0 12px; max-width: 170px; }
.banner .cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 11.5px;
  letter-spacing: .08em; padding: 10px 16px; border-radius: 10px;
}
.banner img { width: 150px; flex: 0 0 auto; }

.ref-banner {
  display: flex; align-items: center; gap: 10px; background: #FFF4E2; border: 1px solid #F6DFB6;
  border-radius: 13px; padding: 10px 14px; font-size: 12.5px; color: #8A5B1E; margin-bottom: 14px;
}

/* ---------- restaurant list rows ---------- */
.rlist { display: flex; flex-direction: column; gap: 10px; }
.rrow {
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 11px; box-shadow: var(--shadow-sm); transition: transform .12s;
}
.rrow:active { transform: scale(.985); }
.rrow .ph { width: 88px; height: 88px; border-radius: 16px; flex: 0 0 auto; }
.rrow .inf { flex: 1; min-width: 0; }
.rrow h3 { font-family: var(--serif); font-size: 17.5px; font-weight: 600; color: var(--teal-dark); letter-spacing: 0; }
.rrow .cui { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rrow .meta2 { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.rrow .chevr { color: var(--faint); flex: 0 0 auto; }
.meta2 .star { color: var(--orange); font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }
.meta2 .dotsep { color: var(--faint); }
.meta2 .gsrc { font-size: 9.5px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.stbadge { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.stbadge.open { background: #E5F3EC; color: var(--ok); }
.stbadge.closed { background: #F1F1EE; color: var(--muted); }
.stbadge.wa-only { background: #FFF1DC; color: var(--orange-deep); }

/* ---------- bottom nav ---------- */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px; background: var(--card);
  border-top: 1px solid var(--line);
  display: flex; z-index: 40; padding: 4px 0 calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(9,63,56,.05);
}
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 4px; color: var(--faint); font-size: 10px; font-weight: 700; }
.nav a.on { color: var(--orange); }

/* ---------- restaurant detail ---------- */
.hero { position: relative; height: 230px; margin: -18px -18px 0; }
.hero .ph { position: absolute; inset: 0; }
.hero .fab {
  position: absolute; top: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center;
  color: var(--ink); box-shadow: var(--shadow); z-index: 2;
}
.hero .fab.l { left: 16px; } .hero .fab.r { right: 16px; }
.sheet {
  position: relative; background: var(--card); border-radius: 26px 26px 0 0;
  margin: -28px -18px 0; padding: 22px 18px 8px; box-shadow: 0 -10px 30px rgba(9,63,56,.08);
}
.sheet h1 { font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: 0; color: var(--teal-dark); }
.sheet .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.meta-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.tagrow { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.tag { font-size: 11.5px; background: var(--cream); border: 1px solid var(--line); color: var(--teal-dark); font-weight: 700; border-radius: 999px; padding: 5px 12px; }
.about { color: var(--muted); font-size: 13px; margin-top: 12px; }
.openline { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #75827D; }
.openline::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.openline.closed::before { background: var(--faint); }
.openline.closed { color: var(--muted); }

.notice { border-radius: 13px; padding: 11px 13px; font-size: 12.5px; margin-top: 14px; line-height: 1.5; }
.notice.warn { background: #FFF4E2; border: 1px solid #F6DFB6; color: #8A5B1E; }
.notice.info { background: #EAF4F1; border: 1px solid #D2E6E0; color: var(--teal-dark); }

.cat-tabs { display: flex; gap: 20px; overflow-x: auto; margin: 20px 0 4px; border-bottom: 1.5px solid var(--line); scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: 0 0 auto; padding: 9px 2px 11px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.cat-tabs button.on { color: var(--ink); border-color: var(--orange); }

.mi { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mi:last-child { border-bottom: none; }
.mi .ph { width: 80px; height: 80px; border-radius: 16px; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.mi .inf { flex: 1; min-width: 0; }
.mi h4 { font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: var(--teal-dark); }
.mi p { color: var(--muted); font-size: 12px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mi .price { font-weight: 800; color: var(--teal); font-size: 14px; margin-top: 6px; }
.addbtn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(18,118,106,.3);
}
.qty { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); display: flex; align-items: center; justify-content: center; background: #fff; }
.qty button.fill { background: var(--teal); color: #fff; border: none; }
.qty b { min-width: 16px; text-align: center; font-size: 14px; }

/* ---------- floating cart bar ---------- */
.cartbar {
  position: fixed; bottom: 78px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 36px); max-width: 424px; background: var(--teal); color: #fff;
  border-radius: 15px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lg); z-index: 39; font-weight: 800; font-size: 14px;
}
.cartbar .l { display: flex; align-items: center; gap: 9px; }
.cartbar .n { background: rgba(255,255,255,.22); border-radius: 8px; font-size: 12px; padding: 3px 8px; }
.cartbar.wa { background: var(--wa); }

/* ---------- cards / forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 17px; margin-bottom: 14px; }
.card h3 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--teal-dark); }
.card h3 .lite { font-weight: 500; font-size: 11px; color: var(--muted); }

.ci { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: none; }
.ci .ph { width: 54px; height: 54px; border-radius: 12px; flex: 0 0 auto; }
.ci .inf { flex: 1; min-width: 0; }
.ci h4 { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--teal-dark); }
.ci .price { color: var(--muted); font-weight: 700; font-size: 12.5px; margin-top: 2px; }
.ci input { width: 100%; border: 1px dashed #DDD3BE; border-radius: 9px; padding: 6px 9px; font-size: 12px; margin-top: 7px; background: transparent; color: var(--ink); outline: none; }
.ci input:focus { border-color: var(--teal-soft); }

.sumrow { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4.5px 0; color: var(--muted); }
.sumrow b { color: var(--ink); }
.sumrow.total { color: var(--ink); font-weight: 800; font-size: 16.5px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 13px; padding: 12px 14px;
  background: #FDFCF9; color: var(--ink); outline: none; font-size: 14px;
}
.field input:focus, .field textarea:focus { border-color: var(--teal-soft); background: #fff; }

/* checkout stepper */
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 18px; }
.stepper .st { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.stepper .st .b { width: 22px; height: 22px; border-radius: 50%; background: var(--cream-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.stepper .st.on { color: var(--teal-dark); }
.stepper .st.on .b { background: var(--teal); color: #fff; }
.stepper .st.done .b { background: #DDEDE8; color: var(--teal); }
.stepper .ln { width: 26px; height: 1.5px; background: var(--line); }

.payopt { display: flex; align-items: center; gap: 13px; border: 1.5px solid var(--line); border-radius: 15px; padding: 14px 15px; margin-bottom: 10px; cursor: pointer; background: var(--card); width: 100%; text-align: left; transition: all .12s; }
.payopt.on { border-color: var(--teal); background: #F4FAF8; box-shadow: 0 4px 14px rgba(18,118,106,.08); }
.payopt .pic { width: 40px; height: 40px; border-radius: 11px; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--teal-dark); flex: 0 0 auto; }
.payopt .t { flex: 1; }
.payopt h4 { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; }
.payopt p { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.payopt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.payopt.on .radio { border-color: var(--teal); background: radial-gradient(circle at center, var(--teal) 0 45%, transparent 50%); }
.pill-reco { font-size: 9px; background: #E5F3EC; color: var(--ok); border-radius: 999px; padding: 2.5px 8px; margin-left: 7px; font-weight: 800; letter-spacing: .05em; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 14.5px;
  border-radius: 14px; padding: 16px; margin-top: 8px; box-shadow: 0 8px 20px rgba(18,118,106,.25);
  transition: transform .1s;
}
.btn:active { transform: scale(.98); }
.btn.orange { background: var(--orange); box-shadow: 0 8px 20px rgba(246,178,107,.35); }
.btn.ghost { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); box-shadow: none; }
.btn.wa { background: var(--wa); box-shadow: 0 8px 20px rgba(34,193,94,.25); }
.btn:disabled { opacity: .45; box-shadow: none; }

/* ---------- page header ---------- */
.phead { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 14px; }
.phead .back { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.phead h2 { text-align: center; font-size: 16px; font-weight: 800; }

/* ---------- tracking ---------- */
.mapcard { position: relative; height: 190px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; background: #EDF3EF; box-shadow: var(--shadow-sm); }
.mapcard svg { width: 100%; height: 100%; display: block; }
.eta {
  position: absolute; top: 12px; right: 12px; background: var(--card); border-radius: 11px;
  box-shadow: var(--shadow); padding: 7px 12px; font-size: 11px; color: var(--muted); font-weight: 600;
}
.eta b { display: block; color: var(--ink); font-size: 13px; }
@keyframes ride { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.track-code { text-align: center; margin: 2px 0 14px; }
.track-code .code { font-size: 20px; font-weight: 800; color: var(--teal-dark); letter-spacing: .04em; }
.track-code .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.steps { position: relative; }
.step { display: flex; gap: 14px; padding-bottom: 24px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step .dot {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; z-index: 1; flex: 0 0 auto; color: #fff;
}
.step:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 27px; bottom: 1px; width: 2px; background: var(--line); }
.step.done .dot { background: var(--teal); border-color: var(--teal); }
.step.done:not(:last-child)::before { background: var(--teal); }
.step.now .dot { border-color: var(--orange); }
.step.now .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.step h4 { font-size: 14px; font-weight: 800; }
.step p { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.step.now h4 { color: var(--orange-deep); }

/* ---------- DISCOVER (full-screen reels) ---------- */
.disc { position: fixed; inset: 0; background: #000; z-index: 50; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.disc::-webkit-scrollbar { display: none; }
.dslide { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #071e1a; }
.dslide video, .dslide .dph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dslide .dph { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.14) translate(-2%, -2%); } }
.dshade-t { position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
.dshade-b { position: absolute; inset: auto 0 0 0; height: 300px; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; }

.disc-top { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; z-index: 55; padding: calc(12px + env(safe-area-inset-top)) 14px 4px; display: flex; align-items: center; gap: 10px; }
.disc-close { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.disc-top .chips { margin: 0; padding: 2px; flex: 1; }
.disc-top .chip { width: 46px; }
.disc-top .disc2 { width: 42px; height: 42px; }

.dinfo { position: absolute; left: 18px; right: 86px; bottom: calc(28px + env(safe-area-inset-bottom)); color: #fff; z-index: 3; }
.dinfo h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.dinfo .drate { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 5px; }
.dinfo .drate .star { color: var(--orange); font-weight: 800; }
.dinfo .drate .gsrc { border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 0 4px; font-size: 9.5px; color: rgba(255,255,255,.7); }
.dinfo .dtags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.dinfo .dtags span { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.14); backdrop-filter: blur(4px); border-radius: 999px; padding: 4px 11px; }
.dorder {
  display: inline-flex; align-items: center; gap: 9px; background: var(--orange); color: #fff;
  font-weight: 800; font-size: 14px; border-radius: 999px; padding: 13px 24px; margin-top: 16px;
  box-shadow: 0 8px 24px rgba(246,178,107,.45);
}
.drail { position: absolute; right: 14px; bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; z-index: 3; }
.drail button { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); color: #fff; display: flex; align-items: center; justify-content: center; }
.dempty { height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.85); text-align: center; padding: 0 40px; gap: 14px; }
.dempty img { width: 130px; opacity: .9; }

/* ---------- onboarding ---------- */
.ob { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 30px; position: relative; }
.ob .blogo { width: 170px; margin-bottom: 8px; }
.ob h1 { font-family: var(--serif); font-weight: 600; font-size: 33px; line-height: 1.15; color: var(--teal-dark); margin: 14px 0 12px; letter-spacing: -.01em; }
.ob h1 .accent { color: var(--orange); }
.ob p { color: var(--muted); max-width: 270px; font-size: 14px; }
.ob .art { width: 240px; margin-top: 30px; }
.ob .dots { display: flex; gap: 7px; margin: 30px 0 18px; }
.ob .dots span { width: 7px; height: 7px; border-radius: 50%; background: #DDD3BE; transition: all .2s; }
.ob .dots span.on { background: var(--orange); width: 20px; border-radius: 4px; }
.ob .btn { max-width: 240px; }
.skip { position: absolute; top: calc(20px + env(safe-area-inset-top)); right: 24px; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.tagline { font-size: 12px; letter-spacing: .28em; font-weight: 800; color: var(--teal-dark); margin-top: 6px; }

.island-pick { width: 100%; display: flex; flex-direction: column; gap: 13px; margin-top: 24px; }
.ipick { position: relative; border-radius: var(--r-lg); overflow: hidden; height: 92px; border: 2.5px solid transparent; box-shadow: var(--shadow); }
.ipick .ph { position: absolute; inset: 0; }
.ipick .nm { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 20px; color: #fff; font-weight: 800; font-size: 17px; background: linear-gradient(90deg, rgba(9,63,56,.75), rgba(9,63,56,.05)); z-index: 2; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.ipick.on { border-color: var(--orange); }
.ipick .tick { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: var(--orange); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }

/* splash */
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.splash img.lg { width: 200px; }
.splash .spin { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: rot 1s linear infinite; margin-top: 30px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- profile / orders ---------- */
.plink { display: flex; align-items: center; gap: 13px; padding: 15px 2px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; width: 100%; text-align: left; }
.plink:last-child { border-bottom: none; }
.plink .pic { width: 38px; height: 38px; border-radius: 11px; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--teal-dark); flex: 0 0 auto; }
.plink .arr { margin-left: auto; color: var(--faint); font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 6px; }

.ocard { display: flex; align-items: center; gap: 13px; margin-bottom: 0; }
.ocard .st { margin-left: auto; text-align: right; flex: 0 0 auto; }
.stpill { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 4px 11px; letter-spacing: .02em; }
.stpill.live { background: #FFF1DC; color: var(--orange-deep); }
.stpill.done { background: #E5F3EC; color: var(--ok); }
.stpill.bad { background: #FBEAE5; color: var(--danger); }

.empty { text-align: center; color: var(--muted); padding: 54px 24px; }
.empty img { width: 150px; margin: 0 auto 18px; }
.empty a { color: var(--teal); font-weight: 800; }

.attr { text-align: center; color: var(--faint); font-size: 10.5px; margin-top: 22px; }

.toast {
  position: fixed; bottom: 140px; left: 50%; transform: translateX(-50%);
  background: var(--teal-deep); color: #fff; border-radius: 999px; padding: 11px 20px;
  font-size: 13px; font-weight: 700; z-index: 90; animation: fadein .2s ease; white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
