@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,500&display=swap');

:root {
  --burgundy-deep: #1a0a1f;
  --burgundy: #2d0f2e;
  --burgundy-mid: #3d1538;
  --gold: #d4af37;
  --gold-light: #e8c547;
  --gold-dark: #b8942a;
  --pink-deep: #c77daa;
  --pink: #e8a0b4;
  --salmon: #f4b8a8;
  --purple-glow: #6b2d6e;
  --purple-light: #9b4d9b;
  --text: #f5e6f0;
  --text-muted: #b89aad;
  --glass: rgba(45, 15, 46, 0.75);
  --glass-border: rgba(212, 175, 55, 0.15);
  --glow-gold: 0 0 20px rgba(212, 175, 55, 0.35);
  --glow-pink: 0 0 30px rgba(199, 125, 170, 0.4);
  --glow-purple: 0 0 40px rgba(107, 45, 110, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--burgundy-deep);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(107, 45, 110, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(199, 125, 170, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 60%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--burgundy-deep) 0%, #120812 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Age Gate ── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0408;
  padding: 1.5rem;
  pointer-events: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}

.age-gate.hidden { display: none; }

.age-gate-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 2rem;
  background: #2d0f2e;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glow-purple), var(--glow-pink);
  animation: gatePulse 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@keyframes gatePulse {
  0%, 100% { box-shadow: var(--glow-purple), 0 0 15px rgba(199, 125, 170, 0.2); }
  50% { box-shadow: var(--glow-purple), var(--glow-gold), 0 0 25px rgba(199, 125, 170, 0.35); }
}

.age-gate-logo {
  width: min(320px, 90vw);
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.45)) drop-shadow(0 0 40px rgba(199, 125, 170, 0.25));
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.age-gate h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.age-gate p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 3;
}

.age-gate .btn {
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--burgundy-deep);
  box-shadow: var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(184, 154, 173, 0.3);
}

.btn-secondary:hover { color: var(--text); border-color: var(--pink); }

.btn-fanvue {
  background: linear-gradient(135deg, var(--pink-deep) 0%, var(--purple-glow) 100%);
  color: white;
  box-shadow: var(--glow-pink);
}

.btn-fanvue:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(199, 125, 170, 0.55);
}

.btn-discord {
  background: #5865f2;
  color: white;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(26, 10, 31, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.header-logo img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45)) drop-shadow(0 0 18px rgba(199, 125, 170, 0.2));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 21, 56, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.icon-btn:hover, .icon-btn.active {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--glow-gold);
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* ── Nav ── */
.nav {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0.25rem;
  background: rgba(26, 10, 31, 0.95);
  border-bottom: 1px solid rgba(107, 45, 110, 0.2);
  position: sticky;
  top: 57px;
  z-index: 99;
  backdrop-filter: blur(12px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.6rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 10px;
  min-width: 56px;
}

.nav-item i { font-size: 1.15rem; }

.nav-item:hover, .nav-item.active {
  color: var(--gold);
}

.nav-item.active {
  background: rgba(212, 175, 55, 0.08);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* ── Views ── */
.view {
  display: none !important;
  flex: 1;
  animation: viewFade 0.4s ease;
}

.view.active { display: block !important; }

#view-feed.view.active {
  display: flex !important;
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Feed ── */
.feed-hero {
  padding: 1rem 1rem 0.5rem;
  text-align: center;
}

.feed-hero h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.feed-hero p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.feed-count {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--pink);
  padding: 0.25rem 0.75rem;
  background: rgba(107, 45, 110, 0.3);
  border-radius: 999px;
}

.guide-banner {
  position: relative;
  margin: 0.75rem 1rem;
  padding: 0.85rem 2rem 0.85rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.guide-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.tags-toggle {
  display: block;
  margin: 0 1rem 0.5rem;
  width: calc(100% - 2rem);
}

.unmute-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(0,0,0,0.65);
  border-radius: 999px;
  color: var(--text-muted);
  pointer-events: none;
}

.empty-feed {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-feed i { font-size: 2.5rem; color: var(--pink); margin-bottom: 1rem; }

/* ── Upload flow ── */
.flow-steps { display: flex; flex-direction: column; gap: 0.75rem; }

.flow-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--glass);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.flow-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--burgundy-deep);
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.flow-step strong { color: var(--gold-light); font-size: 0.9rem; }
.flow-step p { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

.upload-form-box {
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 9rem;
  padding: 2rem 1rem;
  border: 2px dashed rgba(199, 125, 170, 0.4);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  font-size: 1.05rem;
  transition: border-color 0.2s;
}

.upload-drop:hover { border-color: var(--gold); }
.upload-drop i { font-size: 2rem; color: var(--pink); }
.upload-drop input[type="file"] { display: none; }
.file-name { font-size: 0.78rem; color: var(--gold); }

/* ── Mod gate ── */
.mod-gate-card {
  margin: 0 1rem 1rem;
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  text-align: center;
}

.mod-gate-card i { font-size: 2rem; color: var(--gold); margin-bottom: 0.75rem; }
.mod-gate-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.mod-gate-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

.feed-filters {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feed-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  background: rgba(61, 21, 56, 0.5);
  border: 1px solid rgba(107, 45, 110, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.filter-chip:hover, .filter-chip.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* Feed can go edge-to-edge under the chrome, but Studio/Creators
   must stay reachable — never hide the main nav. */
#app.feed-immersive .site-footer,
#app.feed-immersive #floating-cta {
  display: none;
}

#app.feed-immersive .feed-vertical {
  height: calc(100dvh - 7.5rem);
}

#app.feed-immersive .feed-slide {
  height: 100dvh;
  min-height: 100dvh;
}

