:root {
  color-scheme: dark;
  --bg: #030706;
  --bg-2: #071513;
  --panel: rgba(9, 24, 21, 0.58);
  --panel-strong: rgba(13, 36, 31, 0.82);
  --panel-soft: rgba(32, 255, 178, 0.08);
  --text: #eefcf7;
  --muted: #91aaa1;
  --accent: #2fffaa;
  --line: rgba(119, 255, 209, 0.18);
  --line-strong: rgba(119, 255, 209, 0.34);
  --emerald: #2fffaa;
  --emerald-strong: #0cff88;
  --cyan: #43d7ff;
  --gold: #f3c86a;
  --danger: #ff5d75;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --glow: 0 0 34px rgba(47, 255, 170, 0.26);
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)), rgba(8, 22, 19, 0.54);
  --glass-bg-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.04)), rgba(8, 22, 19, 0.72);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.26);
  --glass-blur: blur(22px) saturate(168%);
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  --tg-bg: #030706;
  --tg-secondary-bg: #071513;
  --tg-text: #eefcf7;
  --tg-hint: #91aaa1;
  --tg-button: #16d991;
  --tg-button-text: #03100c;
  --app-height: 100dvh;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  --shell-max: 460px;
  --shell-pad-x: clamp(10px, 3.6vw, 16px);
  --nav-height: 68px;
  --nav-bottom: max(8px, var(--safe-bottom));
  --content-bottom: calc(var(--nav-height) + var(--nav-bottom) + 22px);
}

[data-theme="ember"] {
  --bg: #07090d;
  --bg-2: #111828;
  --panel: rgba(10, 19, 29, 0.6);
  --panel-strong: rgba(17, 30, 48, 0.92);
  --panel-soft: rgba(67, 215, 255, 0.09);
  --emerald: #43d7ff;
  --accent: #43d7ff;
  --emerald-strong: #35f7c1;
  --cyan: #77ffcf;
  --gold: #f3c86a;
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)), rgba(8, 17, 28, 0.56);
  --glass-bg-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.04)), rgba(8, 17, 28, 0.74);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  min-height: var(--app-height);
  background: var(--bg);
}

html.glass-debug-mode {
  background: transparent !important;
}

body {
  margin: 0;
  min-height: 100svh;
  min-height: var(--app-height);
  background:
    radial-gradient(circle at 76% -4%, rgba(119, 255, 209, 0.24), transparent 34%),
    radial-gradient(circle at 10% 18%, rgba(67, 215, 255, 0.17), transparent 31%),
    radial-gradient(circle at 62% 66%, rgba(243, 200, 106, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(3, 7, 6, 0.92), rgba(7, 21, 19, 0.84) 56%, rgba(3, 7, 6, 0.96));
  background-size: 150% 150%, 125% 125%, 120% 120%, 100% 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  overflow-x: hidden;
  animation: ambientShift 14s ease-in-out infinite alternate;
}

body.glass-debug-mode {
  background:
    radial-gradient(circle at 72% 6%, rgba(47, 255, 170, 0.16), transparent 32%),
    rgba(0, 0, 0, 0.04) !important;
}

html.glass-debug-mode body::before {
  opacity: 0.46;
}

html.glass-debug-mode body::after {
  opacity: 0.54;
}

html.glass-debug-mode .app-shell {
  background: transparent !important;
}

html.glass-debug-mode .topbar,
html.glass-debug-mode .tabbar,
html.glass-debug-mode .more-panel,
html.glass-debug-mode .debug-panel,
html.glass-debug-mode .plan-card,
html.glass-debug-mode .metric,
html.glass-debug-mode .glass-panel,
html.glass-debug-mode .price-card,
html.glass-debug-mode .install-step,
html.glass-debug-mode .key-card,
html.glass-debug-mode .guide-card,
html.glass-debug-mode .status-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(5, 15, 13, 0.34) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.045) 48%, transparent 56% 100%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 180% 100%, 42px 42px, 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 72%);
  animation: glassSheen 9s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -10% -18% -10%;
  height: 34%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(47, 255, 170, 0.18), transparent 64%);
  filter: blur(30px);
  opacity: 0.8;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, var(--shell-max));
  min-height: 100svh;
  min-height: var(--app-height);
  margin: 0 auto;
  padding: var(--safe-top) var(--shell-pad-x) var(--safe-bottom);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)), rgba(5, 15, 13, 0.46);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 20px;
  line-height: 1.05;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 31%),
    radial-gradient(circle at 50% 50%, rgba(47, 255, 170, 0.92), rgba(47, 255, 170, 0.12) 44%, transparent 58%),
    linear-gradient(135deg, rgba(67, 215, 255, 0.28), rgba(243, 200, 106, 0.12));
  box-shadow: 0 0 24px rgba(47, 255, 170, 0.28), inset 0 0 20px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(238, 252, 247, 0.62);
  border-radius: 9px;
  transform: rotate(45deg);
}

