/* ESEA-Style Modal */
    .welcome-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(8px);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 10000;
      animation: fadeIn 0.3s ease-in-out;
    }

    .welcome-modal.show {
      display: flex;
    }

    .modal-container {
      background: linear-gradient(135deg, #1a1a1a 0%, #0d1117 100%);
      border-radius: 12px;
      max-width: 1000px;
      width: 95%;
      height: 600px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
      display: flex;
      animation: slideUp 0.4s ease-out;
    }

    .modal-close {
      position: absolute;
      top: 20px;
      right: 25px;
      background: none;
      border: none;
      color: #fff;
      font-size: 28px;
      cursor: pointer;
      z-index: 10001;
      transition: color 0.3s;
      opacity: 0.7;
    }

    .modal-close:hover {
      color: #00ff88;
      opacity: 1;
    }

    .modal-left {
      flex: 1;
      padding: 40px;
      background: rgba(0, 0, 0, 0.3);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .modal-right {
      flex: 1;
      background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(223, 42, 0, 0.1) 100%);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 40px;
      position: relative;
      background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    }

    .feature-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 30px;
      color: #fff;
    }

    .feature-icon {
      width: 24px;
      height: 24px;
      margin-right: 15px;
      margin-top: 2px;
      color: #ffa700;
      flex-shrink: 0;
    }

    .feature-content h3 {
      font-family: 'Unbounded', cursive;
      font-size: 1.1rem;
      color: #fff;
      margin: 0 0 8px 0;
      font-weight: 600;
    }

    .feature-content p {
      font-size: 0.9rem;
      color: #aaa;
      margin: 0;
      line-height: 1.4;
    }

    .modal-cta {
      text-align: center;
    }

    .modal-main-title {
      font-family: 'Unbounded', cursive;
      font-size: 2.2rem;
      color: #fff;
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 2px;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .modal-subtitle {
      font-size: 1.1rem;
      color: #00ff88;
      margin-bottom: 8px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .modal-description {
      font-size: 1rem;
      color: #ccc;
      margin-bottom: 40px;
      line-height: 1.5;
    }

    .modal-buttons {
      display: flex;
      flex-direction: column;
      gap: 15px;
      width: 100%;
      max-width: 280px;
    }

    .modal-btn {
      padding: 15px 30px;
      border: none;
      border-radius: 6px;
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 1px;
      width: 100%;
    }

    .modal-btn.signup {
      background: #00ff88;
      color: #000;
      box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    }

    .modal-btn.signup:hover {
      background: #00e67a;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
    }

    .modal-btn.login {
      background: transparent;
      color: #00ff88;
      border: 2px solid #00ff88;
    }

    .modal-btn.login:hover {
      background: rgba(0, 255, 136, 0.1);
      transform: translateY(-2px);
    }

    .modal-learn-more {
      margin-top: 20px;
      color: #00ff88;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: color 0.3s;
    }

    .modal-learn-more:hover {
      color: #fff;
      text-decoration: underline;
    }

    .modal-player-silhouette {
      position: absolute;
      right: -50px;
      top: 50%;
      transform: translateY(-50%);
      width: 300px;
      height: 400px;
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
      clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
      opacity: 0.3;
    }

    /* Sidemenu Styles - Fixed */
    .sidemenu-wrapper {
      position: fixed;
      z-index: 999999;
      right: 0;
      top: 0;
      height: 100%;
      width: 100%;
      background-color: rgba(0, 0, 0, 0.75);
      visibility: hidden;
      opacity: 0;
      transition: all 0.3s ease;
    }

    .sidemenu-wrapper.show {
      visibility: visible;
      opacity: 1;
    }

    .sidemenu-content {
      --sidebarPosition: 450px;
      background-color: var(--vs-theme-color);
      width: var(--sidebarPosition);
      margin-left: auto;
      padding: 40px 30px 30px 30px;
      height: 100%;
      overflow-y: auto;
      position: relative;
      right: calc(-1 * var(--sidebarPosition));
      cursor: auto;
      transform-origin: right;
      transition: right 0.3s ease;
    }

    .sidemenu-wrapper.show .sidemenu-content {
      right: 0;
    }

    @media (max-width: 768px) {
      .sidemenu-content {
        --sidebarPosition: 350px;
        padding: 20px 15px;
      }
    }

    /* Scrollbar Styles */
    .sidemenu-content::-webkit-scrollbar {
      width: 5px;
    }

    .sidemenu-content::-webkit-scrollbar-track {
      box-shadow: inset 0 0 5px var(--bg-color);
      border-radius: 0px;
    }

    .sidemenu-content::-webkit-scrollbar-thumb {
      background: var(--bg-color);
      border-radius: 10px;
    }

    .sidemenu-content::-webkit-scrollbar-thumb:hover {
      background: var(--vs-theme-color2);
    }

    .sidemenu-logo {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 30px;
    }

    .closeButton {
      display: inline-block;
      border: none;
      color: var(--bg-color);
      background-color: transparent;
      font-size: 40px;
      padding: 0;
      border-radius: 50%;
      transform: rotate(0);
      transition: all ease 0.4s;
      font-family: var(--title-font);
      font-weight: 700;
      cursor: pointer;
    }

    .closeButton:hover {
      color: var(--white-color);
      transform: rotate(180deg);
    }

    .sidemenu-hr {
      height: 4px;
      border-top: 1px solid var(--bg-color);
      border-bottom: 1px solid var(--bg-color);
      opacity: 1;
      margin: 30px 0 35px;
    }

    .sidemenu-inner {
      display: flex;
      flex-direction: column;
      height: calc(100vh - 150px);
      justify-content: space-between;
    }

    /* Authentication Section in Sidemenu */
    .auth-section {
      margin-bottom: 30px;
    }

    .auth-form-side {
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: 15px;
      padding: 25px;
      margin-bottom: 20px;
    }

    .auth-title {
      color: var(--bg-color);
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 20px;
      text-align: center;
    }

    .side-form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .form-group-side {
      display: flex;
      flex-direction: column;
    }

    .form-group-side label {
      color: var(--bg-color);
      font-weight: 500;
      margin-bottom: 5px;
      font-size: 0.9rem;
    }

    .form-group-side input {
      padding: 12px 15px;
      border: 2px solid rgba(0, 0, 0, 0.2);
      border-radius: 8px;
      background-color: rgba(255, 255, 255, 0.9);
      color: var(--bg-color);
      font-size: 14px;
      transition: all 0.3s;
    }

    .form-group-side input:focus {
      outline: none;
      border-color: var(--bg-color);
      background-color: white;
    }

    .form-group-side input::placeholder {
      color: #666;
    }

    .auth-btn-side {
      padding: 12px 20px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 10px;
    }

    .auth-btn-side.primary {
      background-color: var(--bg-color);
      color: var(--vs-theme-color);
    }

    .auth-btn-side.primary:hover {
      background-color: #333;
      transform: translateY(-2px);
    }

    .auth-btn-side.logout {
      background-color: #dc3545;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-left: 30px;
    }

    .auth-btn-side.logout:hover {
      background-color: #c82333;
      transform: translateY(-2px);
    }

    .auth-switch {
      text-align: center;
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid rgba(0, 0, 0, 0.2);
    }

    .auth-switch p {
      color: var(--bg-color);
      font-size: 0.9rem;
      margin: 0;
    }

    .auth-switch a {
      color: var(--bg-color);
      text-decoration: none;
      font-weight: 600;
      border-bottom: 1px solid var(--bg-color);
    }

    .auth-switch a:hover {
      color: var(--white-color);
      border-bottom-color: var(--white-color);
    }

    /* Logged In State */
    .logged-in-state {
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: 15px;
      padding: 25px;
      text-align: center;
    }

    .user-profile {
      margin-bottom: 20px;
    }

    .user-avatar {
      margin-bottom: 15px;
      display: flex;
      justify-content: center;
    }

    .user-avatar img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      border: 3px solid var(--bg-color);
      object-fit: cover;
    }

    .user-details h4 {
      color: var(--bg-color);
      font-size: 1.2rem;
      margin-bottom: 5px;
      font-weight: 600;
    }

    .user-details p {
      color: rgba(0, 0, 0, 0.7);
      font-size: 0.9rem;
      margin: 0;
    }

    /* Profile Menu Options */
    .profile-menu {
      margin-bottom: 40px;
    }

    .menu-option {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 15px 20px;
      margin-bottom: 15px;
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      color: var(--bg-color);
      font-weight: 600;
      font-size: 16px;
    }

    .menu-option:hover {
      background-color: rgba(0, 0, 0, 0.2);
      transform: translateX(-5px);
      /* color: var(--bg-color); */
      text-decoration: none;
    }

    .menu-option i {
      font-size: 20px;
      width: 25px;
      text-align: center;
    }

    /* Animation Classes */
    .sidemenu-item {
      opacity: 0;
      transform: translateX(30px);
      transition: all 0.3s ease;
    }

    .sidemenu-wrapper.show .sidemenu-item {
      opacity: 1;
      transform: translateX(0);
    }

    .sidemenu-wrapper.show .sidemenu-item:nth-child(1) {
      transition-delay: 0.1s;
    }
    .sidemenu-wrapper.show .sidemenu-item:nth-child(2) {
      transition-delay: 0.2s;
    }
    .sidemenu-wrapper.show .sidemenu-item:nth-child(3) {
      transition-delay: 0.3s;
    }
    .sidemenu-wrapper.show .sidemenu-item:nth-child(4) {
      transition-delay: 0.4s;
    }
    .sidemenu-wrapper.show .sidemenu-item:nth-child(5) {
      transition-delay: 0.5s;
    }
    .sidemenu-wrapper.show .sidemenu-item:nth-child(6) {
      transition-delay: 0.6s;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @media (max-width: 900px) {
      .news-grid {
        grid-template-columns: 1fr;
      }
      
      .news-card {
        flex-direction: column;
        min-height: unset;
      }
      
      .news-img {
        width: 100%;
        min-width: 0;
        height: 160px;
        max-height: 300px;
        border-top-left-radius: var(--card-radius);
        border-top-right-radius: var(--card-radius);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
      }
      
      .news-content {
        padding: 0.9em 0.8em 0.7em 0.8em;
      }

      .modal-container {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
      }

      .modal-left, .modal-right {
        flex: none;
        padding: 30px 20px;
      }

      .modal-main-title {
        font-size: 1.8rem;
      }

      .feature-item {
        margin-bottom: 20px;
      }

      .modal-player-silhouette {
        display: none;
      }
    }
    
    @media (max-width: 700px) {
      .site-title { 
        font-size: 1.5rem; 
      }

      .modal-container {
        margin: 20px;
        width: calc(100% - 40px);
      }

      .modal-main-title {
        font-size: 1.5rem;
      }
    }
