:root {
  --black: #000000;
  --white: #ffffff;
  --magenta: #ff0055;
  --magenta-dark: #d60048;
  --magenta-glow: rgba(255, 0, 85, 0.45);
  --premium-surface: rgba(8, 8, 10, 0.82);
  --premium-border: rgba(255, 0, 85, 0.28);
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #121212;
  --glass: rgba(12, 12, 12, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #9ca3af;
  --touch-min: 44px;
  --mobile-gutter: 16px;
  --dl-vh: 1dvh;
  --dl-keyboard-inset: 0px;
  --dock-h: calc(60px + env(safe-area-inset-bottom, 0px));
  --header-h: calc(72px + env(safe-area-inset-top, 0px));
  --reel-h: 100%;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --logo-scale-header: 1;
  --logo-scale-hero: 1;
  --logo-scale-modal: 1;
  --logo-glow: none;
}

* { box-sizing: border-box; }

/* ── Dreamland logo on black (all pages) ── */
.dl-logo-stage {
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #000;
  flex-shrink: 0;
  margin-inline: auto;
}

.dl-logo-stage--header {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin: 0;
}

.dl-logo-stage--hero {
  width: min(72vw, 220px);
  height: min(72vw, 220px);
  margin-bottom: 16px;
}

.dl-logo-stage--modal {
  width: min(60vw, 180px);
  height: min(60vw, 180px);
  margin-bottom: 18px;
}

.dl-logo-stage--feed {
  width: min(50vw, 160px);
  height: min(50vw, 160px);
  margin-bottom: 16px;
}

.dl-logo-stage img,
.dl-logo-stage .dreamland-logo-img {
  width: 100%;
  height: 100%;
  margin: 0;
}

.dreamland-logo-img,
.dl-brand-icon,
.signup-logo,
.modal-logo,
.paywall-logo,
.empty-feed-logo,
.profile-guest-logo,
.ob-logo-full,
.ob-pwa-btn-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  filter: none;
  image-rendering: auto;
}

.dl-brand-icon,
.signup-logo,
.modal-logo,
.paywall-logo,
.empty-feed-logo,
.profile-guest-logo,
.ob-logo-full,
.ob-pwa-btn-logo {
  display: block;
}

.dl-brand-icon {
  transform: none;
}

.signup-logo,
.modal-logo,
.paywall-logo,
.empty-feed-logo,
.profile-guest-logo {
  transform: none;
}

.modal-logo,
.paywall-logo {
  transform: none;
}

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
}

.hidden { display: none !important; }
.dev-local #onboarding { display: none !important; }
.dev-local #app:not(.hidden) { display: flex !important; }
.dev-local .api-status:not([hidden]) {
  display: inline-flex !important;
  visibility: visible !important;
}
.dev-only { display: none !important; }

.ai-powered-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb3cc;
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 0, 85, 0.35);
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.15);
}

.ai-powered-pill::before {
  content: "✦";
  color: var(--magenta);
}

.feed-ai-label {
  margin: 0;
  padding: 0 14px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 0, 85, 0.85);
}

.ai-signup-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.ai-signup-hint--ok {
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.ai-signup-hint--bad {
  border-color: rgba(255, 0, 85, 0.4);
  color: #ffb3cc;
}

.ai-caption-btn {
  margin: 4px 0 12px;
  border: 1px dashed rgba(255, 0, 85, 0.35);
  color: #ffb3cc;
}

.reel-badge--ai {
  top: auto;
  bottom: 120px;
  right: 12px;
  left: auto;
  background: rgba(255, 0, 85, 0.16);
  border-color: rgba(255, 0, 85, 0.35);
  font-size: 0.62rem;
}

.dreamland-body { background: #000; }

[hidden] { display: none !important; }

/* ── App shell ── */
.app-shell {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  height: calc(var(--dl-vh, 1dvh) * 100);
  max-height: 100dvh;
  max-height: calc(var(--dl-vh, 1dvh) * 100);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.app-shell--watch {
  --header-h: calc(48px + env(safe-area-inset-top, 0px));
  --dock-h: calc(56px + env(safe-area-inset-bottom, 0px));
}

.app-shell--watch .dl-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--header-h);
  padding: max(6px, env(safe-area-inset-top)) 10px 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 75%, transparent 100%);
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell--feed-nav .dl-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.app-shell--feed-nav .header-mode-switch {
  flex-shrink: 0;
  margin-left: 2px;
  padding: 0;
  gap: 10px;
  border-radius: 0;
  background: none;
  border: none;
  backdrop-filter: none;
}

.app-shell--feed-nav .dl-header-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.app-shell--feed-nav .dl-header-action {
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  padding: 0;
}

.app-shell--feed-nav .dl-header-action--featured {
  background: rgba(255, 0, 85, 0.16);
  border-color: rgba(255, 0, 85, 0.34);
  box-shadow: 0 0 18px rgba(255, 0, 85, 0.2);
}

.app-shell--feed-nav .api-status,
.app-shell--feed-nav .ai-powered-pill {
  display: none !important;
}

.app-shell--feed-nav .dl-brand-lockup {
  flex-shrink: 0;
}

.app-shell--feed-nav .dl-brand-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(255, 0, 85, 0.12);
}

.app-shell--feed-nav .dl-brand-icon {
  width: 36px;
  height: 36px;
}

.app-shell--feed-nav .header-mode-switch .feed-mode-tab {
  padding: 5px 10px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  border-radius: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.55);
}

.app-shell--feed-nav .header-mode-switch .feed-mode-tab.active {
  color: #fff;
  background: none;
  border-bottom-color: var(--magenta);
}

.app-shell--watch .watch-tabs-row--compact {
  justify-content: center;
  gap: 8px;
  padding: 0 12px 5px;
}

.watch-filter-btn {
  flex: 0 0 auto;
  padding: 6px 4px 5px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  backdrop-filter: none;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.watch-filter-btn--active,
.watch-filter-btn[aria-expanded="true"] {
  color: #fff;
  background: none;
  border-bottom-color: var(--magenta);
}

.genre-filter--collapsed {
  display: none !important;
}

.feed-streak-bar--compact:empty {
  display: none;
}

.feed-streak-bar--compact .streak-panel--inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.feed-streak-bar--compact .streak-inline-count {
  color: var(--magenta);
  font-size: 0.72rem;
}

.app-shell--watch .dl-header::after { display: none; }

.app-shell--watch .dl-brand-lockup {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell--watch .dl-brand-text { display: none; }

.app-shell--page-nav .dl-brand-text,
.app-shell--page-nav .dl-brand-tag {
  display: none;
}

.app-shell--page-nav .dl-brand-lockup {
  padding: 4px 10px 4px 4px;
  gap: 0;
  max-width: 52px;
}

.app-shell--page-nav .dl-brand-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.app-shell--page-nav .dl-brand-icon {
  width: 40px;
  height: 40px;
}

.app-shell--page-nav .dl-header {
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  min-height: calc(52px + env(safe-area-inset-top, 0px));
}

.app-shell--page-nav .dl-header-left {
  flex: 0 0 auto;
}

.app-shell--page-nav .dl-header-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.app-shell--watch .dl-brand-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(255, 0, 85, 0.12);
}

.app-shell--watch .dl-brand-icon {
  width: 36px;
  height: 36px;
}

.app-shell--watch .dl-icon-btn,
.app-shell--watch .dl-notif-btn,
.app-shell--watch .dl-avatar-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  font-size: 0.82rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.app-shell--watch .ai-powered-pill { display: none !important; }

.app-shell--watch .view-feed.active {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
}

.app-shell--watch .reels-feed.feed-mode-panel--active {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
}

.app-shell--watch .reel {
  height: calc(var(--dl-vh, 1dvh) * 100);
  min-height: calc(var(--dl-vh, 1dvh) * 100);
}

.app-shell--watch .watch-chrome {
  position: absolute;
  top: calc(var(--header-h) + 2px);
  left: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
}

.app-shell--watch .watch-chrome > * { pointer-events: auto; }

.app-shell--watch .watch-tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 10px 4px;
}

.app-shell--watch .feed-source-tabs,
.app-shell--watch .feed-mode-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 0;
  position: static;
  background: none;
}

.app-shell--watch .feed-source-tab,
.app-shell--watch .feed-mode-tab {
  flex: 0 0 auto;
  padding: 6px 4px 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  backdrop-filter: none;
  color: rgba(255, 255, 255, 0.48);
}

