/* ==========================================================================
   FALCONSOFT GAMES PLATFORM - SHARED DONATE & SHARE MODALS STYLESHEET
   Offline-First / Zero External CDN / Modular Component
   File: assets/donate-modal.css
   ========================================================================== */

/* Glass Modal Base */
.glass-modal {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 460px;
  width: 92%;
  outline: none;
}

.glass-modal::backdrop {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Modal Content Card */
.modal-content {
  background: rgba(13, 18, 30, 0.92);
  border: 1px solid rgba(0, 243, 255, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 1.5rem;
  color: #f0f6fc;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 243, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 243, 255, 0.3);
  border-radius: 3px;
}

/* Header & Close Button */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.modal-header h2 {
  font-family: 'Outfit', 'Prompt', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #00f3ff;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 30%, #00f3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #8b9bb4;
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 0, 127, 0.2);
  border-color: #ff007f;
  color: #ff007f;
}

/* Payment Channel Tabs */
.channel-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(0, 243, 255, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.channel-btn {
  flex: 1;
  background: none;
  border: 1px solid transparent;
  color: #8b9bb4;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.tab-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.channel-btn.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.channel-btn[data-channel="promptpay"].active {
  border-color: rgba(0, 229, 163, 0.6);
  color: #00e5a3;
  background: rgba(0, 229, 163, 0.15);
}

.channel-btn[data-channel="binance"].active {
  border-color: rgba(240, 185, 11, 0.6);
  color: #F0B90B;
  background: rgba(240, 185, 11, 0.15);
}

/* Channel Views */
.channel-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Donate Timeline Steps */
.donate-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.25rem 0 0.5rem;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.step-num {
  background: #00e5a3;
  color: #03050c;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-size: 0.72rem;
  color: #8b9bb4;
}

.timeline-arrow {
  color: #00e5a3;
  font-size: 0.72rem;
}

/* PromptPay Header Badge */
.promptpay-badge {
  background: linear-gradient(135deg, rgba(0, 75, 145, 0.4), rgba(0, 229, 163, 0.2));
  border: 1px solid #00e5a3;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  width: 100%;
  margin: 0.3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.pp-logo {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00e5a3;
  letter-spacing: 1px;
}

/* Quick Amount Choice Chips */
.amount-chips {
  display: flex;
  gap: 0.4rem;
  width: 100%;
  justify-content: center;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.chip-btn, .chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0f6fc;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn.active, .chip.active {
  background: rgba(0, 229, 163, 0.2);
  border-color: #00e5a3;
  color: #00e5a3;
  box-shadow: 0 0 10px rgba(0, 229, 163, 0.3);
}

/* Custom Amount & Share URL Input Groups */
.custom-amount-group,
.share-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin: 0.4rem 0;
}

.win-subtitle {
  font-size: 0.88rem;
  color: #8b9bb4;
  text-align: center;
  margin: 0.25rem 0 0.5rem;
}

.share-url-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 243, 255, 0.25);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: 'Prompt', sans-serif;
  outline: none;
}

.share-url-input:focus {
  border-color: #00f3ff;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.btn-copy {
  background: #00f3ff;
  color: #03050c;
  border: none;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Prompt', sans-serif;
  font-size: 0.85rem;
}

.amount-display-badge {
  font-size: 0.85rem;
  color: #8b9bb4;
  margin-top: 0.3rem;
}

.amount-display-badge span {
  color: #00e5a3;
  font-weight: 800;
}

/* QR Code Display Boxes */
#donate-qr-container, #share-qr-container {
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0.6rem auto;
  box-shadow: none;
  max-width: 100%;
  box-sizing: border-box;
}

#donate-qr-container svg, #donate-qr-container canvas, #donate-qr-container img,
#share-qr-container svg, #share-qr-container canvas, #share-qr-container img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Binance View */
.binance-qr-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0 0.4rem;
  box-shadow: 0 0 25px rgba(240, 185, 11, 0.35);
  border: 1px solid rgba(240, 185, 11, 0.4);
  max-width: 100%;
  box-sizing: border-box;
}

.binance-qr-img {
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

/* High-Visibility Neon Download Buttons */
.btn-download-qr {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #c9d1d9 !important;
  font-family: 'Prompt', sans-serif;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.btn-download-qr:hover {
  background: #00e5a3 !important;
  color: #03050c !important;
  border-color: #00e5a3 !important;
  box-shadow: 0 0 22px rgba(0, 229, 163, 0.6);
  transform: translateY(-1px);
}

.btn-download-qr svg {
  stroke: currentColor;
}

#btn-download-binance.btn-download-qr {
  background: rgba(240, 185, 11, 0.15);
  border-color: #F0B90B;
  color: #F0B90B !important;
  box-shadow: 0 4px 14px rgba(240, 185, 11, 0.2);
}

#btn-download-binance.btn-download-qr:hover {
  background: #F0B90B !important;
  color: #03050c !important;
  border-color: #F0B90B !important;
  box-shadow: 0 0 22px rgba(240, 185, 11, 0.6);
}

/* Global Hidden Class */
.hidden {
  display: none !important;
}

/* Toast Notification (Top-Layer & Glassmorphism) */
.global-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: linear-gradient(135deg, #00f3ff, #00e5a3);
  color: #03050c;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 243, 255, 0.4), 0 0 16px rgba(0, 229, 163, 0.5);
  z-index: 100000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  font-family: 'Prompt', sans-serif;
  text-align: center;
  white-space: nowrap;
}

.global-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Copy Button Visual State Feedback */
.btn-copy.btn-copied, .btn-copied {
  background: #00e5a3 !important;
  color: #03050c !important;
  border-color: #00e5a3 !important;
  box-shadow: 0 0 16px rgba(0, 229, 163, 0.6) !important;
  transform: scale(1.04);
  transition: all 0.2s ease;
}
