:root {
  --primary-color: #1db954;
  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --text-light: #ffffff;
  --text-gray: #c5c5c5;
}

/* Password Protection Styles */
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.password-overlay.hidden {
  display: none;
}

.password-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(29, 185, 84, 0.2);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.password-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.password-container h2 {
  color: var(--text-light);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.password-container p {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.password-form input {
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.password-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.2);
}

.password-form input::placeholder {
  color: var(--text-gray);
}

.password-submit {
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.password-submit:hover {
  background: #1ed760;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(29, 185, 84, 0.3);
}

.password-submit:active {
  transform: translateY(0);
}

.password-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff6b6b;
  font-size: 0.9rem;
  padding: 0.75rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 6px;
  margin-top: 1rem;
}

.password-error i {
  font-size: 1rem;
}

/* Hide main content when password overlay is active */
body.password-protected {
  overflow: hidden;
}

body.password-protected .navbar,
body.password-protected main,
body.password-protected footer,
body.password-protected .social-links {
  display: none;
}

/* Coming Soon Overlay Styles */
.coming-soon-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  border-radius: 12px !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.coming-soon-backup {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 9 !important;
  border-radius: 12px !important;
  pointer-events: auto !important;
  display: none !important;
}

.coming-soon-content {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

.coming-soon-content i {
  font-size: 3rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.coming-soon-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 600;
}

.coming-soon-content p {
  font-size: 1rem;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.4;
}

/* Mobile responsive styles for password protection */
@media (max-width: 768px) {
  .password-container {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
  
  .password-logo {
    width: 100px;
    margin-bottom: 1.5rem;
  }
  
  .password-container h2 {
    font-size: 1.5rem;
  }
  
  .password-container p {
    font-size: 0.9rem;
  }
  
  .password-form input {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .password-submit {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .password-container {
    padding: 1.5rem 1rem;
    max-width: 95%;
  }
  
  .password-logo {
    width: 80px;
    margin-bottom: 1rem;
  }
  
  .password-container h2 {
    font-size: 1.3rem;
  }
  
  .password-container p {
    font-size: 0.85rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.loading img {
  max-width: 200px;
  animation: pulse 2s infinite;
}

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

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar img {
  height: 48px;
  transform: scale(1.3);
  transition: transform 0.3s ease;
}

.navbar img:hover {
  /* Animation handled by JavaScript for smooth deceleration */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--bg-darker));
  pointer-events: none;
  z-index: 2;
}

/* Scroll indicator arrow */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  transform: translateX(-50%) scale(1.1);
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
  color: #1ed760;
  filter: drop-shadow(0 4px 8px rgba(29, 185, 84, 0.4));
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  z-index: 3;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 900;
  letter-spacing: -1px;
}

.hero-content h1 .white-text {
  color: white;
}

.hero-content h1 .green-text {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
  transform: translateY(-2px);
  background-color: #1ed760;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) translateY(-100%);
}

.cta-button i {
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.steam-button {
  background-color: var(--primary-color);
  border: none;
  outline: none;
}

.steam-button:hover {
  background-color: #1ed760;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
}

.steam-button:hover i {
  color: var(--text-light);
}

.steam-button:focus {
  outline: none;
}

.shop-section {
  padding: 5rem 2rem;
  background-color: var(--bg-darker);
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: visible;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.shop-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(29, 185, 84, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(29, 185, 84, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-10px) rotateX(10deg);
  border-color: rgba(29, 185, 84, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.shop-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2rem;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 1.1rem;
  line-height: 1.6;
}

.shop-card .price {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-period {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: normal;
}

.features-list {
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1rem;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.shop-buttons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.shop-button {
  flex: 1;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.buy-button {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.gift-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-button:hover {
  background-color: #444;
}

.shop-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-button:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) translateY(-100%);
}

.buy-button:hover {
  background-color: #1ed760;
}

.gift-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.shop-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* allow JS to control height for full-page coverage */
  pointer-events: none;
  z-index: 1;
}

.floating-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
  animation: floatParticle 8s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(var(--moveX), var(--moveY)) rotate(360deg);
  }
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: rotate(5deg);
  animation: pulse 2s infinite;
}

.shop-section-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.shop-section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  .shop-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .shop-card {
    padding: 1.5rem;
  }

  .shop-card h3 {
    font-size: 1.75rem;
  }

  .shop-card .price {
    font-size: 2rem;
  }

  .shop-section-title {
    font-size: 2.5rem;
  }
}

.social-links {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 90;
  background: rgba(10, 10, 10, 0.8);
  padding: 1rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s cubic-bezier(0.42, 0, 0.58, 1),
    opacity 0.3s ease;
}

.social-links.hidden {
  transform: translate(200%, -50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px;
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links a:hover img {
  filter: brightness(1.2);
}

  .login-container {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }
  
  .login-button {
    font-size: 1rem;
    padding: 8px;
  }
  
  .user-profile {
    padding: 0;
  }
  
  #userAvatar {
    width: 100%;
    height: 100%;
  }
  
  .user-info {
    top: -40px;
    padding: 0.4rem;
  }
  
  .user-name {
    font-size: 0.7rem;
  }
  
  .logout-button {
    font-size: 0.7rem;
  }

/* Audio Player Styles */
.audio-player-container {
  width: 40px;
  height: 40px;
  position: relative;
  margin-bottom: 0;
}

.audio-toggle {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  padding: 8px;
}

.audio-toggle:hover {
  transform: scale(1.1);
  background: rgba(29, 185, 84, 0.3);
  color: var(--primary-color);
}

.audio-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.audio-toggle.playing {
  background: rgba(29, 185, 84, 0.2);
  color: var(--primary-color);
  animation: audio-pulse 2s infinite;
}

.audio-toggle.playing:hover {
  background: rgba(29, 185, 84, 0.4);
}

@keyframes audio-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(29, 185, 84, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.6);
  }
}

#audioStream {
  display: none;
}

/* Mobile responsive for audio player */
@media (max-width: 768px) {
  .audio-player-container {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
  }
  
  .audio-toggle {
    font-size: 1rem;
    padding: 6px;
  }
}

/* Login/Profile Styles */
.login-container {
  width: 40px;
  height: 40px;
  position: relative;
  margin-bottom: 0;
}

.login-button {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  padding: 8px;
}

.login-button:hover {
  transform: scale(1.1);
  background: rgba(114, 137, 218, 0.3);
  color: #7289da;
}

.login-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.login-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.user-profile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0;
  position: relative;
}

.user-profile:hover {
  transform: scale(1.1);
}

#userAvatar {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.user-info {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.95);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 100;
  pointer-events: none;
}

.user-profile:hover .user-info,
.user-info:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
  pointer-events: auto;
}