.app-shell--watch .feed-source-tab.active,
.app-shell--watch .feed-mode-tab.active {
  color: #fff;
  background: none;
  border-bottom-color: var(--magenta);
  box-shadow: 0 6px 16px rgba(255, 0, 85, 0.12);
}

.app-shell--watch .feed-streak-bar {
  padding: 0 10px 4px;
  text-align: center;
}

.app-shell--watch .feed-streak-bar .streak-panel {
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.app-shell--watch .feed-streak-bar .streak-panel h3 {
  font-size: 0.95rem;
  margin: 0;
}

.app-shell--watch .feed-streak-bar .streak-panel p,
.app-shell--watch .feed-streak-bar .streak-panel .eyebrow {
  font-size: 0.62rem;
  margin: 0;
}

.app-shell--watch .feed-ai-label { display: none; }

.app-shell--watch .genre-filter {
  padding: 0 10px 2px;
  gap: 4px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.app-shell--watch .genre-chip {
  padding: 4px 9px;
  font-size: 0.58rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-shell--watch .reel-exclusive-tag {
  top: calc(var(--header-h) + 42px);
  left: 12px;
}

.app-shell--watch .reel-preview-progress {
  top: calc(var(--header-h) + 38px);
  left: 12px;
  right: 12px;
  height: 2px;
}

.app-shell--watch .reel-premium-foot {
  padding: 7px 10px;
  gap: 8px;
  margin-top: 4px;
}

.app-shell--watch .reel-premium-foot__text {
  font-size: 0.62rem;
}

.app-shell--watch .reel-unlock-card {
  margin: 0 10px;
  padding: 12px 14px;
  gap: 10px;
}

.app-shell--watch .reel-unlock-card__crest {
  width: 34px;
  height: 34px;
  font-size: 0.72rem;
}

.app-shell--watch .reel-badge {
  top: calc(var(--header-h) + 34px);
  left: 12px;
  padding: 4px 10px;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.app-shell--watch .reel-badge--ai { top: calc(var(--header-h) + 58px); }

.app-shell--watch .reel-stage-foot {
  left: 0;
  right: 0;
  bottom: calc(var(--dock-h) + 4px);
  padding: 0 10px 6px;
}

.app-shell--watch .reel-info {
  position: static;
  right: auto;
  bottom: auto;
  padding: 0;
  max-width: none;
}

.app-shell--watch .reel-creator { gap: 10px; margin-bottom: 5px; }

.app-shell--watch .reel-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.64rem;
  border: 1px solid rgba(255, 0, 85, 0.35);
  box-shadow: 0 0 16px rgba(255, 0, 85, 0.15);
}

.app-shell--watch .reel-creator-name { font-size: 0.78rem; }

.app-shell--watch .reel-creator-badge {
  font-size: 0.48rem;
}

.app-shell--watch .reel-title {
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.app-shell--watch .reel-desc {
  font-size: 0.7rem;
  -webkit-line-clamp: 1;
  opacity: 0.88;
}

.app-shell--watch .reel-rail--lux {
  position: static;
  right: auto;
  bottom: auto;
  margin-top: 10px;
  gap: 6px;
}

.app-shell--watch .rail-btn--lux {
  min-width: 0;
  flex: 1 1 0;
  gap: 4px;
}

.app-shell--watch .rail-btn--lux svg {
  width: 15px;
  height: 15px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.app-shell--watch .rail-btn--lux .rail-count,
.app-shell--watch .rail-btn--lux .rail-label {
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1;
}

.app-shell--watch .rail-btn--lux.rail-btn--unlock svg {
  border-color: rgba(255, 0, 85, 0.45);
  background: rgba(255, 0, 85, 0.1);
}

.app-shell--watch .rail-btn--lux.rail-btn--unlock .rail-count {
  color: var(--magenta);
  opacity: 1;
}

.app-shell--watch .dl-dock {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 38%, rgba(5, 5, 5, 0.98) 100%);
  border-top-color: rgba(255, 0, 85, 0.12);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.app-shell--watch .dock-item {
  padding: 4px 2px 2px;
  gap: 3px;
}

.app-shell--watch .dock-item svg {
  width: 19px;
  height: 19px;
}

.app-shell--watch .dock-item span {
  font-size: 0.5rem;
  letter-spacing: 0.05em;
}

.app-shell--watch .dock-item--create svg {
  width: 18px;
  height: 18px;
  padding: 5px;
}

.app-shell--watch .reel-badge--ai { display: none; }

.app-shell--watch .reel-badge:not(.reel-badge--premium) {
  opacity: 0.72;
  transform: scale(0.92);
  transform-origin: left top;
}

.app-shell--live-mode .reel-badge--ai { display: none; }

.app-shell--watch .reel-gradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    transparent 18%,
    transparent 55%,
    rgba(0, 0, 0, 0.55) 82%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.app-shell--watch .heart-burst {
  font-size: 3rem;
}

.app-shell:not(.app-shell--watch) .dl-header {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.dl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  min-height: var(--header-h);
}

.dl-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.feed-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  flex-shrink: 0;
}

.feed-back-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.header-mode-switch .feed-mode-tab {
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
}

.header-mode-switch .feed-mode-tab.active {
  color: #000;
  background: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-mode-switch .feed-mode-tab--live.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.72), rgba(255, 0, 85, 0.38));
  border-color: rgba(255, 0, 85, 0.65);
  box-shadow:
    0 0 22px rgba(255, 0, 85, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.header-mode-switch .feed-mode-tab--live:not(.active) {
  animation: live-tab-pulse 2.4s ease-in-out infinite;
}

@keyframes live-tab-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.header-mode-switch .feed-mode-tab--live .live-dot {
  width: 7px;
  height: 7px;
}

.dl-icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dl-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-notif-btn svg path:first-child { fill: currentColor; stroke: none; }

.dl-avatar-btn svg {
  fill: none;
}

.dl-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app-shell--feed-nav .dl-header-actions {
  gap: 4px;
}

.app-shell--feed-nav .dl-icon-btn,
.app-shell--feed-nav .dl-notif-btn,
.app-shell--feed-nav .dl-avatar-btn {
  width: 36px;
  height: 36px;
}

.app-shell--live-mode .dl-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: calc(52px + env(safe-area-inset-top, 0px));
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.app-shell--live-mode .dl-header::after { display: none; }

.app-shell--live-mode .live-feed.feed-mode-panel--active {
  position: relative;
  z-index: 2;
  padding: 12px 12px calc(var(--dock-h) + 12px);
  overflow-y: auto;
  background: #050505;
}

.live-hub-head {
  padding: 4px 4px 14px;
}

.live-hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.live-hub-title {
  margin: 6px 0 4px;
  font-size: 1.2rem;
}

.live-hub-sub {
  margin: 0;
  font-size: 0.78rem;
}

.live-cards {
  display: grid;
  gap: 12px;
}

.dl-header-brand,
.dl-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  padding: 6px 14px 6px 6px;
  border-radius: 18px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 38%,
    rgba(12, 12, 12, 0.55) 100%
  );
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(255, 0, 85, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.03);
  transform: translateY(0);
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.dl-brand-lockup:hover {
  border-color: rgba(255, 0, 85, 0.28);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 4px 14px rgba(255, 0, 85, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.dl-brand-lockup:active {
  transform: translateY(1px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dl-brand-icon-wrap {
  flex-shrink: 0;
  width: min(34vw, 128px);
  height: 40px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.dl-brand-icon {
  display: block;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: contain;
}

.app-shell--feed-nav .dl-brand-name {
  display: none;
}

.dl-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dl-brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 -1px 0 rgba(0, 0, 0, 0.85),
    0 3px 10px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(255, 0, 85, 0.22);
}

.dl-brand-tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 0, 85, 0.95);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 -1px 0 rgba(0, 0, 0, 0.6);
}

.app-shell:not(.app-shell--watch) .dl-brand-icon-wrap {
  width: 58px;
  height: 58px;
}

.app-shell:not(.app-shell--watch) .dl-brand-icon {
  width: 58px;
  height: 58px;
}

.app-shell:not(.app-shell--watch) .dl-brand-name {
  font-size: 1.05rem;
}

.dl-header-actions { display: flex; align-items: center; gap: 8px; }

.dl-avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 85, 0.5);
  background: rgba(255, 0, 85, 0.12);
  backdrop-filter: blur(12px);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-avatar-btn:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 20px var(--magenta-glow);
}

.dl-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.view {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.view.active {
  display: flex;
  flex-direction: column;
}

.view-feed.active {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── Full-screen reels feed ── */
.reels-feed {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  background: #000;
}

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

.reel {
  position: relative;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}

.reel-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  background: #111;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.reel-poster--hidden {
  opacity: 0;
}

.reels-feed--virtual .reel {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.reels-v-spacer {
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}

.reel-play-toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reel-play-toggle__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  padding: 18px;
  border-radius: 50%;
  fill: #fff;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.reel-play-toggle__icon--play {
  display: none;
}

.reel--user-paused.reel--active .reel-play-toggle__icon--pause {
  display: none;
}

.reel--user-paused.reel--active .reel-play-toggle__icon--play {
  display: block;
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(1);
}

.reel--show-play-icon:not(.reel--user-paused) .reel-play-toggle__icon--pause {
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(1);
}

.reel--show-play-icon.reel--user-paused .reel-play-toggle__icon--play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reel-video-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 1;
}

.reel-video-backdrop {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  filter: blur(26px) brightness(0.42) saturate(1.15);
  transform: scale(1.08);
  pointer-events: none;
  z-index: 0;
}

.reel--landscape .reel-video-main {
  object-fit: contain;
  object-position: center;
}

.reel--portrait .reel-video-main {
  object-fit: cover;
  object-position: center;
}

.reel--square .reel-video-main {
  object-fit: cover;
  object-position: center;
}

.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.reel-video-error {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  max-width: min(88%, 320px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.reel--video-error .reel-video-main,
.reel--video-error .reel-video {
  opacity: 0.35;
}

.app-shell--watch .reel-video-main,
.app-shell--watch .reel-video {
  pointer-events: auto;
}

.reel-sound-hint {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 6;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.reel-sound-hint[hidden] {
  display: none !important;
}

.reel-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  box-shadow:
    inset 0 0 120px rgba(0, 0, 0, 0.55),
    inset 0 -120px 100px rgba(0, 0, 0, 0.65);
}

.app-shell--watch .reel-vignette {
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.45),
    inset 0 -160px 120px rgba(0, 0, 0, 0.78),
    inset 0 0 0 1px rgba(255, 0, 85, 0.06);
}

.reel--locked.reel--preview-ended .reel-vignette {
  box-shadow:
    inset 0 48px 80px rgba(0, 0, 0, 0.65),
    inset 0 -180px 140px rgba(0, 0, 0, 0.92),
    inset 0 0 0 1px rgba(255, 0, 85, 0.12);
}

.reel--locked .reel-video-main,
.reel--locked .reel-video {
  transition: filter 0.55s ease, transform 0.55s ease;
}

.reel--locked.reel--preview-ended .reel-video-main,
.reel--locked.reel--preview-ended .reel-video {
  filter: blur(18px) brightness(0.35);
  transform: scale(1.05);
}

.reel--locked.reel--previewing .reel-unlock,
.reel--locked.reel--previewing .rail-btn--unlock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.reel--locked.reel--preview-ended .reel-unlock,
.reel--locked.reel--preview-ended .rail-btn--unlock {
  visibility: visible;
  pointer-events: auto;
}

.reel--locked.reel--preview-ended .reel-unlock {
  animation: reel-unlock-in 0.5s ease forwards;
}

.reel--locked.reel--preview-ended .reel-unlock--sheet {
  animation: reel-unlock-sheet-in 0.45s ease forwards;
}

@keyframes reel-unlock-sheet-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reel--locked.reel--preview-ended .rail-btn--unlock {
  animation: reel-rail-unlock-in 0.45s ease 0.12s forwards;
  opacity: 0;
}

.reel--locked.reel--preview-ended .reel-exclusive-tag {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reel-preview-progress {
  position: absolute;
  top: calc(var(--header-h, 48px) + 38px);
  left: 12px;
  right: 12px;
  z-index: 8;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  pointer-events: none;
}

.reel-preview-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--magenta-dark), var(--magenta));
  box-shadow: 0 0 14px var(--magenta-glow);
  transition: width 0.15s linear;
}

.reel--locked.reel--preview-ended .reel-preview-progress {
  opacity: 0;
}

.reel-exclusive-tag {
  position: absolute;
  top: calc(var(--header-h, 48px) + 46px);
  left: 12px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border-radius: 14px;
  pointer-events: none;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.reel-exclusive-tag__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 0.55rem;
  color: var(--magenta);
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.35);
  text-shadow: 0 0 12px var(--magenta-glow);
}

.reel-exclusive-tag__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.reel-exclusive-tag__label {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.reel-exclusive-tag__meta {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.reel-premium-stack {
  position: absolute;
  top: calc(var(--header-h, 48px) + 46px);
  left: 12px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 148px;
  pointer-events: none;
}

.reel-premium-stack__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.reel-premium-stack__row--preview {
  border-color: rgba(255, 0, 85, 0.28);
}

.reel-premium-stack__row--price {
  color: #ffb3cc;
  border-color: rgba(255, 0, 85, 0.38);
  background: rgba(255, 0, 85, 0.12);
}

.reel-premium-stack__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta-glow);
  animation: premium-pulse 1.4s ease-in-out infinite;
}

@keyframes premium-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.reel-premium-stack__lock {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.reel-preview-count {
  color: #fff;
  min-width: 1ch;
  font-size: 0.72rem;
}

.reel-premium-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--premium-border);
  backdrop-filter: blur(10px);
}

