/* ════════════════════════════════════════════════════════════════════
   VIVUCAP SOCIAL · NATIVE · OVERLAYS & FEATURE MODULES
   Sheets · Chat · Audio recorder · Capsule · Promo · Live · Podcast ·
   Games · VivuElly · Toasts
   ════════════════════════════════════════════════════════════════════ */

/* ═══════════════ OVERLAY SHELL ═══════════════ */
.vcs-overlay {
  position: fixed; inset: 0; z-index: 200; display: none; overflow-x: hidden;
  align-items: flex-end; justify-content: center;
  background: rgba(3,6,16,.66); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.vcs-overlay.open { display: flex; animation: vc-overlay-in .25s var(--vc-ease); }
@keyframes vc-overlay-in { from { background: rgba(3,6,16,0); } to { background: rgba(3,6,16,.66); } }
.vcs-sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(180deg, var(--vc-night-3), var(--vc-night-2));
  border: 1px solid var(--vc-line-strong); border-bottom: 0;
  border-radius: var(--vc-r-xl) var(--vc-r-xl) 0 0;
  padding: 22px clamp(16px,5vw,26px) calc(26px + env(safe-area-inset-bottom,0px));
  box-shadow: 0 -20px 60px rgba(0,0,0,.6);
  animation: vc-sheet-up .32s var(--vc-ease-spring);
}
@media (min-width:600px){ .vcs-overlay{align-items:center} .vcs-sheet{border-radius:var(--vc-r-xl);border-bottom:1px solid var(--vc-line-strong)} }
@keyframes vc-sheet-up { from{transform:translateY(40px);opacity:.4} to{transform:none;opacity:1} }
.vcs-sheet-grab { width: 40px; height: 4px; border-radius: 99px; background: var(--vc-line-strong); margin: -6px auto 14px; }
.vcs-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vcs-sheet-title { font-family: var(--vc-display); font-weight: 700; font-size: 1.4rem; margin: 0; }
.vcs-sheet-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; color: var(--vc-text-soft); background: var(--vc-glass-2); border: 1px solid var(--vc-line); transition: .2s; }
.vcs-sheet-close:hover { background: var(--vc-glass-3); color: #fff; }

/* Forms */
.vcs-field { margin-bottom: 15px; }
.vcs-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--vc-text-soft); margin-bottom: 7px; }
.vcs-input, .vcs-field input, .vcs-field textarea, .vcs-field select {
  width: 100%; padding: 13px 15px; border-radius: var(--vc-r-sm); font-size: .95rem; color: var(--vc-text);
  background: var(--vc-glass-1); border: 1px solid var(--vc-line-strong); transition: .2s; outline: none;
}
.vcs-field textarea { resize: vertical; min-height: 90px; }
.vcs-field input:focus, .vcs-field textarea:focus, .vcs-field select:focus { border-color: var(--vc-cyan-400); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.vcs-field select option { background: var(--vc-night-3); }
.vcs-char { text-align: right; font-size: .74rem; color: var(--vc-text-dim); margin-top: 5px; }
.vcs-btn-primary { width: 100%; padding: 15px; border-radius: var(--vc-r-pill); font-weight: 800; font-size: 1rem; color: #fff; background: var(--vc-grad-capsule); box-shadow: var(--vc-shadow-cta); transition: .2s; }
.vcs-btn-primary:hover { transform: translateY(-2px); }
.vcs-btn-ghost { width: 100%; padding: 14px; border-radius: var(--vc-r-pill); font-weight: 700; color: var(--vc-text); background: var(--vc-glass-2); border: 1px solid var(--vc-line-strong); transition: .2s; }
.vcs-btn-ghost:hover { background: var(--vc-glass-3); }

/* Publish tabs */
.vcs-seg { display: grid; grid-auto-flow: column; gap: 6px; padding: 5px; border-radius: var(--vc-r-pill); background: var(--vc-glass-1); border: 1px solid var(--vc-line); margin-bottom: 16px; }
.vcs-seg button { padding: 9px; border-radius: var(--vc-r-pill); font-weight: 700; font-size: .85rem; color: var(--vc-text-mute); transition: .2s; }
.vcs-seg button.active { color: #fff; background: var(--vc-grad-cta); box-shadow: var(--vc-shadow-cta); }

/* Upload zone */
.vcs-upload { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px; border-radius: var(--vc-r-md); text-align: center; background: var(--vc-glass-1); border: 1.5px dashed var(--vc-line-strong); transition: .2s; }
.vcs-upload:hover { border-color: var(--vc-cyan-400); background: var(--vc-glass-2); }
.vcs-upload-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--vc-glass-2); color: var(--vc-cyan-300); }
.vcs-upload small { color: var(--vc-text-dim); font-size: .78rem; }
.vcs-source-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; width: 100%; }
.vcs-source-pick button { padding: 11px; border-radius: var(--vc-r-sm); font-weight: 600; font-size: .85rem; color: var(--vc-text); background: var(--vc-glass-2); border: 1px solid var(--vc-line); }
.vcs-media-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vcs-media-thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 1px solid var(--vc-line); }
.vcs-media-thumb img, .vcs-media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.vcs-media-thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: .7rem; display: grid; place-items: center; }

