
/* === RESET === */

*::before,
*::after {
  box-sizing: border-box;
}






/* === Global Scrollbar Styling for Chrome/Edge/Brave/Opera === */
::-webkit-scrollbar {
    width: 3px;

  }

  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03); /* subtle glass feel */
    border-radius: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* inner highlight */
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }







* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    height: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #000000, #00053d);

    color: #E0E0E0;
    display: flex;
    flex-direction: column;
  }

  /* === Layout === */
  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }


  .nav-logo {
    height: 35px !important;
    width: 35px !important;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff00 !important; 
  }
  

  .sidebar-profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }





  .main-content {
    flex: 1;
    padding: 20px 24px 24px 24px; /* 👈 match navbar height exactly */
    background: linear-gradient(180deg, #000000, #00053d);

  }




  /* === Navbar === */


  .navbar {
    position: relative; /* ✅ make navbar fixed */
    top: 0;
    left: 0;
    width: 100%;
   /* ✅ fixed height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 22px; /* ✅ adjust padding */
    background: linear-gradient(180deg, #000000, #00053d);

    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9998; /* ✅ lower than profile dropdown (9999) */
  }

  .logo {
    font-size: 24px;
    font-weight: bold;
    color: #A2FFEF;
  }
  .nav-center {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .nav-center li a {
    color: #C5C5C5;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .nav-center li a:hover {
    color: #ffffff;
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .nav-right button {
    background: none;
    border: none;
    font-size: 20px;
    color: #CCCCCC;
    cursor: pointer;
  }
  .hamburger {
    display: none;
  }
  @media (max-width: 996px) {
    .nav-center {
      display: none;
    }
    .hamburger {
      display: inline-block;
    }

    .nav-left {
        display: flex;
        align-items: center;
      }

      /* 2) Tweak overall navbar padding to remove that 5px top‑bias */
      .navbar {
        padding: 10px 16px;
      }

      /* 3) Ensure the logo link itself centers its img/text */
      .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
      }

      /* 4) (Optional) if you still see vertical drift, force align-self */
      .logo,
      .nav-left,
      .nav-right {
        align-self: center;
      }
  }

  /* === Sidebar === */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    width: 270px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: left 0.3s ease;
    z-index: 9999;
  }
  .sidebar.show {
    left: 0;
  }
  .sidebar-header .logo {
    font-size: 24px;
    color: #6FE5C1;
    font-weight: bold;
  }

  .sidebar-header {
    text-decoration: none;
  }

  .sidebar-header * {
    text-decoration: none !important;
  }

  .sidebar a.sidebar-item {
    text-decoration: none !important;
    color: inherit !important;
  }


  .sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size:14px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #CCCCCC;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .sidebar-item:hover,
  .sidebar-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
  }
  .sidebar-item i {
    width: 18px;
    text-align: center;
  }

  .user-stats-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
  }

  .user-stats-box i {
    color: #A2FFEF;
    width: 20px;
  }

  .coin-info,
  .package-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #EEEEEE;
  }

  /* === Sidebar Header Profile === */
  .sidebar-profile-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .sidebar-profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
  }
  .sidebar-profile-text {
    display: flex;
    flex-direction: column;
  }
  .sidebar-profile-title {
    color: #c4c4c4;
    font-size: 16px;
    font-weight: 600;
  }
  .sidebar-profile-tagline {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
  }



  /* === Social Media Section with Icon + Name === */
  .sidebar-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 16px;
    width: 100%;
  }

  .sidebar-social-links .social-link {
    flex: 1 1 calc(50% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 10px;
    border-radius: 7px;
    color: #f1f1f1;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 12px; /* ✅ smaller text */
    font-weight: 500;
    gap: 6px;
  }

  .sidebar-social-links .social-link:nth-child(3) {
    flex: 1 1 100%; /* ✅ Telegram full width */
  }

  .sidebar-social-links .social-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .sidebar-social-links .social-link i {
    font-size: 13px;
    width: 14px;
    text-align: center;
  }







  /* === Sidebar User === */
  .sidebar-user {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .user-info img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
  }
  .user-name {
    font-weight: 600;
    color: #ffffff;
  }
  .user-email {
    font-size: 0.8rem;
    color: #aaa;
  }
  .upgrade-btn {
    width: 100%;
    font-size: 0.8rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
  }
  .upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  /* === Profile Dropdown === */
  .profile-container {
    position: relative;
  }


  .profile-dropdown {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 260px;
    padding: 16px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}


  /* User Info */
  .dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .dropdown-user-info img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
  }
  .dropdown-user-text {
    display: flex;
    flex-direction: column;
  }
  .dropdown-name {
    font-weight: 600;
    color: #fff;
  }
  .dropdown-email {
    font-size: 0.85rem;
    color: #ccc;
  }

  /* Coin + Package */
  .dropdown-stats-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .dropdown-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #eee;
  }
  .dropdown-stat i {
    color: #a2ffef;
  }

  /* Upgrade Button */
  .dropdown-upgrade-btn {
    width: 100%;
    padding: 8px 0;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .dropdown-upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }


  /* === Footer === */
  .site-footer {
    background: linear-gradient(180deg, #000000, #00053d);
    backdrop-filter: blur(10px);
    color: #AAAAAA;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
  }
  .footer-top-bar {
    padding: 12px 0;
    text-align: center;
  }
  .footer-top-bar a {
    margin: 0 16px;
    color: #c4c4c4;
    text-decoration: none;
    font-weight: 500;
  }
  .footer-top-bar a:hover {
    color: #ffffff;
  }
  .footer-bottom-text {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px 20px;
    text-align: center;
    line-height: 1.5;
    font-size: 0.8rem;
    color: #888888;
  }


  /* === Navbar Search === */
  .nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* transition: all 0.3s ease; */
    min-width: 40px;
  }


  .nav-user-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
  }

  .nav-user-stats .nav-coin,
  .nav-user-stats .nav-package {
    font-size: 0.75rem;
    color: #ffd700;
    background: rgba(255,255,255,0.06);
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
  }


  /* === Search Toggle === */
  .search-toggle {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    /* transition: opacity 0.2s ease, visibility 0.2s ease; */
    margin-right: 7px;
  }

  /* === Hide Search Toggle AFTER animation only */
  .nav-search-container.hiding-toggle .search-toggle {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }

  /* === Search Input === */
  .nav-search-input {
    width: 0;
    opacity: 0;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.152);
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(14px);
    /* transition: width 0.4s ease, opacity 0.3s ease; */
    max-width: 300px;
    margin-left: 2px;
  }

  /* === Expanded State === */
  .nav-search-container.active .nav-search-input {
    width: 220px;
    opacity: 1;
    margin-left: 2px;
  }


  /* === Session terminated overlay === */