/* ── Feed HUD ── */
.feed-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(180deg, rgba(10, 4, 8, 0.75) 0%, transparent 100%);
  pointer-events: none;
}

.feed-hud > * { pointer-events: auto; }

.feed-hud-logo {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.feed-hud-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.feed-hud-live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.feed-hud-live .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: livePulse 2s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.feed-hud-actions {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}

.feed-hud-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
}

.feed-hud-btn:hover { border-color: var(--gold); color: var(--gold); }

.feed-chrome {
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  z-index: 25;
  background: rgba(10, 4, 8, 0.92);
  border-bottom: 1px solid var(--glass-border);
  max-height: 50dvh;
  overflow-y: auto;
}

.feed-nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.feed-nav-sheet.hidden { display: none; }

.feed-nav-sheet-inner {
  width: 100%;
  max-width: 520px;
  background: var(--burgundy);
  border-radius: 20px 20px 0 0;
  padding: 1.25rem 1rem 2rem;
  border-top: 1px solid var(--glass-border);
}

.feed-nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.feed-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
}

.feed-nav-link:hover { color: var(--gold); }

.feed-nav-sheet-close {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  color: var(--gold);
  font-family: inherit;
  cursor: pointer;
}

/* ── Slide hint (first visit) ── */
.slide-hint {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(10, 4, 8, 0.55);
  text-align: center;
  cursor: pointer;
  animation: hintIn 0.5s ease;
}

.slide-hint.fade { opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }

.slide-hint p {
  font-size: 1rem;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.slide-hint i { color: var(--gold); margin-right: 0.35rem; }

.slide-hint-ai { margin-top: 0.5rem; }

@keyframes hintIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-teaser {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--gold-light);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.slide-teaser:hover { color: var(--gold); }

.slide-fanvue-pulse i {
  animation: fanvuePulse 2.5s ease infinite;
}

@keyframes fanvuePulse {
  0%, 100% { color: var(--text); }
  50% { color: var(--gold); text-shadow: 0 0 12px rgba(212, 175, 55, 0.6); }
}

.slide-unmute.unmuted { opacity: 0; pointer-events: none; }

.creator-examples {
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  font-size: 0.8rem;
}

.creator-examples h4 {
  font-size: 0.78rem;
  color: #4ade80;
  margin: 0.5rem 0 0.35rem;
}

.creator-examples h4.reject-title { color: #f87171; }

.creator-examples ul {
  margin: 0 0 0.5rem 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Vertical TikTok-style feed ── */
.feed-vertical {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 7.5rem);
  overflow: hidden;
  position: relative;
}

.feed-chrome {
  flex-shrink: 0;
  z-index: 10;
}

.feed-chrome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 0.25rem;
  gap: 0.5rem;
}

.feed-filters-wrap {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.guide-compact {
  margin: 0.35rem 1rem 0.5rem;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  font-size: 0.75rem;
}

.feed-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 6rem;
}

.feed-container.feed-scroll {
  flex: 1;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-container.feed-scroll::-webkit-scrollbar { display: none; }

.feed-slide {
  height: calc(100dvh - 7.5rem);
  min-height: calc(100dvh - 7.5rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0408;
  overflow: hidden;
}

.slide-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-media video,
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-textwall {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 6rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--pink);
  background: linear-gradient(160deg, #1a0a1f 0%, #3d1538 50%, #1a0a1f 100%);
}

.slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 4, 8, 0.85) 100%);
  pointer-events: none;
}

