/**
 * Universal Take Profit Popup CSS - Professional Green Edition
 * Lightweight, fast, and professional design with mobile responsiveness
 * Author: Elite Scope Trader
 * Version: 2.1
 */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

/* Main popup overlay */
.universal-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
}

/* Main popup container */
.universal-popup {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
      0 25px 50px -12px rgba(34, 197, 94, 0.25),
      0 0 0 1px rgba(34, 197, 94, 0.1);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid #22c55e;
}

.universal-popup.show {
  transform: scale(1);
  opacity: 1;
}

/* Close X button */
.popup-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #374151;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-close-x:hover {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-close-x::after {
  content: '×';
}

/* Header section */
.universal-popup-header {
  background: linear-gradient(135deg, #18cebf 0%, #2ac7ad 100%);
  padding: 24px;
  text-align: center;
  position: relative;
  border-radius: 16px 16px 0 0;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon::after {
  content: '✓';
  color: white;
  font-size: 24px;
  font-weight: bold;
}

#universalPopupTitle {
  color: white;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  padding-right: 40px; /* Space for X button */
}

/* Content section */
.universal-popup-content {
  padding: 32px 24px 24px;
}

/* Profit display */
.profit-display {
  text-align: center;
  margin-bottom: 32px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.profit-amount {
  font-size: 48px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 4px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.profit-label {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Social sharing section */
.social-sharing {
  margin-bottom: 24px;
}

.social-title {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.container1 {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* AddToAny button styling */
.a2a_kit {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.a2a_button_whatsapp,
.a2a_button_x,
.a2a_button_twitter,
.a2a_button_facebook {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  border: 2px solid rgba(34, 197, 94, 0.2) !important;
}

.a2a_button_whatsapp:hover,
.a2a_button_x:hover,
.a2a_button_twitter:hover,
.a2a_button_facebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.25);
  border-color: #1cccaf !important;
}

.share-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(34, 197, 94, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  background-size: 24px 24px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: white;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.25);
  border-color: #22dfbf;
}

/* Action buttons */
.container2 {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.affiliate-btn,
.community-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: none; /* Hide both buttons */
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.affiliate-btn {
  background: #26dfc0;
  color: white;
}

.affiliate-btn:hover {
  background: #19bba0;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(7, 161, 149, 0.3);
}

.community-btn {
  background: #1b9b85;
  color: white;
}

.community-btn:hover {
  background: #0e7e7e;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(21, 128, 61, 0.3);
}

/* Close button */
.close-footer {
  padding: 0 24px 24px;
}

.universal-close-btn {
  width: 100%;
  background: #f1f5f9;
  color: #475569;
  border: 2px solid rgba(34, 197, 94, 0.2);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.universal-close-btn:hover {
  background: #e2e8f0;
  border-color: #22c0c5;
  color: #22c5af;
  transform: translateY(-1px);
}

/* Enhanced Mobile Responsive design */
@media (max-width: 480px) {
  .universal-popup-overlay {
      padding: 8px;
      align-items: flex-start;
      padding-top: 20px;
  }
  
  .universal-popup {
      width: 100%;
      max-width: none;
      margin: 0;
      border-radius: 12px;
  }
  
  .universal-popup-header {
      padding: 20px 16px;
      border-radius: 12px 12px 0 0;
  }
  
  .universal-popup-content {
      padding: 20px 16px 16px;
  }
  
  .profit-display {
      padding: 16px;
      margin-bottom: 24px;
  }
  
  .profit-amount {
      font-size: 36px;
  }
  
  #universalPopupTitle {
      font-size: 18px;
      padding-right: 35px;
  }
  
  .popup-close-x {
      width: 28px;
      height: 28px;
      top: 10px;
      right: 10px;
      font-size: 16px;
  }
  
  .container2 {
      flex-direction: column;
      gap: 8px;
  }
  
  .affiliate-btn,
  .community-btn {
      padding: 14px 16px;
      font-size: 15px;
  }
  
  .a2a_kit {
      gap: 6px;
  }
  
  .a2a_button_whatsapp,
  .a2a_button_x,
  .a2a_button_twitter,
  .a2a_button_facebook,
  .share-button {
      width: 40px !important;
      height: 40px !important;
  }
  
  .close-footer {
      padding: 0 16px 16px;
  }
  
  .social-sharing {
      margin-bottom: 20px;
  }
  
  .container1 {
      margin-bottom: 16px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .universal-popup-overlay {
      padding: 4px;
      padding-top: 10px;
  }
  
  .profit-amount {
      font-size: 32px;
  }
  
  #universalPopupTitle {
      font-size: 16px;
  }
  
  .a2a_button_whatsapp,
  .a2a_button_x,
  .a2a_button_twitter,
  .a2a_button_facebook,
  .share-button {
      width: 36px !important;
      height: 36px !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .universal-popup {
      background: #1e293b;
      color: #f1f5f9;
      border-color: #22c5af;
  }
  
  .popup-close-x {
      background: rgba(30, 41, 59, 0.9);
      color: #cbd5e1;
  }
  
  .popup-close-x:hover {
      background: #334155;
      color: #ef4444;
  }
  
  .profit-label {
      color: #94a3b8;
  }
  
  .social-title {
      color: #cbd5e1;
  }
  
  .universal-close-btn {
      background: #334155;
      color: #cbd5e1;
      border-color: rgba(34, 197, 94, 0.3);
  }
  
  .universal-close-btn:hover {
      background: #475569;
      border-color: #24d1c3;
      color: #28c4b7;
  }
  
  .profit-display {
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
      border-color: rgba(34, 197, 189, 0.3);
  }
}

/* Remove heavy animations - keep only essential ones */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: scale(0.95);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.universal-popup.show {
  animation: fadeIn 0.2s ease-out;
}

/* Hide money rain and other heavy animations */
.money-rain {
  display: none;
}