/* App mode (home-screen app): only applies under html.app, set by app.js. */
html.app { -webkit-tap-highlight-color: transparent; }
html.app body { overscroll-behavior-y: contain; }

/* every screen the same frame, so moving between them only swaps the content: one background (the warm glow the guest
   screens had), one 57px top bar (the bar portal's was 64px), one title size and top */
html.app body:not(.door-mode) { background: radial-gradient(ellipse 50% 35% at 85% 0%, rgba(247, 168, 27, 0.16), transparent 70%), #fcf8f2; background-attachment: fixed; }
html.app .bar-portal { --top: calc(57px + env(safe-area-inset-top)); }
html.app .bp-top { padding-top: env(safe-area-inset-top); border-bottom-color: rgba(15, 29, 56, 0.07); }
/* the portal's top bar matches the app's: its menu button where the back arrow sits, the logo where the logo sits
   (the bar's name is on Account; "demo" is hidden in the app like the other demo banners), bell and staff on the right */
html.app .bp-top { padding-left: 8px; padding-right: 12px; gap: 4px; }
html.app .bp-top .bp-menu { width: 36px; height: 36px; padding: 0; place-items: center; border-radius: 50%; }
html.app .bp-top .bp-venue, html.app .bp-top .bp-demo { display: none; }
html.app .bp-top::before { content: ""; order: 1; flex: none; width: 133px; height: 29px; margin-right: auto; background: url("images/logo.png?v=1") left center / contain no-repeat; }
html.app .bp-top > :not(.bp-menu) { order: 2; }
html.app .bp-top .bp-pop-wrap + .bp-pop-wrap { margin-left: 8px; }
html.app .bp-view { padding-top: 16px; }
html.app .card h1, html.app .wizard h1, html.app .wiz-occasion h1, html.app .bp-head h1 { font-size: 28px; letter-spacing: -0.02em; }
html.app .acct-page .eyebrow { display: none; }
html.app .acct-page { padding-top: 18px; }
html.app footer.footer, html.app .app-header nav, html.app .menu-btn, html.app .app-nav .back-link, html.app .demo-banner { display: none !important; }
html.app body.has-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* one compact top bar on every screen: just the logo (the tab bar does the navigating). "html.app body" outranks the wizard's per-step header sizes. */
html.app body .app-header, html.app body .app-nav { position: sticky; top: 0; z-index: 15; padding-top: env(safe-area-inset-top); background: rgba(252, 248, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(15, 29, 56, 0.07); }
html.app body .app-header .inner { max-width: 640px; padding: 10px 16px; gap: 12px; }
html.app body .app-nav { max-width: none; padding-left: 16px; padding-right: 16px; padding-bottom: 0; }
html.app body .app-nav > * { margin-top: 10px; margin-bottom: 10px; }
html.app body .app-header .logo, html.app body .app-nav .logo { font-size: 21px; }
html.app .app-header .btn-sm, html.app .app-header .acct-btn { display: none; }
html.app body .app-nav { justify-content: flex-start; gap: 4px; }
.app-back { display: none; }
html.app .app-back { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: -8px; padding: 0; border: none; border-radius: 50%; background: none; color: var(--text, #0f1d38); cursor: pointer; }
html.app .app-back:active { background: rgba(15, 29, 56, 0.08); }
html.app body .app-header .inner { gap: 4px; }
/* the top-bar back button replaces the tab page's own "← My Tabs" link */
html.app .ev-hero .crumbs { display: none; }
html.app .ev-hero-top { justify-content: flex-end; }
html.app .app-back.floating { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 12px; z-index: 20; margin: 0; background: rgba(255, 255, 255, 0.85); box-shadow: 0 2px 8px rgba(15, 29, 56, 0.12); }

/* site pages the app reuses (Explore, a bar's page): their marketing header becomes the same compact top bar */
html.app body .page-top > header.nav { position: sticky; top: 0; z-index: 15; flex-wrap: nowrap; gap: 4px; max-width: none; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(252, 248, 242, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(15, 29, 56, 0.07); }
html.app body .page-top > header.nav .logo { font-size: 21px; }
html.app body .page-top > header.nav .nav-links, html.app body .page-top > header.nav .nav-cta { display: none; }
html.app .page-top { background: none; border-bottom: 0; }

/* Explore = the hosts' Book tab: short title, no marketing line, no "Run a bar?" card (bars have their own side) */
html.app .xp-main { padding-top: 0; padding-bottom: 24px; }
html.app .xp-hero { text-align: left; margin: 18px 0 14px; }
html.app .xp-hero .eyebrow, html.app .xp-hero .lede, html.app .xp-cta { display: none; }
html.app .xp-hero h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 14px; }
html.app .xp-main { padding-left: 16px; padding-right: 16px; }
html.app .xp-search { margin-top: 0; box-shadow: none; }
/* cities on one row, filters on the row under it, at any width (side by side, the scrolling city row ran under the filters) */
html.app .xp-filters { margin-top: 12px; gap: 10px; flex-wrap: nowrap; flex-direction: column; align-items: stretch; }
html.app .xp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
html.app .xp-chips::-webkit-scrollbar { display: none; }
html.app .xp-chips button { flex: none; }
/* filters: one row that scrolls sideways like the city chips, each dropdown as wide as its text (never cut off) */
html.app .xp-selects { flex-wrap: nowrap; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
html.app .xp-selects::-webkit-scrollbar { display: none; }
html.app .xp-selects label { flex: none; min-width: 0; white-space: nowrap; font-size: 11.5px; }
html.app .xp-selects select { width: auto; padding-left: 10px; padding-right: 26px; font-size: 13.5px; }
html.app .xp-grid { gap: 12px; }
html.app .xp-img { aspect-ratio: 16 / 7; }
.xp-unlisted { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 15px 16px; border-radius: 16px; border: 1.5px dashed rgba(15, 29, 56, 0.16); color: var(--text); font-weight: 600; text-decoration: none; }
.xp-unlisted em { color: #8f9bb3; font-size: 22px; font-style: normal; }

/* guest pass: no "Add to Apple Wallet · Soon" placeholder in the app; Copy number takes the full row */
html.app .p2-acts .p2-btn.light[disabled] { display: none; }
html.app .p2-acts:has(.p2-btn.light[disabled]) { grid-template-columns: 1fr; }
/* booking: "Pay $515.00" stays on one line */
html.app body .wiz-nav .btn { white-space: nowrap; }
/* a bar's page: the top bar's back arrow replaces "All bars", and the Book bar sits above the tab bar */
html.app .xp-back { display: none; }
html.app .xp-cover { margin-top: 12px; aspect-ratio: 16 / 8; }
html.app .xp-vhead { margin-top: 14px; }
html.app .xp-vhead h1 { font-size: 28px; }
/* small phones (iPhone SE): a shorter title so the first bar shows without scrolling */
@media (max-width: 360px) {
  html.app .xp-hero h1 { font-size: 23px; margin-bottom: 12px; }
  html.app .xp-hero { margin-top: 12px; }
}
html.app body.has-tabbar .xp-mbook { bottom: calc(68px + env(safe-area-inset-bottom)); padding-bottom: 12px; }
html.app body.has-tabbar:has(.xp-mbook) { padding-bottom: calc(146px + env(safe-area-inset-bottom)); }

/* pages end where their content ends, so short screens don't scroll */
html.app body.app-body { min-height: 0; }
html.app .app-main { padding-top: 16px; padding-bottom: 24px; }
html.app .page { padding-top: 18px; padding-bottom: 24px; }
html.app .card .error:empty { min-height: 0; margin-top: 0; }
/* pop-up sheets and the bar's side drawer cover the tab bar, so their buttons aren't hidden behind it */
html.app .sheet-backdrop, html.app .drawer-root { z-index: 850; }
html.app .toast { z-index: 950; }
/* the "Turn on notifications" card (push.js) sits above the tab bar instead of on top of it */
html.app body.has-tabbar #nr-push { bottom: calc(80px + env(safe-area-inset-bottom)); }
html.app body.has-tabbar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }

/* title only the app shows (the website keeps its marketing headline) */
.app-title { display: none; }
html.app .app-title { display: block; font-size: 28px; letter-spacing: -0.02em; }
html.app .app-title + .page-head, html.app #acct .acct-strip:not(.cta) { display: none; }

/* My Tabs: shorter cards so more fit on screen */
html.app .section-head { margin: 24px 0 12px; }
html.app .section-head:first-child { margin-top: 18px; }
html.app .ecards { gap: 12px; }
html.app .ecard-img { height: 64px; }
html.app .ecard-body { padding: 14px 16px 16px; }
html.app .ecard-money { margin-top: 10px; }
html.app .ecard-foot { margin-top: 8px; }

/* tab page: buttons stay on one line, the section tabs fit, declined charges don't squeeze the name */
html.app .ev-actions { gap: 8px; margin-top: 18px; }
html.app .ev-actions .btn { flex: 1 1 calc(50% - 4px); padding: 12px 8px; font-size: 14.5px; white-space: nowrap; }
html.app .ev-actions .btn .ic { display: none; }
html.app .tabbar { margin: 18px 0 16px; gap: 0; }
html.app .tabbar button { padding: 11px 10px; font-size: 14px; }
html.app .tabbar button .ic { display: none; }
html.app .txns .st-declined { display: block; max-width: 120px; margin-left: auto; line-height: 1.3; }

/* new tab, step 1: smaller photo tiles so Continue is on screen */
html.app .wizard.wiz-occasion { padding-top: 14px; }
html.app .wiz-occasion h1 { margin-top: 16px; }
html.app .wiz-occasion .page-sub { display: none; }
html.app .wiz-occasion .occ-grid { margin-top: 16px; }
html.app .occ-card { aspect-ratio: auto; height: 84px; }
html.app .occ-below { margin-top: 16px; }
html.app .occ-below .input { padding: 14px 16px; }
html.app .occ-next { margin-top: 16px; }
/* later steps: Back, Continue and Save draft fit on one row */
html.app body .wiz-nav { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
html.app body .wiz-nav .inner { gap: 8px; }
html.app body .wiz-nav .btn { padding: 13px 14px; font-size: 15.5px; }
html.app body .wiz-nav .btn-ghost { margin-left: 0; font-size: 14.5px; }
/* smallest phones (iPhone SE): Back becomes just its arrow so Continue and Save draft still fit */
@media (max-width: 360px) {
  html.app body .wiz-nav [data-act="back"] { flex: none; width: 46px; height: 46px; padding: 0; gap: 0; font-size: 0; justify-content: center; }
  html.app body .wiz-nav [data-act="back"] .ic { width: 20px; height: 20px; }
}

.app-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: #0f1d38; border-top: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 -10px 30px rgba(10, 20, 40, 0.18); }
.app-tabbar a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 14px; color: #8f9bb3; text-decoration: none; font: 600 11.5px/1.2 Inter, -apple-system, sans-serif; }
.app-tabbar a.on { color: #ffffff; background: rgba(255, 255, 255, 0.07); }
.app-tabbar a.on svg { color: #f7a81b; }
.app-tabbar a:active { background: rgba(255, 255, 255, 0.1); }

/* opening when the app launches (app.js splash): the homepage's clink (.intro-glasses etc. in styles.css), landing in a centered logo */
.app-splash { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: #fcf8f2; transition: opacity 0.35s ease; }
.app-splash.out { opacity: 0; pointer-events: none; }
.app-splash .intro-glasses { height: 150px; translate: 0 -2vh; }
.app-splash .as-logo { position: absolute; left: 50%; top: 50%; width: 230px; transform: translate(-50%, -50%); line-height: 0; }
.app-splash .as-logo img { display: block; width: 100%; height: auto; }
.as-logo .la-letters, .as-logo .la-glass-wrap { opacity: 0; transition: opacity 0.3s ease; }
.app-splash.words .as-logo .la-letters { opacity: 1; }
.app-splash.land .as-logo .la-glass-wrap { opacity: 1; transition-duration: 0.18s; }
.app-splash.land .ig-r.flying { opacity: 0; transition: transform 0.62s cubic-bezier(0.55, 0, 0.15, 1), opacity 0.18s ease; }

.app-ptr { position: fixed; top: calc(-64px + env(safe-area-inset-top)); left: 50%; z-index: 900; width: 38px; height: 38px; margin-top: 8px; border-radius: 50%; background: #fff; color: #8a909c; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(16, 28, 52, 0.15); transform: translate(-50%, 0); transition: color 0.15s; pointer-events: none; }
.app-ptr.ready { color: #b86e00; }
/* pulled: the hint slides into view (app.js moves it down as you pull) */
.app-ptr.spin svg { animation: ptrSpin 0.7s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
