/* =========================================================================
   Ruang Kopi — Design System Pelanggan (sesuai desain Figma)
   Warna krem-peach, cokelat tua, aksen emas. Mobile-first, responsif.
   ========================================================================= */
:root {
  --rk-bg: #F4FAF4;
  --rk-surface: #FFFFFF;
  --rk-tint: #E8F5E9;
  --rk-tint-2: #D3EBD5;
  --rk-line: #D5EAD6;
  --rk-ink: #12301A;
  --rk-brown: #1B5E20;
  --rk-brown-2: #2E7D32;
  --rk-muted: #5E7A61;
  --rk-gold: #2E7D32;
  --rk-amber: #66BB6A;
  --rk-amber-soft: #DCEFDD;
  --rk-red: #D23C3C;
  --rk-green: #2E7D32;
  --rk-r-lg: 24px;
  --rk-r-md: 18px;
  --rk-r-sm: 12px;
  --rk-shadow: 0 14px 34px -22px rgba(27, 94, 32, .45);
  --rk-shadow-sm: 0 6px 18px -12px rgba(27, 94, 32, .35);
  --rk-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rk-nav-h: 68px;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-padding-top: 140px; }
body {
  font-family: var(--rk-font);
  background: var(--rk-bg);
  color: var(--rk-ink);
  font-size: 15px;
  min-height: 100vh;
}
body.rk-has-nav { padding-bottom: calc(var(--rk-nav-h) + env(safe-area-inset-bottom, 0px) + 12px); }
body.rk-has-cartbar { padding-bottom: calc(var(--rk-nav-h) + 96px + env(safe-area-inset-bottom, 0px)); }
h1, h2, h3, h4, h5, h6, .rk-display { font-family: var(--rk-font); font-weight: 700; letter-spacing: -.01em; color: var(--rk-ink); }
a { color: var(--rk-gold); }
img { max-width: 100%; }
.text-muted-rk { color: var(--rk-muted) !important; }
.text-forest, .text-gold { color: var(--rk-gold) !important; }
.bg-sage, .bg-tint { background: var(--rk-tint) !important; }

/* ---------- Kerangka ---------- */
.rk-shell { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.rk-narrow { width: 100%; max-width: 560px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.rk-section { margin-top: 26px; }
.rk-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.rk-section-title h2 { font-size: 1.2rem; margin: 0; }
.rk-section-title .small, .rk-section-title small { color: var(--rk-muted); font-weight: 600; }

/* ---------- Tombol ---------- */
.btn { border-radius: 999px; font-weight: 600; font-family: var(--rk-font); }
.btn-forest, .btn-brown { background: var(--rk-brown); color: #fff; border: 0; box-shadow: var(--rk-shadow-sm); }
.btn-forest:hover, .btn-forest:focus, .btn-brown:hover { background: #144A18; color: #fff; }
.btn-forest:disabled { background: #9DB8A0; color: #fff; }
.btn-sage, .btn-soft { background: var(--rk-tint); color: var(--rk-brown); border: 0; }
.btn-sage:hover, .btn-soft:hover { background: var(--rk-tint-2); color: var(--rk-brown); }
.btn-outline-forest { border: 1.5px solid var(--rk-brown); color: var(--rk-brown); background: transparent; }
.btn-outline-forest:hover { background: var(--rk-brown); color: #fff; }
.btn-amber { background: linear-gradient(180deg, #81C784, #66BB6A); color: var(--rk-brown); border: 0; box-shadow: 0 12px 26px -14px rgba(102, 187, 106, .9); }
.btn-amber:hover { color: var(--rk-brown); filter: brightness(.97); }
.rk-icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; position: relative;
  color: var(--rk-brown); background: transparent; border: 0; text-decoration: none; font-size: 1.15rem; flex-shrink: 0;
}
.rk-icon-btn:hover { background: var(--rk-tint); color: var(--rk-brown); }
.rk-icon-btn.dark { background: var(--rk-brown); color: #fff; }
.rk-dot {
  position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--rk-amber); color: var(--rk-brown); font-size: .68rem; font-weight: 800; display: grid; place-items: center;
}
.form-control, .form-select { border-radius: var(--rk-r-sm); border-color: var(--rk-line); background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--rk-amber); box-shadow: 0 0 0 .2rem rgba(102, 187, 106, .3); }

/* ---------- Topbar ---------- */
.rk-topbar {
  position: sticky; top: 0; z-index: 1030; background: rgba(244, 250, 244, .92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(213, 234, 214, .7);
}
.rk-topbar .rk-shell { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.rk-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rk-ink); font-weight: 700; font-size: 1.08rem; line-height: 1.1; margin-right: auto; min-width: 0; }
.rk-brand small { display: block; font-size: .74rem; font-weight: 500; color: var(--rk-muted); }
.rk-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; background: #fff; border: 1px solid var(--rk-line); color: var(--rk-brown); font-weight: 800; font-size: .82rem; }
.rk-mark img { width: 100%; height: 100%; object-fit: cover; }
.rk-table-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--rk-tint); color: var(--rk-brown); font-weight: 600; font-size: .82rem; white-space: nowrap; }
.rk-table-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rk-gold); }
.rk-topnav { display: none; }
.rk-table-banner { display: none; }

/* ---------- Navigasi bawah ---------- */
.rk-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--rk-line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px -24px rgba(27, 94, 32, .6);
}
.rk-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--rk-muted); font-size: .74rem; font-weight: 600; position: relative; padding: 4px 0; }
.rk-nav a i { font-size: 1.3rem; line-height: 1; position: relative; }
.rk-nav a.active { color: var(--rk-brown); font-weight: 800; }
.rk-nav a .rk-dot { top: -6px; right: calc(50% - 22px); }

