:root {
  --bg: #f3f4f6;
  --bg-soft: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --brand: #f39759;
  --brand-2: #ea7b32;
  --danger: #b91c1c;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(243, 151, 89, 0.22), transparent 32%),
    linear-gradient(180deg, #fff8f2 0%, #fff1e7 100%);
  color: var(--text);
}

.guest-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.app {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.hero,
.card,
.plan,
.subscription,
.guest-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero,
.card {
  padding: 16px;
  margin-bottom: 14px;
}

.guest-card {
  width: min(100%, 520px);
  padding: 24px;
  overflow: clip;
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}

body.auth-page .guest-card {
  animation: auth-card-enter 0.54s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.auth-page #auth-title {
  opacity: 0;
  animation: auth-content-enter 0.42s ease-out 0.08s forwards;
}

.guest-copy {
  margin-bottom: 18px;
}

.auth-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.05);
  margin-bottom: 16px;
  isolation: isolate;
}

body.auth-page .auth-switch {
  opacity: 0;
  animation: auth-content-enter 0.44s ease-out 0.14s forwards;
}

.auth-switch::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 10px);
  height: calc(100% - 12px);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), width 0.32s ease;
  z-index: 0;
}

.auth-switch[data-active-tab="register"]::before {
  transform: translateX(calc(100% + 8px));
}

.auth-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.24s ease, transform 0.24s ease;
}

.auth-tab.active {
  color: var(--text);
  transform: translateY(-1px);
}

.auth-panels {
  position: relative;
}

body.auth-page .auth-panels {
  opacity: 0;
  animation: auth-content-enter 0.48s ease-out 0.2s forwards;
}

.auth-form {
  display: grid;
  gap: 12px;
  animation: auth-panel-in 0.26s ease;
}

.auth-form[data-submitting="true"] {
  transform: translateY(-1px);
}

.auth-session {
  animation: auth-panel-in 0.28s ease;
}

.auth-step-head {
  display: grid;
  gap: 6px;
}

.auth-submit {
  margin-top: 4px;
}

.auth-link-btn {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  border-radius: 0;
}

.auth-link-btn:hover {
  color: var(--brand-2);
}

.form-helper {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.back-inline-btn {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  border-radius: 0;
}

.back-inline-btn:hover {
  color: var(--brand-2);
}

.auth-page-back {
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  color: var(--brand-2);
}

.auth-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand);
  font-size: 14px;
}

.auth-note.error {
  background: rgba(185, 28, 28, 0.1);
  color: var(--danger);
}

.code-auth-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 8px 8px 4px;
  text-align: center;
}

.code-auth-back {
  justify-self: start;
  margin-bottom: 4px;
}

.code-auth-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: transparent;
  color: var(--brand);
  justify-self: center;
}

.code-auth-icon img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  object-fit: contain !important;
  display: block;
  flex: 0 0 auto;
}

.code-auth-brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.code-auth-subtitle {
  margin-top: -8px;
  color: var(--muted);
  font-size: 16px;
}

.code-auth-email {
  margin-top: 12px;
  color: #31415f;
  font-size: 18px;
  line-height: 1.45;
}

.code-auth-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
}

.otp-field {
  width: 100%;
}

.otp-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.otp-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.otp-slot {
  width: 100%;
  min-width: 0;
  height: 64px;
  border: 1.5px solid rgba(49, 65, 95, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 28px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  caret-color: var(--brand);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.otp-slot:focus,
.otp-slot.filled {
  border-color: var(--brand);
}

@keyframes otp-success-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.08), 0 10px 24px rgba(22, 163, 74, 0.12);
  }
  35% {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18), 0 16px 32px rgba(22, 163, 74, 0.2);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.08), 0 10px 24px rgba(22, 163, 74, 0.12);
  }
}

.otp-slots[data-otp-state="success"] .otp-slot,
.otp-slot.is-success {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.08), 0 10px 24px rgba(22, 163, 74, 0.12);
  animation: otp-success-pulse 1s ease;
}

.otp-slots[data-otp-state="error"] .otp-slot,
.otp-slot.is-error {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08), 0 10px 24px rgba(220, 38, 38, 0.12);
}

.otp-slot:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(243, 151, 89, 0.16);
  transform: translateY(-1px);
}

.otp-slots[data-otp-state="success"] .otp-slot:focus,
.otp-slot.is-success:focus {
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.otp-slots[data-otp-state="error"] .otp-slot:focus,
.otp-slot.is-error:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.code-auth-link {
  margin-top: 10px;
  color: #5f7191;
  font-weight: 500;
}

.code-auth-link:hover {
  color: var(--brand);
}

.auth-link-btn[disabled] {
  color: rgba(95, 113, 145, 0.55);
  cursor: not-allowed;
}

.auth-link-btn[disabled]:hover {
  color: rgba(95, 113, 145, 0.55);
}

.recovery-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 8px;
}

