:root {
  --bg: #f4f0ff;
  --bg-2: #ebe5ff;
  --paper: rgba(251, 249, 255, 0.82);
  --paper-strong: rgba(250, 247, 255, 0.95);
  --paper-soft: rgba(241, 236, 252, 0.78);
  --text: #241b3d;
  --muted: #756b96;
  --line: rgba(84, 66, 126, 0.12);
  --accent: #7256e5;
  --accent-2: #b997ff;
  --accent-3: #8f6af2;
  --accent-4: #6eb4cb;
  --success: #3b8774;
  --warning: #b78835;
  --danger: #b85d78;
  --shadow: 0 24px 70px rgba(74, 54, 128, 0.14);
  --shadow-soft: 0 14px 34px rgba(74, 54, 128, 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);
  background:
    radial-gradient(circle at 0% 0%, rgba(185, 151, 255, 0.32), transparent 30%),
    radial-gradient(circle at 100% 8%, rgba(110, 180, 203, 0.16), transparent 26%),
    radial-gradient(circle at 55% 100%, rgba(143, 106, 242, 0.14), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
  opacity: 0.5;
  animation: floatAura 16s ease-in-out infinite;
}

body::before {
  top: 10%;
  right: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(185, 151, 255, 0.28), rgba(185, 151, 255, 0));
}

body::after {
  bottom: 14%;
  left: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(110, 180, 203, 0.22), rgba(110, 180, 203, 0));
  animation-delay: -7s;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding: max(14px, env(safe-area-inset-top)) 14px 32px;
}

.app {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 4px 0 44px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  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,
.support-card,
.plan-card,
.review-card,
.manual-key,
.section-box,
.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(114, 86, 229, 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;
}

.btn,
.btn-secondary,
.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-secondary,
.link-chip {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.btn::before,
.btn-secondary::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,
.btn-secondary:hover,
.link-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(121, 83, 58, 0.16);
}

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

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

.btn:focus-visible,
.btn-secondary:focus-visible,
.link-chip:focus-visible,
.faq-question:focus-visible,
.menu-btn:focus-visible,
.catalog-card:focus-visible,
.support-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,
.support-grid,
.review-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,
.support-card:hover,
.plan-card:hover,
.review-card:hover,
.feature-card:hover,
.location-item:hover,
.section-box: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,
.support-card:hover .support-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(114, 86, 229, 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;
}

.page {
  display: grid;
  gap: 14px;
}

.page__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.page__subtitle {
  color: var(--muted);
  line-height: 1.6;
}

.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,
.support-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;
}

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

.section-box h3,
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.section-box p,
.feature-card p,
.plan-tier__text {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}

.section-box--soft {
  background: var(--paper-soft);
}

.section-box--love {
  background:
    radial-gradient(circle at top right, rgba(215, 108, 89, 0.14), transparent 34%),
    radial-gradient(circle at left bottom, rgba(142, 166, 140, 0.12), transparent 30%),
    var(--paper);
}

.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);
}

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

.support-card strong {
  display: block;
  font-size: 16px;
}

.support-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

.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;
}

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

.review-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.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__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: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 18px;
  align-items: end;
}

.auth-form--modal {
  grid-template-columns: 1fr;
  gap: 10px;
}

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

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

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

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

.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 {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(38, 26, 22, 0.26);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-popover {
  width: min(380px, calc(100vw - 24px));
  position: relative;
  max-height: min(88vh, 760px);
  overflow: auto;
}

.auth-popover__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}

.auth-card--popover {
  margin-top: 0;
  padding: 22px;
  border-radius: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 5px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 238, 229, 0.98), rgba(238, 229, 218, 0.9));
  border: 1px solid rgba(92, 63, 51, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.auth-tab {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-tab:hover {
  transform: translateY(-1px);
}

.auth-tab.is-active {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 58%, var(--accent-2));
  box-shadow: 0 14px 28px rgba(121, 83, 58, 0.15);
}

.auth-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.76);
  box-shadow: 0 10px 24px rgba(121, 83, 58, 0.06);
}

.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;
}

.session-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.8);
}

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

.session-card__meta {
  font-size: 14px;
  color: var(--muted);
}

.auth-benefits {
  display: grid;
  gap: 10px;
}

.auth-benefits__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-benefits__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

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

.auth-trial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0 4px;
}

.auth-trial-card {
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.74);
}

.auth-trial-card strong,
.auth-trial-card span {
  display: block;
}

.auth-trial-card strong {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-trial-card span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.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);
}

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

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

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

.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 > *,
.support-grid > *,
.plan-grid > *,
.review-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),
.support-grid > *:nth-child(2),
.plan-grid > *:nth-child(2),
.review-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),
.support-grid > *:nth-child(3),
.plan-grid > *:nth-child(3),
.review-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),
.support-grid > *:nth-child(4),
.plan-grid > *:nth-child(4),
.review-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(114, 86, 229, 0.18);
  }

  50% {
    box-shadow: 0 18px 40px rgba(114, 86, 229, 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;
  }

  .auth-trial-grid {
    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,
  .review-card,
  .section-box,
  .plan-tier,
  .auth-card {
    border-radius: 24px;
  }

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

  .page__title {
    font-size: 40px;
  }
}

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