* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #09090b;
  color: #f4f4f5;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
}

.top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tabs, .nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tab {
  background: none;
  border: 0;
  color: #71717a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.tab:hover {
  color: #d4d4d8;
}

.tab.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.nav a {
  font-size: 13px;
  color: #71717a;
  transition: color 0.15s;
}

.nav a:hover {
  color: #f4f4f5;
}

.main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 0 32px;
}

.panel {
  width: 100%;
  max-width: 420px;
  background: rgba(14, 14, 17, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid #1f1f24;
  border-radius: 10px;
  padding: 22px;
}

.pane {
  display: none;
}

.pane.active {
  display: block;
}

.group {
  margin-bottom: 18px;
}

.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #9a9aa6;
  margin-bottom: 9px;
}

.label i {
  font-size: 15px;
  color: #a1a1aa;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.item {
  background: #131317;
  color: #d4d4d8;
  border: 1px solid #23232a;
  border-radius: 7px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.item:hover {
  border-color: #3a3a45;
  color: #ffffff;
}

.item.active {
  background: #1c1c23;
  border-color: #e4e4e7;
  color: #ffffff;
}

.item .price {
  font-size: 12px;
  color: #71717a;
}

.item.active .price {
  color: #d4d4d8;
}

.note {
  background: #131317;
  border: 1px solid #23232a;
  border-radius: 7px;
  padding: 11px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #a1a1aa;
}

.cf-slot {
  margin-bottom: 14px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  background: #f4f4f5;
  color: #09090b;
  border: 0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.btn:hover:not(:disabled) {
  background: #ffffff;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.input {
  width: 100%;
  height: 40px;
  background: #131317;
  color: #ffffff;
  border: 1px solid #23232a;
  border-radius: 7px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color 0.15s;
}

.input::placeholder {
  letter-spacing: normal;
  color: #52525b;
}

.input:focus {
  border-color: #a1a1aa;
}

.item.method {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.method-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 5px;
  object-fit: cover;
  background: #1c1c23;
}

i.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #71717a;
}

.item.method.active i.method-icon {
  color: #d4d4d8;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.result-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.badge {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1px solid #2a2a33;
  background: #131317;
  color: #a1a1aa;
  font-size: 24px;
}

.badge.ok {
  color: #ffffff;
  border-color: transparent;
  background: #22c55e;
}

.badge.err {
  color: #ffffff;
  border-color: transparent;
  background: #ef4444;
}

.result-title {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.result-sub {
  max-width: 300px;
  font-size: 13px;
  color: #71717a;
}

.rows {
  border-top: 1px solid #1f1f24;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #1f1f24;
  font-size: 13px;
}

.row dt {
  flex-shrink: 0;
  color: #71717a;
}

.row dd {
  text-align: right;
  color: #e4e4e7;
  word-break: break-word;
}

.row dd.mono {
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.field-label {
  margin-bottom: 8px;
  font-size: 13px;
  color: #71717a;
}

.key {
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0 0 0 16px;
  background: #0d0d10;
  color: #ffffff;
  border: 1px solid #27272f;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}

.key:hover {
  border-color: #3f3f4d;
}

.key-value {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.key-copy {
  align-self: stretch;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #1f1f26;
  background: #131318;
  color: #71717a;
  font-size: 14px;
  transition: color 0.15s;
}

.key:hover .key-copy {
  color: #ffffff;
}

.key.done .key-copy {
  color: #4ade80;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  background: #16161b;
  color: #e4e4e7;
  border: 1px solid #272730;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn-sec:hover {
  background: #1f1f26;
  border-color: #3f3f4d;
}

.btn-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  background: #2563eb;
  color: #ffffff;
  border: 0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-blue:hover {
  background: #1d4ed8;
}

.steps {
  padding: 14px 14px 14px 34px;
  background: #0d0d10;
  border: 1px solid #1f1f24;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: #a1a1aa;
}

.steps li::marker {
  color: #52525b;
}

.back {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: #71717a;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}

.back:hover {
  color: #f4f4f5;
}

.nav-link {
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  color: #71717a;
  cursor: pointer;
  transition: color 0.15s;
}

.nav-link:hover {
  color: #f4f4f5;
}

.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 18px;
  color: #a1a1aa;
  cursor: pointer;
}

.agree input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.agree-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #131317;
  border: 1px solid #3a3a45;
  border-radius: 4px;
  color: transparent;
  font-size: 10px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.agree:hover .agree-box {
  border-color: #71717a;
}

.agree input:checked + .agree-box {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.agree input:focus-visible + .agree-box {
  outline: 2px solid #a1a1aa;
  outline-offset: 2px;
}

.text-link {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: #a1a1aa;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s;
}

.text-link:hover {
  color: #ffffff;
}

html:has(.offer[open]) {
  overflow: hidden;
}

.offer {
  width: min(560px, calc(100vw - 32px));
  max-height: min(80vh, 640px);
  margin: auto;
  padding: 0;
  background: #0e0e11;
  color: #f4f4f5;
  border: 1px solid #1f1f24;
  border-radius: 10px;
  overflow: hidden;
}

.offer[open] {
  display: flex;
  flex-direction: column;
}

.offer::backdrop {
  background: rgba(9, 9, 11, 0.85);
}

.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #1f1f24;
}

.offer-head h2 {
  font-size: 17px;
  font-weight: 500;
}

.offer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 6px;
  color: #71717a;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.offer-close:hover {
  color: #ffffff;
  background: #1c1c23;
}

.offer-body {
  overflow-y: auto;
  padding: 0 22px 22px;
}

.offer-body section {
  padding: 16px 0;
  border-bottom: 1px solid #1f1f24;
}

.offer-body section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.offer-body h3 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.offer-body p {
  font-size: 13px;
  line-height: 1.6;
  color: #a1a1aa;
}

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  cursor: pointer;
  background: #27272a;
  color: #ffffff;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  max-width: min(320px, calc(100vw - 32px));
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.hide {
  transform: translateY(6px);
  opacity: 0;
}

.toast.err {
  background: #dc2626;
  color: #ffffff;
}

.toast.ok {
  background: #16a34a;
  color: #ffffff;
}

@media (max-width: 520px) {
  .page {
    padding: 16px;
  }

  .main {
    padding: 110px 0 24px;
  }

  .panel {
    padding: 18px;
  }

  .key-value {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .toasts {
    right: 16px;
    bottom: 16px;
  }
}