@import url("/fonts/css2.css");

/* ===== UNIFIED BACKGROUND STYLES ===== */
/* // Unified background for all pages */
.gaming-wrapper{
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: "Rajdhani", sans-serif;
}

.v-application.bg_wrapper,
.v-application.v-theme--light.v-layout.v-layout--full-height.v-locale--is-ltr.bg_wrapper {
  /* // Default background - اللون الأصلي من ساعتين */
  background-image: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(var(--primary-rgb), 0.2) 50%,
      rgba(var(--primary-rgb), 0.3) 100%
    ),
    radial-gradient(
      circle at 20% 50%,
      rgba(var(--primary-rgb), 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(var(--primary-rgb), 0.1) 0%,
      transparent 50%
    );
  background-color: #0a0a0f;
}

/* // Gaming wrapper for login page */
.gaming-wrapper.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* // Gaming wrapper for loading page */
.gaming-wrapper.loading-page {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
/* // Background with backend image */
.gaming-wrapper.has-background-image,
.v-application.bg_wrapper.has-background-image,
.v-application.v-theme--light.v-layout.v-layout--full-height.v-locale--is-ltr.bg_wrapper.has-background-image {   
  background-color: #0a0a0f !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
}


.almarai-light {
  font-family: "Almarai", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.almarai-regular {
  font-family: "Almarai", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.almarai-bold {
  font-family: "Almarai", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.almarai-extrabold {
  font-family: "Almarai", sans-serif;
  font-weight: 800;
  font-style: normal;
}
* {
  font-family: "Almarai", sans-serif !important;
}
/* ===== TITLE SECTION STYLES (UNIFIED) ===== */
/* // Main title section container */
.title-section {
  flex: 1;
  min-width: 300px;
  margin-bottom: 2rem;
}

/* // Title wrapper */
.title-wrapper {
  margin-bottom: 1.5rem;
}

/* // Page title */
.page-title {
  font-family: "Orbitron", monospace;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;

  .title-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
    animation: iconFloat 3s ease-in-out infinite;
  }

  .title-text {
    /* background: linear-gradient(
      45deg,
      var(--primary-color),
      var(--secondary-color)
    ); */
    background-color: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
  }
}

/* // Epic game title */
.epic-game-title {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 1rem 0;

  .title-text {
    /* background: linear-gradient(
      45deg,
      var(--primary-color),
      var(--secondary-color)
    ); */
    background-color: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
  }
}

/* // Title underline */
.title-underline {
  margin-top: 0.5rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  max-width: 300px;

  .underline-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(
      90deg,
      transparent,
      var(--primary-color),
      var(--secondary-color),
      transparent
    );
    animation: underlineSlide 3s ease-in-out infinite;
  }

  .underline-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(
      90deg,
      var(--primary-color),
      var(--secondary-color)
    );
    animation: underlineFill 3s ease-in-out infinite;
  }
}

/* // Page title container */
.page-title-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* // Epic back button */
.epic-back-btn {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

  &:hover {
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
  }

  .btn-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .back-icon {
    transition: transform 0.3s ease;
  }

  &:hover .back-icon {
    transform: translateX(-3px);
  }

  .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
  }

  &:hover .btn-glow {
    opacity: 1;
  }
}

/* // Title animations */
@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes underlineSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

@keyframes underlineFill {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

/* // Responsive design for title section */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;

    .title-icon {
      font-size: 2rem;
    }
  }

  .epic-game-title {
    font-size: 2rem;
  }

  .page-title-container {
    flex-direction: column;
    gap: 1rem;
  }

  .epic-back-btn {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.5rem;

    .title-icon {
      font-size: 1.5rem;
    }
  }

  .epic-game-title {
    font-size: 1.5rem;
  }

  .title-section {
    min-width: auto;
  }
}

/* // Accessibility for title section */
@media (prefers-reduced-motion: reduce) {
  .page-title .title-icon {
    animation: none !important;
  }

  .title-underline .underline-glow,
  .title-underline .underline-fill {
    animation: none !important;
  }

  .epic-back-btn {
    &:hover {
      transform: none;
    }

    .back-icon {
      transition: none;
    }
  }
}