.brand-mark::after {
  inset: 13px;
  border-color: rgba(3, 7, 6, 0.68);
  background: rgba(3, 7, 6, 0.38);
}

.brand-mark span {
  inset: 18px;
  border: 0;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(243, 200, 106, 0.7);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)), rgba(9, 24, 21, 0.44);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.icon-button:active {
  transform: scale(0.96);
}

.view {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 3.1vw, 14px);
  padding: clamp(6px, 2.4vw, 10px) 0 var(--content-bottom);
}

.view > section,
.view > article {
  animation: pageIn 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-content: start;
  gap: clamp(14px, 3.8vw, 22px);
  padding: clamp(16px, 4.5vw, 26px) clamp(2px, 1.8vw, 8px) 4px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.page-head h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-title {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 1.04em;
  color: var(--text);
  text-shadow: 0 0 22px rgba(47, 255, 170, 0.24), 0 0 42px rgba(67, 215, 255, 0.12);
}

.cinematic-title {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 1.04em;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  perspective: 720px;
  text-shadow: 0 0 22px rgba(47, 255, 170, 0.22);
  -webkit-tap-highlight-color: transparent;
}

.cinematic-title.is-static {
  cursor: default;
  pointer-events: none;
  text-shadow: 0 0 22px rgba(47, 255, 170, 0.22);
}

.cinematic-title::after {
  content: "";
  position: absolute;
  inset: -0.08em -0.12em;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 16%, rgba(148, 255, 221, 0.16) 38%, rgba(67, 215, 255, 0.2) 46%, transparent 66%);
  filter: blur(0.5px);
  transform: translate3d(-24%, 0, 0) skewX(-12deg);
  mix-blend-mode: screen;
}

.cinematic-title:focus-visible {
  outline: 2px solid rgba(119, 255, 209, 0.72);
  outline-offset: 6px;
  border-radius: 12px;
}

.cinematic-word {
  display: inline-block;
  white-space: nowrap;
}

.cinematic-char {
  position: relative;
  display: inline-block;
  opacity: 0.08;
  filter: blur(5px);
  transform: translate3d(0, 4px, 0) scale(0.98);
  transform-origin: 50% 62%;
  will-change: transform, opacity, filter;
}

.cinematic-title.is-locked .cinematic-char {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) rotate(0);
}

.portal-stage[data-action="cinematic-title"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.portal-stage[data-action="cinematic-title"]:focus-visible {
  outline: 2px solid rgba(119, 255, 209, 0.72);
  outline-offset: -18px;
  border-radius: 50%;
}

.cinematic-title.is-revealing .cinematic-char {
  animation: rubickCinematicCharIn 1120ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay);
}

.cinematic-title.is-revealing::after {
  animation: rubickTitleGlint 980ms ease-out both;
  animation-delay: 720ms;
}

.cinematic-title.is-locked {
  animation: rubickTitleGlowLock 820ms ease-out both;
}

.cinematic-title.is-reduced-glow,
.cinematic-title.is-reduced-pulse {
  animation: heroTextReducedGlow 8s ease-in-out infinite;
}

