:root {
  --bg: #f1faf8;
  --bg-2: #e6f5f2;
  --paper: rgba(249, 254, 253, 0.82);
  --paper-strong: rgba(248, 253, 252, 0.95);
  --paper-soft: rgba(236, 248, 246, 0.78);
  --text: #1c1736;
  --muted: #574f78;
  --line: rgba(2, 6, 23, 0.15);
  /* ===================================================================
     BRAND PALETTE — single source of truth (Lagoon: teal + aqua + gold).
     Change these and the whole UI follows. Use var(--accent*) everywhere;
     for translucent fills use rgba(var(--accent-rgb), <alpha>).
     =================================================================== */
  --accent: #14b8a6;        /* teal — primary */
  --accent-2: #2dd4bf;      /* aqua — gradient end / secondary */
  --accent-3: #f6c560;      /* gold — warm highlight */
  --accent-4: #6eb4cb;
  --accent-soft: #5eead4;   /* light mint — text accents on dark */
  --accent-rgb: 20, 184, 166;  /* teal as r,g,b for rgba() fills */
  --success: #3b8774;
  --warning: #b78835;
  --danger: #b85d78;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.14);
  --shadow-soft: 0 14px 34px rgba(2, 6, 23, 0.09);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  /* Themed base — never the legacy dark fill. The body[data-theme] rules below
     paint the real gradient; this only matters for the first paint before JS. */
  background: var(--page-bg-1, #f3faf9);
  background-attachment: fixed;
}

body::before,
body::after {
  display: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

.hidden {
  display: none !important;
}

.app-shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: max(10px, env(safe-area-inset-top)) 12px 0;
}

.app {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}


#screenRoot {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

#screenRoot::-webkit-scrollbar { width: 0; height: 0; }

.topbar {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.lang-switch__btn {
  min-width: 42px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-switch__btn:hover {
  transform: translateY(-1px);
}

.lang-switch__btn.is-active {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 58%, var(--accent-2));
}

.auth-launcher {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(121, 83, 58, 0.16);
}

.auth-launcher--signed {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 58%, var(--accent-2));
  border-color: transparent;
}

.brand-button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.brand-mark,
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.brand-mark {
  font-size: 23px;
  font-weight: 900;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff9f0;
  animation: pulseGlow 6s ease-in-out infinite;
}

.icon-btn {
  color: var(--text);
  cursor: pointer;
}

.brand-button:hover .brand-mark,
.icon-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(121, 83, 58, 0.16);
}

.topbar__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.topbar__subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.card,
.menu-btn,
.catalog-card,
.plan-card,
.manual-key,
.faq-item,
.love-note,
.skeleton-card,
.feature-card,
.plan-tier,
.link-chip,
.auth-card,
.location-item {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  padding: 26px;
  border: 1px solid rgba(94, 72, 152, 0.12);
  background:
    radial-gradient(circle at top right, rgba(185, 151, 255, 0.28), transparent 32%),
    radial-gradient(circle at left bottom, rgba(var(--accent-rgb), 0.14), transparent 28%),
    radial-gradient(circle at 78% 75%, rgba(110, 180, 203, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(252, 250, 255, 0.92), rgba(245, 241, 255, 0.78));
  box-shadow: var(--shadow);
  animation: riseIn 0.7s ease both;
}

.hero-card::after {
  content: "";
}

.world-weave {
  position: absolute;
  right: -10px;
  top: -16px;
  width: min(48vw, 318px);
  opacity: 0.96;
  pointer-events: none;
  transform: rotate(-5deg);
  filter: drop-shadow(0 22px 32px rgba(80, 58, 164, 0.16));
}

.world-weave svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.world-weave__glow {
  fill: url(#tw-glow);
}

.world-weave__sphere {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.44);
  stroke-width: 1.6;
  backdrop-filter: blur(8px);
}

.world-weave__land {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.1;
}

.world-weave__land--a {
  fill: rgba(130, 98, 236, 0.26);
}

.world-weave__land--b {
  fill: rgba(255, 255, 255, 0.18);
}

.world-weave__land--c {
  fill: rgba(119, 197, 232, 0.22);
}

.world-weave__thread-glow {
  fill: none;
  stroke: rgba(216, 206, 255, 0.42);
  stroke-linecap: round;
  stroke-width: 6.8;
}

.world-weave__thread {
  fill: none;
  stroke: url(#tw-line);
  stroke-linecap: round;
  stroke-width: 3.2;
  stroke-dasharray: 4 8;
}

.world-weave__thread--a { animation: weaveFlow 10s linear infinite; }
.world-weave__thread--b { animation: weaveFlow 12s linear infinite reverse; }
.world-weave__thread--c { animation: weaveFlow 14s linear infinite; }
.world-weave__thread--d { animation: weaveFlow 16s linear infinite reverse; }

.world-weave__node {
  fill: url(#tw-core);
  stroke: rgba(143, 106, 242, 0.38);
  stroke-width: 2.1;
  animation: nodePulse 4.6s ease-in-out infinite;
}

.world-weave__node--lg {
  stroke-width: 2.4;
}

.hero-card--landing::before {
  content: "";
  position: absolute;
  inset: auto auto 24px 24px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-card__badge,
.page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #5e45b3;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-card h1 {
  margin: 16px 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 8vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.hero-actions,
.button-grid,
.status-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.button-grid--stack {
  grid-template-columns: 1fr;
}

.btn,
.link-chip {
  min-height: 50px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 12px 15px;
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 54%, var(--accent-2));
  box-shadow: 0 18px 34px rgba(215, 108, 89, 0.22);
}

.btn-cosmic {
  width: 100%;
  padding: 18px 32px;
  border-radius: 20px;
  background: rgba(var(--accent-rgb), 0.9);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  border: 1px solid rgba(180, 160, 255, 0.25);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.4), 0 8px 24px rgba(0,0,0,0.3);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(8px);
}

.btn-cosmic:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.6), 0 12px 32px rgba(0,0,0,0.4);
}

.btn-cosmic:active {
  transform: scale(0.98);
}

.btn-ghost {
  width: 100%;
  padding: 14px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(220, 230, 255, 0.8);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.start-key-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.start-key-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.start-key-status--inactive {
  color: rgba(200, 215, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-panel {
  padding: 16px !important;
}

.auth-panel__label {
  font-size: 12px;
  color: rgba(200, 215, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-choice__divider {
  opacity: 0.3;
}

.auth-form .field {
  margin-bottom: 12px;
}


.connection-panel {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.connection-panel h1 {
  color: #fff;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
  text-align: left;
  font-weight: 700;
}

.connection-panel p {
  color: rgba(200, 215, 255, 0.75);
  font-size: 15px;
  max-width: 100%;
  text-align: left;
  margin: 0 0 24px;
  line-height: 1.5;
}

.key-display-block {
  width: 100%;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.key-display-block__label {
  display: block;
  font-size: 12px;
  color: rgba(220, 230, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.key-display-block__value {
  display: block;
  word-break: break-all;
  color: #fff;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  line-height: 1.5;
  margin-bottom: 12px;
}

.key-display-block__copy {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.2);
  color: #b4a0ff;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.key-display-block__copy:hover {
  background: rgba(var(--accent-rgb), 0.3);
}

.device-tab.is-active {
  background: rgba(var(--accent-rgb), 0.2);
  color: #b4a0ff;
  border-color: rgba(var(--accent-rgb), 0.3);
}

.device-tab.is-active {
  background: rgba(var(--accent-rgb), 0.8);
  color: #fff;
  border-color: rgba(180, 160, 255, 0.3);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.device-content {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 28px;
}

.device-content h2 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.device-content p {
  color: rgba(200, 215, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.device-steps {
  margin-bottom: 20px;
}

.device-steps h3 {
  color: #fff;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  margin: 0 0 14px;
}

.device-steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.device-steps li {
  counter-increment: step-counter;
  margin-bottom: 0;
  padding-left: 32px;
  position: relative;
  color: rgba(220, 230, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.device-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.2);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: #b4a0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.device-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0 0;
}

.device-link-btn {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.2);
  color: #b4a0ff;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.device-link-btn:hover {
  background: rgba(var(--accent-rgb), 0.3);
}
.link-chip {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.btn::before,
.link-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28), transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.5s ease;
}

.btn:hover,
.link-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(121, 83, 58, 0.16);
}

.btn:hover::before,
.link-chip:hover::before {
  transform: translateX(130%);
}

.btn:active,
.menu-btn:active,
.catalog-card:active,
.link-chip:active {
  transform: scale(0.986);
}

.btn:focus-visible,
.link-chip:focus-visible,
.faq-question:focus-visible,
.menu-btn:focus-visible,
.catalog-card:focus-visible,
.brand-button:focus-visible,
.icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(215, 108, 89, 0.16), var(--shadow-soft);
}

.status-card {
  margin-top: 14px;
  padding: 20px;
  border-radius: 30px;
  animation: riseIn 0.8s ease both;
}

.status-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.status-card__title {
  font-size: 21px;
  font-weight: 900;
}

.status-card__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.status-chip {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-chip.active {
  color: #155c43;
  background: rgba(66, 127, 99, 0.14);
}

.status-chip.inactive {
  color: #795656;
  background: rgba(104, 67, 54, 0.08);
}

.account-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.account-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
}

.account-list li span:first-child {
  color: var(--accent);
}

.account-list strong {
  color: var(--text);
}

.menu-grid,
.catalog-grid,
.feature-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  grid-template-columns: 1fr 1fr;
}

.menu-grid,
.feature-grid {
  grid-template-columns: 1fr 1fr;
}

.plan-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  grid-template-columns: 1fr 1fr 1fr;
}

.menu-btn {
  min-height: 150px;
  padding: 18px;
  border-radius: 28px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.menu-btn__icon,
.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 0.24s ease, background 0.24s ease;
}

.menu-btn:hover,
.catalog-card:hover,
.plan-card:hover,
.feature-card:hover,
.location-item:hover,
.plan-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 46px rgba(121, 83, 58, 0.14);
}

.menu-btn:hover .menu-btn__icon,
.feature-card:hover .feature-card__icon,
.catalog-card:hover .catalog-card__icon{
  transform: scale(1.06) rotate(-4deg);
  background: rgba(255, 255, 255, 0.82);
}

.menu-btn__title {
  margin-top: 14px;
  font-weight: 900;
  font-size: 17px;
}

.menu-btn__text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.love-note {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 26px;
  animation: riseIn 0.9s ease both;
}

.love-note__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 24px;
}

.love-note strong {
  display: block;
  margin-bottom: 4px;
}

.love-note span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  margin-top: 8px;
}

.section-title {
  margin: 20px 4px 12px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.catalog-card {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border-radius: 25px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.catalog-card__icon,
.article-head__icon {
  width: 52px;
  height: 52px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.82), transparent 18%),
    rgba(255, 255, 255, 0.58);
  transition: transform 0.24s ease, background 0.24s ease;
}

.catalog-card__title {
  font-size: 17px;
  font-weight: 950;
}

.catalog-card__text {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.38;
  font-size: 13px;
}

.catalog-card__meta,
.plan-card__meta {
  margin-top: 8px;
  color: #834738;
  font-size: 12px;
  font-weight: 800;
}

.catalog-card__arrow {
  color: var(--muted);
  font-size: 24px;
}

.article-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

.article-head__icon {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  font-size: 29px;
}
.skeleton-card,
.plan-tier {
  border-radius: 28px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.feature-card p,
.plan-tier__text {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}

.steps,
.check-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.62;
}

.steps li,
.check-list li {
  margin: 9px 0;
}

.manual-key {
  border-radius: 26px;
  padding: 18px;
}

.manual-key--compact {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.manual-key__label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.manual-key__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
  color: #56312d;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.feature-card {
  padding: 18px;
  border-radius: 28px;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card__icon {
  margin-bottom: 14px;
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 8px;
}

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

.faq-item {
  border-radius: 24px;
  overflow: hidden;
  animation: riseIn 0.75s ease both;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: transparent;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.34);
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.58;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-chip {
  min-height: auto;
  border-radius: 999px;
}

.plan-tier {
  margin-top: 4px;
  animation: riseIn 0.75s ease both;
}

.plan-tier__head {
  margin-bottom: 14px;
}

.plan-tier__title {
  font-size: 22px;
  font-weight: 900;
}

.plan-card {
  padding: 18px;
  border-radius: 28px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.plan-card__badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #874634;
  background: rgba(255, 255, 255, 0.66);
}

.plan-card__name {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 900;
}

.plan-card__price {
  margin-top: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 0.95;
}

.plan-card__text {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card {
  margin-top: 14px;
  padding: 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(205, 123, 123, 0.1), transparent 28%),
    radial-gradient(circle at left bottom, rgba(142, 166, 140, 0.1), transparent 32%),
    var(--paper-strong);
  box-shadow: var(--shadow);
  animation: riseIn 0.85s ease both;
}

.auth-card--popover .auth-card__head {
  margin-bottom: 20px;
}

.auth-card--popover .auth-card__head h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-card--popover .auth-card__head p {
  margin: 0;
  color: rgba(200, 215, 255, 0.65);
  line-height: 1.5;
  font-size: 13px;
}

.auth-card--popover .page__eyebrow {
  color: rgba(220, 230, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.auth-card__head h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.1;
}

.auth-card__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.auth-form--modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form--modal .btn,
.auth-form--modal .btn-secondary {
  width: 100%;
}

.auth-card--popover .btn,
.auth-card--popover .btn-secondary {
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.auth-card--popover .btn {
  background: rgba(var(--accent-rgb), 0.9);
  border-color: rgba(180, 160, 255, 0.35);
  color: #fff;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-card--popover .btn:hover {
  background: rgba(var(--accent-rgb), 1);
  border-color: rgba(180, 160, 255, 0.5);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.auth-card--popover .btn:active {
  transform: scale(0.98);
}

.auth-card--popover .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(220, 230, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

.auth-card--popover .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.auth-card--popover .btn-secondary:active {
  transform: scale(0.98);
}

.auth-form--verify {
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.auth-card--popover .field span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(220, 230, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.auth-card--popover .field {
  margin-bottom: 14px;
}

.auth-card--popover .field span {
  color: rgba(200, 215, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-card--popover .field input {
  min-height: 44px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.09);
  padding: 0 14px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
  font-size: 15px;
  margin-top: 8px;
}

.auth-card--popover .field input::placeholder {
  color: rgba(220, 230, 255, 0.35);
}

.auth-card--popover .field input:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.auth-card--popover .field input:focus {
  border-color: rgba(var(--accent-rgb), 0.8);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2), 0 0 16px rgba(var(--accent-rgb), 0.1);
}

.field input {
  min-height: 52px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(84, 47, 34, 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 0 15px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.field input:focus {
  border-color: rgba(198, 83, 108, 0.42);
  box-shadow: 0 0 0 4px rgba(198, 83, 108, 0.08);
}

.auth-card__hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-choice {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.auth-choice__divider,
.auth-tabs,
.auth-panel,
.auth-layout,
.auth-panel--primary,
.auth-panel__label,
.auth-form--stacked,
.auth-inline-link,
.auth-switch-link,
.password-meter {
  display: none !important;
}

.auth-card--popover .auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.auth-card--popover .button-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(200, 215, 255, 0.5);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.02em;
}


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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.auth-popover {
  width: min(360px, calc(100vw - 24px));
  position: relative;
  max-height: min(90vh, 700px);
  overflow: auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  animation: scaleIn 0.3s ease-out;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(var(--accent-rgb), 0.15);
  padding: 0;
}

.auth-popover__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-popover__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.auth-popover__close:active {
  transform: scale(0.95);
}

.auth-card--popover {
  margin-top: 0;
  padding: 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tabs--single {
  grid-template-columns: 1fr;
}

.auth-tab {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 0;
  background: transparent;
  color: rgba(220, 230, 255, 0.5);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  border-bottom: 2px solid transparent;
}

.auth-tab:hover {
  color: rgba(220, 230, 255, 0.7);
}

.auth-tab.is-active {
  color: #fff;
  background: transparent;
  border-bottom-color: #fff;
  box-shadow: none;
}

.auth-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.auth-layout {
  display: grid;
  gap: 0;
}

.auth-layout--register .auth-panel--feature {
  background:
    radial-gradient(circle at top right, rgba(239, 190, 122, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 241, 0.96), rgba(255, 244, 233, 0.88));
}

.auth-panel--primary {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(249, 241, 232, 0.82));
}

.auth-panel__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-form--stacked {
  grid-template-columns: 1fr;
  gap: 12px;
}

.auth-form--stacked .btn,
.auth-form--stacked .btn-secondary {
  width: 100%;
}

.password-meter {
  display: grid;
  gap: 6px;
}

.password-meter__label {
  font-size: 12px;
  color: var(--muted);
}

.password-meter__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(92, 63, 51, 0.08);
  overflow: hidden;
}

.password-meter__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width 0.2s ease, background 0.2s ease;
}

.password-meter[data-level="medium"] .password-meter__bar span {
  background: var(--warning);
}

.password-meter[data-level="strong"] .password-meter__bar span {
  background: var(--success);
}

.account-status-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.account-inline-form {
  margin-top: 12px;
}

.session-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.auth-choice__divider--spaced {
  margin: 16px 0 4px;
}

.auth-switch-link {
  justify-self: center;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border-bottom: 1px solid rgba(215, 108, 89, 0.28);
  transition: all 0.2s ease;
}

.auth-switch-link:hover {
  color: var(--text);
  border-bottom-color: rgba(47, 35, 32, 0.28);
}

.auth-card--popover .auth-switch-link {
  color: rgba(var(--accent-rgb), 0.9);
  border-bottom-color: rgba(var(--accent-rgb), 0.3);
}

.auth-card--popover .auth-switch-link:hover {
  color: #fff;
  border-bottom-color: rgba(var(--accent-rgb), 0.7);
}

.auth-inline-link {
  justify-self: start;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-inline-link:hover {
  color: var(--text);
}

.auth-card--popover .auth-inline-link {
  color: rgba(var(--accent-rgb), 0.9);
}

.auth-card--popover .auth-inline-link:hover {
  color: #fff;
}

.button-grid--single {
  grid-template-columns: 1fr;
}

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

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

.plan-browser__rail {
  overflow: hidden;
}

.plan-tier--carousel {
  margin-top: 0;
}

.plan-grid--carousel {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

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

.renewal-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px dashed rgba(84, 47, 34, 0.18);
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 8px;
}

.renewal-card strong {
  font-size: 14px;
}

.renewal-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.location-list {
  display: grid;
  gap: 10px;
}

.location-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.location-item strong {
  font-size: 15px;
}

.location-item span {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(47, 35, 32, 0.92);
  color: #fffaf2;
  box-shadow: 0 12px 40px rgba(36, 23, 24, 0.18);
  z-index: 20;
  text-align: center;
  animation: toastIn 0.24s ease both;
}

.menu-grid > *,
.feature-grid > *,
.catalog-grid > *,
.plan-grid > *,
.location-list > *,
.faq-list > * {
  animation: riseIn 0.7s ease both;
}

.menu-grid > *:nth-child(2),
.feature-grid > *:nth-child(2),
.catalog-grid > *:nth-child(2),
.plan-grid > *:nth-child(2),
.location-list > *:nth-child(2),
.faq-list > *:nth-child(2) {
  animation-delay: 0.06s;
}

.menu-grid > *:nth-child(3),
.feature-grid > *:nth-child(3),
.catalog-grid > *:nth-child(3),
.plan-grid > *:nth-child(3),
.location-list > *:nth-child(3),
.faq-list > *:nth-child(3) {
  animation-delay: 0.12s;
}

.menu-grid > *:nth-child(4),
.feature-grid > *:nth-child(4),
.catalog-grid > *:nth-child(4),
.plan-grid > *:nth-child(4),
.location-list > *:nth-child(4),
.faq-list > *:nth-child(4) {
  animation-delay: 0.18s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatAura {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1.06);
  }
}

@keyframes driftHeart {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-4px, -8px, 0) rotate(-4deg);
  }
}

@keyframes weaveFlow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -84;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.94;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.18);
  }

  50% {
    box-shadow: 0 18px 40px rgba(var(--accent-rgb), 0.28);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 720px) {
  .menu-grid,
  .feature-grid,
  .plan-grid,
  .hero-actions,
  .button-grid,
  .status-actions {
    grid-template-columns: 1fr;
  }

  .button-grid--stack-mobile {
    grid-template-columns: 1fr;
  }

  .auth-form {
    grid-template-columns: 1fr;
  }

  .auth-launcher {
    min-height: 42px;
    padding: 0 14px;
  }

  .topbar__actions {
    gap: 8px;
  }

  .lang-switch__btn {
    min-width: 38px;
    min-height: 34px;
    padding: 0 10px;
  }

  .modal-backdrop {
    place-items: end stretch;
    padding: 16px 12px 12px;
  }

  .auth-popover {
    width: 100%;
  }

  .plan-browser__tabs {
    grid-template-columns: 1fr;
  }

  .plan-grid--carousel {
    grid-template-columns: 1fr;
  }

  .renewal-grid {
    grid-template-columns: 1fr;
  }

  .topbar__title {
    font-size: 28px;
  }}

@media (max-width: 1100px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-grid--carousel {
    grid-template-columns: 1fr 1fr;
  }

  .renewal-grid {
    grid-template-columns: 1fr 1fr;
  }}

@media (max-width: 560px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar {
    gap: 8px;
  }

  .topbar__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .brand-button {
    flex: 1 1 auto;
  }

  .auth-launcher {
    min-width: 136px;
  }

  .hero-card,
  .status-card,
  .menu-btn,
  .plan-card,
  .feature-card,
  .plan-tier,
  .auth-card {
    border-radius: 24px;
  }

  .catalog-card {
    grid-template-columns: 48px 1fr 20px;
    gap: 12px;
  }}

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



:root {
  --product-glow: 0 28px 90px rgba(var(--accent-rgb), 0.18);
  --product-focus: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(2, 6, 23, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,247,255,0.84));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: var(--product-focus), inset 0 1px 0 rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.96);
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.auth-panel__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-tabs,
.period-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.56);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.auth-tab,
.period-tab {
  min-height: 46px;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.period-tab {
  display: grid;
  place-items: center;
  gap: 2px;
}

.period-tab small {
  font-size: 11px;
  opacity: .8;
}

.auth-tab:hover,
.period-tab:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.72);
}

.auth-tab.is-active,
.period-tab.is-active {
  color: #fffaf4;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.36), transparent 28%),
    linear-gradient(135deg, var(--accent), var(--accent-3) 58%, var(--accent-2));
  box-shadow: 0 16px 34px rgba(var(--accent-rgb),.24);
}

.auth-panel,
.manual-key,
.empty-state,
.no-access-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(84,66,126,.12);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.72), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(250,247,255,.72));
  box-shadow: var(--shadow-soft);
}

