/* «Тссс!» — тёмная ламповая тема (палитра из voice.html в casting) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #06070b; color: #e5e7eb; min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column;
}
a { color: #a5b4fc; text-decoration: none; }
button { font-family: inherit; }

/* ── шапка / подвал ── */
.hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.hdr-logo { font-size: 22px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.hdr-right { display: flex; align-items: center; gap: 14px; }
.hdr-link { color: #cbd5e1; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hdr-link.dim { color: #6b7280; font-size: 17px; }
.hdr-ava { width: 26px; height: 26px; border-radius: 50%; }
.page { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; }
.ftr { text-align: center; color: #4b5563; font-size: 12.5px; padding: 18px; }
.ftr a { color: #6b7280; }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none;
  border-radius: 12px; height: 46px; padding: 0 22px; font-weight: 800; font-size: 15px; cursor: pointer; }
.btn-pri { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.btn-pri:hover { filter: brightness(1.1); }
.btn-green { background: #34d399; color: #06281c; }
.btn-ghost { background: rgba(255,255,255,.08); color: #e5e7eb; border: 1px solid rgba(255,255,255,.15); }
.btn-ghost.off { background: rgba(248,113,113,.18); color: #fca5a5; border-color: rgba(248,113,113,.4); }
.btn-danger { background: #f87171; color: #3b0d0d; }

/* ── лендинг ── */
.hero { text-align: center; padding: 48px 0 36px; }
.hero-emoji { font-size: 72px; line-height: 1; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 900; color: #fff; margin: 14px 0 10px; }
.hero h1 .shh { background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #9ca3af; font-size: 17px; max-width: 540px; margin: 0 auto 26px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.tg-hint { color: #6b7280; font-size: 13px; margin-top: 12px; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0; }
.feat { background: #0d0f14; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px; }
.feat .fe { font-size: 28px; }
.feat h3 { margin: 10px 0 6px; color: #fff; font-size: 16px; }
.feat p { margin: 0; color: #9ca3af; font-size: 13.5px; line-height: 1.5; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 14px 0 26px; }
.plan { background: #0d0f14; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 24px; }
.plan.prem { border-color: rgba(139,92,246,.55); box-shadow: 0 0 30px rgba(139,92,246,.12); }
.plan h3 { margin: 0 0 4px; color: #fff; font-size: 18px; }
.plan .price { font-size: 30px; font-weight: 900; color: #fff; margin: 6px 0 14px; }
.plan .price small { font-size: 14px; color: #9ca3af; font-weight: 600; }
.plan ul { list-style: none; margin: 0 0 6px; padding: 0; color: #cbd5e1; font-size: 14px; }
.plan li { padding: 5px 0 5px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: #34d399; font-weight: 800; }
.plan li.soon::before { content: "◌"; color: #8b5cf6; }
.plan li.soon::after { content: " · скоро"; color: #6b7280; font-size: 12px; }

.rooms-list { margin: 8px 0 24px; }
.room-row { display: flex; align-items: center; gap: 12px; background: #0d0f14; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.room-row .rname { font-weight: 700; color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-row .rmeta { color: #6b7280; font-size: 12.5px; }
.room-row .ract { display: flex; gap: 8px; }
.room-row .ract button, .room-row .ract a { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.sect-title { font-size: 19px; font-weight: 800; color: #fff; margin: 26px 0 12px; }

/* ── комната (порт vc-* из voice.html) ── */
.vc-wrap { max-width: 1000px; margin: 0 auto; }
.vc-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vc-badge { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(139,92,246,.2); color: #c4b5fd; border: 1px solid rgba(139,92,246,.4); }
.vc-sub { color: #9ca3af; font-size: 13px; margin-bottom: 14px; }
.vc-status { font-size: 14px; color: #cbd5e1; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7280; }
.vc-dot.on { background: #34d399; animation: vcp 1.8s infinite; }
@keyframes vcp { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.6);} 70%{box-shadow:0 0 0 7px rgba(52,211,153,0);} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0);} }
.vc-mode { display: inline-flex; gap: 4px; margin-left: auto; }
.vc-mode button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #9ca3af; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vc-mode button.active { background: #6366f1; color: #fff; border-color: #6366f1; }

/* экран входа */
.vc-prejoin { background: #0d0f14; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 28px; max-width: 440px; margin: 30px auto; text-align: center; }
.vc-prejoin h2 { margin: 0 0 6px; color: #fff; }
.vc-prejoin p { color: #9ca3af; font-size: 13.5px; margin: 0 0 18px; }
.vc-prejoin input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: #06070b; color: #fff; padding: 0 14px; font-size: 15px; margin-bottom: 14px; outline: none; }
.vc-prejoin input:focus { border-color: #6366f1; }
.vc-full-msg { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fca5a5; border-radius: 12px; padding: 14px; font-size: 14px; margin-top: 14px; display: none; }
.vc-promo { margin-top: 14px; }
.vc-promo a { color: #6b7280; font-size: 12.5px; }
.vc-promo a:hover { color: #c4b5fd; }

.vc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.vc-tile { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: #0d0f14; border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.vc-tile.speaking { border-color: rgba(52,211,153,.7); box-shadow: 0 0 0 2px rgba(52,211,153,.35); }
.vc-tile video { width: 100%; height: 100%; object-fit: cover; background: #0d0f14; display: none; }
.vc-tile.hasvideo video { display: block; }
.vc-tile.hasvideo .vc-ava { display: none; }
.vc-ava { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 30px; color: #fff; }
.vc-tag { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; font-weight: 700; }
.vc-empty { color: #6b7280; padding: 40px; text-align: center; grid-column: 1/-1; }

.vc-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vc-btn { height: 46px; padding: 0 18px; border-radius: 12px; border: none; font-weight: 800; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.vc-join { background: #34d399; color: #06281c; }
.vc-leave { background: #f87171; color: #3b0d0d; }
.vc-tg { background: rgba(255,255,255,.08); color: #e5e7eb; border: 1px solid rgba(255,255,255,.15); }
.vc-tg.off { background: rgba(248,113,113,.18); color: #fca5a5; border-color: rgba(248,113,113,.4); }
.vc-tg.on { background: rgba(99,102,241,.25); color: #c7d2fe; border-color: rgba(99,102,241,.5); }
.vc-pttbtn { height: 56px; border-radius: 14px; border: none; width: 100%; margin-top: 12px; font-weight: 800; font-size: 16px; background: rgba(99,102,241,.2); color: #c7d2fe; cursor: pointer; user-select: none; display: none; }
.vc-pttbtn.show { display: block; }
.vc-pttbtn.active { background: #34d399; color: #06281c; }

/* fullscreen */
.vc-wrap:fullscreen { max-width: 100%; padding: 18px; background: #06070b; overflow: auto; }
.vc-wrap:-webkit-full-screen { max-width: 100%; padding: 18px; background: #06070b; overflow: auto; }
.vc-wrap:fullscreen .vc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.vc-tile:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; }
.vc-tile:-webkit-full-screen { width: 100vw; height: 100vh; }
.vc-tile:fullscreen video { object-fit: contain; }
.vc-tile-full { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: none; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.vc-tile:hover .vc-tile-full { opacity: 1; }

/* ── чат ── */
.vc-chat { position: fixed; right: 0; top: 0; bottom: 0; width: min(340px, 92vw); background: #0a0c12; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; z-index: 50; }
.vc-chat.open { transform: none; }
.vc-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; font-weight: 800; }
.vc-chat-head button { background: none; border: none; color: #9ca3af; font-size: 18px; cursor: pointer; }
.vc-chat-msgs { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.vc-msg { font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.vc-msg .who { font-weight: 800; color: #a5b4fc; margin-right: 6px; }
.vc-msg.mine .who { color: #34d399; }
.vc-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.vc-chat-input input { flex: 1; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: #06070b; color: #fff; padding: 0 12px; font-size: 14px; outline: none; }
.vc-chat-input input:focus { border-color: #6366f1; }
.vc-chat-input button { width: 42px; height: 42px; border: none; border-radius: 10px; background: #6366f1; color: #fff; font-size: 16px; cursor: pointer; }
.vc-chat-unread { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 99px; background: #f87171; color: #fff; font-size: 10.5px; font-weight: 800; display: none; align-items: center; justify-content: center; padding: 0 4px; }
.vc-chat-unread.show { display: flex; }

/* ── реакции ── */
.vc-reactions { display: inline-flex; gap: 4px; }
.vc-reactions button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); font-size: 17px; cursor: pointer; transition: transform .1s; }
.vc-reactions button:hover { transform: scale(1.15); background: rgba(255,255,255,.12); }
.vc-float-emoji { position: absolute; bottom: 20%; left: 50%; font-size: 34px; pointer-events: none; animation: floatUp 1.6s ease-out forwards; z-index: 5; }
@keyframes floatUp { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.1); } 100% { transform: translate(-50%, -130px) scale(1); opacity: 0; } }

/* ── account / оплата ── */
.card { background: #0d0f14; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; color: #fff; }
.prem-on { color: #34d399; font-weight: 800; }
.prem-off { color: #9ca3af; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pay-table td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.06); color: #cbd5e1; }
.spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.15); border-top-color: #8b5cf6; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── фаза 3: настройки, YouTube, модерация, запись ── */
.vc-iconbtn { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(255,255,255,.05); color: #9ca3af; font-size: 16px; cursor: pointer; }
.vc-iconbtn:hover { color: #fff; }
.vc-tile-kick { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border: none; border-radius: 8px; background: rgba(248,113,113,.7); color: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.vc-tile:hover .vc-tile-kick { opacity: 1; }
.vc-rec { color: #f87171; font-weight: 800; font-size: 13px; animation: recblink 1.4s infinite; }
@keyframes recblink { 50% { opacity: .35; } }
.vc-btn.on { background: rgba(99,102,241,.25); color: #c7d2fe; border-color: rgba(99,102,241,.5); }

.vc-yt { background: #0d0f14; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.vc-yt-head { display: flex; gap: 8px; margin-bottom: 10px; }
.vc-yt-head input { flex: 1; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: #06070b; color: #fff; padding: 0 12px; font-size: 14px; outline: none; }
.vc-yt-head .btn { height: 42px; padding: 0 14px; }
.vc-yt-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.vc-yt-frame > div, .vc-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.vc-yt-join { width: 100%; margin-top: 10px; }

.vc-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.vc-modal { background: #0d0f14; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 24px; width: min(440px, 100%); }
.vc-modal h3 { margin: 0 0 14px; color: #fff; }
.vc-modal label { display: block; color: #9ca3af; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.vc-modal input[type=text], .vc-modal input:not([type]) { width: 100%; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: #06070b; color: #fff; padding: 0 12px; font-size: 14px; outline: none; }
.vc-modal input:focus { border-color: #6366f1; }
.st-slug { display: flex; align-items: center; gap: 6px; }
.st-slug span { color: #6b7280; font-size: 13px; white-space: nowrap; }
.st-check { display: flex !important; align-items: center; gap: 8px; color: #cbd5e1 !important; cursor: pointer; }
.prem-tag { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 99px; background: rgba(139,92,246,.2); color: #c4b5fd; vertical-align: middle; }
.st-err { color: #fca5a5; font-size: 13px; min-height: 18px; margin-top: 10px; }
.st-actions { display: flex; gap: 10px; margin-top: 8px; }

@media (max-width: 640px) {
  .page { padding: 0 14px 30px; }
  .hero { padding: 28px 0 22px; }
  .vc-btn { padding: 0 13px; font-size: 13.5px; height: 44px; }
}