.recovery-step {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.recovery-step.is-active {
  background: rgba(243, 151, 89, 0.14);
  color: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(234, 123, 50, 0.12);
}

.recovery-step.is-complete {
  background: rgba(243, 151, 89, 0.1);
  color: var(--brand);
}

.recovery-panel {
  display: grid;
  gap: 14px;
  animation: auth-panel-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
}

.recovery-panel.is-active {
  animation: auth-panel-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.recovery-email-caption {
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 16px;
}

.recovery-actions-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.recovery-actions-inline .auth-submit {
  margin-top: 0;
  min-width: 180px;
}

body.recovery-page #recovery-title,
body.recovery-page #recovery-subtitle,
body.recovery-page .recovery-steps,
body.recovery-page #forgot-form,
body.recovery-page #forgot-note,
body.recovery-page .back-link {
  opacity: 0;
  animation: auth-content-enter 0.44s ease-out forwards;
}

body.recovery-page #recovery-title {
  animation-delay: 0.06s;
}

body.recovery-page #recovery-subtitle {
  animation-delay: 0.12s;
}

body.recovery-page .recovery-steps {
  animation-delay: 0.18s;
}

body.recovery-page #forgot-form {
  animation-delay: 0.24s;
}

body.recovery-page .back-link,
body.recovery-page #forgot-note {
  animation-delay: 0.3s;
}

.auth-session {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-top: 12px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.04);
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

h2 {
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.card-head,
.balance-row,
.subscription-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.balance-amount {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stack {
  display: grid;
  gap: 10px;
}

.plan,
.subscription {
  padding: 14px;
}

.plan-price {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 10px;
}

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

.chip,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand);
  font-size: 13px;
}

.status.expired {
  background: rgba(185, 28, 28, 0.1);
  color: var(--danger);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button,
.link-btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(234, 123, 50, 0.22);
}

.primary-btn:disabled {
  cursor: wait;
}

.primary-btn .btn-label,
.primary-btn .btn-spinner {
  position: relative;
  z-index: 1;
}

.btn-label {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.24) 50%, transparent 80%);
  transform: translateX(-130%);
  opacity: 0;
}

.primary-btn.is-loading {
  box-shadow: 0 16px 28px rgba(234, 123, 50, 0.24);
}

.primary-btn.is-loading::after {
  opacity: 1;
  animation: button-sheen 1.2s linear infinite;
}

.primary-btn.is-loading .btn-label {
  transform: translateX(2px);
}

.primary-btn.is-loading .btn-spinner {
  opacity: 1;
  transform: scale(1);
  animation: button-spin 0.75s linear infinite;
}

.ghost-btn,
.link-btn {
  background: rgba(17, 24, 39, 0.06);
  color: var(--text);
}

.ghost-btn {
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.16);
}

.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: min(calc(100vw - 16px), 420px);
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  margin: 0;
  border: 0;
  padding: 0;
  border-radius: 20px;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 18px)) scale(0.97);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: dialog-fade-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dialog[open]::backdrop {
  animation: dialog-backdrop-fade-in 0.28s ease-out forwards;
}

.dialog-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  box-sizing: border-box;
}

.dialog[open] .dialog-card {
  animation: topup-dialog-card-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: 50% 18%;
}

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

.field input,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.field-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.field-hint.error {
  color: var(--danger);
}

.field-hint.success {
  color: #15803d;
}

.field.is-success > span {
  color: #15803d;
}

.field.is-success input {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(240, 253, 244, 0.98);
  color: #15803d;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.field.is-error > span {
  color: var(--danger);
}

.field.is-error input {
  border-color: rgba(220, 38, 38, 0.38);
  background: rgba(254, 242, 242, 0.98);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field.is-pending input {
  border-color: rgba(243, 151, 89, 0.42);
  background: rgba(255, 247, 237, 0.98);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: rgba(17, 24, 39, 0.06);
  color: var(--text);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: 2px;
}

.password-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.password-toggle__icon::before {
  content: "";
  position: absolute;
  inset: 3px 1px;
  border: 1.8px solid currentColor;
  border-radius: 70% 70% 60% 60% / 60% 60% 90% 90%;
}

.password-toggle__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle[aria-pressed="true"] .password-toggle__icon::before {
  inset: 2px;
  border-radius: 999px;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon {
  opacity: 0.9;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon::after {
  width: 14px;
  height: 1.8px;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(-32deg);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-dialog-form {
  display: grid;
  gap: 12px;
}

.topup-step-stack {
  position: relative;
  display: grid;
  overflow: hidden;
  transition: height 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.topup-step-panel {
  grid-area: 1 / 1;
  align-self: start;
  transform-origin: center top;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
}

.topup-step-panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.topup-step-panel.is-inactive {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(10px) scale(0.992);
}

.dashboard-dialog-step {
  display: grid;
  gap: 12px;
  align-content: start;
}

.dashboard-dialog-section-title {
  margin: 0;
  font-weight: 700;
  color: var(--dashboard-text, var(--text));
}

.topup-methods {
  display: grid;
  gap: 10px;
}

.topup-method-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 243, 0.96));
  color: var(--dashboard-text, var(--text));
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.topup-method-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 151, 89, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 244, 236, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px rgba(234, 123, 50, 0.12);
}

.topup-method-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topup-method-btn__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.topup-method-btn--sbp .topup-method-btn__icon {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.18), rgba(59, 130, 246, 0.3));
  color: #1d4ed8;
}