/* ═══════════════ AUDIO RECORDER (WhatsApp style) ═══════════════ */
.vcs-recorder { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--vc-r-md); background: linear-gradient(160deg, var(--vc-night-4), var(--vc-night-3)); border: 1px solid var(--vc-line-strong); }
.vcs-rec-row { display: flex; align-items: center; gap: 14px; }
.vcs-rec-btn { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--vc-grad-rose); box-shadow: 0 8px 24px rgba(240,48,122,.4); transition: .2s; }
.vcs-rec-btn:hover { transform: scale(1.04); }
.vcs-rec-btn.is-recording { animation: vc-rec-pulse 1.3s ease-in-out infinite; }
@keyframes vc-rec-pulse { 0%,100%{box-shadow:0 8px 24px rgba(240,48,122,.4)} 50%{box-shadow:0 8px 40px rgba(240,48,122,.85)} }
.vcs-rec-led { width: 11px; height: 11px; border-radius: 50%; background: var(--vc-rose-hot); flex: 0 0 auto; }
.vcs-rec-btn.is-recording .vcs-rec-led { animation: vc-blink 1s steps(2) infinite; }
@keyframes vc-blink { 50% { opacity: .2; } }
.vcs-rec-info { flex: 1; min-width: 0; }
.vcs-rec-timer { font-family: var(--vc-brand); font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.vcs-rec-hint { font-size: .8rem; color: var(--vc-text-mute); }
.vcs-rec-wave { display: flex; align-items: center; gap: 2px; height: 40px; flex: 1; }
.vcs-rec-wave i { flex: 1; min-width: 2px; background: var(--vc-cyan-400); border-radius: 99px; height: 12%; transition: height .08s linear; }
.vcs-rec-actions { display: flex; gap: 8px; }
.vcs-rec-actions button { flex: 1; padding: 11px; border-radius: var(--vc-r-pill); font-weight: 700; font-size: .88rem; }
.vcs-rec-stop { color: #fff; background: var(--vc-grad-rose); }
.vcs-rec-send { color: #fff; background: var(--vc-grad-cta); }
.vcs-rec-trash { color: var(--vc-text-mute); background: var(--vc-glass-2); border: 1px solid var(--vc-line); }

/* ═══════════════ CHAT / DM ═══════════════ */
.vcs-chat-sheet { display: flex; flex-direction: column; max-height: 92vh; padding: 0; }
.vcs-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--vc-line); position: sticky; top: 0; background: var(--vc-night-3); z-index: 2; }
.vcs-chat-head .back { font-size: 1.4rem; color: var(--vc-text-soft); }
.vcs-chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.vcs-chat-peer { flex: 1; min-width: 0; }
.vcs-chat-peer b { font-size: .96rem; }
.vcs-chat-peer span { font-size: .76rem; color: var(--vc-green); }
.vcs-inbox-list { overflow-y: auto; }
.vcs-inbox-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; transition: .15s; cursor: pointer; }
.vcs-inbox-item:hover { background: var(--vc-glass-1); }
.vcs-inbox-item img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.vcs-inbox-meta { flex: 1; min-width: 0; }
.vcs-inbox-meta b { font-size: .92rem; display: flex; justify-content: space-between; }
.vcs-inbox-meta b time { font-size: .72rem; font-weight: 500; color: var(--vc-text-dim); }
.vcs-inbox-meta p { margin: 3px 0 0; font-size: .82rem; color: var(--vc-text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcs-inbox-unread { width: 20px; height: 20px; border-radius: 50%; background: var(--vc-grad-cta); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto; }
.vcs-chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(circle at 50% 0%, rgba(34,211,238,.04), transparent 40%); }
.vcs-bubble { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.4; position: relative; }
.vcs-bubble.is-fresh { animation: vc-bubble-in .3s var(--vc-ease); }
@keyframes vc-bubble-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.vcs-bubble.them { align-self: flex-start; background: var(--vc-glass-2); border: 1px solid var(--vc-line); border-bottom-left-radius: 5px; }
.vcs-bubble.me { align-self: flex-end; background: var(--vc-grad-cta); color: #fff; border-bottom-right-radius: 5px; }
.vcs-bubble time { display: block; font-size: .66rem; opacity: .7; margin-top: 4px; text-align: right; }
.vcs-bubble-audio { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.vcs-bubble-audio button { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; flex: 0 0 auto; }
.vcs-bubble-audio .wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; }
.vcs-bubble-audio .wave i { flex: 1; background: currentColor; border-radius: 99px; opacity: .6; min-width: 2px; }
.vcs-chat-compose { display: flex; align-items: center; gap: 8px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--vc-line); background: var(--vc-night-3); position: sticky; bottom: 0; }
.vcs-chat-compose input { flex: 1; padding: 12px 16px; border-radius: 99px; background: var(--vc-glass-1); border: 1px solid var(--vc-line-strong); color: var(--vc-text); outline: none; }
.vcs-chat-compose input:focus { border-color: var(--vc-cyan-400); }
.vcs-chat-mic, .vcs-chat-send { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--vc-grad-cta); box-shadow: var(--vc-shadow-cta); transition:.2s;}
.vcs-chat-mic { background: var(--vc-glass-2); color: var(--vc-cyan-300); border: 1px solid var(--vc-line); box-shadow:none; }
.vcs-chat-mic.is-recording { background: var(--vc-grad-rose); color:#fff; animation: vc-rec-pulse 1.3s infinite; }

/* ═══════════════ CAPSULE ═══════════════ */
.vcs-capsule-hero { text-align: center; padding: 8px 0 18px; }
.vcs-capsule-hero .ic { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--vc-grad-capsule); box-shadow: var(--vc-shadow-glow); }
.vcs-capsule-hero h3 { font-family: var(--vc-display); font-size: 1.5rem; margin: 0 0 6px; }
.vcs-capsule-hero p { color: var(--vc-text-mute); font-size: .9rem; margin: 0; }
.vcs-delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vcs-delivery label { display: flex; align-items: center; gap: 10px; padding: 13px; border-radius: var(--vc-r-sm); background: var(--vc-glass-1); border: 1px solid var(--vc-line-strong); cursor: pointer; transition: .2s; font-size: .88rem; }
.vcs-delivery label:has(input:checked) { border-color: var(--vc-cyan-400); background: var(--vc-glass-2); box-shadow: 0 0 0 2px rgba(34,211,238,.2); }
.vcs-delivery input { width: auto; }
.vcs-capsule-lock { display: flex; align-items: center; gap: 9px; justify-content: center; margin-top: 14px; font-size: .8rem; color: var(--vc-text-mute); }
.vcs-capsule-lock svg { width: 16px; height: 16px; color: var(--vc-gold-400); }

