:root {
  --studio-bg: #080810;
  --studio-surface: rgba(17, 17, 29, .78);
  --studio-surface-solid: #12121d;
  --studio-line: rgba(255, 255, 255, .11);
  --studio-violet: #8b5cff;
  --studio-pink: #ff3f9d;
  --studio-coral: #ff784d;
  --studio-cyan: #46d9ff;
  --studio-gradient: linear-gradient(112deg, #845cff 0%, #f441a5 52%, #ff8249 100%);
}

html[data-route="app"],
html[data-route="app"] body {
  min-height: 100%;
  background: var(--studio-bg);
}

html[data-route="app"] body {
  background-image:
    linear-gradient(132deg, transparent 0 26%, rgba(70,217,255,.07) 38%, rgba(139,92,255,.15) 49%, transparent 64%),
    linear-gradient(48deg, transparent 0 36%, rgba(255,63,157,.11) 49%, rgba(255,120,77,.06) 59%, transparent 72%),
    linear-gradient(180deg, #121020 0%, #080810 46%, #0c0a13 100%);
  background-size: 210% 210%, 230% 230%, 100% 100%;
  animation: studioBackdrop 22s ease-in-out infinite alternate;
}

html[data-route="app"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 54px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

html[data-route="app"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 72%, rgba(8,8,16,.88) 100%);
}

html[data-route="app"] .app {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  padding: 10px 14px 108px;
}

html[data-route="app"] .topbar {
  position: sticky;
  top: 8px;
  z-index: 30;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(13,13,24,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 16px 42px rgba(0,0,0,.34),
    0 0 30px rgba(139,92,255,.08);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

html[data-route="app"] .brand {
  gap: 10px;
  font-size: 18px;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(255,63,157,.28);
}

html[data-route="app"] .mark-img {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 11px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16),
    0 0 18px rgba(139,92,255,.54),
    0 0 30px rgba(255,63,157,.30);
  animation: studioLogoBreath 4.4s ease-in-out infinite;
}

html[data-route="app"] .language-select {
  width: 58px;
  min-height: 36px;
  padding: 0 8px;
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.045);
  color: #dcd7eb;
  font-size: 12px;
}

html[data-route="app"] .progress-wrap {
  position: sticky;
  top: 77px;
  z-index: 25;
  margin: 0 2px 16px;
  padding: 12px 14px 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(12,12,22,.76);
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-route="app"] .progress-track {
  height: 4px;
  background: rgba(255,255,255,.07);
}

html[data-route="app"] .progress-fill {
  background: var(--studio-gradient);
  box-shadow:
    0 0 10px rgba(139,92,255,.70),
    0 0 18px rgba(255,63,157,.42);
}

html[data-route="app"] .progress-label {
  margin-top: 9px;
  font-size: 11px;
}

html[data-route="app"] .dots {
  gap: 5px;
  margin-top: 9px;
}

html[data-route="app"] .dots i {
  height: 2px;
  background: rgba(255,255,255,.07);
}

html[data-route="app"] .dots i.done {
  background: var(--studio-gradient);
  box-shadow: 0 0 9px rgba(255,63,157,.50);
}

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

html[data-route="app"] .stage {
  min-height: 440px;
  margin-top: 8px;
}

html[data-route="app"] .step {
  animation: studioStepIn .56s cubic-bezier(.2,.8,.2,1);
}

html[data-route="app"] .home {
  padding-top: 4px;
}

html[data-route="app"] .home-hero {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(139,92,255,.28), rgba(255,63,157,.12) 54%, rgba(255,120,77,.08)),
    rgba(17,17,29,.78);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 24px 68px rgba(0,0,0,.34),
    0 0 48px rgba(139,92,255,.13);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

html[data-route="app"] .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--studio-gradient);
  box-shadow:
    0 0 12px rgba(139,92,255,.78),
    0 0 24px rgba(255,63,157,.55);
}

html[data-route="app"] .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 18%, rgba(255,255,255,.065) 47%, transparent 70%);
  transform: translateX(-120%);
  animation: studioSweep 7s ease-in-out infinite;
}

html[data-route="app"] .home-hero > * {
  position: relative;
  z-index: 1;
}

html[data-route="app"] .home-logo {
  width: 62px;
  height: 62px;
  margin: 0 0 48px;
  border-radius: 18px;
  background: var(--studio-gradient);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16),
    0 0 28px rgba(139,92,255,.42),
    0 0 50px rgba(255,63,157,.26);
}

html[data-route="app"] .home-logo::after {
  content: "LIVE";
  position: absolute;
  left: 76px;
  top: 19px;
  padding: 5px 8px;
  border: 1px solid rgba(70,217,255,.25);
  border-radius: 999px;
  background: rgba(70,217,255,.08);
  color: #bcefff;
  font: 700 9px/1 Inter, sans-serif;
  letter-spacing: .12em;
  box-shadow: 0 0 18px rgba(70,217,255,.12);
}