.topup-method-btn--card .topup-method-btn__icon {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(5, 150, 105, 0.28));
  color: #047857;
}

.topup-method-btn--crypto .topup-method-btn__icon {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(234, 88, 12, 0.3));
  color: #c2410c;
}

.dashboard-dialog-copy {
  margin-top: 8px;
  color: var(--dashboard-muted, var(--muted));
  line-height: 1.5;
}

.dashboard-dialog-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(243, 151, 89, 0.1);
  color: var(--dashboard-accent-2, var(--brand-2));
  line-height: 1.45;
}

.dashboard-dialog-note.error {
  background: rgba(185, 28, 28, 0.1);
  color: var(--danger);
}

.dashboard-dialog-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--dashboard-line, var(--line));
  background: rgba(255, 255, 255, 0.92);
  color: var(--dashboard-accent-2, var(--brand-2));
  text-decoration: none;
  word-break: break-all;
}

.dashboard-dialog-link:hover {
  border-color: rgba(243, 151, 89, 0.35);
}

.dashboard-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 32px);
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.94);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.dashboard-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-toast.is-error {
  background: rgba(185, 28, 28, 0.94);
}

.hidden {
  display: none;
}

:root {
  --dashboard-bg: #fff6ef;
  --dashboard-surface: #ffffff;
  --dashboard-text: var(--text);
  --dashboard-muted: var(--muted);
  --dashboard-line: var(--line);
  --dashboard-accent: var(--brand);
  --dashboard-accent-2: var(--brand-2);
  --dashboard-soft: rgba(243, 151, 89, 0.16);
  --dashboard-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.dashboard-page {
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(243, 151, 89, 0.22), transparent 32%),
    linear-gradient(180deg, #fff8f2 0%, #fff1e7 100%),
    var(--dashboard-bg);
  color: var(--dashboard-text);
}

.dashboard-shell {
  min-height: 100vh;
  padding: 22px 18px 112px;
}

.dashboard-topbar {
  animation: dashboard-surface-enter-top 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard-view {
  display: none;
  animation: auth-panel-in 0.28s ease;
}

.dashboard-view.is-active {
  display: block;
}

.dashboard {
  width: min(100%, 480px);
  margin: 0 auto;
}

.dashboard-home-hero {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--dashboard-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1), transparent 36%),
    linear-gradient(135deg, #f7a75f 0%, #ea7b32 52%, #c85d18 100%);
  box-shadow: var(--dashboard-shadow);
  color: #ffffff;
}

.dashboard-home-hero-copy {
  display: grid;
  gap: 10px;
}

.dashboard-home-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-home-hero h2 {
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.dashboard-home-hero p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.dashboard-home-subscriptions {
  display: grid;
  gap: 12px;
}

.home-subscription-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(135deg, #f8af69 0%, #ef8d3d 46%, #d46b1d 100%);
  box-shadow: 0 18px 34px rgba(212, 107, 29, 0.24);
  color: #ffffff;
}

.home-subscription-card.is-expired {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  box-shadow: 0 18px 34px rgba(75, 85, 99, 0.18);
}

.home-subscription-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.home-subscription-card-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.74);
}

.home-subscription-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.home-subscription-card-title {
  margin: 0;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-subscription-card-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

.home-subscription-card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  align-items: stretch;
}

.subscription-meta-grid {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.subscription-action-secondary {
  min-height: 42px;
  border-radius: 8px;
}

.subscription-cancel-btn {
  color: #8f1d1d;
}

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

.subscription-action-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--dashboard-text);
  text-align: left;
}

.subscription-action-option span {
  display: grid;
  gap: 3px;
}

.subscription-action-option strong,
.subscription-action-option b {
  font-size: 15px;
}

.subscription-action-option small {
  color: var(--dashboard-muted);
  font-size: 13px;
}

.subscription-action-option:hover {
  border-color: rgba(243, 151, 89, 0.36);
  background: rgba(243, 151, 89, 0.08);
}