/* Capsule card in feed */
.vcs-capsule-card { background: linear-gradient(160deg, rgba(29,78,216,.18), rgba(34,211,238,.06)); border: 1px solid rgba(34,211,238,.25); border-radius: var(--vc-r-lg); padding: 18px; position: relative; overflow: hidden; }
.vcs-capsule-card::before { content:''; position:absolute; top:-40px; right:-40px; width:140px; height:140px; border-radius:50%; background: radial-gradient(circle, rgba(34,211,238,.25), transparent 70%); }
.vcs-capsule-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vc-cyan-300); }
.vcs-capsule-card h4 { font-family: var(--vc-display); font-size: 1.2rem; margin: 8px 0 6px; }
.vcs-capsule-card .deliver { font-size: .82rem; color: var(--vc-text-mute); display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.vcs-capsule-countdown { display: flex; gap: 8px; margin-top: 12px; }
.vcs-capsule-countdown div { flex: 1; text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--vc-line); }
.vcs-capsule-countdown b { display: block; font-family: var(--vc-brand); font-weight: 800; font-size: 1.3rem; }
.vcs-capsule-countdown small { font-size: .64rem; color: var(--vc-text-dim); text-transform: uppercase; letter-spacing: .05em; }

/* ═══════════════ LIVE ROOM ═══════════════ */
.vcs-live-overlay { align-items: stretch; }
.vcs-live-shell { width: 100%; max-width: 720px; margin: auto; display: flex; flex-direction: column; height: 100%; background: #05070d; }
.vcs-live-top { display: flex; align-items: center; gap: 12px; padding: 16px; }
.vcs-live-top .back { font-size: 1.6rem; }
.vcs-live-pill { font-size: .66rem; font-weight: 800; letter-spacing: .08em; padding: 4px 9px; border-radius: 99px; background: var(--vc-grad-rose); }
.vcs-live-title { flex: 1; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.vcs-live-viewers { font-size: .82rem; color: var(--vc-text-mute); display: flex; align-items: center; gap: 6px; }
.vcs-live-viewers::before { content:''; width:7px; height:7px; border-radius:50%; background: var(--vc-rose-hot); }
.vcs-live-stage { flex: 1; position: relative; background: radial-gradient(circle at 50% 30%, #0c1533, #05080f); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; overflow: hidden; padding: 10px; }
.vcs-live-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; }
.vcs-live-grid .tile { position: relative; background: var(--vc-night-4); overflow: hidden; display: grid; place-items: center; }
.vcs-live-grid .tile img { width: 100%; height: 100%; object-fit: cover; }
.vcs-live-grid .tile span { position: absolute; bottom: 8px; left: 8px; font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.55); }
.vcs-live-chat { position: absolute; left: 0; right: 0; bottom: 80px; max-height: 40%; overflow: hidden; padding: 0 14px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; -webkit-mask: linear-gradient(transparent, #000 30%); mask: linear-gradient(transparent, #000 30%); }
.vcs-live-chat .msg { font-size: .82rem; }
.vcs-live-chat .msg b { color: var(--vc-cyan-300); }
.vcs-live-bar { display: flex; align-items: center; gap: 8px; padding: 14px calc(14px) calc(14px + env(safe-area-inset-bottom,0px)); }
.vcs-live-bar input { flex: 1; padding: 11px 16px; border-radius: 99px; background: var(--vc-glass-1); border: 1px solid var(--vc-line-strong); color: var(--vc-text); }
.vcs-live-cbtn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--vc-glass-2); border: 1px solid var(--vc-line); color: var(--vc-text-soft); }
.vcs-live-cbtn.danger { background: var(--vc-grad-rose); color: #fff; border: 0; }
.vcs-live-cbtn.go { background: var(--vc-grad-cta); color: #fff; border: 0; box-shadow: var(--vc-shadow-cta); }

/* ═══════════════ PODCAST ROOM ═══════════════ */
.vcs-podcast-shell { width: 100%; max-width: 560px; }
.vcs-podcast-head { text-align: center; margin-bottom: 18px; }
.vcs-podcast-live { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vc-rose-hot); }
.vcs-podcast-live::before { content:''; width: 8px; height: 8px; border-radius: 50%; background: var(--vc-rose-hot); animation: vc-blink 1.4s infinite; }
.vcs-podcast-title { font-family: var(--vc-display); font-size: 1.45rem; margin: 8px 0 4px; }
.vcs-podcast-sub { color: var(--vc-text-mute); font-size: .86rem; }
.vcs-stage-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vc-text-dim); margin: 18px 0 12px; }
.vcs-speakers { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px 8px; }
.vcs-speaker { text-align: center; }
.vcs-speaker-av { width: 70px; height: 70px; margin: 0 auto 7px; border-radius: 50%; position: relative; padding: 3px; background: var(--vc-glass-2); }
.vcs-speaker.is-speaking .vcs-speaker-av { background: conic-gradient(from 0deg, var(--vc-cyan-400), var(--vc-blue-500), var(--vc-cyan-400)); animation: vc-spin 3s linear infinite; }
.vcs-speaker-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--vc-night); }
.vcs-speaker-host { position: absolute; bottom: -2px; right: -2px; font-size: .58rem; font-weight: 800; padding: 2px 6px; border-radius: 99px; background: var(--vc-grad-gold); color: #04102b; }
.vcs-speaker-mute { position: absolute; bottom: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--vc-night-4); border: 2px solid var(--vc-night); display: grid; place-items: center; color: var(--vc-rose-hot); }
.vcs-speaker b { font-size: .8rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcs-speaker small { font-size: .68rem; color: var(--vc-text-dim); }
.vcs-listeners { display: flex; flex-wrap: wrap; gap: 6px; }
.vcs-listeners img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--vc-night-3); }
.vcs-listeners .more { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 700; background: var(--vc-glass-2); color: var(--vc-text-mute); }
.vcs-podcast-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 22px; }
.vcs-podcast-bar button { padding: 13px; border-radius: var(--vc-r-sm); font-weight: 700; font-size: .85rem; display: flex; flex-direction: column; align-items: center; gap: 5px; background: var(--vc-glass-2); border: 1px solid var(--vc-line); color: var(--vc-text-soft); transition: .2s; }
.vcs-podcast-bar button:hover { background: var(--vc-glass-3); }
.vcs-podcast-bar .leave { color: var(--vc-rose-hot); }

