html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* ============================================================
   MODERN UI COMPONENTS - Global Styles
   ============================================================ */

/* Modern Card */
.modern-card {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 0;
  height: auto;
  margin: 0;
  line-height: 1.5;
}

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

.modern-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 106, 0, 0.3);
}

.modern-card:hover::before {
  left: 100%;
}

/* Modern Input */
.modern-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid rgba(255, 106, 0, 0.2);
  background: rgba(26, 26, 26, 0.8);
  color: #f2f2f2;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  box-sizing: border-box;
  margin: 0;
  height: auto;
}

.modern-input:focus {
  border-color: #ff6a00;
  background: rgba(30, 30, 30, 0.9);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
  transform: none;
}

.modern-input::placeholder {
  color: #666;
}

/* Modern Button */
.modern-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ff5500, #ff3c00);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.4);
  box-sizing: border-box;
  margin: 0;
  height: auto;
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.modern-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modern-btn:hover {
  background: linear-gradient(145deg, #ff6b1a, #ff5500);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 85, 0, 0.6);
}

.modern-btn:active {
  transform: translateY(-1px) scale(1);
}

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

/* Modern Badge */
.modern-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modern-badge:hover {
  transform: scale(1.05);
}

.badge-banned {
  background: linear-gradient(135deg, #660000, #cc0000);
  color: white;
  border: 2px solid #ff0000;
  animation: bannedPulse 2s infinite;
}

.badge-high {
  background: linear-gradient(135deg, #ff3300, #ff6600);
  color: white;
}

.badge-medium {
  background: linear-gradient(135deg, #ff8800, #ffaa00);
  color: black;
}

.badge-low {
  background: linear-gradient(135deg, #00aa33, #00dd55);
  color: white;
}

@keyframes bannedPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6), inset 0 0 10px rgba(255, 0, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.9), inset 0 0 15px rgba(255, 0, 0, 0.4);
  }
}

/* Modern Loading Overlay */
.modern-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  flex-direction: column;
  animation: fadeIn 0.3s;
}

.modern-loading-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modern-loading-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 106, 0, 0.2);
  border-top: 4px solid #ff6a00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.5);
}

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

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

.modern-loading-text {
  color: #ff6a00;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulseText 2s infinite;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Modern Stat Box */
.modern-stat-box {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.8), rgba(10, 10, 10, 0.8));
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.modern-stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff6a00, transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.modern-stat-box:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 106, 0, 0.2);
}

.modern-stat-box:hover::before {
  transform: translateX(100%);
}

.modern-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #ff6a00;
  margin: 8px 0;
  text-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
}

.modern-stat-label {
  color: #888;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Modern Player Card */
.modern-player-card {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 200px;
  width: 100%;
}

.modern-player-card img {
  transition: all 0.3s;
}

.modern-player-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.1), transparent);
  transition: left 0.6s;
}

.modern-player-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 106, 0, 0.3);
  text-decoration: none;
  color: inherit;
}

.modern-player-card:hover::after {
  left: 100%;
}

.modern-player-card:hover img {
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.7) !important;
  transform: scale(1.05);
}

/* Modern Section Title */
.modern-section-title {
  text-align: center;
  color: #ff6a00;
  font-size: 32px;
  font-weight: 700;
  margin: 40px 0 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
  position: relative;
  padding-bottom: 15px;
}

.modern-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff6a00, transparent);
}

/* Contact Float Button */
.contact-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(145deg, #ff5500, #ff3c00);
  padding: 14px 22px;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 120, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 150, 0, 0.8);
  text-decoration: none;
  color: #fff;
}

.private-badge {
  background: #660000;
  color: #ff9999;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin-left: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .modern-card {
    padding: 20px;
    border-radius: 12px;
  }

  .modern-input {
    padding: 12px 16px;
    font-size: 15px;
  }

  .modern-btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .modern-section-title {
    font-size: 24px;
  }

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

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Performance: GPU Acceleration */
.modern-card,
.modern-btn,
.modern-player-card,
.modern-stat-box {
  will-change: transform;
  transform: translateZ(0);
}