.cinematic-title.is-reduced-glow .cinematic-char,
.cinematic-title.is-reduced-pulse .cinematic-char {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.cinematic-title.is-static .cinematic-char,
.mobile-webview .cinematic-char {
  opacity: 1;
  filter: none;
  transform: none;
  will-change: auto;
}

.mobile-webview .cinematic-title::after {
  display: none;
}

.portal-stage.is-decorative {
  pointer-events: none;
}

.mobile-webview .portal-aura {
  animation: portalBreathLite 9s ease-in-out infinite !important;
}

.cinematic-title.is-reduced-pulse {
  animation-duration: 900ms;
}

.hero p,
.page-head p,
.glass-panel p,
.plan-card p,
.key-card p,
.guide-card p,
.step-card p,
.faq-list p,
.status-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.42;
}

.portal-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, clamp(244px, 78vw, 380px));
  aspect-ratio: 1;
  margin: 0 auto;
  isolation: isolate;
}

.portal-aura {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(238, 252, 247, 0.98), rgba(47, 255, 170, 0.7) 16%, rgba(67, 215, 255, 0.22) 38%, transparent 62%);
  filter: blur(7px);
  box-shadow: 0 0 72px rgba(47, 255, 170, 0.56);
  animation: portalBreath 3.8s ease-in-out infinite;
}

.portal-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(238, 252, 247, 0.44);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 48%, rgba(238, 252, 247, 0.96), rgba(47, 255, 170, 0.58) 34%, rgba(3, 7, 6, 0.7) 72%),
    linear-gradient(135deg, rgba(67, 215, 255, 0.26), rgba(243, 200, 106, 0.14));
  box-shadow: 0 0 50px rgba(47, 255, 170, 0.44), inset 0 0 28px rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
}

.core-mark {
  width: 28px;
  height: 52px;
  border: 3px solid #06110f;
  border-top-width: 9px;
  border-radius: 18px 18px 9px 9px;
  transform: rotate(-45deg);
  box-shadow: 0 0 18px rgba(238, 252, 247, 0.7);
}

.portal-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(119, 255, 209, 0.42);
  box-shadow: inset 0 0 20px rgba(47, 255, 170, 0.12), 0 0 26px rgba(67, 215, 255, 0.14);
}

.orbit-one {
  width: 75%;
  height: 75%;
  animation: rotatePortal 10s linear infinite;
}

.orbit-two {
  width: 57%;
  height: 57%;
  border-color: rgba(67, 215, 255, 0.38);
  transform: rotateX(68deg);
  animation: rotatePortalReverse 8s linear infinite;
}

.portal-orbit::before,
.portal-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(243, 200, 106, 0.9);
}

.portal-orbit::before {
  top: 7%;
  left: 50%;
}

.portal-orbit::after {
  right: 12%;
  bottom: 15%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(67, 215, 255, 0.9);
}

.particle-field {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.particle-field i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(47, 255, 170, 0.95);
  opacity: 0.64;
  transform: scale(var(--s));
  animation: sparkle 2.8s ease-in-out infinite;
  animation-delay: var(--d);
}

.hero-actions,
.actions,
.action-dock,
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions.stacked {
  display: grid;
  gap: 8px;
}

.hero-actions {
  position: relative;
  z-index: 4;
  margin-top: -12px;
}

.button {
  position: relative;
  min-height: clamp(46px, 12.4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, background 160ms ease;
  letter-spacing: 0;
  backdrop-filter: blur(18px) saturate(162%);
  -webkit-backdrop-filter: blur(18px) saturate(162%);
}

.button:active {
  transform: scale(0.97);
}

.button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

.button.primary {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(47, 255, 170, 0.95), rgba(22, 217, 145, 0.72)),
    var(--tg-button);
  color: var(--tg-button-text);
  box-shadow: 0 0 34px rgba(47, 255, 170, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button.tertiary {
  min-height: 38px;
  border-color: transparent;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
}

.button.secondary,
.button.ghost,
.button.icon-action {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)), rgba(11, 31, 27, 0.5);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 14px 34px rgba(0, 0, 0, 0.22);
}

.button.ghost {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)), rgba(255, 255, 255, 0.035);
}

.button.icon-action {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 12px;
}

.btn-glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 28%, rgba(255, 255, 255, 0.54) 45%, transparent 62% 100%);
  transform: translateX(-120%);
  animation: buttonGlint 3.6s ease-in-out infinite;
}

