.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal {
  background: var(--bg-mid);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  max-width: 400px;
  width: 100%;
}

.closeBtn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.closeBtn:hover {
  color: var(--text-primary);
}

.body {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.qrBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.qrImage {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  filter: invert(1);
  display: block;
}

.linkBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--grad-edge), var(--grad-center));
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: filter 0.25s, box-shadow 0.25s;
}

.linkBtn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 24px rgba(91, 61, 184, 0.5);
}

.infoText {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

@media (max-width: 600px) {
  .modal {
    padding: 32px 20px;
  }

  .body {
    flex-direction: column;
    align-items: center;
  }

  .qrImage {
    width: 160px;
    height: 160px;
  }

  .linkBtn {
    width: 160px;
  }

  .infoText {
    text-align: center;
  }
}