/* ===== QR SCANNER STYLES (UNIFIED) ===== */
/* // QR Scanner Button */
.qr-scan-btn {
  position: relative;
  transition: all 0.3s ease;
  will-change: transform;
  contain: layout style paint;

  &:hover {
    transform: translateY(-2px);
    color: var(--v-primary-base) !important;
    
    &::after {
      opacity: 1;
    }

    .qr-scan-pulse {
      opacity: 1;
    }
  }

  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--v-primary-base), 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  .qr-scan-icon {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(var(--v-primary-base), 0.3));
  }

  .qr-scan-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--v-primary-base);
    border-radius: 50%;
    opacity: 0;
    animation: qrScanPulse 2s ease-in-out infinite;
    z-index: 1;
    will-change: transform, opacity;
    contain: layout style paint;
  }

  @media (max-width: 768px) {
    display: none;
  }

  &:focus {
    outline: 2px solid var(--v-primary-base);
    outline-offset: 2px;
  }

  &:focus-visible {
    outline: 2px solid var(--v-primary-base);
    outline-offset: 2px;
  }
}

@keyframes qrScanPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* // QR Scanner Dialog */
.epic-dialog-wrapper {
  .v-card {
    background: rgba(15, 15, 25, 0.95) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--v-primary-base), 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  }
}

.epic-category-dialog {
  position: relative;
  overflow: hidden;
}

/* // Dialog Background Effects */
.dialog-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;

  .dialog-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
      circle at 20% 50%,
      rgba(var(--v-primary-base), 0.1) 0%,
      transparent 50%
    );
  }

  .dialog-glow-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
      to bottom,
      rgba(var(--v-primary-base), 0.2) 0%,
      transparent 100%
    );
  }
}

/* // Dialog Header */
.dialog-header {
  position: relative;
  padding: 2rem 2rem 1rem;
  text-align: center;

  .header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(
      ellipse at center,
      rgba(var(--v-primary-base), 0.1) 0%,
      transparent 70%
    );
    filter: blur(20px);
    z-index: -1;
  }

  .dialog-title {
    font-family: "Orbitron", monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 0 20px rgba(var(--v-primary-base), 0.3);

    .title-icon {
      color: var(--v-primary-base);
      filter: drop-shadow(0 0 8px rgba(var(--v-primary-base), 0.6));
    }
  }

  .dialog-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
  }
}

/* // Dialog Content */
.dialog-content {
  padding: 1rem 2rem;
}

/* // Dialog Actions */
.dialog-actions {
  display: flex;
  gap: 1rem;
  padding: 1rem 2rem 2rem;
  justify-content: flex-end;
}

/* // QR Scanner Content */
.qr-scanner-content {
  padding: 16px;

  .scanner-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--v-primary-base), 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    .qr-scanner {
      width: 100%;
      height: 100%;
      border-radius: 12px;
    }

    .scanner-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;

      .scanner-frame {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: 200px;
        border: 2px solid var(--v-primary-base);
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(var(--v-primary-base), 0.5);
        animation: scannerPulse 2s ease-in-out infinite;
        will-change: box-shadow;
        contain: layout style paint;

        .corner {
          position: absolute;
          width: 30px;
          height: 30px;
          border: 3px solid var(--v-primary-base);
          border-radius: 4px;
          will-change: transform;
          contain: layout style paint;

          &.top-left {
            top: -3px;
            left: -3px;
            border-right: none;
            border-bottom: none;
            border-top-left-radius: 8px;
          }

          &.top-right {
            top: -3px;
            right: -3px;
            border-left: none;
            border-bottom: none;
            border-top-right-radius: 8px;
          }

          &.bottom-left {
            bottom: -3px;
            left: -3px;
            border-right: none;
            border-top: none;
            border-bottom-left-radius: 8px;
          }

          &.bottom-right {
            bottom: -3px;
            right: -3px;
            border-left: none;
            border-top: none;
            border-bottom-right-radius: 8px;
          }
        }

        &::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 100%;
          height: 100%;
          background: radial-gradient(circle, transparent 30%, rgba(var(--v-primary-base), 0.1) 70%);
          border-radius: 12px;
          animation: scannerGlow 3s ease-in-out infinite;
        }
      }
    }
  }
}

@keyframes scannerPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(var(--v-primary-base), 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(var(--v-primary-base), 0.8);
  }
}