/* ============================================================
   NEW SCAN BUTTON - Fixed bottom left
   ============================================================ */
.newscan-bottom-left {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  z-index: 10000 !important;
  padding: 12px 20px !important;
  background: rgba(255, 106, 0, 0.9) !important;
  color: white !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 15px !important;
  border-radius: 12px !important;
  border: 2px solid rgba(255, 106, 0, 1) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  pointer-events: auto !important;
}

.newscan-bottom-left:hover {
  background: rgba(255, 106, 0, 1) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.6) !important;
  color: white !important;
}

.newscan-bottom-left:active {
  transform: translateY(-1px) scale(1.02) !important;
}

.newscan-bottom-left span {
  color: inherit !important;
  text-decoration: none !important;
}

/* ============================================================
   NIGHT THEME - Global Styles
   ============================================================ */
body.night-theme .modern-card {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.95), rgba(15, 15, 30, 0.95)) !important;
  border: 1px solid rgba(74, 144, 226, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
  box-sizing: border-box !important;
  padding: 24px !important;
  border-radius: 16px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  outline: none !important;
  line-height: 1.5 !important;
}

body.night-theme .modern-card:hover {
  border-color: rgba(74, 144, 226, 0.4) !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 20px rgba(74, 144, 226, 0.3) !important;
}

body.night-theme .modern-card::before {
  background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent) !important;
}

body.night-theme .modern-input {
  border: 2px solid rgba(74, 144, 226, 0.2) !important;
  background: rgba(20, 20, 35, 0.8) !important;
  box-sizing: border-box !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  width: 100% !important;
  margin: 0 !important;
  outline: none !important;
  height: auto !important;
}

body.night-theme .modern-input:focus {
  border-color: #4a90e2 !important;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.3) !important;
  transform: none !important;
  background: rgba(25, 25, 40, 0.9) !important;
}