.auth-card__hint{
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-rgb),.14);
  background: rgba(255,255,255,.56);
  color: var(--muted);
  padding: 12px 14px;
  line-height: 1.55;
}

.hero-card--plans {
  overflow: hidden;
  position: relative;
}

.hero-card--plans::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(185,151,255,.34), transparent 68%);
  pointer-events: none;
}

@media (max-width: 720px) {

  .auth-tabs,
  .period-tabs {
    grid-template-columns: 1fr 1fr;
  }}





:root {
  --v2-bg: #f7f8fb;
  --v2-surface: rgba(255, 255, 255, 0.86);
  --v2-surface-strong: #ffffff;
  --v2-text: #111827;
  --v2-muted: #667085;
  --v2-line: rgba(17, 24, 39, 0.08);
  --v2-accent: #5b5ce2;
  --v2-accent-dark: #3730a3;
  --v2-accent-soft: rgba(91, 92, 226, 0.10);
  --v2-green: #12b76a;
  --v2-shadow: 0 24px 70px rgba(17, 24, 39, 0.08);
  --v2-shadow-soft: 0 12px 32px rgba(17, 24, 39, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html {
  background: var(--v2-bg);
}

body {
  color: var(--v2-text);
  background:
    radial-gradient(circle at 50% -10%, rgba(91, 92, 226, 0.10), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, var(--v2-bg) 100%);
  background-attachment: fixed;
}

body::before,
body::after,
.world-weave {
  display: none !important;
  animation: none !important;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  padding: max(12px, env(safe-area-inset-top)) 12px 28px;
}

.app {
  max-width: 920px;
}

.topbar {
  top: 10px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--v2-shadow-soft);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 0;
  animation: none !important;
  background:
    linear-gradient(135deg, var(--v2-accent), #8b5cf6);
  box-shadow: none;
}

.brand-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 7px;
  border: 3px solid rgba(255,255,255,.92);
  border-top-color: rgba(255,255,255,.38);
}

.topbar__title {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.topbar__subtitle {
  font-size: 12px;
  color: var(--v2-muted);
  margin-top: 4px;
}

.auth-launcher,
.lang-switch {
  box-shadow: none;
  border-color: var(--v2-line);
  background: rgba(255,255,255,.72);
}

.auth-launcher {
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
}

.lang-switch__btn {
  min-width: 38px;
  min-height: 34px;
  font-size: 11px;
}

.lang-switch__btn.is-active,
.auth-launcher--signed {
  background: var(--v2-text);
  color: white;
}

.btn,
button.btn{
  min-height: 48px;
  border-radius: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
  box-shadow: none;
}

.btn,
.v2-btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--v2-accent), var(--v2-accent-dark));
}
.v2-btn-secondary {
  color: var(--v2-text);
  background: white;
  border: 1px solid var(--v2-line);
}

.btn:hover,
.v2-menu-card:hover,
.v2-app-row:hover,
.v2-feature-card:hover {
  transform: translateY(-1px);
}

.v2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 6px;
}

.v2-hero__content,
.v2-phone-card,
.v2-section,
.v2-menu-card {
  border: 1px solid var(--v2-line);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
  backdrop-filter: blur(18px);
}

.v2-hero__content {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 34px;
}

.v2-pill {
  width: fit-content;
  margin-bottom: 20px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.v2-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: .94;
  letter-spacing: -0.075em;
}

.v2-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--v2-muted);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.55;
}

.v2-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.v2-hero__actions .btn,
.v2-hero__actions .btn-secondary {
  min-width: 160px;
}

.v2-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.v2-trust-row span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.04);
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 750;
}

.v2-phone-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 20px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 92, 226, 0.18), transparent 34%),
    var(--v2-surface-strong);
}

.v2-phone-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  pointer-events: none;
}

.v2-phone-card__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: #111827;
  color: white;
}

.v2-phone-card__top span,
.v2-connection-card span,
.v2-plan-mini-grid span,
.v2-plan-mini-grid small {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 750;
}

.v2-phone-card__top strong {
  display: block;
  margin-top: 6px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.07em;
}

.v2-status-dot {
  height: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(18, 183, 106, .16);
  color: #86efac;
  font-size: 12px;
  font-weight: 900;
}

.v2-connection-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--v2-line);
  background: white;
}

.v2-connection-card span {
  color: var(--v2-muted);
}

.v2-connection-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -.03em;
}

.v2-connection-card button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.v2-plan-mini-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.v2-plan-mini-grid > div {
  padding: 16px;
  border-radius: 22px;
  background: #f4f5f8;
}

.v2-plan-mini-grid span,
.v2-plan-mini-grid small {
  color: var(--v2-muted);
}

.v2-plan-mini-grid strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 26px;
  letter-spacing: -.06em;
}

.v2-section {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 30px;
}

.v2-section__head {
  max-width: 640px;
  margin-bottom: 18px;
}

.v2-section__head span {
  color: var(--v2-accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v2-section__head h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.06em;
}

.v2-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.v2-feature-card {
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background: white;
  transition: transform .18s ease;
}

.v2-feature-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.04em;
}

.v2-feature-card p {
  margin: 10px 0 0;
  color: var(--v2-muted);
  line-height: 1.55;
}

.v2-app-list {
  display: grid;
  gap: 10px;
}

.v2-app-row {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease;
}

.v2-app-row strong,
.v2-app-row span {
  display: block;
}

.v2-app-row strong {
  font-size: 17px;
  letter-spacing: -.03em;
}

.v2-app-row span {
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 14px;
}

.v2-app-row em {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--v2-accent-soft);
  color: var(--v2-accent-dark);
  font-style: normal;
  font-weight: 900;
}

.v2-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.v2-menu-card {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 20px;
  border-radius: 28px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease;
}

.v2-menu-card span {
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.v2-menu-card strong {
  font-size: 23px;
  letter-spacing: -.05em;
}

.v2-menu-card small {
  color: var(--v2-muted);
  font-size: 14px;
  line-height: 1.4;
}

.v2-menu-card--accent {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.24), transparent 36%),
    linear-gradient(135deg, var(--v2-accent), var(--v2-accent-dark));
  color: white;
}

.v2-menu-card--accent span,
.v2-menu-card--accent small {
  color: rgba(255,255,255,.72);
}


.hero-card,
.feature-card,
.menu-btn,
.catalog-card,
.plan-card,
.manual-key {
  border: 1px solid var(--v2-line) !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: var(--v2-shadow-soft) !important;
}

.feature-card__icon,
.menu-btn__icon,
.catalog-card__icon {
  background: var(--v2-accent-soft) !important;
  color: var(--v2-accent-dark) !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .topbar {
    border-radius: 20px;
  }

  .topbar__subtitle {
    display: none;
  }

  .auth-launcher {
    max-width: 116px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .v2-hero {
    grid-template-columns: 1fr;
  }

  .v2-hero__content {
    min-height: auto;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .v2-hero h1 {
    font-size: 44px;
  }

  .v2-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v2-hero__actions .btn,
  .v2-hero__actions .btn-secondary {
    width: 100%;
  }

  .v2-feature-grid,
  .v2-menu-grid {
    grid-template-columns: 1fr;
  }

  .v2-phone-card,
  .v2-section,
  .v2-menu-card {
    border-radius: 26px;
  }}

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


.visible-key-panel {
  margin-top: 18px;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 92, 226, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.08);
}

.visible-key-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.visible-key-panel__head span,
.visible-key-box > span {
  display: block;
  color: #3730a3;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.visible-key-panel__head h3 {
  margin: 7px 0 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -.06em;
}

.visible-key-panel__head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #667085;
  line-height: 1.55;
}

.visible-key-panel__status {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(18, 183, 106, .12);
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.visible-key-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.visible-key-box textarea {
  width: 100%;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 18px;
  background: #f8fafc;
  color: #111827;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  resize: vertical;
  word-break: break-all;
}

.visible-key-box--manual textarea {
  min-height: 132px;
}

.visible-key-box .btn,
.visible-key-box .btn-secondary {
  width: fit-content;
  min-width: 230px;
}

.visible-key-panel__hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 158, 11, .10);
  color: #92400e;
  font-size: 13px;
  line-height: 1.45;
}

.visible-key-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.visible-locations {
  margin-top: 18px;
}

.visible-locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.visible-location {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.visible-location strong,
.visible-location span {
  display: block;
}

.visible-location span {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 720px) {
  .visible-key-panel__head {
    display: grid;
  }

  .visible-key-box .btn,
  .visible-key-box .btn-secondary {
    width: 100%;
    min-width: 0;
  }}



:root {
  --read-text: #101828;
  --read-muted: #667085;
  --read-line: rgba(16, 24, 40, .10);
  --read-card: rgba(255,255,255,.94);
  --read-bg: #f6f7fb;
  --read-accent: #4f46e5;
  --read-accent-2: #111827;
}

body {
  color: var(--read-text);
  background:
    radial-gradient(circle at 50% -12%, rgba(79,70,229,.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--read-bg) 100%) !important;
}

body::before,
body::after,
.world-weave {
  display: none !important;
}

.app {
  max-width: 960px;
}

.topbar,
.hero-card,
.feature-card,
.menu-btn,
.catalog-card,
.plan-card,
.manual-key,
.visible-key-panel,
.v2-hero__content,
.v2-phone-card,
.v2-section,
.v2-menu-card {
  border: 1px solid var(--read-line) !important;
  background: var(--read-card) !important;
  box-shadow: 0 18px 54px rgba(16,24,40,.07) !important;
}

h1, h2, h3,
.hero-card h1,
.v2-hero h1,
.visible-key-panel__head h3 {
  color: var(--read-text);
  letter-spacing: -.055em;
  text-wrap: balance;
}

p,
.hero-card p,
.feature-card p,
.menu-btn__text,
.catalog-card__text,
.visible-key-panel__head p,
.visible-key-panel__hint,
.v2-hero p,
.v2-feature-card p,
.v2-app-row span,
.v2-menu-card small {
  color: var(--read-muted);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.58;
  max-width: 68ch;
}

.hero-card,
.v2-hero__content {
  padding: clamp(24px, 5vw, 56px) !important;
}

.hero-card h1,
.v2-hero h1 {
  max-width: 11ch;
  font-size: clamp(42px, 8vw, 78px);
  line-height: .92;
}

.hero-card p,
.v2-hero p {
  margin-top: 20px;
  max-width: 56ch;
}

.btn,
.auth-launcher {
  border-radius: 14px !important;
  font-weight: 850;
}

.btn {
  background: linear-gradient(135deg, var(--read-accent), #312e81) !important;
  color: #fff !important;
}

.brand-mark {
  animation: none !important;
  background: var(--read-accent-2) !important;
}

.feature-card__icon,
.menu-btn__icon,
.catalog-card__icon {
  display: none !important;
}


.visible-key-panel {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(79,70,229,.12), transparent 38%),
    #ffffff !important;
}

.visible-key-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: var(--read-accent);
}