.reel-premium-foot__chip {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dark) 100%);
  box-shadow: 0 0 14px var(--magenta-glow);
}

.reel-premium-foot__text {
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none;
}

.reel-badge--unlocked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9ef0c9;
  border-color: rgba(46, 213, 115, 0.35);
  background: rgba(46, 213, 115, 0.12);
}

.reel-badge--unlocked svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes reel-unlock-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes reel-rail-unlock-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.06) 16%,
    transparent 40%,
    transparent 48%,
    rgba(0, 0, 0, 0.62) 72%,
    rgba(0, 0, 0, 0.96) 100%
  );
  pointer-events: none;
}

.reel-stage-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--dock-h) + 8px);
  z-index: 6;
  padding: 0 14px 8px;
  pointer-events: none;
}

.reel-stage-foot .reel-info,
.reel-stage-foot .reel-rail {
  pointer-events: auto;
}

.reel-creator-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reel-creator-badge {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 0, 85, 0.78);
}

.reel-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 6;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.reel-badge--premium {
  color: var(--magenta);
  border-color: rgba(255, 0, 85, 0.35);
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
}

.reel-info {
  position: absolute;
  left: 0;
  right: 80px;
  bottom: calc(var(--dock-h) + 12px);
  padding: 0 16px;
  z-index: 5;
  pointer-events: none;
}

.reel-stage-foot .reel-info {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 0;
}

.reel-info .reel-creator,
.reel-info .reel-title,
.reel-info .reel-desc,
.reel-info .reel-premium-foot {
  pointer-events: auto;
}

.reel-creator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.reel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), #fff);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #000;
}

.reel-creator-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.reel-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.015em;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.reel-desc {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
}

.reel-rail {
  position: absolute;
  right: 10px;
  bottom: calc(var(--dock-h) + 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 6;
}

.reel-rail--lux {
  position: static;
  right: auto;
  bottom: auto;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.rail-btn--lux {
  min-width: 0;
  flex: 1 1 0;
  gap: 5px;
}

.rail-btn--lux svg {
  width: 18px;
  height: 18px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.rail-btn--lux .rail-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
}

.rail-btn--lux.rail-btn--liked svg {
  fill: var(--magenta);
  stroke: var(--magenta);
  border-color: rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.12);
}

.rail-btn--lux.rail-btn--unlock svg {
  stroke: var(--magenta);
  border-color: rgba(255, 0, 85, 0.4);
  background: rgba(255, 0, 85, 0.1);
  box-shadow: 0 0 16px var(--magenta-glow);
}

.rail-btn--lux.rail-btn--unlock .rail-count {
  color: var(--magenta);
  font-weight: 800;
}

.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  min-width: 52px;
}

.rail-btn svg {
  width: 24px;
  height: 24px;
  padding: 12px;
  box-sizing: content-box;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}

.rail-btn:active svg {
  transform: scale(0.94);
}

.rail-btn span {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.9;
}

.rail-btn--unlock svg {
  stroke: var(--magenta);
  border-color: rgba(255, 0, 85, 0.45);
  background: rgba(255, 0, 85, 0.16);
  box-shadow: 0 0 18px rgba(255, 0, 85, 0.32);
}

.rail-btn--unlock .rail-count {
  color: var(--magenta);
  font-weight: 800;
}

.reel-unlock--sheet {
  justify-content: flex-end;
  align-items: stretch;
  padding: 0 0 calc(var(--dock-h) + 6px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0.88) 100%);
}