html[data-route="app"] .home h1 {
  max-width: 340px;
  margin-bottom: 13px;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

html[data-route="app"] .home .desc {
  max-width: 350px;
  margin: 0;
  color: #b7b1c8;
  font-size: 14px;
  line-height: 1.58;
}

html[data-route="app"] .home-cta {
  justify-content: space-between;
  min-height: 56px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 13px;
  background: var(--studio-gradient);
  color: #090910;
  box-shadow:
    0 14px 34px rgba(255,63,157,.30),
    0 0 30px rgba(139,92,255,.22);
  animation:
    buttonGradientFlow 5s ease-in-out infinite,
    studioPrimaryBreath 3.2s ease-in-out infinite;
}

html[data-route="app"] .home-cta svg {
  width: 20px;
  height: 20px;
}

html[data-route="app"] .home-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

html[data-route="app"] .home-point {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 142px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(17,17,29,.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 15px 34px rgba(0,0,0,.20);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html[data-route="app"] .home-point:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 104px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
}

html[data-route="app"] .home-point .ico {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,63,157,.16);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(139,92,255,.14), rgba(255,63,157,.08));
  box-shadow: 0 0 22px rgba(139,92,255,.10);
}

html[data-route="app"] .home-point:nth-child(3) .ico {
  margin-bottom: 0;
}

html[data-route="app"] .home-point .ico svg {
  stroke: var(--studio-pink);
  filter: drop-shadow(0 0 6px rgba(255,63,157,.48));
}

html[data-route="app"] .home-point .txt b {
  overflow-wrap: anywhere;
  margin-bottom: 4px;
  font-size: 13.5px;
  line-height: 1.25;
}

html[data-route="app"] .home-point .txt span {
  display: block;
  overflow-wrap: anywhere;
  color: #958fa7;
  font-size: 11.5px;
  line-height: 1.38;
}

html[data-route="app"] .home-row {
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
}

html[data-route="app"] .home-chip {
  width: auto;
  min-width: 0;
  min-height: 74px;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  background: rgba(17,17,29,.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 14px 30px rgba(0,0,0,.20);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html[data-route="app"] .home-chip .chip-label {
  max-width: 100%;
  overflow-wrap: anywhere;
}

html[data-route="app"] .home-chip svg {
  width: 20px;
  height: 20px;
  stroke: var(--studio-cyan);
  filter: drop-shadow(0 0 7px rgba(70,217,255,.38));
}

html[data-route="app"] #registerTop svg {
  stroke: var(--studio-pink);
  filter: drop-shadow(0 0 7px rgba(255,63,157,.45));
}

html[data-route="app"] .home-foot {
  margin: 18px 10px 0;
  color: #777286;
  font-size: 10.5px;
  line-height: 1.55;
}

html[data-route="app"] .step[data-step]:not([data-step="home"]):not([data-step="final"]) {
  display: none;
  grid-template-columns: 62px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}

html[data-route="app"] .step[data-step].active:not([data-step="home"]):not([data-step="final"]) {
  display: grid;
}

html[data-route="app"] .step[data-step]:not([data-step="home"]):not([data-step="final"]) > .icon-badge {
  grid-column: 1;
  grid-row: 1 / span 2;
}

html[data-route="app"] .step[data-step]:not([data-step="home"]):not([data-step="final"]) > .eyebrow,
html[data-route="app"] .step[data-step]:not([data-step="home"]):not([data-step="final"]) > h2 {
  grid-column: 2;
}

html[data-route="app"] .step[data-step]:not([data-step="home"]):not([data-step="final"]) > .card,
html[data-route="app"] .step[data-step]:not([data-step="home"]):not([data-step="final"]) > .note {
  grid-column: 1 / -1;
}

html[data-route="app"] .icon-badge {
  width: 58px;
  height: 58px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  background: var(--studio-gradient);
  box-shadow:
    0 0 26px rgba(139,92,255,.34),
    0 0 42px rgba(255,63,157,.18);
}

html[data-route="app"] .eyebrow {
  align-self: end;
  margin: 0 0 5px;
  color: #c5b2ff;
  background: none;
  font-size: 10px;
  letter-spacing: .13em;
}

html[data-route="app"] .step h2 {
  align-self: start;
  margin: 0;
  font-size: 25px;
  line-height: 1.12;
}

html[data-route="app"] .card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(17,17,29,.80);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 20px 46px rgba(0,0,0,.24);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-route="app"] .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,255,.88), rgba(255,63,157,.76), transparent);
  box-shadow: 0 0 14px rgba(255,63,157,.32);
}

html[data-route="app"] .card p.lead {
  margin-bottom: 11px;
  color: #e9e6f2;
  font-size: 14.5px;
  line-height: 1.55;
}

