/* Native-feel layer (all web-served screens + APKs): hidden scrollbars (swipe/scroll still works), safe areas,
   no browser chrome (tap flash, overscroll bounce, text-select on controls), screen fade/slide, reduced-motion respect. */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none; background: transparent; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body { overscroll-behavior-y: none; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); -webkit-font-smoothing: antialiased; }
button, .btn, a.btn, [role=button], nav a, .tab, .tabs a, .tabbar a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
img { -webkit-user-drag: none; }
input, select, textarea { font-size: max(16px, 1em); } /* no iOS/Android zoom-on-focus */
button, .btn { transition: transform .12s ease, opacity .15s ease, background-color .2s ease; }
button:active, .btn:active { transform: scale(.97); opacity: .9; }
main, .pane, #pane, .view, .page, .s-sec, section.screen { animation: rpIn .22s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card { border-radius: 14px; }
@media (max-width: 640px) {
  .card { padding: 12px; margin-bottom: 10px; }
  h1 { font-size: 1.35rem; } h2 { font-size: 1.15rem; }
  .inbox-grid { grid-template-columns: 1fr !important; }
  .sidebar, .bottom-nav, .tabbar, nav.tabs { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* Help · how-to FAQ */
details.faq { border-top: 1px solid rgba(255,255,255,.07); padding: 10px 2px; }
details.faq:first-of-type { border-top: 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; opacity: .6; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 8px 0 2px; opacity: .8; font-size: 14px; line-height: 1.45; animation: rpIn .18s ease both; }
/* Instagram-style support inbox (Platform Admin) */
.ig { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 0; height: calc(100dvh - 170px); min-height: 380px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02); }
.ig-list { overflow-y: auto; border-right: 1px solid rgba(255,255,255,.08); }
.ig-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: none !important; border: 0; border-radius: 0; text-align: left; color: inherit; box-shadow: none !important; }
.ig-row:hover, .ig-row.on { background: rgba(255,255,255,.05) !important; }
.av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: linear-gradient(135deg, #c6a45a, #6fbf9a); color: #0e0f12; }
.ig-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ig-mid b, .ig-mid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ig-mid small { opacity: .6; }
.ig-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .ig-end small { opacity: .5; font-size: 11px; }
.ig-conv { display: flex; flex-direction: column; min-width: 0; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); } .ig-head .av { width: 34px; height: 34px; flex-basis: 34px; }
.ig-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ig-msgs .s-msg { display: flex; flex-direction: column; max-width: 78%; } .ig-msgs .s-msg span { padding: 8px 12px; border-radius: 18px; background: #1e2128; } .ig-msgs .s-msg small { opacity: .5; font-size: 11px; margin-top: 2px; }
.ig-msgs .s-msg.me { align-self: flex-end; align-items: flex-end; } .ig-msgs .s-msg.me span { background: var(--accent, #c6a45a); color: #0e0f12; }
.ig-send { padding: 8px; border-top: 1px solid rgba(255,255,255,.08); margin: 0; }
@media (max-width: 760px) { .ig { grid-template-columns: 1fr; height: calc(100dvh - 150px); border-radius: 0; border-left: 0; border-right: 0; } .ig.has-sel .ig-list { display: none; } .ig:not(.has-sel) .ig-conv { display: none; } .ig-list { border-right: 0; } }
/* Platform Admin app: bottom tab bar (Home · Revenue · Bug reports · Chats · Settings) */
body.pa-app { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
body.pa-app #tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: space-around; gap: 0; margin: 0; padding: 6px 4px max(6px, env(safe-area-inset-bottom)); background: rgba(14,15,18,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.08); overflow: visible; flex-wrap: nowrap; }
body.pa-app #tabs > button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; background: none !important; border: 0 !important; box-shadow: none !important; color: #9a968c; }
body.pa-app #tabs > button.on { color: var(--accent, #c6a45a); }
body.pa-app #tabs > button .ti { font-style: normal; font-size: 19px; line-height: 1; transition: transform .2s; } body.pa-app #tabs > button.on .ti { transform: translateY(-2px) scale(1.1); }
body.pa-app #tabs > button .badge { position: absolute; top: 0; right: 22%; font-size: 10px; }
body.pa-app #tabs > a { display: none; }

/* In-place booking updates: no entrance animation / scroll anchoring jump when #view is patched quietly */
html { overflow-anchor: none; }
#view.keep-scroll, #view.keep-scroll > *, #view.keep-scroll > * * { animation: none !important; }
#stSlots, #stPay, #opts { overflow-anchor: none; }
