:root {
  --v2-bg: #eef4fb;
  --v2-bg-soft: #f7fbff;
  --v2-surface: #ffffff;
  --v2-surface-soft: #f4f8fe;
  --v2-border: #d4e0ef;
  --v2-border-strong: #b9cfe6;
  --v2-text: #15314f;
  --v2-text-soft: #5c718a;
  --v2-brand: #235fcc;
  --v2-brand-deep: #163f87;
  --v2-brand-soft: #e8f1ff;
  --v2-mint: #1f9b84;
  --v2-mint-soft: #e6f7f2;
  --v2-gold: #d89a33;
  --v2-gold-soft: #fff4df;
  --v2-danger: #b44343;
  --v2-danger-soft: #fff0ef;
  --v2-success: #1e8b61;
  --v2-success-soft: #e8f7ef;
  --v2-shadow-lg: 0 28px 70px rgba(17, 38, 63, 0.14);
  --v2-shadow-md: 0 18px 40px rgba(17, 38, 63, 0.12);
  --v2-shadow-sm: 0 10px 22px rgba(17, 38, 63, 0.08);
  --v2-radius-xl: 32px;
  --v2-radius-lg: 24px;
  --v2-radius-md: 18px;
  --v2-radius-sm: 14px;
  --v2-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.v2-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(35, 95, 204, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 155, 132, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--v2-bg) 100%);
  color: var(--v2-text);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

body.v2-body--login {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #eef2f8 0%, #dfe6f2 100%);
}

body.v2-body--dashboard {
  background:
    radial-gradient(circle at top left, rgba(35, 95, 204, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(216, 154, 51, 0.12), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
}

.v2-hidden {
  display: none !important;
}

.v2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v2-shell {
  width: min(var(--v2-max), calc(100% - 36px));
  margin: 0 auto;
}

.v2-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(185, 207, 230, 0.65);
}

.v2-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--v2-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.v2-brand img,
.v2-brand__logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 38, 63, 0.18);
}

.v2-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.v2-link {
  color: var(--v2-brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.v2-link:hover,
.v2-link:focus-visible {
  text-decoration: underline;
}

.v2-main {
  padding: 42px 0 72px;
}

.v2-main--auth {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 28px 0;
}

.v2-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: 26px;
  align-items: start;
}

.v2-auth-shell {
  width: min(460px, 100%);
  margin: 0 auto;
}

.v2-form-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.v2-auth-stage {
  position: relative;
  padding: 34px 20px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1f60cb 0%, #2b6ddd 55%, #2a62c7 100%);
  box-shadow: 0 28px 64px rgba(25, 53, 99, 0.28);
  overflow: hidden;
}

.v2-auth-stage::before,
.v2-auth-stage::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(0.4px);
  pointer-events: none;
}

.v2-auth-stage::before {
  top: 34px;
  left: -24px;
  width: 110px;
  height: 32px;
  box-shadow:
    46px 10px 0 8px rgba(255, 255, 255, 0.08),
    288px 22px 0 2px rgba(255, 255, 255, 0.08);
}

.v2-auth-stage::after {
  right: -18px;
  bottom: 76px;
  width: 126px;
  height: 36px;
  box-shadow:
    -36px 14px 0 8px rgba(255, 255, 255, 0.08),
    -262px -44px 0 2px rgba(255, 255, 255, 0.07);
}

.v2-auth-brand-block {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-align: center;
}

.v2-auth-brand-link {
  display: inline-grid;
  justify-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.v2-auth-brand-link img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(18, 40, 81, 0.28);
}