body.night-theme .modern-btn {
  background: linear-gradient(145deg, #4a90e2, #357abd) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3) !important;
  padding: 14px 24px !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  height: auto !important;
}

body.night-theme .modern-btn:hover {
  background: linear-gradient(145deg, #5ba0f2, #4a90e2) !important;
  box-shadow: 0 6px 25px rgba(74, 144, 226, 0.5) !important;
}

body.night-theme .modern-badge.badge-high,
body.night-theme .modern-badge.badge-extreme {
  background: linear-gradient(135deg, #4a5fcc, #3a4fbb) !important;
  border: 2px solid #5a6fdd !important;
}

body.night-theme .modern-badge.badge-medium {
  background: linear-gradient(135deg, #4a8acc, #3a7abb) !important;
  border: 2px solid #5a9add !important;
}

body.night-theme .modern-badge.badge-low {
  background: linear-gradient(135deg, #4acc88, #3abb77) !important;
  border: 2px solid #5add99 !important;
}


body.night-theme .modern-player-card:hover {
  border-color: rgba(74, 144, 226, 0.4) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(74, 144, 226, 0.3) !important;
}

/* Recently Scanned - Avatar borders fixed size */
body.night-theme .modern-player-card img[style*="border:3px solid #ff6a00"] {
  border: 3px solid #4a90e2 !important;
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.4) !important;
}

body.night-theme .modern-player-card img[style*="border:2px solid #ff3300"],
body.night-theme .modern-player-card img[style*="border:1px solid #ff6a00"] {
  border-width: 2px !important;
  border-color: #4a5fcc !important;
}

body.night-theme .modern-player-card img[style*="border:1px solid #ff6a00"] {
  border-width: 1px !important;
  border-color: #4a90e2 !important;
}

/* Recently Scanned - Room card highest risk info */
body.night-theme .modern-player-card div[style*="background:#1a1a1a"][style*="border:1px solid #ff3300"] {
  background: #1a1a2a !important;
  border: 1px solid #4a5fcc !important;
}

body.night-theme .modern-player-card div[style*="color:#ff3300"] {
  color: #4a5fcc !important;
}

/* Recently Scanned - Room card title color */
body.night-theme .modern-player-card div[style*="color:#ff6a00"][style*="font-size:16px"] {
  color: #4a90e2 !important;
}

/* Recently Scanned - Player card stats color */
body.night-theme .modern-player-card span[style*="color:#ff6a00"] {
  color: #4a90e2 !important;
}

body.night-theme .modern-section-title {
  color: #4a90e2 !important;
}

body.night-theme .modern-stat-box {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.95), rgba(15, 15, 30, 0.95)) !important;
  border: 1px solid rgba(74, 144, 226, 0.2) !important;
  box-sizing: border-box !important;
}

body.night-theme .modern-loading-overlay {
  background: rgba(0, 0, 0, 0.95) !important;
}

body.night-theme .modern-loading-spinner {
  border: 4px solid rgba(74, 144, 226, 0.2) !important;
  border-top: 4px solid #4a90e2 !important;
}

/* ============================================================ 
   NEW TOP BAR 
   ============================================================ */
.main-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 10, 10, 0.85);
  /* Dark semi-transparent background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 106, 0, 0.2);
  z-index: 20000;
  /* Highest priority */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.night-theme .main-top-bar {
  background: rgba(15, 15, 20, 0.85);
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Adjustments for elements moving into Top Bar */
.logo-home-link {
  position: static !important;
  /* Reset fixed positioning */
  margin: 0;
  text-decoration: none;
}

/* Reset Settings Panel & Auth Panel Containers */
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Redefine Auth Buttons for Top Bar context */
.top-bar-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.top-bar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Special Buttons in Top Bar */
.top-bar-btn.btn-premium {
  background: linear-gradient(135deg, #ff5500, #ff3c00);
  border: none;
  color: white;
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.3);
}

/* Logout specifically */
.top-bar-btn.btn-logout {
  border-color: rgba(255, 50, 50, 0.3);
  color: #ff6666;
}

.top-bar-btn.btn-logout:hover {
  background: rgba(255, 0, 0, 0.1);
  color: #ff4444;
}

/* Daily Free Scan Compact */
.daily-limit-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 20px;
  margin-right: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.daily-limit-compact:hover {
  background: rgba(255, 106, 0, 0.2);
  transform: scale(1.02);
}

.daily-limit-compact .limit-icon {
  font-size: 14px;
}

.daily-limit-compact .limit-count {
  background: #ff6a00;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
}

body.night-theme .daily-limit-compact {
  background: rgba(74, 144, 226, 0.1);
  border-color: rgba(74, 144, 226, 0.3);
}

body.night-theme .daily-limit-compact .limit-count {
  background: #4a90e2;
}

/* Adjust Page Content */
.page-wrapper {
  margin-top: 90px !important;
  /* Push down content */
}

/* Updates Box Adjustment */
.updates-box {
  top: 90px !important;
}

/* Faceit Scan Btn Adjustment */
.faceit-scan-btn {
  top: 90px !important;
}

/* Theme/Lang Switcher in Top Bar context */
.switcher-group {
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
  border-radius: 8px;
  display: flex;
  gap: 2px;
}

.switcher-btn {
  background: transparent;
  border: none;
  color: #888;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s;
}

.switcher-btn:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
}

.switcher-btn.active {
  background: #333;
  color: #ff6a00;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.night-theme .switcher-btn.active {
  color: #4a90e2;
  background: #252a35;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .main-top-bar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 10px;
  }

  .top-bar-left {
    width: 100%;
    justify-content: space-between;
  }

  .top-bar-right {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: flex-start;
    /* scrollable */
  }

  .page-wrapper {
    margin-top: 130px !important;
  }

  .updates-box {
    top: 130px !important;
  }

  .faceit-scan-btn {
    top: 130px !important;
  }
}

/* ============================================================
   PROFILE STATISTICS - Advanced Components
   ============================================================ */

/* Circular Progress Bar */
.circular-progress {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.circular-progress::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  background: #151515;
  border-radius: 50%;
  z-index: 1;
}

.circular-progress-value {
  position: relative;
  z-index: 2;
  font-size: 18px;
  font-weight: 700;
  color: #ff6a00;
}