.plan-grid,
.metric-grid,
.guide-grid {
  display: grid;
  gap: 12px;
}

.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-choice-grid,
.install-grid,
.install-device-grid,
.manual-device-actions {
  display: grid;
  gap: 10px;
}

.device-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.device-choice {
  min-height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)), rgba(11, 31, 27, 0.5);
  color: var(--text);
  text-align: left;
  display: grid;
  align-content: start;
  gap: 7px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.device-choice strong {
  font-size: 15px;
  line-height: 1.2;
}

.device-choice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.device-choice.active {
  border-color: rgba(47, 255, 170, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    linear-gradient(145deg, rgba(47, 255, 170, 0.22), rgba(11, 31, 27, 0.58));
  box-shadow: 0 0 30px rgba(47, 255, 170, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.install-device-panel {
  padding: 16px;
}

.install-device-panel > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.install-device-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.text-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.manual-device-box {
  margin-top: 14px;
  border: 1px solid rgba(119, 255, 209, 0.18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  gap: 10px;
}

.manual-device-box span {
  color: var(--muted);
  font-size: 13px;
}

.manual-device-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-wizard {
  display: grid;
  gap: 12px;
}

.install-step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 14px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
}

.install-step::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 28% 72%, rgba(47, 255, 170, 0.06)),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.14), transparent 34%);
}

.install-step.active {
  border-color: rgba(119, 255, 209, 0.52);
  box-shadow: 0 0 38px rgba(47, 255, 170, 0.16), var(--glass-shadow);
}

.install-step.done {
  border-color: rgba(47, 255, 170, 0.52);
  background:
    linear-gradient(145deg, rgba(47, 255, 170, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(8, 26, 21, 0.58);
}

.install-step-marker {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
  line-height: 1;
}

.install-step.done .install-step-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: #04120f;
}

.install-step-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.install-step-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.install-step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.install-status {
  margin: 0;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(119, 255, 209, 0.18);
  background: linear-gradient(145deg, rgba(47, 255, 170, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.install-confirmed {
  display: grid;
  gap: 3px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(119, 255, 209, 0.2);
  background: rgba(47, 255, 170, 0.1);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

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

.file-drop-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  border: 1px solid rgba(119, 255, 209, 0.2);
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 10% 18%, rgba(67, 215, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(8, 26, 21, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 38px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.file-drop-card::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16), transparent 61%);
  transform: translateX(-40%);
  opacity: 0.65;
  animation: glassSlide 4.8s ease-in-out infinite;
}

.file-drop-card.sending {
  border-color: rgba(47, 255, 170, 0.48);
  box-shadow: 0 0 28px rgba(47, 255, 170, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.file-drop-card.sent .file-drop-icon {
  background: var(--emerald);
  color: #04120f;
}

.file-drop-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(47, 255, 170, 0.14);
  color: var(--emerald);
  box-shadow: 0 0 20px rgba(47, 255, 170, 0.16);
  font-size: 20px;
}

.file-drop-card div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.file-drop-card strong,
.file-drop-card span {
  display: block;
}

.file-drop-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.file-drop-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.install-done-panel,
.paid-after-install {
  padding: 16px;
}

.install-done-panel h2 {
  margin: 0 0 8px;
}

.install-done-panel p,
.paid-after-install p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.profile-note,
.key-mode {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 11px 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(47, 255, 170, 0.07);
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-note strong {
  color: var(--text);
  font-size: 14px;
}

.profile-note.warn,
.key-mode.empty {
  border-color: rgba(255, 210, 119, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 210, 119, 0.08);
}

.install-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card,
.metric,
.glass-panel,
.price-card,
.step-card,
.key-card,
.guide-card,
.status-panel,
.faq-list article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.plan-card::before,
.metric::before,
.glass-panel::before,
.price-card::before,
.step-card::before,
.key-card::before,
.guide-card::before,
.status-panel::before,
.faq-list article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.14), transparent 28% 72%, rgba(47, 255, 170, 0.055)),
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.12), transparent 34%);
}

.plan-card {
  min-height: 174px;
  padding: 16px;
}

.plan-card h2,
.glass-panel h2,
.guide-card h2,
.status-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(18px, 4.6vw, 20px);
  line-height: 1.18;
  letter-spacing: 0;
}

