/* public/css/topupModal.css - The AI Humanizer Deadline Panic Modal Styling */

.topup-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.topup-modal-card {
  background: #171b24;
  border: 1px solid #282e3a;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(31, 209, 123, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.topup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #9aa3b5;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.topup-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
}

.topup-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topup-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(31, 209, 123, 0.14);
  border: 1px solid #1fd17b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(31, 209, 123, 0.2);
}

.topup-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f0;
}

.topup-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9aa3b5;
}

.topup-notice-box {
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #e6e9f0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.topup-alert-icon {
  font-size: 14px;
  line-height: 1.2;
}

.topup-highlight {
  color: #ffb800;
  font-weight: 700;
}

.topup-tiers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topup-tier-card {
  background: #1f2430;
  border: 1.5px solid #2d3444;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topup-tier-card:hover {
  border-color: #404a5e;
  background: #232938;
}

.topup-tier-card.selected {
  border-color: #1fd17b;
  background: rgba(31, 209, 123, 0.06);
  box-shadow: 0 0 16px rgba(31, 209, 123, 0.12);
}

.topup-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topup-tier-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #1fd17b;
  color: #05140b;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2px;
}

.topup-tier-badge.pro {
  background: #3b82f6;
  color: #ffffff;
}

.topup-tier-name {
  font-weight: 600;
  font-size: 14px;
  color: #f0f0f0;
}

.topup-tier-price {
  font-size: 18px;
  font-weight: 800;
  color: #1fd17b;
  font-family: "JetBrains Mono", Menlo, monospace;
}

.topup-tier-desc {
  font-size: 11px;
  color: #9aa3b5;
  line-height: 1.4;
}

.topup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-topup-primary {
  background: #1fd17b;
  color: #05140b;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(31, 209, 123, 0.25);
  transition: all 0.2s ease;
}

.btn-topup-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-topup-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.topup-alt-text {
  text-align: center;
  font-size: 11px;
  color: #69707e;
}

.topup-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #05140b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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