html[data-route="app"] .bullet {
  gap: 11px;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 11px;
  background: rgba(255,255,255,.026);
}

html[data-route="app"] .bullet:first-of-type {
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,.065);
}

html[data-route="app"] .bullet .dot-ico {
  width: 24px;
  height: 24px;
  border-color: rgba(255,63,157,.18);
  background: rgba(255,63,157,.07);
  box-shadow: inset 0 0 12px rgba(255,63,157,.06);
}

html[data-route="app"] .bullet .dot-ico svg {
  stroke: #ff66b1;
  filter: drop-shadow(0 0 5px rgba(255,63,157,.45));
}

html[data-route="app"] .bullet div {
  color: #aaa4b8;
  font-size: 13px;
  line-height: 1.45;
}

html[data-route="app"] .note,
html[data-route="app"] .inline-warning {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(139,92,255,.25);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(139,92,255,.10), rgba(70,217,255,.035));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 0 28px rgba(139,92,255,.06);
  color: #aaa4bd;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

html[data-route="app"] .rate-box,
html[data-route="app"] .pay-chip {
  border-color: rgba(255,255,255,.085);
  background: rgba(255,255,255,.035);
}

html[data-route="app"] .rate-box {
  box-shadow: inset 0 0 22px rgba(139,92,255,.035);
}

html[data-route="app"] .rate-box .val {
  color: #fff;
  text-shadow: 0 0 14px rgba(255,63,157,.20);
}

html[data-route="app"] .pay-chip {
  min-height: 48px;
  border-radius: 10px;
}

html[data-route="app"] .final {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(139,92,255,.20), rgba(255,63,157,.09) 58%, transparent),
    rgba(17,17,29,.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 24px 58px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-route="app"] .final .icon-badge {
  margin-bottom: 20px;
}

html[data-route="app"] .final h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

html[data-route="app"] .nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(calc(100% - 28px), 472px);
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background: rgba(12,12,22,.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 18px 48px rgba(0,0,0,.45),
    0 0 34px rgba(139,92,255,.10);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

html[data-route="app"] .btn {
  min-height: 52px;
  border-radius: 11px;
}

html[data-route="app"] .btn.primary {
  background: var(--studio-gradient);
  color: #090910;
  box-shadow:
    0 12px 28px rgba(255,63,157,.24),
    0 0 22px rgba(139,92,255,.16);
}

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

html[data-route="app"] .register-pointer {
  right: 10px;
  bottom: calc(100% + 10px);
  border-color: rgba(255,255,255,.14);
  background: rgba(12,12,22,.90);
  box-shadow:
    0 14px 34px rgba(0,0,0,.35),
    0 0 24px rgba(255,63,157,.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

@keyframes studioBackdrop {
  0% { background-position: 5% 10%, 92% 86%, 0 0; }
  50% { background-position: 58% 40%, 42% 56%, 0 0; }
  100% { background-position: 94% 72%, 4% 18%, 0 0; }
}

@keyframes studioStepIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes studioSweep {
  0%, 60% { transform: translateX(-120%); opacity: 0; }
  67% { opacity: 1; }
  86%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes studioLogoBreath {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.13),
      0 0 17px rgba(139,92,255,.46),
      0 0 28px rgba(255,63,157,.24);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.20),
      0 0 28px rgba(139,92,255,.68),
      0 0 46px rgba(255,63,157,.38);
  }
}

@keyframes studioPrimaryBreath {
  0%, 100% {
    box-shadow:
      0 12px 28px rgba(255,63,157,.26),
      0 0 20px rgba(139,92,255,.17);
  }
  50% {
    box-shadow:
      0 17px 40px rgba(255,63,157,.40),
      0 0 34px rgba(139,92,255,.31),
      0 0 48px rgba(255,120,77,.12);
  }
}

@media (hover: hover) {
  html[data-route="app"] .home-point,
  html[data-route="app"] .home-chip,
  html[data-route="app"] .card {
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  }

  html[data-route="app"] .home-point:hover,
  html[data-route="app"] .home-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(255,63,157,.24);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 20px 42px rgba(0,0,0,.26),
      0 0 30px rgba(139,92,255,.11);
  }
}

@media (max-width: 360px) {
  html[data-route="app"] .app {
    padding-left: 10px;
    padding-right: 10px;
  }

  html[data-route="app"] .home-hero {
    min-height: 360px;
    padding: 24px 18px 20px;
  }

  html[data-route="app"] .home h1 {
    font-size: 28px;
  }

  html[data-route="app"] .home-point {
    min-height: 150px;
    padding: 13px;
  }

  html[data-route="app"] .step h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-route="app"] body,
  html[data-route="app"] .mark-img,
  html[data-route="app"] .home-hero::after,
  html[data-route="app"] .home-cta {
    animation: none !important;
  }
}
