:root {
  --bg: #07070a;
  --bg-2: #101014;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #9b9ba3;
  --faint: #6b6b74;
  --purple: #c4b5fd;
  --purple-2: #a78bfa;
  --purple-deep: #8b5cf6;
  --glow: rgba(167, 139, 250, 0.45);
  --radius: 18px;
  --font: "Outfit", sans-serif;
  --display: "Syne", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(167, 139, 250, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.has-pointer .cursor-glow { opacity: 1; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse at 28% 42%, #000 0%, transparent 68%);
  animation: grid-drift 28s linear infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.orb-a {
  width: 46vw;
  height: 46vw;
  left: -8%;
  top: 8%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 68%);
  animation: drift 16s var(--ease) infinite alternate;
}

.orb-b {
  width: 32vw;
  height: 32vw;
  right: -6%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.14), transparent 70%);
  animation: drift 20s var(--ease) infinite alternate-reverse;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' 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)'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 2.2rem;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  transition: text-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.brand span { color: var(--purple); }

.brand:hover {
  text-shadow: 0 0 22px var(--glow);
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  position: relative;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-buy {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: var(--purple);
  font-size: 0.85rem;
  transition: background 0.25s var(--ease), color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.nav-buy:hover {
  background: var(--purple);
  color: #120c1c;
  box-shadow: 0 0 24px var(--glow);
  transform: translateY(-1px);
}

.nav-user {
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-user::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 10px var(--glow);
  vertical-align: middle;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(320px, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  padding: 7.5rem 6vw 4.5rem;
}

.hero-visual { animation: enter-left 1s var(--ease) both; }

.float {
  position: relative;
  animation: float 7s ease-in-out infinite;
  transform-style: preserve-3d;
}

.tilt {
  transform: rotateX(8deg) rotateY(16deg);
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
}

.hero-visual:hover .tilt { transition-duration: 0.12s; }

.ring {
  position: relative;
  border-radius: 22px;
  padding: 1px;
  overflow: hidden;
  background: #16161c;
}

.ring-spin {
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0 62%,
    rgba(196, 181, 253, 0.15) 74%,
    #e9d5ff 86%,
    #a78bfa 92%,
    transparent 100%
  );
  animation: spin 7s linear infinite;
}

.shot {
  position: relative;
  margin: 0;
  border-radius: 21px;
  overflow: hidden;
  background: #0c0c0e;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 70px rgba(139, 92, 246, 0.18);
  transition: box-shadow 0.4s var(--ease);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.01);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.hero-visual:hover .shot {
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(196, 181, 253, 0.4),
    0 0 90px rgba(167, 139, 250, 0.38);
}

.hero-visual:hover .shot img {
  transform: scale(1.035);
  filter: saturate(1.08) brightness(1.04);
}

.shot-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: glare 6.2s ease-in-out infinite;
  mix-blend-mode: screen;
}

.visual-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.2s ease-out infinite;
}

.hero-copy { animation: enter-up 1s 0.08s var(--ease) both; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.4rem, 8vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.logo-row { display: block; overflow: hidden; }

.logo-in {
  display: inline-block;
  animation: clip-up 0.9s var(--ease) both;
}

.logo-row:nth-child(2) .logo-in { animation-delay: 0.12s; }

.accent {
  background: linear-gradient(110deg, #f5f3ff 0%, #c4b5fd 28%, #a78bfa 52%, #ddd6fe 74%, #c4b5fd 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: clip-up 0.9s 0.12s var(--ease) both, sheen 7s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(167, 139, 250, 0.35));
}

.lede {
  max-width: 34ch;
  margin-top: 1.35rem;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 8.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}

.btn > span:not(.btn-shine) { position: relative; z-index: 1; }

.btn .btn-shine { position: absolute; }

.btn-shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-130%);
}

.btn:hover .btn-shine {
  transform: translateX(130%);
  transition: transform 0.7s var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, #d8ccff 0%, #b79af8 100%);
  color: #140d1f;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(167, 139, 250, 0.45);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.55);
  background: rgba(167, 139, 250, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-block { width: 100%; justify-content: center; text-align: center; }

.arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.purchase-link:hover .arrow { transform: translateX(5px); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1.5rem;
}

.chips li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.chips li:hover {
  color: var(--purple);
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(167, 139, 250, 0.08);
  transform: translateY(-2px);
}

.features {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.features-head { margin-bottom: 1.5rem; }

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.45rem;
}

.features-head h2,
.closer h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }

.card-index {
  display: block;
  margin-bottom: 1.4rem;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--purple);
  transition: letter-spacing 0.35s var(--ease);
}

.card:hover .card-index { letter-spacing: 0.22em; }

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.15rem;
  font-size: 0.88rem;
  color: var(--purple);
  transition: gap 0.3s var(--ease), color 0.3s;
}