.circular-progress-label {
  text-align: center;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.circular-progress-subtext {
  text-align: center;
  color: #666;
  font-size: 11px;
  margin-top: 4px;
}

/* Win Streak Box */
.win-streak-box {
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.1), rgba(255, 60, 0, 0.05));
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.streak-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.streak-info {
  display: flex;
  flex-direction: column;
}

.streak-label {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
}

.streak-value {
  color: #ff6a00;
  font-size: 20px;
  font-weight: 700;
}

.streak-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 106, 0, 0.3);
}

/* Recent Results */
.recent-results {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.recent-result-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: transform 0.2s;
}

.recent-result-dot:hover {
  transform: scale(1.3);
}

.recent-result-dot.win {
  background: linear-gradient(145deg, #00cc44, #00aa33);
  box-shadow: 0 0 8px rgba(0, 204, 68, 0.5);
}

.recent-result-dot.loss {
  background: linear-gradient(145deg, #ff3333, #cc0000);
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.5);
}

/* Multi-kill Badges */
.multikill-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.multikill-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(20, 20, 20, 0.9));
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 25px;
  padding: 8px 16px;
  transition: all 0.3s;
}

.multikill-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.multikill-icon {
  font-size: 16px;
}

.multikill-label {
  color: #888;
  font-size: 12px;
}

.multikill-value {
  color: #ff6a00;
  font-weight: 700;
  font-size: 14px;
}

/* Best Map Card */
.best-map-card {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.95));
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}

.best-map-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.best-map-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 106, 0, 0.3);
}

.best-map-info {
  flex: 1;
}

.best-map-name {
  color: #ff6a00;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.best-map-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.best-map-stat {
  display: flex;
  flex-direction: column;
}

.best-map-stat-label {
  color: #666;
  font-size: 10px;
  text-transform: uppercase;
}

.best-map-stat-value {
  color: #ccc;
  font-size: 14px;
  font-weight: 600;
}

/* Profile Section */
.profile-section {
  background: #151515;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.profile-section-title {
  border-left: 4px solid #ff6a00;
  padding-left: 12px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #ff6a00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Clutch Stats Grid */
.clutch-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.clutch-stat-item {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s;
}

.clutch-stat-item:hover {
  border-color: rgba(255, 106, 0, 0.4);
  transform: translateY(-2px);
}

/* Horizontal Progress Bar */
.progress-bar-container {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5500, #ff6a00);
  border-radius: 8px;
  transition: width 0.5s ease-out;
}

/* Night theme overrides */
body.night-theme .circular-progress::before {
  background: #151520;
}

body.night-theme .circular-progress-value {
  color: #4a90e2;
}

body.night-theme .win-streak-box {
  background: linear-gradient(145deg, rgba(74, 144, 226, 0.1), rgba(53, 122, 189, 0.05));
  border-color: rgba(74, 144, 226, 0.3);
}

body.night-theme .streak-value {
  color: #4a90e2;
}

body.night-theme .streak-divider {
  background: rgba(74, 144, 226, 0.3);
}

body.night-theme .multikill-badge {
  border-color: rgba(74, 144, 226, 0.2);
}

body.night-theme .multikill-badge:hover {
  border-color: rgba(74, 144, 226, 0.5);
}

body.night-theme .multikill-value {
  color: #4a90e2;
}

body.night-theme .best-map-card {
  border-color: rgba(74, 144, 226, 0.2);
}

body.night-theme .best-map-card:hover {
  border-color: rgba(74, 144, 226, 0.4);
}

body.night-theme .best-map-image {
  border-color: rgba(74, 144, 226, 0.3);
}

body.night-theme .best-map-name {
  color: #4a90e2;
}

body.night-theme .profile-section-title {
  border-color: #4a90e2;
  color: #4a90e2;
}

body.night-theme .clutch-stat-item {
  border-color: rgba(74, 144, 226, 0.15);
}

body.night-theme .clutch-stat-item:hover {
  border-color: rgba(74, 144, 226, 0.4);
}

body.night-theme .progress-bar-fill {
  background: linear-gradient(90deg, #357abd, #4a90e2);
}

/* Mobile Responsive for Profile Stats */
@media (max-width: 768px) {
  .win-streak-box {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .streak-divider {
    display: none;
  }

  .circular-progress {
    width: 80px;
    height: 80px;
  }

  .circular-progress::before {
    width: 56px;
    height: 56px;
  }

  .circular-progress-value {
    font-size: 14px;
  }

  .best-map-card {
    flex-direction: column;
    text-align: center;
  }

  .best-map-stats {
    justify-content: center;
  }
}

/* ============================================================
   LAYOUT STYLES (Migrated from _Layout.cshtml)
   ============================================================ */

/* FACEIT dark grid background */
#pointer {
  transition: left 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: #000 url('/images/background.svg') no-repeat center top;
  background-size: cover;
  color: #f2f2f2 !important;
}

h1,
h2,
h3,
h4 {
  color: #f2f2f2;
  font-weight: 600;
}

input,
select,
textarea {
  color: white !important;
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

.page-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  padding: 15px;
}

.loading-messages {
  position: relative;
  height: 5em;
  min-width: 400px;
  overflow: hidden;
}

.loading-message {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: rotateMessage 12s ease-in-out infinite;
}

.loading-message:nth-child(1) {
  animation-delay: 0s;
}

.loading-message:nth-child(2) {
  animation-delay: 4s;
}

.loading-message:nth-child(3) {
  animation-delay: 8s;
}

@keyframes rotateMessage {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  5%,
  28% {
    opacity: 1;
    transform: translateY(0);
  }

  33% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

#loadingOverlay.active {
  display: flex !important;
  opacity: 1 !important;
}

body.night-theme #loadingOverlay .loading-message:nth-child(1) {
  color: #4a90e2 !important;
}

body.night-theme #loadingOverlay .loading-message:nth-child(2),
body.night-theme #loadingOverlay .loading-message:nth-child(3) {
  color: #5ba0f2 !important;
}