@keyframes scannerGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* // Camera Error */
.camera-error {
  text-align: center;
  padding: 32px 16px;
  animation: fadeInUp 0.6s ease-out;

  .error-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;

    .v-icon {
      color: #ef4444;
      filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
    }

    .error-icon-glow {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 100px;
      background: radial-gradient(
        circle,
        rgba(239, 68, 68, 0.2) 0%,
        transparent 70%
      );
      border-radius: 50%;
      filter: blur(15px);
      animation: errorGlow 3s ease-in-out infinite;
    }
  }

  p {
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

@keyframes errorGlow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

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

/* // Dialog Buttons */
.dialog-cancel-btn,
.dialog-retry-btn {
  position: relative;
  background: linear-gradient(45deg, var(--v-primary-base), var(--v-secondary-base));
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  will-change: transform;
  contain: layout style paint;

  &:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--v-primary-base), 0.3);
    
    .btn-content {
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  &:focus {
    outline: 2px solid var(--v-primary-base);
    outline-offset: 2px;
  }

  &:focus-visible {
    outline: 2px solid var(--v-primary-base);
    outline-offset: 2px;
  }

  .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0.5;
    z-index: -1;
  }
}

.dialog-retry-btn {
  background: linear-gradient(45deg, #f59e0b, #ef4444);
}

.dialog-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);

  &:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
  }
}

/* // Dialog Transitions */
.dialog-bottom-transition-enter-active,
.dialog-bottom-transition-leave-active {
  transition: all 0.3s ease;
}

.dialog-bottom-transition-enter-from {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
}

.dialog-bottom-transition-leave-to {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
}

/* // QR Scanner Mobile Item */
.qr-scanner-mobile-item {
  position: relative;
  transition: all 0.3s ease;

  &:hover {
    background-color: rgba(var(--v-primary-base), 0.1);
    transform: translateX(5px);

    .v-list-item__prepend {
      .v-icon {
        color: var(--v-primary-base);
        filter: drop-shadow(0 0 5px rgba(var(--v-primary-base), 0.5));
      }
    }
  }

  &:focus {
    outline: 2px solid var(--v-primary-base);
    outline-offset: 2px;
  }

  &:focus-visible {
    outline: 2px solid var(--v-primary-base);
    outline-offset: 2px;
  }

  .v-list-item__prepend {
    .v-icon {
      transition: all 0.3s ease;
    }
  }
}

/* // Responsive Design for QR Scanner */
@media (max-width: 768px) {
  .qr-scanner-content {
    .scanner-container {
      height: 250px;

      .scanner-overlay {
        .scanner-frame {
          width: 150px;
          height: 150px;

          .corner {
            width: 25px;
            height: 25px;
          }
        }
      }
    }
  }

  .dialog-header {
    padding: 1.5rem 1.5rem 1rem;

    .dialog-title {
      font-size: 1.25rem;
    }
  }

  .dialog-content {
    padding: 1rem 1.5rem;
  }

  .dialog-actions {
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;

    .dialog-cancel-btn,
    .dialog-retry-btn {
      width: 100%;
      justify-content: center;
    }
  }
}

/* // Accessibility for QR Scanner */
@media (prefers-reduced-motion: reduce) {
  .qr-scan-btn {
    &::after {
      animation: none !important;
    }
  }

  .scanner-frame {
    animation: none !important;

    &::before {
      animation: none !important;
    }
  }

  .corner {
    animation: none !important;
  }

  .error-icon-glow {
    animation: none !important;
  }

  .qr-scan-icon {
    filter: none !important;
  }
}

/* // Old gaming-wrapper definition removed - now unified above */

/* // Background animations */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* // Game cover background */
.game-cover-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px);
  opacity: 0.3;
  z-index: 0;
}

/* // Vignette overlay */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* // Grid overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(var(--primary-rgb), 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  animation: gridMove 30s linear infinite;
  pointer-events: none;
  will-change: transform;
}

/* // Cyber lines */
.cyber-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.cyber-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  opacity: 0.2;
  animation: cyberPulse 4s ease-in-out infinite;
}

.line-1 {
  top: 25%;
  left: -50%;
  right: -50%;
  transform: rotate(-2deg);
}