.dialog-warning {
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: #8f1d1d;
  font-size: 14px;
  line-height: 1.45;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.danger-btn:hover {
  background: #b91c1c;
}

.dashboard-more-stack {
  display: grid;
  gap: 14px;
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--dashboard-line);
  border-radius: 22px;
  background: var(--dashboard-surface);
  box-shadow: var(--dashboard-shadow);
}

.dashboard-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-profile-balance-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100%;
}

.dashboard-profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-profile-copy h1 {
  margin-bottom: 0;
  line-height: 1.05;
}

.dashboard-profile-copy p {
  color: var(--dashboard-muted);
  line-height: 1.35;
}

.dashboard-profile-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(243, 151, 89, 0.12);
  color: var(--dashboard-accent-2);
  box-shadow: inset 0 0 0 1px rgba(243, 151, 89, 0.14);
}

.dashboard-profile-balance strong {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-profile-balance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.dashboard-profile-balance-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-balance-panel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
}

.dashboard-balance-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  text-align: center;
}

.dashboard-balance-copy strong {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(243, 151, 89, 0.14);
  color: var(--dashboard-accent);
  box-shadow: inset 0 0 0 1px rgba(243, 151, 89, 0.08);
}

.dashboard-avatar svg,
.dashboard-icon-btn svg,
.dashboard-card-icon svg,
.dashboard-nav-icon svg {
  width: 22px;
  height: 22px;
}

.dashboard-profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-profile-copy h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-profile-copy p {
  color: var(--dashboard-muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 16px;
  background: var(--dashboard-surface);
  border: 1px solid var(--dashboard-line);
  color: var(--dashboard-muted);
  box-shadow: 0 10px 24px rgba(58, 62, 112, 0.08);
}

.dashboard-icon-btn:hover {
  color: var(--dashboard-text);
}

.dashboard-topup-btn {
  order: 2;
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-2));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(234, 123, 50, 0.2);
}

.dashboard-topup-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.dashboard-subscription-card,
.dashboard-action-card,
.dashboard-wide-card,
.dashboard-note {
  border: 1px solid var(--dashboard-line);
  background: var(--dashboard-surface);
  border-radius: 22px;
  box-shadow: var(--dashboard-shadow);
}

.dashboard-subscription-card {
  padding: 20px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, var(--dashboard-accent) 0%, var(--dashboard-accent-2) 100%);
}

.dashboard-devices-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #1f2937 0%, #374151 48%, #111827 100%);
}

.dashboard-friends-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(135deg, #f39759 0%, #ea7b32 52%, #c85d18 100%);
}

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

.dashboard-subscription-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.dashboard-subscription-card h2 {
  margin: 0 0 10px;
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.dashboard-subscription-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

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

.dashboard-action-card,
.dashboard-wide-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  width: 100%;
  padding: 18px;
  text-align: left;
  color: inherit;
}

.dashboard-action-card:hover,
.dashboard-wide-card:hover {
  transform: translateY(-1px);
}

.dashboard-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--dashboard-accent);
}

.dashboard-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.dashboard-card-copy {
  color: var(--dashboard-muted);
  line-height: 1.45;
}

.dashboard-wide-card {
  margin-top: 12px;
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(243, 151, 89, 0.16);
  color: var(--dashboard-accent-2);
}

.dashboard-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: rgba(234, 123, 50, 0.48);
}

.dashboard-note {
  margin-top: 16px;
  padding: 16px 18px;
  color: var(--dashboard-muted);
  line-height: 1.55;
}

.dashboard-section {
  margin-top: 16px;
}

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

.dashboard-section-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.dashboard-section-head p {
  margin-top: 6px;
  color: var(--dashboard-muted);
  line-height: 1.45;
}

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

.dashboard-plan-card,
.dashboard-lte-card,
.dashboard-empty-state {
  border: 1px solid var(--dashboard-line);
  background: var(--dashboard-surface);
  border-radius: 22px;
  box-shadow: var(--dashboard-shadow);
}

.dashboard-plan-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.dashboard-plan-card-compact {
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.dashboard-plan-card-compact .dashboard-plan-head {
  gap: 8px;
}

.dashboard-plan-card-compact .dashboard-plan-badge {
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.dashboard-plan-card-compact .dashboard-plan-title {
  font-size: 18px;
  letter-spacing: 0;
}

.dashboard-plan-card-compact .dashboard-plan-price {
  font-size: 22px;
  letter-spacing: 0;
}

.dashboard-plan-card-compact .dashboard-accent-btn {
  min-height: 40px;
  padding: 0 14px;
}

.dashboard-plan-card.is-trial {
  border-color: rgba(243, 151, 89, 0.34);
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.98), rgba(255, 255, 255, 0.98));
}