/* ═══════════════ GAMES HUB ═══════════════ */
.vcs-games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vcs-game-card { border-radius: var(--vc-r-md); padding: 18px; text-align: left; position: relative; overflow: hidden; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--vc-line); transition: .2s var(--vc-ease); }
.vcs-game-card:hover { transform: translateY(-3px); box-shadow: var(--vc-shadow-card); }
.vcs-game-card.memory { background: linear-gradient(150deg, rgba(34,211,238,.2), rgba(29,78,216,.25)); }
.vcs-game-card.war { background: linear-gradient(150deg, rgba(239,68,68,.28), rgba(29,78,216,.22)); }
.vcs-game-card.trivia { background: linear-gradient(150deg, rgba(224,165,38,.22), rgba(34,211,238,.16)); }
.vcs-game-card.tap { background: linear-gradient(150deg, rgba(34,211,238,.22), rgba(16,185,129,.18)); }
.vcs-game-card .emoji { font-size: 2rem; }
.vcs-game-card b { font-family: var(--vc-brand); font-weight: 800; font-size: 1.05rem; margin-top: 6px; }
.vcs-game-card small { font-size: .76rem; color: var(--vc-text-soft); }
.vcs-game-card .play { position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.3); }

/* Memory game board */
.vcs-mem-board { display: grid; gap: 8px; margin-top: 16px; }
.vcs-mem-card { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; cursor: pointer; background: var(--vc-glass-2); border: 1px solid var(--vc-line); transition: transform .3s var(--vc-ease); transform-style: preserve-3d; position: relative; }
.vcs-mem-card .face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border-radius: 12px; }
.vcs-mem-card .back { background: var(--vc-grad-capsule); transform: rotateY(0deg); }
.vcs-mem-card .front { transform: rotateY(180deg); }
.vcs-mem-card.flipped { transform: rotateY(180deg); }
.vcs-mem-card.matched { transform: rotateY(180deg); }
.vcs-mem-card.matched .front { box-shadow: 0 0 0 2px var(--vc-green) inset, 0 0 14px -2px var(--vc-green); }
.vcs-mem-card .front { background: var(--vc-night-4); padding: 8%; }
.vcs-mem-card .front svg { width: 100%; height: 100%; }
.vcs-mem-stats { display: flex; justify-content: space-between; margin-top: 14px; font-size: .85rem; color: var(--vc-text-soft); }