#session-terminated-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    color: #ff4d4f;           /* bright red text */
    font-size: 1.1rem;
    text-align: center;
    z-index: 10000;
    display: none;            /* hidden by default */
  }

  /* when we want to show it */
  #session-terminated-overlay.show {
    display: block;
  }


  .legal-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    color: #ddd;
  }

  .legal-page h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .legal-page h3 {
    font-size: 20px;
    margin-top: 30px;
  }

  .legal-page p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
  }

  .glass-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }

  .glass-box {
    max-width: 960px;
    margin: auto;
  }




  /* ✅ Large Screens */
  @media (min-width: 992px) {
    .navbar {
      position: relative;
    }

    .nav-search-container {
      position: absolute;
      right: 70px;
      top: 50%;
      transform: translateY(-50%);
    }

    .nav-search-container.active .nav-search-input {

      opacity: 1;

    }




  }

  /* ✅ Small Screens */
  @media (max-width: 991px) {
    .nav-right {
      gap: 5px;
    }

    .profile-container {
      display: none !important;
    }

    .nav-search-input {
      width: 0;
      opacity: 0;
      margin-left: 0;
    }

    .nav-search-container.active .nav-search-input {
      width: 220px;
      opacity: 1;
      margin-left: 2px;
    }

    #session-terminated-overlay {

        padding: 20px 10px;
        border-radius: 10px;
        font-size: 0.8rem;
        width:280px;
      }


      .footer-top-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        font-size:12px;
        gap: 10px;
      }

      .footer-top-bar a {
        display: inline-block;
        font-size: 13px;
        font-weight: 500;
        text-align: center;
      }

      /* Optional: visually group top & bottom */
      .footer-top-bar a:nth-child(1),
      .footer-top-bar a:nth-child(2) {
        order: 1;
      }

      .footer-top-bar a:nth-child(3) {
        order: 2;
      }

      .footer-bottom-text {

        padding: 10px 20px 10px;
        font-size:0.7rem;

      }


  }


  /* === Close Button (✖) === */
  .search-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    margin-left: 8px;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    /* ✅ Add these */
    outline: none;
    box-shadow: none;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent; /* ✅ removes blue on mobile */
    -webkit-focus-ring-color: transparent;     /* ✅ removes blue on Chrome focus */
  }


  /* ✅ Show close icon only when active */
  .nav-search-container.active .search-close {
    opacity: 1;
    visibility: visible;

  }

  /* ✅ Hide hamburger when search is active */
  .nav-search-container.active ~ .hamburger {
    display: none !important;
  }

  button:focus,
  button:active {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }




