body {
  background-color: #0B1120;
  color: #FFFFFF;
}

.bg-card {
  background-color: #111827;
}

.bg-card-hover:hover {
  background-color: #1F2937;
}

.text-secondary-custom {
  color: #94A3B8;
}

.border-glass {
  border-color: rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.game-mock {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.feature-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.06);
}

.feature-card:hover {
  background: #1F2937;
}

.rank-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.04);
}

.rank-card:hover {
  background: #1F2937;
}

.testimonial-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.05);
}

.testimonial-card:hover {
  background: #1F2937;
}

.faq-item .accordion-button {
  background: #111827;
  color: #FFFFFF;
}

.faq-item .accordion-button:not(.collapsed) {
  background: #1F2937;
}

.faq-item .accordion-body {
  background: #0B1120;
  color: #94A3B8;
}

.accordion-item {
  background: #111827;
}

.navbar-custom.scrolled {
  background-color: #0B1120;
}

.hero-section {
  background: #0B1120;
}

.footer-link {
  color: #94A3B8;
}

.social-icon {
  color: #94A3B8;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: #0B1120;
  color: #FFFFFF;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.text-secondary-custom {
  color: #94A3B8;
}

.bg-primary-custom {
  background-color: #7C3AED;
}

.bg-secondary-custom {
  background-color: #A855F7;
}

.bg-card {
  background-color: #111827;
}

.bg-card-hover:hover {
  background-color: #1F2937;
  transition: 0.3s ease;
}

.border-glass {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-gradient {
  background: linear-gradient(135deg, #7C3AED, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-border {
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar-custom {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 0;
  z-index: 999;
}

.navbar-custom.scrolled {
  background-color: #0B1120;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.navbar-custom .nav-link {
  color: #FFFFFF !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

.navbar-custom .nav-link:hover {
  color: #A855F7 !important;
}

.btn-glow,
.create-room-form .btn-create,
.profile-actions .btn-profile.btn-glow-sm,
.auth-card .form-actions .btn-auth.btn-primary-glow {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: 0.3s ease;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.btn-glow:hover,
.create-room-form .btn-create:hover,
.profile-actions .btn-profile.btn-glow-sm:hover,
.auth-card .form-actions .btn-auth.btn-primary-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.7);
  color: #fff;
}

.btn-outline-glow,
.auth-card .form-actions .btn-auth.btn-outline-glow {
  background: transparent;
  border: 1.5px solid #7C3AED;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: 0.3s ease;
}

.btn-outline-glow:hover,
.auth-card .form-actions .btn-auth.btn-outline-glow:hover {
  background: #7C3AED;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
  color: #fff;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 4rem;
  background: #0B1120;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  z-index: 0;
  animation: pulseGlow 6s infinite alternate;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  z-index: 0;
  animation: pulseGlow2 8s infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  background: rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.hero-title {
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1.1;
}

.hero-title span {
  background: linear-gradient(135deg, #7C3AED, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-card .stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card .stat-item:last-child {
  border-right: none;
}

.floating-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #7C3AED;
  border-radius: 50%;
  box-shadow: 0 0 20px #7C3AED;
  opacity: 0.4;
  animation: floatUp 8s infinite;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }

  100% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

@keyframes pulseGlow2 {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }

  100% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0.2;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-120px) scale(0.5);
    opacity: 0;
  }
}

.stat-counter {
  font-weight: 700;
  font-size: 2.8rem;
  color: #fff;
}

.feature-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-12px);
  background: #1F2937;
  border-color: #7C3AED;
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

.feature-icon {
  font-size: 2.8rem;
  color: #A855F7;
  margin-bottom: 1rem;
}

.timeline-step {
  text-align: center;
  padding: 1rem;
}

.timeline-step .step-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.timeline-arrow {
  font-size: 2rem;
  color: #7C3AED;
  opacity: 0.6;
}

.game-mock {
  background: #111827;
  border-radius: 28px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.game-mock .letter-badge {
  font-size: 4rem;
  font-weight: 800;
  color: #22D3EE;
  background: rgba(34, 211, 238, 0.1);
  padding: 0.2rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #0B1120;
  margin-right: -10px;
}

.rank-card {
  background: #111827;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: 0.3s ease;
  text-align: center;
}

.rank-card:hover {
  transform: scale(1.03);
  background: #1F2937;
}

.rank-icon {
  font-size: 2.8rem;
}

.testimonial-card {
  background: #111827;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
}

.testimonial-card:hover {
  background: #1F2937;
}

.faq-item .accordion-button {
  background: #111827;
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: none;
  border-radius: 16px !important;
  padding: 1.2rem 1.5rem;
}

.faq-item .accordion-button:not(.collapsed) {
  background: #1F2937;
  color: #A855F7;
}

.faq-item .accordion-body {
  background: #0B1120;
  color: #94A3B8;
  border-radius: 0 0 16px 16px;
}

.accordion-item {
  border: none;
  margin-bottom: 0.8rem;
  border-radius: 16px !important;
  overflow: hidden;
  background: #111827;
}

.cta-section {
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.2), transparent 70%);
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-link {
  color: #94A3B8;
  transition: 0.2s;
}

.footer-link:hover {
  color: #A855F7;
}

.social-icon {
  color: #94A3B8;
  font-size: 1.4rem;
  margin: 0 0.5rem;
  transition: 0.2s;
}

.social-icon:hover {
  color: #A855F7;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }

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

  .timeline-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #0B1120;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  animation: pulseGlow 8s infinite alternate;
}

.auth-wrapper::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  bottom: -20%;
  left: -10%;
  animation: pulseGlow2 10s infinite alternate;
}

.auth-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent 50%, rgba(34, 211, 238, 0.05));
  z-index: -1;
  opacity: 0.5;
}

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

.auth-card .auth-header .auth-logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.auth-card .auth-header .auth-logo i {
  color: #7C3AED;
  margin-right: 0.5rem;
}

.auth-card .auth-header .auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.auth-card .auth-header .auth-subtitle {
  color: #94A3B8;
  font-size: 0.95rem;
}

.auth-card .form-group {
  margin-bottom: 1.25rem;
}