/* ═══════════════ VIVUELLY ═══════════════ */
.vcs-elly-sheet { display: flex; flex-direction: column; max-height: 92vh; padding: 0; }
.vcs-elly-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--vc-line); background: linear-gradient(120deg, rgba(34,211,238,.1), transparent); }
.vcs-elly-av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; position: relative; border: 2px solid var(--vc-cyan-400); box-shadow: 0 0 16px rgba(34,211,238,.5); }
.vcs-elly-av img, .vcs-elly-av video { width: 100%; height: 100%; object-fit: cover; }
.vcs-elly-id b { font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.vcs-elly-id span { font-size: .76rem; color: var(--vc-cyan-300); }
.vcs-elly-spark { color: var(--vc-gold-400); }
.vcs-elly-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.vcs-elly-msg { max-width: 84%; padding: 12px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.vcs-elly-msg.bot { align-self: flex-start; background: var(--vc-glass-2); border: 1px solid var(--vc-line); border-bottom-left-radius: 5px; }
.vcs-elly-msg.user { align-self: flex-end; background: var(--vc-grad-cta); color: #fff; border-bottom-right-radius: 5px; }
.vcs-elly-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: var(--vc-glass-2); border-radius: 16px; }
.vcs-elly-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-cyan-300); animation: vc-typing 1.2s infinite; }
.vcs-elly-typing i:nth-child(2){animation-delay:.2s} .vcs-elly-typing i:nth-child(3){animation-delay:.4s}
@keyframes vc-typing { 0%,60%,100%{opacity:.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-4px)} }
.vcs-elly-quick { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.vcs-elly-quick::-webkit-scrollbar { display: none; }
.vcs-elly-quick button { flex: 0 0 auto; padding: 8px 14px; border-radius: 99px; font-size: .8rem; font-weight: 600; color: var(--vc-cyan-300); background: var(--vc-glass-1); border: 1px solid var(--vc-line); }
.vcs-elly-compose { display: flex; gap: 8px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--vc-line); }
.vcs-elly-compose input { flex: 1; padding: 12px 16px; border-radius: 99px; background: var(--vc-glass-1); border: 1px solid var(--vc-line-strong); color: var(--vc-text); outline: none; }
.vcs-elly-compose input:focus { border-color: var(--vc-cyan-400); }

