.wallet-btn {
  background: linear-gradient(135deg, #ec973c 0%, #d4801f 100%);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(236, 151, 60, 0.2);
  display: inline-flex;
  align-items: center;
  min-width: auto;
}

.wallet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 151, 60, 0.3);
}

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

.wallet-btn-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.wallet-icon-small {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.wallet-balance-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

/* Modal Styles */
.modern-wallet-modal {
  border-radius: 20px;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.wallet-header {
  background: linear-gradient(135deg, #ec973c 0%, #d4801f 100%);
  color: white;
  border-bottom: none;
  padding: 20px 24px;
  position: relative;
}

.wallet-title {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.wallet-icon {
  font-size: 24px;
}

.modern-close {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: white;
  font-size: 18px;
  opacity: 1;
}

.modern-close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.wallet-body {
  padding: 0;
  background: #f8fafc;
}

.wallet-container {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.wallet-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  transition: transform 0.3s ease;
  transform: translateX(100%);
}

.wallet-screen.active {
  transform: translateX(0);
}

.balance-screen {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.balance-display {
  margin-bottom: 40px;
}

.balance-label {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 500;
}

.balance-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 48px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.currency-symbol {
  font-size: 32px;
  color: #ec973c;
}

.currency-text {
  font-size: 18px;
  color: #64748b;
  font-weight: 500;
}

.wallet-actions {
  display: flex;
  gap: 20px;
}

.wallet-action-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;  
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.wallet-action-btn:not([disabled]):hover {
  border-color: #ec973c;
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 151, 60, 0.15);
}

.action-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.action-text {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.topup-screen,
.transactions-screen,
.payment-screen {
  background: white;
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.back-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  color: #64748b;
}

.back-btn:hover {
  background: #e2e8f0;
  color: #374151;
}

.screen-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.amount-input-container {
  margin-bottom: 30px;
}

.amount-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.amount-input-wrapper {
  position: relative;
  margin-bottom: 8px;
}

.input-currency {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #ec973c;
  font-weight: 600;
}

.amount-input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.amount-input:focus {
  outline: none;
  border-color: #ec973c;
  background: white;
  box-shadow: 0 0 0 4px rgba(236, 151, 60, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.quick-amount-btn {
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #374151;
}

.quick-amount-btn:hover {
  border-color: #ec973c;
  background: #fef7ed;
  color: #ec973c;
}

.quick-amount-btn.active {
  border-color: #ec973c;
  background: #ec973c;
  color: white;
}

.proceed-btn {
  width: 100%;
  background: linear-gradient(135deg, #ec973c 0%, #d4801f 100%);
  border: none;
  border-radius: 12px;
  padding: 16px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.proceed-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 151, 60, 0.3);
}

.proceed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.transactions-container {
  height: 350px;
  overflow-y: auto;
}

.transactions-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #64748b;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #ec973c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.payment-content {
  height: 350px;
  overflow-y: auto;
}

/* Animation for balance updates */
@keyframes balanceUpdate {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.balance-amount.updated {
  animation: balanceUpdate 0.5s ease;
}

@media (max-width: 768px) {
  .wallet-btn {
    padding: 6px 10px;
  }

  .wallet-balance-text {
    font-size: 12px;
  }

  .wallet-img {
    width: 14px;
    height: 14px;
  }

  .wallet-container {
    height: 450px;
  }

  .wallet-screen {
    padding: 20px;
  }

  .balance-amount {
    font-size: 36px;
  }

  .wallet-actions {
    flex-direction: column;
    width: 100%;
  }

  .wallet-action-btn {
    width: 100%;
  }
}

/* checkout screen */

.modern-checkout-container {
  padding: 20px;
  background: white;
  border-radius: 16px;
  max-width: 100%;
}

.checkout-header {
  text-align: center;
  margin-bottom: 24px;
}

.checkout-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.checkout-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.payment-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
  user-select: none;
}

.amount-label {
  font-size: 14px;
  color: #718096;
  margin-bottom: 8px;
  font-weight: 500;
}

.amount-value {
  font-size: 36px;
  font-weight: 800;
  color: #2d3748;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.currency-symbol {
  font-size: 24px;
  color: #667eea;
}

.payment-amount {
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  border-radius: 16px;
  padding: 20px;
  user-select: none;
  margin-bottom: 30px;
  text-align: center;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.payment-amount:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total {
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  font-weight: 600;
  color: #1e293b;
}

.summary-label {
  color: #64748b;
  font-size: 14px;
}

.summary-value {
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
}

.payment-methods-info {
  margin-bottom: 24px;
  user-select: none;
}

.methods-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.method-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.method-item:hover {
  border-color: #667eea;
  background: #eff6ff;
}

.method-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.method-name {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.modern-pay-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.modern-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

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

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.btn-icon {
  font-size: 18px;
}

.btn-loading {
  display: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.modern-pay-btn.loading .btn-text,
.modern-pay-btn.loading .btn-icon {
  display: none;
}

.modern-pay-btn.loading .btn-loading {
  display: block;
}

.security-info {
  text-align: center;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #16a34a;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.security-icon {
  font-size: 14px;
}

.security-text {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-item {
    padding: 8px 4px;
  }

  .amount-value {
    font-size: 28px;
  }

  .method-name {
    font-size: 10px;
  }
}
