/* Auth, generator, plan, payment và validation form. */

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

.auth-choice {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-choice-card {
position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 166px;
  padding: 28px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf9 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-choice-card:hover {
color: var(--ink);
  background: linear-gradient(135deg, #effaf7 0%, #fffaf0 100%);
  border-color: rgba(15, 118, 110, 0.36);
  transform: translateY(-1px);
}

.auth-choice-card.is-attention-bouncing {
z-index: 1;
  border-color: rgba(212, 163, 63, 0.48);
  box-shadow:
    0 20px 42px rgba(21, 33, 61, 0.13),
    0 0 0 5px rgba(244, 211, 138, 0.16);
  animation: auth-choice-bounce 0.82s ease;
}

.auth-choice-icon {
display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 26px rgba(21, 33, 61, 0.13);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-choice-icon svg {
width: 28px;
  height: 28px;
}

.auth-choice-icon-register {
color: #f5d27f;
  background: linear-gradient(145deg, #2d478f, #152653);
}

.auth-choice-icon-login {
color: #1b3068;
  border: 1px solid rgba(212, 163, 63, 0.24);
  background: linear-gradient(145deg, #f5cf76, #fff0c8);
}

.auth-choice-card:hover .auth-choice-icon {
transform: translateY(-2px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 30px rgba(21, 33, 61, 0.17);
}

.auth-choice-copy {
display: grid;
  gap: 8px;
  min-width: 0;
}

.auth-choice-copy > span {
color: var(--accent-strong);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.auth-choice-copy small {
color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
}

.auth-form-panel {
width: min(620px, 100%);
  margin: 0 auto;
}

.auth-form-head {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-form-head h2 {
margin: 0;
}

.card-form,
.generator-form {
display: grid;
  gap: 18px;
}

.generator-form {
min-width: 0;
}

#generate-button {
display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
  min-width: 0;
}

#generate-button-label {
min-width: 0;
  text-wrap: balance;
}

.report-credit-cost {
display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.card-form {
align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.card-form h2 {
margin: 0;
  font-size: 20px;
}

.password-form-help {
margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

#tab-profile .auth-grid {
align-items: stretch;
}

#tab-profile .card-form {
display: flex;
  height: 100%;
  flex-direction: column;
  align-content: normal;
}

#tab-profile .card-form > button[type="submit"] {
width: 100%;
  margin-top: auto;
}

.auth-form-note {
min-height: 20px;
  margin: -4px 0 2px;
}

.auth-divider {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
height: 1px;
  background: var(--line);
  content: "";
}

.google-auth-button {
position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #15213d;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.google-auth-button:hover {
color: #15213d;
  border-color: #94a3b8;
  background: #f8fafc;
}

.google-auth-button svg {
width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.google-auth-button.is-loading svg {
opacity: 0;
}

.google-auth-button.is-loading::before {
position: absolute;
  left: calc(50% - 104px);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(21, 33, 61, 0.25);
  border-top-color: #15213d;
  border-radius: 999px;
  content: "";
  animation: loading-spin 0.8s linear infinite;
}

.card-form label,
.generator-form label {
display: grid;
  gap: 8px;
  font-weight: 700;
}

.card-form label > span,
.generator-form label > span {
font-size: 14px;
  font-weight: 700;
}

.report-form-section {
--form-section-divider-color: rgba(31, 49, 104, 0.13);
  --form-section-divider-space: 18px;
  min-width: 0;
  margin: 2px 0 0;
  padding: var(--report-section-gutter);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.report-form-section legend {
max-width: 100%;
  margin-left: 0;
  padding: 0;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 700;
}

.report-form-section > p,
.tuvi-form-content > p {
margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: balance;
}

.tuvi-form-section:not(.is-expanded) {
padding-block: 8px;
}

.generator-form .tuvi-section-toggle {
display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 34px;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.tuvi-section-toggle input {
position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.generator-form .tuvi-section-toggle > span {
font-size: inherit;
  font-weight: inherit;
}

.tuvi-section-check {
display: grid;
  order: 3;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1.5px solid rgba(31, 49, 104, 0.52);
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.tuvi-section-check svg {
width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.tuvi-section-toggle input:checked + .tuvi-section-check {
border-color: var(--accent);
  background: var(--accent);
}

.tuvi-section-toggle input:checked + .tuvi-section-check svg {
opacity: 1;
}

.tuvi-section-toggle input:focus-visible + .tuvi-section-check {
box-shadow: 0 0 0 3px rgba(31, 49, 104, 0.18);
}

.tuvi-section-title {
order: 1;
  min-width: 0;
  text-wrap: balance;
}

.generator-form .tuvi-section-toggle > .tuvi-optional-badge {
order: 2;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #e9edf5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tuvi-section-chevron {
order: 4;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.tuvi-section-toggle input:checked ~ .tuvi-section-chevron {
transform: rotate(180deg);
}

.tuvi-form-content {
min-width: 0;
}

.tuvi-form-content[hidden] {
display: none;
}

.generator-field {
display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.field-cache-control {
display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.generator-form .field-cache-toggle {
display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  cursor: pointer;
}

.generator-form .field-cache-toggle > span {
font-size: 11px;
  font-weight: 500;
}

.field-cache-toggle input {
position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field-cache-track {
position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 17px;
  border: 1px solid rgba(100, 116, 139, 0.38);
  border-radius: 999px;
  background: #e8edf3;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.field-cache-track::after {
position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(30, 41, 59, 0.24);
  content: "";
  transition: transform 160ms ease;
}

.field-cache-toggle input:checked + .field-cache-track {
border-color: rgba(31, 49, 104, 0.72);
  background: var(--accent);
}

.field-cache-toggle input:checked + .field-cache-track::after {
transform: translateX(13px);
}

.field-cache-toggle input:focus-visible + .field-cache-track {
outline: 3px solid rgba(31, 49, 104, 0.18);
  outline-offset: 2px;
}

.field-cache-state {
min-width: 34px;
}

.generator-form .field-title {
display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: pretty;
}

.generator-form .field-title > span {
font-size: inherit;
  font-weight: inherit;
}

.generator-form .field-number {
display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-size: 11px;
  line-height: 1;
}

.numerology-form-grid {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.numerology-form-grid > .generator-field {
min-width: 0;
}

.tuvi-form-grid {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.tuvi-form-grid + .tuvi-choice-row,
.tuvi-choice-row + .tuvi-form-grid {
margin-top: 20px;
}

.tuvi-school-field {
margin-top: 20px;
}

.tuvi-school-field + .tuvi-choice-row {
margin-top: 20px;
}

.report-form-section .form-section-divider {
position: relative;
  margin-top: var(--form-section-divider-space);
  padding-top: var(--form-section-divider-space);
}

.report-form-section .form-section-divider::before {
position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0,
    var(--form-section-divider-color) 5%,
    var(--form-section-divider-color) 95%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
}

.tuvi-school-field small {
color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: balance;
}

.tuvi-choice-row {
display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-width: 0;
}

.tuvi-choice-row > span {
flex: 0 0 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.tuvi-choice-row > .field-cache-control {
flex: 0 0 100%;
}

.generator-form .tuvi-choice-row label,
.generator-form .lunar-leap-option {
display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.generator-form .tuvi-choice-row > label {
min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.generator-form .tuvi-choice-row > label:hover {
border-color: rgba(31, 49, 104, 0.48);
  background: #fbfcff;
}

.generator-form .tuvi-choice-row > label:has(input:checked) {
border-color: var(--accent);
  background: rgba(31, 49, 104, 0.08);
  box-shadow: 0 0 0 1px rgba(31, 49, 104, 0.08);
}

.generator-form .tuvi-choice-row > label:focus-within {
outline: 3px solid rgba(31, 49, 104, 0.18);
  outline-offset: 2px;
}

.generator-form .tuvi-choice-row input,
.generator-form .lunar-leap-option input {
flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

.tuvi-date-field {
display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.tuvi-date-field > label:first-child {
font-size: 14px;
  font-weight: 700;
}

.lunar-leap-option {
justify-self: start;
  margin-top: 2px;
}

.birth-time-selects {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.birth-time-selects > span {
color: var(--muted);
  font-weight: 700;
}

.generator-form select {
min-width: 0;
  min-height: 54px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.generator-form select:focus {
border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.generator-form .single-select-filter {
font-weight: 400;
}

.generator-form .single-select-toggle {
height: 54px;
  min-height: 54px;
  padding: 0 44px 0 14px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 400;
}

.single-select-toggle.is-placeholder .single-select-value {
color: #8a9aa5;
  font-weight: 400;
}

.single-select-menu .single-select-search {
position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(22, 32, 38, 0.08);
  font-size: 14px;
  font-weight: 500;
}

.single-select-menu .single-select-search:focus {
border-color: rgba(15, 118, 110, 0.62);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.single-select-empty {
padding: 12px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

input.date-placeholder {
color: #8a9aa5;
  font-weight: 400;
  opacity: 1;
}

.tab-nav {
display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid rgba(31, 49, 104, 0.11);
  border-radius: 17px;
  background: #f1f4f9;
  box-shadow: inset 0 1px 2px rgba(21, 33, 61, 0.04);
}

.tab-button {
min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tab-button:hover {
color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.72);
}

.tab-button.active {
color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #2d4b98);
  box-shadow: 0 8px 18px rgba(31, 49, 104, 0.2);
}

.tab-panel {
display: none;
}

.tab-panel.active {
display: grid;
  gap: 18px;
}

#tab-plans {
--pricing-card-gap: 18px;
  --pricing-card-padding: 22px;
  --pricing-card-radius: 22px;
}

.plans-heading {
display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid rgba(31, 49, 104, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 15%, rgba(212, 163, 63, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(31, 49, 104, 0.055), rgba(255, 255, 255, 0.94));
}

.plans-heading-copy {
min-width: 0;
}

.plans-heading-copy h2 {
margin: 0;
  color: var(--accent-strong);
  font-size: clamp(23px, 2.7vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.plans-heading-copy > p:last-child {
color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.plans-assurance {
display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(31, 49, 104, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(21, 33, 61, 0.07);
}

.plans-assurance-icon {
display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--accent), #304b94);
  box-shadow: 0 8px 18px rgba(31, 49, 104, 0.2);
}

.plans-assurance-icon svg {
width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plans-assurance > span:last-child {
display: grid;
  gap: 3px;
  min-width: 0;
}

.plans-assurance strong {
color: var(--accent-strong);
  font-size: 14px;
  line-height: 1.4;
}

.plans-assurance small {
color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-wrap: pretty;
}

.plans-grid {
display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pricing-card-gap);
  align-items: stretch;
  padding-top: 8px;
}

.plan-card {
--plan-tier-color: #1f3168;
  --plan-tier-copy: #5b6780;
  --plan-tier-soft: rgba(31, 49, 104, 0.09);
  --plan-tier-soft-strong: rgba(31, 49, 104, 0.16);
  --plan-tier-border: rgba(31, 49, 104, 0.24);
  --plan-tier-border-strong: rgba(31, 49, 104, 0.48);
  --plan-tier-glow: rgba(31, 49, 104, 0.1);
  --plan-tier-awaiting-bg: #f4f6fc;
  --plan-tier-shadow: rgba(31, 49, 104, 0.16);
  --plan-tier-cta: linear-gradient(135deg, #263d7d, #1f3168);
  --plan-tier-cta-hover: linear-gradient(135deg, #1d3067, #16244f);
  --plan-tier-focus: rgba(31, 49, 104, 0.42);
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto auto auto 1fr auto auto;
  padding: var(--pricing-card-padding);
  overflow: hidden;
  border: 1px solid rgba(31, 49, 104, 0.14);
  border-radius: var(--pricing-card-radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(21, 33, 61, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.plan-card::before {
position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 5px;
  background: var(--plan-accent, var(--accent));
  content: "";
}

.plan-card.payment-awaiting-approval {
border-color: var(--plan-tier-border-strong);
  background:
    radial-gradient(circle at 100% 0, var(--plan-tier-glow), transparent 36%),
    linear-gradient(180deg, var(--plan-tier-awaiting-bg), #ffffff 72%);
  box-shadow: 0 14px 34px var(--plan-tier-shadow);
}

.plan-card h2,
.payment-box h2 {
margin: 0;
  font-size: 21px;
}

.plan-card h2 {
display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--plan-tier-color);
  font-size: 25px;
  letter-spacing: -0.02em;
}

.plan-card p {
margin: 0;
  color: var(--muted);
}

.plan-card .plan-payment-status {
margin-top: 14px;
  color: var(--plan-tier-color);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-wrap: balance;
}

.plan-card button:disabled {
cursor: not-allowed;
  color: var(--plan-tier-color);
  background: var(--plan-tier-soft-strong);
  box-shadow: none;
  opacity: 1;
}

.plan-card button:disabled::after {
display: none;
}

@media (hover: hover) {
  .plan-card:hover {
  border-color: var(--plan-tier-border-strong);
      box-shadow: 0 20px 44px var(--plan-tier-shadow);
      transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .plans-heading {
  grid-template-columns: minmax(0, 1fr);
      gap: 16px;
  }

  .plans-assurance {
  width: 100%;
  }

  .plans-grid {
  grid-template-columns: minmax(0, 1fr);
      gap: 14px;
      padding-top: 0;
  }

  .plan-card {
  grid-template-areas:
        "meta meta"
        "title benefits"
        "price benefits"
        "saving benefits"
        "status status"
        "cta cta";
      grid-template-columns: minmax(0, 0.9fr) minmax(240px, 1.1fr);
      grid-template-rows: auto auto auto auto auto auto;
      column-gap: 28px;
  }
}

@media (max-width: 640px) {
  #tab-plans {
  --pricing-card-padding: 19px;
      --pricing-card-radius: 19px;
  }

  .plans-heading {
  gap: 14px;
      padding: 19px;
      border-radius: 19px;
  }

  .plans-heading-copy h2 {
  font-size: clamp(22px, 6.5vw, 27px);
  }

  .plans-assurance {
  grid-template-columns: 38px minmax(0, 1fr);
      padding: 11px 12px;
  }

  .plans-assurance-icon {
  width: 38px;
      height: 38px;
      border-radius: 12px;
  }

  .plan-card {
  grid-template-areas:
        "meta"
        "title"
        "price"
        "saving"
        "benefits"
        "status"
        "cta";
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto auto auto auto 1fr auto auto;
      column-gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card {
  transition: none;
  }
}

.payment-box {
display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.payment-heading {
margin-bottom: 18px;
}

.payment-heading .confirm-help {
margin-bottom: 0;
  line-height: 1.55;
}

.payment-box img {
display: block;
  width: 220px;
  max-width: 100%;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.payment-side {
position: relative;
  display: grid;
  gap: 12px;
  align-self: center;
  justify-items: center;
  width: 100%;
  margin: 0;
}

.qr-refresh-button {
position: absolute;
  top: 110px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 50%;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(22, 32, 38, 0.22);
  font-size: 30px;
  line-height: 1;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}

.qr-refresh-button:hover {
color: #ffffff;
  background: var(--accent);
}

.qr-refresh-button:disabled {
opacity: 0.72;
}

.payment-countdown {
display: grid;
  width: 100%;
  min-height: 20px;
  margin: 0;
  place-items: center;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.payment-confirm-button {
width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.payment-confirm-button:disabled {
cursor: default;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.12);
}

.payment-confirm-hint {
width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-wrap: pretty;
}

.confirm-report-dialog {
--confirm-dialog-gutter: 24px;
  --confirm-dialog-section-gap: 16px;
  display: grid;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  max-height: min(820px, calc(100dvh - 36px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  overflow: hidden;
}

.confirm-dialog-header {
padding: var(--confirm-dialog-gutter) var(--confirm-dialog-gutter) var(--confirm-dialog-section-gap);
  border-bottom: 1px solid rgba(21, 33, 61, 0.08);
  background: #ffffff;
}

.confirm-dialog-header .confirm-help {
margin-bottom: 0;
  line-height: 1.5;
  text-wrap: pretty;
}

.confirm-dialog-body {
min-width: 0;
  min-height: 0;
  padding: var(--confirm-dialog-section-gap) var(--confirm-dialog-gutter);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.confirm-dialog-body:focus-visible {
outline: 3px solid rgba(31, 49, 104, 0.34);
  outline-offset: -4px;
}

.confirm-report-dialog .confirm-summary {
margin: 0;
}

.confirm-dialog-footer {
display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 10px;
  padding: var(--confirm-dialog-section-gap) var(--confirm-dialog-gutter);
  border-top: 1px solid rgba(21, 33, 61, 0.1);
  background: #ffffff;
  box-shadow: 0 -12px 30px rgba(21, 33, 61, 0.08);
}

.confirm-dialog-footer button {
width: 100%;
  min-width: 0;
}

.confirm-summary {
display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.confirm-summary div {
display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.confirm-summary dt {
color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.confirm-summary dd {
margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
}

.link-button {
width: fit-content;
  justify-self: start;
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.link-button:hover {
color: var(--gold);
  background: transparent;
}

.auth-form-head .auth-back-button {
justify-self: end;
  padding: 8px 12px;
  color: var(--accent-strong);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: #ffffff;
}

.auth-form-head .auth-back-button:hover {
color: #ffffff;
  background: var(--accent-strong);
}

.idle-action {
color: #64748b;
  background: #e2e8f0;
}

.idle-action:hover {
color: #ffffff;
  background: var(--accent);
}

.generator-validation-summary {
width: 100%;
  min-width: 0;
  margin-top: -8px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.3);
  border-radius: 10px;
  color: #8f1d14;
  background: #fff5f4;
  font-size: 14px;
  line-height: 1.5;
}

.generator-validation-summary:focus {
outline: 3px solid rgba(180, 35, 24, 0.16);
  outline-offset: 2px;
}

.generator-validation-summary > p {
margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

.generator-validation-summary ul {
display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.generator-validation-summary li {
display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  text-wrap: pretty;
}

.generator-validation-number {
min-width: 52px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: #b42318;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.generator-field.has-validation-error > input,
.generator-field.has-validation-error .single-select-toggle {
border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.generator-form .tuvi-choice-row.has-validation-error > label {
border-color: #b42318;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.1);
}

body.public-home {
background:
    radial-gradient(circle at 12% 8%, rgba(212, 163, 63, 0.18), transparent 20%),
    radial-gradient(circle at 88% 10%, rgba(70, 103, 202, 0.16), transparent 18%),
    linear-gradient(180deg, #07111f 0, #0a1428 1240px, #f5f7fc 1240px, #f5f7fc 100%);
}

body.public-home .app-shell {
min-height: 0;
  display: block;
  padding: 0 var(--public-page-gutter);
}

body.public-home.dashboard-active .app-shell {
align-content: normal;
}