.faceit-scan-btn {
  position: fixed;
  top: 140px;
  left: 25px;
  z-index: 9999;
  background: linear-gradient(145deg, #ff5500, #ff3c00);
  color: white;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid #0c0c0c;
  box-shadow: 0 0 0 2px #ff5500 inset, 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.20s ease-in-out;
}

.faceit-scan-btn:hover {
  background: linear-gradient(145deg, #ff6b1a, #ff4400);
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px #ff6b1a inset, 0 12px 25px rgba(0, 0, 0, 0.6);
}

.faceit-scan-btn:active {
  transform: translateY(0px);
  box-shadow: 0 0 0 2px #ff4400 inset, 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Logo/Home Link (Top Left) */
.logo-home-link .logo-text {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(145deg, #ff5500, #ff3c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 2px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.logo-home-link:hover .logo-text {
  transform: translateY(-2px);
}

body.night-theme .logo-home-link .logo-text {
  background: linear-gradient(145deg, #4a90e2, #357abd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-home-link .logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(255, 85, 0, 0.5));
}

body.night-theme .logo-home-link .logo-icon {
  filter: drop-shadow(0 2px 4px rgba(74, 144, 226, 0.5));
}

/* Theme & Language Switcher */
.settings-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-btn {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.profile-btn:hover {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.6);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.theme-switcher {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.theme-btn {
  background: transparent;
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: #f2f2f2;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 50px;
  pointer-events: auto !important;
  position: relative;
  z-index: 10002;
}

.theme-btn:hover {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.6);
  transform: translateY(-2px);
}

.theme-btn.active {
  background: linear-gradient(145deg, #ff5500, #ff3c00);
  border-color: #ff6a00;
  color: white;
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.5);
}

.language-switcher {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: #f2f2f2;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  pointer-events: auto !important;
  position: relative;
  z-index: 10002;
}

.lang-btn:hover {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.6);
  transform: translateY(-2px);
}

.lang-btn.active {
  background: linear-gradient(145deg, #ff5500, #ff3c00);
  border-color: #ff6a00;
  color: white;
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.5);
}

/* Auth Panel */
.auth-watchlist-panel {
  position: fixed;
  top: 70px;
  margin-top: 15px;
  right: 20px;
  z-index: 10000;
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.auth-btn {
  background: transparent;
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.3s;
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  width: 100%;
  min-width: 160px;
}

.auth-btn:hover {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.6);
  transform: translateY(-2px);
  color: #fff;
}

.auth-btn.login-btn {
  border-color: #2A475E;
  background: radial-gradient(circle at top, #1B2838 0%, #171A21 60%);
}

.auth-btn.logout-btn {
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 85, 0, 0.6) !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  gap: 8px !important;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.3) !important;
}

.auth-btn.logout-btn:hover {
  background: rgba(20, 20, 20, 0.95) !important;
  border-color: rgba(255, 106, 0, 0.8) !important;
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.5) !important;
  transform: translateY(-2px) !important;
}

.auth-btn.logout-btn:active {
  transform: translateY(0px) !important;
  box-shadow: 0 0 8px rgba(255, 85, 0, 0.4) !important;
}

.auth-btn.logout-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-btn.logout-btn svg path {
  stroke: #333;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.auth-btn.profile-btn {
  background: linear-gradient(145deg, rgba(74, 144, 226, 0.3), rgba(53, 122, 189, 0.2)) !important;
  border: 1px solid rgba(74, 144, 226, 0.5) !important;
  color: #4a90e2 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.auth-btn.profile-btn:hover {
  background: rgba(74, 144, 226, 0.4) !important;
  border-color: rgba(74, 144, 226, 0.7) !important;
  color: #5ba0f2 !important;
}

.auth-btn.logout-btn svg circle {
  fill: none;
  stroke: #ff0000;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Daily Free Scan Badge */
.daily-free-scan-badge {
  margin-top: 5px;
  width: 100%;
}

.daily-free-scan-link {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.25), rgba(255, 85, 0, 0.2));
  border: 2px solid rgba(255, 106, 0, 0.6);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.daily-free-scan-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.3), transparent);
  transition: left 0.5s;
}

