/* ——— Onboarding flow (Dashboard → Login → Create → Links → Done) ——— */

/*
 * Dashboard is a normal document page (/ and /dashboard).
 * The window scrolls — no nested #flowApp scrollport.
 * Studio locks document overflow.
 */
html.flow-mode,
html.flow-mode body {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #050608 !important;
}

html:not(.flow-mode),
html:not(.flow-mode) body {
  height: 100%;
  overflow: hidden;
}

.studio-app.is-hidden,
.flow-app.is-hidden {
  display: none !important;
}

/* ——— Flow ↔ Studio transition ——— */
.studio-app:not(.is-hidden) {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flow-app.is-leaving {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.flow-app.is-entering {
  position: relative;
  z-index: 80;
}

@keyframes aura-flow-exit {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.97) translateY(14px);
    filter: blur(7px);
  }
}

@keyframes aura-flow-enter {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes aura-studio-enter {
  from {
    opacity: 0;
    transform: scale(1.03);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes aura-studio-exit {
  from {
    opacity: 1;
    transform: none;
    filter: none;
  }
  to {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(8px);
  }
}

@keyframes aura-studio-card-enter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(28px);
  }
  65% {
    transform: scale(1.02) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes aura-studio-stage-glow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.flow-app.is-leaving.is-leaving-active {
  animation: aura-flow-exit 0.46s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.flow-app.is-entering.is-entering-active {
  animation: aura-flow-enter 0.46s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.studio-app.is-entering.is-entering-active {
  animation: aura-studio-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.studio-app.is-leaving.is-leaving-active {
  animation: aura-studio-exit 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body.studio-opening .studio-app.is-entering.is-entering-active #profileCard {
  animation: aura-studio-card-enter 0.64s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

body.studio-opening .studio-app.is-entering.is-entering-active #stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(82, 111, 255, 0.14), transparent 68%);
  animation: aura-studio-stage-glow 0.7s ease 0.05s both;
}

@media (prefers-reduced-motion: reduce) {
  .flow-app.is-leaving.is-leaving-active,
  .flow-app.is-entering.is-entering-active,
  .studio-app.is-entering.is-entering-active,
  .studio-app.is-leaving.is-leaving-active,
  body.studio-opening .studio-app.is-entering.is-entering-active #profileCard,
  body.studio-opening .studio-app.is-entering.is-entering-active #stage::after {
    animation: none !important;
  }
}

.flow-app {
  position: relative;
  z-index: 80;
  display: block;
  min-height: 100vh;
  color: #e8e4dc;
  overflow: visible;
  background: transparent;
}
.flow-scroll-track {
  position: relative;
  width: 100%;
}

.flow-bg {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 0;
  pointer-events: none;
}
.flow-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 12% 8%, rgba(40, 48, 72, 0.22), transparent 58%),
    radial-gradient(ellipse 60% 45% at 88% 78%, rgba(28, 36, 52, 0.2), transparent 55%),
    linear-gradient(168deg, #050608 0%, #080a0e 42%, #06070a 100%);
}
.flow-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* Soft purple orb glows */
.flow-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.flow-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform, opacity;
  animation: flowOrbFloat 18s ease-in-out infinite;
}
.flow-bg-orb-a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  left: -6%;
  top: 12%;
  background: radial-gradient(circle at 35% 35%, rgba(167, 139, 250, 0.55), rgba(124, 58, 237, 0.22) 45%, transparent 70%);
  animation-duration: 22s;
}
.flow-bg-orb-b {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  right: -4%;
  top: 38%;
  background: radial-gradient(circle at 40% 40%, rgba(192, 132, 252, 0.42), rgba(109, 40, 217, 0.18) 48%, transparent 72%);
  animation-duration: 26s;
  animation-delay: -6s;
}
.flow-bg-orb-c {
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  left: 28%;
  bottom: -12%;
  background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.35), rgba(76, 29, 149, 0.16) 50%, transparent 72%);
  animation-duration: 30s;
  animation-delay: -12s;
}
@keyframes flowOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.06);
    opacity: 0.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-bg-orb {
    animation: none;
  }
}