.visible-key-panel__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.visible-key-panel__head span,
.visible-key-box > span,
.v2-section__head span {
  color: var(--read-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.visible-key-panel__head h3 {
  margin: 8px 0 0;
  font-size: clamp(28px, 5vw, 44px);
  line-height: .96;
}

.visible-key-panel__status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18,183,106,.12);
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.visible-key-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.visible-key-box textarea {
  width: 100%;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(16,24,40,.12);
  border-radius: 18px;
  background: #f8fafc;
  color: #0f172a;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  resize: vertical;
  word-break: break-all;
}

.visible-key-box--manual textarea {
  min-height: 150px;
}

.visible-key-box .btn,
.visible-key-box .btn-secondary {
  width: fit-content;
  min-width: 250px;
}

.visible-key-panel__hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245,158,11,.10);
  color: #92400e;
  font-size: 14px;
}

.menu-grid,
.feature-grid,
.v2-feature-grid,
.v2-menu-grid {
  gap: 14px;
}

.menu-btn,
.v2-menu-card,
.feature-card,
.v2-feature-card {
  border-radius: 24px !important;
}

@media (max-width: 720px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar {
    border-radius: 20px !important;
  }

  .topbar__subtitle {
    display: none;
  }

  .hero-card h1,
  .v2-hero h1 {
    max-width: 100%;
    font-size: 44px;
  }

  .visible-key-panel__head {
    grid-template-columns: 1fr;
  }

  .visible-key-box .btn,
  .visible-key-box .btn-secondary {
    width: 100%;
    min-width: 0;
  }

  p,
  .hero-card p,
  .visible-key-panel__head p {
    font-size: 16px;
    line-height: 1.55;
  }}

.product-key-actions .btn,
.product-key-actions .btn-secondary,
.product-key-actions a.btn-secondary {
  min-height: 42px;
  justify-content: center;
  text-decoration: none;
}

.visible-key-panel {
  display: none;
}

@media (max-width: 560px) {

  .product-key-actions .btn,
  .product-key-actions .btn-secondary,
  .product-key-actions a.btn-secondary {
    width: 100%;
  }}


.visible-key-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--accent-rgb), 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.76));
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 18px 45px rgba(41, 33, 80, 0.08);
}

.visible-key-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.visible-key-panel__head span,
.visible-key-box span,
.visible-key-locations span {
  display: block;
  color: rgba(44, 38, 70, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visible-key-panel__head h3 {
  margin: 4px 0 6px;
  font-size: 22px;
  line-height: 1.12;
}

.visible-key-panel__head p {
  margin: 0;
  color: rgba(44, 38, 70, 0.72);
  line-height: 1.55;
}

.visible-key-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(var(--accent-rgb), 0.10);
}

.visible-key-box--primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,244,255,0.9));
}

.visible-key-box code {
  display: block;
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(34, 27, 58, 0.055);
  color: #2f2850;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
  white-space: normal;
}

.visible-key-actions,
.visible-key-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.visible-key-locations {
  margin-top: 14px;
}

.visible-key-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.visible-key-location-list small {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: rgba(44, 38, 70, 0.82);
  font-weight: 700;
  line-height: 1;
}

.visible-key-empty,
.visible-key-debug {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.66);
  color: rgba(44, 38, 70, 0.7);
}

.visible-key-debug {
  font-size: 12px;
  line-height: 1.55;
}



.hero-card--compact {
  padding-bottom: 18px;
  min-height: auto;
}

.hero-card--compact h1 {
  max-width: 560px;
}

.hero-card--compact p {
  max-width: 620px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(var(--accent-rgb), 0.10);
}

.status-strip > div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.055);
}

.status-strip span {
  display: block;
  margin-bottom: 4px;
  color: rgba(44, 38, 70, 0.56);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-strip strong {
  display: block;
  color: #2f2850;
  font-size: 13px;
  line-height: 1.25;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.quick-action-card {
  appearance: none;
  border: 1px solid rgba(var(--accent-rgb), 0.10);
  background: rgba(255,255,255,0.74);
  border-radius: 20px;
  padding: 14px 12px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(41, 33, 80, 0.06);
  cursor: pointer;
}

.quick-action-card span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.10);
  color: #5d45ce;
  font-weight: 900;
}

.quick-action-card strong {
  display: block;
  margin-bottom: 4px;
  color: #2f2850;
  font-size: 15px;
}

.quick-action-card small {
  display: block;
  color: rgba(44, 38, 70, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.menu-grid .menu-btn[data-route="library"] {
  display: none;
}

.love-note {
  display: none;
}

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

  .quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .visible-key-box code {
    font-size: 12px;
  }}

@media (max-width: 420px) {
  .status-strip,
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .quick-action-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    align-items: center;
  }

  .quick-action-card span {
    grid-row: span 2;
    margin-bottom: 0;
  }}

.status-card,
.menu-grid .menu-btn[data-route="library"],
.love-note {
  display: none !important;
}

@media (max-width: 720px) {

  .product-main-key__actions .btn,
  .product-main-key__actions .btn-secondary,
  .product-key-actions .btn,
  .product-key-actions .btn-secondary {
    width: 100%;
  }}




:root {
  --font-ui: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 34px;

  --shadow-soft: 0 18px 55px rgba(2, 6, 23, .10);
  --shadow-button: 0 12px 28px rgba(2, 6, 23, .20);
  --shadow-card: 0 24px 70px rgba(2, 6, 23, .12);

  --brand-mark-a: #fff4cc;
  --brand-mark-b: #14b8a6;
  --brand-mark-c: #78d6ff;
}


body[data-theme="aurora-pearl"] {
  --page-bg-1: #f3faf9;
  --page-bg-2: #e9f7f4;
  --page-bg-3: #fffaf0;

  --surface: rgba(255, 255, 255, .78);
  --surface-strong: rgba(255, 255, 255, .92);
  --surface-soft: rgba(255, 255, 255, .58);

  --text-main: #1c1736;
  --text-soft: rgba(28, 23, 54, .82);
  --text-muted: rgba(28, 23, 54, .60);

  --line: rgba(2, 6, 23, .15);

  --accent: #14b8a6;
  --accent-2: #2dd4bf;
  --accent-3: #f6c560;
  --accent-soft: #0f8479;   /* readable teal for accent text on LIGHT surfaces */
  --accent-text: #ffffff;
  --hero-text-halo: rgba(255, 255, 255, .65);  /* light halo behind dark hero text */
  --hero-scrim: rgba(247, 250, 255, .55);       /* soft light glow behind landing hero */

  --button-primary-bg: linear-gradient(135deg, #14b8a6 0%, #1ec9b0 52%, #2dd4bf 100%);
  --button-primary-text: #ffffff;
  --button-secondary-bg: rgba(255, 255, 255, .72);
  --button-secondary-text: #1f5f57;

  --chip-bg: rgba(var(--accent-rgb), .08);
  --chip-text: rgba(20, 73, 67, .82);

  --hero-bg:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .86), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(120, 214, 255, .40), transparent 34%),
    linear-gradient(135deg, #14b8a6 0%, #1fb6c9 56%, #67cdea 100%);
}


body[data-theme="night-silk"] {
  --page-bg-1: #0a1518;
  --page-bg-2: #0e1f24;
  --page-bg-3: #0c1a20;

  /* Solid, neutral-grey card surfaces so nothing blends into the dark sea and
     inner controls read as a clear grey backing (not a faint white wash). */
  --surface: rgba(31, 36, 45, .92);
  --surface-strong: rgba(42, 48, 59, .96);
  --surface-soft: rgba(255, 255, 255, .09);

  --text-main: #f7f2ff;
  --text-soft: rgba(247, 242, 255, .85);
  --text-muted: rgba(247, 242, 255, .64);

  --line: rgba(120, 210, 200, .18);

  --accent: #2dd4bf;
  --accent-2: #5eead4;
  --accent-3: #ffd68a;
  --accent-soft: #5eead4;   /* mint for accent text on DARK surfaces */
  --accent-text: #08221f;
  --accent-rgb: 45, 212, 191;
  --hero-text-halo: rgba(0, 0, 0, .55);  /* dark halo behind light hero text */
  --hero-scrim: rgba(3, 8, 20, .58);      /* soft dark glow behind landing hero */

  --button-primary-bg: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 52%, #5eead4 100%);
  --button-primary-text: #08221f;
  --button-secondary-bg: rgba(255, 255, 255, .08);
  --button-secondary-text: #f7f2ff;

  --chip-bg: rgba(var(--accent-rgb), .14);
  --chip-text: rgba(247, 242, 255, .80);

  --hero-bg:
    radial-gradient(circle at 12% 0%, rgba(255, 214, 138, .22), transparent 30%),
    radial-gradient(circle at 92% 5%, rgba(98, 214, 255, .22), transparent 35%),
    linear-gradient(135deg, #171432 0%, #272054 58%, #103243 100%);

  --brand-mark-a: #ffd68a;
  --brand-mark-b: #2dd4bf;
  --brand-mark-c: #62d6ff;
}


body {
  font-family: var(--font-ui);
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, var(--page-bg-3), transparent 34%),
    radial-gradient(circle at 100% 0%, var(--page-bg-2), transparent 38%),
    linear-gradient(180deg, var(--page-bg-1), var(--page-bg-2));
}

.app {
  background: transparent;
}


.topbar {
  margin: 10px 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: 0 14px 40px rgba(2, 6, 23, .08);
}

.brand-button {
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 16px;
  overflow: hidden;
  background: transparent !important;
  color: transparent !important;
  box-shadow:
    0 12px 28px rgba(var(--accent-rgb), .22),
    inset 0 0 0 1px rgba(255, 255, 255, .36);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.topbar__title {
  color: var(--text-main);
  font-weight: 900;
  letter-spacing: -.03em;
}

.topbar__subtitle {
  color: var(--text-muted);
  font-size: 12px;
}


.theme-switch,
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.theme-switch__btn,
.lang-switch__btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 900;
  cursor: pointer;
}

.theme-switch__btn.is-active,
.lang-switch__btn.is-active {
  background: var(--surface-strong);
  color: var(--text-main);
  box-shadow: 0 8px 18px rgba(2, 6, 23, .10);
}

.auth-launcher {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text-main);
}


.btn,
button.btn,
a.btn {
  border: 0 !important;
  background: var(--button-primary-bg) !important;
  color: var(--button-primary-text) !important;
  box-shadow: var(--shadow-button);
  font-weight: 900;
  letter-spacing: -.015em;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.btn{
  min-height: 46px;
  border-radius: 16px !important;
}
.hero-card,
.hero-card--plans,
.hero-card--library,
.hero-card--help {
  border: 1px solid rgba(255, 255, 255, .18);
  background: var(--hero-bg) !important;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.hero-card h1,
.hero-card .page__title,
.hero-card--plans h1 {
  color: #fff;
  letter-spacing: -.045em;
}
.hero-card p {
  color: rgba(255, 255, 255, .80);
}
.hero-card__badge {
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .18);
}
.status-card,
.plan-card,
.menu-btn,
.catalog-card {
  border: 1px solid var(--line) !important;
  background: var(--surface-strong) !important;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}
.plan-card__name,
.menu-btn__title {
  color: var(--text-main) !important;
}
.menu-btn__text,
.plan-card__text{
  color: var(--text-soft) !important;
}
.plan-card__badge,
.page__eyebrow {
  color: var(--accent) !important;
}
.manual-key,
.manual-key__value {
  background: var(--surface-soft) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--line) !important;
}
.status-chip,
.link-chip {
  background: var(--chip-bg) !important;
  color: var(--chip-text) !important;
  border: 1px solid var(--line);
}
.status-chip.active {
  background: color-mix(in srgb, var(--accent-2) 18%, transparent) !important;
  color: var(--text-main) !important;
}


.period-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 6px;
}

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

.period-tab.is-active {
  background: var(--surface-strong);
  color: var(--text-main);
  box-shadow: 0 10px 26px rgba(2, 6, 23, .08);
}
.plan-card__price {
  color: var(--accent) !important;
}


.menu-btn__icon:empty,
.catalog-card__icon:empty {
  display: none;
}

.menu-btn__icon {
  color: var(--accent);
}


body[data-theme="night-silk"] .topbar,
body[data-theme="night-silk"] .menu-btn {
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}


@media (max-width: 720px) {
  .topbar {
    border-radius: 20px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 14px;
  }

  .theme-switch__btn,
  .lang-switch__btn {
    width: 29px;
    height: 29px;
    font-size: 12px;
  }

  .topbar__actions {
    gap: 6px;
  }

  .auth-launcher {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }}




html {
  background: var(--page-bg-1);
}

body[data-theme="aurora-pearl"],
body[data-theme="night-silk"] {
  min-height: 100vh;
  color: var(--text-main) !important;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent-3) 22%, transparent), transparent 28%),
    radial-gradient(circle at 94% 2%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 34%),
    linear-gradient(145deg, var(--page-bg-1), var(--page-bg-2) 52%, var(--page-bg-3)) !important;
}

body[data-theme="aurora-pearl"] {
  --product-glass: rgba(255, 255, 255, .74);
  --product-glass-strong: rgba(255, 255, 255, .91);
  --product-glass-soft: rgba(255, 255, 255, .52);
  --product-inset: rgba(255, 255, 255, .66);
  --product-glow: rgba(var(--accent-rgb), .18);
  --product-hero-text: #ffffff;
  --product-hero-muted: rgba(255, 255, 255, .78);
}

body[data-theme="night-silk"] {
  --product-glass: rgba(18, 19, 38, .76);
  --product-glass-strong: rgba(24, 25, 48, .94);
  --product-glass-soft: rgba(255, 255, 255, .06);
  --product-inset: rgba(255, 255, 255, .09);
  --product-glow: rgba(98, 214, 255, .16);
  --product-hero-text: #ffffff;
  --product-hero-muted: rgba(255, 255, 255, .74);
}


body[data-theme] .app-shell {
  background: transparent !important;
}

body[data-theme] .app {
  background: transparent !important;
  color: var(--text-main) !important;
}


body[data-theme] .topbar {
  background: var(--product-glass) !important;
  border: 1px solid var(--line) !important;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, .08),
    inset 0 1px 0 var(--product-inset) !important;
  backdrop-filter: blur(24px) saturate(1.12);
}

body[data-theme="night-silk"] .topbar {
  box-shadow:
    0 22px 70px rgba(0, 0, 0, .30),
    inset 0 1px 0 var(--product-inset) !important;
}

body[data-theme] .topbar__title,
body[data-theme] .brand-button,
body[data-theme] .auth-launcher {
  color: var(--text-main) !important;
}

body[data-theme] .topbar__subtitle {
  color: var(--text-muted) !important;
}

body[data-theme] .auth-launcher,
body[data-theme] .theme-switch,
body[data-theme] .lang-switch {
  background: var(--product-glass-soft) !important;
  border: 1px solid var(--line) !important;
}

body[data-theme] .theme-switch__btn,
body[data-theme] .lang-switch__btn {
  color: var(--text-muted) !important;
}

body[data-theme] .theme-switch__btn.is-active,
body[data-theme] .lang-switch__btn.is-active {
  color: var(--text-main) !important;
  background: var(--product-glass-strong) !important;
}


body[data-theme] .brand-mark {
  background: transparent !important;
  border: 0 !important;
  box-shadow:
    0 14px 36px var(--product-glow),
    inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}

body[data-theme] .brand-mark svg {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .10));
}


body[data-theme] .btn,
body[data-theme] button.btn,
body[data-theme] a.btn {
  background: var(--button-primary-bg) !important;
  color: var(--button-primary-text) !important;
  border: 0 !important;
  box-shadow: 0 16px 34px var(--product-glow) !important;
}

body[data-theme] .btn{
  border-radius: 17px !important;
}
body[data-theme] .status-card,
body[data-theme] .plan-card,
body[data-theme] .catalog-card,
body[data-theme] .menu-btn,
body[data-theme] .love-note {
  background: var(--product-glass-strong) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--line) !important;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, .07),
    inset 0 1px 0 var(--product-inset) !important;
}
body[data-theme="night-silk"] .status-card,
body[data-theme="night-silk"] .plan-card,
body[data-theme="night-silk"] .catalog-card,
body[data-theme="night-silk"] .menu-btn,
body[data-theme="night-silk"] .love-note {
  box-shadow:
    0 24px 76px rgba(0, 0, 0, .30),
    inset 0 1px 0 var(--product-inset) !important;
}

