/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Root Variables */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #6366f1;
  --text-light: #f8fafc;
  --text-dark: #e2e8f0;
  --nav-bg-start: rgba(17, 24, 39, 0.8);
  --nav-bg-end: rgba(17, 24, 39, 0.8);
  --hover-color: #60a5fa;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --card-bg: rgba(31, 41, 55, 0.8);
}

/* Base Styles */
body {
  font-family: "Poppins", sans-serif;
  background-color: #111827;
  color: var(--text-dark);
  min-height: 100vh;
  letter-spacing: -0.025em;
}

/* Navigation Styles */
nav {
  background: var(--nav-bg-start);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-button {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu {
  transition: all 0.3s ease;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

/* Desktop Navigation */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

/* Button Styles */
.btn-login {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #ffffff;
  border: 2px solid var(--primary-color);
  border-radius: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: transparent;
}

.btn-login:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-register {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-register:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Mobile-specific button styles */
@media (max-width: 768px) {
  .btn-login,
  .btn-register {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .mobile-menu {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu .btn-login,
  .mobile-menu .btn-register {
    margin: 0.5rem 0;
  }
}

/* User Dropdown Styles */
.user-dropdown-button {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 10;
}

.user-dropdown-button:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.user-dropdown-button .dropdown-arrow {
  transition: transform 0.3s ease;
}

.user-dropdown-button .bi-person-circle {
  transition: transform 0.3s ease;
}

.user-dropdown-button:hover .bi-person-circle {
  transform: scale(1.1);
}

.user-dropdown-menu {
  transform-origin: top right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
  font-weight: 500;
}

.user-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

.user-dropdown-item i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.user-dropdown-item:hover i {
  transform: translateX(2px);
}

/* Add a subtle hover effect to dropdown */
.user-dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.user-dropdown-menu:hover::before {
  transform: scaleX(1);
}

/* Adjust dropdown position for mobile */
@media (max-width: 768px) {
  .user-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
  }
}

/* User Panel Styles */
.user-panel-info-item {
  display: flex;
  align-items: flex-start;
}

.user-panel-info-item i {
  margin-right: 12px;
  margin-top: 3px;
  font-size: 1.25rem;
  min-width: 24px;
  text-align: center;
}

.panel-action-button-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.panel-action-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.panel-action-button-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.panel-action-button-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Stats Cards */
.stat-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(75, 85, 99, 0.5);
}

.stat-card-inner {
  display: flex;
  align-items: center;
}

.stat-icon {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.stat-icon i {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-card:hover .stat-icon i {
  transform: scale(1.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-dark);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Shine effect on stat cards */
.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stat-card:hover::after {
  transform: translateX(100%);
}

/* Responsive adjustments for user panel */
@media (max-width: 768px) {
  .user-panel-info-item i {
    font-size: 1.125rem;
    margin-top: 2px;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-icon {
    height: 40px;
    width: 40px;
  }

  .stat-icon i {
    font-size: 1.25rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }
}

/* Explore Button */
.btn-explore {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 2px 4px -1px rgba(0, 0, 0, 0.1);
  isolation: isolate;
}

.btn-explore span {
  position: relative;
  z-index: 1;
}

.btn-explore::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.btn-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.3),
    0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn-explore:hover::before {
  opacity: 1;
}

/* Feature Cards */
.feature-card {
  position: relative;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
}

.feature-icon-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(99, 102, 241, 0.1)
  );
  transition: all 0.3s ease;
}

.feature-icon-bg i {
  font-size: 28px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-bg {
  transform: scale(1.1);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(99, 102, 241, 0.2)
  );
}

.feature-card:hover .feature-icon-bg i {
  transform: scale(1.1);
  color: white;
}

/* Card shine effect */
.feature-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-card-shine {
  transform: translateX(100%);
}

/* Feature card content styles */
.feature-card h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: all 0.3s ease;
}

.feature-card p {
  font-weight: 400;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .feature-card {
    margin-bottom: 1.5rem;
  }

  .feature-card:last-child {
    margin-bottom: 0;
  }

  .feature-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .feature-icon-bg i {
    font-size: 24px;
  }
}

/* Site Name Styles */
.site-name {
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.site-name:hover {
  background: linear-gradient(
    to right,
    var(--secondary-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Add a subtle shadow animation on scroll */
nav.scrolled {
  box-shadow: 0 4px 6px -1px var(--shadow-color),
    0 2px 4px -1px var(--shadow-color);
  background: rgba(17, 24, 39, 0.95);
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .nav-link {
    padding: 1rem;
    display: block;
  }

  .nav-link::after {
    display: none;
  }
}

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

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

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

/* Stats Cards */
.stats-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card > div {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover > div {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px -1px rgba(0, 0, 0, 0.3);
}

.stats-card h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.stats-card p {
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.animate-stats-card {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stats-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stats-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Stats card shine effect */
.stats-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover .stats-card-shine {
  transform: translateX(100%);
}

/* Counter Animation */
.counter-animate {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Latest User Animation */
.latest-user-animate {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.latest-user-animate::before {
  content: "@";
  opacity: 0.5;
  margin-right: 0.5rem;
  font-weight: 400;
}

.latest-user-animate::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover .latest-user-animate::after {
  transform: scaleX(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-card {
    margin-bottom: 1.5rem;
  }

  .stats-card:last-child {
    margin-bottom: 0;
  }

  .stats-card > div {
    padding: 1.5rem;
  }

  .counter-animate {
    font-size: 2rem;
  }

  .latest-user-animate {
    font-size: 1.5rem;
  }
}

/* Footer Styles */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary-color),
    var(--secondary-color),
    transparent
  );
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-social-link i {
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-social-link:hover::before {
  opacity: 1;
}

.footer-social-link:hover i {
  transform: scale(1.1);
}

.footer-links-column {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.footer-links-column:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-links-column:nth-child(3) {
  animation-delay: 0.4s;
}

.footer-title {
  color: var(--text-light);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.3s ease;
}

.footer-links-column:hover .footer-title::after {
  width: 3rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  space-y: 1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: -1.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(1.5rem);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.developer-credit {
  position: relative;
  display: inline-block;
}

.developer-credit a {
  position: relative;
  white-space: nowrap;
}

.developer-credit a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.developer-credit a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  .footer-links a:hover {
    transform: translateX(1rem);
  }

  .footer-social-link {
    width: 36px;
    height: 36px;
  }

  .footer-social-link i {
    font-size: 1.125rem;
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
  }
}

/* Navigation Active States */
.nav-active {
  position: relative;
  color: var(--primary-color) !important;
}

.nav-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(1) !important;
}

.mobile-nav-active {
  color: var(--primary-color) !important;
  background: linear-gradient(
    to right,
    rgba(59, 130, 246, 0.1),
    rgba(99, 102, 241, 0.1)
  ) !important;
  border-left: 3px solid var(--primary-color);
}

.mobile-nav-active i {
  transform: scale(1.1);
  color: var(--primary-color);
}

/* Hero Section Styles */
.hero-title {
  background: linear-gradient(to right, var(--text-light), #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-highlight {
  background: linear-gradient(
    120deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  animation: highlightIn 0.6s ease forwards 0.5s;
}

.hero-badge {
  animation: slideDown 0.6s ease forwards;
  opacity: 0;
  transform: translateY(-20px);
}

.hero-description {
  animation-delay: 0.2s;
}

.hero-secondary-btn {
  background: transparent;
  border: 2px solid;
  border-image: linear-gradient(
      to right,
      var(--primary-color),
      var(--secondary-color)
    )
    1;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.hero-secondary-btn:hover {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-image: none;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Floating Icons Animation */
.floating-icon {
  animation: float 6s ease-in-out infinite;
}

.floating-icons-left .floating-icon:nth-child(1) {
  animation-delay: 0s;
}

.floating-icons-left .floating-icon:nth-child(2) {
  animation-delay: 2s;
}

.floating-icons-left .floating-icon:nth-child(3) {
  animation-delay: 4s;
}

.floating-icons-right .floating-icon:nth-child(1) {
  animation-delay: 1s;
}

.floating-icons-right .floating-icon:nth-child(2) {
  animation-delay: 3s;
}

.floating-icons-right .floating-icon:nth-child(3) {
  animation-delay: 5s;
}

.floating-circle {
  animation: pulse 4s ease-in-out infinite;
}

.floating-icons-left .floating-circle:nth-child(1) {
  animation-delay: 1s;
}

.floating-icons-left .floating-circle:nth-child(2) {
  animation-delay: 3s;
}

.floating-icons-right .floating-circle:nth-child(1) {
  animation-delay: 2s;
}

.floating-icons-right .floating-circle:nth-child(2) {
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }
}

@keyframes highlightIn {
  to {
    transform: scaleX(1);
  }
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .floating-icons-left,
  .floating-icons-right {
    opacity: 0.5;
  }
}

/* Upload Resource Form Styles */
.upload-form {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(31, 41, 55, 0.7),
    rgba(17, 24, 39, 0.8)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.upload-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(59, 130, 246, 0.1),
    transparent 60%
  );
  pointer-events: none;
}

.upload-form::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at bottom left,
    rgba(99, 102, 241, 0.1),
    transparent 60%
  );
  pointer-events: none;
}

.upload-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upload-form-title i {
  color: #60a5fa;
  font-size: 1.75rem;
  transition: transform 0.3s ease;
}

.upload-form-title:hover i {
  transform: scale(1.1) rotate(-5deg);
}

.upload-form-group {
  position: relative;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.upload-form-group:hover {
  transform: translateX(4px);
}

.upload-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: rgba(229, 231, 235, 0.9);
}

.upload-form-label i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  color: #60a5fa;
  transition: all 0.3s ease;
}

.upload-form-group:hover .upload-form-label i {
  transform: scale(1.1) rotate(-5deg);
  color: #6366f1;
}

.upload-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.upload-form-input:hover {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(59, 130, 246, 0.3);
}

.upload-form-input:focus {
  outline: none;
  background: rgba(17, 24, 39, 0.8);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.upload-form-input::placeholder {
  color: rgba(156, 163, 175, 0.6);
}

textarea.upload-form-input {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* Custom select styling */
select.upload-form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Custom file input */
.upload-form-file {
  position: relative;
  cursor: pointer;
}

.upload-form-file input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-form-file-button {
  position: relative;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(99, 102, 241, 0.1)
  );
  border: 1px dashed rgba(59, 130, 246, 0.3);
  color: #e5e7eb;
  transition: all 0.3s ease;
}

.upload-form-file:hover .upload-form-file-button {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(99, 102, 241, 0.2)
  );
  border-style: solid;
  transform: translateY(-1px);
}

.upload-form-help {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(156, 163, 175, 0.8);
}

.upload-form-help i {
  color: #60a5fa;
}

/* Form buttons */
.upload-form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(75, 85, 99, 0.2);
}

.upload-form-submit {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: white;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.upload-form-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upload-form-submit:hover::after {
  opacity: 1;
}

.upload-form-submit span {
  position: relative;
  z-index: 1;
}

.upload-form-submit i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.upload-form-submit:hover i {
  transform: translateY(-1px);
}

.upload-form-cancel {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: #e5e7eb;
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(75, 85, 99, 0.4);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-form-cancel:hover {
  background: rgba(31, 41, 55, 0.6);
  border-color: rgba(75, 85, 99, 0.6);
  transform: translateY(-2px);
}

.upload-form-cancel i {
  transition: transform 0.3s ease;
}

.upload-form-cancel:hover i {
  transform: translateX(-2px);
}

/* Success message */
.upload-success {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(8px);
  overflow: hidden;
  animation: slideIn 0.5s ease-out;
}

.upload-success::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(16, 185, 129, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

.upload-success-icon {
  font-size: 2.5rem;
  color: #34d399;
  margin-bottom: 1rem;
  animation: scaleIn 0.5s ease-out;
}

.upload-success-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 0.5rem;
}

.upload-success-text {
  color: rgba(167, 243, 208, 0.9);
  margin-bottom: 1.5rem;
}

.upload-success-buttons {
  display: flex;
  gap: 1rem;
}

/* Error message */
.upload-error {
  position: relative;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  backdrop-filter: blur(8px);
  overflow: hidden;
  animation: shakeX 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.upload-error::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(239, 68, 68, 0.1),
    transparent 70%
  );
  pointer-events: none;
}

.upload-error-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #f87171;
}

.upload-error-header i {
  font-size: 1.25rem;
}

.upload-error-list {
  list-style-type: disc;
  list-style-position: inside;
  color: rgba(254, 202, 202, 0.9);
}

.upload-error-list li {
  margin-bottom: 0.25rem;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Contact Page Styles */
.contact-page-wrapper {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.9),
    rgba(17, 24, 39, 0.95)
  );
}

.contact-container {
  max-width: 800px;
  width: 100%;
  background: rgba(31, 41, 55, 0.8);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.2);
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-subtitle {
  color: #9ca3af;
  font-size: 1.125rem;
}

.contact-alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.contact-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-group {
  position: relative;
}

.contact-form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e5e7eb;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-form-label i {
  color: #3b82f6;
}

.contact-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 0.5rem;
  color: #e5e7eb;
  transition: all 0.3s ease;
}

.contact-form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.contact-form-textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.contact-form-submit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(75, 85, 99, 0.2);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.6);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-2px);
  background: rgba(17, 24, 39, 0.8);
}

.contact-info-item i {
  font-size: 1.5rem;
  color: #3b82f6;
}

.contact-info-item h3 {
  color: #e5e7eb;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: #9ca3af;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .contact-container {
    padding: 1.5rem;
  }

  .contact-title {
    font-size: 1.75rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Resource card styles */
.resource-card {
  transition: all 0.3s ease;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.resource-img.no-img {
  background: linear-gradient(45deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 3rem;
}

.resource-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-category {
  position: absolute;
  top: 10px;
  right: 10px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

/* Add new style for the upload button container */
.upload-button-container {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .upload-button-container {
    position: static;
    padding: 1rem 0;
    text-align: center;
  }
}

.content-area {
  word-break: break-word;
}

.content-area img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.content-area pre {
  background-color: rgba(17, 24, 39, 0.7);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid rgba(75, 85, 99, 0.4);
}

.resource-header-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.75rem;
}

.resource-header-img.no-img {
  background: linear-gradient(45deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 5rem;
}

.download-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,rgba(255, 255, 255, 0) 0%,rgba(255, 255, 255, 0.2) 50%,rgba(255, 255, 255, 0) 100%);
  transition: all 0.6s ease;
}

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

.related-card {
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
}

.box-card-white {
  border-radius: 4px;
  border: 1px solid #2f2f2f;
  padding: 5px;
  margin-top: 1px;
  text-align: justify;
  line-height: 25px;
  margin-bottom: 5px;
  color: white;
  box-shadow: 0 0 1px rgba(0,0,0,0.3),0px 0 25px rgba(0,0,0,0.1) inset;
}

.box-card-yellow {
  border-radius: 4px;
  border: 1px solid #2f2f2f;
  padding: 5px;
  margin-top: 1px;
  text-align: justify;
  line-height: 25px;
  margin-bottom: 5px;
  color: yellow;
  box-shadow: 0 0 1px rgba(0,0,0,0.3),0px 0 25px rgba(0,0,0,0.1) inset;
}

.box-card-blue {
  border-radius: 4px;
  border: 1px solid #2f2f2f;
  padding: 5px;
  margin-top: 1px;
  text-align: justify;
  line-height: 25px;
  margin-bottom: 5px;
  color: #2a80a7;
  box-shadow: 0 0 1px rgba(0,0,0,0.3),0px 0 25px rgba(0,0,0,0.1) inset;
}

/* Style for TinyMCE */
.tox-tinymce {
  margin-bottom: 1rem;
}

.tox .tox-edit-area__iframe {
  background-color: #1f2937 !important;
}

/* Формата и таблицата */
form.tableform {
  width: 100%;
}

table.tableform {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

/* Етикети (labels) */
td.label {
  width: 150px;
  padding-right: 10px;
  vertical-align: middle;
  font-weight: 600;
  color: #a0a0b8;
  white-space: nowrap;
}

/* Полета за въвеждане и селект менюта */
input.f_input,
select.option {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #444466;
  border-radius: 4px;
  background: #2c2c3f;
  color: #eee;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input.f_input:focus,
select.option:focus {
  outline: none;
  border-color: #5a67d8;
  background: #383849;
}

/* Задължителни полета */
.impot {
  color: #ef4444; /* червено за звездичките */
  font-weight: 700;
}

/* Бутон за изпращане */
.enter {
  cursor: pointer;
  background: #5a67d8;
  border: none;
  color: #fff;
  padding: 10px 18px;
  margin-right: 10px;
  font-weight: 700;
  border-radius: 5px;
  transition: background-color 0.25s ease;
}

.enter:hover {
  background: #434aa8;
}

/* Бележки под селект менюта */
select.option + span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8889a8;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 200px;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 5px 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 50;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
  white-space: nowrap;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#emoji-menu .emoji-tab span {
    cursor: pointer;
    margin: 2px;
    display: inline-block;
    transition: transform 0.15s, background-color 0.15s;
    padding: 2px 4px;
    border-radius: 6px;
}

#emoji-menu .emoji-tab span:hover {
    transform: scale(1.4);
    background-color: rgba(255, 255, 255, 0.1);
}

#suggestions {
    margin-top: 8px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    max-height: 220px;
    overflow-y: auto;
    display: none;
    font-family: Arial, sans-serif;
}

.suggestion-item {
    padding: 10px 14px;
    font-size: 14px;
    color: #eee;
    cursor: pointer;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #2a2a2a;
}

.suggestion-icon {
    font-size: 16px;
    color: #aaa;
}

.server-name {
    font-weight: 500;
}

.server-ip {
    color: #999;
    font-size: 13px;
}

.queue-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.server-card {
    background: #000;
    color: #e0e0e0;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}
.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: .6rem;
}
.server-rank {
    font-size: 1.1rem;
    color: #aaa;
}
.server-type {
    padding: .2rem .6rem;
    border-radius: 8px;
    font-size: .85rem;
    text-transform: uppercase;
}
.server-type.top {
    background: #ff9800;
    color: #fff;
}
.server-type.vip {
    background: #8e24aa;
    color: #fff;
}
.server-body {
    font-size: 0.95rem;
}
.server-name, .server-ip, .server-user {
    margin: .4rem 0;
}
.server-name i, .server-ip i, .server-user i {
    margin-right: 6px;
    color: #64b5f6;
}

.server-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
	border-top: 1px solid #333;
    padding-top: 6px;
}

.server-dates div {
    font-size: 14px;
    color: #555;
}
.server-dates i {
    margin-right: 4px;
    color: #0d6efd;
}

.server-dates i {
    color: #81c784;
    margin-right: 4px;
}
.no-servers {
    text-align: center;
    color: #bbb;
    margin-top: 1.5rem;
    font-size: 1rem;
}
.no-servers i {
    margin-right: 6px;
    color: #ff9800;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.4; }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

.cs16-top-servers {
    background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 15px 0;
    margin: 30px 0;
}

.cs16-top-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
}

.cs16-server-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 250px;
    position: relative;
}

.cs16-server-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: #444;
}

.cstop-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #333;
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 65px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.cstop-button:hover {
    border-color: #2986cc;
    background: linear-gradient(135deg, #333, #222);
    color: inherit;
    text-decoration: none;
}

.cstop-label {
    font-size: 9px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cstop-players {
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.cs16-server-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cs16-server-name {
    color: #2986cc;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.cs16-server-ip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.cs16-ip-icon {
    color: #666;
}

.cs16-ip-text {
    color: #999;
    font-family: 'Courier New', monospace;
}

.cs16-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 2px 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 10px;
}

.cs16-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1200px) {
    .cs16-top-container {
        flex-wrap: wrap;
    }
    .cs16-server-item {
        flex: 1 1 48%;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .cs16-top-container {
        flex-direction: column;
    }
    .cs16-server-item {
        width: 100%;
    }
}

/* TOP Badge */
.top-tabs-wrapper {
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 90px;
}

.top-tabs-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(25, 25, 30, 0.95) 0%, rgba(20, 20, 24, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    font-size: 12px;
    height: 34px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-tab:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(30, 30, 35, 0.95) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
}

.top-tab.selected {
    background: rgba(40, 40, 45, 0.95);
    border-color: rgba(100, 100, 255, 0.3);
}

.top-tab .game-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.top-tab .game-name {
    color: #888;
    font-size: 11px;
    font-weight: normal;
}

.top-tab .map-name {
    color: #ff4444;
    font-size: 11px;
    font-weight: 600;
}

.top-tab .server-name {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: topShine 3s infinite;
}

@keyframes topShine {
    0%, 100% { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
    50% { background: linear-gradient(135deg, #fde047, #fbbf24); }
}

.badge_buy_servers {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    box-shadow: 0 0 12px rgba(251,191,36,0.8);
    z-index: 10;
}
.badgee_buy_servers-red {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 0 12px rgba(239,68,68,0.8);
}
.badgee_buy_servers-blue {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 0 12px rgba(59,130,246,0.8);
}

.card-gradient-top {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
}
.card-gradient-vip {
    background: linear-gradient(135deg, #fee2e2, #ef4444);
}
.card-gradient-boost {
    background: linear-gradient(135deg, #dbeafe, #3b82f6);
}