.reel-unlock--sheet::before {
  display: none;
}

.reel-unlock-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 10px;
  padding: 14px 14px 14px 16px;
  border-radius: 20px 20px 16px 16px;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.94) 0%, rgba(8, 8, 10, 0.98) 100%);
  border: 1px solid var(--premium-border);
  border-top: 2px solid rgba(255, 0, 85, 0.55);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: auto;
}

.reel-unlock-card__crest {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: var(--magenta);
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.38);
  box-shadow: 0 0 20px var(--magenta-glow);
}

.reel-unlock-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 0, 85, 0.14);
  border: 1px solid rgba(255, 0, 85, 0.32);
}

.reel-unlock-card__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--magenta);
  stroke-width: 2;
}

.reel-unlock-card__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.reel-unlock-card__title {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.reel-unlock-card__sub {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-unlock--sheet .reel-unlock-cta {
  margin: 0;
  padding: 10px 16px;
  min-width: 86px;
  border-radius: 14px;
  flex-direction: column;
  gap: 1px;
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.95) 0%, rgba(180, 0, 58, 0.95) 100%);
  border: 1px solid rgba(255, 0, 85, 0.22);
  box-shadow:
    0 8px 24px rgba(255, 0, 85, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.reel-unlock--sheet .reel-unlock-cta strong {
  font-size: 0.78rem;
}

.reel-unlock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  z-index: 8;
  text-align: center;
  pointer-events: none;
}

.reel-unlock .btn-primary,
.reel-unlock .reel-unlock-lock {
  pointer-events: auto;
}

.reel-unlock-lock {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid rgba(255, 0, 85, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 0 40px var(--magenta-glow);
}

.reel-unlock--glass {
  gap: 10px;
  padding: 24px 20px;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(0, 0, 0, 0.62) 0%, transparent 72%);
}

.reel-unlock--glass::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(280px, 86vw);
  transform: translate(-50%, -50%);
  aspect-ratio: 1.15;
  border-radius: 22px;
  background: rgba(10, 10, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: -1;
}

.reel-unlock-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 0, 85, 0.14);
  border: 1px solid rgba(255, 0, 85, 0.38);
  box-shadow: 0 0 28px rgba(255, 0, 85, 0.28);
}

.reel-unlock-ring svg {
  width: 20px;
  height: 20px;
  stroke: var(--magenta);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reel-unlock-eyebrow {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.reel-unlock-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 4px;
  padding: 11px 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dark) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255, 0, 85, 0.42);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reel-unlock-cta:active {
  transform: scale(0.97);
  box-shadow: 0 4px 16px rgba(255, 0, 85, 0.35);
}

.reel-unlock-cta strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.reel-unlock-lede {
  margin: 0;
  max-width: 240px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.reel-unlock--glass .reel-unlock-lede {
  max-width: 220px;
  font-size: 0.72rem;
}

/* ── Dreamland stage dock (in-app footer, not TikTok-style floating pill) ── */
.dl-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  min-height: var(--dock-h);
  padding: 6px 2px max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 5, 5, 0.92) 36%, #050505 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px) saturate(1.2);
}

.dl-dock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 85, 0.55) 50%, transparent);
  pointer-events: none;
}

.dock-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 48px;
  min-width: 0;
  padding: 2px 1px 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  border-radius: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, transform 0.15s ease;
  justify-self: stretch;
  width: 100%;
}

.dock-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.dock-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dock-icon--logo {
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dock-icon--logo img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.dock-label {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1px;
}

.dock-item svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dock-item span {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.dock-item--create {
  justify-self: stretch;
  align-self: end;
  max-width: none;
  padding: 2px 1px 4px;
  gap: 3px;
  color: rgba(255, 255, 255, 0.46);
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.dock-item--create .dock-label {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.dock-item--create .dock-icon--create svg {
  width: 18px;
  height: 18px;
  padding: 5px;
  box-sizing: content-box;
  border-radius: 50%;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  background: linear-gradient(145deg, #ff1a5c 0%, #c80042 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(255, 0, 85, 0.35);
}

.dock-item--create.active {
  color: #fff;
}

.dock-item--create.active span {
  color: #fff;
}

.dock-item--create.active::after {
  display: block;
  bottom: 4px;
}

.dock-item--create:active {
  transform: scale(0.96);
}

.dock-item:not(.dock-item--create):active {
  transform: scale(0.96);
}

.dock-item.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.dock-item.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta-glow);
}

.dock-item.active::before {
  display: none;
}

.dock-item.active .dock-icon svg {
  color: var(--magenta);
  transform: translateY(-1px);
}

.dock-item.active .dock-label,
.dock-item.active span {
  color: rgba(255, 255, 255, 0.92);
}

.dock-item--home.active .dock-icon--logo {
  border-color: rgba(255, 0, 85, 0.55);
  box-shadow: 0 0 14px rgba(255, 0, 85, 0.35);
}

.dock-item--create.active svg {
  color: #fff;
  transform: none;
  stroke: #fff;
}

/* ── Secondary views (scrollable pages) ── */
.view-play,
.view-wallet,
.view-profile,
.view-viewer,
.view-creator,
.view-signup {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 0 var(--mobile-gutter) calc(var(--dock-h) + 24px + var(--dl-keyboard-inset, 0px));
  scroll-padding-bottom: calc(var(--dock-h) + 20px + var(--dl-keyboard-inset, 0px));
}

/* Account scrolls inside .account-shell (flex child) — more reliable on iOS/PWA */
.view.view-account.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  min-height: 0;
}

.view-account .account-shell {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 4px var(--mobile-gutter) calc(var(--dock-h) + 36px + var(--dl-keyboard-inset, 0px));
  scroll-padding-bottom: calc(var(--dock-h) + 28px + var(--dl-keyboard-inset, 0px));
}

.view-play .page-hero,
.view-wallet .page-hero,
.view-profile .profile-shell,
.view-viewer .viewer-shell,
.view-creator .creator-shell {
  padding-top: 4px;
}

.page-hero {
  padding: 8px 0 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
}

.eyebrow.center { text-align: center; }

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  padding: 20px;
}

.balance-card {
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(255, 0, 85, 0.15), rgba(0, 0, 0, 0.4));
  border-color: rgba(255, 0, 85, 0.25);
}

.balance-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.balance-value {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0 4px;
  background: linear-gradient(135deg, #fff, var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.balance-unit {
  font-size: 0.85rem;
  color: var(--muted);
}

.package-grid {
  display: grid;
  gap: 12px;
}

.package-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.package-card:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 24px rgba(255, 0, 85, 0.15);
  transform: translateY(-1px);
}

.package-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.package-card .pkg-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--magenta);
  white-space: nowrap;
}

.play-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.game-frame {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
}

.spin-panel { margin-top: 8px; }

.spin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.spin-panel-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chip {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 0, 85, 0.15);
  color: var(--magenta);
  border: 1px solid rgba(255, 0, 85, 0.3);
}

.premium-wheel {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #000;
  cursor: pointer;
  background: conic-gradient(from 0deg, var(--magenta) 0 25%, #fff 25% 50%, var(--magenta) 50% 75%, #fff 75% 100%);
  box-shadow: 0 0 40px var(--magenta-glow);
  transition: transform 0.2s;
}

.premium-wheel:active { transform: scale(0.96); }

.spin-result { text-align: center; margin: 0; }

/* ── Profile ── */
.profile-shell { padding-top: 8px; }

.profile-hero {
  text-align: center;
  padding: 28px 20px;
  margin-bottom: 16px;
}

.profile-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--magenta), #fff);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #000;
  box-shadow: 0 0 40px var(--magenta-glow);
}

.profile-hero h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stat {
  padding: 14px 8px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--magenta);
}

.stat span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-guest {
  text-align: center;
  padding: 48px 24px;
}

.profile-guest .btn-primary { margin-top: 20px; }

/* ── Creator studio dashboard ── */
.creator-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 12px;
}

.studio-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 18px;
  background:
    linear-gradient(160deg, rgba(255, 0, 85, 0.12) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(10, 10, 10, 0.92) 100%);
  border-color: rgba(255, 0, 85, 0.22);
}

.studio-hero__glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 0, 85, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.studio-hero__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.creator-hero-top.viewer-hero__head,
.viewer-hero__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-refresh-btn {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}

.feed-pull-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 18, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, calc(-100% + var(--pull-y, 0px)));
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.feed-pull-indicator--ready {
  border-color: rgba(255, 0, 85, 0.45);
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.25);
}

