/* [NEW 2026-09-25] Tiket Bioskop — tampilan chat meniru WhatsApp versi iOS (dipakai /bioskop.html & /admin-bioskop.html) */
:root {
  --ios-bg: #ffffff; --ios-bar: rgba(246,246,246,.92); --ios-sep: #c6c6c8; --ios-sep-light: #e5e5ea;
  --ios-text: #000000; --ios-sub: #8e8e93; --ios-blue: #007aff; --ios-red: #ff3b30; --ios-group: #f2f2f7;
  --wa-green: #25d366; --wa-out: #d9fdd3; --wa-in: #ffffff; --wa-wall: #efeae2; --wa-read: #34b7f1; --wa-sys: #fff5c4;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; } /* atribut hidden harus menang atas display:flex milik .lightbox/.notice/.empty */
html, body { margin: 0; height: 100%; background: #e9e9ee; font-family: var(--font); color: var(--ios-text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app { position: relative; max-width: 560px; height: 100%; margin: 0 auto; background: var(--ios-bg); overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.view { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--ios-bg); }
.view.on { display: flex; }

/* ---------- bar navigasi iOS ---------- */
.nav { flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: calc(env(safe-area-inset-top, 0px) + 6px) 8px 6px; background: var(--ios-bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--ios-sep); position: relative; z-index: 3; }
.nav-btn { display: inline-flex; align-items: center; gap: 2px; min-width: 44px; min-height: 36px; padding: 4px 6px; border: 0; background: none; color: var(--ios-blue); font-size: 17px; text-decoration: none; border-radius: 8px; }
.nav-btn.icon { justify-content: center; }
.nav-btn:disabled { opacity: .35; }
.nav-btn svg { width: 26px; height: 26px; }
.nav-title-small { flex: 1; text-align: center; font-weight: 600; font-size: 17px; opacity: 0; transition: opacity .15s; }
.nav-title-small.show { opacity: 1; }
.back-badge { background: var(--ios-blue); color: #fff; border-radius: 10px; font-size: 13px; padding: 0 6px; min-width: 20px; text-align: center; margin-left: 2px; }
.nav-btn:focus-visible, .chat-row:focus-visible, .pill-btn:focus-visible, .primary:focus-visible, .send:focus-visible { outline: 3px solid rgba(0,122,255,.45); outline-offset: 2px; }

/* ---------- daftar chat ---------- */
.list-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.big-title { font-size: 34px; font-weight: 700; letter-spacing: .3px; margin: 6px 16px 8px; }
.search { display: flex; align-items: center; gap: 6px; margin: 0 16px 10px; padding: 7px 10px; background: #eeeef0; border-radius: 10px; color: var(--ios-sub); }
.search svg { width: 18px; height: 18px; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; color: var(--ios-text); }
.notice { margin: 4px 16px 12px; padding: 12px 14px; background: var(--ios-group); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.notice span { color: var(--ios-sub); font-size: 14px; }
.notice .pill-btn { align-self: flex-start; margin-top: 6px; }
.chats { list-style: none; margin: 0; padding: 0; }
.chat-row { display: flex; align-items: center; gap: 12px; padding: 0 0 0 16px; cursor: pointer; }
.chat-row:active { background: #e5e5ea; }
.chat-mid { flex: 1; min-width: 0; padding: 11px 16px 11px 0; border-bottom: .5px solid var(--ios-sep-light); }
.chat-top, .chat-bottom { display: flex; align-items: center; gap: 8px; }
.chat-top b { flex: 1; font-size: 17px; font-weight: 600; }
.chat-top time { font-size: 14px; color: var(--ios-sub); }
.chat-top time.hot { color: var(--wa-green); font-weight: 600; }
.chat-bottom { margin-top: 2px; }
.chat-bottom > span:first-child { flex: 1; color: var(--ios-sub); font-size: 15px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.badge { background: var(--wa-green); color: #fff; font-size: 13px; font-weight: 600; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.status-dot { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #eef4ff; color: var(--ios-blue); white-space: nowrap; }
.status-dot.selesai { background: #e9f9ee; color: #1f9d55; }
.status-dot.dibatalkan { background: #fdecec; color: var(--ios-red); }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 20px; }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.avatar svg { width: 24px; height: 24px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 28px; color: var(--ios-sub); font-size: 15px; }
.empty svg { width: 56px; height: 56px; stroke-width: 1.4; color: #c7c7cc; }
.empty b { color: var(--ios-text); font-size: 17px; }
.pill-btn { display: inline-block; border: 0; background: var(--ios-blue); color: #fff; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 20px; text-decoration: none; margin-top: 6px; }

/* ---------- ruang chat ---------- */
.chat-nav { gap: 2px; }
.chat-head { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 2px 4px; text-align: left; }
.chat-head-text { display: flex; flex-direction: column; min-width: 0; }
.chat-head-text b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head-text small { font-size: 12.5px; color: var(--ios-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-panel { flex: none; background: var(--ios-group); border-bottom: .5px solid var(--ios-sep); padding: 6px 16px 10px; max-height: 45%; overflow: auto; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: .5px solid var(--ios-sep-light); font-size: 14px; }
.info-row span { color: var(--ios-sub); }
.info-row b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.info-actions { display: flex; gap: 8px; padding-top: 10px; flex-wrap: wrap; }
.thread { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 10px 12px; background-color: var(--wa-wall);
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1.2px), radial-gradient(rgba(0,0,0,.025) 1px, transparent 1.2px);
  background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; }
.day { display: flex; justify-content: center; margin: 10px 0 6px; position: sticky; top: 4px; z-index: 1; }
.day span { background: rgba(255,255,255,.92); color: #54656f; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.sys { display: flex; justify-content: center; margin: 6px 24px; }
.sys span { background: var(--wa-sys); color: #54656f; font-size: 12.5px; line-height: 1.4; text-align: center; padding: 5px 10px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.msg-row { display: flex; margin: 1px 0; }
.msg-row.me { justify-content: flex-end; }
.msg-row.tail { margin-bottom: 6px; }
.bubble { position: relative; max-width: 78%; padding: 6px 8px 7px 9px; border-radius: 12px; font-size: 16px; line-height: 1.35; box-shadow: 0 1px .5px rgba(11,20,26,.13); overflow-wrap: anywhere; white-space: pre-wrap; }
.msg-row.in .bubble { background: var(--wa-in); }
.msg-row.me .bubble { background: var(--wa-out); }
.msg-row.tail.in .bubble { border-top-left-radius: 12px; border-bottom-left-radius: 4px; }
.msg-row.tail.me .bubble { border-bottom-right-radius: 4px; }
.msg-row.tail.in .bubble::before, .msg-row.tail.me .bubble::before { content: ""; position: absolute; bottom: 0; width: 12px; height: 13px; }
.msg-row.tail.in .bubble::before { left: -5px; background: radial-gradient(circle at 0 0, transparent 11px, var(--wa-in) 11.5px); }
.msg-row.tail.me .bubble::before { right: -5px; background: radial-gradient(circle at 100% 0, transparent 11px, var(--wa-out) 11.5px); }
.bubble .meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -4px 10px; font-size: 11px; color: #667781; white-space: nowrap; }
.bubble .meta svg { width: 16px; height: 11px; stroke-width: 1.8; }
.bubble .meta .read { color: var(--wa-read); }
.bubble .meta .fail { color: var(--ios-red); font-weight: 700; }
.bubble img { display: block; max-width: 100%; width: 260px; max-height: 340px; object-fit: cover; border-radius: 8px; margin: -2px -4px 4px -5px; cursor: zoom-in; background: #ddd; }
.bubble a { color: #027eb5; }
.bubble.pending { opacity: .75; }
.ticket { margin: 8px auto 10px; max-width: 320px; background: #fff; border-radius: 14px; box-shadow: 0 1px .5px rgba(11,20,26,.13); overflow: hidden; }
.ticket-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #1c1c1e, #3a3a3c); color: #fff; }
.ticket-top svg { width: 28px; height: 28px; color: #ffd60a; }
/* [NEW 2026-09-29] kartu QRIS di dalam bubble chat — tagihan yang dibuat penjual untuk pesanan MINAT */
.qris-card { margin-top: 8px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); text-align: center; }
.qris-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; color: var(--ios-sub); }
.qris-top svg { width: 16px; height: 16px; color: var(--ios-blue); }
.qris-top b { flex: 1; text-align: left; color: var(--ios-text); }
.qris-amt { font-weight: 700; color: var(--ios-text); font-size: 14.5px; }
.qris-img { width: 180px; max-width: 100%; border-radius: 8px; background: #fff; padding: 6px; box-shadow: 0 0 0 .5px rgba(0,0,0,.1); }
.qris-btn { display: inline-block; margin-top: 8px; border: 0; background: var(--ios-blue); color: #fff; font-weight: 600; font-size: 13.5px; padding: 8px 16px; border-radius: 99px; text-decoration: none; cursor: pointer; }
.ticket-top b { display: block; font-size: 16px; }
.ticket-top small { color: rgba(255,255,255,.72); font-size: 12.5px; }
.ticket-body { padding: 8px 14px 12px; border-top: 2px dashed #e5e5ea; font-size: 14px; }
.ticket-body div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ticket-body span { color: var(--ios-sub); }
.ticket-body b { font-weight: 600; text-align: right; }

/* ---------- penulis pesan ---------- */
.composer { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 6px); background: var(--ios-bar); border-top: .5px solid var(--ios-sep); }
.composer textarea { flex: 1; resize: none; max-height: 120px; min-height: 36px; padding: 7px 14px; border: .5px solid #d1d1d6; border-radius: 18px; background: #fff; font-size: 16px; line-height: 1.3; outline: none; }
.composer .attach { color: var(--ios-blue); cursor: pointer; }
.send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ios-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.send svg { width: 20px; height: 20px; stroke-width: 2.4; }
.composer.closed { opacity: .6; pointer-events: none; }

/* ---------- lembar bawah iOS ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,0); transition: background .22s; z-index: 20; }
.sheet-bg.on { background: rgba(0,0,0,.35); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 92%; display: flex; flex-direction: column; background: var(--ios-group); border-radius: 14px 14px 0 0; z-index: 21; transform: translateY(100%); transition: transform .22s ease-out; }
.sheet.up { transform: translateY(0); }
.sheet-grab { width: 36px; height: 5px; border-radius: 3px; background: #c7c7cc; margin: 6px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 17px; }
.link { border: 0; background: none; color: var(--ios-blue); font-size: 17px; padding: 6px; }
.sheet-body { overflow-y: auto; padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.group { background: #fff; border-radius: 10px; margin: 10px 0 18px; overflow: hidden; }
.group .row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 14px; border-bottom: .5px solid var(--ios-sep-light); font-size: 16px; }
.group .row:last-child { border-bottom: 0; }
.group .row > span:first-child { flex: none; min-width: 108px; }
.group .row.col { flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 14px; }
.group .row.col > span:first-child { min-width: 0; color: var(--ios-sub); font-size: 13px; }
.group .row i { font-style: normal; color: var(--ios-sub); }
.group input, .group select { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; text-align: right; color: var(--ios-blue); padding: 6px 0; }
.group .row.col input { text-align: left; color: var(--ios-text); }
.stepper { margin-left: auto; display: inline-flex; align-items: center; background: #eeeef0; border-radius: 9px; overflow: hidden; }
.stepper button { width: 44px; height: 32px; border: 0; background: none; font-size: 20px; color: var(--ios-text); }
.stepper b { min-width: 30px; text-align: center; font-size: 16px; }
.summary .row b { margin-left: auto; font-weight: 500; }
.summary .row.total b { font-weight: 700; font-size: 17px; }
.fine { color: var(--ios-sub); font-size: 13px; margin: -8px 4px 12px; line-height: 1.4; }
.sheet-err { color: var(--ios-red); font-size: 14px; min-height: 18px; margin: 0 4px 10px; }
.primary { width: 100%; border: 0; border-radius: 12px; background: var(--ios-blue); color: #fff; font-weight: 600; font-size: 17px; padding: 14px; }
.primary:disabled { opacity: .5; }
.danger { color: var(--ios-red) !important; }

/* ---------- lain-lain ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 40; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lightbox .nav-btn { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 8px); right: 8px; color: #fff; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 90px); transform: translateX(-50%); background: rgba(30,30,30,.92); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: 20px; z-index: 50; max-width: 88%; text-align: center; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-bg { transition: none; } }

/* [NEW 2026-09-25] banner, deskripsi & daftar harga halaman pembeli */
.hero { margin: 0 16px 14px; }
/* [NEW 2026-09-29] banner tautan ke katalog film CGV (Minat Nonton) */
.hero-cgv { display: flex; align-items: center; gap: 12px; margin: 0 16px 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #1c1c1e, #3a1015); color: #fff; text-decoration: none; }
.hero-cgv > svg:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.14); flex: none; color: #ffd60a; }
.hero-cgv span { flex: 1; min-width: 0; }
.hero-cgv b { display: block; font-size: 14.5px; }
.hero-cgv small { display: block; color: rgba(255,255,255,.75); font-size: 12px; margin-top: 2px; }
.hero-cgv .chev { width: 18px; height: 18px; flex: none; opacity: .7; }
.banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 10px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banners img { flex: 0 0 100%; width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: 14px; scroll-snap-align: start; background: #e5e5ea; }
.hero-desc { margin: 0 2px 12px; font-size: 15px; line-height: 1.5; color: #3c3c43; white-space: pre-line; }
.price-card { background: var(--ios-group); border-radius: 12px; overflow: hidden; font-size: 14.5px; }
.pc-head, .pc-row { display: grid; grid-template-columns: 1fr 92px 92px; gap: 8px; padding: 9px 12px; align-items: center; }
.pc-head { font-size: 12px; color: var(--ios-sub); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.pc-head span:not(:first-child), .pc-row span { text-align: right; }
.pc-row { background: #fff; border-top: .5px solid var(--ios-sep-light); }
.pc-row b { font-weight: 600; }
.pc-foot { padding: 8px 12px; font-size: 12.5px; color: var(--ios-sub); }
.primary.secondary { background: #fff; color: var(--ios-blue); border: 1px solid #d1d1d6; margin-top: 10px; }