.dashboard-plan-card.is-highlight {
  border-color: rgba(234, 123, 50, 0.3);
  background: linear-gradient(180deg, rgba(255, 245, 237, 0.98), rgba(255, 255, 255, 0.98));
}

.dashboard-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(243, 151, 89, 0.14);
  color: var(--dashboard-accent-2);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-plan-duration {
  color: var(--dashboard-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-plan-body {
  display: grid;
  gap: 8px;
}

.dashboard-plan-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.dashboard-plan-copy {
  color: var(--dashboard-muted);
  line-height: 1.45;
}

.dashboard-plan-price-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-plan-price {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-plan-old-price {
  color: var(--dashboard-muted);
  font-size: 15px;
  text-decoration: line-through;
}

.dashboard-feature-chips,
.dashboard-topup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  color: var(--dashboard-text);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-plan-note {
  color: var(--dashboard-muted);
  line-height: 1.45;
  font-size: 14px;
}

.dashboard-lte-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.dashboard-lte-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-lte-title {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.dashboard-ru-flag {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  object-fit: contain;
}

.dashboard-lte-price {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

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

.dashboard-lte-metric {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(243, 151, 89, 0.16);
  border-radius: 18px;
  background: rgba(243, 151, 89, 0.06);
}

.dashboard-lte-metric-label {
  color: var(--dashboard-muted);
  font-size: 13px;
}

.dashboard-lte-metric-value {
  font-size: 20px;
  line-height: 1.1;
}

.dashboard-topup-block {
  display: grid;
  gap: 10px;
}

.dashboard-topup-label {
  color: var(--dashboard-muted);
  font-size: 14px;
  font-weight: 600;
}

.dashboard-empty-state {
  padding: 18px;
  color: var(--dashboard-muted);
  line-height: 1.55;
}

.friends-link-card,
.friends-progress-card,
.friends-tool-card,
.friends-leader-card,
.friends-referral-card,
.friends-stat-card {
  border: 1px solid var(--dashboard-line);
  background: var(--dashboard-surface);
  border-radius: 22px;
  box-shadow: var(--dashboard-shadow);
}

.friends-link-card,
.friends-progress-card,
.friends-tool-card,
.friends-referral-card {
  padding: 18px;
}

.friends-link-card,
.friends-link-row {
  display: grid;
  gap: 16px;
}

.friends-link-row + .friends-link-row {
  border-top: 1px solid var(--dashboard-line);
  padding-top: 16px;
}

.friends-link-copy {
  display: grid;
  gap: 8px;
}

.friends-link-label,
.friends-progress-label,
.friends-stat-label {
  color: var(--dashboard-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.friends-link-value {
  font-size: 17px;
  line-height: 1.5;
  word-break: break-all;
}

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

.friends-stats-grid,
.friends-tools-grid,
.friends-leaderboard,
.friends-referrals-list {
  display: grid;
  gap: 12px;
}

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

.friends-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.friends-stat-value {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.friends-stat-note {
  color: var(--dashboard-muted);
  line-height: 1.45;
}

.friends-progress-card {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.friends-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.friends-progress-head h4 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.friends-progress-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.friends-progress-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dashboard-accent), var(--dashboard-accent-2));
}

.friends-milestones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.friends-milestone {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.04);
  color: var(--dashboard-muted);
}

.friends-milestone.is-reached {
  background: rgba(243, 151, 89, 0.14);
  color: var(--dashboard-accent-2);
}

.friends-milestone.is-bonus {
  box-shadow: inset 0 0 0 1px rgba(234, 123, 50, 0.22);
}

.friends-milestone-step {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.friends-milestone-copy {
  font-size: 12px;
  font-weight: 600;
}

.friends-tool-card {
  display: grid;
  gap: 14px;
}

.friends-tool-card h4,
.friends-leader-copy h4,
.friends-referral-head h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.friends-tool-card p,
.friends-leader-copy p,
.friends-referral-head p {
  color: var(--dashboard-muted);
  line-height: 1.45;
}

.friends-tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(243, 151, 89, 0.14);
  color: var(--dashboard-accent-2);
}

.friends-tool-icon svg {
  width: 22px;
  height: 22px;
}

.friends-tool-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.friends-tool-card-qr {
  background:
    linear-gradient(180deg, rgba(255, 247, 240, 0.98), rgba(255, 255, 255, 0.98));
}

.friends-qr-preview {
  display: grid;
  grid-template-columns: repeat(5, 18px);
  gap: 6px;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff5ec;
}

.friends-qr-preview span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.08);
}

.friends-qr-preview span.is-dark {
  background: #1f2937;
}

.friends-leader-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.friends-leader-card.is-current-user {
  border-color: rgba(243, 151, 89, 0.28);
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.98), rgba(255, 255, 255, 0.98));
}

.friends-leader-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(243, 151, 89, 0.14);
  color: var(--dashboard-accent-2);
  font-weight: 700;
}