.plan-icon,
.guide-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(47, 255, 170, 0.14);
  color: var(--emerald);
  box-shadow: 0 0 18px rgba(47, 255, 170, 0.18);
}

.plan-card.paid .plan-icon {
  background: rgba(243, 200, 106, 0.16);
  color: var(--gold);
}

.plan-foot {
  margin-top: 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  min-height: 92px;
  padding: 14px;
}

.metric b {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.metric span,
.fineprint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.glass-panel,
.status-panel {
  padding: 18px;
}

.page-head {
  padding: 16px 4px 4px;
}

.page-head h1 {
  font-size: clamp(28px, 7vw, 38px);
}

.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 6px 14px;
  padding: 18px;
  border-color: rgba(243, 200, 106, 0.4);
  background:
    radial-gradient(circle at 86% 12%, rgba(243, 200, 106, 0.14), transparent 30%),
    var(--glass-bg);
}

.price-card span,
.price-card small {
  color: var(--muted);
}

.price-card strong {
  grid-row: span 2;
  color: var(--gold);
  font-size: clamp(34px, 9vw, 44px);
  line-height: 0.95;
  text-shadow: 0 0 24px rgba(243, 200, 106, 0.28);
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.token-status,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: max-content;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status.good {
  background: rgba(47, 255, 170, 0.14);
  color: var(--emerald);
}

.status.bad {
  background: rgba(255, 93, 117, 0.15);
  color: var(--danger);
}

.status.warn {
  background: rgba(255, 202, 87, 0.15);
  color: #ffd36b;
}

.token-box {
  display: grid;
  gap: 12px;
  margin-top: 15px;
  padding: 16px;
  border: 1px solid rgba(119, 255, 209, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 12% 20%, rgba(47, 255, 170, 0.14), transparent 36%),
    rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.token-box.copied {
  animation: copyPulse 620ms ease;
}

.token-value,
.mini-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(22px, 6.4vw, 30px);
  font-weight: 900;
  color: var(--emerald);
  overflow-wrap: anywhere;
  text-shadow: 0 0 24px rgba(47, 255, 170, 0.26);
  letter-spacing: 0;
}

.step-list,
.key-stack,
.faq-list {
  display: grid;
  gap: 10px;
}

.step-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px;
}

.step-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(67, 215, 255, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.payment-cta-stack {
  display: grid;
  gap: 10px;
  margin-top: -6px;
}

.payment-cta-stack .button {
  width: 100%;
}

.payment-pay-button {
  min-height: clamp(52px, 14vw, 58px);
  font-size: 17px;
  box-shadow: 0 0 42px rgba(47, 255, 170, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.payment-check-button {
  min-height: 46px;
}

.payment-new-code-button {
  justify-self: center;
  width: auto;
}

.step-card strong,
.faq-list strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.action-dock {
  align-items: stretch;
}

.action-dock .button,
.hero-actions .button {
  flex: 1 1 210px;
}

.key-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 15px;
  overflow: hidden;
}

.key-card.attention {
  border-color: rgba(255, 202, 87, 0.3);
}

.key-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(47, 255, 170, 0.08), transparent);
  transform: translateX(-120%);
  animation: cardShine 6s ease-in-out infinite;
}

.key-core {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background:
    radial-gradient(circle, rgba(238, 252, 247, 0.92), rgba(47, 255, 170, 0.48) 33%, rgba(3, 7, 6, 0.62) 68%);
  box-shadow: var(--glow);
}

.key-core::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 12px;
  width: 16px;
  height: 27px;
  border: 3px solid #06110f;
  border-top-width: 7px;
  border-radius: 14px 14px 6px 6px;
}

.key-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.row {
  align-items: center;
  justify-content: space-between;
}

.row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.device-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.add-device-panel,
.recovery-panel {
  margin-top: 10px;
}

.device-details {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  color: var(--muted);
}