.slide-side {
  position: absolute;
  right: 0.75rem;
  bottom: 7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 5;
}

.slide-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.65rem;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.slide-action i { font-size: 1.5rem; }

.slide-action:hover { color: var(--gold); }

.slide-bottom {
  position: absolute;
  left: 0;
  right: 3.5rem;
  bottom: 0;
  padding: 1rem 1rem 1.25rem;
  z-index: 5;
}

.slide-creator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.slide-creator img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.slide-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.slide-handle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.slide-caption {
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.slide-tags .tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
}

.slide-unmute {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--text);
  opacity: 0.85;
  pointer-events: auto;
  cursor: pointer;
  border: none;
  z-index: 6;
  transition: opacity 0.3s;
}

.feed-sentinel {
  height: 80px;
  min-height: 80px;
  scroll-snap-align: end;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-loader-snap { display: none; }

#view-feed.feed-vertical {
  position: relative;
}

#view-feed.feed-vertical.view.active {
  padding-bottom: 0;
}

/* ── Mod applicant cards ── */
.mod-applicant {
  flex-direction: column;
  align-items: stretch !important;
  gap: 1rem !important;
}

.mod-applicant-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mod-handle { color: var(--gold-light); font-size: 0.85rem; }
.mod-email { font-size: 0.75rem; width: 100%; }

.mod-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.mod-bio-block p {
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.6rem 0.75rem;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
}

.mod-portfolio-block { margin-top: 0.75rem; }

.mod-portfolio-btn { margin-bottom: 0.35rem; }

.mod-portfolio-url {
  display: block;
  font-size: 0.72rem;
  word-break: break-all;
}

.mod-no-portfolio {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  color: var(--salmon);
}

.feed-post {
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  animation: postGlitch 8s ease-in-out infinite;
}

.feed-post:nth-child(odd) { animation-delay: -2s; }
.feed-post:nth-child(3n) { animation-delay: -4s; }

@keyframes postGlitch {
  0%, 95%, 100% { transform: translateX(0); filter: none; }
  96% { transform: translateX(-1px); filter: hue-rotate(5deg); }
  97% { transform: translateX(1px); }
  98% { transform: translateX(0); }
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.post-creator-info { flex: 1; }

.post-creator-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.verified-badge {
  color: var(--gold);
  font-size: 0.75rem;
}

.ai-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  background: rgba(107, 45, 110, 0.4);
  border: 1px solid rgba(199, 125, 170, 0.3);
  border-radius: 4px;
  color: var(--pink);
}

.post-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 70dvh;
  background: #0a0408;
  overflow: hidden;
}

.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-media video { background: #000; }

.textwall {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 2rem;
  background: linear-gradient(160deg, var(--burgundy-mid) 0%, var(--purple-glow) 50%, var(--burgundy) 100%);
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  white-space: pre-line;
  animation: textPulse 4s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(199, 125, 170, 0.3); }
  50% { text-shadow: 0 0 40px rgba(212, 175, 55, 0.4), 0 0 60px rgba(199, 125, 170, 0.3); }
}

.post-duration {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  font-size: 0.7rem;
}

.post-body { padding: 0.75rem 1rem 1rem; }

