/* ============================================
   CURRENCY MODULE STYLES
   ============================================ */

/* Balance Badge in Footer Menu */
#currency-balance-badge {
  /* Inherit from .footer-menu-btn but override for currency style */
  background: linear-gradient(135deg, #FFEB00, #FFD700) !important;
  border: 2px solid #000 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  min-width: 60px !important;
  box-shadow: 0 2px 8px rgba(255, 235, 0, 0.4);
}

#currency-balance-badge:hover {
  transform: scale(1.15) !important;
  background: linear-gradient(135deg, #FFD700, #FFEB00) !important;
  box-shadow: 0 4px 12px rgba(255, 235, 0, 0.6);
}

#currency-balance-badge .balance-badge-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 16px;
  font-weight: 900;
  color: #000;
}

#currency-balance-badge .balance-amount {
  font-size: 16px;
  font-weight: 900;
  color: #000;
}

#currency-balance-badge .balance-currency {
  font-size: 18px;
}

#currency-balance-badge .footer-label {
  font-size: 9px;
  font-weight: 700;
  color: #000;
  margin-top: 2px;
}

/* Balance Change Animations */
@keyframes balance-pulse-increase {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); color: #00FF00; }
}

@keyframes balance-pulse-decrease {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.8); color: #FF4444; }
}

.balance-increase {
  animation: balance-pulse-increase 0.6s ease;
}

.balance-decrease {
  animation: balance-pulse-decrease 0.6s ease;
}

/* Currency Modal Overlay */
.currency-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

/* Currency Modal */
.currency-modal {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 16px;
  border: 2px solid #FFEB00;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(255, 235, 0, 0.3);
}

/* Modal Header */
.currency-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #FFEB00;
}

.currency-modal-header h2 {
  margin: 0;
  color: #FFEB00;
  font-size: 1.5rem;
  font-weight: 900;
}

.close-btn {
  background: transparent;
  border: none;
  color: #FFEB00;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 235, 0, 0.2);
  transform: rotate(90deg);
}

/* Balance Display */
.balance-display {
  padding: 32px 24px;
  text-align: center;
}

.balance-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.balance-large {
  font-size: 4rem;
  font-weight: 900;
  color: #FFEB00;
  line-height: 1;
}

.balance-currency-large {
  font-size: 4rem;
  line-height: 1;
}

.balance-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
}

.balance-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFEB00;
}

/* Currency Actions */
.currency-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px 24px 24px;
}

.currency-btn {
  padding: 14px 24px;
  border-radius: 10px;
  border: 2px solid #FFEB00;
  background: #111;
  color: #FFEB00;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.currency-btn:hover {
  background: #FFEB00;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 235, 0, 0.4);
}

/* Purchase Modal */
.purchase-modal {
  max-width: 800px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 24px;
}

.currency-package {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.currency-package:hover {
  border-color: #FFEB00;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(255, 235, 0, 0.3);
}

.package-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #FF4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.package-name {
  font-size: 0.9rem;
  color: #a3a3a3;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.package-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #FFEB00;
  margin-bottom: 8px;
}

.package-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.package-bonus {
  font-size: 0.8rem;
  color: #00FF00;
  margin-bottom: 16px;
  min-height: 20px;
}

.package-buy-btn {
  width: 100%;
  padding: 10px;
  background: #FFEB00;
  color: #111;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.package-buy-btn:hover {
  background: #FFD700;
  transform: scale(1.05);
}