.device-details summary {
  width: max-content;
  max-width: 100%;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.device-details dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.device-details div {
  display: grid;
  grid-template-columns: minmax(82px, max-content) 1fr;
  gap: 10px;
}

.device-details dt,
.device-details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.device-details dt {
  color: var(--muted);
}

.device-details dd {
  color: var(--text);
}

.help-link {
  display: inline-flex;
  width: max-content;
}

.add-device-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.add-device-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.add-device-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88vh, 720px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04)),
    rgba(6, 17, 15, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.add-device-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.add-device-modal h2 {
  margin: 4px 34px 8px 0;
  font-size: 24px;
  line-height: 1.08;
}

.add-device-modal p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.add-device-suggest {
  display: grid;
  gap: 10px;
}

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

.add-device-field {
  display: grid;
  gap: 7px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.add-device-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
}

.summary-box {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.summary-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.045);
}

.summary-box span {
  color: var(--muted);
  font-size: 12px;
}

.summary-box strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.add-device-error {
  border: 1px solid rgba(255, 105, 105, 0.35);
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(142, 24, 24, 0.18);
  color: #ffb5b5 !important;
  font-weight: 750;
}

.actions.compact {
  margin-top: 12px;
}

.actions.compact .button {
  min-height: 42px;
  flex: 1 1 138px;
}

.qr-note-inline {
  flex: 1 1 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--muted);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  font-size: 12px;
  line-height: 1.35;
}

.qr-wrap {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 228px;
  min-height: 228px;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(119, 255, 209, 0.26);
  background: #ffffff;
  color: #06110f;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}

.qr-note {
  margin-top: 12px;
  color: var(--muted);
}

.config-text,
.support-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.18));
  color: var(--text);
  resize: vertical;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.config-text {
  min-height: 118px;
  padding: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.42;
}

.support-input {
  min-height: 128px;
  padding: 14px;
  line-height: 1.45;
}

.support-input:focus,
.config-text:focus {
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card {
  min-height: 190px;
  padding: 16px;
}

.faq-list article {
  padding: 15px;
}

.status-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.status-panel.success {
  border-color: rgba(47, 255, 170, 0.44);
  box-shadow: 0 0 46px rgba(47, 255, 170, 0.18), var(--shadow);
}

.success-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mini-token {
  margin-top: 14px;
  font-size: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + var(--nav-bottom) + 10px);
  z-index: 20;
  width: min(calc(100% - 28px), 520px);
  transform: translateX(-50%);
  padding: 13px 15px;
  border: 1px solid rgba(119, 255, 209, 0.38);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(5, 15, 13, 0.72);
  color: var(--text);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  animation: toastIn 220ms ease both;
}

.debug-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  padding: calc(16px + var(--safe-top)) var(--shell-pad-x) calc(var(--nav-bottom) + 16px);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.debug-panel {
  width: min(100%, var(--shell-max));
  max-height: min(82svh, calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 28px));
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 15, 13, 0.96);
  box-shadow: var(--shadow), var(--glow);
  padding: 16px;
}

.debug-head,
.debug-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.debug-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.15;
}

.debug-close {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
}

.debug-grid {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.debug-row {
  display: grid;
  grid-template-columns: minmax(112px, 42%) 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(119, 255, 209, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.debug-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.debug-row strong {
  min-width: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.debug-actions {
  flex-wrap: wrap;
}

.debug-actions .button {
  flex: 1 1 170px;
}

.more-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.more-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  pointer-events: auto;
}

.more-panel {
  position: relative;
  width: min(calc(100% - (var(--shell-pad-x) * 2)), var(--shell-max));
  margin: 0 auto calc(var(--nav-height) + var(--nav-bottom) + 8px);
  border: 1px solid rgba(119, 255, 209, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(5, 15, 13, 0.72);
  box-shadow: var(--glass-shadow), 0 0 42px rgba(47, 255, 170, 0.14);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  padding: 10px 14px 14px;
  pointer-events: auto;
  animation: sheetIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.more-handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(238, 252, 247, 0.24);
}

.more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.more-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.05;
}

.more-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(238, 252, 247, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.more-list {
  display: grid;
  gap: 9px;
}

.more-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  color: var(--text);
  text-align: left;
}

.more-item:active {
  transform: scale(0.99);
}

.more-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(47, 255, 170, 0.13);
  color: var(--emerald);
  box-shadow: 0 0 18px rgba(47, 255, 170, 0.14);
  font-size: 22px;
}

.more-item strong,
.more-item small {
  display: block;
}

.more-item strong {
  font-size: 16px;
  line-height: 1.2;
}

.more-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: var(--nav-bottom);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(calc(100% - (var(--shell-pad-x) * 2)), var(--shell-max));
  transform: translateX(-50%);
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(5, 15, 13, 0.58);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(26px) saturate(178%);
  -webkit-backdrop-filter: blur(26px) saturate(178%);
}

.tabbar button {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0;
}

.nav-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 18px;
  color: var(--emerald);
  font-size: 17px;
  line-height: 1;
}