.flow-shell {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

/* Floating top bar — blends into page bg */
.flow-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1.25rem 0;
  pointer-events: none;
}
.flow-nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0.55rem 0.85rem;
  background: rgba(8, 10, 14, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  box-shadow: none;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  overflow: visible;
}
.flow-nav-brand {
  flex: 0 0 auto;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: #f3eee6;
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: 0.45rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.flow-nav-brand:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.flow-nav-logo {
  display: none;
}
.flow-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}
.flow-nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(156, 163, 175, 0.88);
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.flow-nav-link:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}
.flow-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.flow-nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.flow-lang {
  position: relative;
  flex: 0 0 auto;
}
.flow-lang-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e5e7eb;
  padding: 0.38rem 0.55rem;
  border-radius: 0.55rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.flow-lang-toggle:hover,
.flow-lang.is-open .flow-lang-toggle {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}
.flow-lang-flag {
  display: block;
  width: 1.25rem;
  height: 0.94rem;
  object-fit: cover;
  border-radius: 0.15rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}
.flow-lang-option .flow-lang-flag {
  width: 1.75rem;
  height: 1.3rem;
}
.flow-lang-caret {
  font-size: 0.65rem;
  opacity: 0.65;
}
.flow-lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  min-width: 11.5rem;
  padding: 0.55rem;
  border-radius: 0.75rem;
  background: rgba(10, 12, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.flow-lang-menu[hidden] {
  display: none !important;
}
.flow-lang-option {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(209, 213, 219, 0.9);
  padding: 0.55rem 0.35rem;
  border-radius: 0.55rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.flow-lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.flow-lang-option.is-active {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.35);
  color: #fff;
}
.flow-nav-login {
  appearance: none;
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  margin-left: 0;
  border: 1.5px solid #526fff;
  background: #526fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 0.55rem;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.flow-nav-login:hover {
  color: #fff;
  background: #6478ff;
  border-color: #6478ff;
}
.flow-nav-login.is-active {
  color: #fff;
  background: #6478ff;
  border-color: #6478ff;
}

.flow-panel {
  display: none !important;
  align-items: center;
  justify-content: center;
  animation: flowIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.flow-panel.is-active {
  display: flex !important;
  min-height: calc(100dvh - 6.5rem);
}
.flow-panel[data-flow-panel="dashboard"].is-active {
  display: block !important;
  width: 100%;
  flex: none;
  min-height: 0;
  height: auto;
  animation: none;
  overflow: visible;
}
.flow-dash {
  width: 100%;
  display: block;
  position: relative;
}

/* Hero background — card only, fade matches card bounds */
.flow-hero-bg {
  position: absolute;
  left: 50%;
  top: 52%;
  bottom: auto;
  width: auto;
  height: auto;
  max-width: min(320px, 70vw);
  margin-left: 0;
  transform: translateX(-50%) translateY(calc(var(--flow-scroll, 0) * 28px));
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: 1.35rem;
  opacity: calc(0.88 - var(--flow-scroll, 0) * 0.85);
  mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
}
.flow-hero-bg-stage {
  position: relative;
  width: auto;
  height: auto;
  transform: perspective(1500px) rotateX(12deg);
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
}
.flow-showcase-pop--bg {
  width: auto;
  height: auto;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.flow-showcase-pop--bg .flow-showcase-img--hero {
  display: block;
  width: auto;
  height: auto;
  max-width: min(320px, 70vw);
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
}
.flow-hero-bg-fade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 35%,
    rgba(5, 6, 8, 0.55) 65%,
    #050608 100%
  );
  pointer-events: none;
}
.flow-hero > :not(.flow-hero-bg) {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .flow-hero-bg {
    top: 50%;
  }
}
@media (max-width: 640px) {
  .flow-hero-bg {
    top: 48%;
    max-width: min(280px, 74vw);
  }
  .flow-showcase-pop--bg .flow-showcase-img--hero {
    max-width: min(280px, 74vw);
  }
}

@keyframes flowIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.flow-hero {
  text-align: center;
  width: min(720px, 100%);
  margin-inline: auto;
  min-height: calc(88vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(4.5rem, 12vh, 7rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  --fs: var(--flow-scroll, 0);
}
.flow-hero .flow-title {
  transform: translateY(calc(var(--fs) * -56px)) scale(calc(1 - var(--fs) * 0.07));
  transform-origin: 50% 50%;
  opacity: calc(1 - var(--fs) * 0.95);
  will-change: transform, opacity;
}
.flow-hero .flow-lead {
  transform: translateY(calc(var(--fs) * -40px));
  opacity: calc(1 - var(--fs) * 0.9);
  will-change: transform, opacity;
}
.flow-hero .flow-cta-row,
.flow-hero .flow-path {
  transform: translateY(calc(var(--fs) * -32px));
  opacity: calc(1 - var(--fs) * 0.85);
  will-change: transform, opacity;
}
.flow-scroll-hint {
  position: relative;
  left: auto;
  bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.4);
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  transform: translateY(calc(var(--fs, 0) * -16px));
  opacity: calc(1 - var(--fs, 0) * 2.5);
  will-change: transform, opacity;
  transition: color 0.2s ease;
  z-index: 3;
}
.flow-scroll-hint:hover {
  color: rgba(232, 228, 220, 0.65);
}
.flow-scroll-chevron {
  display: inline-block;
  animation: flowBounce 1.8s ease-in-out infinite;
}
@keyframes flowBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.9;
  }
}

