:root {
  --bg: #05070d;
  --text: #f6f8ff;
  --muted: #c3cde2;
  --muted-soft: #97a4bd;
  --border: rgba(255, 255, 255, 0.1);
  --pink: #ff2d95;
  --cyan: #2fd8ff;
  --grad: linear-gradient(90deg, var(--pink), var(--cyan));
  --grad-diag: linear-gradient(135deg, var(--pink), var(--cyan));
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 45, 149, 0.12), transparent 45%),
    radial-gradient(ellipse at 80% 20%, rgba(47, 216, 255, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.15; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.75rem 1rem;
}
input::placeholder, textarea::placeholder { color: var(--muted-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .dropzone:focus-visible, label.btn:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.6rem 1.2rem;
  border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  font-weight: 700; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.09); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 26px rgba(255, 45, 149, 0.28); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 10px 32px rgba(47, 216, 255, 0.3); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.btn-outline-cyan, .btn-muted { border-color: rgba(47, 216, 255, 0.55); background: transparent; }
.wide { width: 100%; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.06em; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  border-radius: 10px; background: var(--grad-diag); color: #fff; font-weight: 900;
}
.brand-word {
  font-size: 1.1rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Home layout */
.page-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; width: 280px; min-width: 280px;
  padding: 22px 18px; overflow-y: auto;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(5, 7, 13, 0.92);
}
.brand-sidebar { padding: 0 8px 18px; }
.brand-sidebar .brand-word { font-size: 2.3rem; letter-spacing: 0.04em; filter: drop-shadow(0 0 14px rgba(255, 45, 149, 0.35)); }
.brand-mobile { display: none; }

.sidebar-nav { display: grid; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 14px; min-height: 46px;
  padding: 0.55rem 0.8rem; border-radius: 12px;
  color: var(--muted); font-weight: 700; border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav-item.active { color: var(--pink); border-left-color: var(--pink); background: rgba(255, 45, 149, 0.08); }
.nav-icon { width: 1.3rem; text-align: center; }
.coming-soon, .soon-tag {
  display: inline-block; margin-left: auto; padding: 0.1rem 0.5rem;
  border: 1px solid var(--pink); border-radius: 999px;
  color: var(--cyan); font-size: 0.65rem; font-weight: 700; white-space: nowrap;
}
.sidebar-login { width: 100%; min-height: 50px; margin-top: 18px; font-size: 1.05rem; }
.sidebar-links { display: grid; gap: 6px; margin-top: 22px; padding: 0 8px; font-size: 0.82rem; color: var(--muted-soft); }
.sidebar-links a:hover { color: var(--cyan); }
.sidebar-company { margin-top: auto; padding: 18px 8px 0; font-size: 0.8rem; color: var(--muted-soft); }
.sidebar-company p { margin: 0 0 2px; color: var(--text); font-weight: 800; }

.main-panel { flex: 1; min-width: 0; padding: 14px 24px 24px; }
.top-controls { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 64px; }
.global-search {
  flex: 1; max-width: 640px; display: flex; align-items: center; gap: 10px;
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--pink);
}
.global-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 216, 255, 0.15); }
.global-search input { border: 0; background: transparent; padding: 0.2rem 0; color: var(--text); }
.global-search input:focus-visible { outline: none; }
.top-actions { display: flex; gap: 10px; }
.app-download-wrap { position: relative; }
.app-download-panel {
  position: absolute; z-index: 20; top: calc(100% + 10px); right: 0;
  width: max-content; max-width: min(320px, calc(100vw - 24px));
  display: grid; justify-items: center; gap: 10px; padding: 14px;
  border: 1px solid var(--border); border-radius: 16px;
  background: #0b0f17; box-shadow: var(--shadow);
}
.app-store-badge { display: block; line-height: 0; }
.app-store-badge img { display: block; width: 150px; height: auto; }
.app-download-status { margin: 0; color: var(--muted-soft); font-size: 0.8rem; text-align: center; }

.stage { min-height: calc(100vh - 100px); }
.view[hidden] { display: none !important; }

