/* Ultra-Minimal Donation Page Styles */
:root {
  --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --minimal-accent: #6366f1;
  --minimal-gray: #64748b;
  --minimal-light-gray: #f8fafc;

  /* Payment button colors */
  --boosty-color: #ff6b35;        /* Оранжевый для Boosty */
  --boosty-hover: #e55a2b;
  --yoomoney-color: #8b5cf6;      /* Более фиолетовый для YooMoney */
  --yoomoney-hover: #7c3aed;
  --donatestream-color: #f59e0b;  /* Желтовато-оранжевый для Donate.stream */
  --donatestream-hover: #d97706;
  --crypto-color: #10b981;        /* Зеленый для Криптовалют */
  --crypto-hover: #059669;
}

body {
  font-family: var(--font-primary);
  background-color: #ffffff;
  color: #0f172a;
  line-height: 1.7;
  font-weight: 300;
  font-size: 16px;
  overflow-x: hidden;
}

.minimal-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 24px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
}

/* Header */
.minimal-header {
  text-align: center;
  margin-bottom: 32px;
}

.minimal-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--minimal-accent) 0%, #8b5cf6 100%);
  color: white;
  display: block;
  margin: 0 auto 24px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.minimal-avatar:hover {
  transform: scale(1.05);
}

.minimal-title {
  font-size: 28px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.minimal-title-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--minimal-gray);
  margin: 0;
  opacity: 0.7;
  font-style: italic;
}

/* Minimalist Section Divider */
.section-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--minimal-gray), transparent);
  margin: 20px auto;
  opacity: 0.3;
}

/* Main Content */
.minimal-main {
  width: 100%;
  max-width: 360px;
}

.minimal-section {
  margin-bottom: 24px;
}

.minimal-section:last-child {
  margin-bottom: 0;
}

.minimal-main-title {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.minimal-main-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--minimal-gray);
  text-align: center;
  margin: 0 0 20px 0;
  opacity: 0.8;
}

.minimal-section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--minimal-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-align: center;
}

