:root {
  --bg: #0d0b12;
  --panel: #16131e;
  --panel-2: #1e1a29;
  --panel-3: #272235;
  --line: #2e2840;
  --text: #f5f2fa;
  --muted: #a59eb6;
  --dim: #6f6882;
  --accent: #ff5a36;
  --accent-2: #ffb020;
  --grad: linear-gradient(135deg, #ffb020 0%, #ff5a36 55%, #ff3d6e 100%);
  --ok: #3ddc97;
  --danger: #ff4d6d;
  --vip: #f5c542;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --nav-w: 88px;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent-2); }
[hidden] { display: none !important; }
::selection { background: rgba(255, 90, 54, .35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 8px; }

/* ---------- elementos base ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600;
  background: var(--panel-3); transition: transform .12s, filter .15s, background .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #1a0d06; box-shadow: 0 8px 24px rgba(255, 90, 54, .35); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: rgba(255, 77, 109, .14); color: var(--danger); }
.btn.ok { background: rgba(61, 220, 151, .14); color: var(--ok); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 16, 28, .66); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 20px; transition: transform .12s, background .15s;
}
.icon-btn:hover { background: rgba(40, 34, 54, .85); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.off { background: rgba(255, 77, 109, .85); }
.icon-btn svg { width: 22px; height: 22px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--line); outline: none; transition: border-color .15s;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 80px; }
.input:focus { border-color: var(--accent); }
.row { display: flex; gap: 12px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent); }

.seg { display: inline-flex; padding: 4px; background: var(--panel-2); border-radius: 999px; border: 1px solid var(--line); gap: 2px; }
.seg button { height: 36px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

.avatar {
  --size: 44px; width: var(--size); height: var(--size); flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #160b06; font-size: calc(var(--size) * .42);
  position: relative;
}
.avatar .dot { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; border-radius: 50%; background: var(--dim); border: 2px solid var(--panel); }
.avatar .dot.on { background: var(--ok); }
.vip-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #f9de7c, #e7a92b); color: #3a2603; letter-spacing: .04em;
}
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 600; }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--panel-3); color: var(--muted); }
.tag.ok { background: rgba(61, 220, 151, .14); color: var(--ok); }
.tag.danger { background: rgba(255, 77, 109, .14); color: var(--danger); }
.tag.vip { background: rgba(245, 197, 66, .16); color: var(--vip); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #1a0d06; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }

/* ---------- landing ---------- */
.landing { height: 100%; overflow-y: auto; position: relative; isolation: isolate; }
.landing::before {
  content: ''; position: fixed; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 35% at 20% 20%, rgba(255, 90, 54, .28), transparent 70%),
    radial-gradient(35% 30% at 85% 30%, rgba(255, 176, 32, .18), transparent 70%),
    radial-gradient(45% 40% at 60% 95%, rgba(255, 61, 110, .18), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(3%, -2%) rotate(4deg); } }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 64px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(20px, 5vw, 56px) clamp(20px, 5vw, 64px) 40px; max-width: 1280px; margin: 0 auto;
}
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; }
.hero-stats b { display: block; font-size: 26px; }
.hero-stats span { color: var(--muted); font-size: 13px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: ping 1.8s infinite; margin-right: 6px; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

.auth-card { background: rgba(22, 19, 30, .82); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 4px; font-size: 24px; }
.auth-card form { display: grid; gap: 14px; margin-top: 18px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }

.showcase {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: stretch;
  padding: 10px clamp(20px, 5vw, 64px) 30px; max-width: 1280px; margin: 0 auto;
}
.call-mock { position: relative; border-radius: 26px; overflow: hidden; min-height: 420px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.call-mock .cm-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call-mock .cm-pip { position: absolute; right: 14px; top: 14px; width: 28%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.cm-live { position: absolute; left: 14px; top: 14px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cm-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; justify-content: center; padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.cm-btn { background: rgba(255,255,255,.16); backdrop-filter: blur(8px); border-radius: 999px; padding: 10px 14px; font-size: 15px; }
.cm-next { background: var(--grad, linear-gradient(135deg, #ff8a00, #ff3d6e)); font-weight: 700; padding: 10px 20px; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.showcase-grid figure { position: relative; margin: 0; border-radius: 20px; overflow: hidden; min-height: 200px; border: 1px solid var(--line); }
.showcase-grid figure > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.showcase-grid figure:hover > img { transform: scale(1.05); }
.showcase-grid figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); padding: 7px 11px; border-radius: 12px; font-size: 13px; font-weight: 600; width: fit-content; }
.showcase-note { grid-column: 1 / -1; margin: 0; text-align: right; color: var(--dim); font-size: 11px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .call-mock { min-height: 360px; }
  .showcase-grid figure { min-height: 160px; }
}
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px clamp(20px, 5vw, 64px) 60px; max-width: 1280px; margin: 0 auto; }
.feature { background: rgba(22, 19, 30, .7); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { font-size: 26px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.foot { text-align: center; color: var(--dim); font-size: 13px; padding: 0 20px 40px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; height: 100%; }
.side {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0;
  background: var(--panel); border-right: 1px solid var(--line);
}
.side .logo { width: 44px; height: 44px; margin-bottom: 18px; }
.nav-btn {
  width: 68px; padding: 10px 0; border-radius: 16px; display: grid; justify-items: center; gap: 4px;
  color: var(--dim); font-size: 11px; font-weight: 600; position: relative; transition: color .15s, background .15s;
}
.nav-btn svg { width: 24px; height: 24px; }
.nav-btn:hover { color: var(--text); background: var(--panel-2); }
.nav-btn.on { color: var(--text); background: var(--panel-2); }
.nav-btn.on svg { color: var(--accent); }
.nav-btn .badge { position: absolute; top: 4px; right: 10px; }
.side .spacer { flex: 1; }

.main { display: grid; grid-template-rows: 64px 1fr; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); gap: 12px; }
.topbar h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.topbar .right { display: flex; gap: 10px; align-items: center; }
.coin-pill { cursor: pointer; }
.coin-pill:hover { border-color: var(--accent); }
.content { min-height: 0; position: relative; }
.view { position: absolute; inset: 0; overflow-y: auto; }
.page { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }

/* ---------- vídeo ---------- */
#view-video { display: grid; grid-template-columns: 1fr 340px; gap: 16px; padding: 16px; overflow: hidden; }
.stage { position: relative; border-radius: 24px; overflow: hidden; background: #08070b; min-height: 0; isolation: isolate; }
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 30% 30%, rgba(255, 90, 54, .22), transparent), radial-gradient(50% 50% at 80% 80%, rgba(255, 176, 32, .14), transparent);
}
.stage video { background: transparent; }
#remoteVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
[data-phase="connected"] #remoteVideo { opacity: 1; }
#localVideo {
  position: absolute; z-index: 3; object-fit: cover; transform: scaleX(-1);
  top: 0; right: 0; width: 100%; height: 100%; border-radius: 0;
  filter: brightness(.42) saturate(.8); transition: all .45s cubic-bezier(.3, .8, .3, 1);
}
#localVideo.nocam { opacity: 0; }
[data-phase="connected"] #localVideo, [data-phase="connecting"] #localVideo {
  top: 16px; right: 16px; width: 26%; max-width: 240px; height: auto; aspect-ratio: 3 / 4;
  border-radius: 16px; filter: none; box-shadow: var(--shadow); border: 2px solid rgba(255, 255, 255, .12);
}
.overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; text-align: center; overflow-y: auto; }
.overlay-card { max-width: 460px; width: 100%; display: grid; gap: 18px; justify-items: center; }
.overlay-card h2 { font-size: clamp(26px, 3vw, 38px); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.filters { display: grid; gap: 14px; width: 100%; background: rgba(13, 11, 18, .55); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 18px; }
.filters .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; text-align: left; }
.filters .seg { width: 100%; }
.filters .seg button { flex: 1; }
.cost-note { font-size: 13px; color: var(--muted); }

/* filtro de gênero com bonequinhos */
#fGender { border-radius: 18px; }
#fGender button { height: auto; padding: 10px 6px 8px; border-radius: 14px; display: grid; justify-items: center; gap: 4px; font-size: 13px; }
.gico { display: flex; align-items: flex-end; gap: 2px; height: 30px; }
.fig { width: 20px; height: 28px; transition: transform .15s; }
.fig-f { fill: #ff7eb6; }
.fig-m { fill: #4fc3f7; }
#fGender button:not(.on) .fig { opacity: .5; }
#fGender button.on .fig { transform: translateY(-2px); }

/* bandeiras e seletor de país */
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; display: inline-block; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); flex: none; }
.flag.globe { box-shadow: none; text-align: center; line-height: 16px; font-size: 15px; }
.flag-stack { display: inline-flex; flex: none; }
.flag-stack .flag { width: 20px; height: 20px; border-radius: 50%; margin-left: -7px; box-shadow: 0 0 0 2px var(--panel-2); }
.flag-stack .flag:first-child { margin-left: 0; }
.cpick { position: relative; text-align: left; }
.cpick-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.cpick-btn > span:not(.flag):not(.flag-stack) { flex: 1; }
.cpick-btn .chev { margin-left: auto; color: var(--muted); flex: none; }
.cpick-menu {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow);
}
.cpick-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; }
.cpick-menu button:hover { background: var(--panel-3); }
.cpick-menu button.on { background: rgba(255, 90, 54, .16); }