.friends-leader-copy {
  min-width: 0;
}

.friends-leader-amount {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.friends-referral-card {
  display: grid;
  gap: 14px;
}

.friends-referral-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.friends-referral-index {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  color: var(--dashboard-muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-more-card,
.dashboard-logout-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.dashboard-more-card {
  display: grid;
  gap: 18px;
  padding: 18px 18px 20px;
}

.dashboard-more-card-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.dashboard-more-field {
  display: grid;
  gap: 6px;
}

.dashboard-more-label {
  color: #6f7890;
  font-size: 15px;
}

.dashboard-more-value {
  font-size: 17px;
  font-weight: 500;
  color: #111827;
  word-break: break-word;
}

.dashboard-more-balance {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #111827;
}

.dashboard-telegram-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6f7890;
  font-size: 17px;
}

.dashboard-telegram-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #9aa3bc;
}

.dashboard-telegram-status-icon svg,
.dashboard-logout-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-telegram-btn {
  min-height: 40px;
  padding: 13px 18px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--dashboard-accent) 0%, var(--dashboard-accent-2) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(234, 123, 50, 0.18);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s ease,
    color 0.24s ease;
}

.dashboard-telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(234, 123, 50, 0.24);
}

.dashboard-balance-btn {
  width: 100%;
}

.dashboard-profile-balance,
.dashboard-topup-btn,
.dialog,
.dialog::backdrop,
.topup-step-stack,
.topup-step-panel,
.topup-method-btn,
.topup-method-btn__icon,
.dialog-actions > .ghost-btn,
.dialog-actions > .dashboard-accent-btn,
#topup-dialog,
#topup-dialog::backdrop,
#topup-dialog .dialog-card,
#topup-dialog .topup-step-stack,
#topup-dialog .topup-step-panel,
#topup-dialog .topup-method-btn,
#topup-dialog .topup-method-btn__icon,
#topup-dialog .ghost-btn,
#topup-dialog .dashboard-accent-btn {
  animation: none !important;
  transition: none !important;
}

.dashboard-topup-btn:hover,
.topup-method-btn:hover,
.dialog-actions > .ghost-btn:hover,
.dialog-actions > .ghost-btn:focus-visible {
  transform: none;
}

#topup-dialog[open] {
  animation: dialog-fade-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

#topup-dialog[open]::backdrop {
  animation: dialog-backdrop-fade-in 0.28s ease-out forwards !important;
}

#topup-dialog[open] .dialog-card {
  animation: topup-dialog-card-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  transform-origin: 50% 18%;
}

#purchase-status-dialog[open] {
  animation: dialog-fade-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

#purchase-status-dialog[open]::backdrop {
  animation: dialog-backdrop-fade-in 0.28s ease-out forwards !important;
}

#purchase-status-dialog[open] .dialog-card {
  animation: topup-dialog-card-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  transform-origin: 50% 18%;
}

.purchase-status-dialog {
  pointer-events: none;
}

.purchase-status-card {
  gap: 18px;
  justify-items: center;
  padding: 26px 22px 24px;
  text-align: center;
}

.purchase-status-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(255, 247, 240, 0.82) 58%, rgba(243, 151, 89, 0.14) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 20px 40px rgba(234, 123, 50, 0.14);
}

.purchase-status-spinner {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
}

.purchase-status-spinner-ring,
.purchase-status-spinner-core,
.purchase-status-spinner-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.purchase-status-spinner-ring {
  border: 4px solid rgba(243, 151, 89, 0.18);
  border-top-color: var(--dashboard-accent, var(--brand));
  border-right-color: var(--dashboard-accent-2, var(--brand-2));
  animation: purchase-status-spin 1s linear infinite !important;
}

.purchase-status-spinner-core {
  inset: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(255, 241, 231, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 18px rgba(234, 123, 50, 0.14);
  animation: purchase-status-pulse 1.4s ease-in-out infinite !important;
}

.purchase-status-spinner-dot {
  inset: auto;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--dashboard-accent, var(--brand)), var(--dashboard-accent-2, var(--brand-2)));
  box-shadow: 0 6px 14px rgba(234, 123, 50, 0.22);
}

.purchase-status-spinner-dot--a {
  top: 6px;
  right: 10px;
  animation: purchase-status-orbit-a 1.6s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
}

.purchase-status-spinner-dot--b {
  bottom: 8px;
  left: 8px;
  animation: purchase-status-orbit-b 1.6s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
}

.purchase-status-copy {
  display: grid;
  gap: 8px;
}