/* Showcase — 3D popup when scrolled into view */
.flow-showcase {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 7.5rem 0 3.5rem;
  text-align: center;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  overflow: visible;
}

.scroll-animate {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
  pointer-events: none;
}
.scroll-animate.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Card: stereo pop via transition (always ends visible) */
#flowShowcaseStage.scroll-animate {
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  opacity: 0;
  filter: blur(18px);
  transform: translate3d(0, 110px, -260px) rotateX(62deg) rotateY(-10deg) scale(0.78);
  transition:
    opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.06s;
  pointer-events: none;
}
#flowShowcaseStage.scroll-animate.show {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 48px) rotateX(0deg) rotateY(0deg) scale(1);
  pointer-events: auto;
}

.flow-showcase-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 170, 120, 0.85);
}
.flow-showcase-title {
  margin: 0.35rem 0 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f3eee6;
}
.flow-showcase-stage {
  position: relative;
  width: min(1280px, 98vw);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.flow-showcase-row {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2.5vw, 1.5rem);
  transform-style: preserve-3d;
}
.flow-showcase-pop {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  width: min(400px, 42vw);
  height: min(580px, 75vh);
  max-height: min(580px, 75vh);
  border-radius: 1.35rem;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
  transition: filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.flow-showcase-pop--img {
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  background: transparent;
  align-self: flex-start;
}
.flow-showcase-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(457px, 90vw);
  pointer-events: none;
}
#flowShowcaseStage.show .flow-showcase-pop {
  box-shadow: none;
}
.flow-showcase-glow {
  display: none !important;
}
.flow-showcase-shadow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -8%;
  width: 70%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28), transparent 72%);
  transform: translateX(-50%) scale(0.3) translateZ(-40px);
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#flowShowcaseStage.show .flow-showcase-shadow {
  opacity: 0.35;
  transform: translateX(-50%) scale(1) translateZ(-20px);
}
/* Render iframe at native size — card scales inside embed */
.flow-showcase-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.flow-footer {
  width: 100%;
  margin-top: 2.5rem;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050608;
}
.flow-footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.flow-footer-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(180, 184, 196, 0.72);
  letter-spacing: 0.01em;
}
.flow-footer-socials {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.flow-footer-social {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: rgba(220, 224, 232, 0.78);
  transition: color 0.15s ease;
}
.flow-footer-social:hover {
  color: #fff;
}
.flow-footer-social svg {
  width: 100%;
  height: 100%;
  display: block;
}
.flow-app[data-flow-step]:not([data-flow-step="dashboard"]):not([data-flow-step="account"]) .flow-footer {
  display: none;
}

/* ——— Logged-in account dashboard ——— */
.flow-panel[data-flow-panel="account"].is-active {
  display: block !important;
  width: 100%;
  min-height: calc(100dvh - 7rem);
}
.flow-shell:has([data-flow-panel="account"].is-active) {
  width: min(1100px, 100%);
  padding-bottom: 2rem;
}
.acct-dash {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  min-height: 70vh;
}
.acct-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 0.85rem;
  border-radius: 1rem;
  background: rgba(12, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.acct-side-brand {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: #f3eee6;
  padding: 0.25rem 0.45rem 0.55rem;
}
.acct-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.acct-side-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 228, 220, 0.55);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.acct-side-link i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.85;
}
.acct-side-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.acct-side-link.is-active {
  color: #fff;
  background: rgba(82, 111, 255, 0.18);
}
.acct-side-logout {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(232, 228, 220, 0.55);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  cursor: pointer;
}
.acct-side-logout:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.acct-main {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}
.acct-panel-view {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}
.acct-panel-view.is-active {
  display: flex;
}
.acct-stat-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.acct-stat-value-sm {
  font-size: 0.92rem;
  word-break: break-all;
}
.acct-chart-wrap-tall {
  min-height: 220px;
}
.acct-detail-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.acct-detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: rgba(232, 228, 220, 0.62);
}
.acct-detail-list strong {
  color: #f3eee6;
  font-weight: 700;
}
@media (max-width: 900px) {
  .acct-stat-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.acct-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.acct-title {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f3eee6;
}
.acct-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(232, 228, 220, 0.55);
}
.acct-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.acct-stat {
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  background: rgba(12, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.35rem;
}
.acct-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.42);
}
.acct-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f3eee6;
  word-break: break-all;
}
.acct-panel {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1rem;
  background: rgba(12, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.acct-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
}
.acct-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f3eee6;
}
.acct-panel-meta,
.acct-panel-desc {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.8rem;
  color: rgba(232, 228, 220, 0.48);
}
.acct-panel-meta {
  margin: 0;
}
.acct-chart-wrap {
  height: 180px;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(82, 111, 255, 0.12);
  overflow: hidden;
}
.acct-chart {
  display: block;
  width: 100%;
  height: 100%;
}
.acct-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
}
.acct-link-url {
  margin: 0.35rem 0 0.95rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  color: rgba(180, 190, 255, 0.9);
  word-break: break-all;
}
.acct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
@media (max-width: 900px) {
  .acct-dash {
    grid-template-columns: 1fr;
  }
  .acct-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .acct-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 auto;
  }
  .acct-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acct-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .acct-top {
    flex-direction: column;
  }
  .acct-stat-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .flow-footer-inner {
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-block: 1.25rem 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-scroll-chevron {
    animation: none;
  }
  .flow-hero-bg {
    transform: translateX(-50%) !important;
    opacity: 0.92 !important;
  }
  .flow-hero-bg-stage {
    transform: none !important;
  }
  .flow-hero .flow-title,
  .flow-hero .flow-lead,
  .flow-hero .flow-cta-row,
  .flow-hero .flow-path {
    transform: none !important;
    opacity: 1 !important;
  }
  .flow-scroll-hint {
    transform: none !important;
    opacity: 1 !important;
  }
  .scroll-animate,
  #flowShowcaseStage.scroll-animate {
    transition-duration: 0.35s !important;
    filter: none !important;
    animation: none !important;
  }
  .scroll-animate.show,
  #flowShowcaseStage.scroll-animate.show {
    opacity: 1 !important;
    transform: none !important;
  }
}
.flow-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.85rem, 5.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #f3eee6;
  margin: 0 0 1rem;
  max-width: none;
  white-space: nowrap;
}
.flow-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(232, 228, 220, 0.72);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}
.flow-hero .flow-cta-row {
  justify-content: center;
}
.flow-path {
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-size: 0.78rem;
  color: rgba(232, 228, 220, 0.4);
}
.flow-path li {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.flow-path li:not(:last-child)::after {
  content: "→";
  opacity: 0.45;
}

.flow-card {
  width: min(420px, 100%);
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(18, 20, 24, 0.72);
  border: 1px solid rgba(243, 238, 230, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
[data-flow-panel="discord"] .flow-card {
  border: 0;
  border-color: transparent;
}
.flow-card-wide {
  width: min(520px, 100%);
}
.flow-card-done {
  text-align: center;
  align-items: center;
}
.flow-card-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f3eee6;
  margin: 0;
}
.flow-card-desc {
  margin: -0.35rem 0 0.25rem;
  font-size: 0.88rem;
  color: rgba(232, 228, 220, 0.62);
  line-height: 1.45;
}

.flow-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.flow-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.flow-btn:hover {
  transform: translateY(-1px);
}
.flow-btn-primary {
  color: #fff;
  background: #526fff;
  border: 1.5px solid #526fff;
}
.flow-btn-primary:hover {
  background: #6478ff;
  border-color: #6478ff;
}
.flow-btn-ghost {
  color: #e8e4dc;
  background: transparent;
  border: 1px solid rgba(232, 228, 220, 0.22);
}
.flow-btn-ghost:hover {
  border-color: rgba(232, 228, 220, 0.4);
  background: rgba(232, 228, 220, 0.05);
}

.flow-oauth-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
}
.flow-oauth-slot {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(232, 228, 220, 0.2);
  background: #fff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.flow-google-btn:hover {
  transform: translateY(-1px);
  background: #f7f7f7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.flow-google-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.flow-google-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.flow-google-official {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
}
.flow-google-official > div {
  width: 100% !important;
}
.flow-google-official:empty {
  display: none;
  min-height: 0;
}
.flow-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #5865f2;
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.flow-discord-btn:hover {
  transform: translateY(-1px);
  background: #4752c4;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35);
}
.flow-discord-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.flow-discord-icon svg {
  display: block;
}
@media (max-width: 420px) {
  .flow-oauth-row {
    flex-direction: column;
  }
}
.flow-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(232, 228, 220, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flow-divider::before,
.flow-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(232, 228, 220, 0.12);
}
.flow-error {
  font-size: 0.78rem;
  color: #f0a8a8;
  margin: 0;
}
.flow-error.hidden,
.flow-hint.hidden,
.flow-google-btn.hidden {
  display: none;
}

.flow-link-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.flow-link-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 0.45rem;
  align-items: center;
}
.flow-link-row .field-input {
  margin: 0;
}
.flow-link-remove {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.flow-link-remove:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.3);
}
.flow-add-link {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px dashed rgba(232, 228, 220, 0.2);
  background: transparent;
  color: rgba(232, 228, 220, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.7rem;
  cursor: pointer;
}
.flow-add-link:hover {
  color: #e8dcc8;
  border-color: rgba(232, 220, 200, 0.4);
}

.flow-done-mark {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(180, 210, 170, 0.15);
  color: #c5dfb4;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.flow-done-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: rgba(232, 228, 220, 0.7);
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: all;
  text-decoration: none;
  display: inline-block;
}
.flow-done-url:hover {
  color: #fff;
  border-color: rgba(82, 111, 255, 0.45);
}

body.flow-mode .chrome-fab-editor {
  display: none !important;
}

@media (max-width: 640px) {
  .flow-link-row {
    grid-template-columns: 1fr;
  }
  .flow-link-remove {
    width: 100%;
  }
  .flow-title {
    font-size: clamp(1.45rem, 6.5vw, 2.4rem);
  }
  .flow-showcase-row {
    gap: 0.65rem;
  }
  .flow-showcase-pop:not(.flow-showcase-pop--img) {
    height: min(420px, 58dvh);
    max-height: min(420px, 58dvh);
    width: min(200px, 42vw);
  }
  .flow-showcase-img {
    max-width: min(200px, 42vw);
  }
}

/* Public profile page — card only, no editor / dashboard chrome */
html.public-view,
html.public-view body {
  overflow: hidden;
}
.public-view .flow-app {
  display: none !important;
}
.public-view #studioApp,
.public-view #studioApp.is-hidden {
  display: flex !important;
}
.public-view #editorPanel,
.public-view .chrome-fab,
.public-view #saveToast {
  display: none !important;
}
.public-view #studioApp > .h-full,
.public-view #studioApp > .h-full > .flex,
.public-view #studioApp > .h-full > .flex > main {
  flex: 1 1 100%;
  width: 100%;
  height: 100%;
}
.public-view #stage {
  width: 100%;
  height: 100%;
}