.feed-pull-indicator__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--magenta, #ff0055);
  opacity: calc(0.35 + var(--pull-progress, 0) * 0.65);
  transform: rotate(calc(var(--pull-progress, 0) * 540deg));
}

.feed-pull-indicator--loading .feed-pull-indicator__spinner {
  opacity: 1;
  animation: feed-pull-spin 0.75s linear infinite;
}

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

.feed-pull-indicator__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.studio-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.studio-avatar {
  width: 72px;
  height: 72px;
  margin: 0;
  font-size: 1.65rem;
  border: 2px solid rgba(255, 0, 85, 0.45);
  box-shadow: 0 0 28px var(--magenta-glow);
}

.studio-live-pill {
  position: absolute;
  right: -6px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 0, 85, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 16px var(--magenta-glow);
}

.studio-hero__copy {
  min-width: 0;
}

.studio-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.28);
}

.studio-hero__copy h2 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.studio-handle {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.studio-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.studio-stat {
  padding: 12px 6px;
  border-radius: 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.studio-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.studio-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.studio-stat--accent strong {
  color: var(--magenta);
  text-shadow: 0 0 18px var(--magenta-glow);
}

.studio-live-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-color: rgba(255, 0, 85, 0.35);
  background: linear-gradient(145deg, rgba(255, 0, 85, 0.14), rgba(0, 0, 0, 0.45));
  cursor: pointer;
}

.studio-live-banner__cta {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magenta);
  white-space: nowrap;
}

.studio-live-banner__copy strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.studio-live-banner__copy p {
  margin: 0;
  font-size: 0.78rem;
}

.studio-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.studio-tabs::-webkit-scrollbar { display: none; }

.studio-tab--accent {
  color: var(--magenta);
  border-color: rgba(255, 0, 85, 0.35);
}

.studio-edit-preview {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: min(52dvh, 360px);
  margin: 0 auto 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-edit-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.studio-edit-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16%;
  z-index: 2;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.studio-edit-trim {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-edit-trim__labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.studio-edit-trim__field {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.studio-edit-trim__field input[type="range"] {
  width: 100%;
  accent-color: var(--magenta);
}

.studio-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 8px;
  position: sticky;
  bottom: calc(var(--dl-keyboard-inset, 0px) + 4px);
  z-index: 3;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.92) 28%);
}

.studio-edit-actions__btn {
  min-height: 48px;
}

.studio-edit-status {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.studio-edit-status--error {
  color: #fbbf24;
}

.studio-panel--premium-edit {
  border-color: rgba(255, 0, 85, 0.22);
  box-shadow: 0 0 32px rgba(255, 0, 85, 0.08);
}

.studio-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.95), rgba(160, 0, 72, 0.95));
  box-shadow: 0 0 16px var(--magenta-glow);
}

.studio-edit-premium-block {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 0, 85, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 0, 85, 0.18);
}

.studio-edit-block-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.studio-edit-block-head strong {
  display: block;
  font-size: 0.92rem;
}

.studio-edit-block-head p {
  margin: 4px 0 0;
  font-size: 0.72rem;
}

.studio-edit-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--magenta);
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.24);
}

.studio-switch--compact {
  margin: 0;
}

.studio-edit-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.studio-edit-slider span {
  grid-column: 1 / -1;
}

.studio-edit-slider input[type="range"] {
  grid-column: 1;
  width: 100%;
  accent-color: var(--magenta);
}

.studio-edit-slider output {
  min-width: 42px;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.studio-edit-music-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-edit-music-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.studio-edit-music-name {
  margin: 0;
  font-size: 0.74rem;
  word-break: break-word;
}

.studio-edit-tool-row {
  display: grid;
  gap: 8px;
}

.studio-edit-tool-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.studio-edit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-edit-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.studio-edit-chip--active {
  color: #fff;
  border-color: rgba(255, 0, 85, 0.55);
  background: rgba(255, 0, 85, 0.2);
  box-shadow: 0 0 14px rgba(255, 0, 85, 0.18);
}

.studio-edit-overlay--top {
  top: 14%;
  bottom: auto;
}

.studio-edit-overlay--center {
  top: auto;
  bottom: 16%;
}

.studio-edit-overlay--bottom {
  top: auto;
  bottom: 8%;
}

.studio-tab {
  flex: 0 0 auto;
  min-width: max(72px, 22%);
  min-height: var(--touch-min);
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-snap-align: start;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.studio-tab--active {
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 0, 85, 0.28), rgba(255, 0, 85, 0.12));
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.18);
}

.studio-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
}

.studio-panel--active {
  display: flex;
}

.studio-panel-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.studio-panel-head p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.studio-field {
  display: block;
}

.studio-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.studio-input,
.studio-textarea,
.studio-select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.45;
}

.studio-input:focus,
.studio-textarea:focus,
.studio-select:focus {
  outline: none;
  border-color: rgba(255, 0, 85, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 0, 85, 0.12);
}

.studio-select-wrap {
  position: relative;
}

.studio-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.studio-select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.studio-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.studio-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.studio-switch__track {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.studio-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.studio-switch input:checked + .studio-switch__track {
  background: rgba(255, 0, 85, 0.35);
  border-color: rgba(255, 0, 85, 0.55);
}

.studio-switch input:checked + .studio-switch__track::after {
  transform: translateX(18px);
  background: var(--magenta);
}

.studio-switch__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.studio-switch__label small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.studio-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.studio-file:hover {
  border-color: rgba(255, 0, 85, 0.55);
  background: rgba(255, 0, 85, 0.1);
}

.studio-file__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 0, 85, 0.14);
  border: 1px solid rgba(255, 0, 85, 0.28);
  color: var(--magenta);
}

.studio-file__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studio-file__copy {
  min-width: 0;
}

.studio-file__name {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.studio-file__copy small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.studio-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.08);
  color: #ffb3cc;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.studio-ai-btn:hover {
  background: rgba(255, 0, 85, 0.14);
  border-color: rgba(255, 0, 85, 0.5);
}

.studio-ai-btn__icon {
  color: var(--magenta);
}

.studio-cta {
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.studio-preview-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
}

.studio-preview-frame--live {
  border-color: rgba(255, 0, 85, 0.28);
  box-shadow: inset 0 0 40px rgba(255, 0, 85, 0.08);
}

.studio-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 300px;
  object-fit: cover;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.studio-preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.studio-preview-frame--ready .studio-preview-placeholder {
  opacity: 0;
}

.studio-action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.studio-action-row--dual {
  grid-template-columns: 1fr 1fr;
}

.studio-action-btn {
  min-height: 44px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.studio-action-btn--wide {
  padding-inline: 12px;
}

.studio-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.studio-quick-btn {
  min-height: 44px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.studio-library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.studio-library-head h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.studio-reel-grid {
  display: grid;
  gap: 12px;
}

.studio-reel-card {
  padding: 16px 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.studio-reel-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.studio-reel-card__top h4 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 600;
}

.studio-reel-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.studio-reel-badge--premium {
  color: var(--magenta);
  border-color: rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.1);
}

.studio-reel-badge--pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

.studio-reel-badge--rejected {
  color: #ff6b81;
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.12);
}

.studio-reel-card--rejected {
  border-color: rgba(255, 77, 109, 0.22);
}

.studio-reel-reject-box {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.18);
}

.studio-reel-reject-reason {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.studio-reel-appeal-field {
  margin-bottom: 8px;
}

.studio-reel-appeal-status {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #fbbf24;
}

.studio-reel-reject-box .btn-primary,
.studio-reel-reject-box .btn-ghost {
  margin-top: 6px;
  margin-right: 8px;
}

.studio-reel-desc {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.studio-reel-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.48);
}

.studio-reel-earn {
  color: var(--magenta);
  font-weight: 700;
}

.studio-empty {
  text-align: center;
  padding: 28px 20px;
}

.studio-guest,
.studio-loading {
  text-align: center;
  padding: 40px 24px;
}

.studio-guest h2,
.studio-loading h2 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
}

.studio-guest .btn-ghost {
  margin-top: 10px;
}

.creator-hero {
  padding: 20px;
}

.creator-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.creator-hero-top h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.creator-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.creator-stats .stat {
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.creator-stats .stat-accent strong {
  background: linear-gradient(135deg, #fff, var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.creator-balance.inset-card {
  text-align: center;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 0, 85, 0.12), rgba(0, 0, 0, 0.35));
  border-color: rgba(255, 0, 85, 0.22);
}

.creator-balance .balance-value {
  font-size: 2rem;
}

