/* ============================================================
   AnimCore — UI v6
   Plus Jakarta Sans · black / charcoal canvas · flat accents
   ============================================================ */

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --surface-3: #1f1f1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f5f5f5;
  --ink-2: #d4d4d4;
  --muted: #a3a3a3;
  --muted-2: #737373;

  --blue: #3866f5;
  --blue-2: #2450e8;
  --blue-3: #6b8fff;
  --blue-soft: rgba(56, 102, 245, 0.18);
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --red: #ef4444;
  --green: #22c55e;
  --purple: #8b5cf6;
  --orange: #f97316;

  --ok: var(--green);
  --warn: var(--amber);
  --danger: var(--red);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Dela Gothic One", "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 40px 100px rgba(0, 0, 0, 0.65);
  --glow-blue: 0 10px 28px rgba(56, 102, 245, 0.42);
  --wrap: 1320px;
  --gutter: clamp(22px, 4.2vw, 52px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: auto;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
    overflow-y: auto;
  }
  body {
    overflow-x: hidden;
    overflow-y: visible;
  }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(59, 130, 246, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue-3);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted-2);
}

.kicker.plain::before {
  display: none;
}

.mark {
  color: var(--ink);
}

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

.mono {
  font-family: var(--mono);
  font-size: 0.82em;
}

/* ------------------------------------------------------------
   Background
   ------------------------------------------------------------ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Same axis as default avatars (#b3b3b3 → #303030), just much darker. */
  background: linear-gradient(180deg, #161616 0%, #050505 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 8%, #000 0%, rgba(0, 0, 0, 0.45) 42%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 8%, #000 0%, rgba(0, 0, 0, 0.45) 42%, transparent 78%);
}

body > :where(:not(.bg-mesh):not(.bg-noise):not(.bg-grid)) {
  position: relative;
  z-index: 1;
}

.site {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease), filter 0.18s;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4a76ff 0%, var(--blue) 48%, var(--blue-2) 100%);
  border-color: rgba(140, 170, 255, 0.35);
  box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1) saturate(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(56, 102, 245, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Candy CTA — same recipe as .ed-btn-export / .plan-cta */
.btn-candy {
  --plan: var(--blue, #3866f5);
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-color: transparent;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--plan) 72%, #fff),
    var(--plan) 55%,
    color-mix(in srgb, var(--plan) 78%, #000)
  );
  box-shadow:
    0 14px 28px -12px color-mix(in srgb, var(--plan) 56%, transparent),
    0 0 20px -8px color-mix(in srgb, var(--plan) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: scale(0.974, 0.98);
  transform-origin: center center;
  transition: transform 0.28s ease-out, filter 0.28s ease-out;
}

.btn-candy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%);
}

.btn-candy:hover:not(:disabled) {
  transform: scale(1);
  filter: brightness(1.06);
}

.btn-candy:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-white {
  color: #0a0e19;
  background: #fff;
}

.btn-white:hover:not(:disabled) {
  background: #e5e5e5;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(56, 102, 245, 0.14);
  border-color: rgba(107, 143, 255, 0.55);
  color: #fff;
}

/* Liquid glass CTA — same recipe as .plan-stats / pricing glass */
.btn-liquid-glass {
  --glass-frost: 0.1;
  --glass-saturation: 1.2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  border-color: transparent;
  background: hsl(0 0% 0% / var(--glass-frost, 0));
  backdrop-filter: blur(16px) saturate(var(--glass-saturation, 1.2));
  -webkit-backdrop-filter: blur(16px) saturate(var(--glass-saturation, 1.2));
  box-shadow:
    inset 0 0 2px 1px #ffffff59,
    inset 0 0 10px 4px #ffffff26,
    inset 0 4px 16px #11111a0d,
    inset 0 8px 24px #11111a0d,
    inset 0 6px 56px #11111a0d;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn-liquid-glass:hover:not(:disabled) {
  background: hsl(0 0% 100% / 0.08);
  box-shadow:
    inset 0 0 2px 1px #ffffff73,
    inset 0 0 12px 5px #ffffff33,
    inset 0 4px 16px #11111a0d,
    inset 0 8px 24px #11111a0d,
    inset 0 6px 56px #11111a0d;
  transform: translateY(-1px);
}

/* glass-filter-plan disabled for perf */

.btn-soft {
  color: var(--ink);
  background: var(--surface-3);
  border-color: var(--line-2);
}

.btn-soft:hover:not(:disabled) {
  background: #262626;
}

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

.btn-quiet:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.btn-danger {
  color: #ffd6d6;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 107, 107, 0.2);
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.btn-lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 1.08rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.btn .ico,
.ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Pills / states
   ------------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.pill.ok {
  color: #c9f3df;
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.1);
}
.pill.ok .dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.18);
}
.pill.warn {
  color: #ffe6b8;
  border-color: rgba(245, 185, 66, 0.35);
  background: rgba(245, 185, 66, 0.1);
}
.pill.warn .dot {
  background: var(--amber);
}
.pill.danger {
  color: #ffd4d4;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
}
.pill.danger .dot {
  background: var(--red);
}
.pill.blue {
  color: #d3e3ff;
  border-color: rgba(77, 141, 255, 0.4);
  background: var(--blue-soft);
}
.pill.blue .dot {
  background: var(--blue-3);
}
.pill.gold {
  color: #e6d3a8;
  border-color: rgba(196, 164, 108, 0.32);
  background: rgba(196, 164, 108, 0.12);
}
.pill.gold .dot {
  background: #c4a46c;
}
.pill.cyan {
  color: #d7f3ff;
  border-color: rgba(99, 212, 255, 0.35);
  background: rgba(99, 212, 255, 0.1);
}
.pill.cyan .dot {
  background: var(--cyan);
}

/* ------------------------------------------------------------
   Toasts
   ------------------------------------------------------------ */
.toast-host {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 12px 12px 0;
  border-radius: 14px;
  background: rgba(15, 21, 34, 0.96);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(16px);
  animation: toastIn 0.3s var(--ease);
  transition: opacity 0.18s, transform 0.18s;
}

.toast-bar {
  align-self: stretch;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
}
.toast.ok .toast-bar {
  background: var(--green);
}
.toast.warn .toast-bar {
  background: var(--amber);
}
.toast.error .toast-bar {
  background: var(--red);
}
.toast.info .toast-bar {
  background: var(--cyan);
}

.toast strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.toast p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.toast-close {
  color: var(--muted-2);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 12px;
}
.toast-close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.96);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  filter: blur(12px);
  will-change: opacity, transform, filter;
}
.reveal.is-in {
  animation: revealIn 1.05s var(--ease-out) both;
}
.reveal-d1.is-in { animation-delay: 0.1s; }
.reveal-d2.is-in { animation-delay: 0.2s; }
.reveal-d3.is-in { animation-delay: 0.3s; }
.reveal-d4.is-in { animation-delay: 0.4s; }
.reveal-d5.is-in { animation-delay: 0.5s; }
.reveal-d6.is-in { animation-delay: 0.6s; }

.hero-copy > * {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) both;
}
.hero-copy > :nth-child(1) { animation-delay: 0.1s; }
.hero-copy > :nth-child(2) { animation-delay: 0.22s; }
.hero-copy > :nth-child(3) { animation-delay: 0.34s; }
.hero-copy > :nth-child(4) { animation-delay: 0.46s; }
.hero-copy > :nth-child(5) { animation-delay: 0.58s; }

.view {
  animation: viewIn 0.55s var(--ease-out) both;
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.view.is-leaving {
  animation: viewOut 0.28s var(--ease) both;
}
@keyframes viewOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

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

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 200;
  width: auto;
  max-width: var(--wrap);
  margin: 0 auto;
  border-radius: 20px;
  isolation: isolate;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 40px rgba(0, 0, 0, 0.38);
}