/* ═══════════════ TOASTS ═══════════════ */
.vcs-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--vc-nav-h) + 20px); z-index: 300; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.vcs-toast { pointer-events: auto; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: var(--vc-r-md); background: rgba(12,21,53,.96); border: 1px solid var(--vc-line-strong); box-shadow: var(--vc-shadow-card); backdrop-filter: blur(12px); animation: vc-toast-in .3s var(--vc-ease-spring); font-size: .88rem; }
@keyframes vc-toast-in { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
.vcs-toast.out { animation: vc-toast-out .3s var(--vc-ease) forwards; }
@keyframes vc-toast-out { to{opacity:0;transform:translateY(20px)} }
.vcs-toast-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--vc-grad-cta); }
.vcs-toast.gold .vcs-toast-ic { background: var(--vc-grad-gold); }
.vcs-toast.rose .vcs-toast-ic { background: var(--vc-grad-rose); }
.vcs-toast-actions { margin-left: auto; display: flex; gap: 6px; }
.vcs-toast-actions button { padding: 6px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.vcs-toast-actions .accept { color: #fff; background: var(--vc-grad-cta); }
.vcs-toast-actions .decline { color: var(--vc-text-mute); background: var(--vc-glass-2); }

/* Friend request sheet rows */
.vcs-req-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--vc-line); }
.vcs-req-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.vcs-req-row .meta { flex: 1; }
.vcs-req-row .meta b { font-size: .9rem; }
.vcs-req-row .meta span { font-size: .78rem; color: var(--vc-text-mute); }
.vcs-req-actions { display: flex; gap: 6px; }
.vcs-req-actions button { padding: 8px 14px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.vcs-req-actions .accept { color: #fff; background: var(--vc-grad-cta); }
.vcs-req-actions .reject { color: var(--vc-text-mute); background: var(--vc-glass-2); border: 1px solid var(--vc-line); }

/* Profile sheet */
.vcs-profile-head { text-align: center; padding: 10px 0 16px; }
.vcs-profile-avatar { width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%; position: relative; padding: 4px; background: conic-gradient(from 210deg, var(--vc-cyan-400), var(--vc-blue-500), var(--vc-gold-400), var(--vc-cyan-400)); animation: vc-orb-photo-float 5s var(--vc-ease) infinite; }
.vcs-profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--vc-night); }
.vcs-profile-name { font-family: var(--vc-display); font-weight: 700; font-size: 1.4rem; }
.vcs-profile-username { color: var(--vc-cyan-300); font-size: .88rem; }
.vcs-profile-bio { color: var(--vc-text-soft); font-size: .9rem; margin: 10px auto 0; max-width: 360px; line-height: 1.5; }
.vcs-profile-stats { display: flex; justify-content: center; gap: 28px; padding: 16px 0; border-block: 1px solid var(--vc-line); margin: 16px 0; }
.vcs-profile-stat { text-align: center; }
.vcs-profile-stat b { font-family: var(--vc-brand); font-weight: 800; font-size: 1.3rem; display: block; }
.vcs-profile-stat small { font-size: .76rem; color: var(--vc-text-mute); }
.vcs-profile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.vcs-profile-grid div { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--vc-night-4); }
.vcs-profile-grid img { width: 100%; height: 100%; object-fit: cover; }
.vcs-profile-actions { display: flex; gap: 10px; margin-bottom: 18px; }