.purchase-status-copy h3 {
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.purchase-status-copy .dashboard-dialog-copy {
  max-width: 280px;
}

.dashboard-accent-btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: 0 8px 16px rgba(234, 123, 50, 0.14);
}

.dashboard-accent-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dashboard-support-actions {
  display: grid;
  gap: 10px;
}

.dashboard-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 13px 18px;
  border-radius: 12px;
  background: rgba(243, 151, 89, 0.1);
  color: var(--dashboard-accent-2);
  font-weight: 700;
  border: 1px solid rgba(243, 151, 89, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease;
}

.dashboard-support-btn:hover {
  transform: translateY(-3px);
  background: rgba(243, 151, 89, 0.14);
  box-shadow: 0 12px 24px rgba(234, 123, 50, 0.12);
}

.dashboard-support-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dashboard-support-btn:disabled:hover {
  transform: none;
  background: rgba(243, 151, 89, 0.1);
  box-shadow: none;
}

.home-subscription-card .dashboard-accent-btn,
.home-subscription-card .dashboard-support-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 4px;
  border-radius: 18px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.home-subscription-card .dashboard-accent-btn,
.home-subscription-card .dashboard-support-btn {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.9);
  color: #26313f;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    0 8px 16px rgba(31, 41, 55, 0.08);
}

.home-subscription-card .dashboard-accent-btn::before,
.home-subscription-card .dashboard-support-btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-subscription-card .dashboard-accent-btn:hover,
.home-subscription-card .dashboard-support-btn:hover {
  background:
    linear-gradient(145deg, #ffffff, rgba(255, 255, 255, 0.92) 48%, #ffffff),
    rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.62),
    0 10px 18px rgba(31, 41, 55, 0.1);
  transform: translateY(-1px);
}

.home-subscription-card .dashboard-accent-btn:disabled,
.home-subscription-card .dashboard-support-btn:disabled {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.dashboard-support-btn-telegram {
  background: linear-gradient(180deg, var(--dashboard-accent) 0%, var(--dashboard-accent-2) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(234, 123, 50, 0.18);
}

.dashboard-support-btn-telegram:hover {
  background: linear-gradient(180deg, var(--dashboard-accent) 0%, var(--dashboard-accent-2) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(234, 123, 50, 0.24);
}

.dashboard-logout-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 14px 18px;
  background: rgba(243, 151, 89, 0.1);
  color: var(--dashboard-accent-2);
  font-weight: 500;
  border: 1px solid rgba(243, 151, 89, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease;
}

.dashboard-logout-card:hover {
  transform: translateY(-3px);
  background: rgba(243, 151, 89, 0.14);
  box-shadow: 0 12px 24px rgba(234, 123, 50, 0.12);
}

.dashboard-logout-card:disabled {
  opacity: 0.7;
  cursor: wait;
}

.dashboard-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.devices-list {
  display: grid;
  gap: 12px;
}

.device-card {
  border: 1px solid var(--dashboard-line);
  background: var(--dashboard-surface);
  border-radius: 22px;
  box-shadow: var(--dashboard-shadow);
}

.device-card:hover {
  transform: translateY(-1px);
}

.device-card-head,
.device-card-foot,
.device-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.device-card-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.device-card-subtitle {
  color: var(--dashboard-muted);
  line-height: 1.5;
}

.devices-flow-note {
  margin-bottom: 12px;
}

.device-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.device-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 13px;
  font-weight: 700;
}

.device-status-chip.is-muted {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.device-card-foot {
  flex-wrap: wrap;
  color: var(--dashboard-muted);
  font-size: 13px;
}

.dashboard-accent-btn {
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-2));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(234, 123, 50, 0.18);
}

.dashboard-accent-btn:hover {
  transform: translateY(-1px);
}

.dashboard-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 520px);
  padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--dashboard-line);
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -8px 24px rgba(51, 58, 102, 0.06);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  animation: dashboard-surface-enter-bottom 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.dashboard-nav-item {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 56px;
  padding: 8px 4px 6px;
  background: transparent;
  color: #9197b0;
  font-size: 11px;
  border: none;
  border-radius: 18px;
  transform: scale(1);
  transform-origin: center bottom;
  transition: transform 0.22s ease, color 0.22s ease;
}

.dashboard-nav-item:hover,
.dashboard-nav-item:focus-visible {
  transform: scale(1.08);
}

.dashboard-nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.dashboard-nav-item.is-active {
  color: var(--brand-2);
  box-shadow: none;
  transform: scale(1.06);
}

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

@keyframes button-sheen {
  to {
    transform: translateX(130%);
  }
}

@keyframes dialog-fade-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px)) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes dialog-backdrop-fade-in {
  from {
    background: rgba(15, 23, 42, 0);
  }
  to {
    background: rgba(15, 23, 42, 0.4);
  }
}