.line-2 {
  bottom: 35%;
  left: -50%;
  right: -50%;
  transform: rotate(1deg);
  animation-delay: 2s;
}

.line-3 {
  top: 60%;
  left: -50%;
  right: -50%;
  transform: rotate(0.5deg);
  animation-delay: 4s;
}

@keyframes cyberPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--particle-color);
  border-radius: 50%;
  animation: float 25s infinite linear;
  opacity: 0.4;
  box-shadow: 0 0 4px var(--particle-color);
  will-change: transform;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(var(--primary-rgb), 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 2;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

/* // Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
}
 
/*   margin-bottom: 3rem;*/
/* padding: 2rem 0; */

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.15) 0%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
}

:deep(.gaming-navbar) {
  position: relative;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
}

:deep(.gaming-stats) {
  background: linear-gradient(
    135deg,
    rgba(15, 15, 25, 0.9),
    rgba(20, 20, 35, 0.9)
  ) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(var(--primary-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(var(--primary-rgb), 0.1) 50%,
      transparent 70%
    );
    animation: shimmer 3s infinite;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* // Categories Container */
.categories-container {
  position: relative;
  z-index: 10;
  padding: 0 1rem 4rem;
  /* max-width: 1200px; */
  margin: 0 auto;
  will-change: transform;
}

.category-wrapper {
  margin-bottom: 4rem;
  position: relative;
}

.category-header {
  /* margin-bottom: 2rem; */
  margin-bottom: -2rem;
  position: relative;
}

.category-title {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;

  .title-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
    animation: iconPulse 2s ease-in-out infinite;
  }

  .title-text {
    /* background: linear-gradient(
      45deg,
      var(--primary-color),
      var(--secondary-color)
    ); */
    background-color: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.5);
  }

  .title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(
      90deg,
      var(--primary-color) 0%,
      transparent 100%
    );
    margin-left: 2rem;
    position: relative;
    overflow: hidden;

    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100px;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
      );
      animation: lineSweep 3s infinite;
    }
  }
}

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

@keyframes lineSweep {
  0% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(100%);
  }
}

/* // Category Component Styling */
:deep(.gaming-category) {
  .game-card {
    background: rgba(15, 15, 25, 0.95) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(var(--primary-rgb), 0.1) 50%,
        transparent 60%
      );
      transform: translateX(-100%);
      transition: transform 0.6s ease;
    }

    &:hover {
      transform: translateY(-5px) scale(1.02);
      border-color: var(--primary-color);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(var(--primary-rgb), 0.3);

      &::before {
        transform: translateX(100%);
      }

      .game-image {
        transform: scale(1.05);
      }

      .play-button {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(var(--secondary-rgb), 0.6);
      }
    }
  }

  .game-image {
    transition: transform 0.3s ease;
  }

  .game-title {
    font-family: "Rajdhani", sans-serif;
    font-weight: 600;
    color: white !important;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
  }

  .play-button {
    background: linear-gradient(
      45deg,
      var(--primary-color),
      var(--secondary-color)
    ) !important;
    border: none;
    font-family: "Orbitron", monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    &::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    &:hover::after {
      width: 300px;
      height: 300px;
    }
  }
}

/* // Gaming Footer */
:deep(.gaming-footer) {
  position: relative;
  z-index: 10;
  background: rgba(10, 10, 15, 0.9) !important;
  border-top: 1px solid rgba(var(--primary-rgb), 0.2);
  margin-top: 4rem;

  &::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--primary-color),
      var(--secondary-color),
      transparent
    );
    animation: footerGlow 3s ease-in-out infinite;
  }
}

@keyframes footerGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* // Responsive */
@media (max-width: 768px) {
  .category-title {
    font-size: 1.8rem;

    .title-icon {
      font-size: 2rem;
    }

    .title-line {
      display: none;
    }
  }

  .categories-container {
    padding: 0 0.5rem 3rem;
  }
}

/* // Loading State Enhancement */
:deep(.app-loading) {
  background: rgba(10, 10, 15, 0.95) !important;

  .loading-spinner {
    border-color: rgba(var(--primary-rgb), 0.2) !important;
    border-top-color: var(--primary-color) !important;
  }
}

/* // Main Container */
.main-container {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  padding: 1rem;

  @media (max-width: 768px) {
    padding: 0.5rem;
    height: auto;
    min-height: 100vh;
  }
}

