@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   GLOBAL BACKGROUND
══════════════════════════════════════════ */
.global-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(47.52% 71.38% at 49.27% 66.74%, rgba(0,0,0,.1) 25.86%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 100%),
    url('../img/bg.png') center / cover no-repeat;
  z-index: -1;
  filter: brightness(3.8);
}

/* ══════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════ */
.container {
  max-width: 799px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 45px;
  margin-bottom: 20px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 0 20px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.logo--center { justify-content: center; }

.logo-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.logo-icon-fallback {
  width: 28px; height: 28px;
  background: linear-gradient(224.79deg, #316BE2 3.51%, #0751E9 96.92%);
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  color: #fff;
}

/* ── Language selector ── */
.lang-selector { position: relative; cursor: pointer; user-select: none; }

.lang-trigger {
  background: rgba(255,255,255,.05);
  padding: 6px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 5px rgba(0,0,0,.15);
  height: 35px;
}
.lang-flag { font-size: 16px; line-height: 1; }
.lang-name  { font-size: 15px; font-weight: 500; color: #fff; letter-spacing: -.03em; }

.nav-arrow {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid #CACACA;
  border-bottom: 2px solid #CACACA;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .2s;
  flex-shrink: 0;
}
.lang-selector.open .nav-arrow { transform: rotate(-135deg); margin-top: 3px; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(37,37,37,.97);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 6px 0;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  z-index: 10;
  display: none;
  overflow: hidden;
}
.lang-selector.open .lang-dropdown { display: block; }

.lang-option {
  padding: 9px 16px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.lang-option:hover  { background: rgba(255,255,255,.1); }
.lang-option.active { color: #fff; }

/* ══════════════════════════════════════════
   MAIN STACK
══════════════════════════════════════════ */
.main-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 80px;
}

/* ══════════════════════════════════════════
   SHARED CARD BASE
══════════════════════════════════════════ */
.card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   STATUS CARD — three variants
══════════════════════════════════════════ */

/* ── Awaiting: blue tint ── */
.card-status--awaiting {
  background: rgba(7,81,233,.1);
  box-shadow:
    0 6.6px 4.7px rgba(0,0,0,.03),
    0 16.7px 11.8px rgba(0,0,0,.03),
    0 35px 49.6px rgba(0,0,0,.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* ── Mixing: same blue tint, slightly stronger ── */
.card-status--mixing {
  background: #332C26;
  box-shadow:
    0 6.6px 4.7px rgba(0,0,0,.03),
    0 16.7px 11.8px rgba(0,0,0,.03),
    0 35px 49.6px rgba(0,0,0,.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* ── Completed: green tint ── */
.card-status--completed {
  background: rgba(49,226,55,.14);
  box-shadow:
    0 6.6px 4.7px rgba(0,0,0,.03),
    0 16.7px 11.8px rgba(0,0,0,.03),
    0 35px 49.6px rgba(0,0,0,.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* ── Decorative gradient circles ── */
.deco-circle {
  position: absolute;
  width: 291px; height: 291px;
  border-radius: 50%;
  pointer-events: none;
}
.deco-circle--top {
  background: linear-gradient(180deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,0) 90%);
  right: -50px; top: -204px;
}
.deco-circle--bottom {
  background: linear-gradient(180deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,0) 90%);
  transform: rotate(-180deg);
  left: -51px; bottom: -80px;
}
/* lighter circles for completed state */
.deco-circle--light {
  background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,0) 90%);
}

/* ── Inner layout ── */
.status-inner {
  position: relative;
  z-index: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* compact: no address/limits — just header */
.status-inner--compact {
  padding: 40px;
  gap: 0;
}

/* ── Icon + title ── */
.status-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Blue icon wrap (awaiting / mixing) */
.status-icon-wrap--blue {
  width: 42px; height: 42px;
  background: linear-gradient(224.79deg, #316BE2 3.51%, #0751E9 96.92%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* White icon wrap (completed) */
.status-icon-wrap--white {
  width: 42px; height: 42px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.status-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 90%;
  letter-spacing: -.04em;
  color: #fff;
  text-align: center;
}

/* ══════════════════════════════════════════
   SPINNERS
══════════════════════════════════════════ */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes spin-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

/* Basic single-ring spinner */
.spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.spinner--white {
  border: 2.5px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}

/* Dual-ring spinner for "mixing" — two concentric rings */
.spinner--dual {
  position: relative;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.spinner--dual::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  border-bottom-color: rgba(255,255,255,.8);
  animation: spin-reverse 1.1s linear infinite;
}

/* Checkmark SVG styling */
.check-svg { display: block; }

/* ══════════════════════════════════════════
   ADDRESS ROW
══════════════════════════════════════════ */
.addr-row {
  width: 100%;
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.addr-field { flex: 1; min-width: 0; }
.addr-label {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 120%;
  margin-bottom: 8px;
}
.addr-value {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  line-height: 120%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: .4;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { opacity: 1; }
.icon-btn img { width: 18px; height: 18px; object-fit: contain; }

/* ── QR Modal ── */
.qr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.qr-modal-overlay.open {
  display: flex;
}
.qr-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  animation: qrModalIn .18s ease;
}
@keyframes qrModalIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.qr-modal img {
  display: block;
  border-radius: 8px;
  /* size is natural from the server-generated image */
}
.qr-modal__addr {
  font-size: 11px;
  color: #555;
  word-break: break-all;
  text-align: center;
  line-height: 1.5;
  max-width: 260px;
  font-family: monospace;
}
.qr-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.qr-modal__close:hover { color: #222; }

/* ══════════════════════════════════════════
   LIMITS ROW
══════════════════════════════════════════ */
.limits-row {
  width: 100%;
  display: flex;
  gap: 16px;
}
.limit-pill {
  flex: 1;
  background: rgba(0,0,0,.25);
  border-radius: 18px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
}
.limit-label {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 120%;
  white-space: nowrap;
}
.limit-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 120%;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   GUARANTEE LETTER CARD
══════════════════════════════════════════ */
.card-guarantee {
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 6px 4px rgba(0,0,0,.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.guarantee-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.guarantee-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 90%;
  color: #fff;
}
.session-id {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.session-id strong { color: rgba(255,255,255,.85); }

/* ── PGP block ── */
.pgp-block {
  width: 100%;
  height: 154px;
  background: rgba(37,37,37,.25);
  box-shadow:
    0 6.6px 4.7px rgba(0,0,0,.03),
    0 16.7px 11.8px rgba(0,0,0,.03),
    0 35px 49.6px rgba(0,0,0,.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.pgp-line-nums {
  padding: 14px 4px 14px 16px;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -.5px;
  color: rgba(255,255,255,.5);
  user-select: none;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pgp-line-num { height: 24px; display: flex; align-items: center; }

.pgp-text {
  flex: 1;
  padding: 14px 32px 14px 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  color: #fff;
  white-space: pre-wrap;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.pgp-text::-webkit-scrollbar { display: none; }

.pgp-scrollbar {
  position: absolute;
  right: 14px; top: 14px;
  width: 4px;
  height: calc(100% - 28px);
}
.pgp-scrolltrack {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.2);
  opacity: .25;
  border-radius: 50px;
}
.pgp-scrollthumb {
  position: absolute;
  width: 4px; height: 28px;
  top: 0;
  background: rgba(255,255,255,.5);
  box-shadow: 0 4px 6px rgba(0,0,0,.25);
  border-radius: 50px;
}

/* ══════════════════════════════════════════
   ACTION BUTTONS
══════════════════════════════════════════ */
.guarantee-actions {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.g-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  height: 48px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
  white-space: nowrap;
}
.g-btn:hover  { opacity: .85; }
.g-btn:active { transform: scale(.98); }
.g-btn img { object-fit: contain; flex-shrink: 0; }

.g-btn--blue { background: #316BE2; color: #fff; }
.g-btn--dark { background: #111212; color: rgba(255,255,255,.8); }
.g-btn--red  { background: rgba(216,0,39,.2); color: rgba(255,255,255,.8); }

/* Disabled state — Destroy button when not 'awaiting' */
.g-btn--disabled,
.g-btn:disabled {
  opacity: .35 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  transform: none !important;
}

/* ══════════════════════════════════════════
   RIGHT-SIDE INFO BLOCKS
══════════════════════════════════════════ */
.right-info {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

/* Countdown timer (awaiting) */
.right-info--timer {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0 21px;
}
.right-info__label {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 120%;
  white-space: nowrap;
}
.right-info__value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 120%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Return time (mixing) */
.right-info--return {
  align-items: flex-end;
}
.right-info--return .right-info__label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.right-info--return .right-info__value {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

/* Delete hint (completed) */
.right-info--hint {
  max-width: 230px;
  text-align: center;
  gap: 4px;
}
.right-info__hint-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  display: block;
}
.right-info__hint-body {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
  display: block;
}

/* ══════════════════════════════════════════
   HOW MIXER WORKS — STEP CARDS
══════════════════════════════════════════ */
.how-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 0 20px;
}

.how-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 90%;
  letter-spacing: -.04em;
  color: #fff;
  text-align: center;
}

.how-steps {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Base step card */
.step-card {
  flex: 1;
  max-width: 229px;
  min-height: 200px;
  background: #090909;
  border-radius: 30px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  transition: background .3s ease;
}

/* Step 1 — always blue active */
.step-card--blue {
  background: linear-gradient(180deg, #6094FF 0%, #0751E9 100%);
}

/* Step 2 — orange when mixing or completed */
.step-card--orange {
  background: linear-gradient(180deg, #FFBA88 0%, #FE9345 100%);
}

/* Step 3 — green when completed */
.step-card--green {
  background: linear-gradient(180deg, #7AFF7F 0%, #31E237 100%);
}

.step-img {
  width: 62px; height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-img img { width: 100%; height: 100%; object-fit: contain; }

.step-info { display: flex; flex-direction: column; gap: 10px; }
.step-name {
  font-size: 24px;
  font-weight: 400;
  line-height: 90%;
  color: #fff;
}
.step-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  color: rgba(255,255,255,.5);
}

.step-divider {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── Social links with labels ── */
.footer-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 35px;
  margin-top: 6px;
}
.footer-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}
.footer-social-item:hover { opacity: 1; }
.footer-social-item img {
  width: 47px;
  height: 47px;
  object-fit: contain;
}
.footer-social-item span {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 140%;
}

/* ── PGP fingerprint block ── */
.footer-pgp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
  width: 100%;
}
.footer-pgp-tab {
  background: #fff;
  color: #0d0d0d;
  font-weight: 700;
  font-size: 14px;
  line-height: 140%;
  padding: 4px 27px;
  border-radius: 35px 35px 0 0;
  height: 28px;
  display: flex;
  align-items: center;
  box-shadow: 0 5px 5px rgba(0,0,0,.15);
}
.footer-pgp-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 24px;
  background: rgba(255,255,255,.05);
  border: 0.5px solid rgba(255,255,255,.24);
  box-shadow: 0 5px 5px rgba(0,0,0,.15);
  border-radius: 66px;
  width: 100%;
}
.footer-pgp-pill span {
  font-size: 14px;
  color: #fff;
  line-height: 140%;
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}

/* ── Copyright ── */
.footer-copyright {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 140%;
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(49,107,226,.96);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 9999;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 760px
══════════════════════════════════════════ */
@media (max-width: 760px) {
  .navbar { margin-top: 28px; height: 65px; padding: 0 16px; }

  .status-inner { padding: 28px 20px; gap: 24px; }
  .status-inner--compact { padding: 28px 20px; }
  .status-title { font-size: 20px; }

  .addr-value  { font-size: 16px; }
  .limits-row  { flex-direction: column; }

  .card-guarantee { padding: 28px 20px; gap: 20px; }
  .guarantee-header { flex-direction: column; align-items: flex-start; }
  .session-id { font-size: 13px; letter-spacing: 1px; }

  .guarantee-actions { gap: 8px; }
  .right-info { margin-left: 0; width: 100%; align-items: center; }
  .right-info--timer { width: 100%; justify-content: center; padding: 0; }
  .right-info--return { align-items: center; }

  /* how steps become vertical */
  .how-steps { flex-direction: column; gap: 0; align-items: stretch; }
  .step-card  { max-width: 100%; min-height: auto; flex-direction: row;
                text-align: left; gap: 16px; padding: 20px; }
  .step-divider { transform: rotate(90deg); margin: 8px auto; }
  .how-title  { font-size: 30px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 480px
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .navbar { margin-top: 20px; border-radius: 16px; }
  .logo-text { font-size: 16px; }

  .status-inner  { padding: 24px 16px; }
  .status-title  { font-size: 18px; }
  .addr-value    { font-size: 14px; }
  .limit-label   { font-size: 13px; }
  .limit-value   { font-size: 16px; }

  .card-guarantee { border-radius: 24px; padding: 24px 16px; }
  .pgp-block { height: 140px; }
  .pgp-text  { font-size: 13px; }
  .pgp-line-nums { font-size: 13px; }

  .g-btn { font-size: 14px; padding: 12px 14px; height: 44px; }
  .guarantee-actions { flex-direction: column; align-items: stretch; }
  .g-btn { width: 100%; justify-content: center; }
  .right-info { width: 100%; }

  .how-title { font-size: 26px; }
  .step-name  { font-size: 18px; }

  .pgp-pill span { font-size: 10px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  ≤ 360px
══════════════════════════════════════════ */
@media (max-width: 360px) {
  .lang-name { display: none; }
  .addr-value { font-size: 12px; }
  .session-id { font-size: 11px; }
}

/* ══════════════════════════════════════════
   DELETE SESSION MODAL
══════════════════════════════════════════ */

/* Overlay — dims + blurs everything behind */
.delete-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;

  /* semi-transparent dark backdrop */
  background: rgba(0, 0, 0, 0.55);

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.delete-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Page blur — applied to .container when modal is open */
.container.modal-blurred {
  filter: blur(8px);
  transition: filter .25s ease;
  pointer-events: none;
  user-select: none;
}

/* The modal box itself */
.delete-modal {
  position: relative;
  width: 340px;
  background: #111214;
  border-radius: 24px;
  overflow: hidden;

  /* entrance animation */
  transform: translateY(20px) scale(.96);
  transition: transform .25s ease;
}

.delete-modal-overlay.active .delete-modal {
  transform: translateY(0) scale(1);
}

/* ── Close × button ── */
.delete-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.delete-modal__close:hover { background: rgba(255,255,255,.15); }

.delete-modal__close::before,
.delete-modal__close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 1.8px;
  background: rgba(255,255,255,.7);
  border-radius: 1px;
}
.delete-modal__close::before { transform: rotate(45deg); }
.delete-modal__close::after  { transform: rotate(-45deg); }

/* ── Body: icon + text ── */
.delete-modal__body {
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.delete-modal__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

/* CSS fallback trash icon (if trash.png fails) */
.delete-modal__icon-fallback {
  width: 40px;
  height: 44px;
  position: relative;
  display: none;           /* shown via JS onerror */
}
.delete-modal__icon-fallback::before {
  /* lid */
  content: '';
  position: absolute;
  top: 0; left: -4px;
  width: 48px; height: 6px;
  background: #E53935;
  border-radius: 3px;
}
.delete-modal__icon-fallback::after {
  /* bin body */
  content: '';
  position: absolute;
  top: 10px; left: 4px;
  width: 32px; height: 34px;
  background: #E53935;
  border-radius: 2px 2px 6px 6px;
}

.delete-modal__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
}

.delete-modal__desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255,255,255,.5);
  max-width: 240px;
}

/* ── Buttons row ── */
.delete-modal__actions {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.06);
}

.delete-modal__btn {
  flex: 1;
  height: 56px;
  border: none;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .15s, background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delete-modal__btn:hover  { opacity: .85; }
.delete-modal__btn:active { opacity: .7; }

/* No — blue */
.delete-modal__btn--no {
  background: #316BE2;
  color: #fff;
  border-radius: 0 0 0 24px;
}

/* Yes, Delete — dark */
.delete-modal__btn--yes {
  background: #1a1c1e;
  color: rgba(255,255,255,.85);
  border-radius: 0 0 24px 0;
  border-left: 1px solid rgba(255,255,255,.06);
}
.delete-modal__btn--yes:hover { background: rgba(216,0,39,.15); color: #fff; }

/* ── Mobile ── */
@media (max-width: 400px) {
  .delete-modal { width: calc(100vw - 32px); }
  .delete-modal__title { font-size: 20px; }
  .delete-modal__btn   { font-size: 15px; height: 52px; }
}


/* Кнопка чата */
.chat-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 64px;
    height: 64px;
    background: #316BE2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: transform 0.2s;
}
.chat-float-btn:hover {
    transform: scale(1.08);
}

/* Окно чата */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 360px;
    height: 480px;
    background: #1a1a1e;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    color: #e0e0e0;
}
.chat-header {
    background: #2d2d33;
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a40;
    cursor: move;
}
.chat-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}
.chat-close:hover {
    color: #ff6b6b;
}
.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #121216;
}
.chat-message {
    margin-bottom: 14px;
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.45;
    word-break: break-word;
}
.chat-message.user {
    background: #316BE2;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.chat-message.support {
    background: #3a3a40;
    color: #e0e0e0;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}
.chat-message.system {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin: 12px 0;
}
.chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #2d2d33;
    background: #1a1a1e;
}
#chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #3a3a40;
    border-radius: 24px;
    background: #222226;
    color: #e0e0e0;
    outline: none;
}
#chat-input::placeholder {
    color: #777;
}
#chat-send-btn {
    margin-left: 8px;
    background: #316BE2;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 500;
}
#chat-send-btn:hover {
    background: #316BE2;
}