/* Feed */
.feed-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 110px); }
.feed-stage { position: relative; display: flex; align-items: flex-end; gap: 20px; }
.video-card {
  height: min(78vh, 780px); aspect-ratio: 9 / 16; min-height: 480px;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border); background: #000;
  box-shadow: 0 0 60px rgba(255, 45, 149, 0.16), 0 0 90px rgba(47, 216, 255, 0.1), var(--shadow);
}
.video-media {
  position: relative; width: 100%; height: 100%;
  background: radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.35), transparent 14%),
    linear-gradient(160deg, #ff2d95 0%, #5b2cff 50%, #2fd8ff 100%);
  transition: background 0.4s ease;
}
.video-media[data-theme="1"] { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 14%), linear-gradient(200deg, #2fd8ff 0%, #3a2cff 55%, #ff2d95 100%); }
.video-media[data-theme="2"] { background: radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.3), transparent 14%), linear-gradient(120deg, #1a1033 0%, #ff2d95 60%, #ffb36b 100%); }
.video-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 25%, transparent 50%, rgba(0, 0, 0, 0.85));
}
.video-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; }
.mute-chip, .demo-chip {
  padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.2);
}
.video-caption-center {
  position: absolute; z-index: 2; left: 12%; right: 12%; top: 46%;
  text-align: center; font-size: 1.35rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.video-overlay { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 22px; }
.video-overlay p { margin: 0 0 4px; }
.user-handle { font-weight: 800; display: flex; align-items: center; gap: 10px; }
.follow-inline {
  padding: 0.15rem 0.8rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  color: #fff; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--cyan);
}
.follow-inline.on { background: var(--grad); border-color: transparent; }
.caption { font-size: 0.95rem; }
.hashtags, .audio { font-size: 0.8rem; color: rgba(255, 255, 255, 0.9); }
.video-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.2); }
.video-progress span { display: block; width: 38%; height: 100%; background: var(--grad); }

.engagement-rail { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 6px; }
.engage { display: grid; justify-items: center; gap: 4px; }
.engage strong { font-size: 0.75rem; color: var(--muted); }
.engage-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.08);
  color: var(--text); font-size: 1.3rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.engage-btn:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.16); }
