.cab {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.25rem clamp(1.1rem, 4vw, 1.75rem) 3.5rem;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cab-brand {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cab h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.3rem);
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}

.cab-lead {
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.cab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.cab-nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cab-nav-link:hover {
  color: var(--fg);
  border-color: var(--line);
}

.cab-nav-link.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.cab-panel {
  padding: 0.25rem 0 1.25rem;
  border-top: 1px solid var(--line);
  margin-top: 0.25rem;
}

.cab-panel + .cab-panel {
  margin-top: 0.5rem;
}

.cab-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.cab-meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cab-status {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.7rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.cab-status.on {
  color: var(--ok, #7dffb3);
}

.cab-user {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.cab-error {
  color: #ff6b5a;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.cab-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.cab-row strong {
  display: block;
  font-size: 1rem;
}

.cab-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.cab-row em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.cab-plan {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.cab-plan:hover,
.cab-plan.selected {
  border-color: rgba(200, 245, 66, 0.55);
  transform: translateX(3px);
}

.cab-plan strong { display: block; }
.cab-plan span { color: var(--muted); font-size: 0.8rem; }
.cab-plan em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.cab-pay-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.pay-methods {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.pay-method {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.pay-method:hover {
  border-color: rgba(200, 245, 66, 0.5);
  background: rgba(200, 245, 66, 0.06);
  transform: translateY(-1px);
}

.pay-method:active {
  transform: translateY(0);
}

.pay-method.selected {
  border-color: rgba(200, 245, 66, 0.7);
  background: rgba(200, 245, 66, 0.09);
}

.pay-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  line-height: 0;
}

.pay-icon svg {
  display: block;
  border-radius: 12px;
}

.pay-logo {
  flex: 0 0 118px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.pay-logo img,
.pay-logo svg {
  display: block;
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pay-logo-sbp {
  background: #0a0a0a;
}

.pay-logo-mir {
  background: #050505;
}

.pay-logo-card,
.pay-logo-crypto {
  padding: 0;
  border: 0;
  background: transparent;
}

.pay-logo-card svg,
.pay-logo-crypto svg {
  max-height: 40px;
  border-radius: 8px;
}

.pay-text {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.pay-text strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.pay-text span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pay-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
}

.pay-method-crypto {
  margin-top: 0.25rem;
}

.cab-token {
  display: block;
  word-break: break-all;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.05rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.08em;
}

.cab-empty {
  color: var(--muted);
  padding: 1rem 0;
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0.95rem 0 1rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.7rem 0.4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.auth-form { display: grid; gap: 0.8rem; }
.auth-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.auth-form .opt { font-weight: 500; opacity: 0.75; }
.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.auth-form input:focus {
  outline: none;
  border-color: rgba(200, 245, 66, 0.55);
}

.hist-item {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.hist-item .hist-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.hist-item strong {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-size: 1.15rem;
}

.hist-item .hist-amount {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.hist-item .hist-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.hist-item .hist-status {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hist-item .hist-status.paid { color: var(--ok, #7dffb3); }
.hist-item .hist-status.pending { color: #f0c674; }
.hist-item .hist-status.failed,
.hist-item .hist-status.cancelled { color: #ff6b5a; }

.hidden { display: none !important; }

@media (max-width: 560px) {
  .cab-pay-actions .btn,
  .auth-form .btn,
  .cab .cta-row .btn { width: 100%; }
}
