/* ============ FlyClick — Cyan Ocean theme ============ */
:root {
  --bg: #04121c;
  --bg-2: #061b29;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --card: rgba(10, 36, 51, .72);
  --line: rgba(103, 232, 249, .14);
  --text: #e8fcff;
  --muted: #8db3c1;
  --cyan-200: #a5f3fc;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --teal: #2dd4bf;
  --gold: #fcd34d;
  --red: #fb5d72;
  --grad: linear-gradient(135deg, #67e8f9 0%, #22d3ee 40%, #0891b2 100%);
  --glow: 0 10px 40px -8px rgba(34, 211, 238, .55);
  --radius: 22px;
  --sidebar: 400px;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { overflow: hidden; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.sub { color: var(--muted); font-size: 13px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(var(--a2-rgb), .18); border-radius: 9px; }

/* Ambient glowing background */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: float 18s ease-in-out infinite; }
.bg-orbs i:nth-child(1) { width: 480px; height: 480px; background: var(--cyan-600); top: -160px; left: -120px; }
.bg-orbs i:nth-child(2) { width: 380px; height: 380px; background: var(--orb-1); bottom: -140px; right: -80px; animation-delay: -6s; }
.bg-orbs i:nth-child(3) { width: 260px; height: 260px; background: var(--orb-3); top: 40%; left: 55%; opacity: .2; animation-delay: -12s; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

#app { position: relative; z-index: 1; height: 100%; height: calc(100dvh / var(--z, 1)); }
.screen { height: 100%; overflow-y: auto; }

/* ============ Buttons & inputs ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; background: var(--surface-2); color: var(--cyan-200); transition: transform .15s, box-shadow .2s, filter .2s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: var(--ink); box-shadow: var(--glow); }
.btn.big { width: 100%; padding: 16px; font-size: 17px; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn svg { width: 20px; height: 20px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--cyan-200); background: var(--surface); border: 1px solid var(--line); transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.accent { color: var(--ink); background: var(--grad); border: 0; box-shadow: var(--glow); }
.icon-btn.locked { background: var(--surface); color: var(--muted); box-shadow: none; opacity: .55; border: 1px solid var(--line); }
.badge { background: var(--grad); color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; }
label, .label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }
.label small { opacity: .7; font-weight: 400; margin-left: 4px; }
label input, label select { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--bg-rgb), .6); outline: none; transition: border-color .2s, box-shadow .2s; }
label input:focus, label select:focus { border-color: var(--cyan-400); box-shadow: 0 0 0 4px rgba(var(--a-rgb), .15); }
select option { background: var(--panel); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; transition: all .15s; }
.chip:hover { border-color: var(--cyan-400); }
.chip.on { background: rgba(var(--a-rgb), .16); border-color: var(--cyan-400); color: var(--cyan-200); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }

/* Avatars */
.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--ink); font-weight: 800; font-size: 18px; display: grid; place-items: center; flex-shrink: 0; }
.avatar .flag-img { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 15px; border-radius: 4px; border: 2px solid var(--bg); object-fit: cover; }
.avatar.xl { width: 96px; height: 96px; font-size: 40px; }
.avatar.xl .flag-img { width: 34px; height: 25px; }
.avatar.c1 { background: linear-gradient(135deg, var(--cyan-300), var(--cyan-600)); }
.avatar.c2 { background: linear-gradient(135deg, #5eead4, var(--land-stamp)); }
.avatar.c3 { background: linear-gradient(135deg, var(--cyan-200), #38bdf8); }
.avatar.c4 { background: linear-gradient(135deg, #99f6e4, #06b6d4); }
.avatar .dot { position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: #34d399; border: 2px solid var(--bg); }
.flag-img { width: 1.4em; height: 1.05em; object-fit: cover; border-radius: 3px; vertical-align: middle; }

/* ============ Onboarding ============ */
#screen-passport { display: grid; place-items: center; padding: 24px 16px; }
.onboard { width: 100%; max-width: 1000px; display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.onboard-hero { text-align: center; }
.logo { width: 72px; height: 72px; border-radius: 24px; background: var(--grad); color: var(--ink); display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--glow); transform: rotate(-8deg); }
.logo svg { width: 40px; height: 40px; transform: rotate(45deg); }
.onboard-hero h1 { font-size: clamp(44px, 8vw, 76px); line-height: 1; margin: 0 0 10px; letter-spacing: -2px; font-weight: 800; }
.onboard-hero p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 420px; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: none; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; color: var(--cyan-200); }
.perks svg { padding: 8px; width: 38px; height: 38px; border-radius: 12px; background: rgba(var(--a-rgb), .12); }
.passport-card { padding: 26px; width: 100%; max-width: 460px; margin: 0 auto; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.card-title svg { color: var(--cyan-300); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.passport-card .chips { margin-bottom: 22px; }
.fine { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0 0; }

/* ============ App shell: tabs (mobile first) ============ */
body[data-view="passport"] .layout { display: none; }
body:not([data-view="passport"]) #screen-passport { display: none; }
.layout { height: 100%; }
.main { height: 100%; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.main > .screen { display: none; height: 100%; overflow-y: auto; }
body[data-view="discover"] #screen-discover, body[data-view="me"] #screen-me, body[data-view="clips"] #screen-clips { display: block; }
body[data-view="chats"] #screen-chats, body[data-view="chat"] #screen-chats { display: flex; }
body[data-view="chat"] .main { padding-bottom: 0; }
body[data-view="chat"] .rail { display: none; }

/* Navigation: bottom bar on phones */
.rail { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; justify-content: space-around; align-items: center;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(var(--bg-rgb), .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.rail-logo { display: none; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 56px; padding: 4px 6px; font-size: 11px; font-weight: 500; color: var(--muted); transition: color .2s; }
.tab svg { width: 24px; height: 24px; }
.tab:hover { color: var(--cyan-200); }
.tab.on { color: var(--cyan-300); }
.tab.on::after { content: ""; position: absolute; bottom: -4px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-300); box-shadow: 0 0 10px var(--cyan-400); }
.tab.post { min-width: 0; width: 52px; height: 38px; border-radius: 14px; background: var(--grad); color: var(--ink); display: grid; place-items: center; box-shadow: var(--glow); }
.tab.post svg { width: 22px; height: 22px; }
.tab-badge { position: absolute; top: -2px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }

/* ============ Pages ============ */
.page { padding: 18px 16px 40px; }
#screen-discover > *, #screen-me > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
#screen-me > * { max-width: 760px; }
.page-title { font-size: 26px; margin: 4px 4px 0; }
.topbar { display: flex; align-items: center; gap: 10px; }
.me { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.me-name { font-weight: 700; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.stat svg { color: var(--cyan-300); width: 18px; height: 18px; margin-bottom: 4px; }
.stat b { font-size: 22px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.gold svg { color: var(--gold); }
button.stat:hover { border-color: var(--cyan-400); }

.hero { position: relative; margin-top: 16px; border-radius: 26px; padding: 26px 22px 22px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, rgba(var(--a-rgb), .28), rgba(var(--a3-rgb), .08) 60%, transparent), var(--surface);
  border: 1px solid var(--line); }
.hero h2 { margin: 14px 0 4px; font-size: 26px; font-weight: 700; }
.hero p { color: var(--muted); margin: 0 0 20px; }
.radar { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--cyan-400); opacity: 0; animation: ping 3s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: 1s; }
.radar span:nth-child(3) { animation-delay: 2s; }
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.radar-plane { position: absolute; inset: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: var(--ink); box-shadow: var(--glow); }
.radar-plane svg { width: 30px; height: 30px; transform: rotate(45deg); }

h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin: 28px 4px 10px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid transparent; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.item:hover { border-color: var(--line); background: var(--surface-2); }
.item.active { border-color: var(--cyan-400); background: rgba(var(--a-rgb), .1); }
.item b { font-weight: 600; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.tags span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(var(--a-rgb), .1); color: var(--cyan-200); }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 18px; border: 1px dashed var(--line); border-radius: 18px; }

/* ============ Chat ============ */
/* chat view layout: see .chat-view */
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(var(--bg-rgb), .7); backdrop-filter: blur(16px); position: relative; z-index: 3; }
.peer { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.peer-name { font-weight: 700; font-size: 17px; }
.menu { position: absolute; right: 14px; top: 62px; min-width: 220px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: pop .18s ease-out; }
.menu button { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 11px 14px; border-radius: 10px; }
.menu button:hover { background: var(--surface-2); }
.menu b { color: var(--cyan-300); }
.menu .danger { color: var(--red); }
.unlock { display: flex; align-items: center; gap: 10px; margin: 10px 14px 0; padding: 10px 14px; border-radius: 14px; font-size: 13px; color: var(--cyan-200); background: rgba(var(--a-rgb), .08); border: 1px solid var(--line); }
.unlock svg { width: 18px; height: 18px; color: var(--cyan-300); }
.unlock span { flex: 1; }
.unlock .bar { flex: 0 0 90px; height: 6px; background: rgba(255, 255, 255, .08); border-radius: 9px; overflow: hidden; }
.unlock .bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s; }
.messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.day-hint { align-self: center; font-size: 12px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--surface); margin-bottom: 8px; }
.bubble { max-width: min(78%, 560px); padding: 10px 14px; border-radius: 20px; cursor: pointer; line-height: 1.4; word-wrap: break-word; animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.bubble.mine { align-self: flex-end; background: var(--grad); color: var(--ink); border-bottom-right-radius: 6px; font-weight: 500; }
.bubble.theirs { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .orig { margin-top: 8px; padding-top: 8px; border-top: 1px dashed currentColor; font-style: italic; opacity: .75; }
.bubble .meta { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: .65; margin-top: 4px; }
.system { align-self: center; text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: var(--surface); }
.icebreakers { padding: 0 14px 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.icebreakers::-webkit-scrollbar { display: none; }
.icebreakers .sub { flex-shrink: 0; font-size: 12px; }
.icebreakers .chip { flex-shrink: 0; white-space: nowrap; }
.typing { display: flex; gap: 4px; padding: 10px 14px; margin: 0 16px 8px; border-radius: 16px; background: var(--surface-2); width: fit-content; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-300); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.composer { display: flex; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(var(--bg-rgb), .7); backdrop-filter: blur(16px); }
.composer input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.composer input:focus { border-color: var(--cyan-400); box-shadow: 0 0 0 4px rgba(var(--a-rgb), .12); }
.send { width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: var(--ink); display: grid; place-items: center; box-shadow: var(--glow); transition: transform .15s; }
.send:active { transform: scale(.92); }

/* Welcome (desktop empty state) */
.welcome { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.welcome h2 { font-size: 30px; margin: 24px 0 8px; max-width: 460px; }
.welcome p { color: var(--muted); max-width: 420px; line-height: 1.5; }
.globe-big { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; color: var(--cyan-300);
  background: radial-gradient(circle at 35% 30%, rgba(var(--a2-rgb), .35), rgba(var(--a3-rgb), .1) 70%); border: 1px solid var(--line); box-shadow: 0 0 80px rgba(var(--a-rgb), .25); animation: bob 5s ease-in-out infinite; }
.globe-big svg { width: 80px; height: 80px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ============ Overlays ============ */
.overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(2, 10, 16, .78); backdrop-filter: blur(10px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 400px; padding: 30px 24px 24px; text-align: center; animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.88); opacity: 0; } }
.modal h2 { margin: 6px 0 8px; font-size: 28px; }
.modal p { color: var(--muted); margin: 0 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--cyan-300) !important; margin: 16px 0 0 !important; }
.stamp { display: inline-grid; place-items: center; padding: 16px; border: 3px dashed var(--cyan-400); border-radius: 50%; transform: rotate(-10deg); box-shadow: 0 0 40px rgba(var(--a-rgb), .25); animation: stampIn .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stampIn { from { transform: rotate(-30deg) scale(2); opacity: 0; } }
.stamp .flag-img { width: 60px; height: 45px; border-radius: 8px; }
.reward { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; padding: 8px 16px; border-radius: 999px; background: rgba(252, 211, 77, .1); margin-bottom: 18px; }
.reward svg { width: 18px; height: 18px; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 16px; margin: 20px 0; max-height: calc(50vh / var(--z, 1)); overflow-y: auto; padding: 6px; }
.stamp-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.stamp-item .stamp { padding: 10px; animation: none; }
.stamp-item .stamp .flag-img { width: 40px; height: 30px; }

.sky { text-align: center; }
.sky h2 { font-size: 26px; margin: 28px 0 6px; }
.sky p { color: var(--muted); margin: 0 0 20px; }
.orbit { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.orbit-globe { position: absolute; inset: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--cyan-300); background: radial-gradient(circle at 35% 30%, rgba(var(--a2-rgb), .35), rgba(var(--a3-rgb), .15)); box-shadow: 0 0 60px rgba(var(--a-rgb), .4); }
.orbit-globe svg { width: 64px; height: 64px; }
.orbit-plane { position: absolute; inset: 0; animation: spin 2.4s linear infinite; }
.orbit-plane svg { position: absolute; top: -4px; left: 50%; width: 30px; height: 30px; margin-left: -15px; color: var(--cyan-200); transform: rotate(90deg); filter: drop-shadow(0 0 8px var(--cyan-400)); }
.orbit::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(var(--a2-rgb), .35); }
@keyframes spin { to { transform: rotate(360deg); } }

.ring { width: 120px; height: 120px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; animation: ringPulse 1.4s infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--a-rgb), .55); } 100% { box-shadow: 0 0 0 28px rgba(var(--a-rgb), 0); } }

/* ============ Call ============ */
.call { position: fixed; inset: 0; background: #000; z-index: 30; }
#remote-video { width: 100%; height: 100%; object-fit: cover; background: radial-gradient(circle, var(--panel), #000); }
#local-video { position: absolute; right: 16px; top: 16px; width: 28%; max-width: 180px; border-radius: 18px; border: 2px solid rgba(var(--a2-rgb), .5); transform: scaleX(-1); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.call-status { position: absolute; top: 45%; width: 100%; text-align: center; font-size: 20px; color: var(--cyan-200); }
.subtitles { position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%); width: min(92%, 720px); text-align: center; background: rgba(2, 16, 24, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 18px; font-size: 19px; }
.subtitles:empty { display: none; }
.subtitles.interim { opacity: .6; font-style: italic; }
.call-controls { position: absolute; bottom: calc(30px + env(safe-area-inset-bottom)); width: 100%; display: flex; justify-content: center; gap: 18px; }
.round { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); font-weight: 700; font-size: 16px; }
.round svg { width: 26px; height: 26px; }
.round.off { background: #fff; color: #000; }
.round.red { background: var(--red); }
.round.red svg { transform: rotate(135deg); }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 40; max-width: min(90%, 460px); padding: 12px 20px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .25s ease-out; }

/* ============ Desktop web app ============ */
@media (min-width: 900px) {
  .onboard { grid-template-columns: 1.1fr 1fr; }
  .onboard-hero { text-align: left; }
  .onboard-hero p { margin: 0; }
  .logo { margin: 0 0 18px; }
  .perks { display: grid; }

  .layout { display: grid; grid-template-columns: 92px 1fr; }
  .main { padding-bottom: 0; min-width: 0; }
  .rail, body[data-view="chat"] .rail { position: static; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; padding: 20px 0; border-top: 0; border-right: 1px solid var(--line); background: rgba(var(--bg-rgb), .55); }
  .rail-logo { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 16px; background: var(--grad); color: var(--ink); box-shadow: var(--glow); }
  .rail-logo svg { width: 26px; height: 26px; transform: rotate(45deg); }
  .tab { width: 72px; padding: 10px 4px; border-radius: 16px; }
  .tab:hover { background: var(--surface); }
  .tab.on { background: rgba(var(--a-rgb), .1); }
  .tab.on::after { display: none; }
  .tab.post { width: 52px; height: 52px; margin: 6px 0; border-radius: 18px; }
  .page { padding: 28px 32px 48px; }
  .back { display: none; }
  .messages { padding: 24px 32px; }
  .toast { bottom: 40px; }
}
@media (min-width: 1300px) { :root { --sidebar: 440px; } }

/* ============ Monetization: coins, filter, wallet, private ============ */
.stat.coin svg { color: var(--gold); }
.seg-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(var(--bg-rgb), .55); border: 1px solid var(--line); }
.seg button { padding: 10px 6px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--muted); transition: all .2s; }
.seg button.on { background: rgba(var(--a-rgb), .18); color: var(--cyan-200); box-shadow: inset 0 0 0 1px var(--cyan-400); }
.filter-hint { font-size: 13px; color: var(--cyan-200) !important; min-height: 18px; margin: 10px 0 14px !important; }
.filter-hint b { color: var(--gold); }
.wallet { max-width: 440px; }
.coin-big { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #3b2a00; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 10px 40px -8px rgba(245, 158, 11, .6); }
.coin-big svg { width: 40px; height: 40px; }
.reason { color: var(--gold) !important; background: rgba(252, 211, 77, .08); border-radius: 12px; padding: 10px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 16px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: all .2s; }
.pack:hover { border-color: var(--cyan-400); transform: translateY(-2px); }
.pack b { font-size: 22px; }
.pack .sub { font-size: 11px; }
.pack .price { margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: var(--ink); font-weight: 700; font-size: 13px; }
.pack .tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #3b2a00; }
.price-list { text-align: left; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.price-list div { display: flex; justify-content: space-between; padding: 4px 0; }
.price-list b { color: var(--text); font-weight: 600; }
.private-badge { font-size: 12px; color: var(--teal); font-weight: 600; margin-top: 2px; }
.lock-big { font-size: 54px; }
.bubble.private.theirs { border-color: rgba(var(--t-rgb), .45); }
.bubble .tr-btn { margin-top: 6px; font-size: 11px; color: var(--cyan-300); text-decoration: underline; }
.day-hint.private { color: var(--teal); background: rgba(var(--t-rgb), .1); }
.call-meter { position: absolute; top: 16px; left: 16px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(2, 16, 24, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); color: var(--cyan-200); }
.call-meter.paid { color: var(--gold); }

/* Test agents */
.agent-chip { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; vertical-align: 2px; color: #a78bfa; background: rgba(167, 139, 250, .14); border: 1px solid rgba(167, 139, 250, .35); }

/* ============ Discover ============ */
.topbar { margin-bottom: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.pill svg { width: 18px; height: 18px; }
.pill.gold svg, .pill.coin svg { color: var(--gold); }
button.pill:hover { border-color: var(--cyan-400); }
.discover-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.col-main, .col-side { min-width: 0; }
.hero { margin-top: 16px; display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; text-align: left; }
.hero-text { width: 100%; }
.hero .eyebrow { margin: 0 !important; display: block; }
.hero h2 { margin: 6px 0 4px; font-size: 30px; }
.hero .radar { width: 96px; height: 96px; flex-shrink: 0; }
.hero .radar-plane { inset: 24px; }
.block { margin-top: 22px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 12px; }
.block-head h3 { margin: 0; }
#screen-me .block-head { margin-top: 26px; }
.link { color: var(--cyan-300); font-size: 13px; font-weight: 600; }
.link:hover { color: var(--cyan-200); text-decoration: underline; }
.card-block { margin-top: 0; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.col-side { display: flex; flex-direction: column; gap: 16px; }

.fact-card { position: relative; overflow: hidden; display: flex; gap: 18px; align-items: flex-start; padding: 22px; min-height: 170px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(var(--bg-rgb), .92) 30%, rgba(var(--bg-rgb), .55)), var(--surface); }
.fact-card::before { content: ""; position: absolute; inset: -20px; background: var(--flag) center/cover; filter: blur(26px) saturate(1.3); opacity: .35; z-index: 0; }
.fact-card > * { position: relative; z-index: 1; }
.fact-card.flip { animation: rise .35s ease-out; }
.fact-flag .flag-img { width: 76px; height: 57px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.fact-body { flex: 1; min-width: 0; }
.fact-country { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan-300); }
.fact-text { font-size: 18px; line-height: 1.45; margin: 6px 0 16px; }

.clip-strip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.clip-strip::-webkit-scrollbar { display: none; }
.clip-tile { position: relative; flex: 0 0 128px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line); scroll-snap-align: start; transition: transform .2s, border-color .2s; }
.clip-tile:hover { transform: translateY(-3px); border-color: var(--cyan-400); }
.clip-tile video { width: 100%; height: 100%; object-fit: cover; }
.tile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px; font-size: 13px; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quiz-q { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(var(--bg-rgb), .5); border: 1px solid var(--line); text-align: left; font-weight: 500; transition: all .2s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--cyan-400); }
.quiz-opt .flag-img { width: 28px; height: 21px; }
.quiz-opt.right { border-color: #34d399; background: rgba(52, 211, 153, .14); }
.quiz-opt.wrong { border-color: var(--red); background: rgba(251, 93, 114, .14); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

.online-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.person span { max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .avatar { width: 50px; height: 50px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(var(--a-rgb), .5); transition: transform .2s; }
.person:hover .avatar { transform: scale(1.08); }
.progress { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 9px; }
#passport-progress .sub { margin: 8px 0; }
.mini-flags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============ Clips feed ============ */
.clips-page { position: relative; }
body[data-view="clips"] #screen-clips { overflow: hidden; }
.clips-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 14px 18px; display: flex; align-items: baseline; gap: 10px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.clips-top h2 { margin: 0; font-size: 22px; }
.clips-top .sub { display: none; }
.feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.clip { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.card-clip { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 85% 55% / .55), transparent 55%), linear-gradient(160deg, hsl(var(--h) 70% 32%), hsl(calc(var(--h) + 50) 80% 12%)); }
.card-clip::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, hsl(var(--h) 90% 60% / .25), transparent 40%); animation: spin 14s linear infinite; }
.card-emoji { position: relative; font-size: 130px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4)); animation: bob 4s ease-in-out infinite; }
.card-flag { position: absolute; top: 22%; right: 18%; transform: rotate(12deg); }
.card-flag .flag-img { width: 64px; height: 48px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.card-clip.mini .card-emoji { font-size: 54px; }
.clip-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .78)); }
.clip-info { position: absolute; left: 0; right: 76px; bottom: 0; padding: 18px 16px 22px; }
.clip-user { display: flex; align-items: center; gap: 10px; }
.clip-user b { font-size: 16px; }
.clip-user .sub { color: rgba(255, 255, 255, .75); }
.clip-caption { margin: 10px 0 4px; font-size: 15px; line-height: 1.45; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.clip-orig { font-size: 12px; color: var(--cyan-200); padding: 0; }
.clip-actions { position: absolute; right: 10px; bottom: 26px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.clip-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.clip-actions svg { width: 28px; height: 28px; padding: 12px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); transition: transform .15s, background .2s; }
.clip-actions button:hover svg { background: rgba(255, 255, 255, .24); }
.clip-actions button[data-act="hi"] svg { background: var(--grad); color: var(--ink); }
.clip-actions button:disabled { opacity: .5; }
.clip-actions .liked svg { color: #ff4d6d; background: rgba(255, 77, 109, .2); }
.clip-actions .pop svg { animation: heartPop .4s ease-out; }
@keyframes heartPop { 40% { transform: scale(1.35); } }

/* ============ Chats page ============ */
.chats-page { height: 100%; }
.chat-list { flex: 1; overflow-y: auto; padding: 18px 16px 40px; }
.chat-pane { flex: 1; min-width: 0; display: none; height: 100%; }
#chat-empty { display: none; }
.chat-view { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
body[data-view="chat"] .chat-list { display: none; }
body[data-view="chat"] .chat-pane { display: block; }

/* ============ Me ============ */
.profile-card { text-align: center; padding: 28px 20px 20px; border-radius: 26px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--a-rgb), .22), transparent 60%), var(--surface); }
.profile-card .avatar.xl { margin: 0 auto; }
.profile-card h2 { margin: 14px 0 2px; font-size: 26px; }
.profile-card .stats { margin-top: 18px; }
.my-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.my-clips .clip-tile { flex: none; width: 100%; }
.my-clips .empty { grid-column: 1 / -1; line-height: 1.8; }
.stamps.inline { max-height: none; margin: 0; }
.danger-text { display: block; margin: 30px auto 0; color: var(--red); }

/* ============ Post a clip ============ */
.post-modal { max-width: 420px; max-height: calc(94vh / var(--z, 1)); overflow-y: auto; }
.post-stage { position: relative; margin: 16px auto 0; height: min(calc(46vh / var(--z, 1)), 420px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.post-stage video { width: 100%; height: 100%; object-fit: cover; }
.post-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px;
  background: radial-gradient(circle at 50% 30%, rgba(var(--a-rgb), .18), transparent 60%); }
.post-placeholder svg { width: 44px; height: 44px; color: var(--cyan-300); }
.rec-ring { position: absolute; top: 12px; right: 12px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--red) var(--p, 0%), rgba(255, 255, 255, .2) 0); }
.rec-ring b { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .7); font-size: 13px; }
.row.tight { margin-top: 14px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
#rec-btn.recording { background: var(--red); color: #fff; }
#rec-btn.recording .rec-dot { background: #fff; border-radius: 2px; animation: blink 1s infinite; }
.file-btn { cursor: pointer; margin: 0; color: var(--cyan-200); font-size: 15px; }
.post-modal label { text-align: left; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

@media (min-width: 900px) {
  .discover-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; gap: 24px; }
  .col-main > .block:first-child { margin-top: 0; }
  .hero { flex-direction: row; justify-content: space-between; padding: 30px 32px; }
  .hero-text { max-width: 440px; }
  .hero .radar { width: 170px; height: 170px; }
  .hero .radar-plane { inset: 46px; }
  .hero .radar-plane svg { width: 36px; height: 36px; }
  .clips-top { position: static; background: none; padding: 22px 0 14px; justify-content: center; pointer-events: auto; }
  .clips-top .sub { display: inline; }
  #screen-clips { display: none; }
  body[data-view="clips"] #screen-clips { display: flex; flex-direction: column; align-items: center; }
  .feed { height: auto; flex: 1; width: min(440px, 100%); padding-bottom: 24px; }
  .clip { height: calc(100vh / var(--z, 1) - 110px); max-height: 820px; border-radius: 26px; margin-bottom: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
  .chats-page { display: none; }
  body[data-view="chats"] #screen-chats, body[data-view="chat"] #screen-chats { display: grid; grid-template-columns: 380px 1fr; }
  .chat-list { border-right: 1px solid var(--line); background: rgba(var(--bg-rgb), .4); padding: 24px 18px; }
  .chat-pane { display: block; }
  body[data-view="chat"] .chat-list { display: block; }
  body[data-view="chats"] #chat-empty { display: flex; }
  body[data-view="chats"] .chat-view { display: none; }
}

/* ============ Interactive globe ============ */
.globe-wrap { position: relative; width: 100%; max-width: 440px; margin: 0 auto; flex-shrink: 0; }
.globe { width: 100%; aspect-ratio: 1; cursor: grab; touch-action: none; user-select: none; }
.globe:active { cursor: grabbing; }
.globe-loading { height: 100%; display: grid; place-items: center; }
.globe-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 24px 60px rgba(var(--a3-rgb), .35)); }
.g-sphere { stroke: rgba(var(--a2-rgb), .4); stroke-width: 1.2; }
.g-grat { fill: none; stroke: rgba(var(--a2-rgb), .09); stroke-width: .6; }
.g-country { fill: var(--land); stroke: rgba(3, 21, 32, .95); stroke-width: .5; cursor: pointer; transition: fill .25s; }
.g-country.supported { fill: var(--land-2); }
.g-country.stamped { fill: var(--land-stamp); }
.g-country.online { fill: var(--cyan-600); }
.g-country.home { fill: var(--land-home); }
.g-country:hover { fill: var(--cyan-400); }
.g-country.selected { fill: var(--cyan-300); stroke: #fff; stroke-width: 1.4; }
.g-arc { fill: none; stroke: #fcd34d; stroke-width: 3; stroke-linecap: round; pointer-events: none; filter: drop-shadow(0 0 6px rgba(252, 211, 77, .9)); }
.g-mark { cursor: pointer; }
.g-dot { fill: var(--cyan-400); stroke: var(--bg); stroke-width: 2; }
.g-pulse { fill: rgba(var(--a-rgb), .55); transform-box: fill-box; transform-origin: center; animation: gpulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes gpulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.g-count { fill: var(--ink); font-size: 9px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.globe-tip { position: absolute; z-index: 5; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 10px; font-size: 13px; white-space: nowrap; pointer-events: none;
  background: rgba(var(--bg-rgb), .92); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.on { color: #34d399; font-weight: 600; }
.globe-tools { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 8px; }
.globe-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 4px; }
.lg.online { background: var(--cyan-600); box-shadow: 0 0 6px var(--cyan-400); }
.lg.lg-stamp { background: var(--land-stamp); }
.lg.home { background: var(--land-home); }
.globe-panel { position: relative; z-index: 6; width: min(100%, 380px); margin: 12px auto 0; padding: 16px; text-align: left; animation: panelIn .3s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes panelIn { from { transform: translateY(16px); opacity: 0; } }
.gp-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.gp-head { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.gp-head .flag-img { width: 52px; height: 39px; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.gp-name { font-size: 21px; font-weight: 700; }
.gp-fact { margin: 12px 0; font-size: 14px; line-height: 1.45; color: var(--cyan-200); }
.gp-people { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.gp-person { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.gp-person .avatar { width: 40px; height: 40px; font-size: 15px; transition: transform .2s; }
.gp-person:hover .avatar { transform: scale(1.1); }
.globe-panel .btn.big { padding: 13px; font-size: 15px; margin-top: 4px; }
.gp-price { text-align: center; font-size: 12px; color: var(--gold); margin: 8px 0 0; }
.orbit-globe .flag-img { width: 62px; height: 46px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
@media (min-width: 900px) {
  .hero { align-items: center; justify-content: center; gap: 56px; padding: 26px 40px; }
  .hero-text { flex: 0 1 420px; }
  .hero-text h2 { font-size: 40px; }
  .globe-wrap { flex: 0 1 460px; }
}

/* Country flight: keep the globe visible behind a bottom card */
#flying.country-mode { place-items: end center; background: linear-gradient(transparent 35%, rgba(2, 10, 16, .9)); backdrop-filter: none; -webkit-backdrop-filter: none; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
#flying.country-mode .sky { padding: 18px 22px; border-radius: 24px; background: rgba(6, 27, 41, .92); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
#flying.country-mode .orbit { width: 110px; height: 110px; }
#flying.country-mode .orbit-globe { inset: 22px; }
#flying.country-mode .orbit-globe .flag-img { width: 40px; height: 30px; }
#flying.country-mode .sky h2 { font-size: 21px; margin-top: 14px; }
@media (min-width: 900px) { #flying.country-mode { padding-bottom: 40px; } }

/* ============ Live ============ */
body[data-view="live"] #screen-live { display: block; }
#screen-live > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.tab-live { position: absolute; top: 0; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg), 0 0 10px var(--red); }
@media (max-width: 420px) { .tab { min-width: 46px; padding: 4px 2px; } }
.golive { display: flex; align-items: center; gap: 14px; width: 100%; margin: 16px 0 26px; padding: 18px; border-radius: 22px; text-align: left; color: #fff;
  background: linear-gradient(135deg, rgba(251, 93, 114, .9), rgba(var(--a3-rgb), .9)); box-shadow: 0 14px 30px -12px rgba(251, 93, 114, .6); transition: transform .15s, filter .2s; }
.golive:hover { filter: brightness(1.08); }
.golive:active { transform: scale(.99); }
.golive b { font-size: 18px; }
.golive small { display: block; font-size: 13px; opacity: .92; margin-top: 3px; line-height: 1.4; }
.gl-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex-shrink: 0; }
.gl-ico svg { width: 28px; height: 28px; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lcard { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; text-align: left; border: 1px solid var(--line); transition: transform .2s; }
.lcard:hover { transform: translateY(-3px); }
.lcard .card-emoji { font-size: 64px; }
.lc-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 700; }
.live-badge { padding: 2px 7px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.lc-view { padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .45); }
.lc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); font-size: 12px; line-height: 1.35; }
.lc-info b { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.lc-info .flag-img { width: 18px; height: 13px; border-radius: 3px; }
.lc-tag { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; background: rgba(var(--a-rgb), .25); color: var(--cyan-200); }
.lcard.mine { outline: 2px solid var(--red); }

.live-room { position: fixed; inset: 0; z-index: 19; background: #000; display: flex; justify-content: center; }
.live-stage { position: relative; width: 100%; height: 100%; overflow: hidden; }
#live-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
#live-video.mirror { transform: scaleX(-1); }
.live-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .5), transparent 22%, transparent 45%, rgba(0, 0, 0, .78)); }
.live-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.live-host { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgba(0, 0, 0, .42); flex: 1; min-width: 0; }
.live-host .avatar { width: 36px; height: 36px; font-size: 15px; }
.live-host .avatar .flag-img { width: 15px; height: 11px; }
.live-host b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-host small { font-size: 11px; color: rgba(255, 255, 255, .72); }
.follow { margin-left: auto; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--red); color: #fff; flex-shrink: 0; }
.follow.on { background: rgba(255, 255, 255, .2); }
.live-viewers { padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .45); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-x { width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .45); font-size: 15px; flex-shrink: 0; }
.live-title { position: absolute; top: calc(62px + env(safe-area-inset-top)); left: 14px; right: 14px; font-size: 15px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.live-title small { display: block; color: rgba(255, 255, 255, .65); font-size: 12px; font-weight: 400; }
.live-fans { position: absolute; top: calc(108px + env(safe-area-inset-top)); left: 14px; right: 130px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11px; }
.live-fans .fan { padding: 2px 8px; border-radius: 999px; background: rgba(252, 211, 77, .2); color: var(--gold); font-weight: 700; }
.live-earn { position: absolute; top: calc(108px + env(safe-area-inset-top)); right: 14px; padding: 7px 12px; border-radius: 14px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(252, 211, 77, .4); font-size: 15px; font-weight: 700; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }
.live-earn small { display: block; color: rgba(255, 255, 255, .75); font-weight: 500; font-size: 11px; }
.live-note { position: absolute; top: calc(160px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: 86%; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: 12px; color: rgba(255, 255, 255, .8); text-align: center; }
.live-chat { position: absolute; left: 12px; right: 76px; bottom: calc(70px + env(safe-area-inset-bottom)); max-height: 40%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
.lmsg { align-self: flex-start; max-width: 100%; padding: 6px 11px; border-radius: 14px; background: rgba(0, 0, 0, .38); font-size: 14px; line-height: 1.35; animation: rise .25s ease-out; }
.lmsg .who { color: var(--cyan-200); font-weight: 700; margin-right: 5px; cursor: pointer; }
.lmsg .who:hover { text-decoration: underline; }
.lmsg .flag-img { width: 16px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.lmsg small { display: block; color: rgba(255, 255, 255, .55); font-size: 11px; font-style: italic; }
.lmsg.giftmsg { background: linear-gradient(90deg, rgba(252, 211, 77, .35), rgba(251, 93, 114, .25)); }
.lmsg.hostmsg { background: rgba(var(--a-rgb), .26); }
.lmsg.sys { background: rgba(0, 0, 0, .25); color: rgba(255, 255, 255, .78); font-size: 13px; }
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floater { position: absolute; bottom: 110px; font-size: 44px; animation: floatUp 2.6s ease-out forwards; }
.floater.big { font-size: 110px; left: 50% !important; animation: bigGift 2.8s cubic-bezier(.2, 1.2, .4, 1) forwards; }
.floater small { display: block; font-size: 13px; font-weight: 700; text-align: center; color: var(--gold); text-shadow: 0 1px 4px #000; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translateY(-380px) scale(.9) rotate(-12deg); opacity: 0; } }
@keyframes bigGift { 0% { transform: translate(-50%, 0) scale(.2); opacity: 0; } 25% { transform: translate(-50%, -220px) scale(1.2); opacity: 1; } 75% { transform: translate(-50%, -240px) scale(1); opacity: 1; } 100% { transform: translate(-50%, -420px) scale(.6); opacity: 0; } }
.live-bar { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: center; }
.live-bar input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .42); color: #fff; outline: none; }
.live-bar input:focus { border-color: var(--cyan-400); }
.giftbtn { width: 46px; height: 46px; border-radius: 50%; font-size: 22px; flex-shrink: 0; background: linear-gradient(135deg, #fcd34d, #fb5d72); box-shadow: 0 8px 20px -6px rgba(251, 93, 114, .7); animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.live-more { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .2); }
.endbtn { background: var(--red); color: #fff; flex-shrink: 0; }
.gift-sheet, .live-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--panel); border-top: 1px solid var(--line); animation: sheetUp .25s ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.gs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; }
#gs-coins { color: var(--gold); }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gift { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.gift:hover { transform: translateY(-2px); border-color: var(--gold); }
.gift.poor { opacity: .45; }
.gift .ge { font-size: 34px; }
.gift small { font-size: 12px; color: var(--muted); }
.gift b { font-size: 13px; color: var(--gold); }
.live-sheet h4 { margin: 0 0 4px; font-size: 17px; }
.live-sheet .sub { margin: 0 0 12px; }
.live-sheet .acts { display: grid; gap: 8px; }
.live-sheet .acts button { padding: 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; font-weight: 600; }
.live-sheet .acts button:hover { background: var(--surface-2); }
.live-sheet .acts .danger { color: var(--red); }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 6px; }
.sum-grid div { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.sum-grid b { display: block; font-size: 22px; color: var(--cyan-200); font-variant-numeric: tabular-nums; }
.sum-grid span { font-size: 12px; color: var(--muted); }
.sum-grid .money b { color: var(--gold); }
.creator-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; border-radius: 22px; border: 1px solid rgba(252, 211, 77, .3);
  background: linear-gradient(135deg, rgba(252, 211, 77, .12), rgba(251, 93, 114, .1)); }
.creator-card .dia { font-size: 30px; }
.creator-card b { font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.creator-card .sub { display: block; }
@media (min-width: 900px) {
  .live-room { background: radial-gradient(circle at 50% 30%, var(--panel), #000 70%); }
  .live-stage { width: min(480px, 100%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ============ Clip studio (record up to 2 min) ============ */
.post-modal { max-width: 440px; text-align: left; }
.post-head { display: flex; align-items: center; justify-content: space-between; }
.post-head h2 { margin: 0; }
.post-modal > .sub { margin: 4px 0 0; }
.post-stage { position: relative; }
.post-stage canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-progress { position: absolute; top: 10px; left: 12px; right: 12px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.rec-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #fb923c); transition: width .25s linear; }
.rec-time { position: absolute; top: 22px; left: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rec-time.live::before { content: "● "; color: var(--red); }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; font-weight: 800; color: #fff; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); background: rgba(0, 0, 0, .25); }
.countdown b { animation: countPop .9s ease-out; }
@keyframes countPop { from { transform: scale(2); opacity: 0; } 40% { opacity: 1; } }
.stage-btn { position: absolute; top: 18px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .5); font-size: 18px; }
.reply-tag { position: absolute; bottom: 12px; left: 12px; right: 12px; padding: 6px 10px; border-radius: 12px; background: rgba(var(--bg-rgb), .8); border: 1px solid var(--line); font-size: 12px; color: var(--cyan-200); text-align: center; }
.len-seg { margin: 14px auto 0; max-width: 260px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-chip { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.filter-chip i { width: 46px; height: 46px; border-radius: 14px; border: 2px solid transparent; background: linear-gradient(135deg, #f9a8d4, var(--cyan-400) 55%, var(--orb-3)); }
.filter-chip.on { color: var(--cyan-200); }
.filter-chip.on i { border-color: var(--cyan-400); box-shadow: 0 0 0 3px rgba(var(--a-rgb), .25); }
.rec-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 10px; }
.rec-controls .file-btn { justify-self: start; }
.rec-controls #rec-done { justify-self: end; }
.rec-big { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; border: 4px solid rgba(255, 255, 255, .85); background: transparent; transition: transform .15s; }
.rec-big span { width: 56px; height: 56px; border-radius: 50%; background: var(--red); transition: all .2s; }
.rec-big:active { transform: scale(.94); }
.rec-big.recording span { width: 28px; height: 28px; border-radius: 8px; }
.rec-big.paused span { background: #fb923c; }
.rec-hint { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
#post-details { margin-top: 6px; }
.check-row { display: flex !important; align-items: flex-start; gap: 10px; margin-top: 12px !important; color: var(--text) !important; font-size: 14px !important; cursor: pointer; }
.check-row.hidden { display: none !important; }
.pc-sec { margin-top: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.pc-perks { margin-top: 4px !important; }
.price-list .pl-head, #price-list .pl-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cs-locked { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14px; }
.cs-locked small { display: block; margin-top: 4px; opacity: .8; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cyan-400); }
.check-row small { display: block; color: var(--muted); font-size: 12px; }

/* intro prompt */
.intro-modal { max-width: 420px; }
.intro-cam { font-size: 64px; animation: bob 2.6s ease-in-out infinite; }
.intro-tips { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; text-align: left; font-size: 14px; color: var(--cyan-200); }
.intro-tips li { padding: 8px 12px; border-radius: 12px; background: var(--surface); }
.intro-modal .btn.ghost { width: 100%; margin-top: 6px; }

/* feed extras */
.clip-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; margin-right: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .2); }
.clip-tag.intro { background: rgba(var(--a-rgb), .25); border-color: rgba(var(--a2-rgb), .5); }
.clip-tag.reply { cursor: pointer; }
.fx-warm { filter: sepia(.35) saturate(1.3) hue-rotate(-10deg); }
.fx-cool { filter: saturate(1.1) hue-rotate(15deg) brightness(1.05); }
.fx-vivid { filter: saturate(1.7) contrast(1.1); }
.fx-bw { filter: grayscale(1) contrast(1.15); }
.fx-dream { filter: brightness(1.1) saturate(1.3) blur(.6px); }
.tile-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; background: var(--grad); color: var(--ink); }
.post-stage canvas.mirror { transform: scaleX(-1); }

/* ======================================================================
   Refresh: deeper ocean, coral "love" accent, display headings,
   gradient-edged cards, clearer tab bar, profiles and visitors
   ====================================================================== */
:root {
  --bg: #031019;
  --love: #fb7185;
  --violet: #7c6cf6;
  --card: rgba(9, 32, 47, .78);
  --edge: linear-gradient(140deg, rgba(103, 232, 249, .45), rgba(124, 108, 246, .18) 45%, rgba(251, 113, 133, .25));
  --display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
}
h1, h2, .me-name, .peer-name, .page-title, .onboard-hero h1 { font-family: var(--display); letter-spacing: -.02em; }
.bg-orbs i:nth-child(2) { background: var(--orb-2); opacity: .35; }
.bg-orbs i:nth-child(3) { background: var(--orb-3); }
.card, .hero, .card-block, .profile-card { border: 1px solid transparent !important;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box !important; }
.hero { background: radial-gradient(120% 100% at 30% 0%, rgba(var(--a-rgb), .22), transparent 60%) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box !important; }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn.primary:hover::after { transform: translateX(120%); }
.tab.on { background: rgba(var(--a-rgb), .12); border-radius: 14px; }
.tab.on::after { background: var(--love); box-shadow: 0 0 10px var(--love); }
.tab-badge, .live-badge { background: var(--love); }
.clip-actions .liked svg { color: var(--love); }
.avatar { box-shadow: 0 0 0 2px rgba(3, 16, 25, .9); }
.clip-user, .chat-head .peer, #live-host .avatar, #live-host b, #online .item .avatar { cursor: pointer; }
.chat-head .peer:hover .peer-name { text-decoration: underline; text-underline-offset: 3px; }
.toast { background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; border: 1px solid transparent; }

/* Profile sheet */
.profile-sheet { position: relative; max-width: 440px; max-height: calc(92vh / var(--z, 1)); overflow-y: auto; padding: 0 0 22px !important; text-align: center; scrollbar-width: none; }
.profile-sheet::-webkit-scrollbar { display: none; }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(6px); }
.pf-cover { position: relative; height: 150px; overflow: hidden; border-radius: 22px 22px 0 0;
  background: radial-gradient(120% 120% at 20% 0%, hsl(var(--h) 80% 55% / .7), transparent 60%), linear-gradient(140deg, hsl(var(--h) 70% 30%), #0b1d4a 70%, #3b1d4f); }
.pf-cover video { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.pf-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(9, 32, 47, .95)); }
.pf-head { margin-top: -54px; position: relative; padding: 0 20px; }
.pf-avatar { display: inline-block; padding: 4px; border-radius: 50%; background: var(--edge); }
.pf-avatar.is-online { background: conic-gradient(#34d399, var(--cyan-400), #34d399); }
.pf-avatar .avatar.xl { width: 96px; height: 96px; font-size: 40px; }
.pf-head h2 { margin: 10px 0 2px; font-size: 26px; }
.pf-head .sub { margin: 0; }
.pf-status { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.st { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.st.on { color: #34d399; }
.st.off { color: var(--muted); }
.st.live { color: #fff; background: var(--love); border-color: transparent; animation: livePulse 1.6s infinite; }
.st.me { color: var(--cyan-200); }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(var(--love-rgb), .2); } }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 20px 0; padding: 12px 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pf-stats div { display: flex; flex-direction: column; }
.pf-stats div + div { border-left: 1px solid var(--line); }
.pf-stats b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.pf-stats span { font-size: 12px; color: var(--muted); }
.pf-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 20px 0; }
.pf-tags span { padding: 5px 11px; border-radius: 999px; font-size: 12px; background: rgba(var(--a-rgb), .1); color: var(--cyan-200); }
.pf-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 20px 0; }
.pf-actions .btn { flex: 1 1 auto; }
.pf-actions .btn.following { color: #34d399; background: rgba(52, 211, 153, .12); }
.pf-actions .btn.icon-only { flex: 0 0 46px; padding: 11px 0; font-size: 18px; }
.btn.live-btn { background: var(--love); color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--love-rgb), .7); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pf-more { display: grid; gap: 6px; margin: 10px 20px 0; }
.pf-more button { padding: 11px; border-radius: 12px; background: var(--surface); text-align: left; }
.pf-more .danger { color: var(--red); }
.pf-h { margin: 22px 20px 10px; text-align: left; }
.pf-clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 20px; }
.pf-clips .clip-tile { flex: none; width: 100%; }
.pf-clips .empty { grid-column: 1 / -1; }

/* Who viewed your profile */
.soft-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(252, 211, 77, .12); color: var(--gold); }
.visitors { display: grid; gap: 8px; }
.visitor { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: border-color .2s, transform .15s; }
.visitor:hover { border-color: var(--cyan-400); transform: translateY(-1px); }
.visitor b { font-weight: 600; }
.visitor small { display: block; color: var(--muted); font-size: 12px; }
.visit-cta { font-size: 12px; font-weight: 600; color: var(--cyan-300); }
.visitors-locked { text-align: center; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px dashed rgba(252, 211, 77, .4); }
.blur-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.blur-row i { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); filter: blur(5px); opacity: .7; }

/* ============ Creator plans, studio, fan subscriptions, gifts in chat ============ */
.plan-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .3px; vertical-align: 2px; white-space: nowrap; }
.plan-badge.plus { color: #fde68a; background: rgba(252, 211, 77, .14); border: 1px solid rgba(252, 211, 77, .4); }
.plan-badge.pro { color: var(--ink); background: linear-gradient(135deg, #fcd34d, var(--cyan-300)); }
.plan-badge.regular { color: var(--cyan-200); background: var(--surface-2); border: 1px solid var(--line); }
.cs-head .plan-badge { margin-left: 0; font-size: 12px; padding: 3px 10px; }
.fan-badge { display: inline-block; margin-right: 5px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 800; background: rgba(252, 211, 77, .3); color: var(--gold); }

.creator-card { display: block; }
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cs-head b { font-size: 16px; color: var(--text); }
.cs-total { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.cs-total b { font-size: 26px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.cs-grid div { padding: 10px 12px; border-radius: 14px; background: rgba(var(--bg-rgb), .45); border: 1px solid var(--line); }
.cs-grid b { display: block; font-size: 17px; color: var(--cyan-200); }
.cs-grid span { font-size: 11px; color: var(--muted); }
.cs-grid .owed b { color: var(--red); }
.cs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-fine { text-align: left; margin-top: 8px; }
.cs-more { margin-top: 10px; font-size: 14px; }
.cs-more summary { cursor: pointer; color: var(--cyan-300); font-weight: 600; }
.cs-row { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.cs-row b { font-size: 14px; color: var(--text); }
.cs-row.head span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.cs-settings { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.cs-settings label small { color: var(--muted); font-weight: 400; }

.plans-modal { max-width: 980px; max-height: calc(94vh / var(--z, 1)); overflow-y: auto; position: relative; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; text-align: left; }
.plan-card { display: flex; flex-direction: column; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.plan-card.plus { border-color: rgba(252, 211, 77, .35); }
.plan-card.pro { border: 1px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(135deg, #fcd34d, var(--cyan-400)) border-box; }
.plan-card.current { box-shadow: 0 0 0 3px rgba(var(--a-rgb), .35); }
.pc-name { font-weight: 800; font-size: 18px; }
.pc-share { font-size: 40px; font-weight: 800; line-height: 1.1; margin-top: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-card.pro .pc-share, .plan-card.plus .pc-share { background: linear-gradient(135deg, #fde68a, var(--cyan-300)); -webkit-background-clip: text; background-clip: text; }
.pc-price { margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
.pc-price b { color: var(--text); font-size: 16px; }
.pc-hour { font-size: 13px; color: var(--gold); font-weight: 600; }
.plan-card ul { margin: 12px 0; padding-left: 18px; font-size: 13px; color: var(--text); line-height: 1.6; flex: 1; }
.pc-btns { display: flex; flex-direction: column; gap: 8px; }
.pc-btns .link { align-self: center; }
.plans-note { margin-top: 14px; text-align: left; font-size: 13px; color: var(--muted); }
.plans-note p { margin: 8px 0; }
.plans-note b { color: var(--text); }

.pf-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 16px 0; padding: 14px 16px; border-radius: 18px; text-align: left;
  background: linear-gradient(135deg, rgba(252, 211, 77, .14), rgba(var(--a-rgb), .1)); border: 1px solid rgba(252, 211, 77, .35); }
.pf-sub small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pf-sub.on { background: rgba(var(--a-rgb), .1); border-color: var(--line); }
.pf-rate, .pf-fan { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.pf-rate b { color: var(--gold); }
.pf-fan { color: var(--gold); font-weight: 700; }
.tile-badge.fans { left: auto; right: 8px; background: linear-gradient(135deg, #fcd34d, #fb5d72); }
.clip-tag.fans { background: rgba(252, 211, 77, .3); border-color: rgba(252, 211, 77, .6); }
.locked-clip .lock-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.locked-clip .card-emoji { font-size: 90px; }
.lc-tag.fans { background: rgba(252, 211, 77, .3); color: var(--gold); }
.lc-tag.ticket { background: rgba(251, 113, 133, .3); color: #fecdd3; }
.sub-pill { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink); background: linear-gradient(135deg, #fcd34d, #fb5d72); pointer-events: auto; }
.sub-pill.on { color: var(--gold); background: rgba(0, 0, 0, .45); }

.chat-gift { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; font-size: 22px; background: linear-gradient(135deg, #fcd34d, #fb5d72); box-shadow: 0 8px 20px -8px rgba(251, 93, 114, .7); }
.gift-round { font-size: 24px; background: linear-gradient(135deg, #fcd34d, #fb5d72) !important; }
.gift-bubble { display: flex; align-items: center; gap: 10px; max-width: 80%; margin: 6px 0; padding: 10px 14px; border-radius: 18px; animation: rise .25s ease-out;
  background: linear-gradient(90deg, rgba(252, 211, 77, .22), rgba(251, 93, 114, .16)); border: 1px solid rgba(252, 211, 77, .35); }
.gift-bubble.mine { margin-left: auto; }
.gift-bubble .gb-emoji { font-size: 32px; }
.gift-bubble small { display: block; color: var(--gold); font-size: 12px; font-weight: 600; }
.sheet-overlay { z-index: 35; align-items: end; place-items: end center; }
.cgift-sheet { width: 100%; max-width: 480px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; animation: sheetUp .25s ease-out; }
.cgift-sheet .btn.ghost { display: block; margin: 8px auto 0; }
#call-floaters { z-index: 2; }

/* ============ Email sign-up / log-in ============ */
.have-account { text-align: center; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
label small { color: var(--muted); font-weight: 400; }
.code-input { display: block; width: 100%; max-width: 280px; margin: 6px auto 0; padding: 14px; text-align: center; font-size: 32px; font-weight: 800; letter-spacing: 12px;
  border-radius: 18px; border: 1px solid var(--cyan-400); background: rgba(var(--bg-rgb), .7); color: var(--cyan-200); outline: none; font-variant-numeric: tabular-nums; }
.code-input:focus { box-shadow: 0 0 0 4px rgba(var(--a-rgb), .2); }
.verify-modal .btn.big { margin-top: 18px; }
.verify-modal .row.tight { gap: 22px; }
.dev-code { margin: 12px 0 0 !important; padding: 8px 12px; border-radius: 12px; font-size: 13px; color: var(--gold) !important; background: rgba(252, 211, 77, .1); border: 1px dashed rgba(252, 211, 77, .4); }

/* ======================================================================
   THEMES — 4 colour skins: Sky (default, matches the FlyClick balloon logo), Aurora, Sunset, Jade.
   <html data-skin="…"> picks one; every colour above reads these tokens. ("ocean" is Sky's id, kept so saved choices still work.)
   ====================================================================== */
:root, html[data-skin="ocean"] {
  --bg: #070f2e; --bg-rgb: 7, 15, 46; --panel: #0f1d4a; --ink: #06123a;
  --text: #eef6ff; --muted: #93a6cf;
  --cyan-200: #bfe9ff; --cyan-300: #7dd3fc; --cyan-400: #38bdf8; --cyan-500: #3b82f6; --cyan-600: #2563eb; --teal: #67e8f9;
  --a-rgb: 56, 189, 248; --a2-rgb: 125, 211, 252; --a3-rgb: 37, 99, 235; --t-rgb: 103, 232, 249;
  --love: #ff8a5c; --love-rgb: 255, 138, 92; --violet: #6366f1;
  --grad: linear-gradient(135deg, #a5f3fc 0%, #38bdf8 42%, #2563eb 100%);
  --grad-hot: linear-gradient(120deg, #a5f3fc, #60a5fa 52%, #ff8a5c);
  --glow: 0 10px 40px -8px rgba(56, 189, 248, .6);
  --card: rgba(14, 28, 72, .78);
  --line: rgba(125, 211, 252, .16);
  --edge: linear-gradient(140deg, rgba(165, 243, 252, .55), rgba(99, 102, 241, .22) 45%, rgba(255, 138, 92, .35));
  --orb-1: #2563eb; --orb-2: #3730a3; --orb-3: #0e7490;
  --land: #13285e; --land-2: #1d3f86; --land-stamp: #0891b2; --land-home: #f59e0b;
  --globe-1: #1e4fae; --globe-2: #0d2466; --globe-3: #050c26;
  --theme-color: #070f2e;
}
html[data-skin="aurora"] {
  --bg: #0b0620; --bg-rgb: 11, 6, 32; --panel: #1a1036; --ink: #1e0b3a;
  --text: #f8f0ff; --muted: #b3a3cf;
  --cyan-200: #f5d0fe; --cyan-300: #e879f9; --cyan-400: #c084fc; --cyan-500: #a855f7; --cyan-600: #7c3aed; --teal: #22d3ee;
  --a-rgb: 192, 132, 252; --a2-rgb: 232, 121, 249; --a3-rgb: 124, 58, 237; --t-rgb: 34, 211, 238;
  --love: #fb7185; --love-rgb: 251, 113, 133; --violet: #22d3ee;
  --grad: linear-gradient(135deg, #f0abfc 0%, #c084fc 45%, #7c3aed 100%);
  --grad-hot: linear-gradient(120deg, #f0abfc, #22d3ee 55%, #c084fc);
  --glow: 0 10px 44px -8px rgba(192, 132, 252, .7);
  --card: rgba(26, 16, 54, .8);
  --line: rgba(232, 121, 249, .18);
  --edge: linear-gradient(140deg, rgba(240, 171, 252, .6), rgba(34, 211, 238, .25) 45%, rgba(251, 113, 133, .35));
  --orb-1: #7c3aed; --orb-2: #db2777; --orb-3: #0e7490;
  --land: #2a1650; --land-2: #4c1d95; --land-stamp: #0e7490; --land-home: #db2777;
  --globe-1: #6d28d9; --globe-2: #2e1065; --globe-3: #12052e;
  --theme-color: #0b0620;
}
html[data-skin="sunset"] {
  --bg: #140812; --bg-rgb: 20, 8, 18; --panel: #2a1020; --ink: #3b0a0a;
  --text: #fff4ec; --muted: #c9a99a;
  --cyan-200: #fed7aa; --cyan-300: #fdba74; --cyan-400: #fb923c; --cyan-500: #f97316; --cyan-600: #ea580c; --teal: #fbbf24;
  --a-rgb: 251, 146, 60; --a2-rgb: 253, 186, 116; --a3-rgb: 234, 88, 12; --t-rgb: 251, 191, 36;
  --love: #f43f5e; --love-rgb: 244, 63, 94; --violet: #e11d48;
  --grad: linear-gradient(135deg, #fde68a 0%, #fb923c 45%, #e11d48 100%);
  --grad-hot: linear-gradient(120deg, #fde68a, #fb923c 50%, #db2777);
  --glow: 0 10px 44px -8px rgba(251, 146, 60, .65);
  --card: rgba(42, 16, 32, .8);
  --line: rgba(253, 186, 116, .17);
  --edge: linear-gradient(140deg, rgba(253, 230, 138, .55), rgba(225, 29, 72, .3) 50%, rgba(251, 146, 60, .35));
  --orb-1: #ea580c; --orb-2: #be185d; --orb-3: #7c2d12;
  --land: #3a1424; --land-2: #6b1d34; --land-stamp: #b45309; --land-home: #e11d48;
  --globe-1: #c2410c; --globe-2: #5b1a1a; --globe-3: #1c0710;
  --theme-color: #140812;
}
html[data-skin="jade"] {
  --bg: #03130e; --bg-rgb: 3, 19, 14; --panel: #0a2a20; --ink: #022c22;
  --text: #ecfdf5; --muted: #93b8a8;
  --cyan-200: #bbf7d0; --cyan-300: #6ee7b7; --cyan-400: #34d399; --cyan-500: #10b981; --cyan-600: #059669; --teal: #facc15;
  --a-rgb: 52, 211, 153; --a2-rgb: 110, 231, 183; --a3-rgb: 5, 150, 105; --t-rgb: 250, 204, 21;
  --love: #fb7185; --love-rgb: 251, 113, 133; --violet: #facc15;
  --grad: linear-gradient(135deg, #a7f3d0 0%, #34d399 45%, #0d9488 100%);
  --grad-hot: linear-gradient(120deg, #a7f3d0, #facc15 55%, #34d399);
  --glow: 0 10px 44px -8px rgba(52, 211, 153, .65);
  --card: rgba(8, 38, 28, .8);
  --line: rgba(110, 231, 183, .16);
  --edge: linear-gradient(140deg, rgba(167, 243, 208, .55), rgba(250, 204, 21, .22) 50%, rgba(13, 148, 136, .35));
  --orb-1: #059669; --orb-2: #0f766e; --orb-3: #65a30d;
  --land: #0e3326; --land-2: #145c43; --land-stamp: #a16207; --land-home: #facc15;
  --globe-1: #047857; --globe-2: #064e3b; --globe-3: #021a12;
  --theme-color: #03130e;
}

/* ---------- Glow & gradients (all themes) ---------- */
html, body { background: var(--bg); color: var(--text); transition: background .4s; }
/* slow-moving aurora behind everything */
.bg-orbs::before { content: ""; position: absolute; inset: -30%; opacity: .32; filter: blur(70px);
  background: conic-gradient(from 0deg at 50% 50%, rgba(var(--a-rgb), .55), transparent 25%, rgba(var(--love-rgb), .35), transparent 55%, rgba(var(--a3-rgb), .5), transparent 80%);
  animation: auroraSpin 40s linear infinite; }
@keyframes auroraSpin { to { transform: rotate(360deg); } }
.bg-orbs i:nth-child(1) { background: var(--orb-1); }
.bg-orbs i:nth-child(2) { background: var(--orb-2); }
.bg-orbs i:nth-child(3) { background: var(--orb-3); }
/* gradient, glowing headlines */
.onboard-hero h1 .grad, .hero h2, .welcome h2, .page-title, .pf-head h2 {
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(var(--a-rgb), .35)); }
/* buttons glow brighter on hover */
.btn.primary, .send, .icon-btn.accent, .tab.post, .rail-logo { background: var(--grad); color: var(--ink); box-shadow: var(--glow); }
.btn.primary:hover, .send:hover, .tab.post:hover { box-shadow: 0 12px 50px -6px rgba(var(--a-rgb), .9), 0 0 0 1px rgba(var(--a2-rgb), .4) inset; }
/* active tab: soft glowing pill */
.tab.on { color: var(--cyan-300); background: rgba(var(--a-rgb), .14); box-shadow: 0 0 24px -6px rgba(var(--a-rgb), .7); }
/* cards: gradient edge + faint inner glow */
.card, .hero, .card-block, .profile-card, .item:hover {
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 40px -20px rgba(var(--a-rgb), .45); }
.avatar { box-shadow: 0 0 0 2px rgba(var(--bg-rgb), .9), 0 0 18px -4px rgba(var(--a-rgb), .6); }
.stat b, .pf-stats b { text-shadow: 0 0 18px rgba(var(--a-rgb), .45); }
.chip.on, .seg button.on { box-shadow: inset 0 0 0 1px var(--cyan-400), 0 0 16px -4px rgba(var(--a-rgb), .7); }
.bubble.mine { background: var(--grad); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(var(--a-rgb), .7); }

/* ---------- Theme picker ---------- */
.skins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.skin { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 18px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: transform .15s, border-color .2s, box-shadow .2s; }
.skin:hover { transform: translateY(-2px); }
.skin i { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .6); }
.skin.on { color: var(--text); border-color: var(--cyan-400); box-shadow: 0 0 22px -6px rgba(var(--a-rgb), .8); }
.skin.on i { outline: 2px solid var(--text); outline-offset: 3px; }
.skin[data-skin="ocean"] i { background: conic-gradient(from 210deg, #a5f3fc, #2563eb, #0b1f55, #ff8a5c, #a5f3fc); }
.skin[data-skin="aurora"] i { background: conic-gradient(from 210deg, #f0abfc, #7c3aed, #22d3ee, #c084fc, #f0abfc); }
.skin[data-skin="sunset"] i { background: conic-gradient(from 210deg, #fde68a, #fb923c, #e11d48, #be185d, #fde68a); }
.skin[data-skin="jade"] i { background: conic-gradient(from 210deg, #a7f3d0, #059669, #facc15, #34d399, #a7f3d0); }
.skins.compact { margin-top: 14px; }
.skins.compact .skin { padding: 8px 4px; font-size: 11px; }
.skins.compact .skin i { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .bg-orbs::before { animation: none; } }

.stamps .empty { grid-column: 1 / -1; }

/* ---------- FlyClick balloon logo + slogan ---------- */
/* Like the app icon: dark tile, light balloon in the theme's accent colour */
.logo:has(.balloon), .rail-logo:has(.balloon) { transform: none; background: radial-gradient(circle at 50% 30%, rgba(var(--a3-rgb), .55), var(--panel) 70%);
  color: var(--cyan-300); border: 1px solid rgba(var(--a-rgb), .45); }
.logo svg.balloon { width: 52px; height: 52px; transform: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); animation: balloonFloat 5s ease-in-out infinite; }
.rail-logo svg.balloon { width: 34px; height: 34px; transform: none; }
@keyframes balloonFloat { 50% { transform: translateY(-4px); } }
.onboard-hero .slogan { margin: 4px 0 10px; font-size: 20px; font-weight: 700; color: var(--cyan-200); letter-spacing: .2px; }
@media (prefers-reduced-motion: reduce) { .logo svg.balloon { animation: none; } }

/* ======================================================================
   SKY SUNSET — the default theme: Sky's navy and sky blue + Sunset's warm orange, rose and gold
   ====================================================================== */
html[data-skin="skyset"] {
  --bg: #0a1236; --bg-rgb: 10, 18, 54; --panel: #16204f; --ink: #0b1233;
  --text: #f6f4ff; --muted: #a9b0d6;
  --cyan-200: #bae6fd; --cyan-300: #7dd3fc; --cyan-400: #38bdf8; --cyan-500: #3b82f6; --cyan-600: #2563eb; --teal: #fbbf24;
  --a-rgb: 56, 189, 248; --a2-rgb: 125, 211, 252; --a3-rgb: 37, 99, 235; --t-rgb: 251, 191, 36;
  --love: #ff8a5c; --love-rgb: 255, 138, 92; --violet: #f43f5e;
  --grad: linear-gradient(120deg, #7dd3fc 0%, #60a5fa 34%, #fb923c 78%, #f43f5e 100%);
  --grad-hot: linear-gradient(120deg, #7dd3fc, #fb923c 55%, #f43f5e);
  --glow: 0 10px 44px -8px rgba(251, 146, 60, .55);
  --card: rgba(22, 30, 78, .8);
  --line: rgba(125, 211, 252, .16);
  --edge: linear-gradient(140deg, rgba(125, 211, 252, .55), rgba(251, 146, 60, .32) 50%, rgba(244, 63, 94, .35));
  --orb-1: #2563eb; --orb-2: #ea580c; --orb-3: #be185d;
  --land: #1a2860; --land-2: #27408a; --land-stamp: #f59e0b; --land-home: #fb923c;
  --globe-1: #1e4fae; --globe-2: #2a1b5e; --globe-3: #090c26;
  --theme-color: #0a1236;
}
.skin[data-skin="skyset"] i { background: conic-gradient(from 210deg, #7dd3fc, #2563eb, #fb923c, #f43f5e, #fde68a, #7dd3fc); }
.skins { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.skins .skin { font-size: 11px; padding: 10px 2px 8px; }
.skins .skin i { width: 38px; height: 38px; }

/* Each theme's own light accents, kept so dark media screens can use them in light mode */
:root, html[data-skin="ocean"] { --hl-200: #bfe9ff; --hl-300: #7dd3fc; }
html[data-skin="skyset"] { --hl-200: #bae6fd; --hl-300: #7dd3fc; }
html[data-skin="aurora"] { --hl-200: #f5d0fe; --hl-300: #e879f9; }
html[data-skin="sunset"] { --hl-200: #fed7aa; --hl-300: #fdba74; }
html[data-skin="jade"] { --hl-200: #bbf7d0; --hl-300: #6ee7b7; }

/* ======================================================================
   LIGHT MODE — <html data-mode="light"> works with every colour theme.
   Video screens (clips, lives, calls) stay dark on purpose, like other video apps.
   ====================================================================== */
html[data-mode="light"] {
  --bg: #f4f6fc; --bg-rgb: 244, 246, 252; --bg-2: #eaeef8; --panel: #ffffff;
  --card: rgba(255, 255, 255, .92); --text: #111a3a; --muted: #5a6585;
  --surface: rgba(17, 26, 58, .045); --surface-2: rgba(17, 26, 58, .085);
  --line: rgba(var(--a3-rgb), .2);
  --cyan-200: var(--cyan-600); --cyan-300: var(--cyan-600);
  --gold: #b7791f;
  --theme-color: #f4f6fc;
  color-scheme: light;
}
html[data-mode="light"] .bg-orbs { opacity: .12; filter: saturate(1.4); }
html[data-mode="light"] .bg-orbs::before { opacity: .1; }
html[data-mode="light"] .overlay { background: rgba(17, 26, 58, .38); }
html[data-mode="light"] .card, html[data-mode="light"] .hero, html[data-mode="light"] .card-block, html[data-mode="light"] .profile-card {
  box-shadow: 0 18px 44px -26px rgba(17, 26, 58, .35), 0 0 0 1px rgba(var(--a3-rgb), .08); }
html[data-mode="light"] :is(.onboard-hero h1 .grad, .hero h2, .welcome h2, .page-title, .pf-head h2) { filter: brightness(.78) saturate(1.35); }
html[data-mode="light"] .unlock .bar, html[data-mode="light"] .progress { background: rgba(17, 26, 58, .09); }
html[data-mode="light"] .plan-badge.plus { color: #8a5a00; background: rgba(252, 211, 77, .28); }
html[data-mode="light"] .skin { background: rgba(17, 26, 58, .03); }
html[data-mode="light"] .avatar { box-shadow: 0 0 0 2px #fff, 0 0 14px -4px rgba(var(--a-rgb), .5); }
html[data-mode="light"] .toast { box-shadow: 0 14px 34px -10px rgba(17, 26, 58, .3); }
/* Dark islands: video, live and call screens, plus picture tiles, keep light-on-dark colours */
html[data-mode="light"] :is(#screen-clips, .live-room, .call, #flying, .lcard, .clip-tile, .post-stage, .pf-cover, .golive) {
  --bg: #070f2e; --bg-rgb: 7, 15, 46; --panel: #121a3d; --card: rgba(18, 26, 61, .86);
  --text: #f5f8ff; --muted: rgba(235, 240, 255, .72);
  --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .1); --line: rgba(255, 255, 255, .14);
  --cyan-200: var(--hl-200); --cyan-300: var(--hl-300); --gold: #fcd34d;
  color: var(--text); color-scheme: dark;
}
html[data-mode="light"] #screen-clips { background: #000; }
html[data-mode="light"] :is(#screen-clips, .live-room, .lcard, .call) .plan-badge.plus { color: #fde68a; background: rgba(252, 211, 77, .14); }

/* ---------- Light / dark switch ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mode { padding: 10px 6px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.mode.on { color: var(--text); border-color: var(--cyan-400); box-shadow: 0 0 18px -6px rgba(var(--a-rgb), .7); }
.modes.compact .mode { padding: 7px 4px; font-size: 12px; }

/* ---------- Day & night on the globe, local times ---------- */
.g-night { fill: rgba(1, 3, 16, .36); pointer-events: none; }
.g-sun-glow { fill: rgba(253, 224, 71, .28); filter: blur(6px); }
.g-sun-core { fill: #fde68a; stroke: #fff7d6; stroke-width: 2; filter: drop-shadow(0 0 8px rgba(253, 224, 71, .95)); }
.lg.night { background: linear-gradient(90deg, var(--land-2) 50%, #0b1030 50%); }
.my-time { font-size: 12px; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.my-time b { color: var(--text); }
.globe-tip small { color: var(--muted); font-weight: 500; }
.gp-time, .pf-time { margin: 8px 0 0; font-size: 13px; color: var(--cyan-200); font-weight: 600; }
.pf-time { text-align: center; }

/* ======================================================================
   FONTS — <html data-font="…">: Classic (default: Outfit + Bricolage headings), Friendly, Bold, Easy read, Playful.
   Each sets the text font and the heading font (--display). theme.js loads the font file when it's picked.
   ====================================================================== */
html[data-font="friendly"] { font-family: "Nunito", system-ui, sans-serif; --display: "Nunito", system-ui, sans-serif; }
html[data-font="bold"] { font-family: "Poppins", system-ui, sans-serif; --display: "Poppins", system-ui, sans-serif; }
html[data-font="easy"] { font-family: "Lexend", system-ui, sans-serif; --display: "Lexend", system-ui, sans-serif; }
html[data-font="playful"] { font-family: "Baloo 2", system-ui, sans-serif; --display: "Baloo 2", system-ui, sans-serif; }
html[data-font="bold"] :is(h1, h2, .page-title) { letter-spacing: -.03em; }
html[data-font="easy"] body { letter-spacing: .005em; }

/* ---------- Coin packs: the $100 pack with the new-user bonus takes two columns ---------- */
.packs { margin-top: 14px; row-gap: 16px; }
.pack.has-bonus { grid-column: span 2; border-color: rgba(252, 211, 77, .55); background: linear-gradient(135deg, rgba(252, 211, 77, .16), rgba(244, 63, 94, .12)); }
.pack .tag.bonus { background: linear-gradient(120deg, #fde68a, #fb923c); }
.pack .bonus-line { font-size: 12px; font-weight: 700; color: var(--gold); text-align: center; line-height: 1.3; }
.pack .bonus-line small { font-weight: 500; color: var(--muted); }

/* ---------- Big gift effects (playGift in live.js) ---------- */
.floater.burst { font-size: 34px; animation: giftBurst 3s ease-out forwards; }
@keyframes giftBurst { 0% { transform: translateY(0) scale(.4) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-560px) scale(1.15) rotate(25deg); opacity: 0; } }
.grand-glow { position: absolute; inset: 0; pointer-events: none; animation: grandGlow 4.2s ease-out forwards;
  background: radial-gradient(circle at 50% 45%, rgba(252, 211, 77, .55), rgba(251, 146, 60, .25) 35%, transparent 70%); }
@keyframes grandGlow { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: .8; } 100% { opacity: 0; } }
.grand-banner { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 26px; border-radius: 22px; text-align: center; white-space: nowrap; pointer-events: none; color: #2b1400;
  background: linear-gradient(120deg, #fde68a, #fb923c 55%, #f43f5e); box-shadow: 0 18px 50px -10px rgba(251, 146, 60, .9), 0 0 0 3px rgba(255, 255, 255, .5) inset;
  animation: grandBanner 4.2s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.grand-banner b { font-size: 22px; font-weight: 800; }
.grand-banner span { font-size: 15px; font-weight: 700; }
@keyframes grandBanner { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } 12% { transform: translateX(-50%) scale(1.08); opacity: 1; } 20% { transform: translateX(-50%) scale(1); }
  85% { opacity: 1; } 100% { transform: translateX(-50%) translateY(-30px); opacity: 0; } }
.gift-layer { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.gift .usd { font-size: 10px; color: var(--muted); font-weight: 500; }
.gift.grand { grid-column: span 3; flex-direction: row; justify-content: center; gap: 10px; background: linear-gradient(120deg, rgba(252, 211, 77, .18), rgba(244, 63, 94, .14)); border-color: rgba(252, 211, 77, .5); }
@media (prefers-reduced-motion: reduce) { .floater.burst, .grand-glow { animation: none; display: none; } }

/* ---------- Safety warning under a flagged message (safety.js) ---------- */
.warn-note { margin-top: 8px; padding: 7px 10px; border-radius: 10px; font-size: 12px; line-height: 1.4; color: #fde68a; background: rgba(251, 146, 60, .16); border: 1px solid rgba(251, 146, 60, .4); }
html[data-mode="light"] .warn-note { color: #92400e; background: rgba(251, 146, 60, .12); }

/* ---------- Legal links + delete account (Me page) ---------- */
.legal-links { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.legal-links a, .fine a { color: var(--cyan-300); text-decoration: none; }
.legal-links a:hover, .fine a:hover { text-decoration: underline; }
.delete-account { display: block; margin: 16px auto 8px; font-size: 12px; color: var(--muted); text-decoration: underline; opacity: .8; }
.delete-account:hover { color: var(--red); opacity: 1; }

/* ---------- Text size: <html data-size="…"> scales the whole app; --z keeps full-screen heights exact ---------- */
html[data-size="small"] { zoom: .9; --z: .9; }
html[data-size="large"] { zoom: 1.12; --z: 1.12; }
html[data-size="xlarge"] { zoom: 1.25; --z: 1.25; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sizes .mode b { display: block; line-height: 1.1; }
.sizes .mode span { display: block; font-size: 11px; font-weight: 500; }

/* ---------- Appearance section ---------- */
.appearance { padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.appearance .label { margin: 16px 0 8px; }
.appearance .label:first-child { margin-top: 0; }
.fonts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.font-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 2px 8px; border-radius: 16px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .2s; }
.font-opt:hover { transform: translateY(-2px); }
.font-opt b { font-size: 24px; color: var(--text); line-height: 1.1; }
.font-opt span { font-size: 11px; font-weight: 600; text-align: center; }
.font-opt.on { color: var(--text); border-color: var(--cyan-400); box-shadow: 0 0 18px -6px rgba(var(--a-rgb), .7); }

/* Desktop: the grid row must be the window height, not the content height, or screens grow
   past the bottom of the window and cannot scroll (body has overflow: hidden). */
@media (min-width: 900px) {
  .layout { grid-template-rows: minmax(0, 1fr); }
  .main, .rail { min-height: 0; }
  .rail { overflow-y: auto; scrollbar-width: none; }
}