/* // Games Header */
.games-header {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
  pointer-events: auto;
}

/* // Game content wrapper */
.game-content {
  min-height: 100vh;
  width: 100%;
  position: relative;
  color: white;
  overflow-y: auto;
  overflow-x: hidden;
}

/* // Gaming Page Wrapper */
.gaming-page-wrapper {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  font-family: "Rajdhani", sans-serif;
}

/* // Auth Wrapper */
.auth_wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: "Rajdhani", sans-serif;
}

/* // Enhanced Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--particle-color, var(--primary-color));
  border-radius: 50%;
  animation: float 20s infinite linear;
  opacity: 0.6;
  box-shadow: 0 0 6px var(--particle-color, var(--primary-color));
  will-change: transform;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* // Enhanced Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(var(--primary-rgb), 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 25s linear infinite;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* // Enhanced Cyber Lines */
.cyber-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.cyber-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  height: 1px;
  opacity: 0.3;
  animation: cyberPulse 4s ease-in-out infinite;
}

.cyber-line.line-1 {
  top: 20%;
  left: -100%;
  width: 100%;
  animation-delay: 0s;
}

.cyber-line.line-2 {
  top: 60%;
  left: -100%;
  width: 100%;
  animation-delay: 1.5s;
}

.cyber-line.line-3 {
  top: 80%;
  left: -100%;
  width: 100%;
  animation-delay: 3s;
}

@keyframes cyberPulse {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* // Login Container */
.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 20px 0;
}

/* // Brand Section */
.brand-section {
  text-align: center;
  margin-bottom: 3rem;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  direction: ltr !important;
}

.logo {
  width: 250px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  z-index: 2;
  position: relative;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(8, 29, 33, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.brand-title {
  font-family: "Orbitron", monospace;
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.game-text {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.5);
}

.x-text {
  color: var(--secondary-color);
  text-shadow: 0 0 30px rgba(var(--secondary-rgb), 0.5);
}

.animated-svg {
  filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
  animation: svgFloat 3s ease-in-out infinite;
}

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

/* // Language Button */
.language-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: white;
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 1000;

  &:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 15px rgba(var(--primary-rgb), 0.2);
  }

  .language-icon {
    font-size: 1.1rem;
    opacity: 0.8;
  }

  .language-text {
    font-weight: 600;
    letter-spacing: 0.5px;
  }
}

/* // Login Card */
.login-card {
  background: rgba(15, 15, 25, 0.95);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  backdrop-filter: blur(10px);

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
      45deg,
      rgba(var(--primary-rgb), 1),
      var(--secondary-color)
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
  }
}

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

.login-title {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.title-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.title-underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 1),
    var(--secondary-color)
  );
  margin: 0 auto;
  border-radius: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  }
}

/* // Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-label {
  display: block;
  width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.input-label .label-icon {
  margin-right: 0.5rem;
}

.label-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;

  &.focused {
    transform: translateY(-2px);

    .input-glow {
      opacity: 1;
    }

    .input-border {
      opacity: 1;
    }
  }

  &.error {
    .input-border {
      background: linear-gradient(90deg, #ef4444, #ff6b6b);
      opacity: 1;
    }
  }
}

.gaming-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(20, 20, 35, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;

  &::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  &:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(20, 20, 35, 0.95);
  }
}

.input-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 1),
    var(--secondary-color)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;

  &::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(20, 20, 35, 0.8);
    border-radius: 10px;
  }
}

.input-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(var(--primary-rgb), 1),
    var(--secondary-color)
  );
  border-radius: 14px;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: 0;
}

/* // Password Toggle */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 3;
  transition: color 0.3s ease;

  &:hover {
    color: rgba(var(--primary-rgb), 1);
  }

  &.rtl {
    right: auto;
    left: 1rem;
  }
}

/* // Error Messages */
.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.error-icon {
  font-size: 1rem;
}

.error-fade-enter-active,
.error-fade-leave-active {
  transition: all 0.3s ease;
}

.error-fade-enter-from,
.error-fade-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