.post-caption {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: rgba(107, 45, 110, 0.35);
  border: 1px solid rgba(199, 125, 170, 0.2);
  border-radius: 999px;
  color: var(--pink);
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-stats span { display: flex; align-items: center; gap: 0.3rem; }

.post-stats i.liked { color: var(--pink-deep); }

.fanvue-teaser {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(90deg, rgba(199, 125, 170, 0.15) 0%, rgba(107, 45, 110, 0.2) 100%);
  border: 1px solid rgba(199, 125, 170, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.fanvue-teaser a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.fanvue-teaser a:hover { color: var(--salmon); }

.feed-loader {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Creators ── */
.section-header {
  padding: 1.25rem 1rem 0.75rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.section-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-bar {
  margin: 0.75rem 1rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(61, 21, 56, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--glow-gold);
}

.search-bar i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.creators-grid {
  display: grid;
  gap: 0.85rem;
  padding: 0.75rem 1rem 6rem;
  max-width: 600px;
  margin: 0 auto;
}

.creator-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.creator-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.creator-rank {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 28px;
  text-align: center;
}

.creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(199, 125, 170, 0.3);
}

.creator-info { flex: 1; min-width: 0; }

.creator-name {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.creator-bio {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-stats {
  display: flex;
  gap: 0.85rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Community ── */
.community-banner {
  margin: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(107, 45, 110, 0.3) 100%);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 16px;
  text-align: center;
}

.community-banner h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.community-banner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.live-rooms {
  padding: 0.5rem 1rem 6rem;
  max-width: 600px;
  margin: 0 auto;
}

.live-room {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
}

.live-room:hover {
  border-color: rgba(199, 125, 170, 0.4);
  box-shadow: var(--glow-pink);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.live-room-info { flex: 1; }

.live-room-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.live-room-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.live-room-type {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(107, 45, 110, 0.4);
  border-radius: 6px;
  color: var(--pink);
}

/* ── Tools ── */
.tools-grid {
  display: grid;
  gap: 1rem;
  padding: 0.75rem 1rem 6rem;
  max-width: 600px;
  margin: 0 auto;
}

.tool-card {
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.tool-card h3 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timer-display {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0;
  animation: timerGlow 3s ease-in-out infinite;
}

@keyframes timerGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(199, 125, 170, 0.5)); }
}

.timer-controls, .tool-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.counter-display {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--pink);
  margin: 0.5rem 0;
}

.hypno-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(107, 45, 110, 0.15) 70%);
}

.hypno-overlay.active {
  opacity: 1;
  animation: hypnoSpin 12s linear infinite;
}

@keyframes hypnoSpin {
  from { transform: rotate(0deg) scale(1.2); }
  to { transform: rotate(360deg) scale(1.2); }
}

.hypno-spiral {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent, rgba(199, 125, 170, 0.08), transparent, rgba(212, 175, 55, 0.06), transparent);
  animation: hypnoSpin 20s linear infinite;
  pointer-events: none;
  opacity: 0;
  z-index: 499;
}

.hypno-spiral.active { opacity: 1; }

.session-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.stat-box {
  text-align: center;
  padding: 0.65rem;
  background: rgba(61, 21, 56, 0.5);
  border-radius: 10px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.wallpaper-preview {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--purple-glow) 50%, var(--burgundy-mid) 100%);
  position: relative;
  overflow: hidden;
}

.wallpaper-preview::after {
  content: '∞';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(199, 125, 170, 0.3);
  animation: logoFloat 4s ease-in-out infinite;
}

/* ── Floating CTAs ── */
.floating-cta {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(26, 10, 31, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow-purple);
  max-width: calc(100% - 2rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.floating-cta::-webkit-scrollbar { display: none; }

.floating-cta .btn {
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Loading Screen ── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--burgundy-deep);
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: min(280px, 85vw);
  height: auto;
  border-radius: 14px;
  animation: logoFloat 3s ease-in-out infinite, logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4)); }
  50% { filter: drop-shadow(0 0 35px rgba(199, 125, 170, 0.6)); }
}