/* Buttons Override for Minimal */
.btn-minimal {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.btn-minimal:hover {
  border-color: var(--minimal-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.btn-minimal:active {
  transform: translateY(0);
}

.btn-minimal--primary {
  background: var(--minimal-accent);
  color: white;
  border-color: var(--minimal-accent);
}

.btn-minimal--primary:hover {
  background: #5855eb;
  border-color: #5855eb;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Boosty Button */
.btn-minimal--boosty {
  background: var(--boosty-color);
  color: white;
  border-color: var(--boosty-color);
}

.btn-minimal--boosty:hover {
  background: var(--boosty-hover);
  border-color: var(--boosty-hover);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

/* YooMoney Button */
.btn-minimal--yoomoney {
  background: var(--yoomoney-color);
  color: white;
  border-color: var(--yoomoney-color);
}

.btn-minimal--yoomoney:hover {
  background: var(--yoomoney-hover);
  border-color: var(--yoomoney-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Donate.stream Button */
.btn-minimal--donatestream {
  background: var(--donatestream-color);
  color: white;
  border-color: var(--donatestream-color);
}

.btn-minimal--donatestream:hover {
  background: var(--donatestream-hover);
  border-color: var(--donatestream-hover);
  box-shadow: 0 4px 12px rgba(210, 105, 30, 0.2);
}

/* Boosty Expandable Section */
.boosty-expanded {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 10px;
}

.boosty-expanded.boosty-expanded--open {
  opacity: 1;
  max-height: 280px;
}

.boosty-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.btn-minimal--boosty-sub,
.btn-minimal--boosty-donate {
  height: 42px;
  font-size: 14px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--boosty-color);
  border-color: rgba(255, 107, 53, 0.2);
}

.btn-minimal--boosty-sub:hover,
.btn-minimal--boosty-donate:hover {
  background: rgba(255, 107, 53, 0.8);
  color: white;
  border-color: rgba(255, 107, 53, 0.8);
}

/* YooMoney Expandable Section */
.yoomoney-expanded {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 10px;
}

.yoomoney-expanded.yoomoney-expanded--open {
  opacity: 1;
  max-height: 250px;
}

.yoomoney-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.btn-minimal--yoomoney-support {
  height: 42px;
  font-size: 14px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--yoomoney-color);
  border-color: rgba(139, 92, 246, 0.2);
}

.btn-minimal--yoomoney-support:hover {
  background: rgba(139, 92, 246, 0.8);
  color: white;
  border-color: rgba(139, 92, 246, 0.8);
}

.yoomoney-qr {
  text-align: center;
  padding: 16px;
  background: var(--minimal-light-gray);
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Donate.stream Expandable Section */
.donatestream-expanded {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 10px;
}

.donatestream-expanded.donatestream-expanded--open {
  opacity: 1;
  max-height: 250px;
}

.donatestream-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.btn-minimal--donatestream-support {
  height: 42px;
  font-size: 14px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--donatestream-color);
  border-color: rgba(245, 158, 11, 0.2);
}

.btn-minimal--donatestream-support:hover {
  background: rgba(245, 158, 11, 0.8);
  color: white;
  border-color: rgba(245, 158, 11, 0.8);
}

.donatestream-qr {
  text-align: center;
  padding: 16px;
  background: var(--minimal-light-gray);
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.boosty-qr {
  text-align: center;
  padding: 16px;
  background: var(--minimal-light-gray);
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  background: white;
  border: 2px dashed var(--minimal-gray);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.qr-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--minimal-gray);
  margin-bottom: 4px;
}

.qr-instruction {
  font-size: 10px;
  color: var(--minimal-gray);
  opacity: 0.7;
}

.qr-code {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Crypto Section (no separate section styling) */
.crypto-section {
  margin-top: 0;
}

/* Crypto Button - like other payment buttons */
.btn-minimal--crypto {
  background: var(--crypto-color);
  color: white;
  border-color: var(--crypto-color);
}

.btn-minimal--crypto:hover {
  background: var(--crypto-hover);
  border-color: var(--crypto-hover);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* First Level: Crypto List */
.crypto-list {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 12px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-top: -12px;
  padding: 12px;
}

.crypto-list.crypto-list--open {
  opacity: 1;
  max-height: 800px;
  margin-top: -12px;
}

/* Individual Wallet Buttons */
.crypto-wallet-btn {
  width: 100%;
  height: 40px;
  background: var(--minimal-light-gray);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  color: var(--minimal-gray);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crypto-wallet-btn:hover {
  background: white;
  border-color: var(--crypto-color);
  color: var(--crypto-color);
  transform: translateY(-1px);
}

/* Second Level: Wallet Details */
.crypto-wallet-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 8px;
  background: var(--minimal-light-gray);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 6px;
  padding: 0 12px;
}

.crypto-wallet-details.wallet-details--open {
  opacity: 1;
  max-height: 120px;
  padding: 12px;
}

.crypto-address {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 11px;
  color: var(--minimal-gray);
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  padding: 8px;
  word-break: break-all;
  margin-bottom: 8px;
  line-height: 1.4;
  /* Fixed dimensions based on longest address */
  min-height: 32px;
  display: flex;
  align-items: center;
}

.crypto-copy {
  width: 100%;
  height: 32px;
  background: var(--crypto-color);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.crypto-copy:hover {
  background: var(--crypto-hover);
  transform: translateY(-1px);
}

.crypto-copy:active {
  transform: translateY(0);
}

/* Footer */
.minimal-footer {
  margin-top: 32px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.minimal-footer-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--minimal-gray);
  opacity: 0.6;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  min-width: 320px;
}

.toast--show {
  transform: translateX(0);
}

.toast--hide {
  transform: translateX(100%);
  opacity: 0;
}

.toast__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  padding-right: 40px;
}

.toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.toast__message {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
}

.toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--minimal-gray);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.toast__close:hover {
  background-color: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

/* Toast Types */
.toast--success .toast__icon {
  background-color: #10b981;
}

.toast--error .toast__icon {
  background-color: #ef4444;
}

.toast--warning .toast__icon {
  background-color: #f59e0b;
}

.toast--info .toast__icon {
  background-color: var(--minimal-accent);
}

/* Responsive */
@media (max-width: 480px) {
  .minimal-container {
    padding: 40px 20px 16px;
    padding-top: 50px;
  }

  .minimal-header {
    margin-bottom: 24px;
  }

  .minimal-title {
    font-size: 24px;
  }

  .section-divider {
    margin: 16px auto;
  }

  .btn-minimal {
    height: 44px;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .minimal-main-title {
    font-size: 22px;
  }

  .minimal-main-subtitle {
    margin-bottom: 16px;
  }

  .crypto-wallet-btn {
    height: 36px;
    font-size: 12px;
  }

  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .toast {
    min-width: auto;
    transform: translateY(-100%);
  }

  .toast--show {
    transform: translateY(0);
  }

  .toast--hide {
    transform: translateY(-100%);
  }
}

/* Animation on load */
.minimal-header,
.minimal-main,
.minimal-footer {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.minimal-main {
  animation-delay: 0.1s;
}

.minimal-footer {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}