/* Embed preview — scale the whole card (text included), no stretch */
html.embed-mode,
html.embed-mode body {
  overflow: hidden !important;
  background: transparent !important;
}
html.embed-mode body.flow-mode {
  background: transparent !important;
}
html.embed-mode .flow-nav,
html.embed-mode .flow-scroll-hint,
html.embed-mode .flow-hero,
html.embed-mode .flow-showcase,
html.embed-mode .flow-footer {
  display: none !important;
  background-color: transparent !important;
}
.embed-mode .flow-app {
  display: none !important;
}
.embed-mode #studioApp,
.embed-mode #studioApp.is-hidden {
  display: flex !important;
  background: transparent !important;
}
.embed-mode #editorPanel,
.embed-mode .chrome-fab,
.embed-mode #saveToast,
.embed-mode #musicPlayer,
.embed-mode #spotifyEmbed,
.embed-mode .profile-views {
  display: none !important;
}
.embed-mode #studioApp > .h-full,
.embed-mode #studioApp > .h-full > .flex,
.embed-mode #studioApp > .h-full > .flex > main {
  flex: 1 1 100%;
  width: 100%;
  height: 100%;
  background: transparent !important;
  overflow: hidden !important;
}
.embed-mode #stage {
  background: transparent !important;
  background-image: none !important;
}
.embed-mode #bgLayer,
.embed-mode #bgMedia,
.embed-mode #bgVideo,
.embed-mode #ytBg,
.embed-mode #bgOverlay,
.embed-mode #fxCanvas {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.embed-mode #stage > .absolute.inset-0.flex {
  padding: 0 !important;
  background: transparent !important;
  align-items: flex-start !important;
  justify-content: center !important;
}
.embed-mode #profileCard {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
}
/* Compact gallery embeds: slightly tighter type so scaled cards stay readable */
html.embed-compact.embed-mode #profileCard {
  font-size: 13px;
  background: rgba(18, 20, 26, 0.82) !important;
}
html.embed-compact.embed-mode #profileCard.glass-card {
  backdrop-filter: blur(14px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
}
html.embed-compact.embed-mode #profileCard .pc-name {
  font-size: 1.15em !important;
}
html.embed-compact.embed-mode #profileCard .pc-handle,
html.embed-compact.embed-mode #profileCard .pc-bio {
  font-size: 0.85em !important;
}
html.embed-compact.embed-mode #profileCard .preview-link,
html.embed-compact.embed-mode #profileCard .pc-links a {
  font-size: 0.82em !important;
  padding-block: 0.55em !important;
}
/* Hero bg card: socials sit too far right when centered — align with left content */
html.hero-bg-embed .pc-socials.pc-socials-top {
  justify-content: flex-start !important;
  margin-inline: 0 !important;
  padding-inline: 0.15rem 0 !important;
  width: 100%;
  gap: 0.55rem;
}
/* Dashboard showcase only: mute card glow */
.embed-mode #profileCard.fx-glow,
.embed-mode .glass-card.fx-glow {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 14px color-mix(in srgb, var(--accent) 10%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 5%, transparent),
    0 16px 36px rgba(0, 0, 0, 0.28) !important;
}