.creator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.creator-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.creator-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.creator-reel-list {
  display: grid;
  gap: 12px;
}

.creator-reel-card {
  padding: 16px 18px;
}

.creator-reel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.creator-reel-head h4 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.creator-reel-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
}

.creator-reel-badge--premium {
  color: var(--magenta);
  border-color: rgba(255, 0, 85, 0.35);
}

.creator-reel-desc {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.creator-reel-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.72rem;
  color: var(--muted);
}

.creator-metric-earn {
  color: var(--magenta);
  font-weight: 700;
}

.creator-empty,
.creator-loading {
  text-align: center;
  padding: 28px 20px;
}

.creator-loading h2 {
  margin: 8px 0 0;
  font-size: 1.1rem;
}

.viewer-shell,
.viewer-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viewer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.viewer-hero {
  padding: 20px;
}

.creator-tool {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creator-tool h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.studio-preview {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  background: #111;
  border: 1px solid var(--glass-border);
}

.creator-tool-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.toggle-row input {
  accent-color: var(--magenta);
}

.live-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-color: rgba(255, 0, 85, 0.35);
  background: linear-gradient(145deg, rgba(255, 0, 85, 0.16), rgba(0, 0, 0, 0.4));
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta-glow);
  animation: live-pulse 1.2s ease infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  color: var(--white);
  border-color: rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.12);
}

.auth-account-type {
  border: 0;
  padding: 0;
  margin: 0;
}

.auth-account-type legend {
  display: none;
}

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

/* ── Premium role picker ── */
.role-picker-premium {
  margin: 4px 0 18px;
  padding: 18px 16px 16px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 0, 85, 0.08) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(255, 0, 85, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 0, 85, 0.08);
}

.role-picker-premium--compact {
  margin-top: 0;
  padding: 14px 12px 12px;
}

.role-picker-grid {
  display: grid;
  gap: 14px;
}

.role-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.role-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.role-card:hover .role-card-shine {
  transform: translateX(120%);
}

.role-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.28);
  box-shadow: 0 0 24px rgba(255, 0, 85, 0.18);
  color: var(--magenta);
}

.role-card-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.role-card-icon--creator {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.role-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.role-card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb3cc;
  background: rgba(255, 0, 85, 0.14);
  border: 1px solid rgba(255, 0, 85, 0.28);
}

.role-card-badge--creator {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.role-card-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.role-card-content small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.role-card-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.role-card--selected,
.account-type-option--selected.role-card {
  border-color: rgba(255, 0, 85, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 0, 85, 0.16) 0%, rgba(18, 8, 12, 0.98) 38%, rgba(8, 8, 8, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 0, 85, 0.12),
    0 16px 40px rgba(255, 0, 85, 0.14);
  transform: translateY(-1px);
}

.role-card--selected .role-card-ring,
.account-type-option--selected .role-card-ring {
  border-color: var(--magenta);
  background: var(--magenta);
  box-shadow: 0 0 16px var(--magenta-glow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11 12.5 4.8' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.role-card--selected .role-card-icon {
  box-shadow: 0 0 28px rgba(255, 0, 85, 0.35);
}

.role-selected-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 0, 85, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 0, 85, 0.28);
}

.role-selected-chip--creator {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.14);
}

.role-selected-chip-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
}

.role-selected-chip-text strong {
  color: var(--white);
}

.role-selected-chip-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
}

.role-continue-btn {
  margin-top: 4px;
}

.signup-step.hidden,
.auth-signup-step.hidden {
  display: none !important;
}

.signup-step + .signup-step {
  margin-top: 0;
}

/* Legacy account-type fallback */
.account-type-option:not(.role-card) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.account-type-option:not(.role-card) span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-type-option:not(.role-card) small {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-type-option:not(.role-card) input {
  accent-color: var(--magenta);
  margin-top: 4px;
}

.account-type-option--selected:not(.role-card) {
  border-color: rgba(255, 0, 85, 0.45);
  background: rgba(255, 0, 85, 0.1);
}

.auth-demo-hint {
  margin: 14px 0 0;
  font-size: 0.75rem;
  text-align: center;
}

.auth-errors {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.28);
  color: #ffb3cc;
  font-size: 0.82rem;
}

.auth-errors p { margin: 0; }
.auth-errors p + p { margin-top: 6px; }

.field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-terms input { accent-color: var(--magenta); margin-top: 3px; }

.auth-switch {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.82rem;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--magenta);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.account-type-option--selected {
  border-color: rgba(255, 0, 85, 0.45);
  background: rgba(255, 0, 85, 0.1);
}

.account-type-option--selected.role-card {
  border-color: rgba(255, 0, 85, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 0, 85, 0.16) 0%, rgba(18, 8, 12, 0.98) 38%, rgba(8, 8, 8, 0.98) 100%);
}

.auth-demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.feed-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(0,0,0,0.92) 70%, transparent);
}

.feed-mode-tab {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.feed-mode-tab.active {
  color: var(--white);
  border-color: rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.14);
}

.feed-mode-panel:not(.feed-mode-panel--active) {
  display: none !important;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.feed-mode-panel--active.reels-feed {
  display: block;
  flex: 1;
  min-height: 0;
}

.live-feed {
  padding: 12px;
  gap: 12px;
  padding-bottom: 100px;
}

.live-feed.feed-mode-panel--active {
  display: grid;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.live-card { padding: 16px; }

.live-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.live-card-avatar,
.live-watch-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255,0,85,0.35), rgba(120,0,255,0.25));
  border: 1px solid rgba(255,255,255,0.12);
}

.live-card-meta h3 {
  margin: 4px 0 2px;
  font-size: 1.05rem;
}

.live-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff4d8d;
}

.live-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip-premium {
  border-color: rgba(255, 0, 85, 0.35);
  color: #ffb3cc;
}

.live-empty,
.live-loading {
  text-align: center;
  padding: 28px 18px;
}

.live-empty-icon { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ── Immersive live watch room (premium TikTok-style, horizontal dock) ── */
.live-room {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.live-room__camera,
.live-room__camera .live-watch-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.live-room__video,
.live-watch-visual .live-room__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  background: #000;
}

.live-watch-visual--playing .live-room__video {
  z-index: 1;
}

.live-watch-status {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 4;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
}

.live-watch-status--error {
  background: rgba(120, 20, 40, 0.88);
}

.studio-payout-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.studio-payout-rate {
  margin: 0 0 14px;
  font-size: 0.86rem;
}

.studio-payout-history {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.studio-payout-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-room__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 0, 85, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, transparent 24%, transparent 58%, rgba(0, 0, 0, 0.82) 100%);
}

.live-room__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
}

.live-room__host {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.live-room__avatar,
.live-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.35), rgba(120, 0, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.live-room__host-copy {
  min-width: 0;
}

.live-room__creator {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.live-room__title {
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.live-room__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--magenta);
  border: 1px solid rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.12);
}

.live-room__top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.live-room__viewers {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-room__icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
}

.live-room__icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.live-room__chat {
  position: absolute;
  left: 12px;
  right: 28%;
  bottom: calc(118px + env(safe-area-inset-bottom));
  z-index: 3;
  max-height: 38vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
}

.live-room__chat-msg {
  align-self: flex-start;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.live-room__chat-msg strong {
  color: var(--magenta);
  margin-right: 6px;
}

.live-room__dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  gap: 10px;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.live-room__compose {
  display: flex;
  gap: 8px;
  align-items: center;
}

.live-room__chat-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.live-room__dock-rail {
  display: flex;
  gap: 10px;
}

.live-room__dock-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.live-room__dock-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.live-room__dock-btn--send {
  flex: 0 0 46px;
  width: 46px;
  border-color: rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.16);
}

.live-room__dock-btn--leave {
  border-color: rgba(255, 255, 255, 0.18);
}

body.live-room-open #app,
body.live-room-open .dl-header,
body.live-room-open .dl-dock {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.live-room-open {
  overflow: hidden;
  background: #000;
}

body.live-room-open .live-room:not(.hidden) {
  display: block !important;
}

/* ── Full-screen live broadcast studio ── */
.live-broadcast {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.live-broadcast__camera {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.live-broadcast__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  background: #000;
}

.live-broadcast__video--mirror {
  transform: translate(-50%, -50%) scaleX(-1);
}

.live-broadcast__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.08) 24%,
    transparent 44%,
    transparent 56%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.live-broadcast__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
}

.live-broadcast__icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
}

.live-broadcast__icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.live-broadcast__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.live-broadcast__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--magenta);
  border: 1px solid rgba(255, 0, 85, 0.35);
  background: rgba(255, 0, 85, 0.12);
}