.auth-card .form-label {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.auth-card .form-control {
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.auth-card .form-control:focus {
  background: rgba(11, 17, 32, 0.8);
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  color: #FFFFFF;
}

.auth-card .form-control::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.auth-card .form-control.input-with-icon {
  padding-left: 2.8rem;
}

.auth-card .input-icon-wrapper {
  position: relative;
}

.auth-card .input-icon-wrapper .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.6;
}

.auth-card .input-icon-wrapper .input-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.auth-card .input-icon-wrapper .input-toggle:hover {
  opacity: 1;
  color: #7C3AED;
}

.auth-card .form-actions {
  margin-top: 1.5rem;
}

.auth-card .form-actions .btn-auth {
  width: 100%;
  padding: 0.85rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.auth-card .form-actions .btn-auth.btn-primary-glow {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

.auth-card .form-actions .btn-auth.btn-outline-glow {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

.auth-card .auth-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card .auth-links a {
  color: #A855F7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-card .auth-links a:hover {
  color: #7C3AED;
  text-decoration: underline;
}

.auth-card .auth-links p {
  color: #94A3B8;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.auth-card .auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card .auth-divider span {
  padding: 0 1rem;
  color: #94A3B8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-card .social-login {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.auth-card .social-login .btn-social {
  flex: 1;
  padding: 0.6rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 32, 0.4);
  color: #94A3B8;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.auth-card .social-login .btn-social:hover {
  background: rgba(31, 41, 55, 0.6);
  border-color: #7C3AED;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.auth-card .social-login .btn-social.btn-google:hover {
  border-color: #ea4335;
  color: #ea4335;
}

.auth-card .social-login .btn-social.btn-github:hover {
  border-color: #6e7681;
  color: #6e7681;
}

.auth-card .social-login .btn-social.btn-discord:hover {
  border-color: #5865f2;
  color: #5865f2;
}

.auth-card .otp-input-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.auth-card .otp-input-group .otp-input {
  width: 55px;
  height: 65px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(11, 17, 32, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.auth-card .otp-input-group .otp-input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  background: rgba(11, 17, 32, 0.8);
}

.auth-card .otp-input-group .otp-input::-webkit-outer-spin-button,
.auth-card .otp-input-group .otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auth-card .otp-input-group .otp-input[type=number] {
  -moz-appearance: textfield;
}

.auth-card .otp-timer {
  text-align: center;
  color: #94A3B8;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.auth-card .otp-timer .timer-count {
  color: #22D3EE;
  font-weight: 700;
  font-size: 1.1rem;
}

.auth-card .otp-timer .resend-link {
  color: #A855F7;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.auth-card .otp-timer .resend-link:hover {
  color: #7C3AED;
  text-decoration: underline;
}

.auth-card .otp-timer .resend-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-card .recovery-codes {
  background: rgba(11, 17, 32, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0;
}

.auth-card .recovery-codes .code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.auth-card .recovery-codes .code-grid .code-item {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #FFFFFF;
  background: rgba(11, 17, 32, 0.3);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 1px;
}

.auth-card .setup-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-card .setup-steps .step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.auth-card .setup-steps .step .step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.auth-card .setup-steps .step .step-content {
  flex: 1;
}

.auth-card .setup-steps .step .step-content .step-title {
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.auth-card .setup-steps .step .step-content .step-desc {
  color: #94A3B8;
  font-size: 0.9rem;
}

.auth-card .qr-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.auth-card .qr-container .qr-code {
  width: 180px;
  height: 180px;
  background: rgba(11, 17, 32, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #94A3B8;
  position: relative;
  overflow: hidden;
}

.auth-card .qr-container .qr-code::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: repeating-conic-gradient(#94A3B8 0% 25%, transparent 0% 50%) 0 0/20px 20px;
  opacity: 0.1;
  mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
}

.auth-card .qr-container .qr-code i {
  position: relative;
  z-index: 1;
  opacity: 0.5;
}

.auth-card .password-strength {
  margin-top: 0.5rem;
}

.auth-card .password-strength .strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.auth-card .password-strength .strength-bar .strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0%;
}

.auth-card .password-strength .strength-bar .strength-fill.weak {
  width: 25%;
  background: #EF4444;
}

.auth-card .password-strength .strength-bar .strength-fill.medium {
  width: 50%;
  background: #f59e0b;
}

.auth-card .password-strength .strength-bar .strength-fill.strong {
  width: 75%;
  background: #10B981;
}

.auth-card .password-strength .strength-bar .strength-fill.very-strong {
  width: 100%;
  background: #22D3EE;
}

.auth-card .password-strength .strength-label {
  font-size: 0.8rem;
  color: #94A3B8;
}

.auth-card .password-strength .strength-label.weak {
  color: #EF4444;
}

.auth-card .password-strength .strength-label.medium {
  color: #f59e0b;
}

.auth-card .password-strength .strength-label.strong {
  color: #10B981;
}

.auth-card .password-strength .strength-label.very-strong {
  color: #22D3EE;
}

.auth-card .auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-card .auth-alert i {
  font-size: 1.1rem;
}

.auth-card .auth-alert.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.auth-card .auth-alert.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.auth-card .auth-alert.alert-info {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: #22D3EE;
}

.auth-page.page-2fa .auth-card {
  max-width: 480px;
}

.auth-page.page-otp .auth-card {
  max-width: 420px;
}

.auth-page.page-forgot .auth-card {
  max-width: 440px;
}

@media (max-width: 576px) {
  .auth-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .auth-card .auth-header .auth-logo {
    font-size: 2rem;
  }

  .auth-card .auth-header .auth-title {
    font-size: 1.4rem;
  }

  .auth-card .otp-input-group {
    gap: 0.5rem;
  }

  .auth-card .otp-input-group .otp-input {
    width: 45px;
    height: 55px;
    font-size: 1.2rem;
  }

  .auth-card .social-login {
    flex-direction: column;
  }

  .auth-card .social-login .btn-social {
    padding: 0.5rem;
  }

  .auth-card .recovery-codes .code-grid {
    grid-template-columns: 1fr;
  }
}

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

  .auth-card .otp-input-group .otp-input {
    width: 38px;
    height: 48px;
    font-size: 1rem;
  }
}

.profile-wrapper {
  min-height: 100vh;
  padding: 7rem 0 3rem;
  background: #0B1120;
  position: relative;
}

.profile-wrapper::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  top: 0;
  right: 0;
  pointer-events: none;
}

.profile-header {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
  border-radius: 50%;
}

.profile-avatar {
  position: relative;
  display: inline-block;
}

.profile-avatar .avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #7C3AED;
  object-fit: cover;
  background: #1F2937;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
}

.profile-avatar .avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #7C3AED;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 2px solid #0B1120;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-avatar .avatar-badge:hover {
  transform: scale(1.1);
  background: #A855F7;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.profile-avatar .avatar-rank {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.3));
}

.profile-info .profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.profile-info .profile-name .verified-badge {
  color: #22D3EE;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.profile-info .profile-username {
  color: #94A3B8;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.profile-info .profile-username i {
  margin-right: 0.4rem;
  color: #A855F7;
}

.profile-info .profile-bio {
  color: #94A3B8;
  font-size: 0.95rem;
  max-width: 400px;
}

.profile-info .profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.profile-info .profile-stats .stat-item {
  text-align: center;
}

.profile-info .profile-stats .stat-item .stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
}

.profile-info .profile-stats .stat-item .stat-label {
  font-size: 0.8rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-actions .btn-profile {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.profile-actions .btn-profile.btn-primary-outline {
  background: transparent;
  border: 1.5px solid #7C3AED;
  color: #FFFFFF;
}

.profile-actions .btn-profile.btn-primary-outline:hover {
  background: #7C3AED;
  color: #fff;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.profile-actions .btn-profile.btn-secondary-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

.profile-actions .btn-profile.btn-secondary-outline:hover {
  border-color: #A855F7;
  color: #FFFFFF;
  background: rgba(168, 85, 247, 0.05);
}

.profile-actions .btn-profile.btn-glow-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.profile-tabs {
  margin-top: 2rem;
}

.profile-tabs .nav-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.5rem;
}

.profile-tabs .nav-tabs .nav-link {
  color: #94A3B8;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 16px 16px 0 0;
  transition: all 0.3s ease;
}

.profile-tabs .nav-tabs .nav-link:hover {
  color: #FFFFFF;
  background: rgba(31, 41, 55, 0.3);
}

.profile-tabs .nav-tabs .nav-link.active {
  color: #7C3AED;
  background: transparent;
  border-bottom: 2px solid #7C3AED;
}

.profile-tabs .nav-tabs .nav-link.active i {
  color: #7C3AED;
}

.profile-tabs .nav-tabs .nav-link i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.profile-tabs .tab-content {
  padding: 2rem 0;
}

.profile-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.profile-card:hover {
  background: rgba(31, 41, 55, 0.6);
  border-color: rgba(124, 58, 237, 0.2);
}

.profile-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-card .card-title .badge-count {
  background: rgba(124, 58, 237, 0.15);
  color: #7C3AED;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

.profile-card .card-content {
  color: #94A3B8;
  font-size: 0.95rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.achievement-grid .achievement-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(11, 17, 32, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.achievement-grid .achievement-item:hover {
  transform: translateY(-4px);
  border-color: #7C3AED;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.1);
}

.achievement-grid .achievement-item .achievement-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  display: block;
}

.achievement-grid .achievement-item .achievement-icon.locked {
  opacity: 0.2;
  filter: grayscale(1);
}

.achievement-grid .achievement-item .achievement-name {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

.achievement-grid .achievement-item .achievement-progress {
  margin-top: 0.3rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.achievement-grid .achievement-item .achievement-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #22D3EE);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.match-history .match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(11, 17, 32, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.match-history .match-item:hover {
  background: rgba(31, 41, 55, 0.3);
  border-color: rgba(124, 58, 237, 0.15);
}

.match-history .match-item .match-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.match-history .match-item .match-info .match-result {
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.match-history .match-item .match-info .match-result.win {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.match-history .match-item .match-info .match-result.loss {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.match-history .match-item .match-info .match-result.draw {
  background: rgba(148, 163, 184, 0.1);
  color: #94A3B8;
}

.match-history .match-item .match-info .match-details .match-mode {
  font-weight: 500;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.match-history .match-item .match-info .match-details .match-time {
  color: #94A3B8;
  font-size: 0.8rem;
}

.match-history .match-item .match-score {
  text-align: right;
}

.match-history .match-item .match-score .score-number {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.1rem;
}

.match-history .match-item .match-score .score-label {
  color: #94A3B8;
  font-size: 0.75rem;
}

.settings-form .form-group {
  margin-bottom: 1.5rem;
}

.settings-form .form-label {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.settings-form .form-control,
.settings-form .form-select {
  background: rgba(11, 17, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #FFFFFF;
  padding: 0.7rem 1rem;
  transition: all 0.3s ease;
}

.settings-form .form-control:focus,
.settings-form .form-select:focus {
  background: rgba(11, 17, 32, 0.7);
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  color: #FFFFFF;
}

.settings-form .form-control::placeholder,
.settings-form .form-select::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.settings-form .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.settings-form .form-select option {
  background: #111827;
  color: #FFFFFF;
}

.settings-form .form-check .form-check-input {
  background-color: rgba(11, 17, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
}

.settings-form .form-check .form-check-input:checked {
  background-color: #695ced;
  border-color: #6c55ed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.settings-form .form-check .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  border-color: #7C3AED;
}

.settings-form .form-check .form-check-label {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-left: 0.5rem;
}

.settings-form .form-text {
  color: #94A3B8;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

@media (max-width: 992px) {
  .profile-header .profile-info {
    text-align: center;
    margin-top: 1rem;
  }

  .profile-header .profile-info .profile-bio {
    margin: 0 auto;
  }

  .profile-header .profile-info .profile-stats {
    justify-content: center;
  }

  .profile-header .profile-actions {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .profile-wrapper {
    padding: 6rem 0 2rem;
  }

  .profile-header {
    padding: 1.5rem;
  }

  .profile-avatar .avatar-image {
    width: 90px;
    height: 90px;
  }

  .profile-info .profile-name {
    font-size: 1.4rem;
  }

  .profile-info .profile-stats {
    gap: 1.5rem;
  }

  .profile-info .profile-stats .stat-item .stat-number {
    font-size: 1.1rem;
  }

  .profile-tabs .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
  }

  .profile-tabs .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .achievement-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
  }

  .match-history .match-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .match-history .match-item .match-info {
    justify-content: space-between;
  }

  .match-history .match-item .match-score {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 576px) {
  .profile-header {
    padding: 1rem;
  }

  .profile-avatar .avatar-image {
    width: 75px;
    height: 75px;
  }

  .profile-info .profile-stats {
    gap: 1rem;
  }

  .profile-info .profile-stats .stat-item .stat-number {
    font-size: 1rem;
  }

  .profile-actions .btn-profile {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

.game-wrapper {
  min-height: 100vh;
  padding: 6rem 0 2rem;
  background: #0B1120;
  position: relative;
}

.game-wrapper::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  pointer-events: none;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-stats .stat-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-stats .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #22D3EE);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-stats .stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
}

.dashboard-stats .stat-card:hover::before {
  opacity: 1;
}

.dashboard-stats .stat-card .stat-icon {
  font-size: 2rem;
  color: #7C3AED;
  margin-bottom: 0.5rem;
  display: block;
}

.dashboard-stats .stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
}

.dashboard-stats .stat-card .stat-label {
  color: #94A3B8;
  font-size: 0.85rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-actions .action-card {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #FFFFFF;
}

.quick-actions .action-card:hover {
  background: rgba(31, 41, 55, 0.6);
  border-color: #7C3AED;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

.quick-actions .action-card .action-icon {
  font-size: 2.5rem;
  color: #A855F7;
  margin-bottom: 0.5rem;
  display: block;
}

.quick-actions .action-card .action-title {
  font-weight: 500;
  font-size: 1rem;
}

.quick-actions .action-card .action-subtitle {
  color: #94A3B8;
  font-size: 0.8rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.room-grid .room-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.room-grid .room-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}

.room-grid .room-card .room-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.room-grid .room-card .room-header .room-code {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: #22D3EE;
  font-size: 1.2rem;
  background: rgba(34, 211, 238, 0.08);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(34, 211, 238, 0.1);
}

.room-grid .room-card .room-header .room-status {
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.room-grid .room-card .room-header .room-status.waiting {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.room-grid .room-card .room-header .room-status.playing {
  background: rgba(34, 211, 238, 0.15);
  color: #22D3EE;
}

.room-grid .room-card .room-header .room-status.full {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.room-grid .room-card .room-info .room-name {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.room-grid .room-card .room-info .room-meta {
  color: #94A3B8;
  font-size: 0.85rem;
}

.room-grid .room-card .room-info .room-meta i {
  margin-right: 0.3rem;
  color: #A855F7;
}

.room-grid .room-card .room-players {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.room-grid .room-card .room-players .player-avatars {
  display: flex;
}

.room-grid .room-card .room-players .player-avatars .avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0B1120;
  margin-right: -8px;
  background: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #94A3B8;
}

.room-grid .room-card .room-players .player-avatars .avatar-mini:last-child {
  margin-right: 0;
}

.room-grid .room-card .room-players .player-avatars .avatar-mini.empty {
  border: 2px dashed rgba(255, 255, 255, 0.08);
  background: transparent;
}

.room-grid .room-card .room-players .player-count {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.room-grid .room-card .room-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.room-grid .room-card .room-actions .btn-room {
  flex: 1;
  padding: 0.5rem;
  border-radius: 16px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.room-grid .room-card .room-actions .btn-room.btn-join {
  background: #7C3AED;
  color: #fff;
}

.room-grid .room-card .room-actions .btn-room.btn-join:hover {
  background: #A855F7;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.room-grid .room-card .room-actions .btn-room.btn-spectate {
  background: rgba(31, 41, 55, 0.5);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.room-grid .room-card .room-actions .btn-room.btn-spectate:hover {
  border-color: #7C3AED;
  color: #FFFFFF;
}

.create-room-form {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.create-room-form .form-group {
  margin-bottom: 1.5rem;
}

.create-room-form .form-label {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  display: block;
}

.create-room-form .form-control,
.create-room-form .form-select {
  background: rgba(11, 17, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #FFFFFF;
  padding: 0.7rem 1rem;
  transition: all 0.3s ease;
}

.create-room-form .form-control:focus,
.create-room-form .form-select:focus {
  background: rgba(11, 17, 32, 0.7);
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  color: #FFFFFF;
}

.create-room-form .form-control::placeholder,
.create-room-form .form-select::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.create-room-form .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.create-room-form .form-select option {
  background: #111827;
  color: #FFFFFF;
}

.create-room-form .form-range {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
}

.create-room-form .form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.create-room-form .form-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.create-room-form .range-value {
  color: #22D3EE;
  font-weight: 700;
  font-size: 1.1rem;
}

.create-room-form .form-check .form-check-input {
  background-color: rgba(11, 17, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.create-room-form .form-check .form-check-input:checked {
  background-color: #695ced;
  border-color: #6c55ed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.create-room-form .form-check .form-check-label {
  color: #94A3B8;
  font-size: 0.9rem;
}

.create-room-form .btn-create {
  width: 100%;
  padding: 0.85rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
}

.join-input-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.join-input-group .btn-glow {
  border-radius: .375rem;
  display: flex;
  padding: .82rem .75rem;
  align-items: center;
}

#createRoomForm .btn-glow {
  border-radius: .375rem;
}

.lobby-container .lobby-header {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.lobby-container .lobby-header .lobby-code {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #22D3EE;
  background: rgba(34, 211, 238, 0.08);
  padding: 0.3rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.15);
}

.lobby-container .lobby-header .lobby-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lobby-container .lobby-header .lobby-controls .btn-lobby {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.lobby-container .lobby-header .lobby-controls .btn-lobby.btn-start {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.lobby-container .lobby-header .lobby-controls .btn-lobby.btn-start:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.lobby-container .lobby-header .lobby-controls .btn-lobby.btn-start:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.lobby-container .lobby-header .lobby-controls .btn-lobby.btn-leave {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.lobby-container .lobby-header .lobby-controls .btn-lobby.btn-leave:hover {
  background: rgba(239, 68, 68, 0.25);
}

.lobby-container .lobby-header .lobby-controls .btn-lobby.btn-invite {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.lobby-container .lobby-header .lobby-controls .btn-lobby.btn-invite:hover {
  background: rgba(168, 85, 247, 0.25);
}

.lobby-container .lobby-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.lobby-container .lobby-players .player-slot {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.lobby-container .lobby-players .player-slot:hover {
  border-color: rgba(124, 58, 237, 0.2);
}

.lobby-container .lobby-players .player-slot .player-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  border: 3px solid #7C3AED;
  object-fit: cover;
  background: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.lobby-container .lobby-players .player-slot .player-avatar.empty {
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.3;
}

.lobby-container .lobby-players .player-slot .player-name {
  font-weight: 500;
  color: #FFFFFF;
  font-size: 1rem;
}

.lobby-container .lobby-players .player-slot .player-status {
  font-size: 0.8rem;
  color: #94A3B8;
}

.lobby-container .lobby-players .player-slot .player-status.ready {
  color: #10B981;
}

.lobby-container .lobby-players .player-slot .player-status.not-ready {
  color: #94A3B8;
}

.lobby-container .lobby-players .player-slot .player-status.host {
  color: #22D3EE;
}

.lobby-container .lobby-players .player-slot .player-badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

.lobby-container .lobby-players .player-slot .player-badge.host-badge {
  background: rgba(34, 211, 238, 0.15);
  color: #22D3EE;
}

.lobby-container .lobby-players .player-slot .player-badge.ready-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.lobby-container .lobby-chat {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
}

.lobby-container .lobby-chat .chat-messages {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 0.5rem;
}

.lobby-container .lobby-chat .chat-messages::-webkit-scrollbar {
  width: 4px;
}

.lobby-container .lobby-chat .chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.lobby-container .lobby-chat .chat-messages::-webkit-scrollbar-thumb {
  background: #7C3AED;
  border-radius: 2px;
}

.lobby-container .lobby-chat .chat-messages .chat-message {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: #94A3B8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.lobby-container .lobby-chat .chat-messages .chat-message .msg-user {
  color: #7C3AED;
  font-weight: 500;
}

.lobby-container .lobby-chat .chat-messages .chat-message .msg-time {
  color: #94A3B8;
  font-size: 0.7rem;
  opacity: 0.5;
}

.lobby-container .lobby-chat .chat-messages .chat-message.system {
  color: #22D3EE;
  font-style: italic;
  text-align: center;
  opacity: 0.7;
}

.lobby-container .lobby-chat .chat-input-group {
  display: flex;
  gap: 0.5rem;
}

.lobby-container .lobby-chat .chat-input-group .form-control {
  background: rgba(11, 17, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.lobby-container .lobby-chat .chat-input-group .form-control:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.lobby-container .lobby-chat .chat-input-group .btn-send {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: #7C3AED;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.lobby-container .lobby-chat .chat-input-group .btn-send:hover {
  background: #A855F7;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.game-screen .game-top-bar {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-screen .game-top-bar .game-round {
  font-size: 0.9rem;
  color: #94A3B8;
}

.game-screen .game-top-bar .game-round span {
  color: #22D3EE;
  font-weight: 700;
}

.game-screen .game-top-bar .game-timer {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: "Courier New", monospace;
}

.game-screen .game-top-bar .game-timer.warning {
  color: #EF4444;
  animation: pulse 0.5s ease infinite alternate;
}

.game-screen .game-top-bar .game-score-display {
  text-align: right;
}

.game-screen .game-top-bar .game-score-display .score-label {
  font-size: 0.75rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-screen .game-top-bar .game-score-display .score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}

.game-screen .game-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .game-screen .game-main {
    grid-template-columns: 1fr;
  }
}

.game-screen .game-play-area {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
}

.game-screen .game-play-area .letter-display {
  text-align: center;
  margin-bottom: 2rem;
}

.game-screen .game-play-area .letter-display .letter {
  font-size: 6rem;
  font-weight: 800;
  color: #22D3EE;
  text-shadow: 0 0 60px rgba(34, 211, 238, 0.2);
  animation: letterPulse 2s ease infinite;
}

.game-screen .game-play-area .letter-display .letter-label {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-top: -0.5rem;
}

.game-screen .game-play-area .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.game-screen .game-play-area .categories-grid .category-chip {
  background: rgba(11, 17, 32, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  color: #94A3B8;
}

.game-screen .game-play-area .categories-grid .category-chip:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(31, 41, 55, 0.3);
}

.game-screen .game-play-area .categories-grid .category-chip.active {
  border-color: #7C3AED;
  background: rgba(124, 58, 237, 0.1);
  color: #FFFFFF;
}

.game-screen .game-play-area .categories-grid .category-chip .category-answer {
  display: block;
  font-size: 0.75rem;
  color: #22D3EE;
  margin-top: 0.2rem;
}

.game-screen .game-play-area .answer-input-group {
  display: flex;
  gap: 0.75rem;
}

.game-screen .game-play-area .answer-input-group .form-control {
  flex: 1;
  background: rgba(11, 17, 32, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: #FFFFFF;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
}

.game-screen .game-play-area .answer-input-group .form-control:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.game-screen .game-play-area .answer-input-group .form-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.game-screen .game-play-area .answer-input-group .btn-submit-answer {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: #fff;
  border: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.game-screen .game-play-area .answer-input-group .btn-submit-answer:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.game-screen .game-play-area .answer-input-group .btn-submit-answer:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.game-screen .game-play-area .category-answers-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.game-screen .game-play-area .category-answers-form .category-answer-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.game-screen .game-play-area .category-answers-form .category-answer-label {
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.custom-select {
  position: relative;
  /* Crucial for positioning your custom chevron icon */
  background: rgba(11, 17, 32, 0.5);
  border: 2px solid #94A3B8;
  border-radius: 16px;
  color: #FFFFFF;
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-select select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  /* Added right padding (2.5rem) so text doesn't overlap your icon */
  background-color: transparent;
  width: 100%;
  border: none;
  border-radius: 16px;
  outline: none;
  color: white;

  /* Hides the default browser dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Fix: Style the dropdown options panel */
.custom-select select option {
  background-color: #0B1120;
  /* Matches your dark theme app background */
  color: #FFFFFF;
  /* Makes text readable */
  padding: 10px;
}

/* Fix: Apply the focus effect to the wrapper */
.custom-select:focus-within {
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* Example Custom Chevron Implementation */
.custom-select::after {
  content: '▼';
  /* You can change this to a custom SVG url() if you prefer */
  font-size: 0.75rem;
  color: #94A3B8;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  /* Crucial: clicks pass through to open the select menu */
  transition: color 0.15s ease;
}

/* Optional: Changes chevron color when active */
.custom-select:focus-within::after {
  color: #7C3AED;
}

.custom-input {
  background: rgba(11, 17, 32, 0.5);
  border: 2px solid #94A3B8;
  border-radius: 16px;
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-input::placeholder {
  color: #94A3B8;
}

.custom-input:focus {
  border-color: #7C3AED;
  color: #FFFFFF;
  background: rgba(11, 17, 32, 0.5);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  outline: none;
  /* Prevents default browser outline clashing with your custom box-shadow */
}

.custom-input:read-only {
  opacity: 0.65;
}

#createRoomForm .custom-input,
#createRoomForm .custom-select,
#joinRoomForm .custom-input {
  border-radius: .375rem;
  margin-bottom: 12px;
}

.game-screen .game-play-area .category-answers-form .category-submitted-badge {
  font-size: 0.75rem;
  color: #22D3EE;
  white-space: nowrap;
}

.game-screen .game-play-area .category-answers-form .category-form-actions {
  margin-top: 0.5rem;
}

.game-screen .game-play-area .category-answers-form .btn-submit-answer {
  width: 100%;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: #fff;
  border: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.game-screen .game-play-area .category-answers-form .btn-submit-answer:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.game-screen .game-play-area .category-answers-form .btn-submit-answer:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.result-breakdown .all-players-answers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-breakdown .player-answers-card {
  background: rgba(11, 17, 32, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
}

.result-breakdown .player-answers-card.is-me {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.08);
}

.result-breakdown .player-answers-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.result-breakdown .player-answers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.result-breakdown .player-answer-item {
  background: rgba(17, 24, 39, 0.45);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.result-breakdown .player-answer-category {
  display: block;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-bottom: 0.2rem;
}

.result-breakdown .player-answer-value {
  color: #FFFFFF;
  font-weight: 600;
}

.game-screen .game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.game-screen .game-sidebar .game-leaderboard {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
}

.game-screen .game-sidebar .game-leaderboard .sidebar-title {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-screen .game-sidebar .game-leaderboard .sidebar-title .player-count {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 500;
}

.game-screen .game-sidebar .game-leaderboard .leaderboard-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.game-screen .game-sidebar .game-leaderboard .leaderboard-item:last-child {
  border-bottom: none;
}

.game-screen .game-sidebar .game-leaderboard .leaderboard-item .rank-number {
  width: 28px;
  font-weight: 700;
  color: #94A3B8;
  font-size: 0.85rem;
}

.game-screen .game-sidebar .game-leaderboard .leaderboard-item .player-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-screen .game-sidebar .game-leaderboard .leaderboard-item .player-info .player-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #94A3B8;
}

.game-screen .game-sidebar .game-leaderboard .leaderboard-item .player-info .player-name {
  color: #FFFFFF;
  font-size: 0.9rem;
}

.game-screen .game-sidebar .game-leaderboard .leaderboard-item .player-info .player-name.me {
  color: #22D3EE;
}

.game-screen .game-sidebar .game-leaderboard .leaderboard-item .player-score {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.9rem;
}

.game-screen .game-sidebar .game-chat-mini {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1rem;
  flex: 1;
}

.game-screen .game-sidebar .game-chat-mini .chat-messages-mini {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 0.5rem;
}

.game-screen .game-sidebar .game-chat-mini .chat-messages-mini::-webkit-scrollbar {
  width: 3px;
}

.game-screen .game-sidebar .game-chat-mini .chat-messages-mini::-webkit-scrollbar-thumb {
  background: #7C3AED;
  border-radius: 2px;
}

.game-screen .game-sidebar .game-chat-mini .chat-messages-mini .chat-message {
  font-size: 0.8rem;
  color: #94A3B8;
  padding: 0.15rem 0;
}

.game-screen .game-sidebar .game-chat-mini .chat-messages-mini .chat-message .msg-user {
  color: #7C3AED;
  font-weight: 500;
}

.game-screen .game-sidebar .game-chat-mini .chat-input-mini {
  display: flex;
  gap: 0.5rem;
}

.game-screen .game-sidebar .game-chat-mini .chat-input-mini .form-control {
  flex: 1;
  background: rgba(11, 17, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: #FFFFFF;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

.game-screen .game-sidebar .game-chat-mini .chat-input-mini .form-control:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.game-screen .game-sidebar .game-chat-mini .chat-input-mini .btn-send-mini {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: #7C3AED;
  color: #fff;
  border: none;
  font-size: 0.8rem;
}

.game-screen .game-sidebar .game-chat-mini .chat-input-mini .btn-send-mini:hover {
  background: #A855F7;
}

@keyframes letterPulse {

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

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

@keyframes pulse {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

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

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .lobby-header {
    flex-direction: column;
    align-items: stretch !important;
    text-align: center;
  }

  .lobby-header .lobby-controls {
    justify-content: center;
  }

  .lobby-players {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .game-screen .game-top-bar .game-timer {
    font-size: 1.8rem;
  }

  .game-screen .game-play-area {
    padding: 1rem;
  }

  .game-screen .game-play-area .letter-display .letter {
    font-size: 4rem;
  }

  .game-screen .game-play-area .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .game-screen .game-play-area .answer-input-group {
    flex-direction: column;
  }

  .game-screen .game-play-area .answer-input-group .btn-submit-answer {
    width: 100%;
  }

  .game-screen .game-play-area .category-answers-form .category-answer-row {
    grid-template-columns: 1fr;
  }

  .result-breakdown .player-answers-grid {
    grid-template-columns: 1fr;
  }


  .create-room-form {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
}

@media (max-width: 576px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .game-screen .game-play-area .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lobby-players {
    grid-template-columns: repeat(2, 1fr);
  }
}

.result-wrapper {
  min-height: 100vh;
  padding: 6rem 0 2rem;
  background: #0B1120;
  position: relative;
  display: flex;
  align-items: center;
}

.result-wrapper::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  pointer-events: none;
  animation: pulseGlow 8s infinite alternate;
}

.result-wrapper::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  bottom: -20%;
  left: -10%;
  pointer-events: none;
  animation: pulseGlow2 10s infinite alternate;
}

.result-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: resultFadeIn 0.6s ease;
}

.result-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent 50%, rgba(34, 211, 238, 0.05));
  z-index: -1;
  opacity: 0.5;
}

@keyframes resultFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

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

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

.result-header .result-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  display: block;
}

.result-header .result-icon.victory {
  color: #10B981;
  animation: victoryBounce 1s ease infinite;
}

.result-header .result-icon.defeat {
  color: #EF4444;
  animation: defeatShake 1s ease infinite;
}

.result-header .result-icon.tie {
  color: #22D3EE;
}

.result-header .result-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

.result-header .result-title.victory {
  background: linear-gradient(135deg, #10B981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-header .result-title.defeat {
  background: linear-gradient(135deg, #EF4444, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-header .result-title.tie {
  background: linear-gradient(135deg, #22D3EE, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-header .result-subtitle {
  color: #94A3B8;
  font-size: 1rem;
  margin-top: 0.25rem;
}

@keyframes victoryBounce {

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

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

@keyframes defeatShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.result-stats-grid .stat-item {
  background: rgba(11, 17, 32, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.result-stats-grid .stat-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(31, 41, 55, 0.3);
  transform: translateY(-2px);
}

.result-stats-grid .stat-item .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
}

.result-stats-grid .stat-item .stat-label {
  font-size: 0.75rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-stats-grid .stat-item.highlight {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.05);
}

.result-stats-grid .stat-item.highlight .stat-value {
  color: #7C3AED;
}

.result-breakdown {
  margin: 1.5rem 0;
}

.result-breakdown .breakdown-title {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-breakdown .breakdown-title .breakdown-count {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 500;
}

.result-breakdown .answer-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: rgba(11, 17, 32, 0.2);
  border-radius: 16px;
  margin-bottom: 0.5rem;
  border-left: 3px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.result-breakdown .answer-item:hover {
  background: rgba(31, 41, 55, 0.3);
}

.result-breakdown .answer-item.correct {
  border-left-color: #10B981;
}

.result-breakdown .answer-item.incorrect {
  border-left-color: #EF4444;
}

.result-breakdown .answer-item.partial {
  border-left-color: #f59e0b;
}

.result-breakdown .answer-item .answer-letter {
  font-weight: 700;
  color: #22D3EE;
  width: 30px;
  font-size: 1.1rem;
}

.result-breakdown .answer-item .answer-details {
  flex: 1;
}

.result-breakdown .answer-item .answer-details .answer-category {
  font-size: 0.8rem;
  color: #94A3B8;
}

.result-breakdown .answer-item .answer-details .answer-text {
  font-weight: 500;
  color: #FFFFFF;
}

.result-breakdown .answer-item .answer-details .answer-text .your-answer {
  color: #A855F7;
}

.result-breakdown .answer-item .answer-details .answer-text .correct-answer {
  color: #10B981;
}

.result-breakdown .answer-item .answer-details .answer-text .wrong-answer {
  color: #EF4444;
  text-decoration: line-through;
}

.result-breakdown .answer-item .answer-points {
  font-weight: 700;
  font-size: 0.9rem;
}

.result-breakdown .answer-item .answer-points.positive {
  color: #10B981;
}

.result-breakdown .answer-item .answer-points.negative {
  color: #EF4444;
}

.result-breakdown .answer-item .answer-points.zero {
  color: #94A3B8;
}

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

.result-actions .btn-result {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.result-actions .btn-result.btn-next-round {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: #fff;
}

.result-actions .btn-result.btn-next-round:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.result-actions .btn-result.btn-dashboard {
  background: rgba(31, 41, 55, 0.5);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-actions .btn-result.btn-dashboard:hover {
  border-color: #7C3AED;
  color: #FFFFFF;
  background: rgba(31, 41, 55, 0.8);
}

.result-actions .btn-result.btn-leaderboard {
  background: rgba(34, 211, 238, 0.1);
  color: #22D3EE;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.result-actions .btn-result.btn-leaderboard:hover {
  background: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.result-actions .btn-result.btn-rematch {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.result-actions .btn-result.btn-rematch:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.final-result .result-card {
  max-width: 900px;
}

.final-result .final-rank {
  text-align: center;
  margin: 1rem 0;
}

.final-result .final-rank .rank-badge {
  display: inline-block;
  font-size: 3rem;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.final-result .final-rank .rank-badge .rank-number {
  font-size: 2rem;
  font-weight: 800;
  color: #22D3EE;
  display: block;
}

.final-result .final-rank .rank-badge .rank-label {
  font-size: 0.8rem;
  color: #94A3B8;
}

.final-result .final-stats-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.final-result .final-stats-detailed .detail-item {
  background: rgba(11, 17, 32, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

.final-result .final-stats-detailed .detail-item .detail-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}

.final-result .final-stats-detailed .detail-item .detail-label {
  font-size: 0.75rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.final-result .final-players-list {
  margin: 1.5rem 0;
}

.final-result .final-players-list .player-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(11, 17, 32, 0.2);
  border-radius: 16px;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.final-result .final-players-list .player-result-item:hover {
  background: rgba(31, 41, 55, 0.3);
}

.final-result .final-players-list .player-result-item.rank-1 {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

.final-result .final-players-list .player-result-item.rank-1 .player-rank {
  color: #ffd700;
}

.final-result .final-players-list .player-result-item.rank-2 {
  border-color: rgba(192, 192, 192, 0.3);
  background: rgba(192, 192, 192, 0.05);
}

.final-result .final-players-list .player-result-item.rank-2 .player-rank {
  color: #c0c0c0;
}

.final-result .final-players-list .player-result-item.rank-3 {
  border-color: rgba(205, 127, 50, 0.3);
  background: rgba(205, 127, 50, 0.05);
}

.final-result .final-players-list .player-result-item.rank-3 .player-rank {
  color: #cd7f32;
}

.final-result .final-players-list .player-result-item.is-me {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.05);
}

.final-result .final-players-list .player-result-item .player-rank {
  width: 40px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #94A3B8;
}

.final-result .final-players-list .player-result-item .player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 0.75rem;
  border: 2px solid transparent;
}

.final-result .final-players-list .player-result-item .player-avatar.is-me {
  border-color: #22D3EE;
}

.final-result .final-players-list .player-result-item .player-info {
  flex: 1;
}

.final-result .final-players-list .player-result-item .player-info .player-name {
  font-weight: 500;
  color: #FFFFFF;
}

.final-result .final-players-list .player-result-item .player-info .player-name .me-badge {
  font-size: 0.7rem;
  color: #22D3EE;
  margin-left: 0.5rem;
}

.final-result .final-players-list .player-result-item .player-info .player-detail {
  font-size: 0.8rem;
  color: #94A3B8;
}

.final-result .final-players-list .player-result-item .player-score {
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFFFFF;
}

.leaderboard-wrapper {
  min-height: 100vh;
  padding: 6rem 0 2rem;
  background: #0B1120;
  position: relative;
}

.leaderboard-wrapper::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  pointer-events: none;
}

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

.leaderboard-header .leaderboard-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.leaderboard-header .leaderboard-title span {
  background: linear-gradient(135deg, #7C3AED, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.leaderboard-header .leaderboard-subtitle {
  color: #94A3B8;
  font-size: 1rem;
}

.leaderboard-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.leaderboard-tabs .tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #94A3B8;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.leaderboard-tabs .tab-btn:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #FFFFFF;
}

.leaderboard-tabs .tab-btn.active {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.leaderboard-table-wrap {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.leaderboard-table-wrap .leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table-wrap .leaderboard-table thead {
  background: rgba(11, 17, 32, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table-wrap .leaderboard-table thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: #94A3B8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-table-wrap .leaderboard-table thead th.rank-col {
  width: 80px;
}

.leaderboard-table-wrap .leaderboard-table thead th.player-col {
  flex: 1;
}

.leaderboard-table-wrap .leaderboard-table thead th.score-col {
  text-align: right;
}

.leaderboard-table-wrap .leaderboard-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.leaderboard-table-wrap .leaderboard-table tbody tr:hover {
  background: rgba(31, 41, 55, 0.3);
}

.leaderboard-table-wrap .leaderboard-table tbody tr.top-1 {
  background: rgba(255, 215, 0, 0.05);
  border-left: 3px solid #ffd700;
}

.leaderboard-table-wrap .leaderboard-table tbody tr.top-1 .rank-number {
  color: #ffd700;
}

.leaderboard-table-wrap .leaderboard-table tbody tr.top-2 {
  background: rgba(192, 192, 192, 0.05);
  border-left: 3px solid #c0c0c0;
}

.leaderboard-table-wrap .leaderboard-table tbody tr.top-2 .rank-number {
  color: #c0c0c0;
}

.leaderboard-table-wrap .leaderboard-table tbody tr.top-3 {
  background: rgba(205, 127, 50, 0.05);
  border-left: 3px solid #cd7f32;
}

.leaderboard-table-wrap .leaderboard-table tbody tr.top-3 .rank-number {
  color: #cd7f32;
}

.leaderboard-table-wrap .leaderboard-table tbody tr.is-me {
  border-left: 3px solid #22D3EE;
  background: rgba(34, 211, 238, 0.05);
}

.leaderboard-table-wrap .leaderboard-table tbody tr.is-me td .player-name {
  color: #22D3EE;
  font-weight: 700;
}

.leaderboard-table-wrap .leaderboard-table tbody tr td {
  padding: 0.75rem 1.5rem;
  vertical-align: middle;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .rank-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: #94A3B8;
  min-width: 40px;
  display: inline-block;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-cell .player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-cell .player-name {
  font-weight: 500;
  color: #FFFFFF;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-cell .player-name .me-badge {
  font-size: 0.7rem;
  color: #22D3EE;
  margin-left: 0.5rem;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-cell .player-stats {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-left: 0.5rem;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-cell .player-stats .stat-sep {
  margin: 0 0.3rem;
  opacity: 0.3;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-score {
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFFFFF;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-score .score-change {
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-score .score-change.up {
  color: #10B981;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-score .score-change.down {
  color: #EF4444;
}

.leaderboard-table-wrap .leaderboard-table tbody tr .player-score .score-change.same {
  color: #94A3B8;
}

.leaderboard-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.leaderboard-pagination .page-btn {
  padding: 0.5rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #94A3B8;
  transition: all 0.3s ease;
  cursor: pointer;
}

.leaderboard-pagination .page-btn:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: #FFFFFF;
}

.leaderboard-pagination .page-btn.active {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #fff;
}

.leaderboard-pagination .page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .result-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .result-header .result-title {
    font-size: 1.8rem;
  }

  .result-header .result-icon {
    font-size: 3rem;
  }

  .result-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn-result {
    width: 100%;
    justify-content: center;
  }

  .final-stats-detailed {
    grid-template-columns: repeat(2, 1fr);
  }

  .final-players-list .player-result-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .final-players-list .player-result-item .player-info {
    flex: 1 1 100%;
    order: 1;
  }

  .final-players-list .player-result-item .player-score {
    order: 2;
  }

  .final-players-list .player-result-item .player-rank {
    order: 0;
  }

  .leaderboard-table-wrap {
    overflow-x: auto;
  }

  .leaderboard-table-wrap .leaderboard-table {
    min-width: 600px;
  }

  .leaderboard-table-wrap .leaderboard-table thead th,
  .leaderboard-table-wrap .leaderboard-table tbody td {
    padding: 0.75rem 1rem;
  }

  .leaderboard-table-wrap .leaderboard-table .player-cell .player-stats {
    display: none;
  }

  .leaderboard-tabs {
    gap: 0.3rem;
  }

  .leaderboard-tabs .tab-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .result-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .result-stats-grid .stat-item {
    padding: 0.75rem;
  }

  .result-stats-grid .stat-item .stat-value {
    font-size: 1.3rem;
  }

  .result-breakdown .answer-item {
    flex-wrap: wrap;
  }

  .result-breakdown .answer-item .answer-details {
    flex: 1 1 100%;
    order: 1;
  }

  .result-breakdown .answer-item .answer-points {
    order: 2;
  }

  .final-rank .rank-badge {
    font-size: 2rem;
    padding: 0.3rem 1rem;
  }

  .final-rank .rank-badge .rank-number {
    font-size: 1.5rem;
  }

  .leaderboard-table-wrap .leaderboard-table {
    min-width: 500px;
  }

  .leaderboard-table-wrap .leaderboard-table .player-cell .player-stats {
    display: none;
  }
}

/* Theme toggle button custom styles */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.theme-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: #7C3AED;
}

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
  font-size: 1.1rem;
}

/* Light theme overrides */
[data-theme=light] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
}

[data-theme=light] .theme-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: #7C3AED;
}

/* Hide/show appropriate icon based on theme */
[data-theme=dark] .icon-sun {
  display: inline-block;
}

[data-theme=dark] .icon-moon {
  display: none;
}

[data-theme=light] .icon-sun {
  display: none;
}

[data-theme=light] .icon-moon {
  display: inline-block;
}

/* Smooth transition for theme change */
body,
.navbar-custom,
.bg-card,
.feature-card,
.rank-card,
.testimonial-card,
.game-mock,
.glass-card,
.accordion-item,
.faq-item .accordion-button,
.faq-item .accordion-body {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/*# sourceMappingURL=main.css.map */