.purchase-note {
  text-align: center;
  padding: 16px;
  color: #a3a3a3;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

/* Transfer Modal */
.transfer-modal {
  max-width: 500px;
}

.transfer-form {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #FFEB00 !important;
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 15px rgba(255, 235, 0, 1), 0 0 8px rgba(255, 235, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 1) !important;
  -webkit-text-fill-color: #FFEB00 !important;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #111 !important;
  border: 2px solid #333;
  border-radius: 8px;
  color: #fff !important;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  -webkit-text-fill-color: #fff !important;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #111 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: #111 !important;
  caret-color: #fff !important;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFEB00;
  box-shadow: 0 0 0 3px rgba(255, 235, 0, 0.1);
}

.preset-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.preset-amount-btn {
  padding: 8px 16px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 8px;
  color: #FFEB00;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-amount-btn:hover {
  border-color: #FFEB00;
  background: #FFEB00;
  color: #111;
}

.transfer-info {
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
}

.transfer-info strong {
  color: #FFEB00;
}

.transfer-limits {
  font-size: 0.85rem;
  color: #a3a3a3;
}

.transfer-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

/* History Modal */
.history-modal {
  max-width: 600px;
}

.transfers-list {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.transfer-item {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.transfer-item:hover {
  border-color: #FFEB00;
}

.transfer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.transfer-user {
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}

.transfer-amount {
  font-size: 1.2rem;
  font-weight: 900;
}

.transfer-amount.transfer-sent {
  color: #FF4444;
}

.transfer-amount.transfer-received {
  color: #00FF00;
}

.transfer-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #a3a3a3;
  margin-bottom: 8px;
}

.transfer-type {
  background: #333;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
}

.transfer-message {
  font-size: 0.9rem;
  color: #e5e5e5;
  font-style: italic;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #333;
}

.no-transfers {
  text-align: center;
  color: #a3a3a3;
  padding: 40px 20px;
  font-size: 1.1rem;
}

/* Success Toast */
.success-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #00FF00, #00CC00);
  color: #000;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 255, 0, 0.4);
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .currency-modal {
    width: 95%;
    max-height: 95vh;
  }

  .balance-large {
    font-size: 3rem;
  }

  .balance-currency-large {
    font-size: 3rem;
  }

  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .currency-actions {
    flex-direction: column;
  }

  .currency-btn {
    width: 100%;
  }

  .balance-stats {
    flex-direction: column;
    gap: 16px;
  }
}

/* Scrollbar Styling */
.transfers-list::-webkit-scrollbar,
.currency-modal::-webkit-scrollbar {
  width: 8px;
}

.transfers-list::-webkit-scrollbar-track,
.currency-modal::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.transfers-list::-webkit-scrollbar-thumb,
.currency-modal::-webkit-scrollbar-thumb {
  background: #FFEB00;
  border-radius: 4px;
}

.transfers-list::-webkit-scrollbar-thumb:hover,
.currency-modal::-webkit-scrollbar-thumb:hover {
  background: #FFD700;
}

/* ============================================
   PAYMENT GATEWAY STYLES (New)
   ============================================ */

/* Purchase Intro */
.purchase-intro {
  text-align: center;
  padding: 16px 24px 0 24px;
  color: #a3a3a3;
  font-size: 0.95rem;
}

.purchase-intro p {
  margin: 0;
}

/* Package Base Amount */
.package-base {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 8px;
}

/* Special Package Highlights */
.currency-package.popular {
  border-color: #FF4444;
  box-shadow: 0 0 16px rgba(255, 68, 68, 0.3);
}

.currency-package.best-value {
  border-color: #00FF00;
  box-shadow: 0 0 16px rgba(0, 255, 0, 0.3);
}

.currency-package.popular .package-badge {
  background: #FF4444;
}

.currency-package.best-value .package-badge {
  background: #00FF00;
  color: #000;
}

/* Payment Methods Footer */
.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.payment-badge {
  background: #1a1a1a;
  border: 2px solid #FFEB00;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFEB00;
}

.payment-info {
  font-size: 0.8rem;
  color: #a3a3a3;
  text-align: center;
}

/* Gateway Selection Modal */
.gateway-modal {
  max-width: 600px;
}

.gateway-selection {
  padding: 24px;
}

.selected-package {
  background: #111;
  border: 2px solid #FFEB00;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.package-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.summary-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFEB00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}

.summary-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #00FF00;
}

/* Gateway Options */
.gateway-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.gateway-btn {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gateway-btn:hover {
  border-color: #FFEB00;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 235, 0, 0.3);
}

.gateway-logo {
  font-size: 3rem;
  line-height: 1;
}

.gateway-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFEB00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gateway-desc {
  font-size: 0.9rem;
  color: #a3a3a3;
}

.gateway-features {
  font-size: 0.85rem;
  color: #00FF00;
  font-weight: 700;
  line-height: 1.6;
}

.gateway-btn.paysera-btn:hover {
  border-color: #FFD700;
}

.gateway-btn.revolut-btn:hover {
  border-color: #0ea5e9;
}

.gateway-note {
  text-align: center;
  font-size: 0.85rem;
  color: #a3a3a3;
  padding: 16px;
  background: #111;
  border-radius: 8px;
}

.gateway-note i {
  color: #00FF00;
  margin-right: 8px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10002;
  backdrop-filter: blur(8px);
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #333;
  border-top-color: #FFEB00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-message {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFEB00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive for Gateway Selection */
@media (max-width: 768px) {
  .gateway-options {
    grid-template-columns: 1fr;
  }

  .package-summary {
    flex-direction: column;
    text-align: center;
  }
}