.radar { width: 150px; height: 150px; position: relative; display: grid; place-items: center; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: radar 2.4s infinite; }
.radar span:nth-child(2) { animation-delay: .8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar .core { width: 78px; height: 78px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 50px rgba(255, 90, 54, .6); }
.radar .core img { width: 56px; border-radius: 16px; }
@keyframes radar { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.peer-chip {
  position: absolute; z-index: 6; top: 16px; left: 16px; display: flex; gap: 12px; align-items: center;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(13, 11, 18, .6); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .08);
}
.peer-chip .name { font-weight: 700; display: flex; gap: 6px; align-items: center; }
.peer-chip .meta { font-size: 12px; color: var(--muted); }
.peer-actions { position: absolute; z-index: 6; left: 16px; top: 84px; display: grid; gap: 10px; }
.peer-actions .icon-btn.done { background: rgba(61, 220, 151, .85); }
.controls { position: absolute; z-index: 6; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.next-btn { height: 60px; padding: 0 34px; font-size: 18px; }
.kbd { font-size: 11px; opacity: .65; border: 1px solid currentColor; border-radius: 5px; padding: 0 5px; }
.stage .peer-chip, .stage .peer-actions, .stage .controls .in-room { display: none; }
[data-phase="connected"] .peer-chip, [data-phase="connected"] .peer-actions, [data-phase="connected"] .controls .in-room,
[data-phase="connecting"] .peer-chip, [data-phase="connecting"] .controls .in-room { display: flex; }
[data-phase="connected"] .peer-actions { display: grid; }
.controls .in-room { gap: 12px; align-items: center; }
.connecting-msg { position: absolute; z-index: 4; inset: 0; display: none; place-items: center; color: var(--muted); }
[data-phase="connecting"] .connecting-msg { display: grid; }

.gift-burst { position: absolute; z-index: 9; inset: 0; pointer-events: none; display: grid; place-items: center; }
.gift-burst .g { font-size: 140px; animation: giftpop 2.2s cubic-bezier(.2, .9, .3, 1) forwards; filter: drop-shadow(0 10px 40px rgba(255, 90, 54, .6)); text-align: center; }
.gift-burst .g small { display: block; font-size: 18px; font-weight: 700; margin-top: -10px; text-shadow: 0 2px 12px #000; }
@keyframes giftpop {
  0% { transform: scale(.2) translateY(60px); opacity: 0; }
  20% { transform: scale(1.15); opacity: 1; }
  35% { transform: scale(1); }
  80% { opacity: 1; transform: translateY(-20px); }
  100% { opacity: 0; transform: translateY(-80px) scale(.9); }
}

.room-chat { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; min-height: 0; overflow: hidden; }
.room-chat header { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; background: var(--panel-3); word-wrap: break-word; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #ff7a3c, #ff4f50); color: #1b0b05; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: none; color: var(--dim); font-size: 12px; text-align: center; padding: 2px 8px; }
.msg.gift { align-self: center; background: rgba(245, 197, 66, .1); color: var(--vip); font-size: 13px; border: 1px solid rgba(245, 197, 66, .25); }
.msg time { display: block; font-size: 10px; opacity: .6; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form .input { border-radius: 999px; }
.chat-form .btn { width: 46px; padding: 0; flex: none; }
.chat-empty { margin: auto; text-align: center; color: var(--dim); font-size: 14px; padding: 20px; }

/* ---------- amigos ---------- */
#view-friends { display: grid; grid-template-columns: 340px 1fr; }
.flist { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.flist .tabs { display: flex; gap: 4px; padding: 14px; border-bottom: 1px solid var(--line); }
.flist .tabs button { flex: 1; height: 36px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.flist .tabs button.on { background: var(--panel-2); color: var(--text); }
.flist .items { overflow-y: auto; flex: 1; padding: 8px; }
.fitem { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; cursor: pointer; width: 100%; text-align: left; }
.fitem:hover { background: var(--panel); }
.fitem.on { background: var(--panel-2); }
.fitem .info { flex: 1; min-width: 0; }
.fitem .n { font-weight: 600; display: flex; gap: 6px; align-items: center; }
.fitem .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fitem .acts { display: flex; gap: 6px; }
.conv { display: flex; flex-direction: column; min-height: 0; }
.conv header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.conv header .info { flex: 1; }
.conv .chat-log { padding: 20px; }
.empty-state { margin: auto; text-align: center; color: var(--muted); max-width: 320px; padding: 30px; display: grid; gap: 10px; justify-items: center; }
.empty-state .big { font-size: 46px; }
.mobile-back { display: none; }

/* ---------- loja ---------- */
.wallet { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 4px; }
.wallet .big-num { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.wallet .main-card { background: radial-gradient(80% 120% at 0% 0%, rgba(255, 90, 54, .25), transparent 60%), var(--panel); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.section-title h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.test-banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(79, 195, 247, .08); border: 1px solid rgba(79, 195, 247, .25); color: #a8dcf5; font-size: 14px; }
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pack { position: relative; text-align: center; display: grid; gap: 8px; justify-items: center; padding: 26px 18px 20px; transition: border-color .15s, transform .15s; }
.pack:hover { border-color: var(--accent); transform: translateY(-2px); }
.pack .coins-ico { font-size: 38px; }
.pack .amount { font-size: 28px; font-weight: 800; }
.pack .bonus { color: var(--ok); font-size: 13px; font-weight: 600; min-height: 18px; }
.pack .price { color: var(--muted); }
.pack .ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #1a0d06; font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 999px; letter-spacing: .05em; }
.vip-wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.vip-perks { background: radial-gradient(100% 100% at 100% 0%, rgba(245, 197, 66, .18), transparent 60%), var(--panel); }
.vip-perks ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.vip-perks li { display: flex; gap: 10px; }
.vip-plan { display: grid; gap: 10px; align-content: start; position: relative; }
.vip-plan .amount { font-size: 30px; font-weight: 800; }
.ledger { display: grid; gap: 2px; }
.ledger .li { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.plus { color: var(--ok); font-weight: 700; }
.minus { color: var(--danger); font-weight: 700; }

/* ---------- perfil ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.profile-head h2 { margin: 0; font-size: 30px; }
.profile-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.profile-grid form { display: grid; gap: 14px; }
.stat-list { display: grid; gap: 12px; }
.stat-list div { display: flex; justify-content: space-between; }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat .k { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
td .acts { display: flex; gap: 6px; }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(5, 4, 8, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); animation: rise .2s cubic-bezier(.3, .9, .3, 1); max-height: 90vh; overflow-y: auto; }
.modal h3 { margin: 0 0 6px; font-size: 21px; }
.modal .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.gift-opt { display: grid; justify-items: center; gap: 2px; padding: 14px 6px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .15s, transform .12s; }
.gift-opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.gift-opt .e { font-size: 34px; }
.gift-opt .c { font-size: 13px; color: var(--accent-2); font-weight: 600; }
.reason-list { display: grid; gap: 8px; margin-top: 14px; }
.reason-list label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); cursor: pointer; border: 1px solid transparent; }
.reason-list label:has(input:checked) { border-color: var(--accent); }
.reason-list input { accent-color: var(--accent); }
.call-modal { text-align: center; display: grid; justify-items: center; gap: 12px; }
.call-modal .avatar { animation: ring 1.4s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, .5); } 50% { box-shadow: 0 0 0 18px rgba(255, 90, 54, 0); } }

#toasts { position: fixed; z-index: 60; top: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--panel-3); border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; animation: rise .2s; display: flex; gap: 10px; align-items: center; }
.toast.err { border-color: rgba(255, 77, 109, .5); }
.toast.ok { border-color: rgba(61, 220, 151, .5); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; }
  .packs { grid-template-columns: 1fr 1fr; }
  .vip-wrap { grid-template-columns: 1fr 1fr; }
  .vip-perks { grid-column: 1 / -1; }
  #view-video { grid-template-columns: 1fr 290px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr 68px; }
  .side { grid-row: 2; flex-direction: row; justify-content: space-around; padding: 0 6px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--line); }
  .side .logo, .side .spacer { display: none; }
  .nav-btn { width: auto; flex: 1; padding: 8px 0; }
  .main { grid-row: 1; grid-template-rows: 56px 1fr; }
  .topbar { padding: 0 14px; }
  .topbar h1 { font-size: 18px; }
  #view-video { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .stage { border-radius: 0; }
  .room-chat { position: absolute; z-index: 7; left: 10px; right: 10px; bottom: 96px; height: 38%; background: transparent; border: 0; pointer-events: none; }
  .room-chat header { display: none; }
  .room-chat .chat-log { mask-image: linear-gradient(to top, #000 70%, transparent); pointer-events: auto; }
  .room-chat .msg { background: rgba(13, 11, 18, .6); backdrop-filter: blur(8px); }
  .room-chat .msg.me { background: linear-gradient(135deg, #ff7a3c, #ff4f50); }
  .room-chat .chat-form { border: 0; padding: 0; pointer-events: auto; }
  .room-chat .chat-form .input { background: rgba(13, 11, 18, .6); backdrop-filter: blur(8px); }
  .room-chat .chat-empty { display: none; }
  #view-video:not([data-phase="connected"]) .room-chat { display: none; }
  .next-btn { height: 52px; padding: 0 24px; }
  .kbd { display: none; }
  #view-friends { grid-template-columns: 1fr; }
  #view-friends.open .flist { display: none; }
  #view-friends:not(.open) .conv { display: none; }
  .mobile-back { display: grid; }
  .wallet, .profile-grid, .grid-2 { grid-template-columns: 1fr; }
  .page { padding: 18px 14px 40px; }
  .coin-pill .lbl { display: none; }
}
@media (max-width: 520px) {
  .features, .packs, .vip-wrap { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
}