.daily-free-scan-link:hover::before {
  left: 100%;
}

.daily-free-scan-link:hover {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.35), rgba(255, 85, 0, 0.3));
  border-color: rgba(255, 106, 0, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
}

.daily-free-scan-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.daily-free-scan-text {
  color: #ff6a00;
  font-size: 13px;
  font-weight: 700;
  flex: 1;
  text-align: left;
}

.daily-free-scan-available {
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: white;
  font-size: 14px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.5);
}

body.night-theme .daily-free-scan-link {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.25), rgba(53, 122, 189, 0.2));
  border-color: rgba(74, 144, 226, 0.6);
}

body.night-theme .daily-free-scan-link:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.35), rgba(53, 122, 189, 0.3));
  border-color: rgba(74, 144, 226, 0.8);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

body.night-theme .daily-free-scan-text {
  color: #4a90e2;
}

body.night-theme .daily-free-scan-available {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.5);
}

/* Night Theme Styles */
body.night-theme {
  background: #000 url('/images/background2.svg') no-repeat center top !important;
  background-size: cover !important;
}

body.night-theme .theme-switcher,
body.night-theme .language-switcher {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.95), rgba(15, 15, 30, 0.95));
  border: 1px solid rgba(74, 144, 226, 0.3);
}

body.night-theme .theme-btn,
body.night-theme .lang-btn {
  border: 1px solid rgba(74, 144, 226, 0.3);
  color: #e0e0f0;
}

body.night-theme .theme-btn:hover,
body.night-theme .lang-btn:hover {
  background: rgba(74, 144, 226, 0.2);
  border-color: rgba(74, 144, 226, 0.6);
}

