:root {
  color-scheme: dark;
  --dark-bg: #090811;
  --dark-bg-deep: #07070d;
  --dark-panel: #12111c;
  --dark-panel-raised: #181624;
  --dark-panel-soft: #1d1a29;
  --dark-line: rgba(255, 255, 255, .10);
  --dark-line-strong: rgba(255, 255, 255, .16);
  --dark-text: #f8f6fc;
  --dark-muted: #aaa3b8;
  --dark-subtle: #7f788c;
  --dark-cyan: #43d8ef;
  --dark-violet: #8b61ff;
  --dark-pink: #f044a1;
  --dark-coral: #ff754f;
  --dark-green: #35d6a3;
  --dark-red: #ff627d;
  --dark-gradient: linear-gradient(112deg, #43d8ef 0%, #8b61ff 31%, #f044a1 67%, #ff754f 100%);
  --dark-gradient-warm: linear-gradient(112deg, #8b61ff 0%, #f044a1 56%, #ff754f 100%);
  --dark-shadow: 0 22px 54px rgba(0, 0, 0, .32);
  --dark-shadow-soft: 0 14px 34px rgba(0, 0, 0, .24);
}

/* Lens wordmark brand system shared by site, Mini App and CMS. */
html[data-route="site"] .mark-img,
html[data-route="app"] .mark-img,
:is(html[data-route="admin"], html[data-native-admin="true"]) .mark-img {
  object-fit: contain;
  border-radius: 0;
  box-shadow: none !important;
  filter:
    saturate(1.04)
    drop-shadow(0 5px 10px rgba(0, 0, 0, .34))
    drop-shadow(0 0 8px rgba(139, 97, 255, .34))
    drop-shadow(0 0 12px rgba(240, 68, 161, .18));
  animation: lensBrandFocus 4.8s ease-in-out infinite;
}

html[data-route="site"] .mark-img {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

html[data-route="app"] .mark-img {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .mark-img {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

@keyframes lensBrandFocus {
  0%, 100% {
    filter:
      saturate(1.02)
      brightness(1)
      drop-shadow(0 5px 10px rgba(0, 0, 0, .34))
      drop-shadow(0 0 7px rgba(139, 97, 255, .30))
      drop-shadow(0 0 11px rgba(240, 68, 161, .16));
  }
  50% {
    filter:
      saturate(1.10)
      brightness(1.06)
      drop-shadow(0 6px 12px rgba(0, 0, 0, .36))
      drop-shadow(0 0 11px rgba(67, 216, 239, .28))
      drop-shadow(0 0 16px rgba(240, 68, 161, .24));
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-route="site"] .mark-img,
  html[data-route="app"] .mark-img,
  :is(html[data-route="admin"], html[data-native-admin="true"]) .mark-img {
    animation: none;
  }
}

html[data-route="site"],
html[data-route="app"],
html[data-route="admin"],
html[data-native-admin="true"] {
  color-scheme: dark;
  --bg: var(--dark-bg);
  --panel: var(--dark-panel);
  --panel-2: var(--dark-panel-raised);
  --line: var(--dark-line);
  --text: var(--dark-text);
  --dim: var(--dark-muted);
  background: var(--dark-bg);
}

html[data-route="site"] body,
html[data-route="app"] body,
html[data-route="admin"] body,
html[data-native-admin="true"] body {
  color: var(--dark-text);
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(132deg, rgba(67, 216, 239, .055) 0%, transparent 28%),
    linear-gradient(228deg, rgba(240, 68, 161, .075) 0%, transparent 34%),
    linear-gradient(28deg, rgba(139, 97, 255, .055) 0%, transparent 36%),
    linear-gradient(180deg, #0d0b16 0%, #090811 52%, #07070d 100%);
  background-attachment: fixed;
}

html[data-route="site"] body::before,
html[data-route="admin"] body::before,
html[data-native-admin="true"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .20;
  background-image:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

html[data-route="site"] ::selection,
html[data-route="app"] ::selection,
html[data-route="admin"] ::selection,
html[data-native-admin="true"] ::selection {
  color: #fff;
  background: rgba(240, 68, 161, .46);
}

html[data-route="site"] :where(button, a, select, input, textarea),
html[data-route="app"] :where(button, a, select, input, textarea),
html[data-route="admin"] :where(button, a, select, input, textarea),
html[data-native-admin="true"] :where(button, a, select, input, textarea) {
  -webkit-tap-highlight-color: transparent;
}

html[data-route="site"] :where(button, a, select, input, textarea):focus-visible,
html[data-route="app"] :where(button, a, select, input, textarea):focus-visible,
html[data-route="admin"] :where(button, a, select, input, textarea):focus-visible,
html[data-native-admin="true"] :where(button, a, select, input, textarea):focus-visible {
  outline: 2px solid rgba(67, 216, 239, .62) !important;
  outline-offset: 3px;
}

/* Public website */
html[data-route="site"] {
  background: #0d0b16;
  scroll-behavior: smooth;
}

html[data-route="site"] body {
  background-color: #0d0b16;
  background-image:
    linear-gradient(115deg, rgba(139, 97, 255, .13) 0%, transparent 42%),
    linear-gradient(245deg, rgba(240, 68, 161, .11) 0%, transparent 43%),
    linear-gradient(180deg, #12101d 0%, #0d0b16 48%, #090811 100%);
  background-size: cover;
  background-attachment: fixed;
}

html[data-route="site"] .landing {
  position: relative;
  background: transparent;
}

html[data-route="site"] .landing-topbar {
  position: relative;
  top: auto;
  z-index: 30;
  min-height: 76px;
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-route="site"] .brand,
html[data-route="site"] .landing-hero h1,
html[data-route="site"] .landing-section h2,
html[data-route="site"] .landing-grid h3,
html[data-route="site"] .landing-faq summary,
html[data-route="site"] .landing-money b {
  color: var(--dark-text);
  text-shadow: none;
}

html[data-route="site"] .brand,
html[data-route="app"] .brand,
:is(html[data-route="admin"], html[data-native-admin="true"]) .brand {
  font-family: var(--brand-font);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
}

html[data-route="site"] .brand,
html[data-route="app"] .brand {
  font-size: 18px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .brand {
  font-size: 17px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .brand-suffix {
  color: transparent;
  background: linear-gradient(90deg, var(--dark-violet), var(--dark-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-route="app"] .home h1 span {
  color: transparent;
  background: var(--dark-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-route="site"] .mark-img {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .14),
    0 10px 26px rgba(0, 0, 0, .32),
    0 0 22px rgba(139, 97, 255, .18);
}

html[data-route="site"] .landing-nav a,
html[data-route="site"] .landing-language {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .045);
  color: #c6c0d2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

html[data-route="site"] .landing-nav a:hover {
  border-color: rgba(67, 216, 239, .30);
  background: rgba(67, 216, 239, .07);
  color: #fff;
}

html[data-route="site"] .landing-language option,
html[data-route="app"] .language-select option {
  color: var(--dark-text);
  background: #171421;
}

html[data-route="site"] .landing-hero {
  isolation: isolate;
  min-height: min(720px, calc(100svh - 76px));
}

html[data-route="site"] .landing-hero::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
}

html[data-route="site"] .landing-hero::after {
  right: 0;
  bottom: 8%;
  width: 46%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 216, 239, .44), rgba(240, 68, 161, .40), transparent);
}

html[data-route="site"] .landing-kicker {
  color: transparent;
  background: var(--dark-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-route="site"] .landing-hero p,
html[data-route="site"] .landing-section-head p,
html[data-route="site"] .landing-split p,
html[data-route="site"] .landing-grid p,
html[data-route="site"] .landing-faq p,
html[data-route="site"] .landing-money span {
  color: var(--dark-muted);
}

html[data-route="site"] .landing-phone-img {
  filter:
    drop-shadow(0 32px 52px rgba(0, 0, 0, .48))
    drop-shadow(0 0 28px rgba(139, 97, 255, .14));
}

html[data-route="site"] .landing-cta,
html[data-route="site"] #landingOpenApp,
html[data-route="site"] #landingRegister {
  overflow: hidden;
  border: 0;
  color: #fff;
  background: var(--dark-gradient);
  background-size: 100% 100%;
  box-shadow: 0 16px 36px rgba(240, 68, 161, .20);
}

html[data-route="site"] #landingOpenApp {
  background: linear-gradient(112deg, #20c7d8 0%, #258ccf 52%, #4e6ed8 100%);
  box-shadow: 0 16px 36px rgba(37, 140, 207, .20);
}

html[data-route="site"] .landing-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08) saturate(1.05);
}

html[data-route="site"] .landing-trust span {
  border: 1px solid rgba(53, 214, 163, .20);
  background: rgba(53, 214, 163, .075);
  color: #a7e9d3;
}

html[data-route="site"] .landing-section {
  border-top-color: var(--dark-line);
  background: transparent;
  scroll-margin-top: 24px;
}

html[data-route="site"] .landing-grid article,
html[data-route="site"] .landing-money,
html[data-route="site"] .landing-faq details {
  border-color: var(--dark-line);
  background:
    linear-gradient(145deg, rgba(139, 97, 255, .055), transparent 52%),
    rgba(18, 17, 28, .88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    var(--dark-shadow-soft);
}

html[data-route="site"] .landing-grid article::after {
  background: linear-gradient(90deg, transparent, rgba(67, 216, 239, .52), rgba(240, 68, 161, .46), transparent);
}

html[data-route="site"] .landing-grid strong {
  color: #fff;
  background: var(--dark-gradient-warm);
  box-shadow: 0 9px 22px rgba(240, 68, 161, .18);
}

html[data-route="site"] .landing-money div {
  border-color: rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .035);
}

html[data-route="site"] .landing-faq details[open] {
  border-color: rgba(139, 97, 255, .28);
  box-shadow: var(--dark-shadow-soft), 0 0 28px rgba(139, 97, 255, .07);
}

html[data-route="site"] .landing-faq summary::after {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  color: #a98cff;
  background: transparent;
  box-shadow: none;
  font-size: 21px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

html[data-route="site"] .landing-faq details[open] summary::after {
  color: #ff6b9f;
  background: transparent;
}

html[data-route="site"] .landing-phone-mobile {
  border-color: var(--dark-line);
  background:
    linear-gradient(130deg, rgba(67, 216, 239, .08), rgba(139, 97, 255, .08) 42%, rgba(240, 68, 161, .07)),
    #13111e;
  box-shadow: var(--dark-shadow-soft);
}

html[data-route="site"] .landing-phone-mobile-title {
  color: var(--dark-text);
}

html[data-route="site"] .landing-phone-mobile-text {
  color: var(--dark-muted);
}

/* Telegram Mini App */
html[data-route="app"] {
  --app-canvas: var(--dark-bg);
  --app-canvas-gradient:
    linear-gradient(126deg, rgba(67, 216, 239, .045) 0%, transparent 32%),
    linear-gradient(232deg, rgba(240, 68, 161, .065) 0%, transparent 38%),
    linear-gradient(180deg, #0c0a14 0%, #090811 56%, #07070d 100%);
  background: var(--dark-bg);
}

html[data-route="app"] body,
html[data-route="app"] #appView,
html[data-route="app"] .app,
html[data-route="app"] .stage,
html[data-route="app"] .step,
html[data-route="app"] .step.active {
  color: var(--dark-text);
  background-color: transparent;
}

html[data-route="app"] body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background-color: var(--dark-bg);
  background-image: none;
}

html[data-route="app"] #appView {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html[data-route="app"] .app {
  width: min(500px, 100%);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

html[data-route="app"] .topbar,
html[data-route="app"] .progress-wrap,
html[data-route="app"] .stage,
html[data-route="app"] .step,
html[data-route="app"] .home,
html[data-route="app"] .home-hero,
html[data-route="app"] .card,
html[data-route="app"] .note,
html[data-route="app"] .final {
  min-width: 0;
  max-width: 100%;
}

html[data-route="app"] .brand {
  min-width: 0;
}

html[data-route="app"] .top-actions {
  flex: 0 0 auto;
}

html[data-route="app"] body::before {
  content: "";
  position: fixed;
  inset: -24vh -48vw;
  z-index: -1;
  pointer-events: none;
  background-color: var(--dark-bg);
  background-image: var(--app-canvas-gradient);
}

html[data-route="app"] body::after {
  content: none;
  display: none;
}

html[data-route="app"] .guide-head-shell {
  background: #0b0a13;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-route="app"] .guide-head-shell::after {
  top: calc(100% - 2px);
  right: auto;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 34px;
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    rgba(11, 10, 19, 1) 0%,
    rgba(11, 10, 19, .92) 18%,
    rgba(11, 10, 19, .56) 52%,
    rgba(11, 10, 19, .18) 78%,
    rgba(11, 10, 19, 0) 100%
  );
  pointer-events: none;
}

html[data-route="app"] .app:has(.step[data-step="home"].active) .guide-head-shell::after {
  height: 18px;
  background-image: linear-gradient(to bottom, rgba(11, 10, 19, 1), rgba(11, 10, 19, 0));
}

html[data-route="app"] .topbar,
html[data-route="app"] .progress-wrap {
  border-color: var(--dark-line);
  background:
    linear-gradient(125deg, rgba(139, 97, 255, .055), rgba(240, 68, 161, .025)),
    #12101b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 14px 34px rgba(0, 0, 0, .26);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-route="app"] .brand,
html[data-route="app"] .home h1,
html[data-route="app"] .step h2,
html[data-route="app"] .final h2 {
  color: var(--dark-text);
  text-shadow: none;
}

html[data-route="app"] .mark-img {
  box-shadow: none;
  animation: none;
}

html[data-route="app"] .language-select,
html[data-route="app"] .age {
  color: #ded9e8;
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

html[data-route="app"] .progress-track,
html[data-route="app"] .dots i {
  background: rgba(255, 255, 255, .075);
  box-shadow: none;
}

html[data-route="app"] .progress-fill,
html[data-route="app"] .dots i.done {
  background: var(--dark-gradient);
  box-shadow: 0 0 14px rgba(240, 68, 161, .20);
}

html[data-route="app"] .dots i.active {
  background: #f7f5fb;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

html[data-route="app"] .progress-copy,
html[data-route="app"] .progress-label,
html[data-route="app"] #stepCounter {
  color: var(--dark-muted);
}

html[data-route="app"] .progress-title,
html[data-route="app"] #stepTitle,
html[data-route="app"] #stepTitleShort,
html[data-route="app"] .progress-label b,
html[data-route="app"] .progress-label span:last-child {
  color: var(--dark-text);
}

html[data-route="app"] .home-hero {
  min-height: 500px;
  border-color: var(--dark-line);
  background:
    linear-gradient(
      180deg,
      rgba(8, 7, 14, .02) 0%,
      rgba(8, 7, 14, .05) 30%,
      rgba(12, 10, 20, .50) 48%,
      rgba(14, 12, 23, .91) 62%,
      #12101b 74%,
      #12101b 100%
    ),
    url("./assets/live-stars-signature-hero.png") 50% 0 / auto 78% no-repeat,
    #12101b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    var(--dark-shadow);
}

html[data-route="app"] .home-hero::before {
  background: linear-gradient(90deg, transparent 4%, #43d8ef, #8b61ff 34%, #f044a1 67%, #ff754f, transparent 96%);
  box-shadow: 0 0 15px rgba(240, 68, 161, .22);
}

html[data-route="app"] .home-hero::after {
  background: linear-gradient(108deg, transparent 18%, rgba(255, 255, 255, .055) 47%, transparent 70%);
}

html[data-route="app"] .home .desc,
html[data-route="app"] .final p,
html[data-route="app"] .final > p {
  color: #bbb4c7;
}

html[data-route="app"] .home-cta,
html[data-route="app"] .btn.primary {
  color: #fff;
  border: 0;
  background: var(--dark-gradient);
  box-shadow: 0 14px 32px rgba(240, 68, 161, .22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

html[data-route="app"] .home-cta:hover,
html[data-route="app"] .btn.primary:hover {
  filter: brightness(1.06) saturate(1.04);
  box-shadow: 0 17px 38px rgba(240, 68, 161, .26);
}

html[data-route="app"] .home-point,
html[data-route="app"] .home-chip {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background:
    linear-gradient(135deg, rgba(139, 97, 255, .055), rgba(240, 68, 161, .022)),
    rgba(18, 17, 28, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    var(--dark-shadow-soft);
}

html[data-route="app"] .home-row > .home-chip:only-child {
  width: 100%;
  flex-basis: 100%;
}

html[data-route="app"] .home-point strong,
html[data-route="app"] .home-chip .chip-label {
  color: var(--dark-text);
}

html[data-route="app"] .home-point span,
html[data-route="app"] .home-chip small,
html[data-route="app"] .home-foot {
  color: var(--dark-muted);
}

html[data-route="app"] .home-point .ico {
  border-color: rgba(139, 97, 255, .22);
  background: rgba(139, 97, 255, .09);
}

html[data-route="app"] .home-chip svg {
  stroke: var(--dark-cyan);
  filter: drop-shadow(0 0 7px rgba(67, 216, 239, .26));
}

html[data-route="app"] .eyebrow {
  color: #bba9ff;
  background: none;
}

html[data-route="app"] .icon-badge,
html[data-route="app"] .home-logo {
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
  background: var(--dark-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 12px 30px rgba(0, 0, 0, .22);
}

html[data-route="app"] .icon-badge svg,
html[data-route="app"] .home-logo svg {
  stroke: #fff;
}

html[data-route="app"] .card {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background:
    linear-gradient(140deg, rgba(139, 97, 255, .045), transparent 48%),
    rgba(18, 17, 28, .96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    var(--dark-shadow-soft);
}

html[data-route="app"] .card::before {
  background: linear-gradient(90deg, transparent, rgba(67, 216, 239, .55), rgba(139, 97, 255, .62), rgba(240, 68, 161, .56), transparent);
  box-shadow: 0 0 14px rgba(139, 97, 255, .13);
}

html[data-route="app"] .card p.lead,
html[data-route="app"] .card > p {
  color: #e8e4ef;
}

html[data-route="app"] .card .bullet,
html[data-route="app"] .card .bullet:first-of-type {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .026);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

html[data-route="app"] .bullet b {
  color: var(--dark-text);
}

html[data-route="app"] .bullet div,
html[data-route="app"] .bullet span,
html[data-route="app"] .bullet small {
  color: var(--dark-muted);
}

html[data-route="app"] .bullet .dot-ico {
  border: 0;
  background: var(--dark-gradient-warm);
  box-shadow: 0 7px 18px rgba(240, 68, 161, .16);
}

html[data-route="app"] .bullet .dot-ico svg {
  stroke: #fff;
  filter: none;
}

html[data-route="app"] .income-flow-node,
html[data-route="app"] .rate-box,
html[data-route="app"] .pay-chip {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, .085);
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

html[data-route="app"] .rate-box span,
html[data-route="app"] .rate-box small,
html[data-route="app"] .rate-box .lbl,
html[data-route="app"] .pay-chip .tag,
html[data-route="app"] .income-flow-label {
  color: var(--dark-muted);
}

html[data-route="app"] .rate-box strong,
html[data-route="app"] .rate-box .val,
html[data-route="app"] .pay-chip strong {
  color: var(--dark-text);
  text-shadow: none;
}

html[data-route="app"] .income-flow-icon {
  color: #d9cfff;
  border-color: rgba(139, 97, 255, .22);
  background: rgba(139, 97, 255, .08);
}

html[data-route="app"] .income-flow-arrow {
  color: var(--dark-pink);
}

html[data-route="app"] .note,
html[data-route="app"] .inline-warning {
  color: #c2b9d2;
  border-color: rgba(139, 97, 255, .24);
  background:
    linear-gradient(120deg, rgba(139, 97, 255, .12), rgba(67, 216, 239, .035)),
    rgba(18, 16, 29, .90);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .025),
    0 12px 30px rgba(0, 0, 0, .16);
}

html[data-route="app"] .note strong,
html[data-route="app"] .inline-warning strong {
  color: var(--dark-text);
}

html[data-route="app"] .note svg,
html[data-route="app"] .inline-warning svg {
  stroke: var(--dark-cyan);
}

html[data-route="app"] .final {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background:
    linear-gradient(120deg, rgba(53, 214, 163, .055), transparent 48%, rgba(139, 97, 255, .055)),
    #12111c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    var(--dark-shadow);
}

html[data-route="app"] .final::after {
  background:
    linear-gradient(180deg, rgba(9, 8, 17, .01) 0 68%, rgba(18, 17, 28, .82) 91%, #12111c 100%),
    linear-gradient(90deg, rgba(9, 8, 17, .04), transparent 44%, rgba(139, 97, 255, .06)),
    url("./assets/final-streamer-studio.png") 52% 50% / auto 126% no-repeat;
}

html[data-route="app"] #appView::after {
  bottom: -2px;
  background: linear-gradient(
    to bottom,
    rgba(9, 8, 17, 0) 0%,
    rgba(9, 8, 17, .18) 18%,
    rgba(9, 8, 17, .68) 44%,
    rgba(9, 8, 17, .94) 66%,
    #090811 84%,
    #090811 100%
  );
}

html[data-route="app"] #appView::before {
  background: var(--dark-bg);
}

html[data-route="app"] #appView:has(.step[data-step="home"].active)::after {
  content: none;
  display: none;
}

html[data-route="app"] #navWrap,
html[data-route="app"] .nav {
  border-color: var(--dark-line);
  background: rgba(18, 16, 28, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 18px 48px rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

html[data-route="app"] .btn.ghost {
  color: #ded9e8;
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .045);
}

html[data-route="app"] .btn.ghost:hover {
  background: rgba(255, 255, 255, .08);
}

html[data-route="app"] .scroll-cue,
html[data-route="app"] .register-pointer {
  color: #e4dcf3;
  border-color: var(--dark-line-strong);
  background: rgba(18, 16, 28, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
}

/* CMS in browser and Android */
:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-app {
  color: var(--dark-text);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-app > .topbar {
  border-color: var(--dark-line);
  background:
    linear-gradient(125deg, rgba(139, 97, 255, .055), rgba(240, 68, 161, .025)),
    rgba(17, 15, 26, .96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 16px 38px rgba(0, 0, 0, .30);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .brand,
:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-title h2,
:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-hero h2,
:is(html[data-route="admin"], html[data-native-admin="true"]) h3 {
  color: var(--dark-text);
  text-shadow: none;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .mark-img {
  box-shadow: none;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .notification-bell,
:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-shortcut,
:is(html[data-route="admin"], html[data-native-admin="true"]) .notification-close,
:is(html[data-route="admin"], html[data-native-admin="true"]) .pagination-button {
  color: #ddd7e8;
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-shortcut {
  color: #b8a5ff;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .eyebrow {
  color: transparent;
  background: var(--dark-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-login,
:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-hero,
:is(html[data-route="admin"], html[data-native-admin="true"]) .users-panel,
:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card,
:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-metrics article,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-metrics article,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-breakdowns > section,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-visit-row,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-funnel-panel,
:is(html[data-route="admin"], html[data-native-admin="true"]) .campaign-panel,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-panel,
:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-rule,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-card,
:is(html[data-route="admin"], html[data-native-admin="true"]) .notification-item,
:is(html[data-route="admin"], html[data-native-admin="true"]) .report-card {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background:
    linear-gradient(145deg, rgba(139, 97, 255, .035), transparent 54%),
    rgba(18, 17, 28, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    var(--dark-shadow-soft);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-hero {
  background:
    linear-gradient(120deg, rgba(139, 97, 255, .10), rgba(240, 68, 161, .045)),
    rgba(18, 17, 28, .95);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .home-logo.small {
  color: #fff;
  background: var(--dark-gradient);
  box-shadow: 0 12px 28px rgba(240, 68, 161, .18);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .home-logo svg {
  stroke: #fff;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-login-form input,
:is(html[data-route="admin"], html[data-native-admin="true"]) .campaign-form input,
:is(html[data-route="admin"], html[data-native-admin="true"]) .campaign-form select,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form textarea,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form input,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form select,
:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-delay input,
:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-messages textarea,
:is(html[data-route="admin"], html[data-native-admin="true"]) .users-filter-label select {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) input::placeholder,
:is(html[data-route="admin"], html[data-native-admin="true"]) textarea::placeholder {
  color: #777182;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) select option {
  color: var(--dark-text);
  background: #171421;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .btn.primary {
  overflow: hidden;
  border: 0;
  color: #fff;
  background: var(--dark-gradient);
  background-size: 100% 100%;
  box-shadow: 0 13px 30px rgba(240, 68, 161, .20);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .20);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .btn.ghost,
:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-menu .btn {
  color: #e5e0ec;
  border-color: var(--dark-line);
  background:
    linear-gradient(130deg, rgba(139, 97, 255, .04), rgba(240, 68, 161, .018)),
    rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .028);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-menu .btn:hover {
  border-color: rgba(139, 97, 255, .28);
  background: rgba(139, 97, 255, .08);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-menu-icon svg {
  color: #b8a5ff;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #adminLogout {
  color: #fff;
  border: 1px solid rgba(255, 98, 125, .26);
  background: linear-gradient(135deg, rgba(255, 98, 125, .82), rgba(240, 68, 161, .78));
  box-shadow: 0 10px 24px rgba(255, 98, 125, .15);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-metrics article strong,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-metrics article strong,
:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card h3,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-card h3 {
  color: var(--dark-text);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .admin-metrics article span,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-metrics article span,
:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card p,
:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card-grid span,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-retention,
:is(html[data-route="admin"], html[data-native-admin="true"]) .reports-retention,
:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-hint,
:is(html[data-route="admin"], html[data-native-admin="true"]) .notification-retention {
  color: var(--dark-muted);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card-grid div,
:is(html[data-route="admin"], html[data-native-admin="true"]) .campaign-link,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-funnel-row,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-breakdown-row,
:is(html[data-route="admin"], html[data-native-admin="true"]) .delivery-row {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, .065);
  background: rgba(255, 255, 255, .03);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .last-seen {
  color: var(--dark-text);
  background: rgba(255, 255, 255, .045);
  outline: 0 !important;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .last-seen:focus,
:is(html[data-route="admin"], html[data-native-admin="true"]) .last-seen:focus-visible {
  background: rgba(139, 97, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(139, 97, 255, .20);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card.online {
  border-color: rgba(53, 214, 163, .28);
  background:
    linear-gradient(135deg, rgba(53, 214, 163, .075), transparent 56%),
    rgba(18, 17, 28, .96);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card.blocked {
  border-color: rgba(255, 98, 125, .28);
  background:
    linear-gradient(135deg, rgba(255, 98, 125, .075), transparent 56%),
    rgba(18, 17, 28, .96);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .status-badge.online {
  color: #79e9c5;
  border-color: rgba(53, 214, 163, .30);
  background: rgba(53, 214, 163, .10);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .status-badge.blocked {
  color: #ff91a4;
  border-color: rgba(255, 98, 125, .30);
  background: rgba(255, 98, 125, .10);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .status-badge.offline {
  color: #aaa3b8;
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .035);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-switch label,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-days label {
  color: #d7d1df;
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .035);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-switch input[type="radio"] {
  border-color: rgba(255, 255, 255, .34);
  background: transparent;
  box-shadow: none;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-switch input[type="radio"]:checked {
  border-color: var(--dark-pink);
  background: radial-gradient(circle, var(--dark-pink) 0 42%, transparent 46%);
  box-shadow: 0 0 0 4px rgba(240, 68, 161, .10);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-days input[type="checkbox"] + span::before {
  border-color: rgba(255, 255, 255, .28);
  background: transparent;
  box-shadow: none;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-days input[type="checkbox"]:checked + span::before {
  border-color: transparent;
  background: var(--dark-gradient-warm);
  box-shadow: 0 8px 18px rgba(240, 68, 161, .16);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-toggle i {
  border-color: var(--dark-line);
  background: #2a2734;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-toggle i::after {
  background: #dad5e2;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-toggle input:checked + i {
  border-color: transparent;
  background: var(--dark-gradient-warm);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-toggle input:checked + i::after {
  background: #fff;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-media {
  border-color: var(--dark-line);
  background: #0e0d16;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .notification-backdrop {
  background: rgba(3, 3, 8, .68);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .notification-drawer {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background: #11101b;
  box-shadow: -24px 0 58px rgba(0, 0, 0, .44);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .notification-item.unread {
  border-color: rgba(139, 97, 255, .30);
  background:
    linear-gradient(130deg, rgba(139, 97, 255, .11), rgba(240, 68, 161, .035)),
    #15131f;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .toast {
  color: #fff;
  border-color: var(--dark-line-strong);
  background: rgba(22, 20, 32, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
}

@media (max-width: 680px) {
  html[data-route="site"] .landing-topbar {
    margin: 0 -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  html[data-route="site"] .landing-nav a {
    display: none;
  }

  html[data-route="site"] .landing-hero::before {
    background: transparent;
  }

  html[data-route="site"] .landing-phone-mobile {
    width: min(100%, 460px);
  }
}

@media (max-width: 380px) {
  html[data-route="app"] .home-hero {
    min-height: 488px;
    background-size: auto, auto 76%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-route="site"] *,
  html[data-route="app"] *,
  html[data-route="admin"] *,
  html[data-native-admin="true"] * {
    scroll-behavior: auto !important;
  }
}

/* GoShow keeps the Live Stars CMS structure while using a restrained cyan accent. */
:is(html[data-route="admin"], html[data-native-admin="true"]) .goshow-menu-button {
  border-color: rgba(53, 213, 255, .16);
  background:
    linear-gradient(125deg, rgba(53, 213, 255, .065), rgba(79, 124, 255, .04)),
    rgba(255, 255, 255, .035);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .goshow-stats-page .eyebrow {
  color: #65dcff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .goshow-metrics article {
  border-color: rgba(53, 213, 255, .12);
  background:
    linear-gradient(145deg, rgba(53, 213, 255, .055), transparent 56%),
    rgba(18, 17, 28, .94);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .goshow-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .goshow-metrics article strong {
  color: #74e4ff;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .goshow-users-panel {
  margin-top: 12px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .goshow-user-card:not(.online) {
  border-color: rgba(53, 213, 255, .12);
}

/* Production corrections: one canvas, one control language, no light-theme leaks. */
html[data-route="app"] body,
html[data-route="admin"] body,
html[data-native-admin="true"] body {
  background-color: #090811;
  background-image: linear-gradient(180deg, #0d0b16 0%, #090811 48%, #07070d 100%);
}

html[data-route="site"] body::before,
html[data-route="admin"] body::before,
html[data-native-admin="true"] body::before {
  content: none;
  display: none;
}

/* The website header spans the viewport while its content stays aligned. */
html[data-route="site"] .landing-topbar {
  width: 100vw;
  width: 100dvw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-right: max(20px, calc((100vw - 1120px) / 2 + 20px));
  padding-left: max(20px, calc((100vw - 1120px) / 2 + 20px));
  border-bottom: 0;
  background: transparent;
}

/* A clean conversion path without the unexplained blocks behind each item. */
html[data-route="app"] .income-flow {
  gap: 8px;
  margin: 8px 0 14px;
  padding: 14px 10px;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

html[data-route="app"] .income-flow-node {
  color: var(--dark-text);
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-route="app"] .income-flow-node b {
  color: #eeeaf4;
  font-size: 11px;
}

html[data-route="app"] .income-flow-arrow {
  color: var(--dark-muted);
  stroke: rgba(232, 226, 241, .52);
}

html[data-route="app"] .income-flow-node:nth-of-type(1) .income-flow-icon {
  border-color: rgba(255, 117, 79, .35);
  background: linear-gradient(145deg, #ff7b76, #ef428f);
}

html[data-route="app"] .income-flow-node:nth-of-type(2) .income-flow-icon {
  border-color: rgba(139, 97, 255, .38);
  background: linear-gradient(145deg, #56cbe8, #7656ec);
}

html[data-route="app"] .income-flow-node:nth-of-type(3) .income-flow-icon {
  border-color: rgba(53, 214, 163, .36);
  background: linear-gradient(145deg, #42d5ab, #199078);
}

html[data-route="app"] .income-flow-icon {
  color: #fff;
}

/* Every check mark uses the same cyan accent in Mini App and CMS. */
html[data-route="app"] .card .bullet .dot-ico,
html[data-route="app"] .bullet .dot-ico {
  border-color: transparent;
  background: var(--dark-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 7px 18px rgba(240, 68, 161, .18);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) {
  accent-color: #39cfe7;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-switch input[type="radio"]:checked {
  border-color: #39cfe7;
  background: radial-gradient(circle, #39cfe7 0 42%, transparent 46%);
  box-shadow: 0 0 0 4px rgba(57, 207, 231, .11);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-days input[type="checkbox"]:checked + span::before,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-days input[type="checkbox"]:checked + span::before {
  border-color: #39cfe7 !important;
  background-color: #39cfe7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
  box-shadow: 0 7px 16px rgba(57, 207, 231, .16) !important;
}

/* Restore dark surfaces where the previous native light theme was more specific. */
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-funnel-step,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-visit-device,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-visit-location,
:is(html[data-route="admin"], html[data-native-admin="true"]) .campaign-card,
:is(html[data-route="admin"], html[data-native-admin="true"]) .campaign-stats span,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-meta span,
:is(html[data-route="admin"], html[data-native-admin="true"]) .report-counts > span,
:is(html[data-route="admin"], html[data-native-admin="true"]) .report-entry,
:is(html[data-route="admin"], html[data-native-admin="true"]) .user-info-row {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .035);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .site-funnel-step span,
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-funnel-step small {
  color: var(--dark-muted);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .site-funnel-step b {
  color: var(--dark-text);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-switch label,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-buttons label,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-days label,
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-buttons .toggle-row {
  color: #d7d1df;
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .035);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  color: #eeeaf4;
  background: #282432;
  font: inherit;
  cursor: pointer;
}

/* The final screen has one clear, short completion sequence. */
html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final::after {
  animation: darkFinalMediaReveal .72s .04s cubic-bezier(.2, .75, .2, 1) both !important;
}

html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final > .icon-badge {
  animation: darkFinalCheckReveal .58s .28s cubic-bezier(.18, .86, .24, 1.18) both !important;
}

html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final > h2 {
  animation: darkFinalContentReveal .48s .42s cubic-bezier(.2, .75, .2, 1) both !important;
}

html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final > p {
  animation: darkFinalContentReveal .50s .52s cubic-bezier(.2, .75, .2, 1) both !important;
}

html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final > .final-home-row {
  animation: darkFinalContentReveal .50s .64s cubic-bezier(.2, .75, .2, 1) both !important;
}

html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final .icon-badge svg {
  animation: darkFinalTickReveal .42s .49s cubic-bezier(.18, .86, .24, 1.18) both;
}

@keyframes darkFinalMediaReveal {
  from { opacity: 0; transform: scale(1.045); filter: brightness(.72) saturate(.72); }
  to { opacity: 1; transform: scale(1); filter: brightness(1) saturate(1); }
}

@keyframes darkFinalCheckReveal {
  0% { opacity: 0; transform: translateY(8px) scale(.66) rotate(-8deg); }
  68% { opacity: 1; transform: translateY(-1px) scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes darkFinalTickReveal {
  from { opacity: 0; transform: scale(.55); }
  to { opacity: 1; transform: scale(1); }
}

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

/* Keep check colors stable while rows reveal. */
@keyframes guideCheckReveal {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 680px) {
  html[data-route="site"] .landing-topbar {
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final::after,
  html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final > .icon-badge,
  html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final > h2,
  html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final > p,
  html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final > .final-home-row,
  html[data-route="app"] .step[data-step="final"].active.is-motion-entry .final .icon-badge svg {
    animation: none !important;
  }
}

/* Final production pass: aligned media controls and registration details. */

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .autopost-grid {
  align-items: end;
  gap: 12px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .autopost-grid > label {
  display: grid;
  grid-template-rows: auto 58px;
  min-width: 0;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .autopost-grid > label > span:first-child {
  align-self: end;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm select,
:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-picker {
  width: 100%;
  height: 58px;
  min-height: 58px;
  box-sizing: border-box;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-picker {
  position: relative;
  display: grid;
  grid-template-columns: minmax(108px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  color: var(--dark-text);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  cursor: pointer;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-picker:focus-within {
  border-color: rgba(139, 97, 255, .55);
  box-shadow: 0 0 0 3px rgba(139, 97, 255, .12);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-action,
:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-name {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-action {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, rgba(67, 216, 239, .22), rgba(139, 97, 255, .26));
  font-weight: 700;
  white-space: nowrap;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-name {
  overflow: hidden;
  color: var(--dark-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-picker:not(.has-file) {
  grid-template-columns: minmax(0, 1fr);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-picker:not(.has-file) .image-file-name {
  display: none;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-name.has-file {
  color: #e9e4ef;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

/* CMS checkboxes carry the brand color while command buttons stay restrained. */
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-days label {
  position: relative;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-days input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-days label > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-days label > span::before {
  content: "";
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, .30);
  border-radius: 5px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-days input[type="checkbox"]:checked + span::before {
  border-color: transparent !important;
  background-color: transparent !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    var(--dark-gradient) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: center, center !important;
  background-size: 12px 12px, 100% 100% !important;
  box-shadow: 0 7px 17px rgba(240, 68, 161, .18) !important;
  transform: scale(1.02);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-form .autopost-days input[type="checkbox"]:focus-visible + span::before {
  box-shadow: 0 0 0 3px rgba(139, 97, 255, .15);
}

/* Site analytics breakdowns use the same compact inset rows as the rest of CMS. */
:is(html[data-route="admin"], html[data-native-admin="true"]) .site-breakdowns section > div {
  gap: 7px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .site-breakdown-row {
  min-height: 42px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(139, 97, 255, .055), rgba(240, 68, 161, .018) 62%, transparent),
    rgba(255, 255, 255, .032);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .site-breakdown-row span {
  color: #aaa3b8;
  font-size: 12px;
  line-height: 1.25;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .site-breakdown-row b {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 7px;
  border: 1px solid rgba(139, 97, 255, .16);
  border-radius: 8px;
  color: #f5f1fa;
  background: rgba(139, 97, 255, .08);
  font-size: 12px;
  line-height: 1;
}

/* Native CMS keeps secondary analytics readable without three tall cards. */
html[data-native-admin="true"] .site-breakdowns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  min-width: 0;
}

html[data-native-admin="true"] .site-breakdowns > section {
  min-width: 0;
  padding: 9px 7px;
  border-radius: 11px;
  overflow: hidden;
}

html[data-native-admin="true"] .site-breakdowns h3 {
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-native-admin="true"] .site-breakdowns section > div {
  gap: 4px;
}

html[data-native-admin="true"] .site-breakdowns .site-breakdown-row {
  width: 100%;
  max-width: 100%;
  min-height: 27px;
  min-width: 0;
  padding: 4px 4px 4px 6px;
  border-radius: 7px;
  gap: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

html[data-native-admin="true"] .site-breakdowns .site-breakdown-row span {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-native-admin="true"] .site-breakdowns .site-breakdown-row b {
  flex: 0 0 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) :is(.admin-metrics, .site-metrics) strong {
  min-width: 3ch;
  font-variant-numeric: tabular-nums;
}

/* Guidance uses a warm brand accent, not the visual language of an error. */
html[data-route="app"] .note,
html[data-route="app"] .inline-warning {
  color: #d8cfdf;
  border-color: rgba(255, 117, 79, .28);
  background:
    linear-gradient(118deg, rgba(240, 68, 161, .14), rgba(255, 117, 79, .085) 58%, rgba(139, 97, 255, .055)),
    rgba(18, 16, 29, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 12px 30px rgba(0, 0, 0, .17);
}

html[data-route="app"] .note svg,
html[data-route="app"] .inline-warning svg {
  stroke: #ff7b76;
  filter: drop-shadow(0 0 7px rgba(240, 68, 161, .20));
}

/* Step 5 reads as a short registration sequence. */
html[data-route="app"] .step[data-step="5"].active.is-motion-entry .inline-warning {
  animation: registrationNoticeReveal .46s .28s cubic-bezier(.2, .75, .2, 1) both;
}

html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip {
  animation: registrationOptionReveal .46s cubic-bezier(.18, .86, .24, 1.08) both;
}

html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip:nth-child(1) { animation-delay: .42s; }
html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip:nth-child(2) { animation-delay: .52s; }
html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip:nth-child(3) { animation-delay: .62s; }
html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip:nth-child(4) { animation-delay: .72s; }
html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip:nth-child(5) { animation-delay: .82s; }

html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip svg {
  animation: registrationIconReveal .40s calc(var(--registration-icon-delay, .52s)) cubic-bezier(.18, .86, .24, 1.12) both;
}

html[data-route="app"] .step[data-step="5"] .pay-chip:nth-child(1) { --registration-icon-delay: .52s; }
html[data-route="app"] .step[data-step="5"] .pay-chip:nth-child(2) { --registration-icon-delay: .62s; }
html[data-route="app"] .step[data-step="5"] .pay-chip:nth-child(3) { --registration-icon-delay: .72s; }
html[data-route="app"] .step[data-step="5"] .pay-chip:nth-child(4) { --registration-icon-delay: .82s; }
html[data-route="app"] .step[data-step="5"] .pay-chip:nth-child(5) { --registration-icon-delay: .92s; }

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

@keyframes registrationOptionReveal {
  from { opacity: 0; transform: translateY(9px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes registrationIconReveal {
  from { opacity: 0; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 430px) {
  :is(html[data-route="admin"], html[data-native-admin="true"]) .brand {
    gap: 7px;
    font-size: 16px;
  }

  :is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-picker {
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
    gap: 7px;
  }

  :is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-action {
    padding: 0 9px;
    font-size: 12px;
  }

  :is(html[data-route="admin"], html[data-native-admin="true"]) #imagesForm .image-file-name {
    font-size: 11px;
  }
}

@media (min-width: 700px) {
  html[data-route="app"] #appView.app {
    width: min(500px, calc(100% - 40px));
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-route="app"] .step[data-step="5"].active.is-motion-entry .inline-warning,
  html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip,
  html[data-route="app"] .step[data-step="5"].active.is-motion-entry .pay-chip svg {
    animation: none !important;
  }
}

/* Override legacy light placeholders so dark CMS navigation never flashes. */
:is(html[data-route="admin"], html[data-native-admin="true"]) .cms-skeleton-card {
  border-color: var(--dark-line);
  background:
    linear-gradient(145deg, rgba(53, 213, 255, .025), transparent 58%),
    rgba(18, 17, 28, .96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .025),
    var(--dark-shadow-soft);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .cms-skeleton-line {
  background: rgba(255, 255, 255, .065);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .cms-skeleton-card::after {
  background: linear-gradient(100deg, transparent 22%, rgba(53, 213, 255, .075) 46%, transparent 70%);
}

/* Unified analytics navigation and clearer operational states. */
:is(html[data-route="admin"], html[data-native-admin="true"]) .analytics-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 14px;
  padding: 5px;
  border: 1px solid var(--dark-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .analytics-tabs[hidden] {
  display: none !important;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .analytics-tab {
  min-width: 0;
  min-height: 38px;
  padding: 8px 6px;
  border: 0;
  border-radius: 9px;
  color: #aaa3b8;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .analytics-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(53, 213, 255, .18), rgba(139, 97, 255, .22), rgba(240, 68, 161, .16));
  box-shadow: inset 0 0 0 1px rgba(139, 97, 255, .20), 0 8px 22px rgba(0, 0, 0, .14);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) :is(.admin-metrics, .site-metrics) .metric-online {
  border-color: rgba(53, 214, 163, .34);
  background:
    linear-gradient(145deg, rgba(53, 214, 163, .20), transparent 72%),
    rgba(18, 17, 28, .96);
  box-shadow: inset 0 1px 0 rgba(121, 233, 197, .11), 0 12px 30px rgba(53, 214, 163, .10);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) :is(.admin-metrics, .site-metrics) .metric-online strong {
  color: #79e9c5;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) :is(.admin-metrics, .site-metrics) .metric-blocked {
  border-color: rgba(255, 98, 125, .38);
  background:
    linear-gradient(145deg, rgba(255, 98, 125, .21), transparent 72%),
    rgba(18, 17, 28, .96);
  box-shadow: inset 0 1px 0 rgba(255, 145, 164, .11), 0 12px 30px rgba(255, 98, 125, .10);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) :is(.admin-metrics, .site-metrics) .metric-blocked strong {
  color: #ff91a4;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card.online {
  border-color: rgba(53, 214, 163, .34);
  background:
    radial-gradient(ellipse 78% 145% at -18% 50%, rgba(53, 214, 163, .25) 0%, rgba(53, 214, 163, .10) 38%, transparent 72%),
    rgba(18, 17, 28, .96);
  box-shadow: 0 14px 34px rgba(53, 214, 163, .08);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .user-card.blocked {
  border-color: rgba(255, 98, 125, .36);
  background:
    radial-gradient(ellipse 78% 145% at -18% 50%, rgba(255, 77, 119, .27) 0%, rgba(255, 77, 119, .11) 38%, transparent 72%),
    rgba(18, 17, 28, .96);
  box-shadow: 0 14px 34px rgba(255, 77, 119, .09);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .blocked-reason b {
  color: #ff91a4;
}

/* One post composer controls both projects and all five languages. */
:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-target,
:is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--dark-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-target legend,
:is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts legend {
  padding: 0 6px;
  color: #aaa3b8;
  font-size: 11px;
  font-weight: 750;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-target {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-target label {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #aaa3b8;
  background: rgba(255, 255, 255, .03);
  text-align: center;
  cursor: pointer;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-target input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .autopost-target label:has(input:checked) {
  color: #fff;
  border-color: rgba(139, 97, 255, .34);
  background: linear-gradient(135deg, rgba(53, 213, 255, .12), rgba(139, 97, 255, .18), rgba(240, 68, 161, .12));
  box-shadow: inset 0 0 0 1px rgba(139, 97, 255, .12);
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts label:last-child {
  grid-column: 1 / -1;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts b {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 6px;
  color: #ddd7e8;
  background: rgba(139, 97, 255, .10);
  font-size: 9px;
  letter-spacing: .08em;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts textarea {
  min-height: 90px;
  resize: vertical;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-target {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(53, 213, 255, .16);
  border-radius: 6px;
  color: #78ddff;
  background: rgba(53, 213, 255, .06);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

:is(html[data-route="admin"], html[data-native-admin="true"]) .automation-goshow .automation-target {
  color: #79e9c5;
  border-color: rgba(53, 214, 163, .18);
  background: rgba(53, 214, 163, .06);
}

@media (max-width: 430px) {
  :is(html[data-route="admin"], html[data-native-admin="true"]) .analytics-tabs {
    position: sticky;
    top: calc(var(--tg-content-safe-area-inset-top, 0px) + 73px);
    z-index: 14;
    backdrop-filter: blur(14px);
  }

  :is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts {
    grid-template-columns: 1fr;
  }

  :is(html[data-route="admin"], html[data-native-admin="true"]) .localized-posts label:last-child {
    grid-column: auto;
  }
}
