/* ========================================= */
/* ========== PROFESSIONAL ENHANCEMENTS === */
/* ========================================= */

/* ===== SERVER STATUS INDICATOR ===== */
.status-text.online .icon svg,
.status-text.online .icon {
  color: #10B981;
  fill: #10B981;
}

.status-text.online::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.status-number {
  font-weight: 700;
  color: #10B981;
}

.discord-join {
  color: var(--aurora-cyan);
  font-weight: 600;
}

/* ===== SMOOTH TRANSITIONS ===== */
/* Removed global transition override - was causing performance issues */

/* ===== CART BADGE ANIMATION ===== */
@keyframes cartBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.cart-badge.bounce {
  animation: cartBounce 0.35s ease-out;
}

.cart-badge {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ===== TOAST NOTIFICATIONS ===== */
.aurora-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.aurora-toast {
  background: linear-gradient(135deg, rgba(33, 28, 46, 0.98), rgba(42, 36, 64, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.2s ease-out;
  pointer-events: auto;
  max-width: 320px;
  will-change: transform, opacity;
}

.aurora-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.aurora-toast.hide {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.2s ease-in, opacity 0.15s ease-in;
}

.aurora-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.aurora-toast-icon.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: #10B981;
}

.aurora-toast-icon.info {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 217, 255, 0.1));
  color: #00D9FF;
}

.aurora-toast-icon.warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
  color: #FBBF24;
}

.aurora-toast-content {
  flex: 1;
}

.aurora-toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.aurora-toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.aurora-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.aurora-toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ===== LOADING BUTTON STATE ===== */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

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

/* ===== PACKAGE CARD ENHANCEMENTS ===== */
.package-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.1);
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aurora-purple), var(--aurora-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px 12px 0 0;
}

.package-card:hover::before {
  opacity: 1;
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn-theme {
  position: relative;
  overflow: hidden;
}

.btn-theme::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn-theme:hover::before {
  left: 100%;
}

/* ===== HELP TOOLTIPS ===== */
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  color: var(--aurora-purple);
  font-size: 0.7rem;
  cursor: help;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.help-tip:hover {
  background: rgba(168, 85, 247, 0.4);
  transform: scale(1.1);
}

/* ===== PURCHASE STEPS INDICATOR ===== */
.purchase-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(168, 85, 247, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
}

.purchase-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.purchase-step.active {
  background: linear-gradient(135deg, var(--aurora-purple), var(--aurora-cyan));
  color: white;
}

.purchase-step.completed {
  color: var(--aurora-green);
}

.purchase-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.purchase-step.active .purchase-step-icon {
  background: rgba(255, 255, 255, 0.2);
}

.purchase-step.completed .purchase-step-icon {
  background: rgba(16, 185, 129, 0.2);
}

.purchase-step-divider {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}

/* ===== SKELETON LOADING ===== */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}

/* ===== SMOOTH SCROLL INDICATOR ===== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aurora-purple), var(--aurora-cyan));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ===== CATEGORY ACTIVE INDICATOR ===== */
.category-item.active {
  position: relative;
}

.category-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--aurora-purple), var(--aurora-cyan));
  border-radius: 3px;
}

/* ===== IMPROVED FORM INPUTS ===== */
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: var(--aurora-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  outline: none;
}

/* ===== PRICE HIGHLIGHT ===== */
.price-current {
  position: relative;
}

.package-card:hover .price-current {
  color: var(--aurora-cyan);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--aurora-purple);
  opacity: 0.5;
  margin-bottom: 16px;
}

.empty-state-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== SUBTLE ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== MOBILE TOUCH FEEDBACK ===== */
@media (hover: none) {
  .btn-theme:active,
  .package-card:active,
  .category-item:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* ===== ACCESSIBILITY FOCUS STYLES ===== */
:focus-visible {
  outline: 2px solid var(--aurora-purple);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== DISCORD LINKING MODAL ===== */
.discord-link-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.discord-link-modal.open {
  opacity: 1;
  visibility: visible;
}

.discord-link-content {
  background: linear-gradient(135deg, #211c2e, #2a2440);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(88, 101, 242, 0.2);
}

.discord-link-modal.open .discord-link-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.discord-link-header {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
  padding: 28px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(88, 101, 242, 0.2);
}

.discord-link-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #5865F2, #7289da);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}

.discord-link-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
}

.discord-link-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.discord-link-body {
  padding: 24px;
}

.discord-info-row {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.discord-info-item i {
  color: #10B981;
  font-size: 1.1rem;
}

.discord-info-item strong {
  color: white;
}

.discord-input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.discord-input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #5865F2;
  font-size: 1.2rem;
}

#discord-tag-input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  color: white;
  outline: none;
  transition: all 0.3s ease;
}

#discord-tag-input:focus {
  border-color: #5865F2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

#discord-tag-input::placeholder {
  color: var(--text-muted);
}

#discord-tag-input.error {
  border-color: #ef4444;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.discord-hint {
  font-size: 0.8rem;
  color: #10B981;
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.discord-hint i {
  color: #10B981;
}

.discord-link-footer {
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.discord-cancel-btn {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.discord-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.discord-confirm-btn {
  flex: 2;
  padding: 14px 20px;
  background: linear-gradient(135deg, #5865F2, #7289da);
  border: none;
  color: white;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* Mobile */
@media (max-width: 480px) {
  .discord-link-content {
    margin: 10px;
    max-width: none;
  }

  .discord-link-footer {
    flex-direction: column;
  }

  .discord-cancel-btn,
  .discord-confirm-btn {
    flex: none;
    width: 100%;
  }
}
