/* ============================================================
   VULU — iOS-style mobile home feed (matches native app)
   ============================================================ */

.ios { height: 100%; display: flex; flex-direction: column; background: var(--bg); position: relative; overflow: hidden; }
.ios, .ios * { font-family: -apple-system, system-ui, 'SF Pro Text', 'Segoe UI', sans-serif; }

/* status bar */
.ios__status { height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px 0 28px; }
.ios__time { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.ios__sys { display: flex; align-items: center; gap: 6px; color: var(--text); }
.ios__sys svg { display: block; }

/* scroll body */
.ios__body { flex: 1 1 auto; overflow: hidden; padding: 0 0 8px; }

/* header: LIVE + wallet pills */
.ios__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 16px; }
.ios__brand { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.ios__wallet { display: flex; gap: 8px; }
.ios__wpill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--raised); font-size: 14.5px; font-weight: 800; color: var(--text); }
.ios__wpill .ic { width: 16px; height: 16px; color: var(--muted); }

/* story rings — red = hosting, blue = watching */
.ios__rings { display: flex; gap: 13px; padding: 2px 18px 22px; overflow: hidden; }
.ios__ring { width: 58px; height: 58px; border-radius: 999px; flex: 0 0 auto; display: grid; place-items: center; }
.ios__ring.red { background: linear-gradient(145deg, #ff6276, var(--red)); box-shadow: 0 4px 14px rgba(255,68,88,0.28); }
.ios__ring.blue { background: linear-gradient(145deg, #6ba6ff, var(--blue)); box-shadow: 0 4px 14px rgba(59,130,246,0.24); }
.ios__ring > span { width: 51px; height: 51px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #eef2ef; background: linear-gradient(155deg, #2a322f, #161c1a); box-shadow: 0 0 0 3px var(--bg); }

/* stacked cards (event + global chat) */
.ios__cards { display: flex; flex-direction: column; gap: 12px; padding: 0 18px; }
.ios__card { display: flex; align-items: center; gap: 13px; background: var(--raised); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 15px 16px; position: relative; }
.ios__card .lead { width: 42px; height: 42px; border-radius: 13px; background: var(--raised-2); display: grid; place-items: center; flex: 0 0 auto; color: var(--text-2); }
.ios__card .lead .ic { width: 21px; height: 21px; }
.ios__card.event .lead { background: var(--raised-2); color: var(--text-2); }
.ios__card.gchat .lead { background: var(--raised-2); color: var(--text-2); }
.ios__card .ttl { font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.2; letter-spacing: -0.01em; }
.ios__card .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ios__card .grow { flex: 1 1 auto; min-width: 0; }
.ios__card .rbadge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; flex: 0 0 auto; }
.ios__card .chev { color: var(--muted); display: grid; flex: 0 0 auto; }
.ios__card .chev .ic { width: 18px; height: 18px; }
.ios__card .evbar { position: absolute; left: 16px; right: 16px; bottom: 11px; height: 3px; border-radius: 999px; background: var(--raised-2); overflow: hidden; }
.ios__card .evbar span { display: block; height: 100%; width: 42%; background: var(--muted); border-radius: 999px; }
.ios__card.event { padding-bottom: 22px; }

/* section header */
.ios__sec { display: flex; align-items: center; gap: 8px; padding: 24px 18px 14px; }
.ios__sec h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.ios__sec .cnt { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ios__sec .all { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }

/* live rooms */
.ios__rooms { padding: 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ios__room { cursor: pointer; }
.ios__room.hero { grid-column: 1 / -1; }
.ios__thumb { position: relative; border-radius: 20px; overflow: hidden; }
.ios__room.hero .ios__thumb { height: 200px; }
.ios__room.sm .ios__thumb { height: 116px; }
.ios__art { position: absolute; inset: 0;
  background:
    radial-gradient(78% 58% at 28% 14%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(162deg, #1a1f20 0%, #0b0e0e 80%);
}
.ios__art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 70px rgba(0,0,0,0.5); background: repeating-linear-gradient(125deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 5px); }
.ios__room .live { position: absolute; top: 11px; right: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,0.42); backdrop-filter: blur(8px); padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; color: #fff; }
.ios__room .live i { width: 5px; height: 5px; border-radius: 999px; background: var(--red); box-shadow: 0 0 6px var(--red); }
.ios__room .scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.02) 54%); z-index: 1; }
.ios__room.sm .scrim { background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent 60%); }
.ios__rank { position: absolute; top: 11px; left: 11px; z-index: 2; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 8px; background: rgba(0,0,0,0.42); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #fff; }
.ios__room.hero .meta { position: absolute; left: 15px; right: 15px; bottom: 14px; z-index: 2; }
.ios__room.hero .meta .ti { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: 11px; }
.ios__fp { display: flex; align-items: center; }
.ios__fp .f { width: 28px; height: 28px; border-radius: 999px; margin-left: -2.8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #eef2ef; background: linear-gradient(155deg, #313a37, #181f1d); box-shadow: 0 0 0 2px rgba(8,10,10,0.92); position: relative; }
.ios__fp .f:first-child { margin-left: 0; }
.ios__fp .f:nth-child(1) { z-index: 3; }
.ios__fp .f:nth-child(2) { z-index: 2; }
.ios__fp .f:nth-child(3) { z-index: 1; }
.ios__fp .more { margin-left: 9px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,0.13); backdrop-filter: blur(10px); display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(8,10,10,0.92); }
.ios__cap { padding: 10px 4px 0; }
.ios__cap .ti { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.ios__cap .sub { font-size: 12px; color: var(--muted); margin-top: 3px; display: inline-flex; align-items: center; gap: 5px; }
.ios__cap .sub i { width: 5px; height: 5px; border-radius: 999px; background: var(--red); }

/* Go Live + FAB + tabs */
.ios__golive { position: absolute; left: 50%; transform: translateX(-50%); bottom: 80px; z-index: 30; height: 50px; padding: 0 34px; border-radius: 999px; background: var(--red); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; border: 0; cursor: pointer; box-shadow: 0 12px 30px rgba(255,68,88,0.4); }

.ios__fab { position: absolute; z-index: 31; width: 42px; height: 42px; border-radius: 999px; background: var(--raised-2); color: var(--text); display: grid; place-items: center; border: 0; cursor: grab; box-shadow: 0 8px 22px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.10); touch-action: none; transition: transform .12s var(--ease); }
.ios__fab:active { cursor: grabbing; transform: scale(0.94); }
.ios__fab.snapping { transition: left .38s cubic-bezier(0.34,1.32,0.5,1), top .38s cubic-bezier(0.34,1.32,0.5,1), transform .12s var(--ease); }
.ios__fab .ic { width: 21px; height: 21px; }

/* FAB popup menu */
.ios__fabscrim { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .18s var(--ease); }
.ios__fabscrim.open { opacity: 1; pointer-events: auto; }
.ios__fabmenu { position: absolute; z-index: 41; right: 16px; bottom: 84px; width: 230px; background: var(--raised); border: 1px solid var(--border); border-radius: 18px; padding: 6px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); transform-origin: bottom right; transform: scale(0.9) translateY(8px); opacity: 0; pointer-events: none; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.ios__fabmenu.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.ios__mi { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 12px; border-radius: 12px; background: none; border: 0; color: var(--text); font-size: 15px; font-weight: 600; font-family: inherit; text-align: left; cursor: pointer; }
.ios__mi:hover, .ios__mi:active { background: var(--raised-2); }
.ios__mi .mic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--raised-2); color: var(--text-2); }
.ios__mi .mic .ic { width: 19px; height: 19px; }

/* bottom tab bar */
.ios__tabs { height: 70px; flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; padding-top: 9px; background: rgba(6,8,8,0.9); backdrop-filter: blur(18px); border-top: 1px solid var(--hair); position: relative; z-index: 32; }
.ios__tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative; background: none; border: 0; cursor: pointer; }
.ios__tab .ic { width: 25px; height: 25px; }
.ios__tab.on { color: var(--green); }
.ios__tab .nd { position: absolute; top: -2px; right: calc(50% - 17px); width: 8px; height: 8px; border-radius: 999px; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.ios__tab .nb { position: absolute; top: -5px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.ios__homebar { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 130px; height: 5px; border-radius: 999px; background: var(--text); opacity: 0.9; }

/* tappable cards/rings/rooms — button resets */
.ios__ring { border: 0; padding: 0; cursor: pointer; font: inherit; }
.ios__ring:active { transform: scale(0.94); }
.ios__card { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.ios__card:active { background: var(--raised-2); }
.ios__room { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.ios__room:active .ios__thumb { filter: brightness(1.12); }

/* ---------- Mobile global chat screen ---------- */
.ioschat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.ioschat__top { height: 52px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 6px; border-bottom: 1px solid var(--hair); }
.ioschat__back, .ioschat__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: none; border: 0; color: var(--text); cursor: pointer; }
.ioschat__back:active, .ioschat__ic:active { background: var(--raised); }
.ioschat__back .ic, .ioschat__ic .ic { width: 21px; height: 21px; }
.ioschat__title { flex: 1 1 auto; min-width: 0; }
.ioschat__title h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ioschat__title span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ioschat__stream { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 0 6px; }
.ioschat__stream .msg { padding: 7px 14px; }
.ioschat__stream .msg__actions { display: none; }
.ioschat__composer { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--hair); }
.ioschat__composer .gplus { width: 30px; height: 30px; border-radius: 999px; background: var(--fill); display: grid; place-items: center; color: var(--text-2); flex: 0 0 auto; }
.ioschat__composer .gplus .ic { width: 17px; height: 17px; }
.ioschat__composer input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--raised); border: 1px solid transparent; color: var(--text); font-size: 14.5px; font-family: inherit; outline: none; }
.ioschat__composer input:focus { border-color: var(--green-line); }
.ioschat__send { width: 40px; height: 40px; border-radius: 999px; background: var(--green); color: var(--green-ink); display: grid; place-items: center; border: 0; cursor: pointer; flex: 0 0 auto; }
.ioschat__send .ic { width: 18px; height: 18px; }
.ioschat .replybar { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }

/* ---------- Mobile live room ---------- */
.iosroom { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.iosroom__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.iosroom__stage .ios__art { border-radius: 0; }
.iosroom__topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.iosroom__back { width: 38px; height: 38px; border-radius: 999px; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); border: 0; color: #fff; display: grid; place-items: center; cursor: pointer; }
.iosroom__back .ic { width: 20px; height: 20px; }
.iosroom__live { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 7px; }
.iosroom__live i { width: 5px; height: 5px; border-radius: 999px; background: #fff; }
.iosroom__view { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.iosroom__view .ic { width: 14px; height: 14px; }
.iosroom__host { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 11px; }
.iosroom__host .nm { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.iosroom__host .hd { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.iosroom__chat { flex: 0 0 auto; max-height: 140px; overflow: hidden; padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 8px; }
.iosroom__msg { font-size: 13.5px; color: var(--text-2); }
.iosroom__msg b { color: var(--text); font-weight: 700; }
.iosroom__bar { flex: 0 0 auto; display: flex; gap: 10px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0)); }
.iosroom__join { flex: 1 1 auto; height: 46px; border-radius: 12px; background: var(--green); color: var(--green-ink); border: 0; font-size: 15px; font-weight: 800; cursor: pointer; }
.iosroom__join.on { background: var(--fill); color: var(--text); border: 1px solid var(--border); }
.iosroom__gift { width: 46px; height: 46px; border-radius: 12px; background: var(--fill); border: 1px solid var(--border); color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.iosroom__gift .ic { width: 20px; height: 20px; }

/* ---------- Mobile stub screens (notifications / messages / profile) ---------- */
.iosstub { padding: 6px 14px 14px; overflow-y: auto; }
.iosstub__h { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 4px 14px; }
.iosstub__row { display: flex; align-items: center; gap: 13px; padding: 13px 12px; border-radius: 14px; background: var(--raised); margin-bottom: 10px; }
.iosstub__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--raised-2); color: var(--text-2); display: grid; place-items: center; flex: 0 0 auto; }
.iosstub__ic .ic { width: 20px; height: 20px; }
.iosstub__row .grow { flex: 1 1 auto; min-width: 0; }
.iosstub__row .t { font-size: 14.5px; font-weight: 700; color: var(--text); }
.iosstub__row .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iosstub__bd { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; flex: 0 0 auto; }

/* ---------- Mobile event bottom sheet ---------- */
.iossheet { position: absolute; inset: 0; z-index: 50; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); display: flex; align-items: flex-end; }
.iossheet.open { opacity: 1; pointer-events: auto; }
.iossheet__card { width: 100%; background: var(--raised); border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 8px 18px calc(20px + env(safe-area-inset-bottom, 0)); transform: translateY(100%); transition: transform .26s var(--ease); }
.iossheet.open .iossheet__card { transform: translateY(0); }
.iossheet__grip { width: 38px; height: 4px; border-radius: 999px; background: var(--border); margin: 6px auto 14px; }

/* ============================================================
   NativeMobileHome (used by / at phone widths via DeskYubo)
   Mirrors the iOS native Home shell:
   - LIVE wordmark + Fuel/Cash pills
   - Event widget (collapsed)
   - Global Chat pill (Saturn + dot-matrix wordmark)
   - Empty Live Now dashed card
   - Floating centered GO LIVE LED slab
   - Quick-actions FAB (existing VuluFab reused)
   - 4-tab bottom bar
   ============================================================ */
.nmh { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }

/* Sticky top bar — LIVE + 2 wallet pills only (no search/notif) */
.nmh__top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; background: var(--bg); z-index: 10; }
.nmh__titleWrap { flex: 1 1 auto; height: 32px; display: flex; align-items: center; margin-right: 8px; overflow: hidden; }
.nmh__titleWrap svg { display: block; width: auto; height: 100%; }
.nmh__metrics { display: flex; gap: 6px; flex-shrink: 0; }
.nmh__pill { min-height: 44px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); display: inline-flex; align-items: center; gap: 6px; color: var(--text); cursor: pointer; font-family: inherit; }
.nmh__pill:active { background: rgba(255,255,255,0.07); }
.nmh__pillIcon { display: inline-flex; width: 22px; height: 22px; }
.nmh__pillIcon .ic { width: 22px; height: 22px; }
.nmh__pillVal { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }

/* Scroll body — padding leaves room for floating slab + tabs at the bottom */
.nmh__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 220px; display: flex; flex-direction: column; gap: 8px; }

/* Floating Go Live LED slab — centered above the 4-tab bar */
.nmh__golive { position: absolute; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 25; min-height: 50px; max-width: 228px; width: 200px; padding: 12px 24px; border-radius: 16px; background: #0A0B0C; border: 1px solid rgba(255,255,255,0.14); color: #4ADE80; display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: inherit; overflow: hidden; box-shadow: 0 8px 14px rgba(0,0,0,0.42); }
.nmh__goliveGrid { position: absolute; inset: 0; background-image: radial-gradient(rgba(245,248,244,0.06) 0.85px, transparent 0.85px); background-size: 6px 6px; opacity: 0.7; pointer-events: none; }
.nmh__goliveContent { position: relative; display: flex; align-items: center; gap: 8px; }
.nmh__goliveDot { display: inline-flex; width: 9px; height: 9px; align-items: center; justify-content: center; }
.nmh__liveDotGlyph { display: block; width: 9px; height: 9px; background: #4ADE80; border-radius: 1.4px; box-shadow: 0 0 6px rgba(74,222,128,0.4); animation: nmh-pulse 0.75s ease-in-out infinite alternate; }
@keyframes nmh-pulse { from { opacity: 1; } to { opacity: 0.3; } }

/* Live Now empty state (matches native 0 rooms / dashed border card) */
.nmh__live { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.nmh__liveHead { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.nmh__liveTitle { font-size: 14px; font-weight: 800; letter-spacing: -0.3px; text-transform: uppercase; color: var(--text); }
.nmh__liveSquare { width: 10px; height: 10px; background: var(--red); }
.nmh__liveCount { margin-left: auto; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.nmh__liveEmpty { min-height: 112px; border-radius: 18px; border: 1px dashed rgba(36,41,41,1); background: rgba(255,255,255,0.018); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 600; }

/* 4-tab bottom bar — native dark pill, green glyph when active, profile = avatar + green dot */
.nmh__tabs { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 24; height: 68px; width: calc(100% - 24px); max-width: 520px; padding: 0 6px; background: rgba(3,4,4,0.94); border: 1px solid rgba(245,248,244,0.09); border-radius: 999px; display: flex; align-items: center; justify-content: space-between; }
.nmh__tab { flex: 1 1 auto; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0; }
.nmh__tab--on { color: var(--green); }
.nmh__tabIcon { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; }
.nmh__tabIcon .ic { width: 22px; height: 22px; }
.nmh__tab--on::after { content: ""; position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 999px; background: var(--green); }
.nmh__avatar { width: 34px; height: 34px; border-radius: 999px; background: rgba(245,248,244,0.05); border: 1.5px solid rgba(245,248,244,0.14); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--muted); position: relative; }
.nmh__tab--on .nmh__avatar { border-color: var(--green); color: var(--text); }
.nmh__presence { position: absolute; bottom: -2px; right: -2px; width: 11px; height: 11px; border-radius: 999px; background: var(--green); border: 2px solid var(--bg); }

/* Re-style existing EventWidget on the native shell — strip the desktop frame */
.nmh .evtw--inline { background: transparent; border: 0; padding: 0; }
.nmh .evtw__toggle { width: 100%; padding: 0; min-height: 56px; border-radius: 16px; background: rgba(11,13,13,0.96); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; padding: 4px 14px; cursor: pointer; }
.nmh .evtw--expanded .evtw__toggle { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.nmh .evtw__inline-detail { background: rgba(11,13,13,0.96); border: 1px solid rgba(255,255,255,0.08); border-top: 0; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; padding: 12px 14px 16px; }

/* Re-style GlobalChatPill on the native shell — match native spacing */
.nmh .gcpill { width: 100%; min-height: 56px; padding: 0 14px; border-radius: 16px; background: rgba(11,13,13,0.96); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nmh .gcpill__wm { flex: 1 1 auto; min-width: 0; }
.nmh .gcpill__badge--empty { opacity: 0; }

/* Hide the desktop rail (.app3 > .rail) and friends-rail inside NativeMobileHome;
   the new native shell already provides top + tab + floating surfaces. */
.app3:has(.nmh) > .rail, .app3:has(.nmh) > .stage, .app3:has(.nmh) > .lives, .app3:has(.nmh) > .vfab, .app3:has(.nmh) > .ios__fab, .app3:has(.nmh) > .app-rail { display: none !important; }

/* Mobile subpages now render the same 4-tab bar as home (audit #31): whenever a
   tab bar is a direct .app3 child, retire the rail-as-bottom-dock and pad for
   the taller bar (68px + 10px inset). */
.app3:has(> .nmh__tabs) > .rail { display: none !important; }
.app3:has(> .nmh__tabs) { padding-bottom: 88px; }

/* ============================================================
   GoLiveModal — native full-screen variant at phone widths
   ============================================================ */
/* Local tokens — the three vars below were referenced throughout this block but
   never defined in any loaded stylesheet (undefined var() → declaration invalid
   at computed-value time → trackless Invite-Only switch, surfaceless close
   button, missing borders). Values follow the dark-glass palette elsewhere
   (.glpop borders rgba(255,255,255,0.12), .acard--accent green tint). */
.glfs {
  --surface-alt: rgba(255,255,255,0.08);
  --border-subtle: rgba(255,255,255,0.10);
  --green-bg: rgba(74,222,128,0.15);
}
.glfs { position: absolute; inset: 0; z-index: 1500; background: var(--bg); display: flex; flex-direction: column; }  /* modal tier: above .vfab (1400), below .liveroom (1600) */
.glfs__head { flex: 0 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.glfs__close { width: 44px; height: 44px; border-radius: 16px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; color: var(--text-2); }
.glfs__close .ic { width: 24px; height: 24px; }
.glfs__title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); }
.glfs__body { flex: 1 1 auto; padding: 12px 16px 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.glfs__lbl { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.8px; }
.glfs__inwrap { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 0 16px; min-height: 56px; display: flex; align-items: center; }
.glfs__in { flex: 1 1 auto; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 16px; padding: 14px 0; width: 100%; }
.glfs__in::placeholder { color: var(--muted); }
.glfs__row { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glfs__rowInfo { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; }
.glfs__rowIcon { width: 40px; height: 40px; border-radius: 16px; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.glfs__rowTitle { font-size: 16px; font-weight: 600; color: var(--text); }
.glfs__switch { width: 50px; height: 30px; border-radius: 999px; background: var(--surface-alt); border: 0; padding: 0; position: relative; cursor: pointer; transition: background .18s; flex-shrink: 0; }
.glfs__switch.on { background: var(--green); }
.glfs__knob { position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 999px; background: #fff; transition: transform .18s; }
.glfs__switch.on .glfs__knob { transform: translateX(20px); }
.glfs__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.glfs__foot { flex: 0 0 auto; padding: 12px 16px 24px; }
.glfs__start { width: 100%; height: 56px; border-radius: 16px; background: var(--surface-alt); border: 1px solid rgba(74,222,128,0.38); display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-size: 17px; font-weight: 700; cursor: pointer; font-family: inherit; }
.glfs__start:hover { background: rgba(74,222,128,0.08); }