.header-inner {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px 0 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark-text {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
  flex-shrink: 0;
}

.wordmark-mark img,
.wordmark-logo {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.wordmark-mark svg {
  width: 36px;
  height: 36px;
  display: block;
}

.header-nav {
  display: flex;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.15;
  transition: border-color 0.15s, background 0.15s;
}

.account-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.account-pill .avatar {
  width: 30px;
  height: 30px;
}

.account-pill span {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
}

.account-pill small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(rgb(179, 179, 179), rgb(48, 48, 48));
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  flex: 0 0 auto;
  line-height: 1;
}

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

.menu-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(88px, 12vh, 132px) 0 clamp(40px, 6vh, 72px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  animation: none;
}

.hero-copy .kicker {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(3rem, 5.8vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.14rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* Hero stage: main preview + floating parameter cards */
.hero-stage {
  position: relative;
  animation: fadeUp 0.9s 0.1s var(--ease) both;
  padding: 26px 26px 26px 0;
}

.hero-stage .main {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #020409;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-2);
}

.hero-stage .main video {
  min-width: 30px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.hero-stage .main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(2, 4, 9, 0.7));
  pointer-events: none;
}

.stage-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-caption .pill {
  background: rgba(7, 10, 18, 0.7);
  backdrop-filter: blur(8px);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(15, 21, 34, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-1);
  animation: floatY 6s ease-in-out infinite;
}

.float-card label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.float-card .val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.float-card .val .caret {
  width: 2px;
  height: 14px;
  background: var(--blue-3);
  animation: pulse 1s steps(2) infinite;
}

.float-card.a {
  top: -6px;
  right: 0;
  animation: fadeUp 0.85s 0.35s var(--ease-out) both, floatY 6.5s 1.4s ease-in-out infinite;
}

.float-card.b {
  bottom: 8px;
  left: -22px;
  animation: fadeUp 0.85s 0.5s var(--ease-out) both, floatY 7s 1.6s ease-in-out infinite;
}

.float-card .swatches {
  display: flex;
  gap: 6px;
}

.float-card .swatches i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid transparent;
}

.float-card .swatches i.on {
  border-color: #fff;
}

.float-card .mini-bar {
  width: 150px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.float-card .mini-bar i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.trust {
  margin-top: clamp(48px, 8vh, 88px);
  padding: clamp(40px, 6vh, 64px) 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-unity {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.trust-unity-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0 0 clamp(10px, 2vw, 18px);
}

.trust-unity-lottie {
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.trust-unity-lottie canvas,
.trust-unity-lottie svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.trust-unity-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.trust-unity-kicker {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.trust-unity-title {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
  text-wrap: balance;
}

.trust-unity-punch {
  margin: 6px 0 0;
  max-width: 28ch;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.94);
}

.trust-unity-note {
  margin: clamp(28px, 4vw, 40px) 0 0;
  width: 100%;
  max-width: 46rem;
  padding: 0 12px;
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  text-wrap: pretty;
}

.trust-unity-like {
  display: inline;
  margin-left: 0.28em;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  vertical-align: -0.05em;
  font-size: 1.15em;
}


/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section {
  padding: clamp(64px, 9vw, 112px) 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head .kicker {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  letter-spacing: -0.042em;
  max-width: 24ch;
  text-wrap: balance;
}

.section-head .sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

.section-head .aside {
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Catalog
   ------------------------------------------------------------ */
.catalog-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.search {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 40px;
  border-radius: 14px;
  border: 0;
  color: #fff;
  outline: none;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--blue, #3b82f6) 28%, #1a1a22),
    color-mix(in srgb, var(--blue, #3b82f6) 14%, #0e0e14) 55%,
    #0a0a10
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.search input:focus {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 2px color-mix(in srgb, var(--blue, #3b82f6) 45%, transparent);
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.search svg {
  color: rgba(255, 255, 255, 0.45);
}

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

.chip {
  --kind: var(--blue, #3b82f6);
  position: relative;
  isolation: isolate;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--kind) 34%, #1a1a22),
    color-mix(in srgb, var(--kind) 18%, #0e0e14) 55%,
    #0a0a10
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%);
}
.chip:nth-child(4n + 1) { --kind: var(--blue, #3b82f6); }
.chip:nth-child(4n + 2) { --kind: #22c55e; }
.chip:nth-child(4n + 3) { --kind: #f59e0b; }
.chip:nth-child(4n + 4) { --kind: #c800ff; }
.chip:hover {
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--kind) 48%, #2a2a34),
    color-mix(in srgb, var(--kind) 28%, #12121a) 55%,
    #0c0c14
  );
}
.chip.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--kind) 72%, #fff),
    var(--kind) 55%,
    color-mix(in srgb, var(--kind) 78%, #000)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.chip.active::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%);
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#library > .wrap {
  width: min(1520px, calc(100% - clamp(16px, 2.5vw, 36px) * 2));
}

.anim-card {
  display: grid;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.anim-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0e16;
  overflow: hidden;
}

.anim-card[data-template="minecrafttext"] .thumb,
.anim-card[data-template="taskcontent"] .thumb {
  background: #0a0e16;
}

.thumb.thumb-light-bg .thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.thumb.thumb-light-bg .thumb-video {
  position: relative;
  z-index: 1;
  background: transparent;
}

.light-bg-master {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: 0;
}

.thumb video {
  min-width: 30px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid rgba(160, 190, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-3);
}

.card-body {
  padding: 16px 18px 18px;
}

.card-body h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card-body p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.card-meta {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.card-meta .pill {
  min-height: 22px;
  padding: 0 8px;
  font-size: 0.68rem;
}

.empty-search {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
}

/* ------------------------------------------------------------
   How it works (timeline)
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 15%, rgba(255, 255, 255, 0.16) 85%, transparent);
}

.tl-step {
  position: relative;
  padding-top: 6px;
}

.tl-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 0 0 6px var(--bg);
  margin-bottom: 20px;
}

.tl-step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tl-step p {
  color: var(--muted);
  font-size: 0.94rem;
}

.tl-step .pill {
  margin-top: 14px;
}

/* ------------------------------------------------------------
   Showcase (editor mock)
   ------------------------------------------------------------ */
.showcase {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.showcase-bar .crumb {
  color: var(--muted);
  font-size: 0.82rem;
}

.showcase-bar .crumb b {
  color: var(--ink);
  font-weight: 600;
}

.showcase-bar .right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.showcase-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.showcase-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-right: 1px solid var(--line);
}

.showcase-stage video {
  min-width: 30px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.showcase-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
}

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

.mock-field div {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.84rem;
}

.mock-swatches {
  display: flex;
  gap: 8px;
}

.mock-swatches i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.mock-swatches i.on {
  border-color: #fff;
}

/* ------------------------------------------------------------
   Features — staggered spotlights
   ------------------------------------------------------------ */
.spotlight {
  display: flex;
  align-items: center;
  gap: 0 6.4px;
  width: 100%;
  max-width: none;
}

.spotlight + .spotlight {
  margin-top: 76.8px;
}

.spotlight.is-left {
  margin-left: calc(50% - 50vw + 44px);
  width: calc((50vw - 44px + 52%) * 0.8);
}

.spotlight.is-right {
  margin-left: auto;
  margin-right: calc(50% - 50vw + 44px);
  width: calc((50vw - 44px + 52%) * 0.8);
  flex-direction: row-reverse;
  text-align: right;
}

.spotlight img {
  display: block;
  width: 36.8vw;
  max-width: none;
  height: auto;
  flex: 0 0 36.8vw;
  pointer-events: none;
  user-select: none;
}

.spotlight-copy {
  min-width: 0;
  max-width: 32ch;
  position: relative;
  z-index: 1;
}

.spotlight.is-right .spotlight-copy {
  margin-left: auto;
}

.spotlight h3 {
  font-size: clamp(1.76rem, 2.8vw, 2.184rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10.4px;
}

.spotlight p {
  color: var(--muted);
  font-size: 1.328rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .spotlight,
  .spotlight.is-right {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6.4px;
  }

  .spotlight.is-right .spotlight-copy {
    margin-left: 0;
  }

  .spotlight img {
    width: min(100%, 336px);
    flex-basis: auto;
  }
}

.feature {
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.feature .ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.feature:nth-child(6n + 1) .ic { background: rgba(59, 130, 246, 0.14); color: var(--blue); }
.feature:nth-child(6n + 2) .ic { background: rgba(34, 197, 94, 0.14); color: var(--green); }
.feature:nth-child(6n + 3) .ic { background: rgba(245, 158, 11, 0.14); color: var(--amber); }
.feature:nth-child(6n + 4) .ic { background: rgba(239, 68, 68, 0.14); color: var(--red); }
.feature:nth-child(6n + 5) .ic { background: rgba(139, 92, 246, 0.14); color: var(--purple); }
.feature:nth-child(6n + 6) .ic { background: rgba(6, 182, 212, 0.14); color: var(--cyan); }

.feature .ic svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------
   Pricing — wiki-style soft cards + CTA
   ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
  padding-top: 32px;
}

.pricing-grid-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-inline: auto;
  padding-top: 28px;
}

.pricing-grid-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1320px;
  margin-inline: auto;
  gap: 28px;
  padding-top: 36px;
}

.pricing-grid-quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1480px;
  margin-inline: auto;
  gap: 22px;
  padding-top: 36px;
}

.pricing-page {
  padding: clamp(108px, 14vh, 148px) 0 72px;
  min-height: calc(100vh - 120px);
}

.pricing-page.is-loading .cmp-title,
.pricing-page.is-loading #pricingRoot,
.pricing-page.is-loading .pricing-note {
  visibility: hidden;
}

body:has(.pricing-page.is-loading) .site-footer {
  opacity: 0;
  pointer-events: none;
}

.pricing-reveal {
  opacity: 0;
  transform: translateY(16px);
}

.pricing-page.is-ready .pricing-reveal {
  animation: pricingIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 95ms);
}

.pricing-page.is-settled .pricing-reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

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

.pricing-page > .wrap {
  width: min(1380px, calc(100% - 40px));
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0 8px;
}

.billing-opt {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.billing-opt.is-on {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.billing-save {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #04240f;
  background: #00ff7a;
}

.price-shell {
  --plan: #a3a3a3;
  --plan-soft: rgba(163, 163, 163, 0.18);
  --plan-deep: #737373;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}

.price-shell.accent-gray {
  --plan: #e8eef8;
  --plan-soft: rgba(232, 238, 248, 0.16);
  --plan-deep: #9aa6b8;
}

.price-shell.accent-blue {
  --plan: #00c8ff;
  --plan-soft: rgba(0, 200, 255, 0.22);
  --plan-deep: #0094ff;
}

.price-shell.accent-green {
  --plan: #00ff7a;
  --plan-soft: rgba(0, 255, 122, 0.2);
  --plan-deep: #00d45c;
}

.price-shell.accent-red {
  --plan: #ff2d55;
  --plan-soft: rgba(255, 45, 85, 0.22);
  --plan-deep: #ff1140;
}

.price-shell.is-featured {
  padding: 1.5px;
  background: var(--plan);
  border-radius: 0 0 20px 20px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--plan) 40%, transparent),
    0 8px 20px -8px color-mix(in srgb, var(--plan) 40%, transparent),
    0 0 26px -2px color-mix(in srgb, var(--plan) 32%, transparent);
}

.price-shell-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1.5px);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px 2px;
  color: #04240f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  border-radius: 20px 20px 0 0;
  background: var(--plan);
}

.price-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  padding: 30px 26px 24px;
  border-radius: 20px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(37, 37, 37, 0.65) 100%), #050505;
  isolation: isolate;
}

.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 140deg at 50% 50%,
    rgba(255, 255, 255, 0.35) 0deg,
    rgba(255, 255, 255, 0.05) 90deg,
    rgba(255, 255, 255, 0.35) 180deg,
    rgba(255, 255, 255, 0.05) 270deg,
    rgba(255, 255, 255, 0.35) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.price-shell.accent-red .price-card::after {
  background: conic-gradient(
    from 140deg at 50% 50%,
    rgba(255, 45, 85, 0.75) 0deg,
    rgba(255, 45, 85, 0.12) 90deg,
    rgba(255, 80, 110, 0.65) 180deg,
    rgba(255, 45, 85, 0.1) 270deg,
    rgba(255, 45, 85, 0.75) 360deg
  );
}

.price-shell.accent-red .price-card {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 45, 85, 0.18) 100%),
    #050505;
  box-shadow: none;
}

/* Lite — same light-rim frame as Ultra, blue */
.price-shell.accent-blue .price-card::after {
  background: conic-gradient(
    from 140deg at 50% 50%,
    rgba(0, 200, 255, 0.8) 0deg,
    rgba(0, 200, 255, 0.12) 90deg,
    rgba(140, 220, 255, 0.7) 180deg,
    rgba(0, 148, 255, 0.1) 270deg,
    rgba(0, 200, 255, 0.8) 360deg
  );
}

.price-shell.accent-blue .price-card {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 200, 255, 0.14) 100%),
    #050505;
  border: 0;
  box-shadow: none;
}

/* Pro — same light-rim frame, green */
.price-shell.accent-green .price-card::after {
  background: conic-gradient(
    from 140deg at 50% 50%,
    rgba(0, 255, 122, 0.8) 0deg,
    rgba(0, 255, 122, 0.12) 90deg,
    rgba(140, 255, 190, 0.7) 180deg,
    rgba(0, 212, 92, 0.1) 270deg,
    rgba(0, 255, 122, 0.8) 360deg
  );
}

.price-shell.accent-green .price-card {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 255, 122, 0.14) 100%),
    #050505;
  border: 0;
  box-shadow: none;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--plan) 16%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--plan) 16%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.25;
  mask-image: linear-gradient(165deg, #000 0%, rgba(0, 0, 0, 0.18) 48%, transparent 82%);
  -webkit-mask-image: linear-gradient(165deg, #000 0%, rgba(0, 0, 0, 0.18) 48%, transparent 82%);
}

.plan-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.plan-diamond {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.95))
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7))
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
}