body.night-theme .theme-btn.active,
body.night-theme .lang-btn.active {
  background: linear-gradient(145deg, #4a90e2, #357abd);
  border-color: #5ba0f2;
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
}

body.night-theme .faceit-scan-btn {
  background: linear-gradient(145deg, #4a90e2, #357abd);
  box-shadow: 0 0 0 2px #4a90e2 inset, 0 8px 20px rgba(0, 0, 0, 0.5);
}

body.night-theme .faceit-scan-btn:hover {
  background: linear-gradient(145deg, #5ba0f2, #4a90e2);
  box-shadow: 0 0 0 2px #5ba0f2 inset, 0 12px 25px rgba(0, 0, 0, 0.6);
}

body.night-theme .cache-consent-banner {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.98), rgba(15, 15, 30, 0.98));
  border: 2px solid rgba(74, 144, 226, 0.3);
}

body.night-theme .cache-consent-title {
  color: #4a90e2;
}

body.night-theme .cache-consent-btn.accept {
  background: linear-gradient(145deg, #4a90e2, #357abd);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

body.night-theme .cache-consent-btn.accept:hover {
  background: linear-gradient(145deg, #5ba0f2, #4a90e2);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

body.night-theme .cache-consent-close:hover {
  background: rgba(74, 144, 226, 0.2);
  color: #4a90e2;
}

body.night-theme h1,
body.night-theme h2,
body.night-theme h3,
body.night-theme h4 {
  color: #e0e0f0;
}

/* Updates Box */
.updates-box {
  position: fixed;
  top: 140px;
  left: 20px;
  right: auto;
  z-index: 10000;
  width: 280px;
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.updates-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ff6a00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 106, 0, 0.2);
  position: relative;
}

.updates-close {
  position: absolute;
  right: 0;
  top: 0;
  background: transparent;
  border: none;
  color: #ff6a00;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.updates-close:hover {
  color: #ff8a00;
}

.updates-box h3 span:first-child {
  font-size: 20px;
}

.updates-content {
  font-size: 13px;
  line-height: 1.6;
  color: #ccc;
}

.update-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.update-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.update-label {
  color: #ff6a00;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 11px;
}

.update-label.previous {
  color: #888;
}

.update-text {
  color: #aaa;
  font-size: 12px;
}

.update-text.previous {
  color: #888;
}

.update-footer {
  color: #666;
  font-size: 11px;
  font-style: italic;
  margin-top: 12px;
}

body.night-theme .updates-box {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.95), rgba(15, 15, 30, 0.95));
  border: 1px solid rgba(74, 144, 226, 0.3);
}

body.night-theme .updates-box h3 {
  color: #4a90e2;
}

body.night-theme .update-label {
  color: #4a90e2;
}

/* Mobile responsive for settings */
@media (max-width: 768px) {
  .settings-panel {
    top: 10px;
    right: 10px;
    flex-direction: column;
    gap: 8px;
  }

  .theme-switcher,
  .language-switcher {
    padding: 6px;
  }

  .theme-btn,
  .lang-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .updates-box {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 380px;
    margin: 20px auto;
  }

  .loading-messages {
    min-width: 90vw !important;
    height: 6em !important;
  }

  .loading-message {
    padding: 10px 15px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* Night theme for auth */
body.night-theme .auth-switcher {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.95), rgba(15, 15, 30, 0.95));
  border: 1px solid rgba(74, 144, 226, 0.3);
}

body.night-theme .auth-btn {
  border: 1px solid rgba(74, 144, 226, 0.3);
  color: #e0e0f0;
}

body.night-theme .auth-btn:hover {
  background: rgba(74, 144, 226, 0.2);
  border-color: rgba(74, 144, 226, 0.6);
}

body.night-theme .auth-btn.login-btn {
  background: radial-gradient(circle at top, #1B2838 0%, #171A21 60%);
  border-color: #2A475E;
}

/* Cache Consent Banner - Modern UI */
.cache-consent-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: 90%;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(15, 15, 15, 0.98));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 106, 0, 0.3);
  border-radius: 16px;
  padding: 20px 25px;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 106, 0, 0.2);
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  opacity: 0;
}

.cache-consent-banner.show {
  bottom: 20px;
  opacity: 1;
}

.cache-consent-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.cache-consent-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {

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

  50% {
    transform: scale(1.1);
  }
}

