/* ============================================
   COMPLETE VISUAL MODERNIZATION
   Professional modern design - Visible changes
   ============================================ */

:root {
  --primary: #5b7fff;
  --primary-light: #00d4ff;
  --success: #1dd1a1;
  --danger: #ff4757;
  --warning: #ffa502;
  --purple: #1d4ed8;
}

/* ============================================
   GLOBAL MODERNIZATION
   ============================================ */

body {
  background: linear-gradient(135deg, #0a0d12 0%, #141820 100%) !important;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   HEADER MODERNIZATION
   ============================================ */

header, .header, [class*="navbar"] {
  background: rgba(15, 18, 30, 0.95) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(91, 127, 255, 0.15) !important;
  padding: 16px 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.logo, [class*="brand"] {
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #5b7fff, #00d4ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  transition: all 0.3s ease !important;
}

.logo:hover, [class*="brand"]:hover {
  filter: drop-shadow(0 0 15px rgba(91, 127, 255, 0.5)) !important;
  transform: scale(1.08) !important;
}

/* ============================================
   STAT CARDS - COMPLETE REDESIGN
   ============================================ */

.stat-card {
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.9) 0%, rgba(33, 40, 53, 0.4) 100%) !important;
  border: 1px solid rgba(91, 127, 255, 0.25) !important;
  border-radius: 16px !important;
  padding: 28px 24px !important;
  text-align: center !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
}

.stat-card::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  right: -50% !important;
  width: 250px !important;
  height: 250px !important;
  background: radial-gradient(circle, rgba(91, 127, 255, 0.1) 0%, transparent 70%) !important;
  pointer-events: none !important;
  transition: all 0.5s ease !important;
}

.stat-card:hover {
  border-color: rgba(91, 127, 255, 0.5) !important;
  transform: translateY(-12px) !important;
  box-shadow: 0 20px 50px rgba(91, 127, 255, 0.25), inset 0 0 20px rgba(91, 127, 255, 0.05) !important;
  background: linear-gradient(135deg, rgba(33, 40, 53, 0.95) 0%, rgba(42, 49, 66, 0.5) 100%) !important;
}

.stat-card:hover::before {
  top: -10% !important;
  right: -10% !important;
}

/* Stat Icons - Solid Colors */
.stat-icon {
  font-size: 40px !important;
  margin-bottom: 16px !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.stat-card:nth-child(1) .stat-icon { color: #5b7fff !important; }
.stat-card:nth-child(2) .stat-icon { color: #1dd1a1 !important; }
.stat-card:nth-child(3) .stat-icon { color: #ff6b9d !important; }
.stat-card:nth-child(4) .stat-icon { color: #ffa502 !important; }
.stat-card:nth-child(5) .stat-icon { color: #5b7fff !important; }

.stat-card:hover .stat-icon {
  transform: scale(1.2) rotate(12deg) !important;
}

/* Stat Title */
.stat-title {
  font-size: 9px !important;
  color: #7c8899 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 12px !important;
  font-weight: 800 !important;
}

/* Stat Value - Large & Gradient */
.stat-value {
  font-size: 36px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #5b7fff 0%, #00d4ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin: 16px 0 !important;
  letter-spacing: -1px !important;
}

.stat-card:hover .stat-value {
  filter: drop-shadow(0 0 12px rgba(91, 127, 255, 0.4)) !important;
}

/* Stat Description */
.stat-desc {
  font-size: 12px !important;
  color: #a8b2c1 !important;
  margin-top: 10px !important;
}

/* ============================================
   BUTTONS - MODERN DESIGN
   ============================================ */

.btn, button, a[class*="btn"], input[type="submit"], input[type="button"] {
  border-radius: 12px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn::before, button::before, a[class*="btn"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  transition: left 0.4s ease !important;
}

.btn:hover::before, button:hover::before {
  left: 100% !important;
}

/* Primary Buttons */
a[style*="background: linear-gradient(135deg, #374151"],
button[style*="background: linear-gradient(135deg, #374151"],
a[href*="plans.php"][style*="background: linear-gradient"] {
  background: linear-gradient(135deg, #5b7fff 0%, #00d4ff 100%) !important;
  box-shadow: 0 8px 24px rgba(91, 127, 255, 0.3) !important;
}

a[style*="background: linear-gradient(135deg, #374151"]:hover,
button[style*="background: linear-gradient(135deg, #374151"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(91, 127, 255, 0.5) !important;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

[style*="background: #1e293b"][style*="border: 1px solid #334155"],
[style*="border: 1px solid #334155"][style*="border-radius: 12px"],
.card {
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.8) 0%, rgba(33, 40, 53, 0.4) 100%) !important;
  border: 1px solid rgba(91, 127, 255, 0.2) !important;
  border-radius: 16px !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

[style*="background: #1e293b"]:hover,
[style*="border: 1px solid #334155"]:hover {
  border-color: rgba(91, 127, 255, 0.4) !important;
  box-shadow: 0 12px 32px rgba(91, 127, 255, 0.15) !important;
  transform: translateY(-4px) !important;
}

/* ============================================
   FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  background: rgba(42, 49, 66, 0.7) !important;
  border: 1.5px solid rgba(91, 127, 255, 0.2) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #5b7fff !important;
  background: rgba(91, 127, 255, 0.08) !important;
  box-shadow: 0 0 20px rgba(91, 127, 255, 0.25) !important;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

[style*="height: 8px"][style*="background: #0f172a"],
.progress {
  background: rgba(42, 49, 66, 0.8) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

[style*="background: linear-gradient(90deg, #374151"],
[style*="background: linear-gradient(90deg, #3b82f6"],
.progress-bar {
  background: linear-gradient(90deg, #5b7fff, #00d4ff) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 20px rgba(91, 127, 255, 0.3) !important;
}

/* ============================================
   BADGES & STATUS
   ============================================ */

.badge,
span[style*="background: rgba"],
span[style*="border: 1px solid"] {
  border-radius: 20px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
}

/* Online */
span[style*="rgba(34, 197, 94"],
span[style*="#22c55e"],
span[style*="#00d98e"] {
  background: rgba(29, 209, 161, 0.15) !important;
  color: #1dd1a1 !important;
  border: 1px solid #1dd1a1 !important;
}

/* Offline */
span[style*="rgba(239, 68, 68"],
span[style*="#ef4444"],
span[style*="#ff5252"] {
  background: rgba(255, 71, 87, 0.15) !important;
  color: #ff4757 !important;
  border: 1px solid #ff4757 !important;
}

/* ============================================
   LINKS & TEXT
   ============================================ */

a:not(.btn) {
  color: #00d4ff !important;
  transition: all 0.3s ease !important;
}

a:not(.btn):hover {
  color: #5b7fff !important;
  text-shadow: 0 0 10px rgba(91, 127, 255, 0.4) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .stat-card {
    padding: 20px !important;
  }

  .stat-value {
    font-size: 32px !important;
  }
}

@media (max-width: 768px) {
  .stat-card {
    padding: 16px !important;
  }

  .stat-value {
    font-size: 28px !important;
  }

  .stat-icon {
    font-size: 36px !important;
  }
}
