/* ===== CSS Variables ===== */
:root {
  /* Color Palette */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  
  --bg-primary: #0a0b0e;
  --bg-secondary: #13141a;
  --bg-tertiary: #1a1b23;
  --bg-card: rgba(26, 27, 35, 0.7);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border: rgba(148, 163, 184, 0.1);
  --border-light: rgba(148, 163, 184, 0.2);
  
  /* Status Colors */
  --status-active: #10b981;
  --status-warning: #f59e0b;
  --status-expiring: #ef4444;
  --status-critical: #dc2626;
  --status-expired: #6b7280;
  --status-unlimited: #8b5cf6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #1a1b23 0%, #0a0b0e 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
  
  /* Animations */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ===== Animated Background ===== */
.bg-animation {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient-1,
.bg-gradient-2,
.bg-gradient-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.bg-gradient-1 {
  width: 600px;
  height: 600px;
  background: var(--gradient-primary);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.bg-gradient-2 {
  width: 500px;
  height: 500px;
  background: var(--gradient-secondary);
  bottom: -150px;
  right: -150px;
  animation-delay: 7s;
}

.bg-gradient-3 {
  width: 400px;
  height: 400px;
  background: var(--gradient-accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* ===== Login Page ===== */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #0a0b0e 0%, #1a1b23 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.login-card {
  background: rgba(26, 27, 35, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.5s ease-out;
}

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

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  width: 60px;
  height: 60px;
  color: var(--primary);
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-form {
  margin-bottom: 30px;
}

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

.input-wrapper {
  position: relative;
  transition: var(--transition);
}

.input-wrapper.focused .input-icon {
  color: var(--primary);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: var(--transition);
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.login-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.login-input::placeholder {
  color: var(--text-muted);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-message svg {
  width: 20px;
  height: 20px;
  color: #ef4444;
  flex-shrink: 0;
}

.error-message span {
  color: #fca5a5;
  font-size: 14px;
}

.login-button {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.login-button svg {
  width: 20px;
  height: 20px;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.login-footer {
  text-align: center;
}

.login-footer p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
}

.login-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.login-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.login-link:hover {
  color: var(--primary);
}

.login-link svg {
  width: 16px;
  height: 16px;
}

.separator {
  color: var(--text-muted);
}

/* ===== Main Dashboard ===== */
.portal-container {
  min-height: 100vh;
  background: var(--gradient-dark);
  position: relative;
}

.top-bar {
  background: rgba(26, 27, 35, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: white;
  box-shadow: var(--shadow-md);
}

.user-name {
  color: var(--text-primary);
  font-weight: 500;
}

.logout-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  color: #fca5a5;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

.logout-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* ===== Cards - FIXED HOVER ===== */
.card {
  background: rgba(26, 27, 35, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  /* NO TRANSFORM - prevents jumping */
  box-shadow: var(--shadow-xl);
  border-color: var(--border-light);
}

.card-header {
  padding: 20px 25px;
  background: rgba(99, 102, 241, 0.05);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--text-secondary);
}

.card-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.card-content {
  padding: 25px;
}

/* ===== Status Card ===== */
.status-card.status-active {
  border-color: rgba(16, 185, 129, 0.3);
}

.status-card.status-active .card-header {
  background: rgba(16, 185, 129, 0.05);
}

.status-card.status-warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.status-card.status-warning .card-header {
  background: rgba(245, 158, 11, 0.05);
}

.status-card.status-expiring {
  border-color: rgba(239, 68, 68, 0.3);
}

.status-card.status-expiring .card-header {
  background: rgba(239, 68, 68, 0.05);
}

.status-card.status-critical {
  border-color: rgba(220, 38, 38, 0.5);
  animation: criticalPulse 2s infinite;
}

@keyframes criticalPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(220, 38, 38, 0.3);
  }
}

.status-card.status-expired {
  border-color: rgba(107, 114, 128, 0.3);
  opacity: 0.8;
}

.status-card.status-unlimited {
  border-color: rgba(139, 92, 246, 0.3);
}

.status-card.status-unlimited .card-header {
  background: rgba(139, 92, 246, 0.05);
}

.status-display {
  text-align: center;
  padding: 20px 0;
}

.days-number {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.days-label {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.expiry-date {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
}

.status-bar {
  height: 8px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}

.status-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
}

.status-badge.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.status-expiring {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.status-critical {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-badge.status-expired {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.status-badge.status-unlimited {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.infinity-icon {
  width: 80px;
  height: 80px;
  color: var(--primary);
  margin-bottom: 20px;
  animation: rotate 10s linear infinite;
}

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

/* ===== Info Card ===== */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.server-type {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Extend Card - FIXED HOVER ===== */
.extend-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-extend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.extend-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 20px 10px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
}

.extend-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  /* NO TRANSFORM - prevents jumping */
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.extend-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.extend-btn:hover::before {
  width: 100px;
  height: 100px;
}

.extend-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.extend-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-extend {
  display: flex;
  gap: 10px;
}

.custom-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.custom-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.custom-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.custom-input::placeholder {
  color: var(--text-muted);
}

.custom-btn {
  padding: 12px 20px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.custom-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Actions Card - FIXED HOVER ===== */
.action-btn {
  width: 100%;
  padding: 14px 20px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: var(--transition);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.action-btn:hover {
  background: rgba(148, 163, 184, 0.1);
  /* NO TRANSFORM - prevents jumping */
  box-shadow: 0 5px 15px rgba(148, 163, 184, 0.1);
}

.action-btn.primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
}

.action-btn.primary:hover {
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
  /* NO TRANSFORM - prevents jumping */
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.modal-body {
  padding: 25px;
}

.support-options {
  display: grid;
  gap: 20px;
}

.support-item {
  padding: 20px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}

.support-item:hover {
  background: rgba(148, 163, 184, 0.1);
  transform: translateY(-2px);
}

.support-item svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

.support-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.support-item p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.response-time {
  color: var(--text-muted);
  font-size: 12px;
  display: inline-block;
  padding: 4px 8px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
  margin-top: 5px;
}

/* ===== Password Reset Modal ===== */
.password-reset-info {
  text-align: center;
  padding: 20px;
}

.password-reset-info h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.password-reset-info p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
}

.reset-option {
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.reset-option h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 16px;
}

.reset-option ul {
  list-style: none;
  padding-left: 0;
}

.reset-option ul li {
  padding: 5px 0;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.reset-option ul li:before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

.reset-option strong {
  color: var(--text-primary);
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: -100px;
  right: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  color: var(--text-primary);
  font-size: 14px;
  box-shadow: var(--shadow-xl);
  transition: bottom 0.3s ease;
  z-index: 2000;
  max-width: 400px;
}

.toast.show {
  bottom: 30px;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.toast.info {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
}

/* ===== Error Page ===== */
.error-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.error-container {
  width: 100%;
  max-width: 500px;
  position: relative;
}

.error-card {
  background: rgba(26, 27, 35, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.5s ease-out;
}

.error-icon-wrapper {
  margin-bottom: 30px;
}

.error-icon {
  width: 80px;
  height: 80px;
  color: #ef4444;
  animation: pulse 2s infinite;
}

.error-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.error-message p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-button {
  padding: 12px 24px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-weight: 500;
}

.error-button:hover {
  background: rgba(148, 163, 184, 0.2);
  transform: translateY(-2px);
}

.error-button.primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
}

.error-button.primary:hover {
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.error-button svg {
  width: 18px;
  height: 18px;
}

.error-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.error-footer p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== Loading Animation ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.05) 0%,
    rgba(148, 163, 184, 0.1) 50%,
    rgba(148, 163, 184, 0.05) 100%
  );
  background-size: 1000px 100%;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .top-bar {
    padding: 12px 20px;
  }
  
  .dashboard-grid {
    padding: 15px;
    gap: 15px;
  }
  
  .card-header {
    padding: 15px 20px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .days-number {
    font-size: 56px;
  }
  
  .quick-extend {
    grid-template-columns: 1fr;
  }
  
  .login-card,
  .error-card {
    padding: 30px 20px;
  }
}

/* ===== Navigation ===== */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.nav-link.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

/* ===== Discord Integration ===== */
.discord-connected {
  color: #5865F2;
  font-weight: 600;
}

.discord-link-btn {
  padding: 6px 12px;
  background: #5865F2;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.discord-link-btn:hover {
  background: #4752C4;
}

/* ===== VIP Section ===== */
.vip-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.vip-promo {
  text-align: center;
  padding: 20px;
}

.vip-benefits {
  list-style: none;
  padding: 20px 0;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.vip-benefits li {
  padding: 8px 0;
  color: var(--text-secondary);
}

.vip-purchase-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.vip-purchase-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.vip-price {
  font-size: 20px;
  font-weight: 700;
  color: #1a1b23;
}

.vip-lifetime {
  font-size: 12px;
  color: #333;
  text-transform: uppercase;
}

/* ===== Donation Section ===== */
.donation-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.donation-section h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.donation-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
}

.donation-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.donation-amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.donation-btn {
  padding: 10px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.donation-btn:hover,
.donation-btn.selected {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--primary);
}

.donation-custom {
  flex: 1;
  min-width: 100px;
  padding: 10px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
}

.donate-submit {
  padding: 12px 24px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.donate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* ===== FAQ Page ===== */
.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.faq-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.quick-link {
  padding: 10px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.quick-link:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.faq-section {
  margin-bottom: 60px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--primary);
}

.section-title svg {
  width: 32px;
  height: 32px;
}

.faq-item {
  background: rgba(26, 27, 35, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}

.faq-item h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 20px;
}

.faq-item p,
.faq-item li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item ul,
.faq-item ol {
  margin-left: 20px;
  margin-top: 10px;
}

.code-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  font-family: monospace;
  margin: 15px 0;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.device-card {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.device-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.commands-grid {
  display: grid;
  gap: 15px;
  margin-top: 15px;
}

.command {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.command code {
  color: var(--primary);
  font-weight: 600;
}

.command span {
  color: var(--text-secondary);
  font-size: 14px;
}

.quality-table {
  margin-top: 15px;
}

.quality-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.quality-row:last-child {
  border-bottom: none;
}

.contact-section {
  text-align: center;
  padding: 40px 20px;
  background: rgba(26, 27, 35, 0.7);
  border-radius: 16px;
  margin-top: 60px;
}

.contact-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
}

.contact-card svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

/* ===== Discord Link Page ===== */
.discord-link-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.discord-link-card {
  background: rgba(26, 27, 35, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.discord-logo {
  width: 80px;
  height: 80px;
  color: #5865F2;
  margin-bottom: 30px;
}

.discord-link-card h1 {
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instructions {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.steps {
  text-align: left;
  margin: 30px 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.token-display {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.token-display code {
  flex: 1;
  color: var(--primary);
  font-family: monospace;
  font-size: 16px;
  word-break: break-all;
}

.copy-btn {
  padding: 8px 16px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.copy-btn:hover {
  transform: scale(1.05);
}

.copy-btn.copied {
  background: var(--status-active);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.command-display {
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 20px 0;
}

.command-display code {
  color: #5865F2;
  font-size: 16px;
}

.discord-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #5865F2;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin: 20px 0;
  transition: var(--transition);
}

.discord-join-btn:hover {
  background: #4752C4;
  transform: translateY(-2px);
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}


/* ===== Shop Page Styling ===== */
.shop-section {
  margin-bottom: 60px;
}

.shop-hero {
  text-align: center;
  margin-bottom: 40px;
}

.shop-hero-icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
  margin-bottom: 20px;
}

.shop-hero h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.shop-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.pricing-card {
  background: rgba(26, 27, 35, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.pricing-card.vip-pricing {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(26, 27, 35, 0.9);
}

.pricing-card.vip-pricing:hover {
  border-color: #FFD700;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
}

.pricing-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-features {
  margin-bottom: 25px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.feature svg {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Custom Days Section */
.custom-days-section {
  background: rgba(26, 27, 35, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.custom-days-section h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.custom-days-section p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.custom-days-form {
  max-width: 500px;
  margin: 0 auto;
}

.custom-days-input-group {
  display: flex;
  gap: 15px;
}

.custom-days-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.custom-days-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.custom-days-btn {
  padding: 16px 30px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.custom-days-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.custom-days-btn svg {
  width: 20px;
  height: 20px;
}

/* Donation Card */
.donation-card {
  background: rgba(26, 27, 35, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.donation-form-full {
  margin-bottom: 30px;
}

.donation-amounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.donation-btn-large {
  padding: 25px 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.donation-btn-large:hover,
.donation-btn-large.selected {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.donation-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.donation-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.donation-custom-section {
  margin-bottom: 30px;
}

.donation-custom-section label {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 16px;
}

.donation-custom-input-group {
  display: flex;
  align-items: center;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.donation-custom-input-group:focus-within {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.currency-symbol {
  padding: 0 15px;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
}

.donation-custom-input {
  flex: 1;
  padding: 16px 20px 16px 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
}

.donation-custom-input:focus {
  outline: none;
}

.donate-submit-large {
  width: 100%;
  padding: 18px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.donate-submit-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.donate-submit-large svg {
  width: 24px;
  height: 24px;
}

.donation-info {
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
}

.donation-info p {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.donation-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.donation-info ul li {
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.donation-info ul li:before {
  content: "•";
  color: var(--primary);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.donation-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.donation-total p {
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.donation-total strong {
  color: var(--primary);
  font-size: 20px;
}

.donation-thanks {
  color: #10b981 !important;
  font-weight: 600 !important;
  margin-top: 10px;
}

/* Shop Footer */
.shop-footer {
  text-align: center;
  margin-top: 60px;
}

.back-to-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.back-to-dashboard:hover {
  background: rgba(148, 163, 184, 0.2);
  transform: translateY(-2px);
}

.back-to-dashboard svg {
  width: 20px;
  height: 20px;
}

/* VIP Section Specific */
.vip-section .pricing-card {
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .donation-amounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stat-item {
    flex-direction: column;
    text-align: center;
  }
  
  .donation-amounts-grid {
    grid-template-columns: 1fr;
  }
  
  .custom-days-input-group {
    flex-direction: column;
  }
  
  .custom-days-btn {
    justify-content: center;
  }
}