/* ── Vivu War (canvas shooter) ── */
.vcs-war-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; margin: 6px 0 10px; }
.vcs-war-hud b { color: var(--vc-cyan-300); }
.vcs-war-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
.vcs-war-wrap canvas { width: 100%; max-width: 520px; border-radius: var(--vc-r-md); background: #060A18; touch-action: none; display: block; }
.vcs-war-msg { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(6,10,24,.78); border-radius: var(--vc-r-md); backdrop-filter: blur(4px); }
.vcs-war-msg.show { display: flex; }
.vcs-war-end { text-align: center; padding: 20px; }

/* Embedded payment summary row */
.vcs-pay-sum{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:14px;background:var(--vc-surface-2,#1b1b24);border:1px solid var(--vc-line,#2a2a36);font-size:1.02rem}
.vcs-pay-sum span{color:var(--vc-text-soft,#c9c9d4)}
.vcs-pay-sum b{font-size:1.18rem;color:var(--vc-gold,#FFC857)}

/* ── Neon Stack ── */
.vcs-game-card.stack { background: linear-gradient(150deg, rgba(56,189,248,.30), rgba(99,102,241,.30)); }
.vcs-stack-sheet { max-width: 460px; }
.vcs-stack-hud { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 2px 0 10px; }
.vcs-stack-hud span { font-family: var(--vc-display); font-weight: 900; font-size: 2.3rem; color: #fff; }
.vcs-stack-hud small { color: var(--vc-text-soft); font-weight: 800; letter-spacing: 1px; font-size: .72rem; }
.vcs-stack-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--vc-line-strong); box-shadow: inset 0 0 50px -12px rgba(0,0,0,.7); cursor: pointer; }
.vcs-stack-wrap canvas { display: block; width: 100%; }
.vcs-stack-hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; font-size: .9rem; background: rgba(10,8,24,.5); padding: 7px 16px; border-radius: 99px; pointer-events: none; opacity: 0; transition: .2s var(--vc-ease); }
.vcs-stack-hint.show { opacity: 1; }

/* Shared-post deep-link highlight */
.vcs-post.vc-deeplit { box-shadow: 0 0 0 2px var(--vc-cyan-400), 0 0 28px -6px var(--vc-cyan-400); transition: box-shadow .4s var(--vc-ease); border-radius: var(--vc-r-md); }

/* Music: clean disc over the photo (no song title shown) */
.vcs-post-media { position: relative; }
.vcs-mdisc { position: absolute; bottom: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(10,8,24,.5); backdrop-filter: blur(6px); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 4px 14px rgba(0,0,0,.45); z-index: 3; cursor: pointer; transition: .2s var(--vc-ease); }
.vcs-mdisc.playing { background: var(--vc-grad-cta); border-color: transparent; transform: scale(1.06); }
.vcs-mdisc-row { padding: 0 15px 10px; }
.vcs-mdisc-inline { position: static; }

/* Who-liked viewer (owner only) */
#lk-list { max-height: 62vh; overflow-y: auto; margin-top: 4px; }
.vcs-lk-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--vc-line); }
.vcs-lk-row:last-child { border-bottom: 0; }
.vcs-lk-name { font-weight: 700; font-size: .95rem; color: #fff; }
.vcs-act-likers svg { opacity: .9; }

/* ── Premium date-of-birth picker ── */
.vcs-dob-btn { width: 100%; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--vc-line-strong); background: var(--vc-glass-2); color: #fff; font-size: .95rem; cursor: pointer; transition: .15s; }
.vcs-dob-btn:hover { border-color: var(--vc-cyan-400); }
.vcs-dob-panel { margin-top: 8px; background: var(--vc-glass-1); border: 1px solid var(--vc-line-strong); border-radius: 16px; padding: 12px; box-shadow: var(--vc-shadow-card); }
.vcs-dob-top { display: flex; gap: 8px; margin-bottom: 10px; }
.vcs-dob-top select { flex: 1; padding: 10px; border-radius: 10px; background: var(--vc-glass-2); color: #fff; border: 1px solid var(--vc-line-strong); font-size: .9rem; }
.vcs-dob-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.vcs-dob-grid b { color: var(--vc-text-mute); font-size: .68rem; font-weight: 700; padding: 4px 0; }
.vcs-dob-day { padding: 9px 0; border-radius: 9px; background: transparent; color: var(--vc-text-soft); border: 0; font-size: .88rem; cursor: pointer; transition: .12s; }
.vcs-dob-day:hover { background: var(--vc-glass-3); color: #fff; }
.vcs-dob-day.on { background: var(--vc-grad-cta); color: #fff; font-weight: 800; }