/* ---------- Hero & banner ---------- */
.rk-banner {
  border-radius: var(--rk-r-lg); padding: 18px 20px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, #2E7D32 0%, #1B5E20 45%, #0E3B13 100%); box-shadow: var(--rk-shadow);
}
.rk-banner::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='100' cy='20' r='60' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E") no-repeat right top; pointer-events: none; }
.rk-banner h1 { color: #fff; font-size: 1.45rem; margin: 10px 0 4px; }
.rk-banner p { color: #DCEEDD; margin: 0; font-size: .86rem; }
.rk-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--rk-amber); color: var(--rk-brown); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rk-eyebrow.soft { background: var(--rk-amber-soft); color: var(--rk-gold); }

/* ---------- Pencarian & chip ---------- */
.rk-sticky-tools { position: sticky; top: 64px; z-index: 1020; background: var(--rk-bg); padding: 12px 0 8px; }
.rk-search { position: relative; }
.rk-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--rk-muted); }
.rk-search .form-control { height: 50px; border-radius: 999px; padding-left: 44px; background: var(--rk-tint); border: 0; font-weight: 500; }
.rk-search .form-control::placeholder { color: var(--rk-muted); }
.rk-filter-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--rk-tint); color: var(--rk-brown); border: 0; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.rk-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 2px; }
.rk-chips::-webkit-scrollbar { display: none; }
.rk-chip { flex-shrink: 0; padding: 9px 18px; border-radius: 999px; background: var(--rk-tint); color: var(--rk-brown); text-decoration: none; font-weight: 600; font-size: .88rem; border: 0; }
.rk-chip.active, .rk-chip:hover { background: var(--rk-brown); color: #fff; }

/* ---------- Kartu menu ---------- */
.rk-scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.rk-scroll::-webkit-scrollbar { display: none; }
.rk-scroll > * { scroll-snap-align: start; flex: 0 0 78%; max-width: 300px; }
.rk-card { background: var(--rk-surface); border-radius: var(--rk-r-lg); box-shadow: var(--rk-shadow-sm); overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; border: 1px solid rgba(213, 234, 214, .6); transition: transform .15s ease, box-shadow .15s ease; }
.rk-card:hover { transform: translateY(-2px); box-shadow: var(--rk-shadow); }
.rk-card.is-out { opacity: .55; }
.rk-card-media { position: relative; display: block; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: 18px; overflow: hidden; background: var(--rk-tint); }
.rk-scroll .rk-card-media { aspect-ratio: 4 / 3; }
.rk-card-media img { width: 100%; height: 100%; object-fit: cover; }
.rk-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; color: #8FC293; background: linear-gradient(145deg, #E8F5E9, #CFE8D1); }
.rk-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.rk-badge-rec { top: 10px; left: 10px; background: var(--rk-amber); color: var(--rk-brown); }
.rk-badge-best { top: 10px; left: 10px; background: var(--rk-brown); color: #fff; }
.rk-badge-out { inset: 0; margin: auto; width: max-content; height: max-content; background: rgba(255, 255, 255, .9); color: var(--rk-muted); padding: 6px 14px; }
.rk-rating-chip { position: absolute; z-index: 2; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); color: var(--rk-ink); border-radius: 999px; padding: 3px 9px; font-size: .74rem; font-weight: 700; }
.rk-rating-chip i { color: #E8A93A; }
.rk-rank { position: absolute; z-index: 2; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--rk-brown); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.rk-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.rk-card-title { font-weight: 700; font-size: 1rem; color: var(--rk-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rk-card-meta { color: var(--rk-muted); font-size: .8rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rk-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; gap: 6px; }
.rk-price { color: var(--rk-gold); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.rk-price small { font-size: .7rem; font-weight: 600; color: var(--rk-muted); }
.rk-add { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--rk-tint); color: var(--rk-brown); font-size: 1.15rem; flex-shrink: 0; }
.rk-add:hover { background: var(--rk-brown); color: #fff; }
.rk-scroll .rk-add { background: var(--rk-brown); color: #fff; width: 40px; height: 40px; }

/* Panel rekomendasi */
.rk-reco h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; margin: 0; }
.rk-reco h2 .rk-spark { width: 30px; height: 30px; border-radius: 50%; background: var(--rk-amber); color: var(--rk-brown); display: grid; place-items: center; font-size: .9rem; }
.rk-reco p { color: var(--rk-muted); font-size: .84rem; margin: 4px 0 10px; }

/* Kartu horizontal (best seller) */
.rk-wide { display: flex; gap: 14px; align-items: center; background: var(--rk-tint); border-radius: var(--rk-r-lg); padding: 12px; text-decoration: none; color: inherit; }
.rk-wide .rk-thumb { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; flex-shrink: 0; position: relative; }
.rk-thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--rk-tint); display: grid; place-items: center; color: #8FC293; overflow: hidden; }
.rk-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Panel umum ---------- */
.rk-panel { background: var(--rk-surface); border-radius: var(--rk-r-lg); padding: 18px; box-shadow: var(--rk-shadow-sm); border: 1px solid rgba(213, 234, 214, .6); }
.rk-panel.tint { background: var(--rk-tint); box-shadow: none; border: 0; }
.rk-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rk-panel-title h2 { font-size: 1.12rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.rk-panel-title h2::before { content: ''; width: 4px; height: 20px; border-radius: 4px; background: var(--rk-gold); }
.rk-panel-title.plain h2::before { display: none; }
.rk-panel-title small { color: var(--rk-muted); font-weight: 600; font-size: .78rem; }
.rk-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--rk-tint); color: var(--rk-brown); }
.rk-pill-dark { background: var(--rk-brown); color: #fff; }
.rk-pill-amber { background: var(--rk-amber); color: var(--rk-brown); }
.rk-pill-green, .rk-pill-sage { background: #E3F2E8; color: var(--rk-green); }
.rk-pill-red { background: #FBE3E1; color: var(--rk-red); }

/* ---------- Detail menu ---------- */
.rk-detail-media { position: relative; border-radius: var(--rk-r-lg); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--rk-tint); box-shadow: var(--rk-shadow); }
.rk-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.rk-detail-media .rk-placeholder { font-size: 4rem; }
.rk-detail-media .rk-badge-rec { top: 14px; left: 14px; }
.rk-detail-sheet { position: relative; margin: -46px 8px 0; z-index: 3; }
.rk-detail-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rk-detail-top h1 { font-size: 1.5rem; margin: 0; line-height: 1.15; }
.rk-detail-top .rk-price { font-size: 1.5rem; text-align: right; line-height: 1.1; }
.rk-ingredients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rk-ingredients span { background: var(--rk-tint); color: var(--rk-brown); border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 600; }
.rk-stat { background: var(--rk-tint); border-radius: 14px; text-align: center; padding: 10px 4px; font-size: .74rem; color: var(--rk-muted); font-weight: 600; }
.rk-stat strong { display: block; color: var(--rk-ink); font-size: 1.05rem; }

/* Opsi berbentuk tombol */
.rk-segment { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.rk-segment label { margin: 0; }
.rk-segment input { position: absolute; opacity: 0; pointer-events: none; }
.rk-segment span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px; border-radius: 14px; background: var(--rk-tint); color: var(--rk-brown); font-weight: 600; font-size: .88rem; cursor: pointer; transition: .15s; }
.rk-segment span small { font-size: .7rem; font-weight: 600; color: var(--rk-gold); }
.rk-segment input:checked + span { background: var(--rk-brown); color: #fff; box-shadow: var(--rk-shadow-sm); }
.rk-segment input:checked + span small { color: var(--rk-amber); }
.rk-segment input:focus-visible + span { outline: 3px solid rgba(102, 187, 106, .6); }

/* Opsi berbentuk baris (radio besar) */
.rk-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--rk-r-md); background: #fff; border: 1.5px solid var(--rk-line); margin-bottom: 10px; cursor: pointer; transition: .15s; font-weight: 600; }
.rk-option input { position: absolute; opacity: 0; }
.rk-option .rk-opt-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--rk-tint); display: grid; place-items: center; color: var(--rk-brown); font-size: 1.2rem; flex-shrink: 0; }
.rk-option .rk-opt-check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--rk-tint); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.rk-option:has(input:checked) { background: var(--rk-brown); color: #fff; border-color: var(--rk-brown); box-shadow: var(--rk-shadow); }
.rk-option:has(input:checked) .rk-opt-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.rk-option:has(input:checked) .rk-opt-check { background: var(--rk-amber); color: var(--rk-brown); }
.rk-option:has(input:focus-visible) { outline: 3px solid rgba(102, 187, 106, .6); }

/* ---------- Jumlah (qty) ---------- */
.rk-qty { display: inline-flex; align-items: center; gap: 4px; background: var(--rk-tint); border-radius: 999px; padding: 4px; }
.rk-qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--rk-brown); font-size: 1.1rem; display: grid; place-items: center; box-shadow: var(--rk-shadow-sm); }
.rk-qty input { width: 32px; text-align: center; border: 0; background: transparent; font-weight: 700; padding: 0; color: var(--rk-ink); -moz-appearance: textfield; }
.rk-qty input::-webkit-outer-spin-button, .rk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rk-qty-sm button { width: 28px; height: 28px; font-size: .95rem; }

/* ---------- Bar aksi bawah ---------- */
.rk-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--rk-line); box-shadow: 0 -12px 30px -24px rgba(27, 94, 32, .6); }
.rk-actionbar .rk-narrow, .rk-actionbar .rk-shell { display: flex; align-items: center; gap: 12px; }
.rk-actionbar .btn-forest { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; }
.rk-cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--rk-nav-h) + env(safe-area-inset-bottom, 0px) + 10px); z-index: 1035;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: #fff;
  background: var(--rk-brown); border-radius: 999px; padding: 10px 10px 10px 22px; box-shadow: 0 18px 40px -18px rgba(27, 94, 32, .9);
  max-width: 560px; margin: 0 auto;
}
.rk-cartbar small { color: #CFE6D0; display: block; font-size: .74rem; }
.rk-cartbar strong { color: #fff; font-size: 1.05rem; }
.rk-cartbar .btn-sage { background: var(--rk-amber); color: var(--rk-brown); padding: 10px 18px; }

/* ---------- Keranjang ---------- */
.rk-line { display: flex; gap: 12px; padding: 14px; background: #fff; border-radius: var(--rk-r-md); box-shadow: var(--rk-shadow-sm); margin-bottom: 12px; border: 1px solid rgba(213, 234, 214, .6); }
.rk-line .rk-thumb { width: 84px; height: 84px; border-radius: 16px; }
.rk-line-name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.rk-line-opts { color: var(--rk-muted); font-size: .8rem; margin-top: 2px; }
.rk-line-note { color: #2E7D32; font-size: .78rem; font-style: italic; margin-top: 2px; }
.rk-dinein { display: flex; align-items: center; gap: 12px; background: var(--rk-tint); border-radius: var(--rk-r-md); padding: 12px 14px; }
.rk-dinein .rk-dinein-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--rk-amber); color: var(--rk-brown); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.rk-sum-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; color: #3D5A40; }
.rk-sum-row.total { font-weight: 800; font-size: 1.1rem; color: var(--rk-ink); border-top: 1px solid var(--rk-line); margin-top: 8px; padding-top: 12px; }
.rk-sum-row.total span:last-child { color: var(--rk-gold); font-size: 1.35rem; }

/* Metode bayar */
.rk-pay { display: block; margin: 0; cursor: pointer; }
.rk-pay input { position: absolute; opacity: 0; }
.rk-pay > span { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--rk-r-md); background: #fff; border: 1.5px solid var(--rk-line); transition: .15s; }
.rk-pay > span > i { width: 44px; height: 44px; border-radius: 14px; background: var(--rk-tint); color: var(--rk-brown); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.rk-pay > span::after { content: ''; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B3D3B5; flex-shrink: 0; }
.rk-pay input:checked + span { border-color: var(--rk-brown); background: #F7FCF7; box-shadow: var(--rk-shadow-sm); }
.rk-pay input:checked + span::after { border: 7px solid var(--rk-brown); }
.rk-qris { display: inline-block; background: #fff; padding: 14px; border-radius: 18px; box-shadow: var(--rk-shadow-sm); }
.rk-wallets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rk-wallets span { background: var(--rk-tint-2); border-radius: 8px; padding: 3px 9px; font-size: .74rem; font-weight: 700; color: var(--rk-brown); }

/* ---------- Status pesanan ---------- */
.rk-order-hero { background: radial-gradient(130% 120% at 100% 0%, #2E7D32 0%, #1B5E20 55%, #0E3B13 100%); color: #fff; border-radius: var(--rk-r-lg); padding: 18px 20px; box-shadow: var(--rk-shadow); }
.rk-order-hero .rk-ring { --p: 50; width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--rk-amber) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); }
.rk-order-hero .rk-ring span { width: 58px; height: 58px; border-radius: 50%; background: #124016; display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.rk-order-hero h1 { color: #fff; font-size: 1.3rem; margin: 2px 0 4px; }
.rk-order-hero small { color: #CFE6D0; }
.rk-order-hero .rk-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 14px; }
.rk-order-hero .rk-bar div { height: 100%; background: var(--rk-amber); border-radius: 6px; }
.rk-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.rk-steps li { position: relative; padding: 0 0 22px 52px; min-height: 44px; }
.rk-steps li:last-child { padding-bottom: 0; }
.rk-steps li::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 2px; width: 2px; background: var(--rk-line); }
.rk-steps li:last-child::before { display: none; }
.rk-steps li.done::before { background: var(--rk-amber); }
.rk-steps .dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rk-tint); color: #97B699; font-size: 1.05rem; }
.rk-steps li.done .dot { background: var(--rk-amber); color: var(--rk-brown); }
.rk-steps li.current .dot { background: var(--rk-brown); color: #fff; box-shadow: 0 0 0 5px rgba(102, 187, 106, .35); }
.rk-steps strong { display: block; font-size: 1rem; }
.rk-steps li.current strong { color: var(--rk-gold); }
.rk-steps li:not(.done) strong { color: #6B876D; }
.rk-steps small { color: var(--rk-muted); font-size: .82rem; }
.rk-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rk-stars input { position: absolute; opacity: 0; }
.rk-stars label { font-size: 1.7rem; color: #CFE3D0; cursor: pointer; line-height: 1; }
.rk-stars input:checked ~ label, .rk-stars label:hover, .rk-stars label:hover ~ label { color: #E8A93A; }
.rk-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--rk-amber); color: var(--rk-brown); }
.rk-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rk-status-pending { background: #FFF1D6; color: #9A6A00; }
.rk-status-received, .rk-status-preparing { background: var(--rk-amber); color: var(--rk-brown); }
.rk-status-ready { background: #E3F2E8; color: var(--rk-green); }
.rk-status-completed { background: #E3EFE3; color: var(--rk-brown-2); }
.rk-status-cancelled { background: #FBE3E1; color: var(--rk-red); }
.rk-progress { height: 6px; border-radius: 6px; background: var(--rk-tint-2); overflow: hidden; }
.rk-progress > div { height: 100%; background: linear-gradient(90deg, #81C784, var(--rk-amber)); border-radius: 6px; transition: width .3s; }

/* ---------- Welcome ---------- */
.rk-welcome { min-height: 100vh; min-height: 100svh; color: #fff; position: relative; display: flex; align-items: stretch; justify-content: center; overflow: hidden;
  background: radial-gradient(90% 60% at 20% 15%, rgba(46, 125, 50, .55), transparent 60%), radial-gradient(80% 60% at 90% 80%, rgba(102, 187, 106, .18), transparent 60%), linear-gradient(180deg, #1B5E20 0%, #124A16 55%, #0A2C0D 100%); }
.rk-welcome.has-photo { background-size: cover; background-position: center; }
.rk-welcome.has-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 36, 12, .55) 0%, rgba(8, 36, 12, .78) 50%, rgba(6, 26, 9, .96) 100%); }
.rk-welcome-inner { position: relative; z-index: 1; width: 100%; max-width: 480px; padding: 28px 22px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.rk-welcome-brand { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: .74rem; font-weight: 700; letter-spacing: .12em; }
.rk-welcome-brand::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rk-amber); }
.rk-welcome-logo { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 18px 40px -16px rgba(0, 0, 0, .8); overflow: hidden; color: var(--rk-brown); font-weight: 800; font-size: 1.6rem; }
.rk-welcome-logo img { width: 100%; height: 100%; object-fit: cover; }
.rk-welcome-kicker { color: var(--rk-amber); font-size: .78rem; font-weight: 700; letter-spacing: .22em; display: flex; align-items: center; gap: 10px; }
.rk-welcome-kicker::before, .rk-welcome-kicker::after { content: ''; width: 34px; height: 1px; background: rgba(102, 187, 106, .6); }
.rk-welcome h1 { color: #fff; font-size: 2rem; line-height: 1.15; margin: 0; }
.rk-welcome p { color: #D8ECD9; margin: 0; }
.rk-table-card { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.rk-table-card .rk-table-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(0, 0, 0, .3); display: grid; place-items: center; font-size: 1.3rem; color: var(--rk-amber); flex-shrink: 0; }
.rk-table-card strong { font-size: 1.2rem; letter-spacing: .02em; }
.rk-table-card small { color: #C8E2C9; display: block; }
.rk-connected { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: rgba(102, 187, 106, .2); color: var(--rk-amber); font-size: .66rem; font-weight: 800; letter-spacing: .04em; margin-left: 6px; vertical-align: middle; }
.rk-feature-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rk-feature-chips span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); font-size: .76rem; font-weight: 600; color: #E8F5E9; }
.rk-welcome .btn-amber { width: 100%; padding: 16px; font-size: 1.05rem; }
.rk-welcome .rk-skip { color: #D8ECD9; font-weight: 600; text-decoration: none; font-size: .9rem; }

/* ---------- Kuisioner ---------- */
.rk-q-head { background: var(--rk-tint); border-radius: 0 0 var(--rk-r-lg) var(--rk-r-lg); padding: 14px 0 20px; margin-bottom: 18px; }
.rk-q-step-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 700; color: var(--rk-brown); }
.rk-q-step-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rk-gold); }
.rk-q-kicker { color: var(--rk-gold); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 14px 0 4px; }
.q-step legend { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.q-step legend .q-num { width: 26px; height: 26px; border-radius: 50%; background: var(--rk-brown); color: #fff; display: grid; place-items: center; font-size: .82rem; flex-shrink: 0; }
.rk-q-note { display: flex; gap: 12px; align-items: flex-start; background: var(--rk-tint); border-radius: var(--rk-r-md); padding: 14px; margin-top: 8px; }
.rk-q-note i { width: 40px; height: 40px; border-radius: 50%; background: var(--rk-amber); color: var(--rk-brown); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Lain-lain ---------- */
.rk-empty { text-align: center; padding: 40px 16px; color: var(--rk-muted); }
.rk-empty-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--rk-tint); color: var(--rk-gold); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px; }
.rk-sheet { border-radius: 24px 24px 0 0; max-height: 75vh; }
.rk-sheet-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--rk-ink); font-weight: 600; margin-bottom: 6px; background: var(--rk-tint); }
.rk-sheet-item.active { background: var(--rk-brown); color: #fff; }
.rk-toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--rk-nav-h) + 90px); z-index: 1100; width: calc(100% - 32px); max-width: 420px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.rk-toast { pointer-events: auto; background: var(--rk-brown); color: #fff; border-radius: 16px; padding: 12px 16px; font-weight: 600; font-size: .9rem; box-shadow: var(--rk-shadow); display: flex; align-items: center; gap: 10px; animation: rkIn .25s ease; }
.rk-toast.error { background: var(--rk-red); }
.rk-toast i { color: var(--rk-amber); }
@keyframes rkIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rk-footer { color: var(--rk-muted); font-size: .8rem; text-align: center; padding: 24px 0; }
.rk-info { background: #fff; border-radius: var(--rk-r-md); padding: 18px; height: 100%; box-shadow: var(--rk-shadow-sm); }
.rk-info i { color: var(--rk-gold); font-size: 1.4rem; }
.rk-num { font-variant-numeric: tabular-nums; }

/* Landing (halaman utama tanpa meja) */
.rk-hero { padding: 36px 0 28px; }
.rk-hero h1 { font-size: 2.1rem; line-height: 1.15; }
.rk-hero-copy p { color: var(--rk-muted); }
.rk-hero-arch, .rk-hero-fallback { border-radius: 28px; overflow: hidden; background: radial-gradient(120% 120% at 80% 0%, #2E7D32, #1B5E20 60%, #0E3B13); min-height: 260px; display: grid; place-items: center; color: var(--rk-amber); font-size: 4rem; box-shadow: var(--rk-shadow); }
.rk-hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.rk-hero-note { color: var(--rk-muted); font-size: .85rem; }
.rk-archway, .rk-table-code, .rk-area, .rk-steps-grid { all: unset; }

/* =========================================================================
   Responsif
   ========================================================================= */
@media (min-width: 576px) {
  .rk-scroll > * { flex-basis: 46%; }
}
@media (min-width: 768px) {
  body { font-size: 15.5px; }
  .rk-shell { padding-left: 24px; padding-right: 24px; }
  .rk-banner { padding: 26px 30px; }
  .rk-banner h1 { font-size: 1.9rem; }
  .rk-scroll > * { flex-basis: 31%; }
  .rk-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .rk-detail-layout .rk-detail-aside { position: sticky; top: 84px; }
  .rk-detail-sheet { margin: -56px 18px 0; }
  .rk-two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .rk-two-col > .rk-col-side { position: sticky; top: 84px; }
  .rk-narrow.rk-wide-md { max-width: 980px; }
  .rk-welcome h1 { font-size: 2.4rem; }
  .rk-cartbar { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); }
}
@media (min-width: 992px) {
  :root { --rk-nav-h: 0px; }
  .rk-nav { display: none; }
  body.rk-has-nav { padding-bottom: 24px; }
  body.rk-has-cartbar { padding-bottom: 110px; }
  .rk-topbar .rk-shell { min-height: 72px; gap: 14px; }
  .rk-topnav { display: flex; gap: 4px; background: var(--rk-tint); border-radius: 999px; padding: 4px; margin: 0 auto; }
  .rk-topnav a { padding: 8px 18px; border-radius: 999px; text-decoration: none; color: var(--rk-brown); font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 6px; position: relative; }
  .rk-topnav a.active { background: var(--rk-brown); color: #fff; }
  .rk-topnav a .rk-dot { position: static; margin-left: 2px; }
  .rk-brand { margin-right: 0; }
  .rk-sticky-tools { top: 72px; }
  .rk-scroll > * { flex-basis: 23.5%; }
  .rk-cartbar { bottom: 20px; }
  .rk-toast-wrap { bottom: 110px; }
  .rk-actionbar { left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); width: min(720px, calc(100% - 48px)); border-radius: 999px; border: 1px solid var(--rk-line); padding: 10px 12px; }
  .rk-actionbar .rk-narrow, .rk-actionbar .rk-shell { max-width: none; padding: 0; }
  .rk-hero { padding: 64px 0 40px; }
  .rk-hero h1 { font-size: 2.8rem; }
  .rk-welcome-inner { max-width: 520px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Penyesuaian kartu & navigasi (hasil uji pratinjau) ---------- */
.rk-card-foot .rk-price { min-width: 0; line-height: 1.1; }
.rk-card-foot .rk-price small { display: block; font-size: .66rem; line-height: 1.2; }
.rk-topnav a i { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 575.98px) {
  .row .rk-card-body { padding: 10px 12px 12px; }
  .row .rk-card-title { font-size: .92rem; }
  .row .rk-card-foot .rk-price { font-size: .95rem; }
  .row .rk-add { width: 32px; height: 32px; font-size: 1rem; }
  .rk-order-hero .rk-pill { font-size: .66rem; }
}

/* ---------- Palet hijau: penyesuaian kontras ---------- */
:root { --rk-leaf: #A5D6A7; }
.rk-badge-rec, .rk-eyebrow, .rk-pill-amber, .rk-dot, .rk-status-received, .rk-status-preparing,
.rk-reco h2 .rk-spark, .rk-dinein .rk-dinein-icon, .rk-q-note i, .rk-steps li.done .dot { background: var(--rk-leaf); color: var(--rk-brown); }
.rk-segment input:checked + span small, .rk-welcome-kicker, .rk-connected, .rk-table-card .rk-table-icon { color: var(--rk-leaf); }
.rk-welcome-kicker::before, .rk-welcome-kicker::after { background: rgba(165, 214, 167, .6); }
.rk-connected { background: rgba(165, 214, 167, .18); }
.rk-order-hero .rk-ring { background: conic-gradient(var(--rk-leaf) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); }
.rk-order-hero .rk-bar div { background: var(--rk-leaf); }
.btn-forest .text-warning, .rk-actionbar .text-warning { color: var(--rk-leaf) !important; }
.rk-cartbar .btn-sage { background: var(--rk-leaf); color: var(--rk-brown); }
.rk-toast i { color: var(--rk-leaf); }

/* ---------- Carousel rekomendasi: tombol panah & tarik ---------- */
.rk-scroll-wrap { position: relative; }
.rk-scroll.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rk-scroll.is-dragging a { pointer-events: none; }
.rk-scroll-btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--rk-brown); box-shadow: var(--rk-shadow); display: grid; place-items: center; font-size: 1.2rem;
}
.rk-scroll-btn:hover { background: var(--rk-brown); color: #fff; }
.rk-scroll-btn.prev { left: -8px; }
.rk-scroll-btn.next { right: -8px; }
@media (hover: none) { .rk-scroll-btn { display: none; } }   /* ponsel/tablet: cukup digeser dengan jari */
@media (hover: hover) { .rk-scroll { cursor: grab; } }
