/* Donate modal styles */

.footer-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background-color: transparent;
  color: #fff;
  text-decoration: none;
  border: 2px solid #3177f3;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  width: 143px;
  height: 68px;
}

.footer-donate-button:hover {
  background-color: #3177f3;
  color: #fff;
}

.donate-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 21, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.donate-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.donate-modal {
  position: relative;
  background: #FAFDFF;
  border-radius: 32px;
  padding: 64px 64px 72px 64px;
  width: 798px;
  max-width: calc(100% - 64px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 2px 40px 0 rgba(12, 20, 36, 0.95);
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin: 20px;
}

.donate-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #0D1A35;
  transition: opacity 0.2s;
  padding: 0;
}

.donate-modal-close:hover {
  opacity: 0.7;
}

.donate-modal-title {
  font-family: 'Space Grotesk';
  font-size: 32px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: -0.6px;
  color: #0D1A35;
  text-align: center;
  margin: 0;
}

.donate-amounts {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0;
  flex-wrap: wrap;
}

.donate-amount-btn {
  padding: 12px 24px;
  background: transparent;
  border: 0;
  font-family: 'Space Grotesk';
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  color: #0D1A35;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 50px;
  position: relative;
}

.donate-amount-btn:hover {
  opacity: 0.7;
}

.donate-amount-btn.selected {
  background: #F0F5F9;
  font-weight: 500;
}

.donate-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 16px;
  background: #FAFFFF;
  border-radius: 12px;
}

.donate-qr-code {
  display: block;
  width: 100%;
  max-width: 256px;
  height: auto;
  border-radius: 8px;
}

.donate-qr-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 430px;
  border-radius: 8px;
  overflow: hidden;
}

.donate-qr-svg {
  width: 100%;
  max-width: 430px;
  height: auto;
}

.donate-qr-svg svg {
  width: 100%;
  height: auto;
  display: block;
}

.donate-qr-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.donate-qr-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  border-radius: 8px;
  background: linear-gradient(135deg, #1ECA59 0%, #4A9DFF 50%, #A4CEFF 100%);
  opacity: 0.85;
}

.donate-address-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F0F5F9;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
}

.donate-address {
  flex: 1;
  font-size: 14px;
  line-height: 140%;
  color: #0D1A35;
  word-break: break-all;
  font-family: 'Space Mono', monospace;
}

.donate-copy-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #0D1A35;
  padding: 0;
  transition: all 0.2s;
  border-radius: 4px;
}

.donate-copy-btn:hover {
  background: #E9EFF3;
}

.donate-copy-btn.copied {
  color: #1ECA59;
}

.donate-copy-btn svg {
  width: 16px;
  height: 16px;
}

/* Планшеты (768px - 1024px) */
@media only screen and (max-width: 1024px) {
  .donate-modal {
    padding: 10px 10px 10px 10px;
    width: calc(100% - 48px);
    max-width: 400px;
    gap: 16px;
  }

  .donate-modal-title {
    font-size: 28px;
  }

  .donate-qr-wrapper {
    max-width: 350px;
  }

  .donate-qr-svg {
    max-width: 350px;
  }
}

/* Мобильные устройства (до 767px) */
@media only screen and (max-width: 767.98px) {
  .donate-modal-overlay {
    padding: 16px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .donate-modal {
    padding: 10px 10px 10px 10px;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    margin: 0;
    border-radius: 24px;
    gap: 28px;
  }

  .donate-modal-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
  }

  .donate-modal-title {
    font-size: 22px;
    padding-right: 40px;
  }

  .donate-amounts {
    gap: 8px;
    justify-content: center;
  }

  .donate-amount-btn {
    padding: 10px 18px;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .donate-qr-container {
    padding: 12px;
  }

  .donate-qr-wrapper {
    max-width: 100%;
  }

  .donate-qr-svg {
    max-width: 100%;
  }

  .donate-address-container {
    padding: 10px 14px;
    gap: 10px;
  }

  .donate-address {
    font-size: 12px;
    line-height: 1.4;
  }

  .donate-copy-btn {
    width: 28px;
    height: 28px;
  }
}

/* Очень маленькие экраны (до 480px) */
@media only screen and (max-width: 480px) {
  .donate-modal-overlay {
    padding: 12px;
    padding-top: 16px;
  }

  .donate-modal {
    padding: 24px 16px 32px 16px;
    border-radius: 20px;
    gap: 24px;
    max-height: calc(100vh - 32px);
  }

  .donate-modal-title {
    font-size: 20px;
    padding-right: 36px;
  }

  .donate-amounts {
    gap: 6px;
  }

  .donate-amount-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .donate-qr-container {
    padding: 10px;
  }

  .donate-address {
    font-size: 11px;
  }
}