/* // Login Button */
.login-btn {
  position: relative;
  background: linear-gradient(
    45deg,
    rgba(var(--primary-rgb), 1),
    var(--secondary-color)
  );
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  &:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);

    .btn-glow {
      opacity: 1;
    }
  }

  &:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }

  &.loading {
    .btn-glow {
      opacity: 1;
      animation: pulse 1s ease-in-out infinite;
    }
  }
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.btn-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(var(--primary-rgb), 1),
    var(--secondary-color)
  );
  border-radius: 14px;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.loading-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* // SSO Buttons */
.sso-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--primary-rgb), 1);
    transform: translateY(-1px);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  &.adfs-btn:hover:not(:disabled) {
    border-color: var(--secondary-rgb);
  }
}

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

/* // Loading State */
.loading-state,
.redirect-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(15, 15, 25, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;

  &::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
      45deg,
      rgba(var(--primary-rgb), 1),
      var(--secondary-color)
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
  }
}

.loading-spinner-large {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(var(--primary-rgb), 0.2);
  border-top: 3px solid rgba(var(--primary-rgb), 1);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-family: "Orbitron", monospace;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* // Responsive Design for Login */
@media (max-width: 768px) {
  .auth_wrapper {
    padding: 10px;
    min-height: 100vh;
    overflow-y: auto;
    padding-top: 80px;
  }

  .login-container {
    width: 95%;
    max-width: 380px;
    margin: 0 auto;
    padding: 20px 0;
  }

  .language-btn {
    top: 15px;
    right: 15px;
    padding: 8px 14px;
    font-size: 0.85rem;

    .language-icon {
      font-size: 1rem;
    }
  }

  .logo {
    width: 200px;
    max-height: 60px;
  }

  .login-card {
    padding: 2rem 1.5rem;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .auth_wrapper {
    padding: 5px;
    padding-top: 70px;
  }

  .login-container {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 15px 0;
  }

  .language-btn {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 25px;

    .language-text {
      display: none;
    }

    .language-icon {
      font-size: 1.1rem;
    }
  }

  .logo {
    width: 180px;
    max-height: 50px;
  }

  .login-card {
    padding: 1.5rem 1rem;
    margin-top: 0;
  }

  .input-group {
    margin-bottom: 1rem;
  }

  .login-btn {
    margin-top: 0.5rem;
    padding: 0.875rem 1.25rem;
  }
}

/* // RTL Support for Language Button */
[dir="rtl"] .language-btn {
  right: auto;
  left: 20px;
}

@media (max-width: 768px) {
  [dir="rtl"] .language-btn {
    left: 15px;
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .language-btn {
    left: 12px;
  }
}

/* // Final Design Summary */
/* 
  تم تبسيط التصميم بنجاح:
  - تقليل طبقات الخلفيات من 5 طبقات إلى 3 طبقات أساسية
  - تقليل شدة الـ blur والـ opacity للخلفيات
  - تبسيط الـ animations وجعلها أبطأ وأكثر دقة
  - تحسين الأداء مع تقليل الـ CPU usage
  - إضافة دعم للـ accessibility والـ reduced motion
  - تحسين الـ mobile experience
  - تنظيف الـ duplicate code
  - توحيد خلفية صفحة اللوجن مع باقي الصفحات
  - نقل جميع الـ styles إلى ملف custom.css للتنظيم
*/

.line-3 {
  bottom: 20%;
  left: -50%;
  right: -50%;
  transform: rotate(-1deg);
  animation-delay: 3s;
}

@keyframes cyberPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

.game-cover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(20px);
  opacity: 0.2;
  z-index: 0;
}
.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.search-wrapper {
  position: relative;
}

.gaming-search-field {
  :deep(.v-field) {
    background: rgba(15, 15, 25, 0.8) !important;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;

    &:hover {
      border-color: rgba(var(--primary-rgb), 0.5);
    }
  }

  :deep(.v-field--focused .v-field__overlay) {
    opacity: 0;
  }

  :deep(.v-field--focused) {
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.3);
  }

  :deep(.v-field__input) {
    color: white;
    font-family: "Rajdhani", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;

    &::placeholder {
      color: rgba(255, 255, 255, 0.5);
    }
  }

  :deep(.v-icon) {
    color: var(--primary-color);
  }
}

.search-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.1) 0%,
    transparent 60%
  );
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.search-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  opacity: 0;
  animation: searchPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes searchPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0;
  }
}

