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

body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
   background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
   color: #ffffff;
   line-height: 1.6;
   overflow-x: hidden;
   min-height: 100vh;
}

.header {
   position: fixed;
   top: 0;
   width: 100%;
   background: rgba(30, 41, 59, 0.95);
   backdrop-filter: blur(20px);
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   z-index: 1000;
   transition: all 0.3s ease;
}

.header.scrolled {
   background: rgba(30, 41, 59, 0.98);
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
   max-width: 1400px;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0 24px;
   height: 70px;
   box-shadow: 0 8px 32px 20px rgb(0 0 0 / 59%);
   border-radius: 20px;
}

.logo {
   display: flex;
   align-items: center;
   text-decoration: none;
   font-weight: 700;
   font-size: 24px;
   color: #ffffff;
   transition: all 0.3s ease;
}

.logo-icon {
   width: 40px;
   height: 40px;
   background: linear-gradient(135deg, #06b6d4, #0891b2);
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-right: 12px;
   font-size: 18px;
   color: white;
}

.logo:hover {
   transform: translateY(-1px);
}

.nav-menu {
   display: flex;
   list-style: none;
   gap: 32px;
   align-items: center;
}

.nav-menu a {
   text-decoration: none;
   color: rgba(255, 255, 255, 0.8);
   font-weight: 500;
   font-size: 15px;
   transition: all 0.3s ease;
   position: relative;
   padding: 8px 0;
}

.nav-menu a:hover {
   color: #06b6d4;
}

.nav-menu a::after {
   content: '';
   position: absolute;
   width: 0;
   height: 2px;
   bottom: 0;
   left: 0;
   background: linear-gradient(90deg, #06b6d4, #0891b2);
   transition: width 0.3s ease;
}

.nav-menu a:hover::after {
   width: 100%;
}

.nav-item {
   position: relative;
}

.nav-item.has-submenu > a::before {
   content: '\f107';
   font-family: 'Font Awesome 5 Free';
   font-weight: 900;
   margin-left: 8px;
   font-size: 12px;
   transition: transform 0.3s ease;
}

.nav-item.has-submenu:hover > a::before {
   transform: rotate(180deg);
}

.nav-item.has-submenu > a {
   position: relative;
   animation: gamesPulse 2s infinite;
  padding: 10px;
  border-radius: 10px;
}

@keyframes gamesPulse {
   0% { transform: scale(1); }
   50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }
   100% { transform: scale(1); }
}

.submenu {
   position: absolute;
   top: 100%;
   left: 0;
   background: rgba(51, 65, 85, 0.95);
   backdrop-filter: blur(20px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 12px;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
   min-width: 200px;
   opacity: 0;
   visibility: hidden;
   transform: translateY(-10px);
   transition: all 0.3s ease;
   z-index: 1001;
   overflow: hidden;
}

.nav-item:hover .submenu {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.submenu a {
   display: block;
   padding: 12px 16px;
   color: rgba(255, 255, 255, 0.8);
   text-decoration: none;
   font-size: 14px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   transition: all 0.3s ease;
}

.submenu a:hover {
   background: rgba(255, 255, 255, 0.05);
   color: #06b6d4;
   padding-left: 20px;
}

.submenu a:last-child {
   border-bottom: none;
}

.submenu a i {
   margin-right: 8px;
   width: 16px;
   text-align: center;
}

.wallet-section {
   display: flex;
   align-items: center;
   gap: 16px;
   background: rgba(255, 255, 255, 0.05);
   backdrop-filter: blur(10px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 16px;
   padding: 5px 25px;
   transition: all 0.3s ease;
}

.wallet-section:hover {
   background: rgba(255, 255, 255, 0.08);
   border-color: rgba(6, 182, 212, 0.3);
}

.balance-display {
   display: flex;
   align-items: center;
   gap: 8px;
}

.balance-icon {
   width: 24px;
   height: 24px;
   background: linear-gradient(135deg, #06b6d4, #0891b2);
   border-radius: 6px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 12px;
}

.balance-amount {
   font-weight: 700;
   font-size: 16px;
   color: #06b6d4;
   border-radius: 10px;
   padding: 3px;
}

.balance-currency {
   font-size: 12px;
   color: rgba(255, 255, 255, 0.6);
   font-weight: 500;
}

.wallet-btn {
   padding: 8px 16px;
   background: linear-gradient(135deg, #06b6d4, #0891b2);
   border: none;
   border-radius: 10px;
   color: white;
   font-weight: 600;
   font-size: 14px;
   cursor: pointer;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   gap: 6px;
}

.wallet-btn:hover {
   background: linear-gradient(135deg, #0891b2, #0e7490);
   transform: translateY(-1px);
}

.auth-buttons {
   display: flex;
   gap: 16px;
   align-items: center;
}

.btn {
   padding: 12px 24px;
   border: none;
   border-radius: 12px;
   cursor: pointer;
   font-weight: 600;
   font-size: 14px;
   text-decoration: none;
   transition: all 0.3s ease;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-family: inherit;
   position: relative;
   overflow: hidden;
}

.btn-outline {
   background: transparent;
   color: rgba(255, 255, 255, 0.9);
   border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
   background: rgba(255, 255, 255, 0.1);
   border-color: rgba(255, 255, 255, 0.3);
   transform: translateY(-1px);
}

.btn-primary {
   background: linear-gradient(135deg, #06b6d4, #0891b2);
   color: white;
   border: none;
   box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
   background: linear-gradient(135deg, #0891b2, #0e7490);
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.user-section {
   display: flex;
   align-items: center;
   gap: 12px;
}

.user-menu {
   position: relative;
   display: none;
}

.user-avatar {
   width: 42px;
   height: 42px;
   border-radius: 12px;
   background: linear-gradient(135deg, #06b6d4, #0891b2);
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-weight: 600;
   font-size: 16px;
   cursor: pointer;
   transition: all 0.3s ease;
}

.user-avatar:hover {
   transform: translateY(-1px);
   box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.mobile-menu-btn {
   display: none;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.1);
   color: rgba(255, 255, 255, 0.8);
   font-size: 18px;
   cursor: pointer;
   padding: 10px;
   border-radius: 12px;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.mobile-menu-btn:hover {
   background: rgba(255, 255, 255, 0.1);
   color: #06b6d4;
   transform: translateY(-1px);
}

.mobile-menu-btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
   transition: left 0.5s;
}

.mobile-menu-btn:hover::before {
   left: 100%;
}

.dropdown {
   position: absolute;
   top: 55px;
   right: 0;
   background: rgba(51, 65, 85, 0.95);
   backdrop-filter: blur(20px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 16px;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
   min-width: 220px;
   display: none;
   z-index: 1001;
   overflow: hidden;
}

.dropdown.show {
   display: block;
   animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
   from { opacity: 0; transform: translateY(-10px); }
   to { opacity: 1; transform: translateY(0); }
}

.dropdown a {
   display: flex;
   align-items: center;
   padding: 16px 20px;
   color: rgba(255, 255, 255, 0.8);
   text-decoration: none;
   transition: all 0.3s ease;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   font-size: 14px;
   font-weight: 500;
}

.dropdown a:hover {
   background: rgba(255, 255, 255, 0.05);
   color: #06b6d4;
}

.dropdown a:last-child {
   border-bottom: none;
}

.dropdown a i {
   margin-right: 12px;
   width: 16px;
   text-align: center;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-nav-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 100%;
}

.mobile-nav.show {
   display: block;
   transform: translateY(0);
}

.mobile-nav-section {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.mobile-nav-section.navigation {
   border-right: 1px solid rgba(255, 255, 255, 0.1);
   padding-right: 24px;
}

.mobile-nav-section.profile {
   padding-left: 24px;
}

.mobile-nav a {
   color: rgba(255, 255, 255, 0.8);
   text-decoration: none;
   padding: 16px 20px;
   font-weight: 500;
   border-radius: 12px;
   transition: all 0.3s ease;
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid rgba(255, 255, 255, 0.05);
   display: flex;
   align-items: center;
   gap: 12px;
   margin: 5px;
}

.mobile-nav a[href="#games"] {
   animation: gamesPulse 2s infinite;
   background: rgba(6, 182, 212, 0.05);
   border: 1px solid rgba(6, 182, 212, 0.1);
}

.mobile-nav a:hover {
   color: #06b6d4;
   background: rgba(6, 182, 212, 0.1);
   border-color: rgba(6, 182, 212, 0.2);
   transform: translateX(4px);
}

.mobile-nav a i {
   width: 16px;
   text-align: center;
}

.mobile-wallet {
   background: rgba(6, 182, 212, 0.1);
   border: 1px solid rgba(6, 182, 212, 0.2);
   padding: 20px;
   border-radius: 16px;
   margin-bottom: 16px;
   text-align: center;
}

.mobile-wallet-balance {
   font-size: 24px;
   font-weight: 700;
   color: #06b6d4;
   margin-bottom: 8px;
}

.mobile-wallet-label {
   font-size: 14px;
   color: rgba(255, 255, 255, 0.6);
   margin-bottom: 16px;
}

.profile-section-title {
   color: #06b6d4;
   font-weight: 600;
   font-size: 14px;
   margin-bottom: 12px;
   padding: 0 20px;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.modal {
   display: none;
   position: fixed;
   z-index: 2000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.8);
   backdrop-filter: blur(10px);
   overflow-y: auto;
   padding: 20px 0;
}

.modal-content {
   background: linear-gradient(145deg, #334155, #1e293b);
   margin: 0 auto;
   padding: 0;
   border-radius: 24px;
   width: 90%;
   max-width: 440px;
   box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
   border: 1px solid rgba(255, 255, 255, 0.1);
   overflow: hidden;
   animation: modalSlideIn 0.4s ease;
   position: relative;
   top: 50%;
   transform: translateY(-50%);
   max-height: calc(100vh - 40px);
   overflow-y: auto;
}

@keyframes modalSlideIn {
   from { opacity: 0; transform: translateY(-30px) scale(0.95); }
   to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
   background: linear-gradient(135deg, #06b6d4, #0891b2);
   color: white;
   padding: 32px 32px 24px;
   text-align: center;
   position: relative;
}

.modal-header h2 {
   font-size: 24px;
   font-weight: 700;
   margin: 0;
}

.modal-header p {
   margin-top: 8px;
   opacity: 0.9;
   font-size: 14px;
   font-weight: 400;
}

.close {
   position: absolute;
   right: 20px;
   top: 20px;
   color: white;
   font-size: 24px;
   font-weight: bold;
   cursor: pointer;
   width: 32px;
   height: 32px;
   border-radius: 8px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.3s ease;
}

.close:hover {
   background: rgba(255, 255, 255, 0.2);
}

.modal-body {
   padding: 32px;
}

.form-group {
   margin-bottom: 24px;
}

.form-group label {
   display: block;
   margin-bottom: 8px;
   color: rgba(255, 255, 255, 0.9);
   font-weight: 500;
   font-size: 14px;
}

.form-group input {
   width: 100%;
   padding: 16px;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 12px;
   font-size: 16px;
   color: #ffffff;
   transition: all 0.3s ease;
   font-family: inherit;
}

.form-group input:focus {
   outline: none;
   border-color: #06b6d4;
   background: rgba(255, 255, 255, 0.08);
   box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group input::placeholder {
   color: rgba(255, 255, 255, 0.5);
}

.google-btn {
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.1);
   color: rgba(255, 255, 255, 0.9);
   width: 100%;
   margin-bottom: 24px;
   justify-content: center;
}

.google-btn:hover {
   background: rgba(255, 255, 255, 0.1);
   border-color: rgba(255, 255, 255, 0.2);
}

.divider {
   text-align: center;
   margin: 24px 0;
   position: relative;
}

.divider::before {
   content: '';
   position: absolute;
   top: 50%;
   left: 0;
   right: 0;
   height: 1px;
   background: rgba(255, 255, 255, 0.1);
}

.divider span {
   background: linear-gradient(145deg, #334155, #1e293b);
   padding: 0 16px;
   color: rgba(255, 255, 255, 0.6);
   font-size: 14px;
}

.terms-notice {
   background: rgba(255, 255, 255, 0.03);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 12px;
   padding: 16px;
   margin: 20px 0;
   font-size: 13px;
   color: rgba(255, 255, 255, 0.7);
   text-align: center;
   line-height: 1.4;
}

.terms-notice a {
   color: #06b6d4;
   text-decoration: none;
}

.terms-notice a:hover {
   text-decoration: underline;
}

.forgot-password {
   text-align: center;
   margin: 16px 0;
}

.forgot-password a {
   color: #06b6d4;
   text-decoration: none;
   font-size: 14px;
   transition: all 0.3s ease;
}

.forgot-password a:hover {
   color: #0891b2;
   text-decoration: underline;
}

.switch-form {
   text-align: center;
   margin-top: 24px;
   color: rgba(255, 255, 255, 0.7);
   font-size: 14px;
}

.switch-form a {
   color: #06b6d4;
   text-decoration: none;
   font-weight: 600;
   transition: all 0.3s ease;
}

.switch-form a:hover {
   color: #0891b2;
   text-decoration: underline;
}

.error-message {
   color: #ff4757;
   background: rgba(255, 71, 87, 0.1);
   border: 1px solid rgba(255, 71, 87, 0.2);
   padding: 12px 16px;
   border-radius: 12px;
   margin: 16px 0;
   font-size: 14px;
   display: none;
   font-weight: 500;
}

.success-message {
   color: #2ed573;
   background: rgba(46, 213, 115, 0.1);
   border: 1px solid rgba(46, 213, 115, 0.2);
   padding: 12px 16px;
   border-radius: 12px;
   margin: 16px 0;
   font-size: 14px;
   display: none;
   font-weight: 500;
}

.form-submit {
   width: 100%;
   margin-top: 8px;
   justify-content: center;
   font-size: 16px;
   padding: 16px 24px;
}

.loading {
   opacity: 0.7;
   pointer-events: none;
}

.btn.loading::after {
   content: '';
   width: 16px;
   height: 16px;
   border: 2px solid transparent;
   border-top: 2px solid currentColor;
   border-radius: 50%;
   animation: spin 1s linear infinite;
   margin-left: 8px;
}

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

@media (max-width: 768px) {
   .header-container {
       padding: 0 16px;
       height: 64px;
       gap: 12px;
       box-shadow: none;
       border-radius: 0;
   }
   
   .nav-menu {
       display: none;
   }
   
   .mobile-menu-btn {
       display: block;
   }
   
   .wallet-section {
       padding: 8px 12px;
       gap: 12px;
   }
   
   .balance-amount {
       font-size: 14px;
   }
   
   .wallet-btn {
       padding: 6px 12px;
       font-size: 12px;
   }
   
   .auth-buttons {
       gap: 8px;
   }

   .auth-buttons .btn {
       padding: 8px 16px;
       font-size: 13px;
   }
   
   .modal {
       padding: 10px 0;
   }
   
   .modal-content {
       width: 95%;
       max-width: 400px;
       max-height: calc(100vh - 20px);
       top: auto;
       transform: none;
       margin-top: 10px;
       margin-bottom: 10px;
   }
   
   .modal-body {
       padding: 24px;
   }
   
   .modal-header {
       padding: 24px 24px 20px;
   }

.header-container {
    padding: 0 16px;
    height: 64px;
    gap: 8px;
    justify-content: center;
}

.logo {
    flex-shrink: 0;
}

.user-section {
    flex-shrink: 0;
}

.wallet-section {
    padding: 6px 10px;
    gap: 8px;
    flex-shrink: 0;
}

}

@media (max-width: 480px) {
   .logo {
       font-size: 18px;
   }
   
   .logo-icon {
       width: 32px;
       height: 32px;
       font-size: 14px;
   }
   
.wallet-section {
    flex-direction: row;
    gap: 8px;
    padding: 6px 10px;
}

.balance-amount {
    font-size: 11px;
}

.wallet-btn {
    padding: 4px 8px;
    font-size: 10px;
}

   .auth-buttons .btn {
       padding: 6px 12px;
       font-size: 12px;
   }
   
   .balance-display {
       gap: 4px;
   }
   
   .balance-amount {
       font-size: 12px;
   }

   .mobile-nav-content {
       grid-template-columns: 1fr;
       gap: 16px;
   }

   .mobile-nav-section.navigation {
       border-right: none;
       border-bottom: 1px solid rgba(255, 255, 255, 0.1);
       padding-right: 0;
       padding-bottom: 16px;
   }

   .mobile-nav-section.profile {
       padding-left: 0;
       padding-top: 16px;
   }

.header-container {
    padding: 0 12px;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 16px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.wallet-section {
    padding: 4px 8px;
    gap: 4px;
}

.auth-buttons .btn {
    padding: 4px 8px;
    font-size: 11px;
}

}

@media (max-width: 480px) {
    .mobile-nav-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

.header-container {
       padding: 0 12px;
       gap: 6px;
       justify-content: space-between;
       align-items: center;
       box-shadow: none;
       border-radius: 0;
   }
}