body[data-theme] h1,
body[data-theme] h2,
body[data-theme] h3,
body[data-theme] .section-title,
body[data-theme] .menu-btn__title,
body[data-theme] .catalog-card__title,
body[data-theme] .plan-card__name{
  color: var(--text-main) !important;
}

body[data-theme] p,
body[data-theme] .menu-btn__text,
body[data-theme] .catalog-card__text,
body[data-theme] .plan-card__text,
body[data-theme] .love-note span {
  color: var(--text-soft) !important;
}


body[data-theme] .period-tabs {
  background: var(--product-glass) !important;
  border: 1px solid var(--line) !important;
}

body[data-theme] .period-tab {
  color: var(--text-muted) !important;
}

body[data-theme] .period-tab.is-active {
  background: var(--product-glass-strong) !important;
  color: var(--text-main) !important;
}
body[data-theme] .plan-card__price {
  color: var(--accent) !important;
}
body[data-theme] .plan-card__badge {
  color: var(--accent) !important;
}
body[data-theme] .manual-key,
body[data-theme] .manual-key__value {
  background: var(--product-glass-soft) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--line) !important;
}
body[data-theme] .status-chip,
body[data-theme] .link-chip {
  background: var(--chip-bg) !important;
  color: var(--chip-text) !important;
  border: 1px solid var(--line) !important;
}


body[data-theme] input,
body[data-theme] textarea,
body[data-theme] select {
  background: var(--product-glass-soft) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--line) !important;
}

body[data-theme] input::placeholder,
body[data-theme] textarea::placeholder {
  color: var(--text-muted) !important;
}


body[data-theme] .toast,
body[data-theme] .auth-popover {
  background: var(--product-glass-strong) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--line) !important;
}




body[data-theme] .section:has(.product-device-card) {
  margin-top: 18px;
}

body[data-theme] .catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px !important;
}

body[data-theme] .product-device-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 15px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  text-align: left;
  color: var(--text-main);
  background:
    radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 34%),
    linear-gradient(180deg, var(--product-glass-strong), var(--product-glass));
  box-shadow:
    0 20px 64px rgba(0, 0, 0, .08),
    inset 0 1px 0 var(--product-inset);
  cursor: pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

body[data-theme="night-silk"] .product-device-card {
  box-shadow:
    0 24px 78px rgba(0, 0, 0, .30),
    inset 0 1px 0 var(--product-inset);
}

body[data-theme] .product-device-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow:
    0 26px 84px color-mix(in srgb, var(--accent) 18%, transparent),
    inset 0 1px 0 var(--product-inset);
}

body[data-theme] .product-device-card__shine {
  position: absolute;
  inset: -40% -30% auto auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  filter: blur(6px);
  pointer-events: none;
}

body[data-theme] .product-device-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .42), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #8368ff), color-mix(in srgb, var(--accent-2) 72%, #5cc9f3));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 22%, transparent);
}

body[data-theme] .product-device-card__icon span {
  position: relative;
  display: block;
  width: 30px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 10px;
}

body[data-theme] .product-device-card__icon span::before,
body[data-theme] .product-device-card__icon span::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .92);
}


body[data-theme] .product-device-card__icon--iphone span,
body[data-theme] .product-device-card__icon--android span {
  width: 25px;
  height: 39px;
  border-radius: 11px;
}

body[data-theme] .product-device-card__icon--iphone span::after,
body[data-theme] .product-device-card__icon--android span::after {
  left: 50%;
  bottom: 3px;
  width: 7px;
  height: 2px;
  border-radius: 99px;
  transform: translateX(-50%);
}


body[data-theme] .product-device-card__icon--desktop span,
body[data-theme] .product-device-card__icon--mac span {
  width: 38px;
  height: 25px;
  border-radius: 8px;
}

body[data-theme] .product-device-card__icon--desktop span::before,
body[data-theme] .product-device-card__icon--mac span::before {
  left: 50%;
  bottom: -12px;
  width: 4px;
  height: 10px;
  border-radius: 99px;
  transform: translateX(-50%);
}

body[data-theme] .product-device-card__icon--desktop span::after,
body[data-theme] .product-device-card__icon--mac span::after {
  left: 50%;
  bottom: -16px;
  width: 22px;
  height: 4px;
  border-radius: 99px;
  transform: translateX(-50%);
}


body[data-theme] .product-device-card__icon--tv span,
body[data-theme] .product-device-card__icon--apple-tv span {
  width: 42px;
  height: 27px;
  border-radius: 9px;
}

body[data-theme] .product-device-card__icon--tv span::after,
body[data-theme] .product-device-card__icon--apple-tv span::after {
  left: 50%;
  bottom: -9px;
  width: 20px;
  height: 4px;
  border-radius: 99px;
  transform: translateX(-50%);
}

body[data-theme] .product-device-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body[data-theme] .product-device-card__kicker {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

body[data-theme] .product-device-card__title {
  color: var(--text-main);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
}

body[data-theme] .product-device-card__text {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body[data-theme] .product-device-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

body[data-theme] .product-device-card__bottom span {
  display: inline-flex;
  max-width: 70%;
  padding: 7px 10px;
  border-radius: 999px;
  overflow: hidden;
  color: var(--chip-text);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body[data-theme] .product-device-card__bottom strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}


body[data-theme] .faq-list {
  display: grid;
  gap: 10px;
}

body[data-theme] .faq-item {
  border-radius: 22px;
  overflow: hidden;
  background: var(--product-glass-strong);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--product-inset);
}

body[data-theme] .faq-question {
  width: 100%;
  padding: 15px 16px;
  color: var(--text-main);
  font-weight: 850;
  text-align: left;
  background: transparent;
}

body[data-theme] .faq-answer {
  padding: 0 16px 16px;
  color: var(--text-soft);
  line-height: 1.5;
}

@media (max-width: 760px) {
  body[data-theme] .catalog-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme] .product-device-card {
    grid-template-columns: 56px 1fr;
    min-height: 146px;
    padding: 15px;
    border-radius: 25px;
  }

  body[data-theme] .product-device-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
  }

  body[data-theme] .product-device-card__icon span {
    transform: scale(.82);
  }

  body[data-theme] .product-device-card__title {
    font-size: 18px;
  }

  body[data-theme] .product-device-card__text {
    font-size: 13px;
  }}




body[data-theme="aurora-pearl"] {
  --bg-main: #f7f1ff;
  --bg-soft: #fffaf4;
  --surface: rgba(255, 255, 255, .76);
  --surface-strong: rgba(255, 255, 255, .92);
  --text-main: #241735;
  --text-soft: #73647f;
  --text-muted: #9a8ca4;
  --accent: #14b8a6;
  --accent-2: #2dd4bf;
  --accent-3: #f6c560;
  --brand-mark-a: #ffe6a7;
  --brand-mark-b: #14b8a6;
  --brand-mark-c: #79d4e7;
  --shadow-soft: 0 18px 48px rgba(15, 95, 87, .14);
  --shadow-card: 0 18px 50px rgba(15, 95, 87, .16);
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 224, 161, .85), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(94, 234, 212, .42), transparent 32%),
    linear-gradient(145deg, #f3fdfb 0%, #fff8ef 48%, #eefbff 100%);
}

body[data-theme="night-silk"] {
  --bg-main: #100d1e;
  --bg-soft: #171225;
  --surface: rgba(28, 23, 44, .74);
  --surface-strong: rgba(35, 29, 54, .92);
  --text-main: #fff8ef;
  --text-soft: #c9bdd6;
  --text-muted: #8f82a2;
  --accent: #2dd4bf;
  --accent-2: #5eead4;
  --accent-3: #ffd68a;
  --accent-rgb: 45, 212, 191;
  --brand-mark-a: #ffcf70;
  --brand-mark-b: #2dd4bf;
  --brand-mark-c: #6dd8ee;
  --shadow-soft: 0 22px 58px rgba(0, 0, 0, .34);
  --shadow-card: 0 22px 62px rgba(0, 0, 0, .42);
  background:
    radial-gradient(circle at 14% -12%, rgba(45, 212, 191, .24), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(94, 234, 212, .14), transparent 32%),
    linear-gradient(145deg, #0f0c1c 0%, #171226 48%, #0d1f27 100%);
}

body[data-theme] {
  color: var(--text-main);
}

body[data-theme] .app {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 94%, transparent), color-mix(in srgb, var(--surface) 86%, transparent));
  box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}

body[data-theme] .topbar {
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  backdrop-filter: blur(18px);
}

body[data-theme] .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 28%, transparent);
  background: transparent !important;
}

body[data-theme] .brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-theme] .topbar__title,
body[data-theme] h1,
body[data-theme] h2,
body[data-theme] h3 {
  color: var(--text-main);
}

body[data-theme] .topbar__subtitle,
body[data-theme] p,
body[data-theme] small {
  color: var(--text-soft);
}

body[data-theme] .btn,
body[data-theme] button.btn{
  color: #fff;
  border: 0;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 28%, transparent);
}

body[data-theme] .btn:hover,
body[data-theme] button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 34%, transparent);
}

body[data-theme] .lang-switch,
body[data-theme] .theme-switch {
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}

body[data-theme] .lang-switch__btn,
body[data-theme] .theme-switch__btn {
  color: var(--text-soft);
}

body[data-theme] .lang-switch__btn.is-active,
body[data-theme] .theme-switch__btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
body[data-theme] .status-card,
body[data-theme] .hero-card{
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 92%, transparent), color-mix(in srgb, var(--surface) 74%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: var(--shadow-card);
}

body[data-theme] .period-tabs {
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

body[data-theme] .period-tab {
  color: var(--text-soft);
  border-radius: 18px;
}

body[data-theme] .period-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 24%, transparent);
}



body[data-theme] .section:has(.product-device-card) {
  margin-top: 22px;
}

body[data-theme] .catalog-grid {
  gap: 14px;
}

body[data-theme] .product-device-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 124px;
  padding: 18px;
  border-radius: 28px;
  text-align: left;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 90%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--accent) 10%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body[data-theme] .product-device-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 22px 54px color-mix(in srgb, var(--accent) 16%, transparent);
}

body[data-theme] .product-device-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-right: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 84%, #fff), color-mix(in srgb, var(--accent-2) 82%, #fff));
  color: #fff;
  font-size: 25px;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 24%, transparent);
}

body[data-theme] .product-device-card__title {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}

body[data-theme] .product-device-card__text {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

body[data-theme] .product-device-card__meta {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

body[data-theme] .product-device-card__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-weight: 900;
}

body[data-theme] .faq-item {
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 22px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 8%, transparent);
}

body[data-theme] .faq-question {
  color: var(--text-main);
}

body[data-theme] .faq-answer {
  color: var(--text-soft);
}

@media (max-width: 620px) {
  body[data-theme] .product-device-card {
    grid-template-columns: auto 1fr;
  }

  body[data-theme] .product-device-card__arrow {
    display: none;
  }}
body[data-theme] .visible-key-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 2px 0 0;
  overflow: visible;
  mask-image: none;
}
body[data-theme] .visible-key-location-list small {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 6%, transparent);
  white-space: nowrap;
}

@media (max-width: 620px) {
  body[data-theme] .visible-key-location-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  body[data-theme] .visible-key-location-list small {
    flex: 0 0 auto;
  }
  body[data-theme] .visible-key-location-list::-webkit-scrollbar {
    display: none;
  }}




:root {
  --product-auth-radius: 30px;
}