.card-link:hover {
  gap: 0.6rem;
  color: #ddd6fe;
}

.closer {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto 2rem;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer-link {
  color: var(--purple);
  font-size: 0.95rem;
  transition: text-shadow 0.3s, transform 0.3s var(--ease);
}

.footer-link:hover {
  text-shadow: 0 0 16px var(--glow);
  transform: translateX(3px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.8s var(--ease) forwards;
}

.cards .reveal:nth-child(2) { animation-delay: 0.1s; }
.cards .reveal:nth-child(3) { animation-delay: 0.18s; }

/* Auth */
.auth-page .nav { background: transparent; }

.auth-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem 1.25rem 3rem;
}

.auth-card {
  width: min(420px, 100%);
  padding: 1.7rem 1.45rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(167, 139, 250, 0.14), transparent 50%),
    rgba(16, 16, 20, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 50px rgba(139, 92, 246, 0.1);
  animation: pop 0.55s var(--ease) both;
  backdrop-filter: blur(12px);
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.auth-sub {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 1.4rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--faint);
}

.field input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field input::placeholder { color: #555560; }

.field input:hover {
  border-color: var(--line-strong);
}

.field input:focus {
  outline: none;
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
  background: rgba(167, 139, 250, 0.05);
}

.form-error {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 120, 0.3);
  background: rgba(255, 80, 80, 0.08);
  color: #ffb4b4;
  font-size: 0.85rem;
  animation: enter-up 0.35s var(--ease) both;
}

.auth-switch {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.88rem;
}

.auth-switch a {
  color: var(--purple);
  transition: text-shadow 0.25s;
}

.auth-switch a:hover { text-shadow: 0 0 14px var(--glow); }

/* Dashboard */
.dash {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.dash-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.dash-lede {
  max-width: 42ch;
  margin-top: 0.7rem;
  color: var(--muted);
  font-weight: 300;
}

.dash-stat {
  min-width: 110px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: right;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.dash-stat:hover {
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
  transform: translateY(-3px);
}

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

.dash-stat-value {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--purple);
  letter-spacing: -0.04em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.35rem 1.25rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.product-card:hover::before { transform: scaleX(1); }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.product-top .card-index { margin: 0; }

.product-badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.product-badge.owned {
  color: #120c1c;
  background: var(--purple);
  border-color: transparent;
  box-shadow: 0 0 16px var(--glow);
}

.product-badge.locked {
  color: var(--faint);
}

.product-card h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.product-card p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  flex: 1;
}

.product-actions {
  margin-top: 1.25rem;
}

.product-actions .btn { width: 100%; }

.demo-unlock {
  margin-top: 0.65rem;
}

.purchase {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.purchase[hidden] { display: none; }

.purchase-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  animation: fade 0.3s ease both;
}

.purchase-window {
  position: relative;
  width: min(420px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(167, 139, 250, 0.16), transparent 50%),
    #121216;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(139, 92, 246, 0.15);
  animation: pop 0.45s var(--ease) both;
  overflow: hidden;
}

.purchase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.purchase-head h2 {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.icon-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.icon-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: rotate(90deg);
}

.purchase-body { padding: 1.25rem 1.15rem 1.2rem; }

.purchase-lead {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.purchase-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.purchase-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.purchase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--purple-2);
  box-shadow: 0 0 8px var(--glow);
}

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

@keyframes spin { to { transform: rotate(1turn); } }

@keyframes glare {
  0%, 58% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes clip-up {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

@keyframes enter-left {
  from { opacity: 0; transform: translateX(-36px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes enter-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

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

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(76px); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(24px, -28px, 0); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 6.5rem;
    gap: 2.5rem;
  }

  .hero-copy {
    text-align: center;
    order: -1;
  }

  .lede,
  .actions,
  .chips,
  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .actions,
  .chips,
  .eyebrow { justify-content: center; }

  .hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }

  .tilt { transform: none; }

  .cards,
  .product-grid { grid-template-columns: 1fr; }

  .closer,
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-stat { text-align: left; }
}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.1rem; }
  .nav-links a:not(.nav-buy) { display: none; }
  .logo { font-size: clamp(3.6rem, 18vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow { display: none; }
}


/* Profile */
.nav-user-link {
  color: inherit;
}

.nav-user-link:hover .nav-user {
  color: var(--purple);
}

.profile-dash {
  max-width: 980px;
}

.profile-banner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.25rem;
  padding: 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(167, 139, 250, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.03);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.profile-banner:hover {
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

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

.profile-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 181, 253, 0.45);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.25);
  background: #16141f;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.profile-avatar-wrap:hover .profile-avatar {
  transform: scale(1.04);
  box-shadow: 0 0 36px rgba(167, 139, 250, 0.4);
}

.avatar-edit {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.4);
  background: #120f1a;
  color: var(--purple);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.avatar-edit:hover {
  background: var(--purple);
  color: #120c1c;
  box-shadow: 0 0 18px var(--glow);
}

.profile-banner-copy h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.uid-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: rgba(167, 139, 250, 0.08);
  color: var(--purple);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uid-pill strong {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0;
  color: #fff;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 0.9rem;
}

.profile-panel {
  padding: 1.3rem 1.2rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.profile-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 181, 253, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.panel-head {
  margin-bottom: 1rem;
}

.panel-head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.panel-head p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  resize: vertical;
  min-height: 140px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field textarea:hover {
  border-color: var(--line-strong);
}

.field textarea:focus {
  outline: none;
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
  background: rgba(167, 139, 250, 0.05);
}

.char-count {
  margin: 0.45rem 0 1rem;
  text-align: right;
  color: var(--faint);
  font-size: 0.75rem;
}

.form-ok {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
  font-size: 0.85rem;
  animation: enter-up 0.35s var(--ease) both;
}

.profile-products {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.profile-products li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}

.profile-products li:hover {
  transform: translateX(3px);
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(167, 139, 250, 0.06);
}

.profile-products li em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.profile-products li.owned em {
  color: var(--purple);
}

@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-banner {
    flex-direction: column;
    text-align: center;
  }

  .profile-meta {
    justify-content: center;
  }
}


/* Account dashboard */
.account {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.account-hero {
  text-align: center;
  margin-bottom: 1.6rem;
}

.account-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 181, 253, 0.45);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.28);
  margin-bottom: 1rem;
  background: #16141f;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.account-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 36px rgba(167, 139, 250, 0.45);
}