.engage-btn.on { color: var(--pink); border-color: var(--pink); box-shadow: 0 0 16px rgba(255, 45, 149, 0.45); }
[data-bookmark].on { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px rgba(47, 216, 255, 0.4); }
.creator-bubble { position: relative; width: 52px; height: 52px; padding: 0; border: 0; background: none; margin-bottom: 8px; }
.mini-avatar {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-diag); color: #fff; font-weight: 800; flex-shrink: 0;
}
.creator-bubble .mini-avatar { width: 52px; height: 52px; border: 2px solid #fff; }
.creator-bubble .plus {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #fff;
  display: grid; place-items: center; font-size: 1rem; line-height: 1;
}
.creator-bubble.on .plus { background: var(--cyan); }

.video-nav { position: absolute; right: -90px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.video-nav button {
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.08); color: var(--text);
}
.video-nav button:hover { border-color: var(--cyan); color: var(--cyan); }

/* Other views */
.panel { max-width: 980px; margin: 0 auto; padding: 8px 0 40px; }
.panel h2 { font-size: 2rem; margin: 8px 0 14px; }
.sub { margin: 26px 0 12px; font-size: 1.05rem; color: var(--cyan); }
.lead { color: var(--muted); }
.panel-search { max-width: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.chip.active { border-color: var(--pink); color: #fff; background: rgba(255, 45, 149, 0.15); }
.creator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.creator, .chat-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, 0.03);
}
.creator small, .chat-item small { display: block; color: var(--muted-soft); }
.g1 { background: linear-gradient(135deg, #ff2d95, #8a3dff); }
.g2 { background: linear-gradient(135deg, #2fd8ff, #3a6bff); }
.g3 { background: linear-gradient(135deg, #ff2d95, #2fd8ff); }
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumb-grid.three { grid-template-columns: repeat(3, 1fr); }
.thumb {
  position: relative; aspect-ratio: 9 / 14; border-radius: 14px; border: 1px solid var(--border); overflow: hidden;
}
.thumb span { position: absolute; left: 10px; bottom: 8px; font-size: 0.8rem; font-weight: 700; text-shadow: 0 1px 6px #000; }
.t1 { background: linear-gradient(160deg, #ff2d95, #4b1fa0); }
.t2 { background: linear-gradient(160deg, #2fd8ff, #1b2b7a); }
.t3 { background: linear-gradient(160deg, #1a1033, #ff2d95); }
.t4 { background: linear-gradient(160deg, #3a2cff, #2fd8ff); }

.empty-state {
  margin-top: 24px; padding: 40px 20px; text-align: center;
  border: 1px dashed rgba(47, 216, 255, 0.4); border-radius: 20px;
}
.empty-state p { max-width: 460px; margin: 0 auto 18px; color: var(--muted); }
.empty-icon {
  width: 64px; height: 64px; margin: 0 auto 10px; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad-diag); font-size: 1.8rem;
}
.soon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.soon-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px;
  border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, 0.03);
}
.soon-card .coming-soon { margin-left: 0; }

.upload-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 340px; padding: 20px; text-align: center; color: var(--muted);
  border: 2px dashed rgba(47, 216, 255, 0.45); border-radius: 20px; background: rgba(255, 255, 255, 0.03);
}
.dropzone.over { border-color: var(--pink); background: rgba(255, 45, 149, 0.08); }
.dropzone p { margin: 0; color: var(--text); font-weight: 700; }
.drop-graphic {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px;
  background: var(--grad-diag); font-size: 2rem;
}
.upload-form { display: grid; gap: 14px; align-content: start; }
.upload-form label, .auth-form label { display: grid; gap: 6px; font-weight: 600; }
.upload-form textarea { resize: vertical; }
.preview-thumb {
  height: 140px; display: grid; place-items: center; border-radius: 14px; color: var(--muted-soft);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04) center / cover no-repeat;
}
.note, .modal-note, .notice { margin: 0; color: var(--muted-soft); font-size: 0.85rem; }
.form-error { margin: 0; padding: 0.6rem 0.8rem; border-radius: 10px; border: 1px solid var(--pink); background: rgba(255, 45, 149, 0.12); font-size: 0.85rem; }
.form-error[hidden], .auth-gate[hidden] { display: none; }
.form-info { margin: 0; padding: 0.6rem 0.8rem; border-radius: 10px; border: 1px solid var(--cyan); background: rgba(47, 216, 255, 0.1); font-size: 0.85rem; }
.form-info[hidden], .auth-form label[hidden], .link-btn[hidden], .top-actions .btn[hidden], .topbar-actions .btn[hidden] { display: none; }
.link-btn { justify-self: center; background: none; border: 0; padding: 4px; color: var(--cyan); text-decoration: underline; font-size: 0.85rem; }

.auth-gate {
  max-width: 520px; margin: 8vh auto 0; padding: 40px 28px; text-align: center;
  border: 1px solid var(--border); border-radius: 24px; background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 60px rgba(255, 45, 149, 0.1), 0 0 80px rgba(47, 216, 255, 0.07);
}
.auth-gate h2 { margin: 14px 0 8px; font-size: 1.8rem; }
.auth-gate p { margin: 0 auto 22px; max-width: 380px; color: var(--muted); }
.gate-icon {
  width: 68px; height: 68px; margin: 0 auto; display: grid; place-items: center;
  border-radius: 20px; background: var(--grad-diag); font-size: 2rem;
  box-shadow: 0 8px 30px rgba(255, 45, 149, 0.3);
}
.gate-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.gate-actions .btn { min-width: 130px; }

.inbox-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.chat-list { display: grid; gap: 10px; align-content: start; }
.chat-item.active { border-color: var(--pink); background: rgba(255, 45, 149, 0.08); }
.chat-thread { padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255, 255, 255, 0.03); }
.msg { max-width: 75%; margin: 0 0 10px; padding: 10px 14px; border-radius: 16px; }
.msg.in { background: rgba(255, 255, 255, 0.08); }
.msg.out { margin-left: auto; background: linear-gradient(135deg, rgba(255, 45, 149, 0.35), rgba(47, 216, 255, 0.3)); }
.reply-box { display: flex; gap: 10px; margin-top: 16px; }

.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head > div { flex: 1; min-width: 200px; }
.profile-head h2 { margin: 0; }
.profile-head p { margin: 4px 0 0; }
.display { font-weight: 700; }
.mini-avatar.big { width: 96px; height: 96px; font-size: 2rem; }
.stats-row { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.stats-row div { min-width: 110px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 14px; }
.stats-row strong { display: block; font-size: 1.2rem; }
.stats-row span { color: var(--muted-soft); font-size: 0.8rem; }

/* Toast and modal */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px);
  padding: 0.7rem 1.2rem; border-radius: 999px; background: #12151f; border: 1px solid var(--cyan);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.auth-modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.auth-modal.show { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 8, 0.82); }
.modal-panel {
  position: relative; width: min(440px, 100%); padding: 28px 24px 22px;
  border: 1px solid var(--border); border-radius: 24px; background: #0b0f17;
  box-shadow: 0 0 60px rgba(255, 45, 149, 0.15), var(--shadow);
}
.modal-panel h2, .auth-header h2 { margin: 0 0 16px; font-size: 1.7rem; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--text); font-size: 1.4rem;
}
.auth-form { display: grid; gap: 14px; }
.modal-note { margin-top: 14px; }
.mini-label { margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--cyan); }

/* Info pages (about, contact, privacy, terms, delete account) */
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(800px, calc(100% - 32px)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 7, 13, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1100px, calc(100% - 32px)); min-height: 72px; margin: 0 auto; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.page-header { padding: 48px 0 16px; }
.page-header h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
.section-copy { color: var(--muted); margin: 0; }
.content-wrap { padding: 0 0 56px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card, .legal-content article {
  padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255, 255, 255, 0.03);
}
.info-card h2 { margin: 14px 0 6px; font-size: 1.3rem; }
.info-card p { margin: 4px 0; color: var(--muted); }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: var(--grad-diag); font-size: 1.3rem;
}
.legal-content h2 { margin: 28px 0 8px; font-size: 1.3rem; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content a, .info-card a { color: var(--cyan); text-decoration: underline; }
.legal-content .soon-tag { margin-left: 10px; }
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.footer-tagline { margin: 8px 0 0; font-weight: 700; }
.footer-tagline.secondary { color: var(--muted); font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }

/* Mobile nav (hidden on desktop) */
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .video-nav { right: -64px; }
}

@media (max-width: 920px) {
  .sidebar { display: none; }
  .brand-mobile { display: inline-flex; }
  .main-panel { padding: 10px 14px 90px; }
  .top-controls { flex-wrap: wrap; justify-content: space-between; }
  .global-search { order: 3; flex-basis: 100%; max-width: none; }
  .top-actions .btn-ghost, .top-actions .btn-outline-cyan:not(#app-download-trigger) { display: none; }
  .feed-container { min-height: calc(100vh - 170px); }
  .video-nav { display: none; }
  .video-card { height: auto; min-height: 0; width: min(calc(100vw - 120px), calc(72vh * 9 / 16), 420px); }
  .mobile-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(5, 7, 13, 0.95); border-top: 1px solid var(--border);
  }
  .mobile-link {
    flex: 1; min-height: 48px; display: grid; place-items: center;
    color: var(--muted); font-size: 0.75rem; font-weight: 700; border-radius: 10px;
  }
  .mobile-link.active { color: var(--pink); }
  .creator-grid, .upload-layout, .inbox-layout, .soon-grid, .contact-grid { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .thumb-grid.three { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .feed-stage { gap: 10px; }
  .engage-btn { width: 46px; height: 46px; }
  .creator-bubble, .creator-bubble .mini-avatar { width: 46px; height: 46px; }
  .topbar-actions .btn-muted { display: none; }
  .topbar-actions .btn { padding: 0.5rem 0.9rem; }
}

/* Real data: media, feed states, creator avatars, thumbnails */
[hidden] { display: none !important; }
.video-media.real { background: #05070d; }
.video-media.real::before { display: none; }
.video-media.real::after { pointer-events: none; z-index: 1; }
.media-slot { position: absolute; inset: 0; }
.media-slot img, .media-slot video { width: 100%; height: 100%; object-fit: cover; display: block; background: #05070d; }
.media-fallback { height: 100%; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.video-media.real .video-overlay { pointer-events: none; z-index: 2; }
.video-media.real.is-video .video-overlay { bottom: 64px; }
.handle-link { pointer-events: auto; background: none; border: 0; padding: 0; color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; }
.handle-link:hover { text-decoration: underline; }
.feed-status { text-align: center; color: var(--muted); padding: 48px 16px; }
.feed-status p { margin: 0 0 16px; }
.creator-bubble { display: grid; place-items: center; overflow: hidden; background: var(--grad-diag); border: 2px solid #fff; border-radius: 50%; color: #fff; font-weight: 800; margin-bottom: 0; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.mini-avatar { overflow: hidden; }
button.creator { width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
button.creator:hover { border-color: var(--cyan); }
button.thumb { padding: 0; background: #10131c; color: var(--text); cursor: pointer; font: inherit; }
button.thumb:hover { border-color: var(--cyan); }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-badge { left: auto; right: 8px; top: 8px; bottom: auto; background: rgba(0, 0, 0, 0.55); border-radius: 999px; padding: 0 8px; }
.thumb .thumb-likes { z-index: 1; }
.handle-link:focus-visible, button.thumb:focus-visible, button.creator:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Flixsy social shell */
.sidebar {
  width: 264px;
  min-width: 264px;
  padding: 22px 16px;
  background: rgba(8, 10, 17, 0.96);
  backdrop-filter: blur(18px);
}
.brand-sidebar { padding-bottom: 24px; }
.sidebar-collapse {
  position: absolute;
  top: 24px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #111520;
  color: var(--muted);
  font-size: 1.15rem;
}
.nav-item { min-height: 48px; border-left: 0; }
.nav-item.active { box-shadow: inset 3px 0 var(--pink); }
.nav-icon { font-size: 1.15rem; }
.sidebar-auth { display: grid; gap: 8px; margin-top: 16px; }
.sidebar-login, .sidebar-signup { width: 100%; margin-top: 0; }
.sidebar-app-link, .sidebar-coins { width: 100%; margin-top: 10px; }
.sidebar-coins { justify-content: space-between; }
.sidebar-coins .coming-soon { margin-left: 4px; }
.sidebar-account { display: grid; gap: 10px; margin-top: 14px; padding: 12px 8px; border: 1px solid var(--border); border-radius: 16px; }
.sidebar-profile-link { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.sidebar-account-copy { display: grid; min-width: 0; }
.sidebar-account-copy strong, .sidebar-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy small { color: var(--muted-soft); }
.nav-count { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .72rem; text-align: center; }
.main-panel { padding: 12px clamp(18px, 3vw, 42px) 28px; }
.top-controls { justify-content: space-between; gap: 20px; }
.search-wrap { position: relative; flex: 1; width: min(620px, 100%); max-width: 620px; }
.search-wrap .global-search { max-width: none; width: 100%; }
.top-actions { align-items: center; }
.notification-button, .account-dropdown summary {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 1.2rem;
  list-style: none;
  cursor: pointer;
}
.account-dropdown summary::-webkit-details-marker { display: none; }
.account-dropdown summary .mini-avatar { width: 34px; height: 34px; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.account-dropdown { position: relative; }
.account-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #111520;
  box-shadow: var(--shadow);
}
.account-menu button { padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; }
.account-menu button:hover { background: rgba(255,255,255,.08); }
.search-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: min(70vh, 480px);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0e121c;
  box-shadow: var(--shadow);
}
.search-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; }
.search-option:hover { background: rgba(255,255,255,.07); }
.search-option.creator { padding: 8px; }
.search-post-option { padding: 8px 12px; }
.search-post-option > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-option-icon { display: grid; place-items: center; flex: 0 0 34px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--cyan); }
.search-no-results { margin: 0; padding: 14px; color: var(--muted-soft); }
.profile-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(255,45,149,.08), rgba(47,216,255,.05) 55%, rgba(255,255,255,.025));
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
}
.profile-card .mini-avatar.big { width: 104px; height: 104px; border: 2px solid rgba(255,255,255,.8); box-shadow: 0 0 0 5px rgba(255,45,149,.12); }
.profile-identity { min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 8px; }
.profile-name-row h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
#creator-title { margin: 3px 0 0; color: var(--muted-soft); font-size: .95rem; font-weight: 600; }
#creator-bio { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.verified-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: white; font-size: .78rem; font-weight: 900; box-shadow: 0 0 14px rgba(47,216,255,.25); }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.profile-actions .btn { min-height: 40px; padding: .5rem 1rem; }
.profile-actions .following { border-color: var(--cyan); color: var(--cyan); background: rgba(47,216,255,.09); }
.profile-more { position: relative; }
.profile-more summary { list-style: none; }
.profile-more summary::-webkit-details-marker { display: none; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stats-row div { padding: 15px 18px; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.stats-row strong { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.stats-row span { font-size: .82rem; }
.profile-content-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.profile-tabs { display: flex; gap: clamp(12px, 3vw, 30px); overflow-x: auto; }
.profile-tab { position: relative; flex: 0 0 auto; padding: 14px 2px; border: 0; background: transparent; color: var(--muted-soft); font-weight: 700; }
.profile-tab.active { color: var(--text); }
.profile-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px; background: var(--grad); content: ""; }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted-soft); font-size: .82rem; white-space: nowrap; }
.sort-control select { padding: 8px 28px 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: #10141e; color: var(--text); }
.profile-video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.profile-video-grid .thumb { aspect-ratio: 3 / 4; border-radius: 16px; background: #10131c; transition: transform .18s ease, border-color .18s ease; }
.profile-video-grid .thumb:hover { transform: translateY(-3px); border-color: rgba(47,216,255,.7); }
.profile-load-more { display: flex; margin: 20px auto; }
.profile-data-note { margin: 18px 0 0; color: var(--muted-soft); font-size: .78rem; text-align: center; }
.thumb-skeleton { aspect-ratio: 3 / 4; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(100deg, #10131b 25%, #1a1e2a 45%, #10131b 65%); background-size: 220% 100%; animation: skeleton-shimmer 1.35s linear infinite; }
@keyframes skeleton-shimmer { to { background-position-x: -220%; } }
.activity-list { display: grid; gap: 8px; }
.activity-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--text); text-align: left; }
.activity-item.unread { border-color: rgba(255,45,149,.4); background: rgba(255,45,149,.055); }
.activity-item small { flex: 0 0 auto; color: var(--muted-soft); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-card { display: grid; align-content: start; gap: 6px; min-height: 112px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.03); color: var(--text); text-align: left; }
.settings-card:hover { border-color: rgba(47,216,255,.45); background: rgba(255,255,255,.05); }
.settings-card span:not(.coming-soon) { color: var(--muted-soft); font-size: .9rem; }
.settings-card .coming-soon { width: fit-content; margin: 3px 0 0; }
.edit-profile-dialog { width: min(480px, calc(100% - 28px)); max-height: 90vh; padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: #0e121c; color: var(--text); box-shadow: var(--shadow); }
.edit-profile-dialog::backdrop { background: rgba(2,4,8,.78); backdrop-filter: blur(5px); }
.edit-profile-dialog form { display: grid; gap: 14px; }
.edit-profile-dialog label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
.edit-profile-dialog textarea { resize: vertical; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading h2 { margin: 0; }
.dialog-heading .modal-close { position: static; flex: 0 0 auto; }

@media (max-width: 1100px) {
  .profile-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .top-controls { gap: 10px; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .top-controls .global-search { order: initial; flex-basis: auto; }
  .profile-card { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .profile-card .mini-avatar.big { width: 84px; height: 84px; }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .profile-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .main-panel { padding: 8px 12px 90px; }
  .top-controls { min-height: 54px; }
  .top-actions { gap: 6px; }
  #app-download-trigger { min-height: 40px; padding: .45rem .8rem; }
  .notification-button { width: 40px; height: 40px; }
  .profile-card { padding: 16px; border-radius: 18px; }
  .profile-actions .btn { flex: 1 1 auto; }
  .stats-row { gap: 7px; }
  .stats-row div { min-width: 0; padding: 11px 8px; text-align: center; }
  .stats-row span { font-size: .7rem; }
  .profile-content-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .profile-tabs { width: 100%; gap: 20px; }
  .sort-control { padding-bottom: 10px; }
  .profile-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .activity-item { align-items: flex-start; flex-direction: column; gap: 5px; }
  .mobile-link { gap: 2px; }
  .mobile-link span { font-size: 1.08rem; line-height: 1.1; }
}

.sidebar.collapsed { width: 84px; min-width: 84px; padding: 22px 10px; }
.sidebar.collapsed .brand-sidebar { padding: 0 0 24px; justify-content: center; }
.sidebar.collapsed .brand-sidebar .brand-word { font-size: 1rem; letter-spacing: 0; }
.sidebar.collapsed .sidebar-collapse { right: 5px; }
.sidebar.collapsed .nav-item { justify-content: center; padding-inline: 8px; font-size: 0; }
.sidebar.collapsed .nav-icon { width: auto; font-size: 1.2rem; }
.sidebar.collapsed .coming-soon, .sidebar.collapsed .sidebar-links,
.sidebar.collapsed .sidebar-company, .sidebar.collapsed .sidebar-account-copy { display: none; }
.sidebar.collapsed .sidebar-account { padding: 10px 6px; justify-items: center; }
.sidebar.collapsed .sidebar-profile-link { justify-content: center; }
.sidebar.collapsed .sidebar-auth .btn,
.sidebar.collapsed .sidebar-app-link,
.sidebar.collapsed .sidebar-coins { overflow: hidden; padding-inline: 2px; font-size: 0; }

.wallet-header-link { min-height: 42px; }
.live-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 4px; }
.live-heading h2 { margin: 0; }
.live-heading .lead { margin: 8px 0 0; }
.live-platform-note { margin-bottom: 20px; }
#live-status, #wallet-status { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.live-retry { min-height: 36px; padding: .35rem .85rem; }
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.live-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.035); }
.live-card-open {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  padding: 0; border: 0; background: linear-gradient(135deg, rgba(255,45,149,.32), rgba(47,216,255,.18));
  color: #fff; text-align: left;
}
.live-card-open:hover .live-cover { transform: scale(1.035); }
.live-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.live-card-open::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 40%, rgba(0,0,0,.75)); content: ""; }
.live-badge, .live-card-viewers, .live-card-title { position: absolute; z-index: 1; }
.live-badge { top: 12px; left: 12px; margin: 0; padding: 3px 9px; border: 0; background: #fa315f; color: #fff; font-size: .72rem; letter-spacing: .06em; }
.live-card-viewers { right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: .75rem; }
.live-card-title { right: 12px; bottom: 38px; left: 12px; overflow: hidden; font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
.live-card-creator { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; }
.live-card-identity { display: grid; flex: 1; min-width: 0; }
.live-card-identity strong, .live-card-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-card-identity small { color: var(--muted-soft); }
.live-card-follow { min-height: 36px; padding: .35rem .75rem; font-size: .8rem; }
.live-card-follow.following, #live-host-follow.following { border-color: var(--cyan); color: var(--cyan); }
.live-room-viewer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .75fr); gap: 18px; margin-top: 20px; }
.live-player-column { min-width: 0; }
.live-video-stage {
  position: relative; display: grid; place-items: center; min-height: 360px; aspect-ratio: 16 / 9;
  overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #000;
}
.live-player-placeholder { padding: 28px; color: var(--muted); text-align: center; }
.live-remote-video { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; background: #000; }
.live-remote-audio { display: block; width: 100%; height: 38px; background: #10131c; }
.live-room-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.live-room-actions .btn { min-height: 38px; padding: .4rem .8rem; font-size: .85rem; }
.live-room-panel { display: flex; min-height: 520px; flex-direction: column; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.025); }
.live-host-card { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-host-copy { display: grid; flex: 1; min-width: 0; }
.live-host-copy strong, .live-host-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-host-copy small { color: var(--muted-soft); }
.live-host-card .btn { min-height: 36px; padding: .35rem .8rem; }
.live-room-title { margin: 12px 0 2px; font-size: 1.05rem; }
.live-viewer-count { margin: 0 0 10px; color: var(--muted-soft); font-size: .8rem; }
.live-chat-log { display: grid; align-content: start; gap: 8px; min-height: 150px; max-height: 300px; overflow: auto; padding: 10px 0; border-top: 1px solid var(--border); }
.live-chat-message, .live-chat-gift { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .86rem; }
.live-chat-message strong { margin-right: 4px; color: var(--text); }
.live-chat-gift { color: #ffd2e7; }
.live-chat-form { display: flex; gap: 8px; margin-top: 8px; }
.live-chat-form input { min-width: 0; padding: .65rem .85rem; }
.live-chat-form .btn { min-height: 42px; padding: .45rem .9rem; }
.live-reactions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.live-reactions .btn { min-width: 42px; min-height: 38px; padding: .3rem .6rem; font-size: 1.05rem; }
.live-reactions .reaction-sent { border-color: var(--pink); color: var(--pink); transform: scale(1.08); }
.live-gifting { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.live-gifting-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-gifting-heading h3 { margin: 0; font-size: .95rem; }
.wallet-inline-balance { color: var(--cyan); font-size: .8rem; font-weight: 700; }
.live-gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.live-gift-card, .wallet-gift-card { display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 9px 5px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.035); color: var(--text); text-align: center; }
.live-gift-card:hover { border-color: var(--pink); background: rgba(255,45,149,.08); }
.live-gift-card:disabled { opacity: .55; cursor: wait; }
.gift-image { width: 42px; height: 42px; object-fit: contain; }
.gift-name { overflow: hidden; max-width: 100%; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.gift-price, .gift-description { color: var(--muted-soft); font-size: .7rem; }
.wallet-balance-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid rgba(47,216,255,.2); border-radius: 20px; background: linear-gradient(120deg, rgba(255,45,149,.1), rgba(47,216,255,.08)); }
.wallet-balance-card > div { display: grid; gap: 2px; }
.wallet-balance-card > div strong { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.wallet-balance-card > div > span:last-child { color: var(--muted); font-size: .85rem; }
.wallet-balance-card p { max-width: 370px; margin: 0; color: var(--muted); font-size: .9rem; }
.coin-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.coin-package { display: grid; justify-items: center; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.03); text-align: center; }
.coin-package strong { color: var(--cyan); font-size: 1.45rem; }
.coin-package span { font-weight: 700; }
.coin-package small { color: var(--muted-soft); font-size: .75rem; }
.wallet-purchase-note { margin-top: 12px; }
.wallet-app-link { margin-top: 12px; }
.wallet-transaction-list { display: grid; gap: 8px; }
.wallet-transaction { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); }
.wallet-transaction-label { font-weight: 700; }
.wallet-transaction-date { color: var(--muted-soft); font-size: .78rem; }
.wallet-amount { min-width: 72px; text-align: right; }
.wallet-amount.positive { color: var(--cyan); }
.wallet-gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wallet-gift-card { justify-items: start; align-content: start; min-height: 110px; padding: 14px; text-align: left; }
.wallet-gift-card .gift-image { width: 54px; height: 54px; }
.wallet-gift-card .gift-name { font-size: .9rem; }
.wallet-gift-card .gift-price { font-size: .8rem; }
.wallet-gift-card .gift-description { font-size: .75rem; }

@media (max-width: 1100px) {
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-room-viewer { grid-template-columns: minmax(0, 1fr); }
  .live-room-panel { min-height: 0; }
  .live-chat-log { max-height: 260px; }
  .wallet-gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .wallet-header-link { display: inline-flex !important; padding: .45rem .7rem; font-size: .8rem; }
  .live-room-viewer { margin-top: 14px; }
  .live-video-stage { min-height: 250px; }
  .live-room-panel { padding: 13px; }
}
@media (max-width: 600px) {
  .live-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .live-grid, .coin-package-grid { grid-template-columns: 1fr; }
  .live-card-open { aspect-ratio: 16 / 11; }
  .live-video-stage { min-height: 210px; border-radius: 14px; }
  .wallet-balance-card { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; }
  .wallet-transaction { grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; }
  .wallet-transaction-date { grid-column: 1; grid-row: 2; }
  .wallet-amount { grid-column: 2; grid-row: 1 / span 2; }
  .wallet-gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-room-actions .btn { flex: 1; }
}
.sidebar.collapsed .sidebar-login::before { content: "↪"; font-size: 1rem; }
.sidebar.collapsed .sidebar-signup { display: none; }
.sidebar.collapsed .sidebar-app-link::before { content: "App"; font-size: .78rem; }
.sidebar.collapsed .sidebar-coins::before { content: "Coins"; font-size: .72rem; }

@media (max-width: 920px) {
  .sidebar.collapsed { width: 84px; min-width: 84px; }
  .sidebar-collapse { display: none; }
}