.gaming-search-field:deep(.v-field--focused) ~ .search-glow {
  opacity: 1;
}

/* // Games Container */
.games-container {
  position: relative;
  min-height: 400px;
}

.container-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.05) 0%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
}

/* // Games Grid */
.games-grid {
  position: relative;
}

.game-col {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: var(--animation-delay);
  opacity: 0;
}

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

.game-card-wrapper {
  position: relative;
  height: 100%;
}

/* // Custom Game Card Styles */
.game-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.game-card {
  position: relative;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;

  &:hover {
    transform: translateY(-10px) scale(1.02);

    .game-image {
      transform: scale(1.1);
    }

    .hover-content {
      opacity: 1;
    }

    .shine-effect {
      transform: translateX(150%) translateY(-150%) rotate(30deg);
    }

    .card-border {
      opacity: 1;
    }

    .game-info {
      transform: translateY(-5px);
      background: rgba(10, 10, 15, 0.95);
    }
  }
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 25, 0.9);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 20px;
  overflow: hidden;
}

/* // Image Container */
.game-image-container {
  position: relative;
  width: 100%;
  height: 70%;
  overflow: hidden;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.shine-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) translateY(-100%) rotate(30deg);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 3;
}

/* // Hover Content */
.hover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.play-button {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  animation: playPulse 2s ease-in-out infinite;

  &:hover {
    transform: scale(1);
  }
}

@keyframes playPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(var(--primary-rgb), 0);
  }
}

.play-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: ripple 2s ease-in-out infinite;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* // Game Info */
.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.game-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Rajdhani", sans-serif;

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

/* // Card Border Glow */
.card-border {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(4px);
}

/* // Remove old styles */
.card-hover-effect {
  display: none;
}

:deep(.epic-game-card) {
  display: none;
}

/* // Epic No Results */
.no-results {
  text-align: center;
  padding: 80px 20px;
  width: 100%;
}

.no-results-content {
  max-width: 500px;
  margin: 0 auto;
}

.icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.no-results-icon {
  color: var(--primary-color) !important;
  filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
  animation: iconPulse 3s ease-in-out infinite;
}

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

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(20px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75px;
  height: 75px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.no-results-title {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.no-results-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.retry-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 2rem !important;
  transition: all 0.3s ease;

  &:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.4);
  }
}

/* // Epic Pagination */
.pagination-container {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.pagination-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 100px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--primary-rgb), 0.1) 0%,
    transparent 70%
  );
  filter: blur(30px);
  z-index: -1;
}

:deep(.gaming-pagination) {
  .v-pagination__item {
    background: rgba(15, 15, 25, 0.8) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-family: "Rajdhani", sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;

    &:hover {
      background: rgba(var(--primary-rgb), 0.2) !important;
      border-color: var(--primary-color);
      transform: translateY(-2px);
    }

    &--is-active {
      background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--secondary-color)
      ) !important;
      border-color: transparent;
      color: white;
      box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
    }
  }

  .v-pagination__prev,
  .v-pagination__next {
    background: rgba(15, 15, 25, 0.8) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-color);

    &:hover:not(.v-pagination__navigation--disabled) {
      background: rgba(var(--primary-rgb), 0.2) !important;
      transform: scale(1.1);
    }
  }
}

/* // Responsive */
@media (max-width: 960px) {
  .game-card {
    height: 320px;
  }

  .game-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-title-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .title-section {
    width: 100%;
  }

  .search-container {
    max-width: none;
  }

  .page-title {
    font-size: 2rem;

    .title-icon {
      font-size: 2rem;
    }
  }

  .epic-back-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .page-title {
    font-size: 1.5rem;

    .title-icon {
      font-size: 1.5rem;
    }
  }

  .no-results {
    padding: 60px 20px;
  }

  .no-results-title {
    font-size: 1.3rem;
  }

  .game-card {
    height: 280px;
  }

  .game-title {
    font-size: 1rem;
  }

  .game-info {
    padding: 1rem;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }
}

/* ===== INDEX PAGE STYLES ===== */

/* Admin Statistics Section */
.admin-stats-section {
  padding: 3rem 0;
  position: relative;
}

.admin-stats-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(var(--v-theme-primary), 0.1),
    transparent
  );
  pointer-events: none;
}