.tabbar button.active {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(47, 255, 170, 0.31), rgba(67, 215, 255, 0.14));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(119, 255, 209, 0.26), 0 0 24px rgba(47, 255, 170, 0.18);
}

@keyframes ambientShift {
  from { background-position: 0 0, 100% 0, 40% 100%, 0 0; }
  to { background-position: 100% 60%, 0 100%, 62% 40%, 0 0; }
}

@keyframes glassSheen {
  from { background-position: -30% 0, 0 0, 0 0; opacity: 0.62; }
  to { background-position: 130% 0, 0 0, 0 0; opacity: 0.9; }
}

@keyframes glassSlide {
  0%, 46% { transform: translateX(-42%); }
  100% { transform: translateX(42%); }
}

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

@keyframes portalBreath {
  0%, 100% { transform: scale(0.96); opacity: 0.82; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes rotatePortal {
  to { transform: rotate(360deg); }
}

@keyframes rotatePortalReverse {
  to { transform: rotate(-360deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: translate3d(0, 8px, 0) scale(var(--s)); }
  45% { opacity: 1; transform: translate3d(0, -8px, 0) scale(calc(var(--s) + 0.24)); }
}

@keyframes rubickCinematicCharIn {
  0% {
    opacity: 0;
    color: rgba(236, 255, 248, 0.72);
    filter: blur(10px);
    transform: translate3d(var(--tx), var(--ty), 0) scale(var(--scale)) rotate(var(--rot));
    text-shadow: 0 0 0 rgba(47, 255, 170, 0);
  }
  42% {
    opacity: 0.92;
    color: #f1fff9;
    filter: blur(1.2px);
    transform: translate3d(0, -1px, 0) scale(1.018) rotate(0);
    text-shadow: 0 0 28px rgba(47, 255, 170, 0.42), 0 0 42px rgba(67, 215, 255, 0.18);
  }
  100% {
    opacity: 1;
    color: var(--text);
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
    text-shadow: 0 0 20px rgba(47, 255, 170, 0.18);
  }
}

@keyframes rubickTitleGlint {
  0% {
    opacity: 0;
    transform: translate3d(-34%, 0, 0) skewX(-12deg);
  }
  32% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate3d(36%, 0, 0) skewX(-12deg);
  }
}

@keyframes rubickTitleGlowLock {
  0%, 100% {
    text-shadow: 0 0 22px rgba(47, 255, 170, 0.2);
  }
  46% {
    text-shadow: 0 0 34px rgba(47, 255, 170, 0.42), 0 0 54px rgba(67, 215, 255, 0.18);
  }
}

@keyframes heroTextReducedGlow {
  0%, 100% { text-shadow: 0 0 18px rgba(47, 255, 170, 0.16); }
  50% { text-shadow: 0 0 30px rgba(47, 255, 170, 0.34), 0 0 42px rgba(67, 215, 255, 0.16); }
}

@keyframes buttonGlint {
  0%, 36% { transform: translateX(-120%); }
  52%, 100% { transform: translateX(120%); }
}

@keyframes cardShine {
  0%, 72% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes copyPulse {
  0% { box-shadow: 0 0 0 rgba(47, 255, 170, 0); }
  45% { box-shadow: 0 0 36px rgba(47, 255, 170, 0.28); }
  100% { box-shadow: 0 0 0 rgba(47, 255, 170, 0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 431px) {
  .hero {
    padding-top: 24px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  :root {
    --shell-max: 430px;
    --shell-pad-x: clamp(10px, 3.2vw, 14px);
    --nav-height: 66px;
  }

  .portal-stage {
    width: min(100%, clamp(264px, 78vw, 338px));
  }

  .plan-grid,
  .metric-grid,
  .guide-grid,
  .device-choice-grid,
  .install-grid,
  .install-device-grid,
  .manual-device-actions {
    grid-template-columns: 1fr;
  }

  .install-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .install-step-body h2 {
    font-size: 17px;
  }

  .plan-card {
    min-height: 148px;
  }

  .metric {
    min-height: 76px;
  }

  .price-card {
    grid-template-columns: 1fr;
  }

  .price-card strong {
    grid-row: auto;
  }

  .key-card {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }

  .key-core {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .key-core::before {
    left: 18px;
    top: 10px;
  }

  .tabbar {
    padding: 6px;
    gap: 3px;
  }

  .tabbar button {
    min-height: 40px;
  }
}

@media (max-width: 390px) {
  :root {
    --shell-pad-x: 10px;
    --nav-height: 64px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand-mark,
  .icon-button {
    width: 40px;
    height: 40px;
  }

  .hero {
    gap: 13px;
    padding-top: 14px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 36px);
  }

  .portal-stage {
    width: min(100%, 292px);
  }

  .portal-core {
    width: 102px;
    height: 102px;
    border-radius: 25px;
  }

  .hero-actions .button,
  .action-dock .button {
    flex-basis: 100%;
  }

  .token-box {
    padding: 14px;
  }

  .button.icon-action {
    width: 100%;
  }
}

@media (max-width: 360px) {
  :root {
    --shell-pad-x: 9px;
    --nav-height: 62px;
  }

  .topbar {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand span {
    font-size: 12px;
  }

  .brand-mark,
  .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .hero h1,
  .page-head h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .hero p,
  .page-head p,
  .glass-panel p,
  .plan-card p,
  .key-card p,
  .guide-card p,
  .step-card p,
  .faq-list p,
  .status-panel p {
    font-size: 14px;
    line-height: 1.38;
  }

  .portal-stage {
    width: min(100%, 250px);
  }

  .portal-core {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .core-mark {
    width: 24px;
    height: 44px;
  }

  .plan-card,
  .glass-panel,
  .price-card,
  .step-card,
  .key-card,
  .guide-card,
  .status-panel,
  .faq-list article {
    border-radius: 16px;
  }

  .tabbar button {
    min-height: 38px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  .view > section,
  .view > article,
  .portal-orbit,
  .particle-field i,
  .cinematic-char,
  .cinematic-title::after,
  .btn-glint,
  .key-card::after,
  .file-drop-card::after,
  .toast {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .portal-aura {
    animation: portalBreathLite 9s ease-in-out infinite !important;
  }
}

@keyframes portalBreathLite {
  0%, 100% { opacity: 0.78; filter: blur(8px); }
  50% { opacity: 0.96; filter: blur(6px); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --panel: rgba(9, 24, 21, 0.94);
    --glass-bg: linear-gradient(145deg, rgba(31, 59, 52, 0.96), rgba(8, 22, 19, 0.96));
    --glass-bg-strong: linear-gradient(145deg, rgba(35, 68, 59, 0.98), rgba(8, 22, 19, 0.98));
    --glass-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
  }

  body {
    background:
      radial-gradient(circle at 76% -4%, rgba(47, 255, 170, 0.16), transparent 34%),
      linear-gradient(145deg, #030706, #071513 56%, #030706);
  }

  .topbar,
  .button,
  .icon-button,
  .device-choice,
  .install-step,
  .plan-card,
  .metric,
  .glass-panel,
  .price-card,
  .step-card,
  .key-card,
  .guide-card,
  .status-panel,
  .faq-list article,
  .token-box,
  .more-panel,
  .tabbar,
  .toast {
    background: var(--glass-bg-strong);
  }
}