.cache-consent-text-wrapper {
  flex: 1;
}

.cache-consent-title {
  color: #ff6a00;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.cache-consent-text {
  color: #e0e0e0;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.cache-consent-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.cache-consent-btn {
  padding: 11px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.cache-consent-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cache-consent-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cache-consent-btn.accept {
  background: linear-gradient(145deg, #ff5500, #ff3c00);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}

.cache-consent-btn.accept:hover {
  background: linear-gradient(145deg, #ff6b1a, #ff5500);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.6);
}

.cache-consent-btn.accept:active {
  transform: translateY(-1px) scale(1.02);
}

.cache-consent-btn.decline {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cache-consent-btn.decline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cache-consent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #888;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s;
  line-height: 1;
}

.cache-consent-close:hover {
  background: rgba(255, 106, 0, 0.2);
  color: #ff6a00;
  transform: rotate(90deg);
}

/* Mobile responsive for cache consent */
@media (max-width: 640px) {
  .cache-consent-banner {
    width: 95%;
    padding: 18px 20px;
    bottom: -250px;
  }

  .cache-consent-banner.show {
    bottom: 15px;
  }

  .cache-consent-icon {
    font-size: 28px;
  }

  .cache-consent-title {
    font-size: 15px;
  }

  .cache-consent-text {
    font-size: 12px;
  }

  .cache-consent-buttons {
    width: 100%;
  }

  .cache-consent-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* Steam Tip Banner */
.steam-tip-banner {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 550px;
  width: 90%;
  background: linear-gradient(145deg, rgba(27, 40, 56, 0.98), rgba(23, 26, 33, 0.98));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 192, 244, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(102, 192, 244, 0.2);
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  opacity: 0;
}

.steam-tip-banner.show {
  bottom: 20px;
  opacity: 1;
}

.steam-tip-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steam-tip-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.steam-tip-text {
  flex: 1;
  color: #e0e0e0;
  font-size: 13px;
  line-height: 1.5;
}

.steam-tip-text strong {
  color: #66c0f4;
}

.steam-tip-text code {
  background: rgba(102, 192, 244, 0.15);
  color: #66c0f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

.steam-tip-btn {
  padding: 8px 20px;
  background: linear-gradient(145deg, #1a9fff, #1473af);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.steam-tip-btn:hover {
  background: linear-gradient(145deg, #47b5ff, #1a9fff);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 192, 244, 0.4);
}

@media (max-width: 640px) {
  .steam-tip-banner {
    width: 95%;
    padding: 14px 16px;
  }

  .steam-tip-content {
    flex-wrap: wrap;
  }

  .steam-tip-btn {
    width: 100%;
    margin-top: 10px;
  }
}

/* Free Deep Scan Popup */
.free-deep-scan-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.free-deep-scan-popup.show {
  display: flex;
  opacity: 1;
}

.free-deep-scan-content {
  background: linear-gradient(145deg, rgba(27, 40, 56, 0.98), rgba(23, 26, 33, 0.98));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 106, 0, 0.5);
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  text-align: center;
  position: relative;
}

.free-deep-scan-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.free-deep-scan-title {
  color: #ff6a00;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.free-deep-scan-text {
  color: #e0e0e0;
  font-size: 14px;
  margin: 0 0 20px 0;
}

.free-deep-scan-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.free-deep-scan-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.free-deep-scan-btn.primary {
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: white;
}

.free-deep-scan-btn.primary:hover {
  background: linear-gradient(135deg, #ff8533, #ff6a00);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
}

.free-deep-scan-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.free-deep-scan-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

body.night-theme .free-deep-scan-content {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.98), rgba(15, 15, 30, 0.98));
  border-color: rgba(74, 144, 226, 0.5);
}

body.night-theme .free-deep-scan-title {
  color: #4a90e2;
}

body.night-theme .free-deep-scan-btn.primary {
  background: linear-gradient(135deg, #4a90e2, #357abd);
}

body.night-theme .free-deep-scan-btn.primary:hover {
  background: linear-gradient(135deg, #357abd, #4a90e2);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}