body[data-theme] .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 18px;
  background: rgba(6, 10, 20, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


body[data-theme] .auth-popover {
  background: rgba(12, 18, 32, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5) !important;
  color: #eef2ff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body[data-theme] .auth-card__head h3 { color: #fff !important; }
body[data-theme] .auth-card__head p,
body[data-theme] .auth-card__footer { color: rgba(210, 222, 255, 0.72) !important; }

body[data-theme] .auth-popover {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: var(--product-auth-radius);
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--card-bg, #fff) 92%, transparent),
      color-mix(in srgb, var(--card-bg, #fff) 72%, var(--accent) 8%)
    );
  border: 1px solid color-mix(in srgb, var(--border, #ded7ff) 70%, transparent);
  box-shadow:
    0 30px 90px rgba(20, 12, 52, .24),
    inset 0 1px 0 rgba(255,255,255,.26);
}

body[data-theme="night-silk"] .auth-popover,
body[data-theme="night-silk"] .auth-card,
body[data-theme="night-silk"] .auth-card--popover {
  background:
    linear-gradient(145deg, rgba(27, 23, 44, .98), rgba(18, 17, 32, .98)) !important;
  color: var(--text-main, #f5f2ff) !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow:
    0 34px 110px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

body[data-theme] .auth-card,
body[data-theme] .auth-card--popover {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 24px;
}

body[data-theme] .auth-popover__close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: 12px 12px -52px 0;
  border: 1px solid color-mix(in srgb, var(--border, #ddd) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-bg, #fff) 78%, transparent);
  color: var(--text-main, #171226);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

body[data-theme="night-silk"] .auth-popover__close {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.13);
}

body[data-theme] .auth-card__head {
  padding: 6px 46px 14px 0;
}

body[data-theme] .auth-card__head .page__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

body[data-theme] .auth-card__head h3 {
  margin: 0;
  color: var(--text-main, #191427);
  font-size: clamp(30px, 5vw, 44px);
  line-height: .96;
  letter-spacing: -.06em;
}

body[data-theme] .auth-card__head p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--text-soft, #6f6780);
  font-size: 15px;
  line-height: 1.55;
}

body[data-theme="night-silk"] .auth-card__head h3 {
  color: #fff;
}

body[data-theme="night-silk"] .auth-card__head p {
  color: rgba(255,255,255,.68);
}

body[data-theme] .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 16px;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--border, #ddd) 70%, transparent);
}

body[data-theme] .auth-tabs--single {
  grid-template-columns: 1fr;
}

body[data-theme] .auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft, #756e86);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

body[data-theme] .auth-tab:hover {
  transform: translateY(-1px);
}

body[data-theme] .auth-tab.is-active {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 96%, white 4%),
      color-mix(in srgb, var(--accent-2, var(--accent)) 82%, var(--accent) 18%)
    );
  color: white;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 26%, transparent);
}

body[data-theme="night-silk"] .auth-tabs {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.10);
}

body[data-theme="night-silk"] .auth-tab {
  color: rgba(255,255,255,.62);
}

body[data-theme="night-silk"] .auth-tab.is-active {
  color: #fff;
}

body[data-theme] .auth-layout {
  display: grid;
  gap: 12px;
}

body[data-theme] .auth-layout--login,
body[data-theme] .auth-layout--register {
  grid-template-columns: 1fr;
}

body[data-theme] .auth-panel {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--card-bg, #fff) 88%, transparent),
      color-mix(in srgb, var(--card-bg, #fff) 72%, var(--accent) 6%)
    );
  border: 1px solid color-mix(in srgb, var(--border, #ddd) 72%, transparent);
}

body[data-theme="night-silk"] .auth-panel {
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border-color: rgba(255,255,255,.10);
}

body[data-theme] .auth-panel--primary,
body[data-theme] .auth-panel--telegram {
  overflow: hidden;
}

body[data-theme] .auth-panel--primary::before,
body[data-theme] .auth-panel--telegram::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -18%;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  pointer-events: none;
}

body[data-theme] .auth-panel__label {
  position: relative;
  margin-bottom: 10px;
  color: var(--text-soft, #736b84);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: none;
}

body[data-theme="night-silk"] .auth-panel__label {
  color: rgba(255,255,255,.62);
}

body[data-theme] .auth-panel .btn,
body[data-theme] .auth-panel .btn-secondary,
body[data-theme] .auth-form .btn,
body[data-theme] .auth-form .btn-secondary {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
}

body[data-theme] .auth-panel--telegram .btn-secondary,
body[data-theme] .auth-panel--primary .btn-secondary {
  position: relative;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 96%, white 3%),
      color-mix(in srgb, var(--accent-2, var(--accent)) 82%, var(--accent) 18%)
    ) !important;
  color: white !important;
  border: 0 !important;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 25%, transparent);
}

body[data-theme] .auth-choice__divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  color: var(--text-soft, #7a7389);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

body[data-theme] .auth-choice__divider::before,
body[data-theme] .auth-choice__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--border, #ddd) 70%, transparent);
}

body[data-theme="night-silk"] .auth-choice__divider {
  color: rgba(255,255,255,.52);
}

body[data-theme="night-silk"] .auth-choice__divider::before,
body[data-theme="night-silk"] .auth-choice__divider::after {
  background: rgba(255,255,255,.10);
}

body[data-theme] .auth-form {
  display: grid;
  gap: 12px;
}

body[data-theme] .auth-form .field {
  display: grid;
  gap: 7px;
  margin: 0;
}

body[data-theme] .auth-form .field span {
  color: var(--text-soft, #756e86);
  font-size: 12px;
  font-weight: 900;
}

body[data-theme="night-silk"] .auth-form .field span {
  color: rgba(255,255,255,.64);
}

body[data-theme] .auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1px solid color-mix(in srgb, var(--border, #ddd) 76%, transparent);
  background: color-mix(in srgb, var(--card-bg, #fff) 82%, transparent);
  color: var(--text-main, #181426);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body[data-theme] .auth-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, white 10%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

body[data-theme="night-silk"] .auth-form input {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

body[data-theme="night-silk"] .auth-form input::placeholder {
  color: rgba(255,255,255,.36);
}

body[data-theme] .password-meter {
  padding: 10px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

body[data-theme="night-silk"] .password-meter {
  background: rgba(255,255,255,.055);
}

body[data-theme] .password-meter__label {
  color: var(--text-soft, #756e86);
  font-size: 12px;
}

body[data-theme="night-silk"] .password-meter__label {
  color: rgba(255,255,255,.62);
}

body[data-theme] .password-meter__bar {
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--border, #ddd) 55%, transparent);
}

body[data-theme] .password-meter__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
}

body[data-theme] .auth-card__hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--text-soft, #756e86);
  font-size: 13px;
  line-height: 1.45;
}

body[data-theme="night-silk"] .auth-card__hint {
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.62);
}

body[data-theme] .auth-inline-link,
body[data-theme] .auth-switch-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

body[data-theme="night-silk"] .auth-inline-link,
body[data-theme="night-silk"] .auth-switch-link {
  color: color-mix(in srgb, var(--accent-2, #9bd4ef) 86%, white 10%);
}

@media (max-width: 520px) {
  body[data-theme] .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  body[data-theme] .auth-popover {
    width: 100%;
    max-height: 92vh;
    border-radius: 28px 28px 24px 24px;
  }

  body[data-theme] .auth-card,
  body[data-theme] .auth-card--popover {
    padding: 20px;
  }

  body[data-theme] .auth-card__head h3 {
    font-size: 32px;
  }

  body[data-theme] .auth-tabs {
    gap: 6px;
  }}

.download-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.download-launcher:hover {
  filter: brightness(1.05);
}

@media (max-width: 560px) {
  .download-launcher {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }}



.account-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.account-kv {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.account-kv div {
  display: grid;
  grid-template-columns: minmax(110px, 0.72fr) 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.account-kv dt {
  color: var(--muted);
  font-size: 13px;
}

.account-kv dd {
  margin: 0;
  font-weight: 850;
  word-break: break-word;
}

.account-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.account-device-card,
.account-empty {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.account-device-card strong,
.account-device-card span,
.account-device-card small {
  display: block;
}

.account-device-card span,
.account-device-card small,
.account-empty {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .account-kv div {
    grid-template-columns: 1fr;
    gap: 4px;
  }}



body[data-theme],
body {
  background:
    radial-gradient(circle at 20% 18%, rgba(104, 91, 255, 0.26), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(24, 192, 255, 0.18), transparent 26%),
    radial-gradient(circle at 54% 86%, rgba(151, 71, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #070914 0%, #0b1022 42%, #111831 100%) !important;
  color: #eef3ff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(178,202,255,.72) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,.52) 0 1px, transparent 1.3px);
  background-size: 72px 72px, 118px 118px, 173px 173px;
  background-position: 0 0, 33px 21px, 72px 48px;
  animation: galaxyStarsDrift 80s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse at 55% 42%, rgba(115, 91, 255, .34), transparent 34%),
    conic-gradient(from 210deg at 52% 50%,
      transparent 0deg,
      rgba(96, 165, 250, .05) 40deg,
      rgba(168, 85, 247, .22) 92deg,
      rgba(34, 211, 238, .13) 138deg,
      transparent 205deg,
      rgba(99, 102, 241, .15) 270deg,
      transparent 360deg);
  filter: blur(18px);
  transform: rotate(-11deg);
  animation: galaxyNebulaFloat 22s ease-in-out infinite alternate;
}

.app-shell,
.app {
  position: relative;
  z-index: 1;
}

.topbar {
  color: #eef3ff;
}

.topbar__subtitle,
.hero-card p{
  color: rgba(226, 232, 255, .74) !important;
}

.brand-button,
.icon-btn {
  color: #eef3ff;
}

.brand-mark,
.icon-btn,
.lang-switch,
.auth-launcher,
.theme-switch {
  background: rgba(16, 23, 46, .72) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 20px 55px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(18px);
}

.topbar__title {
  color: #fff;
}
.vpneta-guest-hero,
.vpneta-warm-hero,
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 255, .2) !important;
  background:
    radial-gradient(circle at 74% 38%, rgba(96, 165, 250, .18), transparent 26%),
    radial-gradient(circle at 18% 28%, rgba(168, 85, 247, .22), transparent 34%),
    linear-gradient(135deg, rgba(13, 19, 43, .86), rgba(9, 13, 30, .68)) !important;
  box-shadow:
    0 30px 90px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(20px);
}
.vpneta-guest-hero::before,
.vpneta-warm-hero::before,
.hero-card::before {
  content: "";
  position: absolute;
  right: max(-70px, -8vw);
  top: 50%;
  width: clamp(260px, 42vw, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 66%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 34%, rgba(255,255,255,.72) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 40%, rgba(125, 211, 252, .74), transparent 18%),
    radial-gradient(circle at 62% 52%, rgba(99, 102, 241, .46), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, .1), rgba(30, 41, 99, .9) 62%, rgba(10, 18, 42, .96) 72%);
  box-shadow:
    0 0 45px rgba(56, 189, 248, .24),
    0 0 120px rgba(99, 102, 241, .28),
    inset -34px -28px 60px rgba(0,0,0,.38),
    inset 20px 16px 44px rgba(255,255,255,.12);
  opacity: .98;
  pointer-events: none;
}
.vpneta-guest-hero::after,
.vpneta-warm-hero::after,
.hero-card::after {
  content: "";
  position: absolute;
  right: max(-96px, -10vw);
  top: 50%;
  width: clamp(310px, 48vw, 610px);
  aspect-ratio: 1;
  border-radius: 999px;
  transform: translateY(-50%) rotate(-18deg);
  border: 1px solid rgba(147, 197, 253, .28);
  box-shadow:
    0 0 0 18px rgba(59, 130, 246, .025),
    0 0 0 42px rgba(99, 102, 241, .025),
    inset 0 0 50px rgba(125, 211, 252, .08);
  pointer-events: none;
}
.vpneta-guest-hero__content,
.vpneta-warm-hero__content,
.hero-card > * {
  position: relative;
  z-index: 2;
}
.vpneta-warm-pill,
.hero-card__badge,
.page__eyebrow {
  color: #dbeafe !important;
  background: rgba(59, 130, 246, .14) !important;
  border: 1px solid rgba(147, 197, 253, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.vpneta-guest-hero h1,
.vpneta-warm-hero h1,
.hero-card h1{
  color: #ffffff !important;
  text-shadow: 0 12px 45px rgba(96, 165, 250, .16);
}
.vpneta-guest-card,
.vpneta-main-key,
.vpneta-action,
.card,
.menu-btn,
.catalog-card,
.plan-card,
.auth-card,
.faq-item {
  background: rgba(15, 23, 42, .66) !important;
  border-color: rgba(148, 163, 255, .16) !important;
  color: #eef3ff !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(18px);
}
.vpneta-guest-card p,
.vpneta-main-key p,
.catalog-card__text,
.menu-btn__text,
.faq-answer {
  color: rgba(226, 232, 255, .72) !important;
}

.btn {
  background: linear-gradient(135deg, #4f46e5, #2563eb 52%, #06b6d4) !important;
  box-shadow: 0 18px 45px rgba(37, 99, 235, .32) !important;
}
.link-chip {
  background: rgba(15, 23, 42, .72) !important;
  border-color: rgba(147, 197, 253, .18) !important;
  color: #eef3ff !important;
}
.vpneta-main-key__value,
.vpneta-key-value,
.manual-key__value{
  background: rgba(2, 6, 23, .46) !important;
  border-color: rgba(148, 163, 255, .16) !important;
  color: #dbeafe !important;
}
.vpneta-location-chip {
  background: rgba(15, 23, 42, .66) !important;
  border-color: rgba(147, 197, 253, .18) !important;
  color: #e5edff !important;
}

@keyframes galaxyStarsDrift {
  from { background-position: 0 0, 33px 21px, 72px 48px; }
  to { background-position: 720px 360px, 913px 561px, 1220px 848px; }
}

@keyframes galaxyNebulaFloat {
  from { transform: rotate(-11deg) translate3d(-1%, -1%, 0) scale(1); }
  to { transform: rotate(-7deg) translate3d(1.5%, 1%, 0) scale(1.04); }
}

@media (max-width: 720px) {
  .vpneta-guest-hero::before,
  .vpneta-warm-hero::before,
  .hero-card::before {
    right: -120px;
    top: 16px;
    width: 260px;
    transform: none;
    opacity: .55;
  }
  .vpneta-guest-hero::after,
  .vpneta-warm-hero::after,
  .hero-card::after {
    right: -145px;
    top: -4px;
    width: 330px;
    transform: rotate(-18deg);
    opacity: .7;
  }}




.app-shell {
  position: relative;
  z-index: 1;
}



.scene-stack {
  position: fixed;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  overflow: hidden;
  /* Theme-aware base shown only until the WebGL ocean paints its first frame.
     Inherits --page-bg-1 from body[data-theme] (light in aurora-pearl,
     dark in night-silk) so there is no legacy dark flash on load. */
  background: var(--page-bg-1, #f3faf9);
}

.scene-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.scene-layer--birds {
  background: transparent;
}

/* Ocean canvas eases in over the themed base so the scene never pops in
   from a flat dark fill on first load. */
.scene-layer--ocean {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.scene-layer--ocean.is-ready {
  opacity: 1;
}


.bg-switch {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  background: rgba(8, 14, 28, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.5);
}

.bg-switch__btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(200, 215, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

.bg-switch__btn:hover { color: rgba(220, 230, 255, 0.95); }
.bg-switch__btn:active { transform: scale(0.92); }

.bg-switch__btn.is-active {
  background: rgba(var(--accent-rgb), 0.28);
  color: #fff;
}


body > * {
  position: relative;
  z-index: 1;
}

.start-pill {
  display: none !important;
}

.start-pill--ok {
  display: none !important;
}

.start-hero__actions .btn,
.start-hero__actions .btn-secondary {
  width: 100%;
}

.start-orbit-card,
.start-key-panel,
.start-steps,
.start-action-grid,
.start-location-strip {
  display: none !important;
}

.start-orbit-card {
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
}

.start-orbit-card__shine {
  position: absolute;
  inset: -60%;
  background:
    conic-gradient(from 210deg at 50% 50%,
      transparent,
      rgba(96,165,250,.2),
      rgba(168,85,247,.24),
      transparent 60%);
  animation: startOrbitSpin 18s linear infinite;
  opacity: .8;
}

.start-orbit-card__head {
  position: relative;
  z-index: 1;
}

.start-orbit-card__head span,
.start-key-panel__label {
  display: block;
  color: rgba(191,219,254,.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.start-orbit-card__head strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.start-orbit-card__head p {
  margin-top: 12px;
  color: rgba(226,232,255,.72);
}

.start-orbit-card__mock {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.start-orbit-card__mock div {
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(96,165,250,.16), rgba(168,85,247,.12)),
    rgba(255,255,255,.055);
  border: 1px solid rgba(148,163,255,.12);
}

.start-orbit-card__mock div:nth-child(2) {
  width: 82%;
}

.start-orbit-card__mock div:nth-child(3) {
  width: 62%;
}

.start-stats,
.start-key-panel__meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.start-stats div,
.start-key-panel__meta div {
  min-width: 0;
  border: 1px solid rgba(148,163,255,.14);
  border-radius: 18px;
  padding: 12px;
  background: rgba(2,6,23,.32);
}

.start-stats strong,
.start-key-panel__meta strong {
  display: block;
  color: #fff;
  font-size: 14px;
  word-break: break-word;
}

.start-stats span,
.start-key-panel__meta span {
  display: block;
  margin-top: 5px;
  color: rgba(226,232,255,.62);
  font-size: 12px;
}

.start-steps,
.start-action-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.start-step,
.start-action,
.start-location-strip {
  border: 1px solid rgba(148,163,255,.16);
  border-radius: 24px;
  background: rgba(15,23,42,.62);
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}

.start-step {
  padding: 18px;
}

.start-step span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.start-step strong,
.start-action strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.start-step p,
.start-action small {
  display: block;
  margin-top: 8px;
  color: rgba(226,232,255,.66);
  line-height: 1.48;
}

.start-action {
  width: 100%;
  min-height: 124px;
  padding: 18px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.start-action:hover {
  transform: translateY(-3px);
  border-color: rgba(147,197,253,.34);
  background: rgba(30,41,99,.58);
}

.start-action span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(59,130,246,.14);
  border: 1px solid rgba(147,197,253,.18);
}

.start-key-panel {
  padding: clamp(16px, 2.4vw, 22px);
}

.start-key-panel code,
.start-key-panel__empty {
  display: block;
  max-height: 168px;
  overflow: auto;
  word-break: break-all;
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 18px;
  background: rgba(2,6,23,.5);
  border: 1px solid rgba(148,163,255,.16);
  color: #dbeafe;
  font: 12px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.start-key-panel__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.start-location-strip {
  margin-top: 14px;
  padding: 16px;
}

.start-location-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(226,232,255,.72);
  font-weight: 900;
}

.start-location-strip__head strong {
  color: #fff;
}

.start-location-strip__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@keyframes startOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {

  .start-orbit-card,
  .start-key-panel {
    align-self: stretch;
  }

  .start-hero__actions .btn,
  .start-hero__actions .btn-secondary {
    width: 100%;
    min-width: 0;
  }

  .start-steps,
  .start-action-grid {
    grid-template-columns: 1fr;
  }}

@media (max-width: 560px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .start-stats,
  .start-key-panel__meta {
    grid-template-columns: 1fr;
  }

  .start-orbit-card__mock div {
    height: 42px;
  }}




.app-shell,
.app,
#overlayRoot,
.toast {
  position: relative;
  z-index: 1;
}

.account-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 40px 24px;
}

.account-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 0 0 16px;
  color: #fff;
}

.account-hero p {
  color: rgba(220, 230, 255, 0.75);
  font-size: 16px;
  max-width: 400px;
  margin: 0 0 32px;
}


.main-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(540px, calc(100% - 24px));
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  background: rgba(8, 14, 28, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.5);
  z-index: 50;
}


.account-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.account-header {
  margin-bottom: 24px;
}

.account-header h1 {
  font-size: 28px;
  margin: 0 0 0;
  color: #fff;
  text-align: left;
}

.account-header p {
  color: rgba(220, 230, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.account-section {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.account-section h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #fff;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-row:last-child {
  border-bottom: none;
}

.account-row__content {
  flex: 1;
}

.account-row__label {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.account-row__value {
  font-size: 14px;
  color: #fff;
  word-break: break-all;
}

.account-row__status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.account-row__status.verified {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.2);
}

.account-row__status.unverified {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(216, 180, 254, 0.2);
}

.account-verify-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-hint {
  font-size: 13px;
  color: rgba(220, 230, 255, 0.5);
  margin: 12px 0 0;
}

.section-hint {
  font-size: 14px;
  color: rgba(220, 230, 255, 0.6);
  margin: 0 0 16px;
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-item__head strong {
  font-size: 14px;
  color: #fff;
}

.badge-current {
  padding: 4px 8px;
  background: rgba(var(--accent-rgb), 0.2);
  color: #b4a0ff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.session-item__meta {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.5);
}

.btn-revoke {
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(252, 165, 165, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-revoke:hover {
  background: rgba(239, 68, 68, 0.15);
}

.account-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-logout {
  width: 100%;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(252, 165, 165, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

.empty-state {
  text-align: center;
  padding: 20px;
  color: rgba(220, 230, 255, 0.5);
  font-size: 14px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}


.account-content {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
}

.account-tabs__tab.is-active {
  color: #b4a0ff;
  border-bottom: 2px solid rgba(var(--accent-rgb), 0.8);
}

.account-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.invite-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.invite-header {
  margin-bottom: 32px;
}

.invite-header h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #fff;
}

.invite-header p {
  color: rgba(220, 230, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.invite-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.invite-block {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.invite-label {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.invite-link-wrapper {
  display: flex;
  gap: 8px;
}

.invite-link-field {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(220, 230, 255, 0.8);
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.btn-copy-small {
  padding: 10px 14px;
  background: rgba(var(--accent-rgb), 0.2);
  color: #b4a0ff;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-copy-small:hover {
  background: rgba(var(--accent-rgb), 0.3);
}

.invite-info {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.invite-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #fff;
}

.invite-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite-steps li {
  padding-left: 28px;
  position: relative;
  color: rgba(220, 230, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.invite-steps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86efac;
  font-weight: 700;
  font-size: 14px;
}


.invite-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.invite-stat {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: center;
}

.invite-stat__value {
  font-size: 32px;
  font-weight: 700;
  color: #b4a0ff;
  margin-bottom: 4px;
}

.invite-stat__label {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2px;
}

.invite-stat__unit {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.6);
}

.invite-section {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.invite-section h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #fff;
}

.invite-section__desc {
  color: rgba(220, 230, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.invite-steps-detailed {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step-counter;
}

.invite-steps-detailed li {
  counter-increment: step-counter;
  padding-left: 32px;
  position: relative;
}

.invite-steps-detailed li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.2);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: #b4a0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.invite-step__title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.invite-step__desc {
  font-size: 13px;
  color: rgba(220, 230, 255, 0.75);
  line-height: 1.4;
}

.invite-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.invite-link-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.invite-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.invite-footer__note {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}


.account-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.account-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 8px;
}

.account-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.3);
  border: 2px solid rgba(180, 160, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #b4a0ff;
  flex-shrink: 0;
}

.account-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-profile-username {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.account-profile-email {
  font-size: 13px;
  color: rgba(220, 230, 255, 0.75);
}

.account-info-section {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.account-info-row:last-child {
  border-bottom: none;
}

.account-info-label {
  font-size: 14px;
  color: rgba(220, 230, 255, 0.75);
}

.account-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.account-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-section h2 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.account-language-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-lang-option {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: rgba(220, 230, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.account-lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.account-lang-option.is-active {
  background: rgba(var(--accent-rgb), 0.3);
  color: #b4a0ff;
  border-color: rgba(var(--accent-rgb), 0.3);
}

.account-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.account-link-btn {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: rgba(220, 230, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  display: block;
  text-decoration: none;
}

.account-link-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.account-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}






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

@keyframes mainNavEnter {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.main-nav {
  animation: mainNavEnter 0.3s ease-out;
}



.btn,
.btn-cosmic,
.btn-ghost,
button[type="button"],
button[type="submit"] {
  transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  position: relative;
}

.btn:active,
.btn-cosmic:active,
.btn-ghost:active,
button[type="button"]:active,
button[type="submit"]:active {
  transform: scale(0.98);
}

.btn:active::before,
.btn-cosmic:active::before,
.btn-ghost:active::before {
  transform: scale(1.05);
}



#screenRoot {
  transition: opacity 0.16s ease;
}

#screenRoot.is-exiting {
  opacity: 0;
}





.minimal-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 24px 18px;
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
}

.minimal-hero h1 {
  color: #fff;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.minimal-hero p {
  color: rgba(210, 222, 255, 0.82);
  font-size: clamp(14px, 2vw, 17px);
  max-width: 560px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

.minimal-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}


.minimal-hero--landing {
  justify-content: center;
  min-height: calc(100dvh - 120px);
  padding: 40px 24px;
}

.minimal-hero--landing h1 {
  font-size: clamp(34px, 7vw, 60px);
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55), 0 0 44px rgba(0, 0, 0, .35);
}

.minimal-hero--landing p {
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 36px;
}


.minimal-hero--landing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(140vw, 1240px);
  height: min(92vh, 760px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(3, 8, 20, .58),
    rgba(3, 8, 20, .30) 46%,
    transparent 72%
  );
  filter: blur(8px);
}


.minimal-card {
  background: rgba(8, 14, 28, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  margin: 12px auto;
  max-width: 680px;
}


.screen {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 8px;
}

.screen .stack {
  display: grid;
  gap: 12px;
}

.minimal-card h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}


.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin: 0 auto;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

.action-card:hover {
  border-color: rgba(124, 150, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.action-card:active { transform: scale(0.99); }

.action-card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.22);
  color: #cdd7ff;
  font-size: 18px;
}

.action-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.action-card__body strong { color: #fff; font-size: 15px; font-weight: 700; }
.action-card__body span { color: rgba(210, 222, 255, 0.6); font-size: 13px; }

.minimal-card h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.minimal-card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.minimal-card p {
  color: rgba(200, 215, 255, 0.65);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.minimal-card p:last-child {
  margin-bottom: 0;
}


.minimal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}


.btn-cosmic {
  width: 100%;
  max-width: 360px;
  padding: 16px 32px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.85);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(180, 160, 255, 0.3);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-cosmic:hover {
  transform: translateY(-2px);
  background: rgba(var(--accent-rgb), 1);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.6), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.btn-cosmic:active {
  transform: scale(0.98);
}

.btn-ghost {
  width: 100%;
  max-width: 360px;
  padding: 14px 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(220, 230, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(220, 230, 255, 1);
}

.btn-ghost:active {
  background: rgba(255, 255, 255, 0.08);
}




.minimal-card {
  background: rgba(8, 14, 28, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin: 16px auto;
  max-width: 600px;
  color: rgba(220, 230, 255, 0.9);
  transition: all 0.2s ease;
}

.minimal-card:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.minimal-card h2 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.minimal-card h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.minimal-card p {
  color: rgba(200, 215, 255, 0.7);
  margin: 0 0 12px;
  line-height: 1.55;
}

.minimal-card strong {
  color: #ffffff;
  font-weight: 700;
}


.minimal-card--info {
  display: grid;
  gap: 16px;
}

.minimal-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.minimal-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.minimal-card__label {
  color: rgba(200, 215, 255, 0.55);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.minimal-card__value {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}


.minimal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.minimal-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.minimal-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.minimal-list li::before {
  content: "•";
  color: rgba(var(--accent-rgb), 0.8);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}


.minimal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.minimal-input::placeholder {
  color: rgba(200, 215, 255, 0.4);
}

.minimal-input:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.minimal-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}


.minimal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.2);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: rgba(200, 215, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.minimal-badge--active {
  background: rgba(var(--accent-rgb), 0.4);
  border-color: rgba(var(--accent-rgb), 0.5);
  color: #ffffff;
}


.status-strip {
  width: 100%;
}

.status-strip--active {
  border-color: rgba(74, 222, 128, 0.2) !important;
  background: rgba(34, 197, 94, 0.08) !important;
}

.status-strip--inactive {
  border-color: rgba(255, 255, 255, 0.08) !important;
}


.main-nav__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: rgba(200, 215, 255, 0.6);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 15px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.main-nav__tab svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke-width: 1.9;
}

.main-nav__tab:hover {
  color: rgba(220, 230, 255, 0.95);
}

.main-nav__tab:active {
  transform: scale(0.94);
}

.main-nav__tab.is-active {
  background: rgba(var(--accent-rgb), 0.28);
  color: #ffffff;
}




@media (max-width: 720px) {
  .minimal-hero {
    padding: 40px 16px 32px;
  }

  .minimal-hero h1 {
    font-size: 28px;
  }

  .minimal-hero p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .minimal-card {
    padding: 20px;
    margin: 12px auto;
  }

  .main-nav {
    padding: 10px 12px;
    gap: 8px;
  }

  .main-nav__tab {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
  }

  .btn-cosmic,
  .btn-ghost {
    max-width: 100%;
  }}
/* ===================== Full-page login (Alius-style) ===================== */
body[data-active-route="login"] .main-nav,
body[data-active-route="login"] .app-topbar,
body[data-active-route="login"] .topbar,
body[data-active-route="login"] .auth-launcher { display: none !important; }
body[data-active-route="login"] #screenRoot { padding-bottom: 0 !important; }

/* ===================== Login screen (production, theme-aware) =====================
   Uses the shared theme tokens (--surface*, --text-*, --line, --accent*) so it
   reads correctly in both aurora-pearl (light) and night-silk (dark). */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px calc(env(safe-area-inset-bottom) + 32px);
}
.login-inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.login-logo {
  width: 60px; height: 60px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 800; color: var(--button-primary-text, #fff);
  background: var(--button-primary-bg, linear-gradient(135deg, var(--accent), var(--accent-2)));
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), .34);
}
.login-card { width: 100%; padding: 24px; }
.login-card__head { margin-bottom: 18px; text-align: center; }
.login-card__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--text-main); }
.login-card__head p { font-size: 13.5px; line-height: 1.45; color: var(--text-soft, var(--muted)); margin: 0; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-input {
  width: 100%;
  background: var(--surface-soft, rgba(255,255,255,.5));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 15px; color: var(--text-main);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-input::placeholder { color: var(--text-muted, var(--muted)); }
.login-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
  background: var(--surface, rgba(255,255,255,.7));
}
.login-input--code { text-align: center; letter-spacing: .5em; font-weight: 700; font-size: 22px; }
.login-submit { width: 100%; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.login-divider span { flex: 1; height: 1px; background: var(--line); }
.login-divider em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-muted, var(--muted)); text-transform: uppercase; letter-spacing: .08em; }
.login-tg-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #2AABEE;
  background: rgba(42,171,238,.12);
  border: 1px solid rgba(42,171,238,.30);
  transition: background .15s, transform .1s;
}
.login-tg-btn:hover { background: rgba(42,171,238,.20); }
.login-tg-btn:active { transform: scale(.98); }
.login-terms { font-size: 11.5px; line-height: 1.5; color: var(--text-muted, var(--muted)); text-align: center; margin: 16px 0 0; }

/* Remembered-session block — sits above the sign-in card. */
.login-resume {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.login-resume__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.login-session-card {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: 18px; cursor: pointer; text-align: left;
  background: var(--surface-strong, rgba(255,255,255,.9));
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(var(--accent-rgb), .12);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.login-session-card:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(var(--accent-rgb), .20); border-color: rgba(var(--accent-rgb), .4); }
.login-session-card:active { transform: scale(.99); }
.login-session-card__avatar {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px; display: grid; place-items: center;
  font-size: 19px; font-weight: 800;
  color: var(--button-primary-text, #fff);
  background: var(--button-primary-bg, linear-gradient(135deg, var(--accent), var(--accent-2)));
}
.login-session-card__body { flex: 1; min-width: 0; }
.login-session-card__label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-muted, var(--muted)); }
.login-session-card__email { display: block; font-size: 15px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 1px 0; }
.login-session-card__hint { display: block; font-size: 12px; color: var(--text-soft, var(--muted)); }
.login-session-card__chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.login-resume__switch {
  background: none; border: 0; cursor: pointer; padding: 2px 0;
  font-size: 13px; font-weight: 600; color: var(--text-soft, var(--muted));
  transition: color .15s;
}
.login-resume__switch:hover { color: var(--accent); }
.login-code-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 12px; }
.login-link {
  background: none; border: 0; cursor: pointer; padding: 4px 0;
  font-size: 13px; font-weight: 600; color: var(--text-soft, var(--muted));
  transition: color .15s;
}
.login-link:disabled { color: var(--text-muted, var(--muted)); cursor: default; font-weight: 500; }
.login-link:not(:disabled):hover { color: var(--accent); }

/* ===================== Connect (Happ deep-link) card ===================== */

/* ============================================================
   Tab redesign — dashboard / plans / account / invite (v_tabs)
   ============================================================ */
.dash, .plans, .acct, .invite { max-width: 560px; margin: 0 auto; padding: 8px 20px 28px; }
.dash > * + *, .acct > * + *, .invite > * + * { margin-top: 14px; }

/* Shared card shell */
.dash-card, .acct-card {
  background: rgba(8, 14, 28, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px;
}
.dash-card__head, .acct-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px;
}
.dash-card__head h3, .acct-card__head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.dash-card__head p { margin: 4px 0 0; font-size: 13px; color: rgba(200,215,255,.55); }
.dash-card__cta, .acct-card__cta { display: block; width: 100%; margin-top: 16px; text-align: center; text-decoration: none; }

/* ---- Home dashboard ---- */
.dash-hero { position: relative; overflow: hidden; }
.dash-hero.is-active { border-color: rgba(52,227,160,.28); }
.dash-hero.is-inactive { border-color: rgba(239,68,68,.28); }
.dash-hero__badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
  color: #34e3a0; background: rgba(52,227,160,.12);
}
.dash-hero.is-inactive .dash-hero__badge { color: #f9a8a8; background: rgba(239,68,68,.12); }
.dash-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.dash-hero__metric span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: rgba(200,215,255,.45); }
.dash-hero__metric strong { display: block; margin-top: 5px; font-size: 17px; font-weight: 700; color: #fff; }
.dash-hero__metric--days strong { color: var(--accent-soft); }
.dash-hero__metric--days small { font-size: 12px; font-weight: 600; color: rgba(200,215,255,.5); }
.dash-hero__cta { margin-top: 18px; width: 100%; }

.dash-card--pending { border-color: rgba(251,191,36,.28); }
.dash-card--pending .dash-card__head h3 { color: #fbbf24; }

/* Key row (also reused in invite) */
.dash-key {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 6px 6px 6px 14px;
}
.dash-key__value {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: rgba(220,230,255,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-key__copy {
  flex: none; border: 0; cursor: pointer; border-radius: 9px; padding: 9px 14px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 58%, var(--accent-2));
}
.dash-key__copy:active { transform: scale(.97); }

.dash-loc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-loc__item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.dash-loc__item:last-child { border-bottom: 0; }
.dash-loc__flag { font-size: 20px; }
.dash-loc__name { flex: 1; font-size: 14px; font-weight: 600; color: rgba(230,238,255,.92); }
.dash-loc__status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.dash-loc__status.is-online { color: #34e3a0; background: rgba(52,227,160,.14); }
.dash-loc__status.is-pending { color: #fbbf24; background: rgba(251,191,36,.14); }
.dash-empty, .acct-empty { margin: 0; font-size: 13px; color: rgba(200,215,255,.5); }

.dash-trial-pill { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-soft); background: rgba(var(--accent-rgb),.16); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.dash-features { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.dash-feature { display: flex; align-items: center; gap: 14px; background: rgba(8,14,28,.3); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; }
.dash-feature__icon { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(var(--accent-rgb),.14); }
.dash-feature strong { display: block; font-size: 14px; color: #fff; }
.dash-feature span { display: block; font-size: 12px; color: rgba(200,215,255,.55); margin-top: 2px; }

.dash-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 14px; background: rgba(8,14,28,.34); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 16px 18px; }
.dash-status__cell span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: rgba(200,215,255,.45); }
.dash-status__cell strong { display: block; margin-top: 4px; font-size: 15px; color: #fff; }

/* ---- Segmented pills (plans + prefs) ---- */
.seg-pill-group, .plans-seg { display: flex; gap: 8px; }
.plans-seg { margin-bottom: 12px; flex-wrap: wrap; }
.plans-seg--duration { margin-bottom: 20px; }
.seg-pill {
  flex: 1; min-width: 0; cursor: pointer; border-radius: 12px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(16,24,44,.45);
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: all .16s;
  color: rgba(220,230,255,.7);
}
.seg-pill strong { font-size: 14px; font-weight: 700; }
.seg-pill small { font-size: 11px; color: rgba(200,215,255,.5); }
.seg-pill em { font-size: 10px; font-style: normal; font-weight: 700; color: #34e3a0; }
.seg-pill:hover { border-color: rgba(255,255,255,.18); }
.seg-pill.is-active { border-color: rgba(var(--accent-rgb),.55); background: rgba(var(--accent-rgb),.16); color: #fff; box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.seg-pill-group { flex: none; }
.seg-pill-group .seg-pill { flex: none; min-width: 52px; flex-direction: row; padding: 8px 14px; }

/* ============================================================
   Plans / paywall — production variant (pl-* — collision-free)
   ============================================================ */
.pl { max-width: 460px; margin: 0 auto; padding: 4px 20px 32px; }
.pl-head { text-align: center; padding: 18px 8px 6px; }
.pl-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.pl-head p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: rgba(200,215,255,.6); }

.pl-promo {
  display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 13px 15px;
  border-radius: 14px; border: 1px solid rgba(var(--accent-rgb),.32);
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.2), rgba(110,180,203,.1));
}
.pl-promo__icon { font-size: 16px; line-height: 1.3; }
.pl-promo strong { display: block; font-size: 13px; color: #fff; }
.pl-promo span { display: block; font-size: 12px; color: rgba(220,230,255,.72); line-height: 1.45; margin-top: 2px; }

/* product / tier segmented control */
.pl-tiers { display: flex; gap: 6px; margin: 20px 0 0; padding: 5px; border-radius: 16px; background: rgba(8,14,28,.4); border: 1px solid rgba(255,255,255,.08); }
.pl-tier { flex: 1; min-width: 0; cursor: pointer; border: 0; background: transparent; border-radius: 12px; padding: 10px 8px; color: rgba(200,215,255,.6); transition: all .16s; }
.pl-tier strong { display: block; font-size: 14px; font-weight: 700; }
.pl-tier small { display: block; font-size: 11px; margin-top: 1px; opacity: .8; }
.pl-tier.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-3) 60%, var(--accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb),.35); }

/* duration option list (radio cards) */
.pl-options { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; }
.pl-opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; cursor: pointer; text-align: left;
  padding: 15px 16px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(8,14,28,.36); transition: border-color .16s, background .16s, transform .1s;
}
.pl-opt:hover { border-color: rgba(255,255,255,.2); }
.pl-opt:active { transform: scale(.99); }
.pl-opt.is-active { border-color: rgba(var(--accent-rgb),.7); background: rgba(var(--accent-rgb),.12); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.pl-opt__radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); display: grid; place-items: center; transition: border-color .16s; }
.pl-opt.is-active .pl-opt__radio { border-color: var(--accent-2); }
.pl-opt__radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); transform: scale(0); transition: transform .16s; }
.pl-opt.is-active .pl-opt__radio::after { transform: scale(1); }
.pl-opt__main { flex: 1; min-width: 0; }
.pl-opt__label { display: block; font-size: 16px; font-weight: 700; color: #fff; }
.pl-opt__sub { display: block; font-size: 12px; color: rgba(200,215,255,.55); margin-top: 2px; }
.pl-opt__price { flex: none; text-align: right; }
.pl-opt__amount { display: block; font-size: 17px; font-weight: 800; color: #fff; }
.pl-opt__save { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 800; color: #34e3a0; background: rgba(52,227,160,.14); padding: 2px 7px; border-radius: 999px; }
.pl-opt__best { position: absolute; top: -9px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #151229; background: linear-gradient(135deg, var(--accent-3), #ffe6a8); padding: 3px 9px; border-radius: 999px; }

/* features + summary */
.pl-features { list-style: none; margin: 22px 0 0; padding: 18px 18px; border-radius: 16px; background: rgba(8,14,28,.3); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 12px; }
.pl-features li { position: relative; padding-left: 28px; font-size: 14px; color: rgba(225,233,255,.88); }
.pl-features li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: rgba(52,227,160,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334e3a0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

.pl-current { margin: 16px 0 0; text-align: center; font-size: 12px; font-weight: 700; color: #34e3a0; }
.pl-cta { width: 100%; margin-top: 18px; }
.pl-note { margin: 12px 0 0; text-align: center; font-size: 11px; line-height: 1.5; color: rgba(200,215,255,.45); }

/* ---- Account ---- */
.acct-profile { display: flex; align-items: center; gap: 16px; }
.acct-avatar { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.acct-profile__info h2 { margin: 0; font-size: 19px; color: #fff; }
.acct-profile__info p { margin: 3px 0 0; font-size: 13px; color: rgba(200,215,255,.6); }
.acct-tag { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 600; color: rgba(200,215,255,.7); background: rgba(255,255,255,.06); padding: 3px 9px; border-radius: 8px; }
.acct-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.acct-badge.is-active { color: #34e3a0; background: rgba(52,227,160,.14); }
.acct-badge.is-inactive { color: #f9a8a8; background: rgba(239,68,68,.12); }
.acct-rows { display: flex; flex-direction: column; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.acct-row:last-child { border-bottom: 0; }
.acct-row span { font-size: 13px; color: rgba(200,215,255,.55); }
.acct-row strong { font-size: 14px; color: #fff; font-weight: 600; }
.acct-row--control { padding: 4px 0; }
.acct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acct-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.acct-list__item:last-child { border-bottom: 0; }
.acct-list__item strong { display: block; font-size: 14px; color: #fff; }
.acct-list__item span { display: block; font-size: 12px; color: rgba(200,215,255,.5); margin-top: 2px; }
.acct-revoke { flex: none; cursor: pointer; border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.1); color: #f9a8a8; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 9px; }
.acct-revoke:active { transform: scale(.97); }
.acct-actions { margin-top: 18px; }
.acct-logout { width: 100%; color: #f9a8a8; border-color: rgba(239,68,68,.3); }
.acct-logout:hover { background: rgba(239,68,68,.1); }

/* ---- Invite ---- */
.invite-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.invite-stat { text-align: center; padding: 18px; border-radius: 16px; border: 1px solid rgba(var(--accent-rgb),.22); background: rgba(var(--accent-rgb),.1); }
.invite-stat strong { display: block; font-size: 32px; font-weight: 800; color: var(--accent-soft); }
.invite-stat span { display: block; margin-top: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: rgba(200,215,255,.55); }
.invite-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.invite-steps li { display: flex; align-items: flex-start; gap: 14px; }
.invite-steps__num { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: rgba(var(--accent-rgb),.25); }
.invite-steps strong { display: block; font-size: 14px; color: #fff; }
.invite-steps span { display: block; font-size: 12px; color: rgba(200,215,255,.55); margin-top: 2px; }

/* ============================================================
   Full-functionality tabs additions (tabs_v4)
   ============================================================ */
/* Home: connect card with QR */
.dash-connect { display: flex; gap: 16px; align-items: stretch; }
.dash-connect__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.dash-qr { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dash-qr img { width: 104px; height: 104px; border-radius: 12px; background: #fff; padding: 6px; box-sizing: border-box; }
.dash-qr span { font-size: 10px; text-align: center; color: rgba(200,215,255,.5); line-height: 1.3; }
@media (max-width: 480px) { .dash-connect { flex-direction: column; align-items: center; } .dash-qr { width: 120px; } .dash-qr img { width: 120px; height: 120px; } }

/* Home: traffic bar */
.dash-traffic__val { font-size: 13px; font-weight: 700; color: var(--accent-soft); }
.dash-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.dash-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s ease; }
.dash-bar.is-high i { background: linear-gradient(90deg, #fbbf24, #ef4444); }
.dash-traffic__sub { margin: 8px 0 0; font-size: 12px; color: rgba(200,215,255,.5); }

/* Home: devices summary row (clickable) */
.dash-devices { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.dash-devices__info { display: flex; align-items: center; gap: 14px; }
.dash-devices__icon { font-size: 18px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(var(--accent-rgb), .14); color: var(--accent-soft); }
.dash-devices__info strong { display: block; font-size: 14px; color: #fff; }
.dash-devices__info span { display: block; font-size: 12px; color: rgba(200,215,255,.55); margin-top: 2px; }
.dash-devices__manage { font-size: 13px; font-weight: 600; color: var(--accent-soft); }


/* Plans: trial card + FAQ */
.pl-trial { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin: 16px 0 4px; padding: 16px; border-radius: 16px; border: 1px solid rgba(var(--accent-rgb), .3); background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(246,197,96,.08)); }
.pl-trial strong { display: block; font-size: 15px; color: #fff; }
.pl-trial span { display: block; font-size: 12px; color: rgba(220,230,255,.7); margin-top: 2px; }
.pl-trial .btn-cosmic { width: auto; flex: none; padding: 12px 20px; font-size: 14px; }
.pl-faq { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.pl-faq__item { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(8,14,28,.3); padding: 0 16px; }
.pl-faq__item summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; color: #fff; list-style: none; }
.pl-faq__item summary::-webkit-details-marker { display: none; }
.pl-faq__item summary::after { content: "+"; float: right; color: var(--accent-soft); font-weight: 700; }
.pl-faq__item[open] summary::after { content: "−"; }
.pl-faq__item p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: rgba(200,215,255,.7); }

/* Cap.js captcha widget on auth screens. The popover is always dark, so the
   widget gets fixed legible colors (not theme vars that can blend in), a
   min-height so its "Confirm you are not a robot" status text can never be
   clipped, and clear spacing so it reads as its own step above the button. */
.login-cap-wrap { display: block; margin: 4px 0 2px; }
.login-cap {
  display: block; width: 100%; margin: 0;
  --cap-background: rgba(255,255,255,.10);
  --cap-border-color: rgba(255,255,255,.22);
  --cap-border-radius: 12px;
  --cap-color: #eef3ff;
  --cap-checkbox-background: rgba(255,255,255,.16);
  --cap-checkbox-border: rgba(255,255,255,.35);
}
.login-cap:not(:defined) { min-height: 48px; border: 1px dashed rgba(255,255,255,.22); border-radius: 12px; }

/* ===================================================================
   Install / Connect tab (cx-*) — production two-step flow, theme-aware.
   Uses shared tokens (--surface*, --text-*, --line, --accent*,
   --button-primary-*) so it reads correctly in both themes.
   =================================================================== */
.cx { max-width: 600px; margin: 0 auto; padding: 6px 2px 28px; }

/* step indicator 1 — 2 */
.cx-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 22px; }
.cx-step {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted, var(--muted));
  background: var(--surface-soft, rgba(255,255,255,.5));
  border: 1px solid var(--line);
  transition: all .3s;
}
.cx-step.is-active { color: var(--button-primary-text, #fff); background: var(--button-primary-bg, var(--accent)); border-color: transparent; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .3); }
.cx-step.is-done { color: #fff; background: var(--success, #3b8774); border-color: transparent; }
.cx-step-line { width: 36px; height: 2px; border-radius: 2px; background: var(--line); transition: background .3s; }
.cx-step-line.is-done { background: var(--success, #3b8774); }

/* heading */
.cx-head { text-align: center; margin-bottom: 18px; }
.cx-head h1 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--text-main); }
.cx-head p { font-size: 13.5px; line-height: 1.45; color: var(--text-soft, var(--muted)); margin: 7px 0 0; }

/* device grid */
.cx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 380px) { .cx-grid { grid-template-columns: repeat(2, 1fr); } }
.cx-dev {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 8px; cursor: pointer; text-align: center;
  border-radius: 16px;
  background: var(--surface, rgba(255,255,255,.7));
  border: 1px solid var(--line);
  transition: transform .12s ease, border-color .18s, box-shadow .18s, background .18s;
  animation: cxPop .35s ease both;
}
.cx-dev:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--accent-rgb), .14); }
.cx-dev:active { transform: scale(.97); }
.cx-dev.is-active { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .08); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); }
.cx-dev__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--text-soft, var(--muted));
  background: var(--surface-soft, rgba(255,255,255,.5));
  transition: color .18s, background .18s;
}
.cx-dev.is-active .cx-dev__icon { color: var(--button-primary-text, #fff); background: var(--button-primary-bg, var(--accent)); }
.cx-dev__label { font-size: 12.5px; font-weight: 600; color: var(--text-soft, var(--muted)); transition: color .18s; }
.cx-dev.is-active .cx-dev__label { color: var(--text-main); }
.cx-dev__check {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: var(--accent);
  opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s;
}
.cx-dev.is-active .cx-dev__check { opacity: 1; transform: scale(1); }
@keyframes cxPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* "other apps & guides" link card */
.cx-more {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 14px;
  border-radius: 14px; cursor: pointer; text-align: left;
  background: var(--surface-soft, rgba(255,255,255,.5));
  border: 1px solid var(--line);
  transition: border-color .15s, background .15s, transform .1s;
}
.cx-more:hover { border-color: rgba(var(--accent-rgb), .4); }
.cx-more:active { transform: scale(.99); }
.cx-more__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), .12); flex-shrink: 0; }
.cx-more__tx { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text-main); }
.cx-more__ch { color: var(--text-muted, var(--muted)); flex-shrink: 0; }

/* continue button */
.cx-continue {
  width: 100%; border: 0; cursor: pointer;
  padding: 15px; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  color: var(--button-primary-text, #fff);
  background: var(--button-primary-bg, linear-gradient(135deg, var(--accent), var(--accent-2)));
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), .3);
  transition: transform .12s, opacity .2s, box-shadow .2s;
}
.cx-continue:hover { box-shadow: 0 16px 36px rgba(var(--accent-rgb), .4); }
.cx-continue:active { transform: scale(.98); }
.cx-continue:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* cards */
.cx-card {
  background: var(--surface, rgba(255,255,255,.7));
  border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}
.cx-card__label { font-size: 12.5px; font-weight: 600; color: var(--text-soft, var(--muted)); margin: 0; }
.cx-section-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted, var(--muted)); margin: 18px 4px 10px; }

/* connect (Happ) card */
.cx-connect__head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.cx-connect__zap { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: var(--button-primary-text, #fff); background: var(--button-primary-bg, var(--accent)); }
.cx-connect__title { font-size: 15px; font-weight: 700; margin: 0; color: var(--text-main); }
.cx-connect__sub { font-size: 12.5px; color: var(--text-soft, var(--muted)); margin: 2px 0 0; }
.cx-btn-primary {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border: 0; border-radius: 13px; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 700;
  color: var(--button-primary-text, #fff);
  background: var(--button-primary-bg, linear-gradient(135deg, var(--accent), var(--accent-2)));
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), .28);
  transition: transform .1s, box-shadow .2s;
}
.cx-btn-primary:hover { box-shadow: 0 14px 32px rgba(var(--accent-rgb), .38); }
.cx-btn-primary:active { transform: scale(.98); }
.cx-hint { font-size: 12px; color: var(--text-muted, var(--muted)); text-align: center; margin: 10px 0 0; }

/* store install button */
.cx-store {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px;
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--text-main);
  background: var(--surface-soft, rgba(255,255,255,.5)); border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.cx-store:hover { border-color: rgba(var(--accent-rgb), .4); }
.cx-store svg { color: var(--accent); }

/* QR */
.cx-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 4px; }
.cx-qr img { width: 148px; height: 148px; border-radius: 14px; background: #fff; padding: 8px; box-sizing: border-box; box-shadow: var(--shadow-soft); }
.cx-qr span { font-size: 11.5px; color: var(--text-muted, var(--muted)); }

/* copyable subscription URL */
.cx-sublink { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 11px; background: var(--surface-soft, rgba(255,255,255,.5)); border: 1px solid var(--line); }
.cx-sublink__url { flex: 1; min-width: 0; font-size: 11px; font-family: ui-monospace, Menlo, monospace; color: var(--text-muted, var(--muted)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-sublink__copy { flex-shrink: 0; cursor: pointer; padding: 7px 13px; border-radius: 9px; font-size: 11.5px; font-weight: 700; color: var(--accent); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .22); transition: background .15s; }
.cx-sublink__copy:hover { background: rgba(var(--accent-rgb), .18); }

/* numbered step card */
.cx-step-card { display: flex; align-items: flex-start; gap: 14px; }
.cx-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--button-primary-text, #fff); background: var(--button-primary-bg, var(--accent)); margin-top: 1px; }
.cx-step-card p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-main); }

/* import into other clients */
.cx-clients__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cx-client { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-soft, rgba(255,255,255,.5)); text-decoration: none; transition: border-color .16s, background .16s; }
.cx-client:hover { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .08); }
.cx-client span { font-size: 14px; font-weight: 600; color: var(--text-main); }
.cx-client em { font-size: 11px; font-style: normal; font-weight: 700; color: var(--accent); }

/* empty-state (no key yet) */
.cx-empty { text-align: center; }
.cx-empty__title { font-size: 15px; font-weight: 700; color: var(--text-main); margin: 0 0 4px; }
.cx-empty__sub { font-size: 13px; color: var(--text-soft, var(--muted)); margin: 0 0 14px; line-height: 1.45; }

/* troubleshooting */
.cx-tshoot { margin: 4px 0 0; }
.cx-tshoot summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-soft, var(--muted)); padding: 12px 4px; list-style: none; display: flex; align-items: center; gap: 8px; }
.cx-tshoot summary::-webkit-details-marker { display: none; }
.cx-tshoot[open] summary { color: var(--text-main); }
.cx-tshoot ul { margin: 0 0 10px; padding: 0 0 0 18px; }
.cx-tshoot li { font-size: 13px; line-height: 1.5; color: var(--text-soft, var(--muted)); margin-bottom: 6px; }

/* back link */
.cx-back { display: block; margin: 18px auto 0; background: none; border: 0; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-soft, var(--muted)); transition: color .15s; }
.cx-back:hover { color: var(--accent); }

/* ===================================================================
   Polish pass — palette-driven card surfaces, stronger text contrast,
   and tighter vertical rhythm so tabs fit better on screen. Plain-class
   selectors so .is-active / accent states keep their own highlight.
   =================================================================== */

/* card surfaces follow the palette (light in aurora-pearl, dark in night-silk) */
.minimal-card, .dash-card, .acct-card, .dash-status, .dash-feature,
.pl-opt, .pl-features, .pl-faq__item {
  background: var(--surface);
  border-color: var(--line);
}
.minimal-card, .dash-card, .acct-card { box-shadow: var(--shadow-soft); }
.minimal-card:hover, .dash-card:hover { background: var(--surface-strong); border-color: var(--line); transform: none; }

/* inner control surfaces */
.dash-key, .pl-tiers, .seg-pill { background: var(--surface-soft); border-color: var(--line); }

/* primary text — high contrast */
.minimal-card h2, .minimal-card h3, .minimal-card h4, .minimal-card strong,
.dash-card h3, .dash-card__head h3, .dash-status__cell strong, .dash-hero__metric strong,
.dash-loc__name, .dash-feature strong, .acct-card h3,
.pl-opt__label, .pl-opt__amount, .seg-pill strong { color: var(--text-main); }

/* secondary text */
.minimal-card p, .dash-card p, .dash-card__head p, .acct-card p,
.pl-features li, .dash-key__value, .dash-feature span { color: var(--text-soft); }

/* muted labels — raised contrast vs the old faint values */
.dash-status__cell span, .dash-hero__metric span, .dash-hero__metric--days small,
.pl-opt__sub, .pl-note, .dash-empty, .acct-empty, .seg-pill small { color: var(--text-muted); }

/* ---- density: tighter vertical rhythm ---- */
.minimal-card { padding: 16px; margin: 10px auto; }
.dash-card, .acct-card { padding: 16px; }
.dash > * + *, .acct > * + *, .invite > * + * { margin-top: 10px; }
.dash-status { padding: 14px 16px; gap: 12px; }
.minimal-hero { padding: 14px 20px 8px; }
.minimal-hero h1 { margin-bottom: 8px; }
.minimal-hero p { margin-bottom: 12px; }
.minimal-hero--landing { padding: 26px 22px; min-height: auto; }
.minimal-hero--landing p { margin-bottom: 22px; }
.cx-card { padding: 16px; margin-bottom: 10px; }
.cx-head { margin-bottom: 14px; }
.cx-section-label { margin: 14px 4px 8px; }
.pl-features { margin-top: 16px; padding: 16px; }
.pl-options { margin-top: 16px; }

/* ===================================================================
   Referral / Invite tab (iv-*) — production, theme-aware.
   =================================================================== */
.iv-hero {
  text-align: center; border-radius: 20px; padding: 22px 20px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .05));
  border: 1px solid rgba(var(--accent-rgb), .28);
}
.iv-hero__badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: rgba(var(--accent-rgb), .14); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.iv-hero h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; color: var(--text-main); }
.iv-hero h1 em { font-style: normal; color: var(--accent); }
.iv-hero p { font-size: 13.5px; line-height: 1.5; color: var(--text-soft); margin: 0; }
.iv-hero p strong { color: var(--text-main); font-weight: 700; }

.iv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.iv-stat { text-align: center; padding: 14px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.iv-stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--text-main); line-height: 1; }
.iv-stat span { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 5px; }
.iv-stat--accent strong { color: var(--accent); }

.iv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.iv-steps li { display: flex; gap: 13px; align-items: flex-start; }
.iv-steps__num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--button-primary-text, #fff); background: var(--button-primary-bg, var(--accent)); }
.iv-steps li > div { flex: 1; min-width: 0; }
.iv-steps strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-main); }
.iv-steps span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--text-soft); margin-top: 2px; }

.iv-rules { margin-top: 2px; }

/* ===================================================================
   Contrast fix v2 — flip remaining in-card text to theme tokens so the
   light theme has no white-on-white (and dark stays light-on-dark).
   Accent / gradient / status colors are intentionally left untouched.
   =================================================================== */

/* container default text (safety net for anything not listed below) */
.dash-status, .dash-feature, .pl-opt, .pl-features, .pl-faq__item, .pl-trial { color: var(--text-soft); }

/* primary text on cards */
.acct-profile__info h2, .acct-row strong, .acct-list__item strong,
.dash-devices__info strong, .pl-trial strong, .pl-promo strong,
.pl-faq__item summary { color: var(--text-main); }

/* secondary text on cards */
.acct-profile__info p, .acct-list__item span, .dash-devices__info span,
.dash-traffic__sub, .pl-trial span, .seg-pill { color: var(--text-soft); }

/* muted labels on cards */
.acct-row span, .acct-tag, .dash-qr span, .dash-connect .dash-qr span,
.pl-note { color: var(--text-muted); }

/* chips / small inner surfaces */
.acct-tag { background: var(--surface-soft); }
.dash-bar { background: rgba(var(--accent-rgb), .12); }

/* hairline separators follow the theme line color */
.acct-row, .acct-list__item, .dash-loc__item { border-bottom-color: var(--line); }

/* The ocean now follows the theme (light→day sea, dark→night sea), so screen
   headers over it use theme text: dark on the bright day sea, light on the night
   sea. A soft shadow keeps them legible over the moving water. */
.minimal-hero h1, .pl-head h1, .cx-head h1 {
  color: var(--text-main);
  text-shadow: 0 1px 16px var(--hero-text-halo, rgba(0, 0, 0, .22));
}
.minimal-hero p, .cx-head p { color: var(--text-soft); text-shadow: none; }

/* Invite hero is a translucent accent panel — opaque surface base keeps its
   themed text readable in both modes. */
.iv-hero { background: linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .05)), var(--surface); }

/* The guest landing hero has its own dark vignette (::before) for a big white
   title — keep it white in both themes, exempt from the theme-text rule above. */
.minimal-hero--landing h1, .minimal-hero--landing p { color: #fff; }
.minimal-hero--landing h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .55), 0 0 44px rgba(0, 0, 0, .35); }

/* Guest landing: keep the hero copy from overflowing on narrow widths */
.minimal-hero--landing h1 { font-size: clamp(27px, 6.2vw, 44px); overflow-wrap: break-word; hyphens: auto; }
.minimal-hero--landing p { max-width: 430px; }
.dash-feature > div { min-width: 0; }
.dash-feature strong, .dash-feature span { overflow-wrap: break-word; }

/* ===================================================================
   Guest landing v2 — minimal, airy, centered (Apple-style). Theme-aware;
   a soft theme-tinted glow keeps the copy legible over the moving sea.
   =================================================================== */
.dash-landing { position: relative; min-height: calc(100dvh - 150px); display: flex; align-items: center; justify-content: center; }
.hero2 {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 20px;
}
.hero2::before {
  content: ""; position: absolute; left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  width: min(125vw, 600px); height: min(78vh, 540px);
  border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--hero-scrim), transparent 68%);
  filter: blur(26px);
}
.hero2__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--accent-soft);
  background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .28);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero2__title {
  margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  font-size: clamp(32px, 8.5vw, 48px); color: var(--text-main);
  text-shadow: 0 1px 18px var(--hero-text-halo); overflow-wrap: break-word;
}
.hero2__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.hero2__sub {
  margin: 16px 0 0; max-width: 350px;
  font-size: 15px; line-height: 1.5; color: var(--text-soft);
  text-shadow: 0 1px 12px var(--hero-text-halo);
}
.hero2__cta { width: 100%; max-width: 320px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 12px; }
.hero2__primary { width: 100%; padding: 16px; font-size: 16px; }
.hero2__link {
  background: none; border: 0; cursor: pointer; padding: 4px;
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  text-shadow: 0 1px 12px var(--hero-text-halo); transition: color .15s;
}
.hero2__link:hover { color: var(--accent); }
.hero2__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.hero2__chips span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-main);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-soft);
}

/* ===================================================================
   Account tab contrast/centering fix
   - .btn-ghost hardcodes light text (rgba(220,230,255,.85)), which is
     invisible on the LIGHT theme's account cards (white-on-white). The
     popover .btn-ghost stays as-is (always-dark surface); we only retheme
     ghost buttons that live inside the account screen.
   - The active segmented pill used color:#fff — invisible on the light
     theme's pale accent fill. Make the active label use the accent ink.
   - Log out: brighter red + the actions block is centered.
   =================================================================== */
.acct .btn-ghost,
.acct-actions .btn-ghost {
  color: var(--text-main);
  background: var(--surface-soft);
  border-color: var(--line);
}
.acct .btn-ghost:hover,
.acct-actions .btn-ghost:hover {
  background: var(--surface-strong, var(--surface));
  border-color: rgba(var(--accent-rgb), .45);
  color: var(--text-main);
}

/* active segmented pill: legible ink in both themes */
.seg-pill.is-active {
  color: var(--accent-soft);
  font-weight: 700;
}

/* centered, comfortable actions stack */
.acct-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* brighter, prominent Log out */
.acct-logout,
.acct-actions .acct-logout {
  color: #ef4444;
  background: rgba(239, 68, 68, .10);
  border-color: rgba(239, 68, 68, .45);
  font-weight: 700;
  text-align: center;
}
.acct-logout:hover,
.acct-actions .acct-logout:hover {
  color: #fff;
  background: rgba(239, 68, 68, .85);
  border-color: rgba(239, 68, 68, .9);
}

/* ===================================================================
   Quick-wins pass: Home expiry/trial notice, Invite share+QR,
   Account "sign out everywhere". Theme-aware via shared tokens.
   =================================================================== */
.dash-notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-md, 16px);
  border: 1px solid var(--line); background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}
.dash-notice div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-notice strong { font-size: 14px; font-weight: 700; color: var(--text-main); }
.dash-notice span { font-size: 12.5px; color: var(--text-soft); }
.dash-notice__cta {
  flex: none; cursor: pointer; white-space: nowrap;
  padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  color: var(--button-primary-text, #fff); background: var(--button-primary-bg, var(--accent));
  border: 0;
}
.dash-notice.is-danger { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .10); }
.dash-notice.is-danger .dash-notice__cta { background: #ef4444; color: #fff; }
.dash-notice.is-warn { border-color: rgba(245, 176, 65, .5); background: rgba(245, 176, 65, .12); }
.dash-notice.is-warn .dash-notice__cta { background: #e5972a; color: #1b1306; }
.dash-notice.is-info { border-color: rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .10); }

/* Invite: referral QR + share row */
.iv-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 4px; }
.iv-qr img { width: 148px; height: 148px; border-radius: 12px; background: #fff; padding: 8px; box-shadow: var(--shadow-soft); }
.iv-qr span { font-size: 12px; color: var(--text-muted); }
.iv-share { display: flex; gap: 10px; margin-top: 12px; }
.iv-share .btn-cosmic, .iv-share .btn-ghost { flex: 1; max-width: none; margin: 0; text-align: center; }
.iv-share .btn-ghost { color: var(--text-main); background: var(--surface-soft); border-color: var(--line); display: flex; align-items: center; justify-content: center; }

/* Account: sign-out-everywhere */
.acct-revoke-all { width: 100%; margin-top: 12px; text-align: center; }

/* ===================================================================
   Legal / user agreements: index, document reader, account list,
   and clickable consent links in the auth footers. Theme-aware.
   =================================================================== */
.lg { display: flex; flex-direction: column; gap: 14px; }
.lg-head h1 { margin: 0 0 4px; color: var(--text-main); }
.lg-head p { margin: 0; color: var(--text-soft); }
.lg-updated { font-size: 12.5px; color: var(--text-muted); margin: 0; }

/* index cards */
.lg-index { display: flex; flex-direction: column; gap: 10px; }
.lg-card {
  display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; text-align: left;
  padding: 14px 16px; border-radius: var(--radius-md, 16px);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft);
  transition: border-color .15s, background .15s;
}
.lg-card:hover { border-color: rgba(var(--accent-rgb), .45); }
.lg-card__icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: rgba(var(--accent-rgb), .12); color: var(--accent-soft);
}
.lg-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lg-card__text strong { font-size: 14.5px; font-weight: 700; color: var(--text-main); }
.lg-card__text span { font-size: 12.5px; color: var(--text-soft); }
.lg-card__chev { flex: none; color: var(--text-muted); }

/* document reader */
.lg-doc {
  padding: 18px 18px 6px; border-radius: var(--radius-md, 16px);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft);
}
.lg-section { margin-bottom: 18px; }
.lg-section h2 { font-size: 15px; font-weight: 700; color: var(--text-main); margin: 0 0 6px; }
.lg-section p { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); margin: 0 0 8px; }
.lg-section ul { margin: 0 0 8px; padding-left: 18px; }
.lg-section li { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); margin-bottom: 4px; }
.lg-section a, .lg-foot a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.lg-foot { font-size: 13px; color: var(--text-soft); margin: 4px 0 0; }