.loading-text {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: textPulse 2s ease-in-out infinite;
}

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 4, 12, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
  animation: overlayFade 0.3s ease;
}

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 85dvh;
  overflow-y: auto;
  background: var(--burgundy);
  border: 1px solid var(--glass-border);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  animation: modalSlide 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalSlide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ── Tag Explorer ── */
.tag-explorer {
  padding: 0.5rem 1rem 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-cloud .tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
}

/* ── AI Policy Banner ── */
.ai-policy {
  margin: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: rgba(107, 45, 110, 0.25);
  border: 1px solid rgba(199, 125, 170, 0.2);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.ai-policy i {
  color: var(--pink);
  margin-top: 0.1rem;
}

.ai-policy strong { color: var(--pink); }

/* ── Account & Auth ── */
.account-content, .mod-content {
  padding: 0.75rem 1rem 6rem;
  max-width: 520px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem;
  background: rgba(61, 21, 56, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-form input,
.auth-form textarea,
.auth-form select {
  padding: 0.75rem 0.9rem;
  background: rgba(61, 21, 56, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
}

.auth-form select option { background: #2d0f2e; }

.checkbox-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem !important;
  font-size: 0.8rem !important;
}

.checkbox-label input { width: auto; margin-top: 0.2rem; }

.auth-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.75rem;
  background: rgba(107, 45, 110, 0.25);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.auth-note i { color: var(--pink); }

.auth-error {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.65rem;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 8px;
}

.auth-msg {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border-radius: 8px;
}

.auth-msg.success { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.auth-msg.error { color: #f87171; background: rgba(248, 113, 113, 0.1); }

.status-card {
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-align: center;
}

.status-card i { font-size: 2rem; margin-bottom: 0.75rem; }
.status-card.pending i { color: var(--gold); }
.status-card.rejected i { color: #f87171; }
.status-card.approved { text-align: left; }
.status-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.status-card .muted { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.my-posts .submission-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  margin-top: 0.5rem;
  background: rgba(61, 21, 56, 0.4);
  border-radius: 8px;
  font-size: 0.82rem;
}

.submission-status {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
}

.status-pending .submission-status { background: rgba(212, 175, 55, 0.2); color: var(--gold); }
.status-approved .submission-status { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.status-rejected .submission-status { background: rgba(248, 113, 113, 0.2); color: #f87171; }

/* ── Moderator Panel ── */
.mod-section { margin-bottom: 1.5rem; }

.mod-section h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.mod-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.65rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.85rem;
}

.mod-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-item.hidden { display: none; }

.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--pink-deep);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item { position: relative; }

.mod-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mod-flagged { border-color: rgba(248, 113, 113, 0.4) !important; }

.slop-badge {
  font-size: 0.7rem;
  color: #fbbf24;
  margin-left: 0.35rem;
}

.slop-flags { margin-top: 0.35rem; }
.slop-flags .tag { font-size: 0.65rem; opacity: 0.8; }

/* ── Policy ── */
.policy-content {
  padding: 0 1rem 6rem;
  max-width: 520px;
  margin: 0 auto;
}

.policy-block {
  padding: 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.policy-block h3 {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.policy-block p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.policy-block a { color: var(--pink); }

/* ── Footer ── */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1rem 5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-footer a, .footer-link {
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
}

.site-footer a:hover, .footer-link:hover { color: var(--gold); }

/* ── Toasts ── */
.toast-root {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: min(90vw, 360px);
}

.toast {
  padding: 0.75rem 1rem;
  background: rgba(45, 15, 46, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: rgba(74, 222, 128, 0.4); color: #4ade80; }
.toast-error { border-color: rgba(248, 113, 113, 0.4); color: #f87171; }
.toast-info { border-color: rgba(212, 175, 55, 0.3); color: var(--gold-light); }

/* ── Studio ── */
.studio-hero {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem;
  margin-bottom: 0.85rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.studio-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  cursor: pointer;
}

.studio-avatar img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: var(--glow-gold);
}

.studio-avatar input { display: none; }

.studio-avatar-edit {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #2a1208;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.studio-id { flex: 1; min-width: 0; }
.studio-id h3 { color: var(--gold); margin-bottom: 0.15rem; }
.studio-bio { font-size: 0.82rem; margin-top: 0.35rem; line-height: 1.4; }

.studio-grid {
  display: grid;
  gap: 0.85rem;
}

.wm-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wm-preview {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: #0a0408;
}

.slide-wm {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  z-index: 4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(232, 197, 71, 0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
  pointer-events: none;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.5);
  box-shadow: var(--glow-gold);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.75rem 0 0.25rem;
}

.profile-tile {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #1a0a1f;
}

.profile-tile img,
.profile-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.submission-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.quota-card { margin-bottom: 0.85rem; }
.quota-inner {
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}
.quota-inner.patron { border-color: rgba(212, 175, 55, 0.45); }
.quota-inner strong { display: block; color: var(--gold); margin-bottom: 0.35rem; }
.quota-inner p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.65rem; }
.quota-inner .btn { margin-right: 0.4rem; margin-top: 0.2rem; }

.patron-pill {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  vertical-align: middle;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0 0 1rem;
}
.profile-links a {
  border: 1px solid var(--glass-border);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--gold-light);
}

.profile-page { padding-bottom: 5rem; }
.profile-hero {
  text-align: center;
  padding: 0.5rem 1.1rem 1.25rem;
}
.profile-hero h2 { color: var(--gold); margin: 0.5rem 0 0.2rem; }

.comment-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 2, 8, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.comment-sheet-inner {
  width: min(520px, 100%);
  max-height: 70dvh;
  background: #1a0a1f;
  border: 1px solid var(--glass-border);
  border-radius: 18px 18px 0 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.comment-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.comment-list { overflow-y: auto; flex: 1; min-height: 120px; }
.comment-row { padding: 0.55rem 0; border-bottom: 1px solid rgba(212,175,55,0.1); font-size: 0.88rem; }
.comment-row strong { color: var(--gold); display: block; font-size: 0.75rem; }
.comment-form { display: flex; gap: 0.4rem; margin-top: 0.75rem; }
.comment-form input {
  flex: 1;
  background: rgba(61,21,56,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--text);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .feed-container, .creators-grid, .live-rooms, .tools-grid {
    max-width: 520px;
  }

  .header { padding: 0.75rem 1.5rem; }
  .nav { justify-content: center; gap: 2rem; padding: 0.6rem; }
  .nav-item { font-size: 0.75rem; min-width: 72px; }
  .floating-cta { bottom: 1.5rem; }
}

@media (min-width: 1024px) {
  .nav { top: 65px; }
  body { display: flex; justify-content: center; }
  #app { max-width: 520px; width: 100%; border-left: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border); }
}

/* Auth header + Google */
.header-auth-btn {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}
.header-actions .btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: inherit;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.google-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.google-setup-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.75;
}
.google-setup-note code {
  font-size: 0.75rem;
}

.hidden { display: none !important; }


/* Feed video playback */
.feed-video,
.slide-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  pointer-events: auto;
}
.feed-video::-webkit-media-controls { display: none !important; }
.tool-card.is-live::after {
  content: "LIVE";
  float: right;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.4);
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

#feed-hud-studio span { font-size: 0.65rem; margin-left: 0.25rem; }
#view-creator.view.active {
  min-height: 70dvh;
  padding-bottom: 4rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1rem;
}
.tag-chip {
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(26,10,31,0.8);
  color: var(--gold-light, #e8c96a);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.tag-chip.active, .tag-chip:hover {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold, #d4af37);
}
.tags-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  padding: 0 1rem 3rem;
}
.tag-result {
  position: relative;
  aspect-ratio: 9/14;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #10060f;
  cursor: pointer;
}
.tag-result video, .tag-result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tag-result span {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 0 1px 3px #000;
}
.tag-textwall {
  padding: 0.75rem;
  color: #f5e6ff;
  font-size: 0.75rem;
  text-align: left;
}
.creator-handle { font-size: 0.8rem; color: var(--text-muted, #aaa); }
#view-creators.view.active, #view-tags.view.active, #view-creator.view.active {
  min-height: 70dvh;
  padding-bottom: 4rem;
}