.live-broadcast__viewers {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.live-broadcast__setup {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

.live-broadcast__setup-sheet {
  margin: 0 12px calc(12px + env(safe-area-inset-bottom));
  padding: 18px 16px 16px;
  border-radius: 22px 22px 18px 18px;
  background: rgba(10, 10, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.live-broadcast__setup-sheet h3 {
  margin: 6px 0 8px;
}

.live-broadcast__setup-copy {
  margin: 0 0 14px;
  font-size: 0.82rem;
}

.live-broadcast__go-btn {
  margin-top: 8px;
}

.live-broadcast__stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.live-broadcast__chat {
  position: absolute;
  left: 12px;
  right: 28%;
  bottom: calc(108px + env(safe-area-inset-bottom));
  max-height: 34vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
}

.live-broadcast__chat-msg {
  align-self: flex-start;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 14px;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-broadcast__chat-msg strong {
  color: var(--magenta);
  margin-right: 6px;
}

.live-broadcast__dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.live-broadcast__dock-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.live-broadcast__dock-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.live-broadcast__dock-btn--end {
  flex: 1.4;
  border-color: rgba(255, 0, 85, 0.45);
  background: rgba(255, 0, 85, 0.18);
  color: #fff;
}

body.live-broadcast-open #app,
body.live-broadcast-open .dl-header,
body.live-broadcast-open .dl-dock {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.live-broadcast-open {
  overflow: hidden;
  background: #000;
}

body.live-broadcast-open .live-broadcast:not(.hidden) {
  display: block !important;
}

body.live-broadcast-open #app video:not(#live-broadcast-video),
body.live-room-open #app video:not(#live-watch-video) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.live-room-open video:not(#live-watch-video),
body.live-broadcast-open video:not(#live-broadcast-video) {
  visibility: hidden !important;
  pointer-events: none !important;
}

.signup-page {
  padding: 16px 16px 100px;
  max-width: 420px;
  margin: 0 auto;
}

.signup-back { margin-bottom: 8px; }

.signup-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.signup-form { margin-top: 18px; }

.view-signup .lede.center { text-align: center; }

.genre-filter { display: flex; gap: 8px; padding: 8px 12px 0; overflow-x: auto; }
.genre-chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04); color: var(--muted); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.genre-chip.active { color: var(--white); border-color: rgba(255, 0, 85, 0.35); background: rgba(255, 0, 85, 0.14); }
.dl-notif-btn { background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; position: relative; }
.notif-item { padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
.earn-card { margin-top: 10px; padding: 10px; font-size: 0.82rem; }
.ledger-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--glass-border); }
.streak-panel { margin-top: 12px; }
.wallet-ledger { margin-top: 16px; padding: 16px; }
.legal-page { padding: 20px; max-width: 420px; margin: 16px auto; }

/* ── Modals ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 100;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
}

@supports not (justify-content: safe center) {
  .overlay {
    justify-content: flex-start;
    padding-top: max(24px, env(safe-area-inset-top));
  }
}

.overlay.hidden { display: none; }

.glass-modal {
  position: relative;
  width: min(400px, 100%);
  flex: 0 0 auto;
  background: linear-gradient(160deg, #161616 0%, #0a0a0a 100%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.auth-modal {
  max-height: calc(100dvh - max(32px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 0, 85, 0.35) transparent;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.auth-modal::-webkit-scrollbar {
  width: 6px;
}

.auth-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 85, 0.35);
  border-radius: 999px;
}

.auth-modal .icon-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -8px -4px 8px 8px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.modal-logo {
  margin: 0;
}

.paywall-logo {
  position: relative;
  margin: 0;
}

.modal-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-sub {
  text-align: center;
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.icon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-form .field {
  display: block;
  margin-bottom: 14px;
}

.auth-form .field span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  background: #000;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--magenta);
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  border: 1px solid #2a2a2a;
  box-shadow: 0 0 0 1000px #000 inset;
  transition: background-color 9999s ease-out 0s;
}

.auth-form input:-webkit-autofill:focus {
  border-color: var(--magenta);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.password-toggle-icon {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-icon--show {
  fill: currentColor;
  stroke: none;
}

.password-toggle-icon--hide {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.auth-forgot-link {
  margin: -6px 0 12px;
  text-align: right;
}

.auth-forgot-panel {
  margin-bottom: 8px;
}

.auth-forgot-step + .auth-forgot-step {
  margin-top: 8px;
}

.forgot-dev-otp {
  margin: -4px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.28);
  font-size: 0.78rem;
  color: #ffb3cc;
}

.paywall-modal { text-align: center; overflow: hidden; }

.paywall-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--magenta-glow), transparent 70%);
  pointer-events: none;
}

.paywall-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.paywall-modal h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.paywall-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--magenta);
  margin: 0 0 8px;
}

.paywall-copy {
  margin: 0 0 20px;
  font-size: 0.88rem;
}

/* ── Buttons ── */
.btn-primary, .btn-ghost {
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  min-height: var(--touch-min);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-primary {
  background: var(--magenta);
  color: var(--white);
  box-shadow: 0 8px 28px var(--magenta-glow);
}

.btn-primary:hover { background: var(--magenta-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  margin-top: 10px;
}

.full { width: 100%; }

.muted { color: var(--muted); }

.empty-feed {
  min-height: var(--reel-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 12px;
}

.empty-feed code {
  font-size: 0.8rem;
  padding: 4px 8px;
  background: var(--surface-2);
  border-radius: 8px;
}

.empty-feed-logo-wrap,
.profile-guest-logo-wrap {
  width: min(40vw, 140px);
  height: min(40vw, 140px);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #000;
  margin: 0 auto 16px;
  border-radius: 0;
}

.empty-feed-logo,
.profile-guest-logo {
  width: 100%;
  height: 100%;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: calc(var(--dock-h) + 16px + var(--dl-keyboard-inset, 0px));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sound-toggle--on { background: rgba(255, 77, 136, 0.2); border-color: rgba(255, 77, 136, 0.5); }

.feed-source-tabs { display: flex; gap: 8px; padding: 8px 16px 0; }

.feed-source-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.feed-source-tab.active {
  color: #fff;
  border-color: rgba(255, 77, 136, 0.45);
  background: rgba(255, 77, 136, 0.12);
}

.feed-streak-bar { padding: 0 16px 8px; }

.rail-btn--liked { color: #ff4d88; }
.rail-btn--liked svg { fill: #ff4d88; }

.reel-creator--link { cursor: pointer; }

.heart-burst {
  position: absolute;
  z-index: 12;
  font-size: 4rem;
  color: #ff4d88;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
  animation: heart-pop 0.85s ease forwards;
  text-shadow: 0 8px 24px rgba(255, 77, 136, 0.45);
}

@keyframes heart-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  35% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -90%) scale(1.35); }
}


.dock-item--create svg { stroke: #fff; stroke-width: 2.4; fill: none; }

.search-shell, .profile-shell { padding: 16px; }
.search-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  margin-bottom: 12px;
}
.search-section { margin-bottom: 16px; }
.search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.search-row--static { cursor: default; }

.profile-hero { margin-bottom: 16px; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.6rem;
  font-weight: 700;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.profile-grid-item {
  position: relative;
  aspect-ratio: 9/16;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.profile-grid-item video { width: 100%; height: 100%; object-fit: cover; }
.profile-grid-meta {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 6px;
  border-radius: 999px;
}
.profile-grid-lock { position: absolute; top: 6px; right: 6px; }

.live-chat-panel {
  width: 100%;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 8px;
}
.live-chat-list { max-height: 120px; overflow-y: auto; margin-bottom: 8px; font-size: 0.82rem; }
.live-chat-msg { padding: 4px 0; }
.live-chat-compose { display: flex; gap: 8px; }
.live-chat-compose input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 12px;
}

@media (min-width: 480px) {
  .dreamland-body {
    display: flex;
    justify-content: center;
    background: #000;
  }

  .app-shell {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 24px 80px rgba(0, 0, 0, 0.65);
  }

  .record-capture {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: min(430px, 100vw);
    height: 100dvh;
    transform: translateX(-50%);
  }
}

/* ── Full-screen record capture (TikTok-style) ── */
.studio-record-launch {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 12px 8px 4px;
}

.studio-record-launch__visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 4px;
}

.studio-record-launch__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 0, 85, 0.45);
  box-shadow: 0 0 28px var(--magenta-glow);
}

.studio-record-launch__dot {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--magenta), var(--magenta-dark));
}

.studio-record-launch__visual--live .studio-record-launch__ring--live {
  border-color: rgba(255, 0, 85, 0.35);
  animation: live-tab-pulse 2.4s ease-in-out infinite;
}

.studio-record-launch__visual--live .studio-record-launch__dot {
  inset: 30px;
  background: transparent;
  box-shadow: none;
}

.studio-record-launch h3 {
  margin: 0;
  font-size: 1.05rem;
}

.studio-record-launch p {
  margin: 0;
  max-width: 260px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.app-shell--recording .dl-header,
.app-shell--recording .dl-dock,
.app-shell--recording .view.active,
body.record-capture-open #app {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.record-capture-open {
  overflow: hidden;
  background: #000;
}

body.record-capture-open .record-capture:not(.hidden) {
  display: block !important;
  visibility: visible !important;
}

.record-capture {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  margin: 0;
  transform: none;
  z-index: 9999;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.record-capture__camera {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.record-capture__camera--playback {
  z-index: 0;
}

.record-capture__video,
.record-capture__playback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  background: #000;
}

.record-capture__video--mirror {
  transform: translate(-50%, -50%) scaleX(-1);
}

.record-capture__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.08) 22%,
    transparent 42%,
    transparent 58%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.record-capture__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
}

.record-capture-icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.record-capture-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.record-capture-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.record-capture__timer {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 0, 85, 0.85);
  box-shadow: 0 0 18px var(--magenta-glow);
}

.record-capture__stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 20px max(28px, calc(env(safe-area-inset-bottom) + 18px));
}