/* account legal list */
.acct-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acct-legal li { border-bottom: 1px solid var(--line); }
.acct-legal li:last-child { border-bottom: 0; }
.acct-legal button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer;
  background: none; border: 0; padding: 12px 0; font-size: 14px; color: var(--text-main); text-align: left;
}
.acct-legal button span { color: var(--text-muted); font-size: 18px; }
.acct-legal button:hover { color: var(--accent-soft); }

/* consent links in auth footers */
.login-terms a, .login-legal-link, .auth-card__footer a {
  color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

/* ===================================================================
   Skeleton placeholders — shown instantly on tab switch while async
   data (Plans /plans, Account /sessions) loads, so a tap never freezes
   on the previous screen. Theme-aware shimmer.
   =================================================================== */
.sk { display: flex; flex-direction: column; gap: 14px; }
.sk-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.sk-card {
  padding: 16px; border-radius: var(--radius-md, 16px);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 10px;
}
.sk-line {
  height: 12px; border-radius: 7px; width: 100%;
  background: linear-gradient(100deg,
    rgba(var(--accent-rgb), .07) 30%,
    rgba(var(--accent-rgb), .16) 50%,
    rgba(var(--accent-rgb), .07) 70%);
  background-size: 220% 100%;
  animation: sk-shimmer 1.25s ease-in-out infinite;
}
.sk-line--title { width: 52%; height: 15px; }
.sk-line--short { width: 34%; }
.sk-line--h1 { width: 60%; height: 26px; border-radius: 9px; }

@keyframes sk-shimmer {
  0%   { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-line { animation: none; }
}

/* ===================================================================
   UI consistency pass
   1) Primary/secondary buttons: <a>-based CTAs (Plans "Оформить", Invite
      share) default to display:inline, so width/max-width were ignored and
      the 32px padding spilled OUTSIDE the card. Force block-level flex +
      centered. Reset auto-margins where the button is a flex-row item.
   2) Plans: theme the few surfaces/text that the polish pass missed, so the
      tab is consistently palette-driven (no white-on-light / stray dark).
   =================================================================== */
.btn-cosmic, .btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
.iv-share .btn-cosmic, .iv-share .btn-ghost,
.pl-trial .btn-cosmic { margin-left: 0; margin-right: 0; }

/* Plans — remaining palette gaps */
.pl-head p { color: var(--text-soft); }
.pl-tier { color: var(--text-soft); }
.pl-tier.is-active, .pl-tier.is-active strong, .pl-tier.is-active small { color: #fff; }
.pl-promo strong, .pl-trial strong { color: var(--text-main); }
.pl-promo span, .pl-trial span { color: var(--text-soft); }
.pl-faq__item p { color: var(--text-soft); }

/* Plans — quiet-confidence voice: eyebrow over H1, term-pick label, trust line */
.pl-eyebrow {
  display: block; text-align: center; margin: 6px 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-soft);
}
.pl-pick { margin: 18px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.pl-trust { margin: 10px 0 0; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-soft); }

/* ===================================================================
   Toast: was dropping into page flow (a later `.toast{position:relative}`
   clobbered the fixed rule) and, even when fixed, sat at bottom:20px BEHIND
   the bottom nav (z-50) so it was invisible. Float it ABOVE the nav.
   =================================================================== */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
  z-index: 60;
}
/* On the full-page login (nav hidden) it can sit lower. */
body[data-active-route="login"] .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }

/* ===================================================================
   Selected state: was a near-transparent accent wash (rgba(accent,.12))
   that blended over the dark sea. Layer the accent tint over a SOLID
   surface so the chosen option/pill reads clearly in both themes.
   =================================================================== */
.pl-opt.is-active {
  background:
    linear-gradient(0deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .16)),
    var(--surface-strong);
  border-color: rgba(var(--accent-rgb), .7);
}
.seg-pill.is-active {
  background:
    linear-gradient(0deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .18)),
    var(--surface-strong);
  border-color: rgba(var(--accent-rgb), .55);
}