.admin-stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.admin-stats-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.admin-stats-title .title-icon {
  margin-right: 0.5rem;
  font-size: 2rem;
}

.admin-stats-title .title-line {
  width: 150px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--v-theme-primary),
    var(--v-theme-secondary)
  );
  margin: 1rem auto 0;
  border-radius: 2px;
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.admin-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-stat-card.clickable {
  cursor: pointer;
}

.stat-icon {
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  font-family: "Orbitron", monospace;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 500;
}

.stat-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(var(--v-theme-primary), 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.admin-stat-card:hover .stat-glow {
  opacity: 1;
}

/* Admin Tabs Container */
.admin-tabs-container {
  padding: 2rem 0;
}

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

.admin-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.admin-title .title-icon {
  margin-right: 0.5rem;
  font-size: 2rem;
}

.admin-title .title-line {
  width: 100px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--v-theme-primary),
    var(--v-theme-secondary)
  );
  margin: 1rem auto 0;
  border-radius: 2px;
}

.admin-tabs {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin: 0 2rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-height: 50px;
  font-size: 1.1rem;
}

.tab-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.tab-text {
  font-family: "Orbitron", monospace;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tabs-content {
  margin-top: 3rem;
  min-height: 500px;
  padding: 0 1rem;
}

.tab-content-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* More Games Section */
.more-games-section {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
}

.more-games-btn {
  font-family: "Orbitron", monospace;
  font-weight: 600;
  text-transform: none;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-games-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--v-theme-primary), 0.3);
}

/* No Games Message */
.no-games-message {
  text-align: center;
  padding: 3rem 1rem;
}

.no-games-message h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 1rem 0;
  font-family: "Orbitron", monospace;
}

.no-games-message p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-tabs-container .tabs-header .admin-title {
    font-size: 2rem;
  }

  .admin-tabs-container .tabs-header .admin-title .title-icon {
    font-size: 1.5rem;
  }

  .admin-tabs-container .admin-tabs {
    margin: 0 1rem;
    padding: 1rem;
    min-height: 60px;
  }

  .admin-tabs-container .admin-tabs .tab-item {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    min-height: 40px;
  }

  .admin-tabs-container .admin-tabs .tab-item .tab-icon {
    font-size: 1.2rem;
  }

  .admin-tabs-container .admin-tabs .tab-item .tab-text {
    font-size: 0.9rem;
  }

  .admin-tabs-container .tabs-content {
    margin-top: 2rem;
    padding: 0 0.5rem;
  }

  .admin-tabs-container .tabs-content .tab-content-wrapper {
    padding: 1.5rem;
  }

  .admin-stats-title {
    font-size: 2rem;
  }

  .admin-stats-title .title-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .admin-stats-title {
    font-size: 1.5rem;
  }

  .admin-stats-title .title-icon {
    font-size: 1.2rem;
  }

  .admin-tabs {
    margin: 0 0.5rem;
    padding: 1rem;
  }

  .tab-item {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Top Buttons Container */
.top-buttons-container {
  position: fixed;
  top: 19px;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

/* Language Button */
.language-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.language-icon {
  font-size: 1.5rem;
  display: block;
  line-height: 1;
}

.language-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Clear Cache Button */
.clear-cache-btn {
  background: rgba(255, 87, 87, 0.25);
  border: 2px solid rgba(255, 87, 87, 0.5);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(255, 87, 87, 0.4);
}

.clear-cache-btn:hover {
  background: rgba(255, 87, 87, 0.35);
  border-color: rgba(255, 87, 87, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 87, 87, 0.5);
}

.cache-icon {
  font-size: 1.5rem;
  display: block;
  line-height: 1;
}

.cache-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive Design for Top Buttons */
@media (max-width: 768px) {
  .top-buttons-container {
    top: 1rem;
    right: 1rem;
    gap: 0.8rem;
  }

  .language-btn,
  .clear-cache-btn {
    width: 50px;
    height: 50px;
  }

  .language-icon,
  .cache-icon {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .top-buttons-container {
    flex-direction: column;
    gap: 0.6rem;
  }

  .language-btn,
  .clear-cache-btn {
    width: 45px;
    height: 45px;
  }

  .language-icon,
  .cache-icon {
    font-size: 1.3rem;
  }
}