.price-shell.is-featured .price-card {
  border: 0;
  border-radius: 19px;
}

.plan-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.plan-inner-leo {
  gap: 22px;
}

.plan-head {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.plan-head-leo {
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.plan-head-leo .plan-badge {
  justify-self: center;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.plan-name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-head-leo .plan-name {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 0;
}

.plan-head-leo .plan-desc {
  max-width: 28ch;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.plan-head-leo .plan-price {
  --glass-frost: 0.1;
  --glass-saturation: 1.2;
  box-sizing: border-box;
  width: 100%;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 18px 14px;
  border-radius: 22px;
  background: hsl(0 0% 0% / var(--glass-frost, 0));
  backdrop-filter: blur(16px) saturate(var(--glass-saturation, 1.2));
  -webkit-backdrop-filter: blur(16px) saturate(var(--glass-saturation, 1.2));
  box-shadow:
    inset 0 0 2px 1px #ffffff59,
    inset 0 0 10px 4px #ffffff26,
    inset 0 4px 16px #11111a0d,
    inset 0 8px 24px #11111a0d,
    inset 0 6px 56px #11111a0d;
}

.plan-head-leo .plan-price b {
  font-size: clamp(1.85rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan-head-leo .plan-cta {
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
}

.plan-head-leo .plan-price-year {
  flex-basis: auto;
  margin-top: 0;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}

.plan-badge.is-free {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.plan-badge.is-hot {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
}

.plan-badge.is-ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
}

.plan-badge.is-warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
}

.plan-stats {
  --glass-frost: 0.1;
  --glass-saturation: 1.2;
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 28px;
  color: #fff;
  background: hsl(0 0% 0% / var(--glass-frost, 0));
  backdrop-filter: blur(16px) saturate(var(--glass-saturation, 1.2));
  -webkit-backdrop-filter: blur(16px) saturate(var(--glass-saturation, 1.2));
  box-shadow:
    inset 0 0 2px 1px #ffffff59,
    inset 0 0 10px 4px #ffffff26,
    inset 0 4px 16px #11111a0d,
    inset 0 8px 24px #11111a0d,
    inset 0 6px 56px #11111a0d;
}

/* glass-filter-plan disabled for perf */

.plan-stat {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 2px;
}

.plan-stat + .plan-stat {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-stat.is-anims {
  min-height: 58px;
  padding-block: 8px;
}

.plan-stat.is-anims .plan-stat-label {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}

.plan-stat.is-anims .plan-stat-ico {
  width: 18px;
  height: 18px;
  color: #fff;
  opacity: 0.92;
}

.plan-stat.is-anims .plan-stat-value.is-check {
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.plan-stat.is-lead .plan-stat-value {
  font-size: 1.35rem;
  color: var(--plan);
}

.plan-stat.is-off .plan-stat-value {
  color: #ff4d67;
  font-size: 1.2rem;
}

.plan-stat-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.plan-tip {
  position: relative;
  cursor: help;
}

.plan-tip-text {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}

.plan-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: max(220px, 100%);
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.plan-tip:hover::after,
.plan-tip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.plan-stat-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

img.plan-stat-ico,
.plan-stat-ico-logo {
  display: block;
  object-fit: contain;
}

.plan-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-align: right;
  flex-shrink: 0;
}

.plan-stat-value.is-check {
  display: inline-grid;
  place-items: center;
  color: var(--plan);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--plan) 55%, transparent));
}

.plan-check {
  width: 1.55rem;
  height: 1.55rem;
}

.glass-surface__filter {
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

.plan-foot {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1;
}

.plan-price b {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.plan-price span {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-price-save {
  color: #00ff7a !important;
  font-weight: 800 !important;
}

.plan-price-year {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 0.78rem !important;
}

.plan-cta {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--plan) 72%, #fff),
    var(--plan) 55%,
    color-mix(in srgb, var(--plan) 78%, #000)
  );
  box-shadow:
    0 14px 28px -12px color-mix(in srgb, var(--plan) 56%, transparent),
    0 0 20px -8px color-mix(in srgb, var(--plan) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: scale(0.974, 0.98);
  transform-origin: center center;
  will-change: transform;
  transition:
    transform 0.35s ease-out,
    filter 0.35s ease-out,
    box-shadow 0.45s ease;
}

.plan-cta-shine {
  position: absolute;
  z-index: 0;
  top: -40%;
  bottom: -40%;
  right: 12%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.12) 65%,
    transparent 100%
  );
  transform: skewX(-22deg) scale(1.15);
  opacity: 0.75;
  transition: transform 0.5s ease, right 0.5s ease, opacity 0.5s ease;
}

.plan-cta:hover:not(:disabled) .plan-cta-shine {
  transform: skewX(-22deg) scale(1.45);
  right: 78%;
  opacity: 1;
}

.plan-cta-label,
.plan-cta-arrow {
  position: relative;
  z-index: 1;
}

.plan-cta:hover:not(:disabled) {
  transform: scale(1);
  filter: brightness(1.04);
  box-shadow:
    0 0 60px color-mix(in srgb, var(--plan) 72%, transparent),
    0 14px 28px -10px color-mix(in srgb, var(--plan) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.plan-cta:disabled {
  opacity: 0.55;
  cursor: default;
  filter: grayscale(0.15);
  transform: scale(0.974, 0.98);
  box-shadow: none;
}

.plan-cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.plan-cta-arrow svg {
  width: 14px;
  height: 14px;
}

.price-card.accent-gray .plan-cta {
  color: #04140b;
}

.price-card.accent-gray .plan-cta-arrow {
  background: rgba(0, 0, 0, 0.12);
  color: #04140b;
}

.ent-band {
  --plan: #e8eef8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px 48px;
  align-items: center;
  margin-top: 56px;
  padding: 32px 32px 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(100% 120% at 0% 50%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
}

.ent-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ent-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ent-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36ch;
}

.ent-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}

.ent-field {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.ent-field-full {
  grid-column: 1 / -1;
}

.ent-field input,
.ent-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ent-field input:focus,
.ent-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.ent-submit {
  --plan: #e8eef8;
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #04140b;
}

.ent-submit .plan-cta-arrow {
  background: rgba(0, 0, 0, 0.12);
  color: #04140b;
}

.ent-form.is-sending .ent-submit {
  opacity: 0.85;
}

.ent-success {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  min-height: 200px;
  padding: 24px 16px;
  animation: ultraPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ent-success[hidden] {
  display: none !important;
}

.ent-success-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  color: #00ff7a;
  background: rgba(0, 255, 122, 0.12);
  border: 1px solid rgba(0, 255, 122, 0.28);
  box-shadow: 0 0 40px rgba(0, 255, 122, 0.25);
  margin-bottom: 6px;
}

.ent-success-check .plan-check {
  width: 28px;
  height: 28px;
}

.ent-success-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.ent-success-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 34ch;
}

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

.pricing-note {
  margin-top: 64px;
  color: var(--muted-2);
  font-size: 0.86rem;
  text-align: center;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.powered-by img {
  height: 22px;
  width: auto;
  opacity: 0.95;
  display: block;
}

.redeem-bar {
  margin: 28px auto 0;
  max-width: 520px;
  padding: 18px 18px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
}

.redeem-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.redeem-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.redeem-row .input {
  flex: 1 1 200px;
  min-width: 0;
}

.redeem-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: start;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  contain: layout style;
  transition: border-color 0.25s ease;
}

.faq-item.is-open {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-q {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
}

.faq-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}

.faq-item.is-open .faq-ico {
  transform: rotate(45deg);
  color: #93c5fd;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease,
    padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-a-inner {
  padding: 0 20px 18px;
  opacity: 1;
  transform: none;
}

.flag {
  width: 1.25em;
  height: 1.25em;
  object-fit: cover;
  border-radius: 3px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.15em;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.lang-opt:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.lang-opt .flag {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-select-wrap .flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
}

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 5vw, 56px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(700px 320px at 0% 100%, rgba(255, 255, 255, 0.05), transparent 65%),
    var(--surface);
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.04em;
  max-width: 22ch;
  text-wrap: balance;
}

.cta p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 50ch;
}

.cta .hero-actions {
  margin: 0;
  justify-content: flex-end;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  margin-top: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 36px;
  padding: 56px 0 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--blue-3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-bottom--legal {
  align-items: flex-start;
}

.footer-legal {
  max-width: 58ch;
  line-height: 1.55;
}

.footer-legal p {
  margin: 0 0 4px;
}

.footer-legal a {
  color: var(--ink-2);
}

.footer-legal a:hover {
  color: var(--blue-3);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-legal-links a {
  color: var(--ink-2);
  font-size: 0.88rem;
}

.footer-legal-links a:hover {
  color: var(--blue-3);
}

/* Legal docs */
.legal-page {
  padding: 40px 0 72px;
  min-height: 60vh;
}

.legal-wrap {
  max-width: 760px;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.legal-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
}

.legal-tabs a:hover {
  border-color: rgba(110, 166, 255, 0.45);
  color: #fff;
}

.legal-tabs a.is-active {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(110, 166, 255, 0.45);
  color: #fff;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-block {
  margin-bottom: 22px;
}

.legal-block h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.legal-block p {
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

.legal-block a {
  color: var(--blue-3);
}

.legal-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: var(--ink-2);
  line-height: 1.65;
}

.legal-list li {
  margin: 4px 0;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
}

.cookie-bar-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 12, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.cookie-bar-inner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-bar-inner a {
  color: var(--blue-3);
}

.cookie-bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Editor — immersive layout (ccLeaf-inspired, AnimCore chrome)
   ------------------------------------------------------------ */
.editor-view {
  --ed-bg: #080808;
  --ed-panel: #121214;
  --ed-panel-2: #161618;
  --ed-elev: #1a1a1e;
  --ed-chip: #202226;
  --ed-line: rgba(255, 255, 255, 0.06);
  --ed-line-2: rgba(255, 255, 255, 0.1);
  --ed-muted: #abb0c0;
  --ed-muted-2: #656975;
  padding: 0;
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  background: var(--ed-bg);
  overflow: hidden;
  color: #f5f5f5;
}

/* ── Toolbar ── */
.ed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 14px 0 12px;
  background: var(--ed-panel);
  border-bottom: 1px solid var(--ed-line);
  flex-shrink: 0;
  z-index: 10;
}

.ed-toolbar-left,
.ed-toolbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ed-toolbar-left {
  gap: 10px;
  flex: 1;
}

.ed-toolbar-right {
  gap: 10px;
  flex-shrink: 0;
}

.ed-back-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ed-line-2);
  color: var(--ed-muted);
  transition: background 0.18s var(--ease), color 0.18s, border-color 0.18s;
  cursor: pointer;
  flex-shrink: 0;
}
.ed-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.ed-back-btn svg {
  width: 16px;
  height: 16px;
}

.ed-toolbar-sep {
  width: 1px;
  height: 18px;
  background: var(--ed-line-2);
  flex-shrink: 0;
}

.ed-toolbar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ed-toolbar-mark img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.ed-toolbar-title {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.ed-toolbar-meta {
  color: var(--ed-muted-2);
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.ed-toolbar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--ed-line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ed-muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.ed-toolbar-pill.is-ok {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.ed-quota-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ed-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: min(340px, 42vw);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  user-select: none;
  pointer-events: none;
}
.ed-quota-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue-3);
}
.ed-quota-ico svg {
  width: 15px;
  height: 15px;
}
.ed-quota-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-quota-chip.is-ok {
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}
.ed-quota-chip.is-ok .ed-quota-ico {
  color: #60a5fa;
}
.ed-quota-chip.is-warn {
  color: #ffe7b8;
  border-color: rgba(245, 185, 66, 0.35);
  background: rgba(245, 185, 66, 0.1);
}
.ed-quota-chip.is-warn .ed-quota-ico {
  color: #f5b942;
}
.ed-quota-chip.is-hot {
  color: #ffd4d4;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
}
.ed-quota-chip.is-hot .ed-quota-ico {
  color: #ff6b6b;
}
.ed-quota-chip .ed-quota-num {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* legacy alias if anything still targets it */
.ed-status-dot { display: none; }

/* ── Body grid ── */
.ed-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Center column ── */
.ed-center {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(59, 130, 246, 0.04), transparent 55%),
    var(--ed-bg);
}

.ed-deck {
  flex-shrink: 0;
  background: var(--ed-panel);
  border-top: 1px solid var(--ed-line);
  padding: 4px 0 12px;
}

.ed-canvas-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 32px 8px;
  min-height: 0;
  gap: 0;
}

.ed-canvas {
  position: relative;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background-color: #050506;
  background-image:
    linear-gradient(45deg, #121214 25%, transparent 25%),
    linear-gradient(-45deg, #121214 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #121214 75%),
    linear-gradient(-45deg, transparent 75%, #121214 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.ed-canvas.is-light-preview {
  background-color: #0a0e16;
  background-image: none;
}

.ed-canvas .stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: none;
}

.ed-canvas.is-light-preview .stage-bg:not([hidden]) {
  display: block;
}

.ed-canvas video,
.ed-canvas .stage-still {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.ed-canvas #player {
  position: relative;
  z-index: 1;
}
.ed-canvas .stage-still {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ed-canvas.is-light-preview .stage-empty {
  background: rgba(8, 8, 8, 0.28);
}

.stage-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 14px;
}

/* ── Transport controls ── */
.ed-transport {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 32px 4px;
  flex-shrink: 0;
}

.ed-transport-mute {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ed-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.ed-transport-mute svg {
  width: 16px;
  height: 16px;
}
.ed-transport-mute:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.ed-transport-time {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ed-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.ed-transport-time #edTimeNow {
  color: #fff;
}

.ed-transport-play {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #60a5fa, #2563eb 55%, #1d4ed8);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.2s, filter 0.16s;
  flex-shrink: 0;
  box-shadow:
    0 10px 24px -10px rgba(37, 99, 235, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.ed-transport-play:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.06);
}
.ed-transport-play:active {
  transform: scale(0.96);
}
.ed-transport-play svg {
  width: 16px;
  height: 16px;
}
.ed-transport-play .ico-play {
  margin-left: 2px;
  display: block;
}
.ed-transport-play .ico-pause {
  display: none;
}
.ed-transport-play.is-playing .ico-play {
  display: none;
}
.ed-transport-play.is-playing .ico-pause {
  display: block;
  margin-left: 0;
}

.ed-transport-mute {
  position: relative;
}
.ed-transport-mute .ico-vol,
.ed-transport-mute .ico-mute {
  width: 16px;
  height: 16px;
}
.ed-transport-mute .ico-vol { display: block; }
.ed-transport-mute .ico-mute { display: none; }
.ed-transport-mute.is-muted .ico-vol { display: none; }
.ed-transport-mute.is-muted .ico-mute { display: block; }

/* ── Timeline (also seek bar) ── */
.ed-timeline {
  padding: 6px 32px 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ed-timeline-track {
  position: relative;
  width: 100%;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ed-chip);
  border: 1px solid var(--ed-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.ed-timeline-clip {
  position: absolute;
  inset: 4px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(135deg, #3b82f6, #2563eb 70%, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ed-clip-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.ed-clip-label {
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  font-weight: 750;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 0 12px;
}

.ed-timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  z-index: 2;
  pointer-events: none;
  transition: none;
}
.ed-timeline-playhead::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 2px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* ── Audio waveform ── */
.ed-waveform-wrap {
  position: relative;
  height: 52px;
  flex-shrink: 0;
  margin: 8px 32px 0;
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 100%, rgba(100, 100, 100, 0.08), var(--ed-chip));
  border: 1px solid var(--ed-line);
  overflow: hidden;
}

.ed-waveform {
  display: block;
  width: 100%;
  height: 100%;
}

.ed-waveform-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 2px;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition: none;
}

/* ── Properties panel ── */
.ed-props {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(59, 130, 246, 0.08), transparent 45%),
    radial-gradient(90% 50% at 0% 100%, rgba(244, 114, 182, 0.06), transparent 50%),
    var(--ed-panel);
  border-left: 1px solid var(--ed-line);
  overflow: hidden;
}

.ed-props-tabs {
  padding: 12px 12px 0;
  flex-shrink: 0;
}

.ed-tabs-track {
  position: relative;
  display: flex;
  width: 100%;
  padding: 3px;
  border-radius: 8px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.ed-tabs-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 5px;
  background: color-mix(in srgb, var(--tab, #00c8ff) 28%, #111);
  border: 1px solid color-mix(in srgb, var(--tab, #00c8ff) 70%, transparent);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--tab, #00c8ff) 45%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--tab, #00c8ff) 35%, transparent);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  pointer-events: none;
  z-index: 0;
}

.ed-props-tabs button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 6px;
  font-size: 0.74rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.ed-props-tabs button:hover {
  color: rgba(255, 255, 255, 0.82);
}
.ed-props-tabs button.on {
  color: #fff;
  text-shadow: 0 0 14px color-mix(in srgb, var(--tab, #00c8ff) 55%, transparent);
}
.ed-props-tabs button[hidden] { display: none !important; }

.ed-tab-ico {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--tab, #00c8ff);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tab, #00c8ff) 55%, transparent));
  transition: color 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}
.ed-tab-ico svg {
  width: 15px;
  height: 15px;
}
.ed-props-tabs button:hover .ed-tab-ico {
  transform: scale(1.06);
}
.ed-props-tabs button.on .ed-tab-ico {
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
  transform: scale(1.08);
}

.ed-props-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 12px 0;
  padding: 0 12px;
  min-height: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.ed-props-search:focus-within {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.ed-props-search svg {
  width: 15px;
  height: 15px;
  color: var(--ed-muted-2);
  flex-shrink: 0;
}
.ed-props-search input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
}
.ed-props-search input::placeholder {
  color: var(--ed-muted-2);
}

.ed-props-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 18px;
  display: grid;
  gap: 12px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.ed-props-body::-webkit-scrollbar { width: 5px; }
.ed-props-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
}

.ed-props .panel-fields {
  display: grid;
  gap: 14px;
}

/* Candy field shells — same gradient recipe as .ed-btn-export */
.ed-props .ed-card,
.ed-props .field.ed-card {
  --kind: var(--blue, #3b82f6);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 15px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--kind) 72%, #fff),
    var(--kind) 55%,
    color-mix(in srgb, var(--kind) 78%, #000)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.ed-props .ed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    transparent 42%
  );
  z-index: 0;
}
/* Hover brighten without CSS filter (filter traps position:fixed color pop). */
.ed-props .ed-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: #fff;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.28s ease;
}
.ed-props .ed-card > * {
  position: relative;
  z-index: 1;
}
.ed-props .ed-card.kind-text { --kind: var(--blue, #3b82f6); }
.ed-props .ed-card.kind-media {
  --kind: #ff4d00;
  /* Darker shell so copy/drop UI stay readable on electric orange */
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--kind) 48%, #1a120c),
    color-mix(in srgb, var(--kind) 32%, #0e0a08) 55%,
    #0a0806
  );
  box-shadow: inset 0 1px 0 rgba(255, 200, 120, 0.22);
}
.ed-props .ed-card.kind-media::before {
  background: linear-gradient(180deg, rgba(255, 160, 60, 0.22), transparent 48%);
}
.ed-props .ed-card.kind-color {
  --kind: #c800ff;
  overflow: visible; /* color pop must escape the card */
}
.ed-props .ed-card:hover::after {
  opacity: 0.12;
}
.ed-props .ed-card.kind-media:hover::after {
  opacity: 0.08;
}

.ed-props .field input,
.ed-props .field textarea {
  width: 100%;
  background: rgba(8, 12, 28, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  min-height: 46px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 14px;
  color: #fff;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.ed-props .field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}
.ed-props .field input::placeholder,
.ed-props .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 550;
}
.ed-props .field input:focus,
.ed-props .field textarea:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(8, 12, 28, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}

.ed-props .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ed-props .pair > .field { margin: 0; }

.ed-props .label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.ed-props .hint {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ed-props .input-with-prefix {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 12, 28, 0.28);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border-radius: 14px;
  padding-left: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.ed-props .input-with-prefix:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(8, 12, 28, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}
.ed-props .input-with-prefix .prefix {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 800;
}
.ed-props .input-with-prefix input {
  min-height: 44px;
  border: 0;
  background: none;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ed-props .meta-preview {
  --kind: var(--blue, #3b82f6);
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--kind) 72%, #fff),
    var(--kind) 55%,
    color-mix(in srgb, var(--kind) 78%, #000)
  );
  border: 0;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* File drop — candy glass inset inside media cards */
.ed-props .file-drop {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: filter 0.28s ease;
}
.ed-props .file-drop:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  transform: none;
  filter: brightness(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.ed-props .file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.ed-props .file-drop-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  pointer-events: none;
}
.ed-props .file-drop-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--kind, #ff4d00) 55%, #fff),
      color-mix(in srgb, var(--kind, #ff4d00) 75%, #000)
    );
  color: #1a0a00;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.ed-props .file-drop-ico svg {
  width: 18px;
  height: 18px;
}
.ed-props .file-drop-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ed-props .file-btn {
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}
.ed-props .file-name {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-slider {
  position: relative;
  display: grid;
  align-items: center;
  height: 28px;
  margin-top: 2px;
}
.ed-slider input[type="range"] {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.ed-slider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.ed-slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  width: 0%;
  background: linear-gradient(90deg, #ff7a18, #ff3d00);
  box-shadow: 0 0 12px rgba(255, 90, 20, 0.35);
  pointer-events: none;
  z-index: 1;
}
.ed-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
}
.ed-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #ff5a14;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.ed-slider input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
  border: none;
}
.ed-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #ff5a14;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.ed-props .color-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ed-props .color-swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--swatch, #2f6fe0);
  box-shadow:
    0 10px 22px -12px color-mix(in srgb, var(--swatch, #2f6fe0) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  padding: 0;
}
.ed-props .color-swatch:hover {
  transform: translateY(-1px) scale(1.03);
}
.ed-props .color-swatch-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.ed-props .color-swatch-ico svg {
  width: 20px;
  height: 20px;
}

.ac-color-pop {
  position: fixed;
  z-index: 5000;
  width: min(268px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 14px;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
  transform-origin: top left;
  animation: acColorIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-color-pop[hidden] {
  display: none !important;
}
@keyframes acColorIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.ac-color-sv {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: crosshair;
  background: hsl(var(--hue, 217), 100%, 50%);
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ac-color-sv-white,
.ac-color-sv-black {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ac-color-sv-white {
  background: linear-gradient(to right, #fff, transparent);
}
.ac-color-sv-black {
  background: linear-gradient(to top, #000, transparent);
}

.ac-color-hue {
  position: relative;
  height: 14px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
  background: linear-gradient(
    to right,
    #ff0000 0%,
    #ffff00 17%,
    #00ff00 33%,
    #00ffff 50%,
    #0000ff 67%,
    #ff00ff 83%,
    #ff0000 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ac-color-knob {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: var(--swatch, #fff);
  left: 0;
  top: 0;
  transition: box-shadow 0.15s ease;
}
.ac-color-knob--hue {
  top: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
}

.ac-color-fields {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 7px;
}
.ac-color-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ac-color-field span {
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}
.ac-color-field input {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -moz-appearance: textfield;
}
.ac-color-field input::-webkit-outer-spin-button,
.ac-color-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ac-color-field input:focus {
  border-color: rgba(0, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.12);
}
.ac-color-field--hex input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ed-props .color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ed-props .preset {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--c);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0;
}
.ed-props .preset:hover {
  transform: scale(1.08);
}
.ed-props .preset.is-active {
  box-shadow: 0 0 0 2px #080808, 0 0 0 4px var(--c);
}

.ed-tab-empty {
  margin: 18px 0;
  text-align: center;
  color: var(--ed-muted-2);
  font-size: 0.84rem;
}

/* ── Props footer ── */
.ed-props-footer {
  padding: 12px 12px 14px;
  border-top: 1px solid var(--ed-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  display: grid;
  gap: 10px;
  flex-shrink: 0;
}

.ed-props-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ed-props-actions .ed-btn-export {
  width: 100%;
  min-height: 44px;
  transform: none;
}
.ed-props-actions .ed-btn-export:hover:not(:disabled) {
  transform: none;
}

.ed-btn-snap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 750;
  font-size: 0.84rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.18s, border-color 0.18s, filter 0.18s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ed-btn-snap svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}
.ed-btn-snap:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.ed-btn-snap:active:not(:disabled) {
  transform: translateY(0);
}
.ed-btn-snap:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Export — AnimCore plan-cta / primary blue */
.ed-btn-export {
  --plan: var(--blue);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--plan) 72%, #fff),
    var(--plan) 55%,
    color-mix(in srgb, var(--plan) 78%, #000)
  );
  box-shadow:
    0 12px 24px -12px color-mix(in srgb, var(--plan) 56%, transparent),
    0 0 18px -8px color-mix(in srgb, var(--plan) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: scale(0.98);
  transform-origin: center center;
  transition: transform 0.28s ease-out, filter 0.28s ease-out;
  white-space: nowrap;
}
.ed-btn-export svg {
  width: 15px;
  height: 15px;
}
.ed-btn-export:hover:not(:disabled) {
  transform: scale(1);
  filter: brightness(1.04);
}
.ed-btn-export:active:not(:disabled) {
  transform: scale(0.97);
}
.ed-btn-export:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.12);
  transform: scale(0.98);
  box-shadow: none;
}

.ed-btn-export--bar {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 0.8rem;
}

.ed-btn-chevron {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  opacity: 0.7;
}

.export-note {
  color: var(--ed-muted-2);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.35;
}

/* ── In-editor mode: hide site chrome ── */
body.in-editor .site-header,
body.in-editor .bg-mesh,
body.in-editor .bg-grid {
  display: none !important;
}
body.in-editor {
  overflow: hidden;
  background: #080808;
}

@media (max-width: 980px) {
  .ed-toolbar-meta,
  .ed-toolbar-pill {
    display: none;
  }
  .ed-toolbar-title {
    max-width: 160px;
  }
}


/* ------------------------------------------------------------
   Forms (auth, admin, shared)
   ------------------------------------------------------------ */
.field {
  display: grid;
  gap: 7px;
}

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

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hint {
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.field input,
.field textarea,
.input,
.select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm, 12px);
  background: var(--bg-2);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder,
.input::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus,
.input:focus,
.select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3c4' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.select.sm,
.input.sm {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.84rem;
  border-radius: 8px;
}

.select.sm {
  padding-right: 28px;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm, 12px);
  background: var(--bg-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-with-prefix:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.input-with-prefix .prefix {
  padding-left: 12px;
  color: var(--muted);
}

.input-with-prefix input {
  border: 0;
  background: none;
  min-height: 42px;
  box-shadow: none !important;
}

/* ------------------------------------------------------------
   Auth (split layout)
   ------------------------------------------------------------ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 40px 52px;
  background:
    radial-gradient(700px 500px at 20% 100%, rgba(255, 255, 255, 0.04), transparent 65%),
    var(--bg-2);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.auth-brand > * {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.auth-brand h2 {
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  letter-spacing: -0.045em;
  max-width: 16ch;
}

.auth-brand p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 42ch;
}

.auth-brand .preview {
  margin-top: 32px;
  max-width: 520px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 9;
  background: #000;
}

.auth-brand .preview video {
  min-width: 30px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.auth-brand footer {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.auth-side {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card h1 {
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin: 10px 0 8px;
}

.auth-card .lead {
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.auth-verify-note {
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-verify-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

#codeInput {
  letter-spacing: 0.28em;
  font-size: 1.25rem;
  font-weight: 750;
  text-align: center;
  font-variant-numeric: tabular-nums;
}


.auth-error {
  color: #ffd4d4;
  min-height: 1.2em;
  font-size: 0.86rem;
}

.auth-switch {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-switch a {
  color: var(--blue-3);
  font-weight: 600;
}

.auth-card .linkish {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--blue-3);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-card .linkish:hover {
  text-decoration: underline;
}

.acc-pw-form {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
}

.acc-pw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-back:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------
   App shell (account + admin)
   ------------------------------------------------------------ */
.app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(90deg, var(--bg-2) 0 250px, transparent 250px);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}

.sidebar .wordmark {
  padding: 6px 10px 18px;
}

.side-label {
  padding: 14px 12px 6px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 2px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.side-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  opacity: 0.8;
}

.side-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.side-link.active {
  color: var(--ink);
  background: var(--blue-soft);
}

.side-link.active svg {
  color: var(--blue-3);
  opacity: 1;
}

.side-link .badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #1a1200;
  font-size: 0.68rem;
  font-weight: 700;
}

.side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}

.side-user > div {
  min-width: 0;
}

.side-user b {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-status {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8rem;
}

.side-status .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.side-status .row b {
  color: var(--ink);
  font-weight: 600;
}

.main {
  min-width: 0;
  padding: 0 clamp(18px, 3vw, 36px) 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  margin: 0 calc(clamp(18px, 3vw, 36px) * -1) 26px;
  padding: 0 clamp(18px, 3vw, 36px);
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.topbar .crumbs b {
  color: var(--ink);
  font-weight: 600;
}

.topbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.035em;
}

.page-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-head .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.view-page {
  display: grid;
  gap: 18px;
  animation: fadeUp 0.4s var(--ease) both;
}

/* KPI */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.kpi .lbl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.kpi .lbl svg {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
}

.kpi .val {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi .val small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: 0;
}

.kpi .sub {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi .sub.up {
  color: var(--green);
}
.kpi .sub.down {
  color: var(--red);
}

.kpi.accent::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* Cards */
.card {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.card-head h3 {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.card-head p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.card-head .tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.card-head .tools .input,
.card-head .tools .select {
  width: auto;
}

.card-body {
  padding: 18px;
}

.card-body.tight {
  padding: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.table th {
  padding: 10px 16px;
  text-align: left;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr {
  transition: background 0.12s;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table tr.clickable {
  cursor: pointer;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.who .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.72rem;
}

.who b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
}

.who small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.quota-bar {
  min-width: 120px;
}

.quota-bar .bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quota-bar .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-2), var(--blue-3));
  transition: width 0.4s var(--ease);
}

.quota-bar .bar i.hot {
  background: linear-gradient(90deg, var(--amber), var(--red));
}

.quota-bar small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}

.state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.state.done,
.state.active {
  color: #c9f3df;
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.1);
}
.state.error {
  color: #ffd4d4;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
}
.state.queued {
  color: #d7f3ff;
  border-color: rgba(99, 212, 255, 0.35);
  background: rgba(99, 212, 255, 0.1);
}
.state.running,
.state.claimed,
.state.rendering,
.state.pending {
  color: #ffe6b8;
  border-color: rgba(245, 185, 66, 0.35);
  background: rgba(245, 185, 66, 0.1);
}
.state.running::before,
.state.claimed::before,
.state.rendering::before {
  animation: pulse 1.2s infinite;
}
.state.none {
  color: var(--muted);
}
.state.admin {
  color: #d3e3ff;
  border-color: rgba(77, 141, 255, 0.45);
  background: var(--blue-soft);
}

/* Charts */
.bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  height: 150px;
  padding-top: 10px;
}

.bars .col {
  display: grid;
  gap: 6px;
  align-items: end;
  height: 100%;
  position: relative;
}

.bars .col .stack {
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.bars .col .stack i {
  display: block;
  width: 100%;
  background: var(--blue);
  transition: height 0.5s var(--ease);
}

.bars .col .stack i.err {
  background: var(--red);
}

.bars .col small {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.7rem;
  white-space: nowrap;
}

.bars .col:hover .stack {
  background: rgba(255, 255, 255, 0.07);
}

.legend {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
}

.legend i.err {
  background: var(--red);
}

.donut {
  display: flex;
  align-items: center;
  gap: 22px;
}

.donut .ring {
  --p: 0;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.donut .ring::after {
  content: attr(data-label);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.donut ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

.donut li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.donut li b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Lists */
.list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item .ico-box {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.list-item .ico-box svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.list-item b {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.kv > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.kv > div:last-child {
  border-bottom: 0;
}

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

.kv b {
  font-weight: 600;
  text-align: right;
}

.kv code {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(2, 4, 9, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  width: min(560px, 100vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s 0.3s;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: none;
  visibility: visible;
  transition: transform 0.3s var(--ease), visibility 0s;
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 {
  font-size: 1.05rem;
}

.drawer-head .right {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.drawer-body {
  padding: 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-body > * {
  flex: 0 0 auto;
}

.drawer-foot {
  margin-top: auto;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.log {
  max-height: 320px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: #04060c;
  border: 1px solid var(--line);
  color: #b9c3d8;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.log .ln {
  color: var(--muted-2);
  user-select: none;
  display: inline-block;
  width: 3ch;
  margin-right: 10px;
  text-align: right;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.switch i {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
}

.switch input:checked + i {
  background: var(--blue);
}

.switch input:checked + i::after {
  transform: translateX(18px);
}

.inline-note {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 185, 66, 0.3);
  background: rgba(245, 185, 66, 0.08);
  color: #ffe6b8;
  font-size: 0.86rem;
}

.inline-note.ok {
  border-color: rgba(62, 207, 142, 0.3);
  background: rgba(62, 207, 142, 0.08);
  color: #c9f3df;
}

.inline-note.info {
  border-color: rgba(77, 141, 255, 0.35);
  background: var(--blue-soft);
  color: #d3e3ff;
}

.inline-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.plan-card {
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid rgba(77, 141, 255, 0.4);
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(77, 141, 255, 0.28), transparent 65%),
    var(--surface);
}

.plan-card .big {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 8px 0 4px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: transparent !important;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: shimmer 1.2s linear infinite;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state svg {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--muted-2);
}

.empty-state b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .pricing-grid-trio {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .site-header {
    top: 16px;
    left: 16px;
    right: 16px;
  }
  .app {
    background: none;
  }
  .header-nav {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .header-nav.open {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 8px;
    border-radius: 16px;
    background: rgba(16, 16, 16, 0.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    padding: 20px 0 26px;
  }
  .float-card.b {
    left: 0;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase-body {
    grid-template-columns: 1fr;
  }
  .showcase-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .timeline,
  .features,
  .grid-2,
  .grid-3,
  .grid-2-1,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    display: none;
  }
  .cta {
    grid-template-columns: 1fr;
  }
  .cta .hero-actions {
    justify-content: flex-start;
  }
  .ed-body {
    grid-template-columns: 1fr;
  }
  .ed-props {
    max-height: 46vh;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .ed-canvas-wrap,
  .ed-transport,
  .ed-timeline {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ed-waveform-wrap {
    margin-left: 16px;
    margin-right: 16px;
  }
  .ed-btn-export--bar span {
    display: none;
  }
  .ed-btn-export--bar {
    padding: 0 10px;
    min-width: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    display: none;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 170;
    width: 270px;
    transform: translateX(-100%);
    transition: transform 0.28s var(--ease);
  }
  .sidebar.open {
    transform: none;
    box-shadow: var(--shadow-2);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 165;
    background: rgba(2, 4, 9, 0.55);
  }
  .topbar .menu-toggle {
    display: grid;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3rem);
  }
  .hero-stage {
    padding: 12px 0 20px;
  }
  .header-inner {
    gap: 10px;
  }
  .header-right {
    gap: 6px;
  }
  .header-right .nav-link,
  .header-right .account-pill span,
  .header-right .account-pill small {
    display: none;
  }
  .header-right .account-pill {
    padding: 3px;
  }
  .header-right .btn-sm {
    padding: 0 12px;
    font-size: 0.8rem;
  }
  .wordmark {
    font-size: 0.98rem;
  }
  .float-card.a {
    top: -2px;
    right: -4px;
  }
  .float-card .mini-bar {
    width: 110px;
  }
  .card-grid,
  .pricing-grid,
  .pricing-grid-duo,
  .pricing-grid-trio,
  .pricing-grid-quad {
    grid-template-columns: 1fr;
  }
  .ent-band {
    grid-template-columns: 1fr;
    padding: 24px 18px 20px;
  }
  .ent-form {
    grid-template-columns: 1fr;
  }
  .billing-toggle {
    width: 100%;
  }
  .billing-opt {
    flex: 1;
    justify-content: center;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi .val {
    font-size: 1.6rem;
  }
  .pair,
  .export-row,
  .form-grid .row2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .toast-host {
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .chips {
    width: 100%;
  }
  .chip {
    flex: 1;
    padding: 0 8px;
  }
  .drawer {
    width: 100vw;
  }
  .table td,
  .table th {
    padding-inline: 12px;
  }
}

/* Keep entrance motion even when OS asks to reduce motion —
   product is animation-led; only mute looping decoration. */
@media (prefers-reduced-motion: reduce) {
  .float-card.a,
  .float-card.b,
  .export-ring:not(.export-modal.done .export-ring),
  .spinner,
  .float-card .val .caret,
  .mini-bar i,
  .bg-mesh {
    animation: none !important;
  }
}

/* ------------------------------------------------------------
   Time pill
   ------------------------------------------------------------ */
.time-pill {
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.86rem;
}
.time-pill svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.alpha-pill {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.format-pill {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ------------------------------------------------------------
   Language + export modals
   ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(4, 8, 16, 0.68);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: fixed;
  z-index: 190;
  left: 50%;
  top: 50%;
  width: min(540px, calc(100vw - 32px));
  transform: translate(-50%, -42%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  border-radius: 26px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #141d30, #0c1220);
  box-shadow: 0 40px 120px rgba(2, 6, 20, 0.8), 0 0 0 1px rgba(77, 141, 255, 0.08);
  padding: 36px 36px 30px;
  transition: transform 0.48s var(--ease-out), opacity 0.36s var(--ease-out);
}
.modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.modal.wide {
  width: min(560px, calc(100vw - 32px));
}
.modal-kicker {
  margin-bottom: 12px;
}
.modal h2 {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.modal p.lead {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 1rem;
}
.modal-actions {
  display: grid;
  gap: 10px;
}
.modal-actions.row {
  grid-template-columns: 1fr 1fr;
}
.export-modal .ring-wrap {
  display: grid;
  place-items: center;
  margin: 8px 0 22px;
}
.export-ring {
  --p: 8;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: grid;
  place-items: center;
  animation: ringPulse 2.4s ease-in-out infinite;
}
.export-ring::after {
  content: attr(data-label);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #0c1220;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.export-modal.done .export-ring {
  --p: 100;
  animation: none;
  background: conic-gradient(var(--green) 100%, transparent 0);
}
.export-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}
.export-steps span {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.export-steps span.on {
  color: var(--blue-3);
  border-bottom-color: var(--blue);
}
.export-steps span.ok {
  color: var(--green);
  border-bottom-color: var(--green);
}
@keyframes ringPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

/* ------------------------------------------------------------
   Account (simple settings)
   ------------------------------------------------------------ */
.acc-page {
  min-height: 70vh;
  padding: 36px 0 96px;
}
.acc-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}
.acc-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.acc-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.acc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}
.acc-hero-who {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.acc-hero-who .avatar {
  width: 64px;
  height: 64px;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.acc-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.acc-email {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-all;
}
.acc-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.acc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}
.acc-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}
.acc-card-plan {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(56, 102, 245, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.025);
}
.acc-card-danger {
  border-color: rgba(239, 68, 68, 0.28);
}
.acc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.acc-plan-title,
.acc-section-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.acc-feats {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.acc-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.94rem;
}
.acc-feats svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}
.acc-usage {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.acc-usage .lbl {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.acc-meter-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.acc-meter-top b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.acc-meter-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.acc-meter-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a76ff, #3866f5);
}
.acc-renew {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
}
.acc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.acc-upsell {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.acc-upsell strong {
  display: block;
  margin-bottom: 4px;
}
.acc-upsell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 42ch;
}
.acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.acc-card > .acc-row:last-child,
.acc-history .acc-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.acc-row .lbl {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 3px;
}
.acc-row .val {
  font-weight: 650;
  letter-spacing: -0.02em;
}
.acc-row-redeem {
  align-items: flex-end;
}
.acc-redeem {
  flex: 1;
  min-width: 200px;
}
.acc-redeem .input {
  margin-top: 10px;
  width: 100%;
}
.acc-pw-form {
  margin: 8px 0 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 12px;
}
.acc-pw-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.acc-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.acc-mini-stats b {
  color: #fff;
  margin-right: 4px;
}
.acc-favs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.acc-fav {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
  transition: border-color 0.15s;
}
.acc-fav:hover {
  border-color: rgba(107, 143, 255, 0.45);
}
.acc-fav video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}
.acc-fav .meta {
  padding: 10px 12px 12px;
}
.acc-fav .meta b {
  display: block;
  font-size: 0.9rem;
}
.acc-fav .meta small {
  color: var(--muted);
}
@media (max-width: 860px) {
  .acc-grid {
    grid-template-columns: 1fr;
  }
  .acc-favs {
    grid-template-columns: 1fr;
  }
  .acc-upsell {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------
   Auth brand alignment
   ------------------------------------------------------------ */
.auth-brand .brand-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.auth-brand .preview {
  width: 100%;
  max-width: none;
  margin-top: 28px;
}
.auth-brand > footer {
  margin-top: auto;
  padding-top: 24px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .modal { padding: 24px 20px 20px; }
  .modal-actions.row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Compare plans page
   ------------------------------------------------------------ */
.compare-page {
  padding: clamp(108px, 14vh, 148px) 0 72px;
}

.compare-page > .wrap {
  width: min(1400px, calc(100% - 40px));
  overflow: visible;
}

.compare-scroll {
  overflow: visible;
  padding: 36px 12px 24px;
}

.cmp-title {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  max-width: 9ch;
}

.compare {
  --cmp-cols: minmax(150px, 0.78fr) repeat(4, minmax(0, 1fr));
  --cmp-gap-x: 24px;
  --cmp-gap-y: 10px;
  --plan-green: #00ff7a;
  --plan-red: #ff2d55;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
}

.cmp-col-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: var(--cmp-cols);
  column-gap: var(--cmp-gap-x);
  pointer-events: none;
}

.cmp-col-fx {
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
}

/* Same geometry for Pro + Enterprise — exact column box, no asymmetric margins */
.cmp-col-hot,
.cmp-col-ent {
  margin: 0;
  border-radius: 16px;
}

.cmp-col-hot {
  position: relative;
  grid-column: 4;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--plan-green) 55%, transparent);
}

.cmp-col-hot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-bottom: -1px;
  color: #04240f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 16px 16px 0 0;
  background: var(--plan-green);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--plan-green) 55%, transparent);
}

.cmp-col-ent {
  grid-column: 5;
  background: radial-gradient(ellipse 88% 70% at 50% 35%, color-mix(in srgb, var(--plan-red) 15%, transparent), transparent 75%);
  box-shadow:
    inset 0 0 20px 2px color-mix(in srgb, var(--plan-red) 16%, transparent),
    inset 0 0 44px 12px color-mix(in srgb, var(--plan-red) 8%, transparent);
}

.cmp-head,
.cmp-row,
.cmp-group-h {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--cmp-cols);
  column-gap: var(--cmp-gap-x);
  row-gap: var(--cmp-gap-y);
  align-items: start;
}

.cmp-head {
  padding: 14px 0 22px;
}

.cmp-spacer {
  min-width: 0;
}

.cmp-plan {
  --plan: #e8eef8;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 8px 10px 4px;
  text-align: center;
}

.cmp-plan.accent-gray { --plan: #e8eef8; }
.cmp-plan.accent-blue { --plan: #00c8ff; }
.cmp-plan.accent-green { --plan: #00ff7a; }
.cmp-plan.accent-red { --plan: #ff2d55; }

.cmp-plan-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.cmp-diamond {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.cmp-amount {
  margin: 2px 0 0;
  width: 100%;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}

.cmp-period {
  margin: 0 0 6px;
  width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.cmp-plan .plan-cta {
  box-sizing: border-box;
  margin-top: 4px;
  width: 100%;
  max-width: none;
  justify-content: center;
}

.cmp-plan.accent-gray .plan-cta {
  color: #04140b;
}

.cmp-plan.accent-gray .plan-cta-arrow {
  background: rgba(0, 0, 0, 0.12);
  color: #04140b;
}

.cmp-group {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.cmp-group-h {
  padding: 18px 0 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.cmp-group-h span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cmp-group-h span::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.cmp-row {
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmp-feat {
  color: var(--muted);
  font-size: 0.92rem;
}

.cmp-cell {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.cmp-check {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--ink-2);
  margin-inline: auto;
}

.cmp-dash {
  color: var(--muted-2);
  font-weight: 500;
}

@media (max-width: 900px) {
  .compare-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .compare-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .compare {
    min-width: 860px;
  }
}

.price-jump {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}

.price-jump h2 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
}

@media (max-width: 720px) {
  .price-jump {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------
   Export dock (liquid glass) + settings modal
   ------------------------------------------------------------ */
.ex-dock-slot {
  width: 100%;
  max-width: 980px;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 2px;
  min-height: 0;
  flex-shrink: 0;
  z-index: 6;
}
.ex-dock {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(440px, 92%);
  transform: translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.4s var(--ease-out);
}
.ex-dock.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ex-dock-glass {
  border-radius: 18px;
  padding: 10px 12px 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05) 40%, rgba(10, 14, 22, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
}
.ex-dock-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 9px;
}
.ex-dock.is-done .ex-dock-track,
.ex-dock.is-stage .ex-dock-track {
  display: none;
}
.ex-dock-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 0.55s var(--ease-out), background 0.4s ease;
}
.ex-dock-fill.is-queue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}
.ex-dock-fill.is-export {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}
.ex-dock-fill.is-done {
  background: linear-gradient(90deg, #16a34a, #86efac);
}
.ex-dock-fill.is-error {
  background: linear-gradient(90deg, #dc2626, #f87171);
}
.ex-dock-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}
.ex-dock-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ex-dock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.ex-dock-phase {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.ex-dock-engine {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}
.ex-dock-engine .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.ex-dock-engine.is-on {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.12);
}
.ex-dock-engine.is-off {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(220, 38, 38, 0.14);
}
.ex-dock-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ex-dock-actions .ed-btn-export,
.ex-dock-actions .ed-btn-snap {
  width: auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 0.8rem;
  transform: none;
}
.ex-dock-actions .ed-btn-export:hover:not(:disabled),
.ex-dock-actions .ed-btn-snap:hover:not(:disabled) {
  transform: none;
  filter: brightness(1.04);
}
.ex-dock-actions .ed-btn-snap {
  min-width: 0;
  padding: 0 12px;
}
.ex-dock-actions a.ed-btn-export {
  text-decoration: none;
}

.export-settings-modal {
  width: min(420px, calc(100vw - 28px));
  padding: 28px 26px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: hsl(0 0% 0% / 0.28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 2px 1px #ffffff59,
    inset 0 0 10px 4px #ffffff22,
    inset 0 4px 16px #11111a0d,
    inset 0 8px 24px #11111a0d;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
/* glass-filter-plan disabled for perf */
.ex-set-backdrop.modal-backdrop {
  background: rgba(0, 4, 14, 0.52);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.export-settings-modal .modal-kicker {
  margin-bottom: 8px;
  color: #7eb6ff;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}
.export-settings-modal h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.export-settings-modal p.lead {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.45;
}
.ex-set-section {
  margin: 22px 0 0;
}
.ex-set-section + .ex-set-section {
  margin-top: 18px;
}
.ex-set-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(126, 182, 255, 0.85);
  margin-bottom: 10px;
}
.ex-set-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
}
.ex-set-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.ex-set-opt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 64px;
  padding: 14px 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 2px 1px rgba(255, 255, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.28s ease, transform 0.22s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.ex-set-opt.has-pop {
  padding-top: 22px;
}
.ex-set-pop {
  position: absolute;
  top: 6px;
  left: 4px;
  right: 4px;
  z-index: 2;
  text-align: center;
  color: #93c5fd;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-set-opt.is-on .ex-set-pop {
  color: #bfdbfe;
}
.ex-set-opt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.32), rgba(37, 99, 235, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(147, 197, 255, 0.55),
    inset 0 0 18px rgba(59, 130, 246, 0.22);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.ex-set-opt > * {
  position: relative;
  z-index: 1;
}
.ex-set-opt:hover:not(:disabled):not(.is-on) {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}
.ex-set-opt:active:not(:disabled) {
  transform: scale(0.97);
}
.ex-set-opt.is-on {
  border-color: rgba(147, 197, 255, 0.45);
}
.ex-set-opt.is-on::after {
  opacity: 1;
}
.ex-set-opt:disabled,
.ex-set-opt.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
}
.ex-set-opt b {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.28s ease;
}
.ex-set-opt > span:not(.ex-set-pop):not(.ex-set-plan) {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.28s ease;
  min-height: 0.85em;
}
.ex-set-opt.is-on > span:not(.ex-set-pop):not(.ex-set-plan) {
  color: rgba(191, 219, 254, 0.9);
}
.ex-set-plan {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.ex-set-plan.accent-pro {
  color: #00ff7a;
  text-shadow: 0 0 12px rgba(0, 255, 122, 0.5);
}
.ex-set-plan.accent-ultra {
  color: #ff2d55;
  text-shadow: 0 0 12px rgba(255, 45, 85, 0.5);
}
.ex-set-opt.is-locked b {
  color: rgba(255, 255, 255, 0.5);
}
.ex-set-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: hsl(0 0% 0% / 0.12);
  box-shadow:
    inset 0 0 2px 1px #ffffff40,
    inset 0 0 8px 3px #ffffff18;
  cursor: pointer;
  user-select: none;
}
.ex-set-remember input {
  width: 15px;
  height: 15px;
  accent-color: #60a5fa;
}
.ex-set-remember span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
}
.export-settings-modal .modal-actions {
  margin-top: 20px;
}
.export-settings-modal .modal-actions .btn-liquid-glass {
  border-radius: 14px;
}
.export-settings-modal .ex-set-go {
  background: hsl(214 90% 52% / 0.28);
  box-shadow:
    inset 0 0 2px 1px rgba(191, 219, 254, 0.65),
    inset 0 0 12px 4px rgba(59, 130, 246, 0.25),
    inset 0 4px 16px #11111a0d,
    inset 0 8px 24px #11111a0d;
}
.export-settings-modal .ex-set-go:hover:not(:disabled) {
  background: hsl(214 90% 55% / 0.38);
}



/* Perf: skip offscreen section work */
.section#library,
.section#how,
.section#faq,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}