/* Create a hover bridge between button and tooltip */
.user-profile::before {
  content: '';
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 45px;
  background: transparent;
  z-index: 99;
  pointer-events: none;
}

.user-profile:hover::before {
  pointer-events: auto;
}

.user-name {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-right: 0.5rem;
}

.logout-button {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.logout-button:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: rgba(10, 10, 10, 0.95);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 300px;
  word-wrap: break-word;
}

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

.toast.success {
  border-left: 4px solid var(--primary-color);
}

.toast.error {
  border-left: 4px solid #ff6b6b;
}

.toast.info {
  border-left: 4px solid #4a9eff;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast.success .toast-icon {
  color: var(--primary-color);
}

.toast.error .toast-icon {
  color: #ff6b6b;
}

.toast.info .toast-icon {
  color: #4a9eff;
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
}

footer {
  background: var(--bg-darker);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  margin-top: auto;
}

footer p {
  color: var(--text-gray);
  margin: 0.5rem 0;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #1ed760;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  transition: background-color 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Higher z-index for forum modals to ensure they appear above other modals */
#threadModal,
#categoryModal {
  z-index: 1100;
}

.modal.active {
  display: flex;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

#communityModal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(29, 185, 84, 0.2) 0%,
    rgba(10, 10, 10, 0.95) 70%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#communityModal.active::before {
  opacity: 1;
}