.v2-auth-brand-link span {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.v2-auth-brand-block p {
  margin: 0;
  max-width: 28ch;
  color: rgba(245, 250, 255, 0.9);
  line-height: 1.6;
}

.v2-auth-card {
  position: relative;
  z-index: 1;
  padding: 24px 20px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(203, 216, 234, 0.9);
  box-shadow: 0 18px 42px rgba(18, 40, 81, 0.18);
}

.v2-auth-card__header {
  margin-bottom: 18px;
  text-align: center;
}

.v2-auth-card__header h1,
.v2-auth-card__header h2 {
  margin: 0;
  color: var(--v2-brand-deep);
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.v2-auth-card__header p {
  margin: 10px 0 0;
  color: var(--v2-text-soft);
  line-height: 1.55;
}

.v2-auth-card .v2-field label {
  font-size: 0.92rem;
}

.v2-auth-card .v2-field input {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
}

.v2-auth-card .v2-input-wrap input {
  padding-right: 76px;
}

.v2-auth-card .v2-toggle {
  right: 7px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.v2-actions--stacked {
  margin-top: 2px;
}

.v2-btn--auth {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  background: linear-gradient(180deg, #56b74b 0%, #2f8f31 100%);
  box-shadow: 0 14px 28px rgba(49, 133, 50, 0.24);
}

.v2-auth-helper,
.v2-auth-signup,
.v2-auth-legal {
  margin: 14px 0 0;
  text-align: center;
}

.v2-auth-helper,
.v2-auth-signup {
  font-size: 0.95rem;
}

.v2-auth-helper {
  color: var(--v2-text-soft);
}

.v2-auth-signup {
  padding-top: 14px;
  border-top: 1px solid rgba(212, 224, 239, 0.88);
  color: var(--v2-text-soft);
}

.v2-auth-legal {
  position: relative;
  z-index: 1;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(245, 250, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.6;
}

.v2-link--light {
  color: #fff;
}

.v2-auth-shell--create {
  width: min(540px, 100%);
}

.v2-auth-stage--create {
  padding: 24px 16px 18px;
}

.v2-auth-brand-block--create {
  gap: 10px;
  margin-bottom: 16px;
}

.v2-auth-brand-link--create {
  gap: 0;
}

.v2-auth-stage__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.v2-auth-brand-block--create p {
  max-width: 33ch;
  font-size: 0.96rem;
}

.v2-auth-card--create {
  padding: 18px 16px 16px;
  border-radius: 12px;
}

.v2-auth-card__header--tight {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 224, 239, 0.9);
}

.v2-auth-card__header--tight h2 {
  font-size: 1.45rem;
}

.v2-form--compact {
  gap: 12px;
}

.v2-meter--compact {
  gap: 6px;
}

.v2-meter--compact .v2-meter__track {
  height: 6px;
}

.v2-meter--compact .v2-meter__label {
  font-size: 0.8rem;
}

.v2-plan-section {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(212, 224, 239, 0.9);
}

.v2-plan-section__title {
  margin: 0;
  color: var(--v2-brand-deep);
  font-size: 1rem;
  line-height: 1.3;
}

.v2-plan-grid--auth {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v2-plan-card--auth {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  box-shadow: none;
}

.v2-plan-card--auth input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.v2-plan-card__radio {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #b4c7df;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.v2-plan-card__content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.v2-plan-card__tag--auth {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  width: max-content;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecf4ff;
  color: #235fcc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.v2-plan-card__name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.v2-plan-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.v2-plan-card__line {
  display: block;
  height: 1px;
  background: rgba(185, 207, 230, 0.88);
}

.v2-plan-card--auth .v2-plan-card__price {
  font-size: 1.7rem;
}

.v2-plan-card--auth .v2-plan-card__period {
  font-size: 0.98rem;
}

.v2-plan-card--auth .v2-plan-card__copy {
  font-size: 0.94rem;
}

.v2-plan-card--auth.is-selected {
  border-color: rgba(35, 95, 204, 0.72);
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 95, 204, 0.08);
}

.v2-plan-card--auth.is-selected .v2-plan-card__radio {
  border-color: #235fcc;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px #235fcc;
}

.v2-auth-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 0;
  color: var(--v2-text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.v2-auth-legal--card {
  max-width: none;
  margin-top: 10px;
  color: var(--v2-text-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.v2-auth-switch {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: rgba(245, 250, 255, 0.92);
  text-align: center;
  font-size: 0.95rem;
}

.v2-panel,
.v2-hero,
.v2-sidecard,
.v2-dashboard-card {
  border: 1px solid rgba(185, 207, 230, 0.78);
  border-radius: var(--v2-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 254, 0.98));
  box-shadow: var(--v2-shadow-lg);
}

.v2-hero {
  position: relative;
  padding: 38px 38px 34px;
  overflow: hidden;
}

.v2-hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 95, 204, 0.18), rgba(35, 95, 204, 0));
  pointer-events: none;
}

.v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--v2-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.v2-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.v2-title--compact {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.v2-copy {
  margin-top: 18px;
  color: var(--v2-text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.v2-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(185, 207, 230, 0.9);
  background: rgba(255, 255, 255, 0.88);
  color: var(--v2-text);
  font-weight: 700;
  font-size: 0.92rem;
}

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

.v2-step-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(185, 207, 230, 0.8);
  box-shadow: var(--v2-shadow-sm);
}

.v2-step-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.v2-step-card p {
  margin: 0;
  color: var(--v2-text-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

.v2-panel {
  padding: 28px;
}

.v2-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.v2-panel__header h2,
.v2-panel__header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.v2-panel__header p {
  margin: 10px 0 0;
  color: var(--v2-text-soft);
  line-height: 1.65;
}

.v2-panel__tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--v2-brand-soft);
  color: var(--v2-brand-deep);
  font-weight: 800;
  white-space: nowrap;
}

.v2-sidecard {
  padding: 28px;
  background: linear-gradient(180deg, #193b68 0%, #1e4d84 100%);
  color: #f6fbff;
}

.v2-sidecard .v2-eyebrow {
  color: #9fd0ff;
}

.v2-sidecard h2,
.v2-sidecard h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.v2-sidecard p,
.v2-sidecard li {
  color: rgba(246, 251, 255, 0.84);
  line-height: 1.65;
}

.v2-sidecard ul,
.v2-checklist {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.v2-sidecard__footer {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.v2-sidecard__note {
  margin: 0;
  color: rgba(246, 251, 255, 0.84);
  line-height: 1.6;
}

.v2-form {
  display: grid;
  gap: 16px;
}

.v2-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.v2-field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.v2-field--full {
  grid-column: 1 / -1;
}

.v2-field label,
.v2-field__label {
  color: var(--v2-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.v2-field input,
.v2-field textarea,
.v2-field select {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--v2-border);
  background: #fff;
  color: var(--v2-text);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.v2-field textarea {
  min-height: 110px;
  resize: vertical;
}

.v2-field input:focus,
.v2-field textarea:focus,
.v2-field select:focus {
  outline: none;
  border-color: var(--v2-brand);
  box-shadow: 0 0 0 4px rgba(35, 95, 204, 0.12);
}

.v2-field input[readonly],
.v2-field input:disabled,
.v2-field textarea[readonly],
.v2-field textarea:disabled,
.v2-field select:disabled {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.v2-field input[readonly]:focus,
.v2-field textarea[readonly]:focus {
  border-color: #e2e8f0;
  box-shadow: none;
}

.v2-input-wrap {
  position: relative;
}

.v2-input-wrap input {
  padding-right: 88px;
}

.v2-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--v2-border);
  background: #fff;
  color: var(--v2-brand-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.v2-note,
.v2-inline-message,
.v2-status {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.v2-note {
  border: 1px solid rgba(216, 154, 51, 0.42);
  background: linear-gradient(135deg, rgba(255, 244, 223, 0.94), rgba(255, 255, 255, 0.98));
  color: #74521d;
}

.v2-status {
  display: none;
  border: 1px solid rgba(35, 95, 204, 0.2);
  background: var(--v2-brand-soft);
  color: var(--v2-brand-deep);
  white-space: pre-line;
}

.v2-status.is-visible {
  display: block;
}

.v2-status[data-tone="success"] {
  display: block;
  border-color: rgba(30, 139, 97, 0.22);
  background: var(--v2-success-soft);
  color: #176a4b;
}

.v2-status[data-tone="error"] {
  display: block;
  border-color: rgba(180, 67, 67, 0.22);
  background: var(--v2-danger-soft);
  color: #8f3030;
}

.v2-status[data-tone="info"] {
  display: block;
}

.v2-meter {
  display: grid;
  gap: 8px;
}

.v2-meter__track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e6edf7;
  overflow: hidden;
}

.v2-meter__bar {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: #d8a542;
  transition: width 0.18s ease, background 0.18s ease;
}

.v2-meter[data-strength="weak"] .v2-meter__bar {
  background: #db6464;
}

.v2-meter[data-strength="fair"] .v2-meter__bar {
  background: #d8a542;
}

.v2-meter[data-strength="good"] .v2-meter__bar {
  background: #4b9fcb;
}

.v2-meter[data-strength="great"] .v2-meter__bar {
  background: #1e8b61;
}

.v2-meter__label,
.v2-field__hint {
  color: var(--v2-text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.v2-field__hint[data-tone="error"] {
  color: #9b3333;
}

.v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  color: var(--v2-text);
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.v2-btn:hover,
.v2-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(17, 38, 63, 0.12);
}

.v2-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.v2-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--v2-brand), var(--v2-brand-deep));
  box-shadow: 0 16px 34px rgba(35, 95, 204, 0.28);
}

.v2-btn--primary.v2-btn--auth {
  background: linear-gradient(180deg, #56b74b 0%, #2f8f31 100%);
  box-shadow: 0 14px 28px rgba(49, 133, 50, 0.24);
}

.v2-btn--secondary {
  border-color: var(--v2-border);
  background: rgba(255, 255, 255, 0.94);
}

.v2-btn--ghost {
  color: var(--v2-brand-deep);
  border-color: rgba(35, 95, 204, 0.24);
  background: rgba(232, 241, 255, 0.88);
}

.v2-btn--danger {
  color: #9b2f2f;
  border-color: rgba(180, 67, 67, 0.28);
  background: rgba(255, 240, 239, 0.92);
}

.v2-btn--sm {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.v2-btn--cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 60px;
  padding: 0 26px;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5a4 55%, #22c55e 100%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  border: 0;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.32);
  animation: v2-btn-cta-pulse 2.6s ease-in-out infinite;
}

.v2-btn--cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.v2-btn--cta:hover,
.v2-btn--cta:focus-visible {
  background-position: 100% 50%;
  box-shadow: 0 22px 48px rgba(15, 118, 110, 0.42);
  transform: translateY(-2px);
}

.v2-btn--cta:hover::after,
.v2-btn--cta:focus-visible::after {
  animation: v2-btn-cta-shimmer 0.9s ease-out;
}

.v2-btn--cta .v2-btn__arrow {
  font-size: 1.2rem;
  transition: transform 0.18s ease;
}

.v2-btn--cta:hover .v2-btn__arrow,
.v2-btn--cta:focus-visible .v2-btn__arrow {
  transform: translateX(4px);
}

@keyframes v2-btn-cta-pulse {
  0%, 100% {
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.32);
  }
  50% {
    box-shadow: 0 22px 50px rgba(34, 197, 94, 0.45);
  }
}

@keyframes v2-btn-cta-shimmer {
  to { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .v2-btn--cta { animation: none; }
  .v2-btn--cta::after { display: none; }
  .v2-btn--cta:hover .v2-btn__arrow,
  .v2-btn--cta:focus-visible .v2-btn__arrow { transform: none; }
}

.v2-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.v2-plan-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--v2-border);
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--v2-shadow-sm);
}

.v2-plan-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.v2-plan-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: max-content;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--v2-brand-soft);
  color: var(--v2-brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.v2-plan-card__price {
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.v2-plan-card__period {
  color: var(--v2-text-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.v2-plan-card__copy {
  color: var(--v2-text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.v2-plan-card.is-selected {
  border-color: rgba(35, 95, 204, 0.48);
  background: linear-gradient(180deg, #f6faff, #edf4ff);
  box-shadow: 0 18px 36px rgba(35, 95, 204, 0.18);
}

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

.v2-trust-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(185, 207, 230, 0.78);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--v2-shadow-sm);
}

.v2-trust-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.v2-trust-card p {
  margin: 0;
  color: var(--v2-text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.v2-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 22px;
  margin-top: 24px;
}

.v2-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
}

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

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

.v2-dashboard-card {
  padding: 28px;
}

.v2-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.v2-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(185, 207, 230, 0.85);
  background: rgba(255, 255, 255, 0.9);
  color: var(--v2-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.v2-badge[data-tone="warning"] {
  background: var(--v2-gold-soft);
  border-color: rgba(216, 154, 51, 0.42);
  color: #76541e;
}

.v2-badge[data-tone="success"] {
  background: var(--v2-success-soft);
  border-color: rgba(30, 139, 97, 0.26);
  color: #176a4b;
}

.v2-badge[data-tone="brand"] {
  background: var(--v2-brand-soft);
  border-color: rgba(35, 95, 204, 0.28);
  color: var(--v2-brand-deep);
}

.v2-summary-list {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--v2-text);
  line-height: 1.55;
}

.v2-stack {
  display: grid;
  gap: 22px;
}

.v2-child-list {
  display: grid;
  gap: 16px;
}

.v2-child-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(185, 207, 230, 0.86);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: var(--v2-shadow-sm);
}

.v2-child-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.v2-child-card__header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.v2-child-card__subcopy {
  margin: 6px 0 0;
  color: var(--v2-text-soft);
  font-size: 0.9rem;
}

.v2-empty-state {
  padding: 22px;
  border-radius: 22px;
  border: 1px dashed rgba(185, 207, 230, 0.96);
  background: rgba(248, 251, 255, 0.9);
  color: var(--v2-text-soft);
  line-height: 1.6;
}

.v2-events-board {
  display: grid;
  gap: 16px;
}

.v2-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.v2-event-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(185, 207, 230, 0.82);
  background: #fff;
  box-shadow: var(--v2-shadow-sm);
}

.v2-event-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

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

.v2-event-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--v2-bg-soft);
  border: 1px solid rgba(212, 224, 239, 0.9);
}

.v2-event-item__title {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  line-height: 1.4;
}

.v2-event-item__meta {
  color: var(--v2-text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.v2-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 28, 47, 0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.v2-welcome-modal.is-open {
  display: flex;
}

.v2-welcome-modal__card {
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border: 1px solid rgba(185, 207, 230, 0.88);
  box-shadow: 0 30px 70px rgba(16, 28, 47, 0.22);
}

.v2-welcome-modal__card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.v2-welcome-modal__card p {
  margin: 16px 0 0;
  color: var(--v2-text-soft);
  line-height: 1.68;
}

.v2-loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(248, 251, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.v2-loading.is-visible {
  display: flex;
}

.v2-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(35, 95, 204, 0.15);
  border-top-color: var(--v2-brand);
  animation: v2-spin 0.8s linear infinite;
}

.v2-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  min-width: 260px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(35, 95, 204, 0.18);
  background: #fff;
  color: var(--v2-text);
  box-shadow: 0 22px 48px rgba(16, 28, 47, 0.16);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.v2-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.v2-toast[data-tone="success"] {
  border-color: rgba(30, 139, 97, 0.26);
  background: var(--v2-success-soft);
  color: #176a4b;
}

.v2-toast[data-tone="error"] {
  border-color: rgba(180, 67, 67, 0.26);
  background: var(--v2-danger-soft);
  color: #8f3030;
}

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

@media (max-width: 1040px) {
  .v2-page-grid,
  .v2-dashboard-grid,
  .v2-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .v2-title {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .v2-main {
    padding: 28px 0 54px;
  }

  .v2-header__inner {
    min-height: 74px;
  }

  .v2-hero,
  .v2-panel,
  .v2-sidecard,
  .v2-dashboard-card {
    padding: 22px;
    border-radius: 26px;
  }

  .v2-field-grid,
  .v2-plan-grid,
  .v2-trust-row,
  .v2-events-grid,
  .v2-steps {
    grid-template-columns: 1fr;
  }

  .v2-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .v2-main--auth {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 12px 0;
  }

  .v2-shell {
    width: min(var(--v2-max), calc(100% - 24px));
  }

  .v2-auth-shell--login {
    width: 100%;
    min-height: calc(100svh - 24px);
    min-height: calc(100dvh - 24px);
    display: flex;
  }

  .v2-auth-stage--login {
    flex: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 14px;
    border-radius: 24px;
  }

  .v2-auth-brand-block--login {
    gap: 8px;
    margin-bottom: 14px;
  }

  .v2-auth-brand-link--login {
    gap: 8px;
  }

  .v2-auth-brand-link--login img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .v2-auth-brand-block--login .v2-auth-brand-link span {
    font-size: 1.38rem;
  }

  .v2-auth-brand-block--login p {
    max-width: 24ch;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .v2-auth-card--login {
    padding: 18px 16px 14px;
    border-radius: 14px;
  }

  .v2-auth-card--login .v2-auth-card__header {
    margin-bottom: 14px;
  }

  .v2-auth-card--login .v2-form {
    gap: 12px;
  }

  .v2-auth-card--login .v2-field {
    gap: 6px;
  }

  .v2-auth-card--login .v2-field label {
    font-size: 0.88rem;
  }

  .v2-auth-card--login .v2-field input {
    min-height: 46px;
    padding: 11px 14px;
  }

  .v2-auth-card--login .v2-toggle {
    min-height: 40px;
  }

  .v2-auth-card--login .v2-status {
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .v2-auth-card--login .v2-btn--auth {
    min-height: 46px;
  }

  .v2-auth-helper,
  .v2-auth-signup {
    margin-top: 12px;
    font-size: 0.92rem;
  }

  .v2-auth-signup {
    padding-top: 12px;
  }

  .v2-auth-legal--login {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 34ch;
  }

  .v2-header__actions {
    width: auto;
  }

  .v2-btn {
    width: 100%;
  }

  .v2-actions {
    flex-direction: column;
  }

  .v2-toast {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  /* Prevent iOS Safari auto-zoom on input focus */
  .v2-field input,
  .v2-field select,
  .v2-field textarea {
    font-size: 16px;
  }

  .v2-auth-card__header h1,
  .v2-auth-card__header h2 {
    font-size: 1.5rem;
  }

  .v2-hero,
  .v2-panel,
  .v2-sidecard,
  .v2-dashboard-card {
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 560px) and (max-height: 760px) {
  .v2-main--auth {
    padding: 10px 0;
  }

  .v2-auth-shell--login {
    min-height: calc(100svh - 20px);
    min-height: calc(100dvh - 20px);
  }

  .v2-auth-stage--login {
    padding: 16px 12px 12px;
    border-radius: 22px;
  }

  .v2-auth-brand-block--login {
    gap: 6px;
    margin-bottom: 10px;
  }

  .v2-auth-brand-link--login img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .v2-auth-brand-block--login .v2-auth-brand-link span {
    font-size: 1.18rem;
  }

  .v2-auth-brand-block--login p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .v2-auth-card--login {
    padding: 16px 14px 12px;
  }

  .v2-auth-card--login .v2-auth-card__header {
    margin-bottom: 12px;
  }

  .v2-auth-card--login .v2-auth-card__header p {
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .v2-auth-card--login .v2-form {
    gap: 10px;
  }

  .v2-auth-card--login .v2-field label {
    font-size: 0.84rem;
  }

  .v2-auth-card--login .v2-field input {
    min-height: 44px;
    padding: 10px 14px;
  }

  .v2-auth-card--login .v2-toggle,
  .v2-auth-card--login .v2-btn--auth {
    min-height: 38px;
  }

  .v2-auth-helper,
  .v2-auth-signup {
    margin-top: 10px;
    font-size: 0.86rem;
  }

  .v2-auth-signup {
    padding-top: 10px;
  }

  .v2-auth-legal--login {
    padding-top: 10px;
    font-size: 0.74rem;
    line-height: 1.35;
  }
}

@media (max-width: 420px) and (max-height: 700px) {
  .v2-auth-brand-block--login p,
  .v2-auth-card--login .v2-auth-card__header p {
    display: none;
  }

  .v2-auth-card--login .v2-auth-card__header {
    margin-bottom: 10px;
  }
}