/* Leaderboard */
.flow-panel[data-flow-panel="leaderboard"].is-active {
  align-items: flex-start;
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}
.lb-layout {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}
.lb-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: 5.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(10, 11, 14, 0.72);
}
.lb-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 228, 220, 0.55);
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lb-tab:hover {
  color: rgba(243, 238, 230, 0.9);
  background: rgba(255, 255, 255, 0.04);
}
.lb-tab.is-active {
  color: #f3eee6;
  background: rgba(82, 111, 255, 0.18);
}
.lb-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lb-pane[hidden] {
  display: none !important;
}
.lb-official {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}
.lb-official-head {
  text-align: center;
  padding: 0 0.25rem;
  width: 100%;
}
.lb-official-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f3eee6;
  margin: 0;
}
.lb-official-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  width: 100%;
  padding: 0.25rem 0.15rem 0.5rem;
}
.lb-official-card {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 580;
  border-radius: 1.25rem;
  overflow: hidden;
  background: transparent;
}
.lb-official-frame {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 360px;
  height: 580px;
  border: 0;
  background: transparent;
  pointer-events: none;
  transform-origin: top left;
  transform: scale(0.01);
  visibility: hidden;
}
.lb-official-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(232, 228, 220, 0.45);
  font-size: 0.9rem;
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .lb-official-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .lb-official-row {
    grid-template-columns: 1fr;
  }
}
.lb-board {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 720px) {
  .lb-layout {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
  }
  .lb-tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  .lb-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}