.modal-content {
  background: rgba(10, 10, 10, 0.95);
  padding: 1.5rem;
  border-radius: 15px;
  max-width: 90%;
  width: 400px;
  position: relative;
  opacity: 0;
  transform: scale(0.7) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
  border: 1px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

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

.rule-item {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-title {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.rule-title i {
  font-size: 0.9rem;
}

.rule-description {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.3;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  transform: scale(1);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: scale(1.1);
  border-color: var(--primary-color);
}

.community-content {
  text-align: center;
  padding: 1rem;
}

.discord-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  animation: float 3s ease-in-out infinite;
}

.community-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.member-count {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.community-description {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0.75rem 0;
  line-height: 1.4;
}

.join-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: 1rem;
  transition: transform 0.3s, background-color 0.3s;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.join-discord-btn i {
  font-size: 1.1rem;
}

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

.menu-toggle {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 30px;
  position: relative;
  z-index: 101;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--primary-color);
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.menu-toggle span:nth-child(1) {
  top: 0px;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  top: 18px;
}

.menu-toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-toggle.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: rgba(29, 185, 84, 0.2);
  border-color: #1ed760;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.97),
      rgba(29, 185, 84, 0.1)
    );
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 2rem;
    padding: 1rem 0;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links a:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links a:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links a:nth-child(4) {
    transition-delay: 0.4s;
  }

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

  .nav-links a:hover::after {
    width: 100%;
    left: 0;
  }

  .social-links {
    display: flex;
    position: fixed;
    bottom: 1rem;
    right: unset;
    left: 50%;
    top: unset;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 0.75rem;
    gap: 1rem;
    border-radius: 12px;
    animation: slideUp 0.5s ease-out;
    transition: transform 0.5s cubic-bezier(0.42, 0, 0.58, 1),
      opacity 0.3s ease;
  }

  .social-links.hidden {
    transform: translate(-50%, 200%) rotate(-45deg);
    opacity: 0;
    pointer-events: none;
  }

  @keyframes slideUp {
    from {
      transform: translate(-50%, 100%);
      opacity: 0;
    }
    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }

  .social-links a {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .social-links a img {
    filter: brightness(0.9);
  }

  .social-links a:hover img {
    filter: brightness(1.2);
  }

  .shop-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 4.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }
}

.media-showcase {
  position: relative;
  min-height: auto;
  background: var(--bg-darker);
  overflow: hidden;
  padding: 3rem 2rem;
  padding-bottom: 3rem;
  margin-top: -2rem;
}

.video-section {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.video-section-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive grid for different screen sizes */
@media (max-width: 1024px) and (min-width: 769px) {
  .featured-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1400px) {
  .featured-container {
    max-width: 1400px;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1600px) {
  .featured-container {
    max-width: 1600px;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.media-player {
  position: relative;
  padding-top: 56.25%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transform-style: preserve-3d;
  animation: float-random 6s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-player:nth-child(1) {
  animation-delay: 0s;
}
.media-player:nth-child(2) {
  animation-delay: -2s;
}
.media-player:nth-child(3) {
  animation-delay: -4s;
}
.media-player:nth-child(4) {
  animation-delay: -1s;
}
.media-player:nth-child(5) {
  animation-delay: -3s;
}
.media-player:nth-child(6) {
  animation-delay: -5s;
}

.media-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.media-player::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(29, 185, 84, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 12px;
}

@keyframes float-random {
  0%,
  100% {
    transform: translateY(0) rotateX(1deg) rotateY(-1deg);
  }
  50% {
    transform: translateY(-15px) rotateX(-1deg) rotateY(1deg);
  }
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(29, 185, 84, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.3rem;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav-arrow:hover:not(:disabled) {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.nav-arrow:focus {
  background-color: var(--primary-color);
  outline: none;
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-arrow.prev {
  left: 1rem;
}

.nav-arrow.next {
  right: 1rem;
}

.nav-arrow i {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .media-showcase {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .video-section {
    margin-bottom: 2rem;
  }

  .video-section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .featured-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }

  .featured-container .media-player {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
  }

  .video-section {
    position: relative;
    overflow: hidden;
    padding: 0 0.5rem;
  }

  .nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .media-player {
    transform: scale(0.9);
  }

  .content-tabs {
    margin-bottom: 1rem;
    gap: 0.5rem;
  }

  .tab-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .tab-button i {
    font-size: 1rem;
  }
}

.modal-bg-logos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.floating-logo {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url("https://i.ibb.co/PMDfFwZ/6f5df5bcf73e760103f18d85dfd55e4fb140a710-4-2.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.15;
  filter: brightness(1.5);
  transform-origin: center;
  animation: floatLogo 8s infinite linear;
}

@keyframes floatLogo {
  0% {
    transform: rotate(0deg) translate(var(--radius)) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translate(var(--radius)) rotate(-360deg);
  }
}

.game-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-overlay.active {
  display: block;
  opacity: 1;
}

#gameCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
}

.game-ui {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(29, 185, 84, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.game-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 1rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.leaderboard {
  position: absolute;
  top: 5rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 10px;
  min-width: 200px;
  transform: translateX(calc(100% - 50px));
  transition: transform 0.3s ease;
  border: 1px solid rgba(29, 185, 84, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.leaderboard:hover {
  transform: translateX(0);
}

.leaderboard::before {
  content: "📊";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0.8;
}

.leaderboard h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  padding-left: 20px;
}

.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

.leaderboard-list::-webkit-scrollbar {
  width: 5px;
}

.leaderboard-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.leaderboard-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

.leaderboard-item {
  color: var(--text-light);
  margin: 0.25rem 0;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.close-game {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.close-game:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .shop-card {
    padding: 1.25rem;
  }

  .shop-card h3 {
    font-size: 1.5rem;
  }

  .shop-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .shop-card .price {
    font-size: 2rem;
  }

  .feature-item {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .shop-button {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .popular-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@keyframes fadeInFeature {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.feature-item {
  opacity: 0;
  transform: translateX(-20px);
}

/* Focus management and accessibility improvements */
/* Removed global focus outline to prevent unwanted box outlines on navigation */

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Improved menu toggle button styling */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: rgba(29, 185, 84, 0.2);
  border-color: #1ed760;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

/* Modal improvements */
.modal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Video carousel improvements */
.featured-container {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-player {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.media-player:hover,
.media-player:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(29, 185, 84, 0.3);
}

.media-player:hover iframe,
.media-player:focus iframe {
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
}

.media-player:focus-visible {
  outline: none;
}

/* Navigation arrow improvements */
.nav-arrow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

.nav-arrow:hover:not(:disabled) {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.nav-arrow:focus {
  background-color: var(--primary-color);
  outline: none;
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Shop card hover effect improvements */
.shop-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button improvements */
.shop-button,
.cta-button,
.join-discord-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.shop-button:focus,
.cta-button:focus,
.join-discord-btn:focus {
  outline: none;
}

/* Social links improvements */
.social-links a {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.social-links a:focus {
  outline: none;
}

/* Improved mobile responsiveness */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
  
  .shop-card {
    margin: 0 10px;
    padding: 1.5rem 1rem;
  }
  
  .features-list {
    gap: 0.75rem;
  }
  
  .feature-item {
    font-size: 0.9rem;
  }
  
  .shop-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .navbar img {
    height: 40px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .floating-particle {
    animation: none !important;
  }
  
  .hero video {
    display: none;
  }
  
  .hero {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bg-dark: #000000;
    --bg-darker: #000000;
    --text-light: #ffffff;
    --primary-color: #00ff00;
  }
  
  .shop-card,
  .modal-content {
    border: 2px solid var(--text-light);
  }
  
  .hero video {
    filter: brightness(0.2) contrast(1.5);
  }
}

/* Print styles */
@media print {
  .loading,
  .social-links,
  .nav-arrow,
  .floating-particle,
  video,
  .media-player {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .shop-card {
    border: 1px solid black;
    break-inside: avoid;
  }
}

/* Performance optimizations */
.floating-particle {
  contain: layout style paint;
  will-change: transform;
}

.shop-card {
  contain: layout style;
}

.media-player iframe {
  contain: strict;
}

/* Smooth scrolling enhancement */
html {
  scroll-padding-top: 80px; /* Account for fixed navbar */
}

/* Custom scrollbar styling to match theme */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), #1ed760);
  border-radius: 6px;
  border: 2px solid var(--bg-darker);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1ed760, var(--primary-color));
  transform: scale(1.05);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-darker);
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
  /* Already using dark theme, but ensure consistency */
  :root {
    color-scheme: dark;
  }
}

/* Content tabs styling */
.content-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  color: var(--text-gray);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  transform: translateY(-2px);
}

.tab-button.active {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.3);
}

.tab-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.tab-button i {
  font-size: 1.1rem;
}

/* Tab panels */
.tab-panel {
  display: none;
  position: relative;
  overflow: hidden;
}

.tab-panel.active {
  display: block;
}

/* YouTube specific scaling */
.youtube-container .media-player {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.youtube-container .media-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

/* TikTok specific styling */
.tiktok-container .media-player {
  aspect-ratio: 9/16; /* TikTok's vertical aspect ratio */
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Desktop uses the same grid as .featured-container; mobile rules remain below */

.tiktok-container .media-player.focused {
  /* Avoid scaling on desktop to keep centered alignment exact */
  transform: none;
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3);
  z-index: 10;
}

.tiktok-container .media-player iframe {
  border-radius: 12px !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  object-fit: cover !important;
  border: none !important;
  pointer-events: none !important;
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
}

.tiktok-container .media-player blockquote {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* TikTok embed specific styling */
.tiktok-embed {
  height: 100% !important;
  width: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
}

.tiktok-embed iframe {
  border-radius: 12px !important;
  height: 100% !important;
  width: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  object-fit: cover !important;
  border: none !important;
  transform: scale(1.02) !important; /* Slight scale to ensure no gaps */
  pointer-events: none !important;
}

.tiktok-embed section {
  height: 100% !important;
  width: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.tiktok-embed a {
  height: 100% !important;
  width: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-decoration: none !important;
  color: white !important;
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6)) !important;
  overflow: hidden !important;
}

/* TikTok embed video element specifically */
.tiktok-embed video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 12px !important;
}

/* Enhanced fallback styling */
.tiktok-fallback {
  background: linear-gradient(135deg, #ff0050, #00f2ea);
  border-radius: 12px;
  padding: 0;
  text-align: center;
  color: white;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.tiktok-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tiktok-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.tiktok-info {
  text-align: center;
}

.tiktok-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.tiktok-username {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.tiktok-description {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 0;
}

.tiktok-actions {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.tiktok-link {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.tiktok-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tiktok-link i {
  font-size: 0.8rem;
}

/* New TikTok video styles for direct media links */
.tiktok-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
}

.tiktok-video-element:hover {
  transform: scale(1.05);
}

.tiktok-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.tiktok-container .media-player:hover .tiktok-overlay {
  transform: translateY(0);
}

.tiktok-overlay .tiktok-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tiktok-overlay .tiktok-description {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.tiktok-profile-link {
  margin-top: 0.5rem;
}

.tiktok-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tiktok-profile-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.tiktok-profile-btn i {
  color: #ff0050;
  font-size: 1.1rem;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
  .content-tabs {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .tab-button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    flex: 1;
    min-width: 120px;
  }
  
  .tab-button i {
    font-size: 0.95rem;
  }
  
  .tiktok-container .media-player {
    flex: 0 0 100%;
    width: 100%;
    max-width: 280px;
    min-height: 250px;
    margin: 0 auto;
    transform: scale(0.9);
  }
  
  .tiktok-container .media-player.focused {
    transform: scale(1);
    max-width: 320px;
    min-height: 280px;
  }
  
  .tiktok-preview {
    padding: 1rem 0.75rem;
  }
  
  .tiktok-icon {
    font-size: 2.5rem;
  }
  
  .tiktok-info h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .content-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-button {
    min-width: 180px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .tab-button i {
    font-size: 0.9rem;
  }
  
  .tiktok-container .media-player {
    flex: 0 0 100%;
    width: 100%;
    max-width: 240px;
    min-height: 200px;
    margin: 0 auto;
    transform: scale(0.85);
  }
  
  .tiktok-container .media-player.focused {
    transform: scale(1);
    max-width: 280px;
    min-height: 240px;
  }
  
  .tiktok-preview {
    padding: 0.75rem 0.5rem;
  }
  
  .tiktok-icon {
    font-size: 2rem;
  }
  
  .tiktok-info h3 {
    font-size: 0.9rem;
  }
  
  .tiktok-username {
    font-size: 0.75rem;
  }
  
  .tiktok-description {
    font-size: 0.75rem;
  }
  
  .tiktok-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
} 

/* Item Shop Section Styles */
.item-shop-section {
  padding: 3rem 2rem;
  position: relative;
  background-color: var(--bg-darker);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-shop-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.item-shop-header {
  position: relative;
  z-index: 3;
  padding: 0 0 2rem 0;
  text-align: center;
  width: 100%;
}

.item-shop-title h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 20px rgba(29, 185, 84, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.item-shop-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.item-shop-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.item-shop-timer {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.timer-label {
  font-size: 0.7rem;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.timer-countdown {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.item-shop-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  width: 100%;
}

.item-shop-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.shop-tab {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-gray);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shop-tab:hover {
  border-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.shop-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-darker);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.5);
}

.tab-icon {
  font-size: 1.2rem;
}

.item-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Item shop card slide transitions (membership-card feel) */
.item-skin-card {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Elevation similar to membership cards on move */
.item-skin-card.is-animating {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.item-skin-card.slide-out-left {
  transform: translate3d(-120%, 0, 0);
  -webkit-transform: translate3d(-120%, 0, 0);
  opacity: 0;
}

.item-skin-card.slide-out-right {
  transform: translate3d(120%, 0, 0);
  -webkit-transform: translate3d(120%, 0, 0);
  opacity: 0;
}

.item-skin-card.slide-in-left {
  transform: translate3d(-120%, 0, 0);
  -webkit-transform: translate3d(-120%, 0, 0);
  opacity: 0;
}

.item-skin-card.slide-in-right {
  transform: translate3d(120%, 0, 0);
  -webkit-transform: translate3d(120%, 0, 0);
  opacity: 0;
}

/* When entering, we remove slide-in-* to transition to neutral position */
.item-skin-card.slide-enter-active {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* Tighter, more locked scaling for mini skins on small screens */
@media (max-width: 768px) {
  .item-skin-card {
    transform: translate3d(0, 0, 0);
  }
  .item-skin-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
  }
}

/* iOS Safari specific stabilizers and formatting */
@supports (-webkit-touch-callout: none) {
  .item-shop-section {
    /* Avoid 100vh quirks on iOS */
    min-height: auto;
    -webkit-overflow-scrolling: touch;
  }
  .item-shop-grid {
    contain: layout paint;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
  }
  .item-skin-card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
    /* Safari-specific card formatting */
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .item-skin-image {
    aspect-ratio: 16 / 9;
    height: auto;
    flex-shrink: 0;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
  .item-skin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .item-skin-title {
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  .item-skin-description {
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    line-height: 1.4;
    overflow-wrap: break-word;
    flex: 1;
    overflow: hidden;
  }
  .item-skin-info {
    flex-shrink: 0;
    margin-top: auto;
  }
  .item-skin-price {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .item-skin-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .item-skin-actions button {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Shop navigation styles */
.shop-items-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 2rem;
}

.shop-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10;
}

.shop-nav-arrow:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: var(--bg-darker);
  transform: translateY(-50%) scale(1.1);
}

.shop-nav-arrow:focus {
  background-color: var(--primary-color);
  color: var(--bg-darker);
  outline: none;
}

.shop-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.shop-nav-arrow.prev {
  left: 1rem;
}

.shop-nav-arrow.next {
  right: 1rem;
}

.shop-nav-arrow i {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.item-skin-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(29, 185, 84, 0.1));
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  height: 500px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  contain: layout style;
}

.item-skin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(29, 185, 84, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.item-skin-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(29, 185, 84, 0.3);
}

/* Disable scale transform on mobile to prevent distortion */
@media (max-width: 768px) {
  .item-skin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(29, 185, 84, 0.2);
  }
  
  /* Prevent any horizontal overflow on mobile */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  body {
    overflow-x: hidden;
  }
}

.item-skin-card:hover::before {
  opacity: 1;
}

.item-skin-card.owned {
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.item-skin-card.owned::after {
  content: "OWNED";
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.item-skin-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.1), rgba(10, 10, 10, 0.8));
  position: relative;
  z-index: 1;
}

.item-skin-info {
  padding: 2rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: space-between;
}

.item-skin-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 1rem;
}

.item-skin-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.item-skin-rarity {
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-start;
  flex-shrink: 0;
}

.rarity-tag {
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rarity-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.rarity-common {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border-color: rgba(156, 163, 175, 0.3);
}

.rarity-uncommon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.rarity-rare {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.rarity-epic {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.3);
  animation: epic-pulse 3s ease-in-out infinite;
}

.rarity-legendary {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  animation: legendary-glow 2s ease-in-out infinite alternate;
}

@keyframes epic-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  }
}

@keyframes legendary-glow {
  0% {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
  }
  100% {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
  }
}

.item-skin-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  flex-shrink: 0;
}

.item-price-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
  letter-spacing: 0.5px;
}

.item-skin-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0;
  flex-shrink: 0;
}

.item-skin-button {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.item-skin-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.item-skin-button:hover::before {
  left: 100%;
}

.item-skin-button.buy {
  background: linear-gradient(135deg, var(--primary-color), #1ed760);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.item-skin-button.buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
}

.item-skin-button.gift {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.item-skin-button.gift:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.item-skin-button.owned {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  cursor: default;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.item-skin-button.owned:hover {
  transform: none;
}

.item-login-prompt {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(29, 185, 84, 0.1));
  border: 2px solid rgba(29, 185, 84, 0.3);
  border-radius: 12px;
  margin: 2rem 0;
}

.item-login-content {
  max-width: 400px;
  margin: 0 auto;
}

.item-login-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.item-login-content h3 {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.item-login-content p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.item-login-btn {
  background: linear-gradient(135deg, #7289da, #5865f2);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(114, 137, 218, 0.3);
}

.item-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(114, 137, 218, 0.4);
}

.item-back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-gray);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-light);
  transform: translateY(-2px);
}

.item-back-btn i {
  font-size: 1rem;
}

.item-shop-footer {
  position: relative;
  z-index: 3;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(29, 185, 84, 0.1));
  border-top: 2px solid var(--primary-color);
}

.item-shop-info {
  color: var(--text-gray);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.item-shop-info span {
  opacity: 0.8;
}

/* Item Shop Mobile Responsive */
@media (max-width: 768px) {
  .item-shop-section {
    min-height: 100vh;
    padding: 1rem 0.5rem;
    overflow-x: hidden;
  }

  .item-shop-header {
    padding: 0 0 1rem 0;
  }

  .item-shop-title h2 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .item-shop-subtitle {
    font-size: 0.9rem;
  }

  .item-shop-timer {
    position: static;
    margin-top: 0.5rem;
    display: inline-block;
  }

  .item-shop-container {
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .item-shop-tabs {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .shop-tab {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }

  .item-shop-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 100%;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    /* Safari mobile optimizations */
    -webkit-overflow-scrolling: touch;
    contain: layout paint;
  }

  .item-skin-card {
    margin: 0;
    height: auto;
    min-height: 400px;
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
    border-radius: 8px;
    border-width: 2px;
    /* Safari mobile card formatting */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .item-skin-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    /* Safari image optimizations */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  .item-skin-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    justify-content: space-between;
    /* Safari mobile info formatting */
    overflow: hidden;
  }

  .item-skin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    /* Safari content formatting */
    min-height: 0;
    overflow: hidden;
  }

  .item-skin-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    /* Safari text formatting */
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .rarity-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.75rem;
    /* Safari tag formatting */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .item-price-amount {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    /* Safari price formatting */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .item-skin-actions {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
    flex-shrink: 0;
    /* Safari actions formatting */
    display: flex;
  }

  .item-skin-actions button {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .item-skin-button {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .item-login-prompt {
    padding: 1.5rem 0.75rem;
    margin: 0.5rem;
  }

  .item-login-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .item-login-content h3 {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .item-login-content p {
    font-size: 0.85rem;
  }

  .item-login-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .item-shop-footer {
    padding: 1rem 0.5rem;
  }

  .item-shop-info {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .item-shop-section {
    padding: 0.75rem 0.25rem;
    overflow-x: hidden;
  }

  .item-shop-title h2 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .item-shop-subtitle {
    font-size: 0.85rem;
  }

  .item-shop-timer {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  .timer-label {
    font-size: 0.6rem;
  }

  .timer-countdown {
    font-size: 1rem;
  }

  .shop-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
  }

  .item-shop-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
  }

  .item-skin-card {
    height: auto;
    min-height: 350px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 6px;
    border-width: 1px;
  }

  .item-skin-image {
    height: 150px;
    width: 100%;
    object-fit: cover;
  }

  .item-skin-info {
    padding: 0.75rem;
    justify-content: space-between;
  }

  .item-skin-content {
    margin-bottom: 0.5rem;
  }

  .item-skin-name {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.1;
  }

  .rarity-tag {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
  }

  .item-price-amount {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .item-skin-button {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .item-login-prompt {
    padding: 1rem 0.5rem;
    margin: 0.25rem;
  }

  .item-login-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .item-login-content h3 {
    font-size: 1.1rem;
  }

  .item-login-content p {
    font-size: 0.8rem;
  }

  .item-login-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
  .item-shop-section {
    padding: 0.5rem 0.125rem;
    overflow-x: hidden;
  }

  .item-shop-title h2 {
    font-size: 1.6rem;
    letter-spacing: 0.25px;
  }

  .item-shop-container {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .item-shop-grid {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    padding: 0 0.125rem;
  }

  .item-skin-card {
    height: auto;
    min-height: 320px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 4px;
    border-width: 1px;
  }

  .item-skin-image {
    height: 130px;
    width: 100%;
    object-fit: cover;
  }

  .item-skin-info {
    padding: 0.5rem;
    justify-content: space-between;
  }

  .item-skin-content {
    margin-bottom: 0.4rem;
  }

  .item-skin-name {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    line-height: 1.1;
  }

  .rarity-tag {
    font-size: 0.55rem;
    padding: 0.2rem 0.4rem;
    margin-bottom: 0.4rem;
  }

  .item-price-amount {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .item-skin-button {
    padding: 0.5rem 0.6rem;
    font-size: 0.7rem;
  }

  .item-login-prompt {
    padding: 0.75rem 0.375rem;
    margin: 0.125rem;
  }

  .item-login-icon {
    font-size: 1.75rem;
    margin-bottom: 0.375rem;
  }

  .item-login-content h3 {
    font-size: 1rem;
  }

  .item-login-content p {
    font-size: 0.75rem;
  }

  .item-login-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
}

.chat-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-color);
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
}

.chat-welcome {
  text-align: center;
  color: var(--text-gray);
  padding: 2rem;
}

.chat-welcome i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message.system {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.chat-message.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.chat-message.user-message {
  background: rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.2);
}

.chat-message .message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-message .message-avatar i {
  color: white;
  font-size: 0.9rem;
}

.chat-message .message-content {
  flex: 1;
  min-width: 0;
}

.chat-message .message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.chat-message .message-username {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-message .message-time {
  color: var(--text-gray);
  font-size: 0.8rem;
}

.chat-message .message-text {
  color: var(--text-light);
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-input-container {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(29, 185, 84, 0.2);
}

.login-prompt {
  text-align: center;
  color: var(--text-gray);
  padding: 1rem;
}

.login-prompt i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #5865f2;
}

.chat-login-btn {
  background: #5865f2;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chat-login-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

#chatInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

#chatInput:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.15);
}

#chatInput::placeholder {
  color: var(--text-gray);
}

.chat-send-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

.chat-send-btn:disabled {
  background: var(--text-gray);
  cursor: not-allowed;
  transform: none;
}



/* Role Verification Modal */
.role-verification-modal-content {
  max-width: 600px;
  width: 90%;
}

.verification-status {
  text-align: center;
  padding: 2rem;
}

.verification-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-gray);
}

.verification-loading i {
  font-size: 2rem;
  color: var(--primary-color);
}

.verification-result {
  padding: 1rem;
}

.user-roles {
  margin-bottom: 2rem;
}

.user-roles h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.role-item.required-role {
  background: rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.3);
}

.role-name {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.role-badge {
  background: rgba(29, 185, 84, 0.2);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(29, 185, 84, 0.3);
}

.error-message {
  color: #ef4444;
  text-align: center;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.access-level {
  margin-bottom: 2rem;
}

.access-level h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.access-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.access-level-granted {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
}

.access-level-granted i {
  font-size: 1.2rem;
}

.access-level-denied {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ef4444;
  font-weight: 600;
}

.access-level-denied i {
  font-size: 1.2rem;
}

.access-level-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f59e0b;
  font-weight: 600;
}

.access-level-error i {
  font-size: 1.2rem;
}

.access-level-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.access-level-icon.admin {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.access-level-icon.moderator {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.access-level-icon.member {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.access-level-icon.guest {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

.access-level-info h4 {
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.access-level-info p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0;
}

.verification-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.verification-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verification-button.primary {
  background: var(--primary-color);
  color: white;
}

.verification-button.primary:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

.verification-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.verification-button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-color);
}

/* Inventory Mobile Responsive */
@media (max-width: 768px) {
  .inventory-section {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .inventory-section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .inventory-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .inventory-container {
    max-width: 100%;
  }

  .inventory-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .inventory-stats {
    width: 100%;
    justify-content: space-between;
  }

  .inventory-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .inventory-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.75rem;
    max-height: 500px;
  }

  .skin-card {
    margin-bottom: 1rem;
  }

  .skin-image {
    height: 150px;
  }

  .skin-info {
    padding: 1rem;
  }

  .skin-name {
    font-size: 1.1rem;
  }

  .skin-description {
    font-size: 0.85rem;
  }

  .skin-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .skin-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .coming-soon-content {
    padding: 1.5rem;
  }
  
  .coming-soon-content i {
    font-size: 2.5rem;
  }
  
  .coming-soon-content h3 {
    font-size: 1.5rem;
  }
  
  .coming-soon-content p {
    font-size: 0.9rem;
  }
  
  .inventory-login-prompt {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
  }
  
  .inventory-login-prompt i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .inventory-login-prompt p {
    font-size: 0.85rem;
    max-width: 250px;
  }
  
  .inventory-login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .chat-section {
    padding: 1rem 0.75rem;
    min-height: 50vh;
  }

  .chat-section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .chat-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .chat-container {
    max-width: 100%;
  }

  .chat-header {
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .server-status {
    width: 100%;
    justify-content: space-between;
  }

  .server-name {
    font-size: 1rem;
  }

  .player-count {
    font-size: 0.8rem;
  }

  .chat-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .chat-button {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .chat-messages {
    height: 250px;
    padding: 0.5rem;
  }

  .chat-message {
    padding: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .chat-message .message-avatar {
    width: 24px;
    height: 24px;
  }

  .chat-message .message-author {
    font-size: 0.85rem;
  }

  .chat-message .message-time {
    font-size: 0.7rem;
  }

  .chat-message .message-text {
    font-size: 0.85rem;
  }

  .chat-input-container {
    padding: 0.5rem;
  }

  .chat-input-wrapper {
    gap: 0.4rem;
  }

  #chatInput {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .chat-send-btn {
    padding: 0.4rem 0.6rem;
  }

  .chat-send-btn i {
    font-size: 0.8rem;
  }
}










.thread-replies h3 {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.reply-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-color);
}

.reply-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.reply-content {
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.reply-time {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.category-threads-modal {
  max-width: 900px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  color: var(--text-light);
  padding-right: 0.5rem;
}

.category-threads-modal::-webkit-scrollbar {
  width: 0;
  display: none;
}

.category-threads-modal {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.category-threads-modal h2 {
  margin-bottom: 2rem;
  color: var(--text-light);
  text-align: center;
}

.category-threads-content {
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--primary-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  margin: 1rem;
}

/* Thread Detail Modal */
.thread-detail-content {
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--primary-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  margin: 1rem;
}

.thread-detail-modal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: var(--text-light);
  height: 100%;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.thread-detail-modal::-webkit-scrollbar {
  width: 0;
  display: none;
}

.thread-detail-modal {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.thread-header {
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
}

.thread-header h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.thread-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.thread-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar i {
  color: #888;
  font-size: 1.2rem;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.thread-date,
.reply-date {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.thread-stats {
  display: flex;
  gap: 1rem;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.thread-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thread-content-full {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
}

.thread-replies {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.thread-replies h3 {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reply-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
}

.reply-header {
  margin-bottom: 1rem;
}

.reply-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reply-content {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
}

.reply-form {
  border-top: 1px solid #444;
  padding-top: 1.5rem;
}

.reply-form h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.reply-form-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reply-form-content textarea {
  padding: 1rem;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
}

.reply-form-content textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

.login-prompt {
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  text-align: center;
}

.login-prompt p {
  color: var(--text-gray);
  font-style: italic;
}

.login-prompt i {
  margin-right: 0.5rem;
  color: var(--primary-color);
} 

