/* Easy recharge layout */
.recharge-easy {
  max-width: 640px;
}

@media (min-width: 961px) {
  .recharge-easy {
    max-width: 720px;
  }
}

.recharge-card {
  margin-bottom: 0;
}

.easy-steps {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  flex-wrap: wrap;
}

.easy-steps li {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.easy-steps li span {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
}

.easy-steps li.active {
  color: var(--text);
  border-color: rgba(61, 255, 197, 0.4);
}

.easy-steps li.active span {
  background: var(--mint);
  color: #042018;
}

.easy-steps li.done {
  color: var(--mint);
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.quick-amts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.25rem;
}

.quick-amt {
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, 0.45);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.quick-amt.active,
.quick-amt:hover {
  border-color: rgba(61, 255, 197, 0.5);
  color: var(--mint);
}

.usdt-line {
  margin: 0.75rem 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(61, 255, 197, 0.08);
  border: 1px solid rgba(61, 255, 197, 0.2);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.usdt-line.bad {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ffb4b4;
}

.pay-box {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, 0.4);
}

.pay-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pay-addr {
  word-break: break-all;
  font-size: 0.82rem;
  color: var(--mint);
  line-height: 1.45;
}

.pay-qr-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.pay-qr-row img {
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  display: none;
}

.linkish {
  border: none;
  background: none;
  color: var(--mint);
  font: inherit;
  font-size: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recharge-footer {
  max-width: 560px;
  margin: 1.5rem 0 2.5rem;
}

.tut-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 16, 24, 0.35);
  padding: 0.85rem 1rem;
}

.tut-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}

.tut-details summary::-webkit-details-marker {
  display: none;
}

.tut-details[open] summary {
  color: var(--text);
  margin-bottom: 0.85rem;
}

.tut-body .lead {
  margin-top: 0;
}

/* Recharge tutorial + help chatbot */
.help-section {
  max-width: 920px;
  margin-bottom: 1.25rem;
}

.help-section h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.help-section .lead {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 52ch;
}

.tut-steps {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: tut;
}

.tut-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 16, 24, 0.4);
}

.tut-steps li::before {
  counter-increment: tut;
  content: counter(tut);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #042018;
  background: var(--mint);
  flex-shrink: 0;
}

.tut-steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.tut-steps span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tut-figure {
  margin: 0 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(4, 16, 24, 0.55);
}

.tut-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center top;
}

.tut-figure figcaption {
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.txid-callout {
  border-left: 3px solid var(--mint);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  background: rgba(61, 255, 197, 0.06);
  border-radius: 0 12px 12px 0;
}

.txid-callout code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.82rem;
  color: var(--mint);
  word-break: break-all;
}

/* Floating chatbot */
.help-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.help-fab-btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: #042018;
  background: var(--mint);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.help-fab-btn:hover {
  transform: translateY(-1px);
}

.help-chat {
  width: min(360px, calc(100vw - 1.5rem));
  height: min(520px, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0a1620;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.help-chat.hidden {
  display: none !important;
}

.help-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(61, 255, 197, 0.08);
}

.help-chat-head strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.help-chat-head button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.help-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bot-msg,
.user-msg {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.bot-msg {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.user-msg {
  align-self: flex-end;
  background: rgba(61, 255, 197, 0.16);
  border: 1px solid rgba(61, 255, 197, 0.28);
}

.bot-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.bot-choices button {
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, 0.65);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.bot-choices button:hover {
  border-color: rgba(61, 255, 197, 0.45);
  color: var(--mint);
}

.help-chat-form {
  border-top: 1px solid var(--line);
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.help-chat-form.hidden {
  display: none !important;
}

.help-chat-form input,
.help-chat-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(4, 16, 24, 0.65);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
}

.help-chat-form .btn {
  width: 100%;
}

@media (max-width: 720px) {
  .help-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .tut-figure img {
    max-height: 220px;
  }
}