.lb-board-head {
  text-align: center;
  padding: 0 0.25rem;
}
.lb-board-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f3eee6;
  margin: 0 0 0.35rem;
}
.lb-board-desc {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(232, 228, 220, 0.58);
  line-height: 1.45;
}
.lb-table {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  background: rgba(10, 11, 14, 0.72);
}
.lb-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 6.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lb-row:last-child {
  border-bottom: 0;
}
.lb-row-head {
  padding: 0.7rem 1.1rem;
  color: rgba(232, 228, 220, 0.42);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.015);
}
.lb-col-rank {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(243, 238, 230, 0.88);
  font-variant-numeric: tabular-nums;
}
.lb-col-views {
  text-align: right;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f3eee6;
  font-variant-numeric: tabular-nums;
}
.lb-row-head .lb-col-views {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(232, 228, 220, 0.42);
}
.lb-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.lb-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
}
.lb-avatar-wrap .lb-avatar,
.lb-avatar-wrap .lb-avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lb-avatar {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2d35;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lb-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(243, 238, 230, 0.75);
  text-transform: uppercase;
}
.lb-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.lb-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.lb-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3eee6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  font-size: 0.55rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lb-handle {
  font-size: 0.78rem;
  color: rgba(232, 228, 220, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-row.is-rank-1 {
  background: linear-gradient(90deg, rgba(196, 149, 58, 0.28) 0%, rgba(196, 149, 58, 0.08) 42%, transparent 78%);
}
.lb-row.is-rank-1 .lb-col-rank {
  color: #e8c547;
}
.lb-row.is-rank-2 {
  background: linear-gradient(90deg, rgba(170, 175, 185, 0.22) 0%, rgba(170, 175, 185, 0.07) 42%, transparent 78%);
}
.lb-row.is-rank-2 .lb-col-rank {
  color: #d5d8de;
}
.lb-row.is-rank-3 {
  background: linear-gradient(90deg, rgba(176, 112, 62, 0.26) 0%, rgba(176, 112, 62, 0.08) 42%, transparent 78%);
}
.lb-row.is-rank-3 .lb-col-rank {
  color: #c8894e;
}
.lb-board-actions {
  justify-content: center;
  margin-top: 0.35rem;
}
@media (max-width: 560px) {
  .lb-row {
    grid-template-columns: 2.4rem minmax(0, 1fr) 4.75rem;
    gap: 0.5rem;
    padding: 0.75rem 0.8rem;
  }
  .lb-col-views,
  .lb-col-rank {
    font-size: 0.92rem;
  }
  .lb-avatar {
    width: 2rem;
    height: 2rem;
  }
}

/* Donate / lifetime offers */
.flow-panel[data-flow-panel="donate"].is-active {
  align-items: flex-start;
  padding: 1.25rem 0 3rem;
}
.donate-page {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.donate-hero {
  text-align: center;
  padding: 0 0.5rem;
}
.donate-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #f3eee6;
  margin: 0 0 0.45rem;
}
.donate-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(232, 228, 220, 0.58);
}
.donate-plans,
.donate-products {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
.donate-plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.donate-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.donate-products-head {
  text-align: center;
  margin-top: 0.5rem;
}
.donate-products-title {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 600;
  color: #f3eee6;
  letter-spacing: -0.02em;
}
.donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 1.1rem;
  background: rgba(18, 20, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.donate-card-premium,
.donate-card-featured {
  border-color: rgba(82, 111, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(82, 111, 255, 0.12), transparent 42%),
    rgba(18, 20, 26, 0.96);
}
.donate-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(82, 111, 255, 0.95);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}
.donate-badge-new {
  background: #526fff;
}
.donate-card-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  color: #c9d4ff;
  background: rgba(82, 111, 255, 0.14);
  font-size: 1rem;
}
.donate-card-name {
  margin: 0.15rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f3eee6;
}
.donate-card-name i {
  color: #8ea4ff;
  font-size: 0.9rem;
}
.donate-card-price {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.03em;
}
.donate-card-period {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(232, 228, 220, 0.55);
}
.donate-card-once {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8ea4ff;
}
.donate-card-desc {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(232, 228, 220, 0.58);
  min-height: 2.6em;
}
.donate-features {
  list-style: none;
  margin: 0.25rem 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.donate-features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.86rem;
  color: rgba(243, 238, 230, 0.88);
  line-height: 1.35;
}
.donate-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #526fff;
  font-weight: 800;
}
.donate-card-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
}
.donate-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  flex: 1;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #526fff;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.donate-btn:hover {
  background: #6478ff;
  transform: translateY(-1px);
}
.donate-btn:disabled,
.donate-card-soon .donate-btn {
  cursor: not-allowed;
  opacity: 0.55;
  background: rgba(82, 111, 255, 0.45);
  transform: none;
}
.donate-card-soon {
  opacity: 0.88;
}
.donate-card-soon .donate-badge {
  background: rgba(120, 128, 150, 0.95);
}
.donate-card-soon-msg {
  margin: 0.85rem 0 1.25rem;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 8rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(232, 228, 220, 0.55);
  text-align: center;
}
.donate-gift {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(82, 111, 255, 0.9);
  transition: background 0.15s ease, transform 0.15s ease;
}
.donate-gift:hover {
  background: #6478ff;
  transform: translateY(-1px);
}
@media (max-width: 860px) {
  .donate-products {
    grid-template-columns: 1fr;
  }
  .donate-plans {
    grid-template-columns: 1fr;
  }
}

/* FAQ — Dashboard */
.flow-faq {
  width: min(720px, 100%);
  margin: 2.5rem auto 1rem;
  padding: 0 0.25rem 2rem;
  text-align: center;
}
.flow-faq-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f3eee6;
  margin: 0 0 1.25rem;
}
.flow-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}
.flow-faq-item {
  border-radius: 0.85rem;
  background: rgba(28, 30, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.flow-faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: #f3eee6;
  user-select: none;
}
.flow-faq-q::-webkit-details-marker {
  display: none;
}
.flow-faq-chevron {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(243, 238, 230, 0.7);
  border-bottom: 2px solid rgba(243, 238, 230, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.2rem;
}
.flow-faq-item[open] .flow-faq-chevron {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}
.flow-faq-a {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(232, 228, 220, 0.62);
}