.account-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.account-hero p {
  color: var(--muted);
  font-weight: 300;
}

.account-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow-x: auto;
}

.account-tab,
.account-logout {
  position: relative;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.account-tab:hover,
.account-logout:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.account-tab.is-active {
  color: #fff;
  background: rgba(167, 139, 250, 0.12);
  box-shadow: inset 0 -2px 0 var(--purple-2);
}

.account-logout {
  margin-left: auto;
  color: var(--purple);
}

.account-panel[hidden] {
  display: none !important;
}

.account-panel.is-active {
  animation: enter-up 0.45s var(--ease) both;
}

.panel-card {
  padding: 1.45rem 1.35rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(167, 139, 250, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.panel-card:hover {
  border-color: rgba(196, 181, 253, 0.28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.panel-card h2 {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.3rem;
}

.panel-sub {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.info-grid {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.info-grid.tight {
  margin-bottom: 1.2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.info-row:hover {
  border-color: rgba(196, 181, 253, 0.3);
  background: rgba(167, 139, 250, 0.06);
  transform: translateX(2px);
}

.info-row span {
  color: var(--faint);
  font-size: 0.82rem;
}

.info-row strong {
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.about-box {
  margin-bottom: 1.2rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.about-box span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-box p {
  color: var(--muted);
  font-weight: 300;
}

.acct-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.acct-product {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.65);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.acct-product:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.acct-product-top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.acct-product h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.acct-product p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 300;
  flex: 1;
}

.acct-product .btn {
  width: 100%;
  min-width: 0;
}

.status {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status.ok { color: var(--purple); }
.status.no { color: var(--faint); }

.accordion-list {
  display: grid;
  gap: 0.55rem;
}

.accordion {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.25s;
}

.accordion:hover {
  border-color: rgba(196, 181, 253, 0.3);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  color: var(--purple);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
}

.accordion[open] summary::after {
  transform: rotate(45deg);
}

.accordion p {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.sub-stack {
  display: grid;
  gap: 0.9rem;
}

.sub-card h3.sub-label,
.sub-label {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.active-subs {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}

.sub-row:hover {
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(167, 139, 250, 0.06);
  transform: translateX(2px);
}

.sub-name {
  display: block;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.sub-exp {
  color: var(--faint);
  font-size: 0.8rem;
}

.empty-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.text-link {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.88rem;
  transition: text-shadow 0.25s, color 0.25s;
}

.text-link:hover {
  color: #ddd6fe;
  text-shadow: 0 0 14px var(--glow);
}

.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn-compact {
  min-width: 0;
  padding-left: 1.05rem;
  padding-right: 1.05rem;
}

.field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field select:focus {
  outline: none;
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

@media (max-width: 900px) {
  .acct-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .account-tabs {
    gap: 0.2rem;
  }

  .account-tab,
  .account-logout {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  .sub-actions .btn {
    flex: 1 1 auto;
  }
}


/* Pricing */
.pricing-page {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 3rem;
}

.pricing-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0.4rem 0 1rem;
}

.accent-inline {
  background: linear-gradient(110deg, #f5f3ff 0%, #c4b5fd 35%, #a78bfa 70%, #ddd6fe 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out infinite;
}

.pricing-lede {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.pricing-block {
  margin-bottom: 2.5rem;
}

.pricing-block-head {
  margin-bottom: 1rem;
}

.pricing-block-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.pricing-block-head p {
  color: var(--muted);
  font-weight: 300;
}

.plan-grid {
  display: grid;
  gap: 0.9rem;
}

.full-plans {
  grid-template-columns: 1.15fr 1fr;
}

.solo-plans {
  grid-template-columns: repeat(3, 1fr);
}

.plan-card {
  position: relative;
  overflow: hidden;
  padding: 1.45rem 1.3rem 1.3rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(167, 139, 250, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: transform 0.4s var(--ease), border-color 0.35s, box-shadow 0.4s var(--ease);
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.plan-card.featured {
  border-color: rgba(196, 181, 253, 0.45);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.16);
}

.plan-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: var(--purple);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-product {
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.plan-title {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.55rem;
}

.plan-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--purple);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-price {
  font-family: var(--display);
  font-size: 3.2rem;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1rem;
}

.plan-price .currency {
  font-size: 1.4rem;
  color: var(--purple);
  margin-right: 0.1rem;
  vertical-align: super;
}

.plan-price .period {
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 0.25rem;
  letter-spacing: 0;
  font-family: var(--font);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.plan-features li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--purple-2);
  box-shadow: 0 0 8px var(--glow);
}

.plan-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
  min-height: 2.8em;
  margin-bottom: 1.1rem;
}

.pricing-compare {
  margin-top: 1rem;
}

.compare-card {
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.compare-card h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.compare-table {
  display: grid;
  gap: 0.45rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

.compare-row.head {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  background: transparent;
}

.compare-row .yes {
  color: var(--purple);
}

.pricing-footer {
  max-width: 1040px;
}

/* Forum home */
.forum {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.forum-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.forum-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.3);
  background: rgba(167, 139, 250, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forum-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr;
  gap: 0.9rem;
  align-items: start;
}

.forum-feed {
  display: grid;
  gap: 0.8rem;
}

.announce {
  padding: 1.25rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.announce:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.announce.pin {
  border-color: rgba(196, 181, 253, 0.35);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(167, 139, 250, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.announce-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announce-tag {
  color: #120c1c;
  background: var(--purple);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  box-shadow: 0 0 14px var(--glow);
}

.announce-tag.soft {
  color: var(--purple);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(196, 181, 253, 0.3);
  box-shadow: none;
}

.announce h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.announce p {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 0.55rem;
}

.forum-side {
  display: grid;
  gap: 0.8rem;
}

.side-card {
  padding: 1.1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.side-card:hover {
  border-color: rgba(196, 181, 253, 0.3);
  transform: translateY(-3px);
}

.side-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.8rem;
}

.side-card > a {
  display: block;
  padding: 0.45rem 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.25s, padding-left 0.25s var(--ease);
}

.side-card > a:last-child {
  border-bottom: none;
}

.side-card > a:hover {
  color: var(--purple);
  padding-left: 0.3rem;
}

.side-card p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
  margin-bottom: 0.9rem;
}

.snap-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.snap-row:last-child { border-bottom: none; }
.snap-row span { color: var(--faint); }
.ok-text { color: var(--purple); }

.account-avatar-wrap {
  margin: 0 auto 0.9rem;
  width: fit-content;
}

.account-avatar-wrap .account-avatar,
.account-avatar-wrap .profile-avatar {
  width: 96px;
  height: 96px;
}

@media (max-width: 900px) {
  .full-plans,
  .solo-plans,
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .forum-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Admin */
.admin-wrap { max-width: 1100px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.admin-stats .dash-stat {
  text-align: left;
  min-width: 0;
}
.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}
.admin-form.stacked {
  flex-direction: column;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  flex: 1 1 140px;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}
.admin-form textarea { resize: vertical; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.admin-table code {
  color: var(--purple);
  font-size: 0.82rem;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-actions button {
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.72rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.admin-actions button:hover {
  color: var(--text);
  border-color: rgba(196, 181, 253, 0.4);
}
.admin-actions button.danger:hover {
  color: #ffb4b4;
  border-color: rgba(255, 120, 120, 0.4);
}
.admin-posts {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}
@media (max-width: 900px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

select,
.field select,
.admin-form select {
  color-scheme: dark;
  background: #14141a !important;
  color: var(--text) !important;
  border: 1px solid var(--line);
}

select option,
.field select option,
.admin-form select option {
  background: #14141a;
  color: #f4f4f5;
}

select:focus,
.admin-form select:focus {
  outline: none;
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}


.user-about {
  color: var(--muted);
  font-weight: 300;
  white-space: pre-wrap;
  line-height: 1.6;
}

.user-public-banner .profile-avatar-wrap .avatar-edit {
  display: none;
}
