.header-inner--logo-only {
  justify-content: flex-start;
}

.footer-inner--simple {
  justify-content: flex-start;
  text-align: left;
  align-items: flex-start;
}

.footer-inner--simple p {
  margin-top: 10px;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-head {
  margin-bottom: 36px;
  text-align: left;
}

.page-head h1 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 4.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
}

.page-head .lede {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
}

.form-area {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.inputs { flex: 1; min-width: 0; }

.field-label {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.field {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.field:last-child { margin-bottom: 0; }

.field input,
.mainAddress,
.getTag {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #070e19;
  color: var(--text);
}

.copy {
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.copy:hover { filter: brightness(1.12); }

.qr {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

.qr img,
.qr-img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.waiting {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.waiting-dots {
  display: inline-block;
  width: 3ch;
  text-align: left;
  flex-shrink: 0;
}

.info-box {
  margin-bottom: 20px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.info-box__section {
  padding: 14px 16px;
}

.info-box__section--bonus {
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.info-box__title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.steps-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
}

.steps-list__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.steps-list__item p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

.steps-list__item strong {
  color: var(--text);
  font-weight: 600;
}

.bonus-lead {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.bonus-tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bonus-tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto;
  align-items: center;
  gap: 6px 8px;
  padding: 9px 10px;
  border: 1px solid rgba(0, 106, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(0, 106, 255, 0.12) 0%,
    rgba(7, 14, 25, 0.5) 55%
  );
  box-shadow: inset 0 0 0 1px rgba(0, 106, 255, 0.08);
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}

.bonus-tier__send {
  text-align: right;
}

.bonus-tier__recv {
  color: var(--text-2);
  font-weight: 500;
  text-align: left;
}

.bonus-tier__num {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bonus-tier--best .bonus-tier__recv .bonus-tier__num {
  color: #fff;
}

.bonus-tier__arrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.bonus-tier__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 106, 255, 0.18);
  color: var(--accent-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-align: center;
}

.bonus-tier__pct {
  font-size: 11px;
  letter-spacing: 0;
}

.bonus-tier--best .bonus-tier__badge {
  background: var(--accent);
  color: #fff;
}

@media (min-width: 720px) {
  .info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .info-box__section--bonus {
    border-top: none;
    border-left: 1px solid var(--stroke);
    padding-top: 14px;
  }
}

.note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.still {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  width: 100%;
  max-width: 440px;
  margin: 20px auto 12px;
  padding: 14px 22px;
  border: 1px solid rgba(0, 106, 255, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(0, 106, 255, 0.14) 0%,
    rgba(0, 106, 255, 0.05) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 20px rgba(0, 106, 255, 0.14);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.still:hover {
  border-color: rgba(76, 150, 255, 0.65);
  background: linear-gradient(
    180deg,
    rgba(0, 106, 255, 0.2) 0%,
    rgba(0, 106, 255, 0.08) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 28px rgba(0, 106, 255, 0.22);
}

.still:active {
  transform: scale(0.99);
}

.still:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

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

.still__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-weight: 600;
}

.still__icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.still:hover .still__icon {
  animation: still-spin 0.65s ease;
}

.still.is-checking .still__icon {
  animation: still-spin 0.65s linear infinite;
}

.still.is-done {
  max-width: 560px;
  color: #3dcc7a;
  font-weight: 500;
  line-height: 1.5;
  cursor: default;
  text-align: center;
}

.still.is-done:hover {
  border-color: rgba(0, 106, 255, 0.4);
  background: linear-gradient(
    180deg,
    rgba(0, 106, 255, 0.14) 0%,
    rgba(0, 106, 255, 0.05) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 20px rgba(0, 106, 255, 0.14);
  transform: none;
}

@keyframes still-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.progress-wrapper {
  margin: 28px 0 36px;
  text-align: center;
}

.progress-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-bar {
  position: relative;
  overflow: hidden;
  width: min(480px, 100%);
  height: 40px;
  margin: 0 auto;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #04070e;
}

.progress-bar .progress {
  display: block;
  height: 100%;
  background: var(--accent);
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 28px;
  margin: 8px 0 20px;
  border-bottom: 1px solid var(--stroke);
}

.tab,
.tabs button {
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.tab.active,
.tabs .active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.tx-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.mono {
  font-family: Consolas, Menlo, monospace;
  color: var(--accent-2);
  font-weight: 500;
}

.tx-scroll { overflow-x: auto; }

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tx-table thead th,
.tx-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  color: var(--text-2);
}

.tx-table thead th {
  color: var(--muted);
  font-weight: 500;
}

.tx-table .age-cell {
  white-space: nowrap;
  color: var(--muted);
}

.tx-table tbody tr:hover { background: rgba(0, 106, 255, 0.06); }

.hash,
.addr {
  max-width: 170px;
  overflow: hidden;
  color: var(--accent-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.qty,
.right { text-align: right; }

.tag {
  display: inline-block;
  min-width: 34px;
  padding: 2px 6px;
  border-radius: 6px;
  color: #fff;
  font: 700 10px/normal Inter, sans-serif;
  text-align: center;
}

.tag.in { background: #1f8a4c; }
.tag.out { background: #c26a1a; }

.c-note { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.c-head,
.c-count { margin: 16px 0 12px; color: var(--text); font-size: 16px; font-weight: 600; }

.c-featured,
.c-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.c-form { flex-direction: column; }

.c-form-top { display: flex; gap: 10px; align-items: center; }

.c-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--chip);
  flex-shrink: 0;
}

.c-body { flex: 1; min-width: 0; }

.c-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.c-name { font-weight: 600; color: var(--text); }
.c-mod {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.c-time { margin-left: auto; color: var(--muted); font-size: 12px; }
.c-verif { color: var(--accent-2); }
.c-sub,
.c-text { color: var(--text-2); font-size: 15px; line-height: 1.5; }

.c-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 16px;
  font-size: 13px;
}

.c-rec,
.c-share {
  color: var(--text-2);
  cursor: pointer;
}

.c-sort { margin-left: auto; color: var(--muted); }

.c-input,
.c-namefield {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #070e19;
  color: var(--text);
}

.c-namefield { width: 160px; }

.c-auth {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.c-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.c-send {
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.connect__button {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.fb { background: #4267B2; }
.tw { background: #1DA1F2; }
.gg { background: #DB4437; }

.c-list { list-style: none; }
.c-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stroke);
}
.c-item:last-child { border-bottom: none; }
.c-item > .c-av { width: 36px; height: 36px; }
.c-item .c-list {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--stroke);
}
.c-act {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.c-act button { color: inherit; cursor: pointer; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

.modal--show { visibility: visible; opacity: 1; }

.modal__box {
  width: min(320px, 90%);
  padding: 22px 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  text-align: center;
}

.modal__box.success { border-left: 5px solid #28a745; }
.modal__box.error { border-left: 5px solid #dc3545; }

.modal__box button {
  margin-top: 14px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .header {
    height: 64px;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .header-inner {
    height: 64px;
  }

  .logo img {
    height: 24px;
  }

  .page {
    padding: 20px 16px calc(48px + env(safe-area-inset-bottom, 0));
    padding-left: max(16px, env(safe-area-inset-left, 0));
    padding-right: max(16px, env(safe-area-inset-right, 0));
  }

  .page-head {
    margin-bottom: 24px;
  }

  .page-head h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.75rem);
  }

  .page-head .lede {
    font-size: 15px;
    line-height: 1.5;
  }

  .form-area {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .field {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }

  .copy {
    width: 100%;
    min-height: 44px;
  }

  .field input,
  .mainAddress,
  .getTag {
    font-size: 16px;
  }

  .qr {
    width: min(160px, 100%);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .qr-img {
    width: 100%;
    height: auto;
    max-width: 140px;
  }

  .info-box__section--bonus {
    border-left: none;
    border-top: 1px solid var(--stroke);
  }

  .bonus-tier {
    grid-template-columns: 1fr auto 1fr auto;
    gap: 4px 6px;
    padding: 8px;
  }

  .bonus-tier__num {
    font-size: 11px;
  }

  .bonus-tier__badge {
    min-width: 40px;
    padding: 3px 4px;
  }

  .bonus-tier__pct {
    font-size: 10px;
  }

  .progress-wrapper {
    margin: 20px 0 28px;
  }

  .progress-bar {
    width: 100%;
    height: 36px;
  }

  .progress-text {
    font-size: 11px;
    padding: 0 6px;
    text-align: center;
  }

  .tabs {
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab,
  .tabs button {
    flex-shrink: 0;
    font-size: 14px;
    padding: 10px 0;
    min-height: 44px;
  }

  .tx-title {
    font-size: 14px;
    line-height: 1.45;
  }

  .tx-title .mono {
    display: block;
    margin-top: 4px;
    word-break: break-all;
    white-space: normal;
    max-width: none;
  }

  .tx-table {
    font-size: 12px;
  }

  .tx-table thead th,
  .tx-table tbody td {
    padding: 10px 8px;
  }

  .hash,
  .addr {
    max-width: 88px;
  }

  .c-featured {
    flex-direction: column;
    padding: 14px;
  }

  .c-hdr {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .c-time {
    margin-left: 0;
    width: 100%;
    font-size: 11px;
  }

  .c-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .c-sort {
    margin-left: 0;
    width: 100%;
  }

  .c-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .c-send {
    width: 100%;
    min-height: 44px;
  }

  .c-namefield {
    width: 100%;
  }

  .c-form-top {
    flex-direction: column;
    align-items: stretch;
  }

  .c-act {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0));
  }

  .footer-inner--simple {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .page-head h1 {
    font-size: 1.35rem;
  }

  .steps-list__item p {
    font-size: 12px;
  }

  .hash,
  .addr {
    max-width: 72px;
  }
}