.record-capture__hint {
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.record-capture__controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-capture-shutter {
  position: relative;
  width: 84px;
  height: 84px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.record-capture-shutter__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.record-capture-shutter__core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 28px var(--magenta-glow);
  transition: inset 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.record-capture-shutter--recording .record-capture-shutter__ring {
  border-color: var(--magenta);
  animation: record-ring-pulse 1.2s ease-in-out infinite;
}

.record-capture-shutter--recording .record-capture-shutter__core {
  inset: 24px;
  border-radius: 8px;
  background: var(--magenta);
}

@keyframes record-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.82; }
}

.record-capture-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.96), rgba(180, 0, 72, 0.96));
  box-shadow: 0 0 28px var(--magenta-glow), 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.record-capture-end .live-dot {
  width: 10px;
  height: 10px;
}

.record-capture--recording .record-capture__controls {
  min-height: 84px;
}

.studio-approval-banner {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 0, 85, 0.28);
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.08), rgba(255, 255, 255, 0.02));
}

.studio-approval-banner h3 {
  margin: 6px 0 8px;
  font-size: 1.05rem;
}

.studio-cta--locked {
  opacity: 0.72;
}

.studio-file--locked {
  opacity: 0.65;
  pointer-events: none;
}

.record-capture__review {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: #000;
}

.record-capture__review-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 58%;
  padding: 16px 16px max(18px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 18%, rgba(8, 8, 8, 0.98) 100%);
  border-top: 1px solid rgba(255, 0, 85, 0.22);
}

.record-capture__review-sheet .studio-textarea {
  min-height: 64px;
}

.record-capture__review-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 4px;
}

.record-capture__review-btn {
  min-height: 46px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ── Mobile-first polish (touch, keyboard, small screens) ── */
button,
[role="button"],
.dock-item,
.studio-tab,
.studio-edit-chip,
.genre-chip,
.feed-mode-tab,
.feed-source-tab,
.package-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.studio-edit-chip {
  min-height: 40px;
}

.studio-cta,
.studio-quick-btn,
.studio-edit-music-btn {
  min-height: var(--touch-min);
}

.glass-card {
  padding: clamp(16px, 4vw, 20px);
}

.studio-panel-head h3 {
  font-size: clamp(1.05rem, 4.5vw, 1.2rem);
}

.record-capture,
#live-broadcast,
#live-room {
  height: 100dvh;
  height: calc(var(--dl-vh, 1dvh) * 100);
}

@media (max-width: 379px) {
  :root {
    --mobile-gutter: 12px;
    --header-h: calc(64px + env(safe-area-inset-top, 0px));
  }

  .dl-brand-tag {
    display: none;
  }

  .studio-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-live-banner__cta {
    display: none;
  }

  .studio-hero {
    padding: 18px 16px 16px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 479px) {
  .dreamland-body {
    background: #000;
  }

  .app-shell {
    max-width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .glass-modal {
    width: 100%;
    max-height: calc(var(--dl-vh, 1dvh) * 100 - 24px);
    border-radius: 24px 24px 0 0;
    margin-top: auto;
  }

  .overlay {
    justify-content: flex-end;
    padding:
      max(8px, env(safe-area-inset-top))
      0
      0
      0;
  }

  .studio-edit-premium-block {
    padding: 12px;
  }

  .studio-edit-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .studio-edit-chips::-webkit-scrollbar { display: none; }

  .studio-edit-chip {
    flex: 0 0 auto;
  }
}

/* ——— Account management ——— */
.view-account {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 0, 85, 0.14), transparent 55%),
    var(--dl-bg, #0a0a0f);
}

.account-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}

.account-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

.account-topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  margin: 0 0 4px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.96) 70%, rgba(10, 10, 15, 0));
  backdrop-filter: blur(10px);
}

.account-topbar h1 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
  text-align: center;
  letter-spacing: -0.02em;
}

.account-back {
  font-size: 0.82rem;
  padding: 8px 12px;
  min-width: 72px;
  border-radius: 999px;
}

.account-signout-top {
  font-size: 0.72rem;
  padding: 7px 10px;
  min-width: 72px;
  text-align: right;
  color: var(--muted);
  border-radius: 999px;
}

.account-hero {
  overflow: visible;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.account-cover {
  position: relative;
  height: 132px;
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(135deg, rgba(255, 0, 85, 0.35) 0%, rgba(88, 28, 135, 0.5) 45%, rgba(10, 10, 15, 0.2) 100%);
  background-size: cover;
  background-position: center;
}

.account-cover--has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55));
}

.account-cover-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.account-hero-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: end;
  padding: 0 16px 18px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.account-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.account-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ff4d8d, #c026d3);
  border: 4px solid rgba(10, 10, 15, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-edit {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--magenta);
  letter-spacing: 0.02em;
}

.account-hero-copy {
  padding-top: 44px;
  padding-bottom: 8px;
  min-width: 0;
}

.account-hero-copy h2 {
  margin: 6px 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.account-hero-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

.account-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb3d0;
  background: rgba(255, 0, 85, 0.14);
  border: 1px solid rgba(255, 0, 85, 0.28);
}

.account-role-chip--creator { color: #ffd0ec; }
.account-role-chip--pending {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

.account-section {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.account-section h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.account-form-lede {
  margin: 0 0 16px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.account-field:last-child {
  margin-bottom: 0;
}

.account-field span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-field input,
.account-field textarea,
.account-field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-field input:focus,
.account-field textarea:focus,
.account-field select:focus {
  outline: none;
  border-color: rgba(255, 0, 85, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 0, 85, 0.12);
}

.account-field textarea {
  resize: vertical;
  min-height: 72px;
  max-height: 160px;
}

.account-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-save-btn {
  margin-top: 6px;
}

.account-danger {
  padding: 18px 16px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
  border-radius: 20px;
}

.account-danger h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.account-signout-btn {
  margin-top: 12px;
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

.account-guest,
.account-loading {
  padding: 28px 20px;
  text-align: center;
  border-radius: 20px;
}

@media (max-width: 420px) {
  .account-field-row {
    grid-template-columns: 1fr;
  }

  .account-hero-body {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: -52px;
  }

  .account-hero-copy {
    padding-top: 0;
  }

  .account-avatar-wrap {
    margin: 0 auto;
  }

  .account-role-chip {
    margin-left: auto;
    margin-right: auto;
  }
}
.studio-quick-actions { display: flex; justify-content: flex-end; padding: 0 4px 4px; }
.studio-account-btn { font-size: 0.82rem; }

.pwa-update-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(18, 8, 28, 0.96);
  border: 1px solid rgba(255, 77, 141, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.85rem;
}
.pwa-update-toast .btn-primary,
.pwa-update-toast .btn-ghost {
  padding: 6px 12px;
  font-size: 0.78rem;
}
.studio-approval-banner--ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(18, 8, 28, 0.9));
}
.dl-avatar-img, .profile-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  display: block;
}
.dl-avatar-btn .dl-avatar-img { width: 32px; height: 32px; }
.profile-avatar-lg .profile-avatar-img { border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