@keyframes topup-dialog-card-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes purchase-status-card-enter {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes purchase-status-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.92;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes purchase-status-orbit-a {
  0%,
  100% {
    transform: translate(0, 0) scale(0.92);
  }
  50% {
    transform: translate(-7px, 8px) scale(1.08);
  }
}

@keyframes purchase-status-orbit-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1.02);
  }
  50% {
    transform: translate(8px, -7px) scale(0.88);
  }
}

@keyframes auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-card-enter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow);
  }
}

@keyframes dashboard-surface-enter-top {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboard-surface-enter-bottom {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-topbar,
  .dashboard-nav,
  .dialog,
  .dialog::backdrop,
  .dialog .dialog-card,
  #topup-dialog,
  #topup-dialog::backdrop,
  #topup-dialog .dialog-card,
  #purchase-status-dialog,
  #purchase-status-dialog::backdrop,
  #purchase-status-dialog .dialog-card,
  .purchase-status-spinner-ring,
  .purchase-status-spinner-core,
  .purchase-status-spinner-dot {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes auth-content-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .guest-actions,
  .hero,
  .card-head,
  .balance-row,
  .subscription-head,
  .dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 24px;
  }

  .guest-card {
    padding: 20px 16px;
  }

  .code-auth-brand {
    font-size: 22px;
  }

  .code-auth-email {
    font-size: 16px;
  }

  .otp-slots {
    gap: 8px;
  }

  .otp-slot {
    height: 56px;
    font-size: 24px;
    border-radius: 14px;
  }

  .recovery-steps {
    grid-template-columns: 1fr;
  }

  .recovery-actions-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .recovery-actions-inline .auth-submit {
    min-width: 0;
  }

  .dashboard-shell {
    padding: 18px 14px 106px;
  }

  .dashboard-profile-copy h1 {
    font-size: 21px;
  }

  .dashboard-profile-balance-wrap {
    align-self: center;
  }

  .dashboard-profile-balance {
    min-height: 32px;
    padding: 6px 10px 6px 9px;
  }

  .dashboard-profile-balance strong {
    font-size: 14px;
  }

  .dashboard-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .dashboard-balance-panel {
    gap: 8px;
  }

  .dashboard-balance-copy {
    justify-content: flex-end;
  }

  .dashboard-subscription-card {
    padding: 18px;
  }

  .dashboard-home-hero,
  .home-subscription-card {
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-subscription-card h2 {
    font-size: 25px;
  }

  .dashboard-home-hero h2,
  .home-subscription-card-title {
    font-size: 24px;
  }

  .dashboard-grid,
  .dashboard-lte-grid,
  .friends-stats-grid,
  .friends-tools-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-action-card,
  .dashboard-wide-card,
  .dashboard-lte-card,
  .device-card,
  .dashboard-more-card,
  .dashboard-logout-card {
    padding: 16px;
    border-radius: 20px;
  }

  .dashboard-plan-card {
    padding: 16px;
    border-radius: 20px;
  }

  .dashboard-plan-card-compact {
    padding: 12px;
    border-radius: 16px;
  }

  .dashboard-section-head h3 {
    font-size: 20px;
  }

  .dashboard-plan-title,
  .dashboard-lte-title,
  .friends-progress-head h4,
  .friends-tool-card h4,
  .friends-leader-copy h4,
  .friends-referral-head h4 {
    font-size: 22px;
  }

  .dashboard-plan-price,
  .dashboard-lte-price {
    font-size: 25px;
  }

  .dashboard-plan-card-compact .dashboard-plan-title {
    font-size: 17px;
  }

  .dashboard-plan-card-compact .dashboard-plan-price {
    font-size: 21px;
  }

  .dashboard-plan-card-compact .dashboard-plan-duration {
    font-size: 11px;
  }

  .dashboard-plan-card-compact .dashboard-plan-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .dashboard-plan-card-compact .dashboard-accent-btn {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
  }

  .dashboard-card-title {
    font-size: 20px;
  }

  .device-card-head,
  .device-card-actions,
  .friends-progress-head,
  .friends-tool-head,
  .friends-referral-head {
    flex-direction: column;
    align-items: stretch;
  }

  .device-card-title {
    font-size: 22px;
  }

  .friends-leader-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

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

  .dashboard-nav {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 540px) {
  .dialog {
    width: min(calc(100vw - 8px), 420px);
    max-width: calc(100vw - 8px);
    max-height: calc(100dvh - 8px);
    border-radius: 18px;
  }

  .dialog-card {
    gap: 10px;
    padding: 16px;
  }

  .topup-methods {
    gap: 8px;
  }

  .topup-method-btn {
    min-height: 56px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 16px;
  }
}
